html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

/* ---------- Sticky footer (flexbox) ----------------------------------- */
body.cg-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
}

/* Wraps the header's own container-fluid + main content; grows to push
   the footer to the bottom on short pages, and simply flows above it on
   long pages that scroll. */
.cg-page-wrap {
    flex: 1 0 auto;
    width: 100%;
}

/* Navbar height (Part 5): overrides common-navbar.css, which loads after
   this file, so !important is required here. */
.cg-navbar,
.cg-navbar .container-fluid {
    min-height: 56px !important;
}

/* Page container spacing (Part 5): overrides common-layout.css's .cg-main. */
.cg-main {
    padding-top: 12px !important;
    padding-bottom: 16px !important;
    max-width: 100%;
}

/* ---------- Sticky footer content -------------------------------------- */
.cg-footer {
    flex-shrink: 0;
    height: 42px;
    background: #ffffff;
    border-top: 1px solid var(--cl-border, #E5E7EB);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    font-size: 12px;
    color: #495057;
    flex-wrap: wrap;
}

.cg-footer-left,
.cg-footer-center,
.cg-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cg-footer-sep {
    color: #ced4da;
}

.cg-footer-company {
    color: #6c757d;
}

.cg-footer-center {
    color: #6c757d;
}

.cg-footer-right a {
    color: #495057;
    text-decoration: none;
}

.cg-footer-right a:hover {
    color: var(--cl-primary, #0D6EFD);
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .cg-footer {
        height: auto;
        min-height: 42px;
        justify-content: center;
        text-align: center;
        padding: 6px 12px;
    }
}

.containers {
    width: 300px;
    padding: 20px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
}

/* ---------- Top navbar: single line, compact menu, user avatar ---------- */
.navbar .container-fluid {
    flex-wrap: nowrap;
}

.navbar-collapse {
    flex-wrap: nowrap;
}

.navbar-nav.main-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.navbar-nav.main-menu .nav-link {
    padding-left: .55rem;
    padding-right: .55rem;
    font-size: .92rem;
}

.navbar-nav.main-menu .dropdown-menu {
    font-size: .92rem;
}

.fy-select {
    width: auto;
    max-width: 210px;
    font-size: .82rem;
}

.user-menu .nav-link {
    padding: 0 .25rem;
}

.user-menu .dropdown-toggle::after {
    display: none;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    user-select: none;
}

.user-menu-dropdown {
    min-width: 220px;
}

.did-floating-label-content {
    position: relative;
    margin-bottom: 10px;
}

.did-floating-label {
    color: #1e4c82;
    font-size: 13px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 15px;
    top: 11px;
    padding: 0 5px;
    background: #fff;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.did-floating-input, .did-floating-select {
    font-size: 12px;
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 20px;
    background: #fff;
    color: #323840;
    border: 1px solid #3D85D8;
    border-radius: 4px;
    box-sizing: border-box;
    font-weight: bolder;
}

    .did-floating-input:focus, .did-floating-select:focus {
        outline: none;
    }

        .did-floating-input:focus ~ .did-floating-label, .did-floating-select:focus ~ .did-floating-label {
            top: -8px;
            font-size: 13px;
        }

select.did-floating-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    select.did-floating-select::-ms-expand {
        display: none;
    }

.did-floating-input:not(:placeholder-shown) ~ .did-floating-label {
    top: -8px;
    font-size: 13px;
}

.did-floating-select:not([value=""]):valid ~ .did-floating-label {
    top: -8px;
    font-size: 13px;
}

.did-floating-select[value=""]:focus ~ .did-floating-label {
    top: 11px;
    font-size: 13px;
}

.did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%23003d71'/%3E%3C/svg%3E%0A");
    background-position: right 15px top 50%;
    background-repeat: no-repeat;
}

.did-error-input .did-floating-input, .did-error-input .did-floating-select {
    border: 2px solid #9d3b3b;
    color: #9d3b3b;
}

.did-error-input .did-floating-label {
    font-weight: 600;
    color: #9d3b3b;
}

.field-invalid-highlight {
    border: 2px solid #9d3b3b !important;
    box-shadow: 0 0 6px rgba(157, 59, 59, 0.6);
}

.did-error-input .did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%239d3b3b'/%3E%3C/svg%3E%0A");
}

.input-group {
    display: flex;
}

    .input-group .did-floating-input {
        border-radius: 0 4px 4px 0;
        border-left: 0;
        padding-left: 0;
    }

.input-group-append {
    display: flex;
    align-items: center;
    /*   margin-left:-1px; */
}

