/* Keep the desktop admin sidebar collapsed on hover. */
.page-header h2 {
    border-bottom-color: #CCC !important;
}

.page-header {
    position: relative;
}

.page-scroll-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #CCC;
    z-index: 2;
}

.page-scroll-progress-bar {
    height: 100%;
    width: 0;
    background: #0088CC;
    transition: width 80ms linear;
}

/* Keep the Helpline log filters aligned instead of allowing oversized grid columns to wrap. */
.helpline-log-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .85fr) minmax(0, 1.1fr) 104px 88px 120px;
    align-items: center;
    gap: 10px;
}

.helpline-log-add-row {
    margin-bottom: 10px;
}

/* Keep the Add New Log form calm and easy to scan during a phone call. */
.helpline-add-log-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 1080px;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    margin: 16px auto;
}

.helpline-add-log-modal .modal-content {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(20, 39, 63, .2);
}

/* The form wraps the modal sections, so it must share the modal's flex height. */
.helpline-add-log-modal .modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.helpline-log-modal-header {
    align-items: flex-start;
    padding: 22px 28px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e5ebf2;
}

.helpline-log-modal-header .modal-title {
    margin: 0;
    color: #172b4d;
    font-size: 22px;
    font-weight: 700;
}

.helpline-log-modal-subtitle {
    margin: 5px 0 0;
    color: #6b7b91;
    font-size: 14px;
}

.helpline-add-log-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 24px 28px 8px;
    background: #f5f8fb;
}

.helpline-add-log-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.helpline-add-log-modal .modal-body::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 8px;
}

.helpline-add-log-modal .modal-body::-webkit-scrollbar-thumb {
    background: #b8c8d8;
    border-radius: 8px;
}

.helpline-add-log-modal .modal-body {
    scrollbar-color: #b8c8d8 #edf2f7;
    scrollbar-width: thin;
}

.helpline-form-section {
    margin-bottom: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 13px;
}

.helpline-form-section-last {
    margin-bottom: 0;
}

.helpline-form-section-auto {
    background: linear-gradient(135deg, #f3f9ff 0%, #fff 72%);
    border-color: #cfe3f5;
}

.helpline-form-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.helpline-form-section-heading h6 {
    margin: 0;
    color: #203b5c;
    font-size: 16px;
    font-weight: 700;
}

.helpline-form-section-heading p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 13px;
}

.helpline-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #17623b;
    background: #e7f6ed;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.helpline-auto-filled[readonly],
.helpline-auto-fields .form-control,
.helpline-deadline-fields .form-control {
    color: #1f4265;
    background: #edf6ff;
    border-color: #c8dfef;
    font-weight: 600;
}

.helpline-add-log-modal .form-label {
    margin-bottom: 7px;
    color: #2b405b;
    font-size: 13px;
    font-weight: 700;
}

.helpline-add-log-modal .form-control {
    min-height: 44px;
    border-radius: 9px;
    border-color: #d7e0e9;
}

.helpline-add-log-modal textarea.form-control {
    min-height: 88px;
    resize: vertical;
}

.helpline-add-log-modal .form-control:focus {
    border-color: #198dcc;
    box-shadow: 0 0 0 .2rem rgba(25, 141, 204, .12);
}

.helpline-log-modal-footer {
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e5ebf2;
    color: #748297;
    font-size: 13px;
}

.helpline-log-modal-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.helpline-log-modal-footer .btn {
    min-width: 104px;
    min-height: 40px;
    border-radius: 8px;
}

