@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html {
    color: #495057; 
    height: 100%;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

body {
    overscroll-behavior: contain;
    background-color: #f8f9fa; 
    color: #495057;
    height: 100%;
    overflow: auto;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

body::-webkit-scrollbar {
    background-color: white;
}


h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif;
    font-weight: 600; /* Consistent weight for all headings */
    margin-bottom: 0.5em;
}

h1 {
    font-size: 30px;
    line-height: 1.2;
    color: #323a46; /* A darker color for main headings */
    display: inline;
}

h2 {
    font-size: 24px;
    line-height: 1.2;
    color: #495057; /* A slightly lighter color for secondary headings */
    display: inline;
}

h3 {
    font-family: "Inter", sans-serif;
    display: inline;
    font-weight: 600;
    font-size: 22px;
    line-height: 32px;
    color: #495057; /* Keeping the color consistent for clarity */
    margin-bottom: 10px; /* Space below the heading */
}

h4 {
    font-family: "Inter", sans-serif;
    display: inline;
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #495057; /* Maintaining color uniformity */
    margin-bottom: 8px; /* Space below the heading */
}

h5 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #495057; /* Consistent color for readability */
    margin-bottom: 6px; /* Space below the heading */
}

.badge {
    font-family: "Inter", sans-serif;
    font-size: 0.8em;
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.25rem; /* Rounded corners, but not too pill-like */
    text-transform: uppercase; /* Optional: can make badges stand out */
    letter-spacing: 0.05em; /* Spacing for better readability */
    transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */
    margin-left: 0.5em; /* Space between badges */
}

.badge-light {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dae0e5; /* Slight border to enhance on light backgrounds */
}

.badge-light:hover {
    background-color: #e2e6ea;
    color: #212529;
}

.badge-important {
    background-color: #dc3545;
    color: #ffffff;
}

.badge-important:hover {
    background-color: #c82333;
}

.badge-info {
    background-color: #17a2b8;
    color: #ffffff;
}

.badge-info:hover {
    background-color: #138496;
}

.badge-success {
    background-color: #28a745;
    color: #ffffff;
}

.badge-success:hover {
    background-color: #218838;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529; /* Dark text color for contrast */
}

.badge-warning:hover {
    background-color: #e0a800;
}

.badge-in-progress {
    background-color: #17a2b8; /* A soothing blue for in-progress items */
    color: #ffffff;
}

.badge-on-hold {
    background-color: #6c757d; /* A neutral gray */
    color: #ffffff;
}

.badge-completed {
    background-color: #28a745; /* A rewarding green */
    color: #ffffff;
}

.card {
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px;
    margin: 5px 0;
    padding: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: solid;
    border-color: #F0F0F0;
    border-width: 1px;
}
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); /* Only if cards are clickable */
}

.card-header {
    border-radius: 10px;
    background: #fff;
    border-bottom: 0;
}

.card-body {
    padding: 0.75rem;
}

.card-title {
    margin-bottom: 0;
}

.card-body h3 {
    font-size: 25px;
    font-weight: 400;
}

.card-image {
    position: absolute;
    top: -55px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100px;
    height: 100px;
    border-radius: 100%;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    border: 11px solid #fff;
    background-color: #cecece;
}

a, .btn-link {
    color: #0366d6;
}


.btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    border-radius: 5px;
    border: 0;
    margin-top: -5px;
    font-size: 14px;
    padding: 4px 10px;
    text-align: center;
}

.btn-primary {
    border-radius: 5px;
    font-weight: 200;
    border: 0;
    margin-top: -5px;
    font-size: 14px;
    padding: 4px 10px;
    text-align: center;
}

.btn-light {
    background-color: #f8f9fa; /* Light background for buttons */
    color: #495057; /* Text color for buttons */
}

.btn-light:hover {
    background-color: #e2e6ea; /* Slightly darker on hover for interaction feedback */
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    background-color: white;
}

.main .top-row {
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
}

.main .top-row > a, .main .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}


.k-dialog-titlebar {
}

.sidebar {
    border-radius: 10px;
    width: 250px;
}

.sidebar .top-row {
    justify-content: center;
    font-size: 25px;
}

.navbar-brand {
    font-size: 25px;
    font-weight: 800;
    color: #1e7e34;
}