.input-group-text {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 34px;
    color: #323840;
    padding: 0 5px 0 20px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #3D85D8;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

dd {
    color: #1e4c82;
    font-size: 13px;
    font-weight: normal;
}

dt {
    font-size: 13px;
    font-weight: bolder;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}

.details dt,
.details dd {
    color: black;
    font-size: 13px;
    font-weight: normal !important;
    padding: 2px;
}




.details dt, .details dd {
    background-color: #ffffff;
}

    .details dt:nth-child(4n+1), .details dt:nth-child(4n+1) + dd {
        background-color: lightyellow;
    }

/* ==========================================================================
   Home dashboard
   Shared by Views/Home/Index.cshtml only. Reuses --cl-primary / --cl-warning
   / --cl-border tokens defined on :root in common-layout.css.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.cg-dash-header {
    margin-bottom: 16px;
}

.cg-dash-greeting {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.cg-dash-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

.cg-dash-datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #495057;
    margin-top: 8px;
}

.cg-dash-datetime span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cg-dash-datetime i {
    color: var(--cl-primary, #0D6EFD);
}

/* ---------------------------------------------------------------------- */
/* Summary cards                                                           */
/* ---------------------------------------------------------------------- */
.cg-dash-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 991.98px) {
    .cg-dash-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .cg-dash-cards {
        grid-template-columns: 1fr;
    }
}

.cg-dash-card {
    background: #ffffff;
    border: 1px solid var(--cl-border, #E5E7EB);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cg-dash-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #fff8e1;
    color: #b8860b;
}

.cg-dash-card-icon.cg-dash-icon-blue {
    background: #e7f1ff;
    color: var(--cl-primary, #0D6EFD);
}

.cg-dash-card-icon.cg-dash-icon-green {
    background: #e6f6ec;
    color: #198754;
}

.cg-dash-card-icon.cg-dash-icon-red {
    background: #fdecec;
    color: #dc3545;
}

.cg-dash-card-body {
    min-width: 0;
}

.cg-dash-card-count {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    line-height: 1.15;
}

.cg-dash-card-count.cg-dash-highlight {
    color: #b8860b;
}

.cg-dash-card-label {
    font-size: 13px;
    color: #6c757d;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------------- */
/* Section titles + quick actions                                          */
/* ---------------------------------------------------------------------- */
.cg-dash-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.cg-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.cg-dash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--cl-border, #E5E7EB);
    color: #212529;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cg-dash-action-btn i {
    font-size: 16px;
    color: var(--cl-primary, #0D6EFD);
}

.cg-dash-action-btn:hover {
    background: var(--cl-warning, #FFC107);
    border-color: var(--cl-warning, #FFC107);
    color: #212529;
    text-decoration: none;
}

.cg-dash-action-btn.cg-dash-disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* Bottom row: activities + side panels                                    */
/* ---------------------------------------------------------------------- */
.cg-dash-bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .cg-dash-bottom-row {
        grid-template-columns: 1fr;
    }
}

.cg-dash-panel {
    background: #ffffff;
    border: 1px solid var(--cl-border, #E5E7EB);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 16px;
}

.cg-dash-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------------- */
/* Recent activities table                                                 */
/* ---------------------------------------------------------------------- */
.cg-dash-activity-wrap {
    max-height: 320px;
    overflow-y: auto;
}

.cg-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.cg-dash-table th {
    position: sticky;
    top: 0;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    background: #ffffff;
    padding: 6px 8px;
    border-bottom: 1px solid var(--cl-border, #E5E7EB);
}

.cg-dash-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f3f5;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1px;
}

.cg-dash-table tr:last-child td {
    border-bottom: none;
}

/* ---------------------------------------------------------------------- */
/* Today's collection summary + pending tasks                              */
/* ---------------------------------------------------------------------- */
.cg-dash-summary-list,
.cg-dash-task-list {
    display: flex;
    flex-direction: column;
}

.cg-dash-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--cl-border, #E5E7EB);
}

.cg-dash-summary-row:last-child {
    border-bottom: none;
}

.cg-dash-summary-label {
    color: #6c757d;
}

.cg-dash-summary-value {
    font-weight: 700;
    color: #212529;
}

.cg-dash-summary-value.cg-dash-highlight {
    color: #b8860b;
}

.cg-dash-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding: 7px 0;
    color: #212529;
}

.cg-dash-task-badge {
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--cl-warning, #FFC107);
    color: #212529;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Announcements                                                           */
/* ---------------------------------------------------------------------- */
.cg-dash-announcement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #495057;
}

.cg-dash-announcement i {
    font-size: 18px;
    color: var(--cl-primary, #0D6EFD);
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Card title / typography helpers (Part 5)                                */
/* ---------------------------------------------------------------------- */
.cg-dash-panel-title,
.cg-dash-card-label {
    font-size: 13px;
}

.cg-dash-card-count {
    font-size: 24px;
}