@media only screen and (max-width: 767px) {
    .helpline-add-log-modal .modal-dialog {
        width: calc(100% - 16px);
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
    }

    .helpline-log-modal-header,
    .helpline-add-log-modal .modal-body,
    .helpline-log-modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .helpline-form-section {
        padding: 16px;
    }

    .helpline-form-section-heading,
    .helpline-log-modal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .helpline-log-modal-footer > div {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .helpline-log-modal-footer .btn {
        flex: 1;
    }
}

.helpline-log-filter-row,
.helpline-log-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpline-log-filter-row {
    display: contents;
    min-width: 0;
}

.helpline-log-filter-row > div {
    flex: initial;
    min-width: 0;
}

.helpline-log-filter-row .helpline-log-search {
    min-width: 0;
}

.helpline-log-filter-row .helpline-log-department {
    min-width: 0;
}

.helpline-log-toolbar .form-control {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.helpline-log-actions {
    display: contents;
    white-space: nowrap;
}

.helpline-log-actions .btn {
    min-height: 40px;
    width: 100%;
    white-space: nowrap;
}

.helpline-log-actions .dropdown {
    min-width: 0;
}

.helpline-log-action-menu {
    display: inline-block;
    position: relative;
}

.helpline-log-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 7px;
}

.helpline-log-action-button i {
    font-size: 18px;
}

.helpline-log-action-menu .dropdown-menu {
    min-width: 190px;
    padding: 6px;
    z-index: 1060;
}

.helpline-log-action-menu .dropdown-item,
.helpline-log-action-menu .dropdown-item-text {
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 5px;
    font-size: 13px;
}

.helpline-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Prevent Bootstrap modals from changing the page width when the scrollbar is hidden. */
body.modal-open {
    padding-right: 0 !important;
}

.helpline-contact-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.helpline-info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.helpline-dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #dce5ed;
    border-left: 4px solid #0088cc;
    border-radius: 6px;
    background: linear-gradient(110deg, #ffffff 0%, #f7fbfe 100%);
    box-shadow: 0 2px 8px rgba(31, 60, 85, 0.06);
}

.helpline-dashboard-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.helpline-dashboard-toolbar h3 {
    margin: 0;
    color: #1f2937;
    font-size: 19px;
    font-weight: 600;
}

.helpline-dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    background: #0088cc;
}

.helpline-dashboard-year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 0;
}

.helpline-dashboard-year-filter label {
    color: #536273;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.helpline-dashboard-year-filter select {
    min-width: 120px;
    min-height: 36px;
    border: 0;
    box-shadow: none;
}

.helpline-comparison-chart-wrap {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #e2e9ef;
    border-radius: 10px;
    background: #f8fbfd;
}

.helpline-comparison-chart-heading {
    margin-bottom: 16px;
}

.helpline-comparison-chart-title {
    margin: 0 0 5px;
    color: #26384a;
    font-size: 16px;
    font-weight: 700;
}

.helpline-comparison-chart-subtitle {
    color: #7a8794;
    font-size: 12px;
}

.helpline-year-status-list {
    display: grid;
    gap: 10px;
}

.helpline-year-status-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    background: #fff;
}

.helpline-year-status-year {
    color: #27394b;
    font-size: 17px;
    font-weight: 700;
}

.helpline-year-status-detail {
    min-width: 0;
}

.helpline-year-status-track {
    display: flex;
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef3;
}

.helpline-year-status-resolved,
.helpline-year-status-unresolved {
    display: block;
    height: 100%;
}

.helpline-year-status-resolved {
    background: #47a447;
}

.helpline-year-status-unresolved {
    background: #ed9c28;
}

.helpline-year-status-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 9px;
    color: #5f7080;
    font-size: 12px;
}

.helpline-year-status-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.helpline-year-status-breakdown strong {
    color: #30455a;
    font-weight: 700;
}

.helpline-year-status-total {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    color: #7a8794;
    font-size: 12px;
    white-space: nowrap;
}

.helpline-year-status-total strong {
    color: #26384a;
    font-size: 18px;
    line-height: 1.2;
}

.helpline-year-status-empty {
    padding: 8px 0;
    color: #8795a2;
    font-size: 12px;
}

.helpline-assistant-table-wrap {
    overflow: visible;
    padding: 0 14px 14px;
}

.helpline-assistant-table-wrap .dropdown-menu {
    z-index: 1080;
}

.helpline-assistant-card {
    overflow: visible;
    border: 1px solid #dfe6ec;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(31, 60, 85, 0.06);
}