.sidebar .oi {

    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: black;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.sidebar .nav-item a.active {
    color: black;
    font-weight: bold;
}
.sidebar .nav-item a.active span{
    color: black;
    font-weight: bold;
}

.sidebar .nav-item a:hover {
    color: black;
}

.sidebar .nav-item a:hover span {
    color: black;
    font-weight: bold;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: white;
    color:black;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.text-muted {
    padding-right: 10px;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}


@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-height: calc(100vh - 40px);
        margin: 0px;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    /* font-family not taken in account from body for window dialog */
    .k-window {
        border-radius: 20px;
        font-family: "Inter", sans-serif;
        font-size: 13px;
    }

    /* TitleBar top left & right radius set to match k-window */
    .k-window-titlebar {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        background-color: seagreen;
        color: white;
    }

    /*.k-input-inner is used for any comboBox, textBox, ... font */
    .k-link {
        font-family: "Inter", sans-serif;
        font-size: 13px;
    }
    .k-input-inner {
        font-family: "Inter", sans-serif;
        font-size: 13px;
    }
    .k-button.text {
        font-family: "Inter", sans-serif;
        font-size: 13px;
    }
    label {
        font-family: "Inter", sans-serif;
        font-size: 13px;
    }
    span {
        font-family: "Inter", sans-serif;
        font-size: 13px;
    }

    .button-primary {
        background-color: seagreen;
    }
    
    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}


.table {
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 10px;
    border-collapse: separate;
    border: 1px;
    margin: 12px 0;
    padding: 0;
    box-shadow: 4px 3px 14px 0 rgb(151 161 155 / 40%);
    border: solid;
    border-color: lightgrey;
    border-width: 1px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.table thead th {
    border-width: 1px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    background: white;
}

.table tfoot th {
    border-width: 1px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    background: white;
}

.table td {
    border-bottom: 0;
    border-top: 0;
    border-left: 1px;
    border-right: 0;
    border-left-style: solid;
    border-left-color: #F0F0F0;
    padding: 0.50rem;
    vertical-align: center;
}

.table th {
    border: 0 transparent;
    padding: 0.50rem;
    font-weight: bold;
}

.table tr:last-child > td {
    border: 0;
}

.table tr:last-child > th {
    border: 0;
}

.k-grid {
    box-shadow: 4px 3px 14px 0 rgb(151 161 155 / 40%);
    border-radius: 10px;
    border: 1px solid lightgrey;
    overflow: hidden;
    background: white;
    border-collapse: separate;
    margin: 12px 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.k-grid-toolbar {
    background: white;
    border: 0 transparent;
}

.k-grouping-header {
    background: white;
    border: 0 transparent;
}

.k-grid-pager {
    background: white;
    border-top-style: solid !important;
    border-top-color: lightgrey;
    border-top-width: 1px;
}

.k-grid th {
    background-color: white;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    border: 0 solid transparent !important;
}

.k-grid td {
    border-left-style: solid;
    border-left-color: lightgrey;
    border-left-width: 1px;
    vertical-align: center !important;;
}

div.k-grid tr.k-alt {
    background-color: transparent;
}

.k-chart {
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 10px;
    border-collapse: separate;
    margin: 12px 0;
    padding: 0;
    box-shadow: 4px 3px 14px 0 rgb(151 161 155 / 40%);
    border: 1px solid lightgrey;
}


/* Grid border*/
.cellBorderSuccess {
    border-radius: 7px !important;
    border-left-style: solid !important;
    border-left-color: green !important;
    border-left-width: 7px !important;
}

.cellBorderWarning {
    border-left-style: solid !important;
    border-left-color: orange !important;
    border-left-width: 7px !important;
    border-radius: 7px !important;
}

.cellBorderDanger {
    border-left-style: solid !important;
    border-left-color: red !important;
    border-left-width: 7px !important;
    border-radius: 7px !important;
}

.cellBorderDark {
    border-left-style: solid !important;
    border-left-color: black !important;
    border-left-width: 7px !important;
    border-radius: 7px !important;
}


/* Progress Bar Enhancements */

.progress {
    height: 20px; /* Maintain the height as specified in your inline style */
    background-color: #e9ecef; /* A lighter grey for the unfilled part of the progress bar */
    border-radius: 0.5rem; /* Rounded corners for a modern look */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Inner shadow for depth */
}

.progress-bar {
    font-weight: 600; /* Make the text a little bolder */
    color: #ffffff; /* White text for better readability */
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); /* Subtle gloss effect */
    transition: width 0.6s ease; /* Smooth transition for bar animation */
}

/* Specific colors for different types of progress bars based on the context */
.progress-bar.bg-success {
    background-color: #28a745; /* Green */
}

.progress-bar.bg-info {
    background-color: #17a2b8; /* Blue */
}

.progress-bar.bg-warning {
    background-color: #ffc107; /* Yellow */
}

.progress-bar.bg-danger {
    background-color: #dc3545; /* Red */
}

.k-input {
    border-top:1px;
    border-left:1px;
    border-right:1px;
    background-color: #F5F5F5;
}


.desktop-only {
    display: none;
}
.mobile-only {
    display: none;
}

@media (min-width: 992px) { /* Adjust to match Bootstrap's 'lg' breakpoint */
    .desktop-only {
        display: block !important; /* Use !important to override inline styles if necessary */
    }
}

@media (max-width: 991px) { /* Adjust to match Bootstrap's 'md' breakpoint */
    .mobile-only {
        display: block !important;
    }
}