.helpline-assistant-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
}

.helpline-assistant-card-header .card-title {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.helpline-assistant-card-subtitle {
    color: #7b8794;
    font-size: 12px;
}

.helpline-assistant-count {
    padding: 5px 10px;
    border: 1px solid #d9e5ee;
    border-radius: 999px;
    color: #536273;
    background: #f5f9fc;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.helpline-assistant-table {
    width: 100%;
    table-layout: fixed;
    border: 1px solid #e1e7ed;
    border-radius: 6px;
    overflow: visible;
}

.helpline-assistant-table th {
    padding: 12px 14px;
    border-bottom: 1px solid #d9e1e8;
    color: #687789;
    background: #f7fafc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.helpline-assistant-table td {
    padding: 14px;
    border-bottom: 0;
    color: #26384a;
    font-size: 13px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.helpline-assistant-table tbody tr:hover {
    background: #f8fbfd;
}

.assistant-username-column { width: 33%; }
.assistant-name-column { width: 22%; }
.assistant-designation-column { width: 20%; }
.assistant-status-column { width: 13%; }
.assistant-action-column { width: 12%; }

.assistant-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.assistant-status-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.assistant-status-active {
    color: #177245;
    background: #e8f7ef;
}

.assistant-status-suspended {
    color: #8a5a00;
    background: #fff4d6;
}

.assistant-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d5dfe8;
    border-radius: 6px;
    color: #536273;
    background: #fff;
}

.assistant-action-button:hover,
.assistant-action-button:focus,
.assistant-action-button[aria-expanded="true"] {
    border-color: #0088cc;
    color: #0088cc;
    background: #f2faff;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.1);
}

.helpline-dropdown-settings-card {
    border: 1px solid #dfe6ec;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(31, 60, 85, 0.06);
}

.helpline-dropdown-body {
    padding: 22px 24px 26px;
}

.helpline-dropdown-admin-badge {
    padding: 6px 10px;
    border: 1px solid #cfe1ef;
    border-radius: 999px;
    color: #245579;
    background: #f3f9fd;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.helpline-dropdown-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 5px;
    border-radius: 10px;
    background: #f0f4f8;
}

.helpline-dropdown-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 7px;
    color: #53677c;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.helpline-dropdown-tab:hover,
.helpline-dropdown-tab:focus-visible {
    color: #006da6;
    background: #fff;
}

.helpline-dropdown-tab.active {
    color: #075b89;
    background: #fff;
    box-shadow: 0 1px 5px rgba(25, 55, 80, 0.12);
}

.helpline-dropdown-tab-count {
    min-width: 23px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #61778a;
    background: #e3ebf2;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

.helpline-dropdown-tab.active .helpline-dropdown-tab-count {
    color: #075b89;
    background: #e5f3fb;
}

.helpline-dropdown-panel-heading,
.helpline-dropdown-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.helpline-dropdown-panel-heading {
    margin: 25px 0 18px;
}

.helpline-dropdown-panel-heading h3 {
    margin: 0 0 4px;
    color: #25394e;
    font-size: 18px;
    font-weight: 600;
}

.helpline-dropdown-panel-heading p,
.helpline-dropdown-list-heading span {
    margin: 0;
    color: #718195;
    font-size: 12px;
}

.helpline-dropdown-option-count {
    padding: 5px 10px;
    border: 1px solid #dce7ef;
    border-radius: 999px;
    color: #526b7d;
    background: #f8fbfd;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.helpline-dropdown-add-form {
    padding: 16px 18px;
    border: 1px solid #e1e9f0;
    border-radius: 9px;
    background: #f8fafc;
}

.helpline-dropdown-add-form .form-label {
    margin-bottom: 8px;
    color: #304b63;
    font-size: 12px;
    font-weight: 600;
}

.helpline-dropdown-add-controls,
.helpline-dropdown-edit-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpline-dropdown-add-controls .form-control,
.helpline-dropdown-edit-form .form-control {
    min-width: 0;
}

.helpline-dropdown-add-controls .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.helpline-dropdown-list-heading {
    margin: 24px 0 12px;
}

.helpline-dropdown-list-heading h4 {
    margin: 0;
    color: #304b63;
    font-size: 14px;
    font-weight: 600;
}

.helpline-dropdown-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    max-height: 420px;
    padding: 2px 6px 2px 2px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.helpline-dropdown-option-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 5px;
    border: 1px solid #e1e8ef;
    border-radius: 7px;
    background: #fff;
}

.helpline-dropdown-option-row:focus-within {
    border-color: #88c8e9;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.08);
}

.helpline-dropdown-option-row .helpline-dropdown-edit-form {
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
}

.helpline-dropdown-edit-form .form-control {
    height: 34px;
    padding: 5px 8px;
    border-color: transparent;
    background: transparent;
    color: #273d50;
    font-size: 13px;
    text-overflow: ellipsis;
}

.helpline-dropdown-edit-form .form-control:hover,
.helpline-dropdown-edit-form .form-control:focus {
    border-color: #cbdde9;
    background: #fff;
    text-overflow: clip;
}

.helpline-dropdown-option-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
}

.helpline-dropdown-save-button {
    color: #0079ba;
}

.helpline-dropdown-save-button:hover,
.helpline-dropdown-save-button:focus-visible {
    color: #005b8d;
    background: #e8f5fc !important;
}

.helpline-dropdown-delete-button {
    color: #cc4050;
}

.helpline-dropdown-delete-button:hover,
.helpline-dropdown-delete-button:focus-visible {
    color: #ad1f34;
    background: #fff0f2 !important;
}

.helpline-dropdown-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 22px;
    border: 1px dashed #d7e2ea;
    border-radius: 7px;
    color: #718195;
    background: #fafcfe;
    font-size: 13px;
    text-align: center;
}

@media only screen and (max-width: 1100px) {
    .helpline-dropdown-option-list {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 767px) {
    .helpline-dropdown-body {
        padding: 18px 14px;
    }

    .helpline-dropdown-tabs {
        width: 100%;
    }

    .helpline-dropdown-tab {
        flex: 1 1 auto;
    }

    .helpline-dropdown-panel-heading,
    .helpline-dropdown-list-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .helpline-dropdown-add-controls {
        align-items: stretch;
        flex-direction: column;
    }
}

@media only screen and (max-width: 767px) {
    .helpline-assistant-table-wrap {
        overflow-x: auto;
        padding: 0 10px 10px;
    }

    .helpline-assistant-table {
        min-width: 650px;
    }
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-total {
    background: #0088cc;
}

.legend-resolved {
    background: #47a447;
}

.legend-unresolved {
    background: #ed9c28;
}

.helpline-info-card-header .card-title {
    line-height: 1.35;
}

.helpline-document-list {
    display: grid;
    gap: 10px;
}

.helpline-document-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e4e8ed;
    border-radius: 6px;
    background: #fafbfc;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.helpline-document-item a,
.helpline-external-link {
    color: #087fca;
    text-decoration: none;
}

.helpline-document-item a:hover,
.helpline-external-link:hover {
    text-decoration: underline;
}

.helpline-pdf-manage-list {
    display: grid;
    gap: 10px;
}

.helpline-pdf-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e4e8ed;
    border-radius: 6px;
}

.helpline-pdf-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.helpline-pdf-upload-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.helpline-contact-card {
    overflow: hidden;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.helpline-contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #fff;
    background: #1f2937;
}

.helpline-contact-card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.helpline-contact-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.helpline-contact-card-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
}

.helpline-contact-menu-button::after {
    display: none;
}

.helpline-contact-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    color: #1f2937;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.helpline-contact-card-body {
    padding: 4px 16px 10px;
}

.helpline-contact-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f2;
}

.helpline-contact-row:last-child {
    border-bottom: 0;
}

.helpline-contact-label {
    color: #687385;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.helpline-contact-value {
    color: #252b33;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.helpline-contact-phone-list span {
    display: block;
    white-space: nowrap;
}

.helpline-officer-list > span {
    display: block;
    margin-bottom: 8px;
}

.helpline-officer-list > span:last-child {
    margin-bottom: 0;
}

.helpline-contact-staff-list span {
    display: block;
    margin-bottom: 5px;
}

.helpline-contact-staff-list span:last-child {
    margin-bottom: 0;
}

.helpline-staff-contact-fields {
    display: grid;
    gap: 8px;
}

.helpline-staff-contact-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.helpline-staff-contact-entry .form-control {
    flex: 1 1 auto;
}

.helpline-staff-contact-entry .btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
}

@media only screen and (max-width: 575px) {
    .helpline-dashboard-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .helpline-dashboard-year-filter {
        width: 100%;
        justify-content: space-between;
    }

    .helpline-comparison-chart-wrap {
        padding: 16px;
    }

    .helpline-year-status-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 14px;
    }

    .helpline-year-status-detail {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .helpline-year-status-total {
        grid-column: 2;
        grid-row: 1;
    }

    .helpline-info-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .helpline-pdf-manage-item,
    .helpline-pdf-upload-row {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .helpline-contact-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .helpline-contact-grid {
        grid-template-columns: 1fr;
    }

    .helpline-contact-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media only screen and (max-width: 1100px) {
    .helpline-log-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helpline-log-filter-row {
        width: auto;
    }

    .helpline-log-actions {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .helpline-log-toolbar {
        grid-template-columns: 1fr;
    }

    .helpline-log-filter-row,
    .helpline-log-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .helpline-log-filter-row > div,
    .helpline-log-filter-row .helpline-log-search,
    .helpline-log-filter-row .helpline-log-department {
        flex: 1 1 100%;
    }
}

@media only screen and (min-width: 768px) {
    html.sidebar-left-collapsed .sidebar-left .nano,
    html.sidebar-left-collapsed .sidebar-left .nano:hover,
    html.sidebar-left-collapsed .sidebar-left .nano.hovered {
        width: 73px !important;
    }

    html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main a span,
    html.sidebar-left-collapsed .sidebar-left .nano.hovered .nav-main a span {
        visibility: hidden !important;
    }

    html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main li.nav-parent > ul.nav-children,
    html.sidebar-left-collapsed .sidebar-left .nano.hovered .nav-main li.nav-parent > ul.nav-children {
        display: none !important;
    }

    html.sidebar-left-collapsed .sidebar-left .nano:hover .nav-main li.nav-parent a:after,
    html.sidebar-left-collapsed .sidebar-left .nano.hovered .nav-main li.nav-parent a:after {
        display: none !important;
    }
}

.assistant-dashboard-page {
    background: #f5f7fa;
}

.assistant-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid #dce7f0;
    border-radius: 10px;
    background: linear-gradient(120deg, #ffffff 0%, #edf7fc 100%);
    box-shadow: 0 3px 14px rgba(31, 60, 85, 0.07);
}

.assistant-dashboard-hero-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.assistant-dashboard-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #fff;
    background: #0088cc;
    font-size: 24px;
}

.assistant-dashboard-eyebrow {
    color: #0088cc;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.assistant-dashboard-hero h3 {
    margin: 0 0 3px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 600;
}

.assistant-dashboard-hero p:last-child {
    color: #697887;
    font-size: 13px;
}

.assistant-dashboard-action {
    white-space: nowrap;
}

.assistant-dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 20px;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    background: #fff;
}

.assistant-dashboard-toolbar h4 {
    color: #26384a;
    font-size: 16px;
    font-weight: 600;
}

.assistant-dashboard-year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.assistant-dashboard-year-filter label {
    color: #536273;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.assistant-dashboard-year-filter select {
    min-width: 120px;
}

.assistant-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.assistant-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 18px 20px;
    border: 1px solid #dfe6ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31, 60, 85, 0.05);
}

.assistant-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    font-size: 22px;
}

.assistant-stat-card-blue .assistant-stat-icon { background: #0088cc; }
.assistant-stat-card-orange .assistant-stat-icon { background: #ed9c28; }
.assistant-stat-card-green .assistant-stat-icon { background: #47a447; }

.assistant-stat-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.assistant-stat-label {
    color: #697887;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.assistant-stat-card strong {
    color: #26384a;
    font-size: 26px;
    line-height: 1;
}

.assistant-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 16px;
}

.assistant-dashboard-panel {
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid #dfe6ec;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(31, 60, 85, 0.05);
}

/* The theme adds a top margin to adjacent cards; grid panels already have their own gap. */
.assistant-dashboard-grid .card + .card {
    margin-top: 0;
}

.assistant-dashboard-panel .card-header {
    padding: 16px 20px;
    background: #fff;
}

.assistant-dashboard-panel .card-title {
    margin: 0;
    color: #26384a;
    font-size: 16px;
    font-weight: 600;
}

.assistant-deadline-panel {
    margin-bottom: 16px;
}

.assistant-deadline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.assistant-deadline-subtitle {
    margin: 4px 0 0;
    color: #7a8794;
    font-size: 12px;
}

.assistant-deadline-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    color: #697887;
    font-size: 12px;
    white-space: nowrap;
}

.assistant-deadline-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.assistant-deadline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.assistant-deadline-dot-first { background: #47a447; }
.assistant-deadline-dot-second { background: #ed9c28; }
.assistant-deadline-dot-final { background: #d9534f; }

.assistant-deadline-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}

.assistant-deadline-table th,
.assistant-deadline-table td {
    vertical-align: middle;
}

.assistant-deadline-table th {
    white-space: nowrap;
}

.assistant-deadline-table th:nth-child(4),
.assistant-deadline-table td:nth-child(4) {
    text-align: center;
}

.assistant-dashboard-page .assistant-deadline-table th:nth-child(3),
.assistant-dashboard-page .assistant-deadline-table td:nth-child(3) {
    text-align: center;
}

.assistant-deadline-table th:nth-child(1) { width: 11%; }
.assistant-deadline-table th:nth-child(2) { width: 21%; }
.assistant-deadline-table th:nth-child(3) { width: 16%; }
.assistant-deadline-table th:nth-child(4) { width: 18%; }
.assistant-deadline-table th:nth-child(5),
.assistant-deadline-table th:nth-child(6),
.assistant-deadline-table th:nth-child(7) { width: 12%; }
.assistant-deadline-table th:nth-child(8) { width: 12%; }

.dashboard-ping-button {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.assistant-deadline-value {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.assistant-current-deadline {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    text-align: center;
}

.assistant-current-deadline-stage {
    display: inline-flex;
    width: max-content;
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.assistant-current-deadline strong {
    color: #26384a;
    font-size: 13px;
    white-space: nowrap;
}

.assistant-current-deadline small {
    flex-basis: 100%;
    color: #7a8794;
    font-size: 11px;
    text-align: center;
}

.assistant-deadline-first {
    color: #177245;
    background: #e7f6ed;
}

.assistant-deadline-second {
    color: #8a5a00;
    background: #fff4d6;
}

.assistant-deadline-final {
    color: #a52621;
    background: #fde8e8;
}

.assistant-log-table th,
.assistant-year-table th {
    color: #536273;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.assistant-log-table td,
.assistant-year-table td {
    vertical-align: middle;
}

.assistant-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.assistant-status-resolved {
    color: #19713b;
    background: #e4f6eb;
}

.assistant-status-pending {
    color: #946200;
    background: #fff1d7;
}

@media only screen and (max-width: 900px) {
    .assistant-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 575px) {
    .assistant-dashboard-hero,
    .assistant-dashboard-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .assistant-dashboard-action,
    .assistant-dashboard-year-filter,
    .assistant-dashboard-year-filter select {
        width: 100%;
    }

    .assistant-deadline-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .assistant-deadline-legend {
        justify-content: flex-start;
    }

    .assistant-stat-grid {
        grid-template-columns: 1fr;
    }
}
