:root {
    --pastel-blue: #0ba8f7;
    --pastel-blue-dark: #00529a;
    --accent-blue: #5B9BD5;
    --accent-green: #14967f;
    --accent-green-light: #e2fcd6;
    --accent-red: #c50417;
    --white: #FFFFFF;
    --text-dark: #00070e;
    --gray-muted: #7B8794;

    /* ADDED — one place to change the green used on every card border */
    --card-accent: var(--accent-green);
    --card-accent-hover: #0f7a67;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    background: linear-gradient(200deg, var(--accent-blue) 0%, var(--white) 50%, var(--accent-blue) 100%);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    font-size: 1rem;
}


.elocate-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--accent-green);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    /* Sticky header */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}


.elocate-header img.logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    margin-right: 6px;   
}

.elocate-header .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.elocate-header .brand-text .brand-title {
    font-weight: 700;
    font-size: 1.7rem;   /* was 1.35rem — made larger again */
    color: var(--pastel-blue-dark);
    letter-spacing: 0.3px;
}

.elocate-header .brand-text .brand-subtitle {
    font-size: 0.75rem;
    color: var(--gray-muted);
    letter-spacing: 0.2px;
}

.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.elocate-card {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid var(--pastel-blue-dark);
    border-top: 5px solid var(--pastel-blue-dark);
    box-shadow: 0 10px 28px rgba(91, 155, 213, 0.28);
    overflow: hidden;
    width: 100%;
}

.elocate-card .card-header-custom {
    background-color: #01224f;
    padding: 24px 30px;
    text-align: center;
    border-bottom: 3px solid var(--pastel-blue-dark);
}

.elocate-card .card-header-custom h3 {
    margin: 0;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 1.45rem;
}


.elocate-card .card-header-custom h5 {
    margin: 0;
    color: var(--white);
    font-weight: 700;
}

.elocate-card .card-header-custom p {
    margin: 6px 0 0;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.92;
}

.elocate-card .card-header-custom p.home-facility-address {
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.elocate-card .card-body-custom {
    padding: 24px 30px;
}

.card-body-custom .mb-3 {
    margin-bottom: 0.65rem !important;
}

.card-body-custom .mb-2 {
    margin-bottom: 0.4rem !important;
}

.card-body-custom .row.g-3 {
    --bs-gutter-y: 0.65rem;
}

.card-body-custom form > .btn-pastel,
.card-body-custom form > .btn-outline-pastel {
    margin-top: 4px;
}

/* ---- Form labels — base style + icon layout (merged, was declared twice) ---- */
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.field-icon {
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 1px solid #B9CEE0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(91, 155, 213, 0.2);
}

.btn-pastel {
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    width: 100%;
    transition: background-color 0.2s ease-in-out;
}

.btn-pastel:hover {
    background-color: #4a86bd;
    color: var(--white);
}

.btn-outline-pastel {
    background-color: transparent;
    color: var(--pastel-blue-dark);
    border: 1.5px solid var(--accent-blue);
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    width: 100%;
}   

.btn-outline-pastel:hover {
    background-color: var(--accent-blue);
    color: var(--text-dark);
}


.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-muted);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;

    /* Phone-friendly tapping */
    min-width: 44px;
    min-height: 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 5;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--accent-blue);
    outline: none;
}

.password-toggle-btn i {
    font-size: 1.1rem;
    pointer-events: none;
}


.field-hint {
    font-size: 0.7rem;
    color: var(--gray-muted);
    margin-top: 2px;
    letter-spacing: 0.1px;
}

 
.section-title {
    font-weight: 700;
    color: var(--pastel-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.0rem;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 0.82rem;
    color: var(--gray-muted);
    margin-bottom: 12px;
}

.form-footer-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
}

.form-footer-link a {
    color: var(--pastel-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.form-footer-link a:hover {
    text-decoration: underline;
}

.forgot-link-wrap {
    text-align: right;
    margin: -6px 0 16px;
    font-size: 0.82rem;
}

.forgot-link-wrap a {
    color: var(--pastel-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.forgot-link-wrap a:hover {
    text-decoration: underline;
}

.alert-elocate-success {
    background-color: #E6F7EE;
    color: #1E7B45;
    border: 1px solid #BEE8CE;
    border-radius: 8px;
    font-weight: 500;
}

.alert-elocate-error {
    background-color: #f8d2d4;
    color: #df4141;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
    .elocate-card .card-body-custom,
    .elocate-card .card-header-custom {
        padding: 20px;
    }

    .elocate-header {
        padding: 10px 14px;
    }

    .elocate-header .brand-title {
        font-size: 0.95rem;
    }

    .forgot-link-wrap {
        text-align: left;
    }
}

.elocate-layout {
    display: flex;
    min-height: 100vh;
}

.elocate-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #dde3ea;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;   /* accounts for mobile browser address bars */
    transition: width 0.22s ease;
    overflow: hidden;
}



.sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: -4px;
    width: 9px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    background: transparent;
    z-index: 6;
    touch-action: none;
    transition: background 0.18s ease;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle:focus-visible {
    background: rgba(20, 70, 122, 0.10);
    outline: none;
}

.sidebar-resize-grip {
    display: block;
    width: 4px;
    height: 46px;
    border-radius: 4px;
    background: #cfd9e4;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease, height 0.18s ease;
}

.sidebar-resize-handle:hover .sidebar-resize-grip,
.sidebar-resize-handle:focus-visible .sidebar-resize-grip {
    opacity: 1;
    background: #14467a;
    height: 60px;
}


.elocate-sidebar .bi-chevron-left,
.elocate-sidebar .bi-chevron-right {
    display: none !important;
}


.elocate-sidebar.resizing {
    transition: none !important;
}

body.elocate-sidebar-resizing {
    cursor: ew-resize;
    user-select: none;
}

.sidebar-logo {
    position: relative;
}


.elocate-sidebar.collapsed {
    width: 76px;
}

/* FIX: only hide the text labels — the icon wrapper (also a <span>) must stay visible */
.elocate-sidebar.collapsed .sidebar-logo-text,
.elocate-sidebar.collapsed .sidebar-link > span:not(.sidebar-icon-wrap),
.elocate-sidebar.collapsed .sidebar-user-info {
    display: none;
}

.elocate-sidebar.collapsed .sidebar-logo {
    justify-content: center;
    padding: 22px 0;
}

.elocate-sidebar.collapsed .sidebar-link {
    justify-content: center;
}

.elocate-sidebar.collapsed .sidebar-user {
    justify-content: center;
    padding: 10px 0;
}


.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;   
    gap: 12px;
    padding: 14px 20px;   /* was 22px 20px */
    border-bottom: 2px solid var(--pastel-blue-dark);
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   
    text-align: left;
    line-height: 1.2;
}

.sidebar-logo-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.10rem;
    letter-spacing: 0.3px;
    color: #14467a;
}

.sidebar-logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.70rem;
    font-weight: 500;
    color: #7c8a9c;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;        /* lets the nav scroll inside the sidebar so every button stays reachable */
    padding: 8px 8px;     
    display: flex;
    flex-direction: column;
    gap: 2px;            
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;            
    padding: 12px 13px;    
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #3d4a5c;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.10rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-link i {
    font-size: 1rem;
    width: 20px;          
    text-align: center;
}

.sidebar-link:hover {
    background: #eef4fb;
    border-color: #cfe0f2;
    color: #14467a;
}

.sidebar-link:active {
    background: #e2edf9;
    border-color: #a9c8e8;
}

.sidebar-link.active {
    background: #14467a; /* Medical Blue */
    border-color: #14467a;
    color: #ffffff;
    border-left: 4px solid var(--accent-green);
}

.sidebar-link.active:hover {
    background: #103a66;
    border-color: #103a66;
}

/* ---- Footer / logout ---- */
.sidebar-footer {
    padding: 10px 12px;   /* was 14px 12px */
    border-top: 1px solid #e3e8ef;
    display: flex;
    flex-direction: column;
    gap: 8px;             /* was 10px */
    flex-shrink: 0;
}

/* Logout link */
.logout-link {
    color: #df4141;
}

.logout-link:hover {
    background: #f8d2d4;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

#logoutConfirmModal .modal-footer {
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

#logoutConfirmModal .modal-footer .btn-outline-pastel,
#logoutConfirmModal .modal-footer .btn-pastel-danger {
    flex: 1 1 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#logoutConfirmModal .modal-footer .btn-pastel-danger {
    background: #f8d2d4 !important;   /* light red */
    border: 1px solid #df4141 !important;
    color: #df4141 !important;
}


#logoutConfirmModal .modal-footer .btn-pastel-danger:hover {
    background: #df4141 !important;
    border-color: #df4141 !important;
    color: #ffffff !important;
}

/* Dark red when clicked/pressed */
#logoutConfirmModal .modal-footer .btn-pastel-danger:active,
#logoutConfirmModal .modal-footer .btn-pastel-danger:focus {
    background: #b52f2f !important;
    border-color: #b52f2f !important;
    color: #ffffff !important;
}

.sidebar-logo-fullname {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a5a6e;
    line-height: 1.3;
    margin: 4px 0 3px;
    letter-spacing: 0.1px;
}
.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pastel-blue-dark);
    text-decoration: none;
    margin-bottom: 14px;
}

.login-back-link i {
    font-size: 0.95rem;
}

.login-back-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    background: #F7FAFD;
    border: 1px solid #e3e8ef;
}

.sidebar-user-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #14467a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(20, 70, 122, 0.25);
    overflow: hidden;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.sidebar-user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-station {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-station i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* NOTE: the old "@media (max-width: 768px)" rules that shrank the sidebar to an
   icon-only 76px strip and hid its labels/user info were removed. Small screens now
   use the off-canvas drawer defined further down (max-width: 991.98px), which keeps
   every sidebar button visible. */

.elocate-main {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.btn-pastel-danger {
    background: var(--accent-green);
    color: #ffffff;
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 18px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-pastel-danger:hover {
    background: var(--accent-green-light);
    border-color: var(--accent-green-light);
    color: #ffffff;
}


.table-responsive {
    background: var(--white);
    border: 1px solid #C7DCEE;
    border-radius: 10px;
}

.table-elocate {
    font-size: 0.88rem;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    width: 100%;
    margin-bottom: 0;
}

.table-elocate thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-dark);
    background: #EEF4FB;
    font-weight: 800;
    border-bottom: 2px solid var(--accent-blue);
    border-top: 1px solid #B9CEE0;
    white-space: nowrap;
    padding: 8px 10px;
}

.table-elocate td {
    vertical-align: middle;
    padding: 8px 10px;
    border-bottom: 1px solid #C7DCEE;
    background: var(--white);
}

.table-elocate tbody tr:nth-of-type(even) td {
    background: #F7FAFD;
}

.table-elocate tbody tr:hover td {
    background: #EAF3FC;
}

.table-elocate tbody tr:last-child td {
    border-bottom: none;
}

.text-muted-small {
    font-size: 0.78rem;
    color: var(--gray-muted);
}

.btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.9rem;
    border: 1px solid #B9CEE0;
    background: #ffffff;
    color: var(--pastel-blue-dark);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.btn-icon:hover {
    background: #eef4fb;
    border-color: var(--accent-blue);
}

.btn-icon.btn-icon-primary {
    color: var(--pastel-blue-dark);
}

.btn-icon.btn-icon-success {
    color: #1E7B45;
    border-color: #BEE8CE;
}

.btn-icon.btn-icon-success:hover {
    background: #E6F7EE;
    border-color: #1E7B45;
}

.btn-icon.btn-icon-danger {
    color: var(--accent-red);
    border-color: #F1AEB5;
}

.btn-icon.btn-icon-danger:hover {
    background: #f3cfcb;
    border-color: var(--accent-red);
}


.btn-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid #B9CEE0;
    background: #ffffff;
    color: var(--pastel-blue-dark);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
    margin: 2px;
}

.btn-word:hover {
    background: #eef4fb;
    border-color: var(--accent-blue);
    color: var(--pastel-blue-dark);
}

.btn-word.btn-word-primary {
    color: var(--pastel-blue-dark);
}

.btn-word.btn-word-success {
    color: #1E7B45;
    border-color: #BEE8CE;
}

.btn-word.btn-word-success:hover {
    background: #E6F7EE;
    border-color: #1E7B45;
    color: #1E7B45;
}

.btn-word.btn-word-danger {
    color: var(--accent-red);
    border-color: #F1AEB5;
}

.btn-word.btn-word-danger:hover {
    background: #f3cfcb;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ---- Small pending-status badge (used for reset requests) ---- */
.badge-reset-pending {
    display: inline-block;
    background: #FFF4E0;
    color: #B36B00;
    border: 1px solid #FCE1B0;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.btn-pastel-success {
    background: #2ecc71;
    color: #ffffff;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 18px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-pastel-success:hover {
    background: #27ae60;
    border-color: #27ae60;
    color: #ffffff;
}


.status-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    
    letter-spacing: 0.3px;
    padding: 5px 11px;
    border-radius: 999px;
}

.status-pill.status-waiting {
    background: #FFF4E0;
    color: #B36B00;
    border: 1px solid #FCE1B0;
}

.status-pill.status-in_progress {
    background: #E8F1FC;
    color: var(--accent-blue);
    border: 1px solid #C7DFF5;
}

.status-pill.status-completed {
    background: #E6F7EE;
    color: #1E7B45;
    border: 1px solid #BEE8CE;
}

.status-pill.status-cancelled {
    background: #FDEBEC;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

/* ---- Activity Log — login / logout pill ---- */
.status-pill.status-login {
    background: #E6F7EE;
    color: #1E7B45;
    border: 1px solid #BEE8CE;
}

.status-pill.status-logout {
    background: #F1F2F5;
    color: #5B6472;
    border: 1px solid #D8DCE3;
}

.notif-bell {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.18s ease;
}

.notif-bell:hover {
    background: rgba(255, 255, 255, 0.22);
}

.notif-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background:var(--accent-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
}

.notif-item {
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid #dde6ef;
    margin-bottom: 8px;
}

.notif-item.notif-unread {
    background: #EEF4FB;
    border-color: #cfe0f2;
    border-left: 3px solid var(--accent-blue);
}

.notif-message {
    font-size: 0.86rem;
    color: var(--text-dark);
    font-weight: 600;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--gray-muted);
    margin-top: 2px;
}

/* ---- ITR number tag (table + modal header) ---- */
.itr-number-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text-dark);
    background: #EEF4FB;
    border: 1px solid #cfe0f2;
    border-radius: 6px;
    padding: 3px 9px;
}

/* ---- Patient search box (above the table) ---- */
.patient-search-wrap {
    position: relative;
    max-width: 340px;
    flex: 1;
    min-width: 220px;
}

.patient-search-wrap i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--gray-muted);
    font-size: 0.95rem;
}

.patient-search-wrap .form-control {
    padding-left: 34px;
}



.text-completed { color: #1E7B45; }
.text-skipped   { color: #B36B00; }
.text-cancelled { color: var(--accent-red); }

.itr-stepper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 18px 6px 20px;
    background: #F7FAFD;
    border: 1px solid #C7DCEE;
    border-radius: 12px;
}

.itr-stepper-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.itr-stepper-node:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 0;
    border-top: 3px dotted #A9C4DE;
    z-index: 0;
}

.itr-stepper-node.status-completed:not(:first-child)::before,
.itr-stepper-node.status-skipped:not(:first-child)::before {
    border-top-color: #2ecc71;
    border-top-style: solid;
}

.itr-stepper-circle {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #B9CEE0;
    color: var(--gray-muted);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.itr-stepper-node.status-completed .itr-stepper-circle {
    background: #2ecc71;
    border-color: #2ecc71;
    color: var(--white);
}

.itr-stepper-node.status-skipped .itr-stepper-circle {
    background: #f39c12;
    border-color: #f39c12;
    color: var(--white);
}

.itr-stepper-node.status-cancelled .itr-stepper-circle {
    background: #e2edf9;
    border-color: var(--accent-red);
    color: var(--accent-red);
}


.itr-stepper-node.itr-stepper-current .itr-stepper-circle {
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
    font-size: 0.9rem;
    box-shadow: 0 0 0 5px rgba(91, 155, 213, 0.18);
}

.itr-stepper-label {
    margin-top: 8px;
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.itr-stepper-node.itr-stepper-current .itr-stepper-label {
    color: var(--accent-blue);
    font-weight: 700;
}

.itr-stepper-node.status-completed .itr-stepper-label { color: #1E7B45; }
.itr-stepper-node.status-skipped .itr-stepper-label { color: #B36B00; }
.itr-stepper-node.status-cancelled .itr-stepper-label { color: var(--accent-red); }


.itr-steps-list {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 6px;
}

.itr-step-block {
    transition: opacity 0.15s ease;
}

.itr-step-block.itr-row-locked {
    opacity: 0.45;
}

.itr-divider {
    border: none;
    border-top: 1px dashed #C7DCEE;
    margin: 14px 0;
}

.itr-step-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #B9CEE0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}

.itr-step-table.status-completed { border-color: #8FD4AC; }
.itr-step-table.status-skipped { border-color: #F5C36B; }
.itr-step-table.status-cancelled { border-color: var(--accent-red); }

.itr-step-table td {
    padding: 11px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #C7DCEE;
}

.itr-step-table tr:last-child td.itr-step-table-office {
    border-bottom: none;
}

.itr-step-table-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-right: 1px solid #C7DCEE;
}

.itr-step-table-office {
    font-size: 0.75rem;
    color: var(--gray-muted);
    border-right: 1px solid #C7DCEE;
}

.itr-step-table-office i {
    margin-right: 4px;
}

.itr-step-table tr:last-child td.itr-step-table-time {
    border-bottom: none;
}

.itr-step-table-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-muted);
    border-right: 1px solid #C7DCEE;
}

.itr-step-table-time i {
    margin-right: 4px;
    color: var(--accent-blue);
}


.itr-stepper-time {
    margin-top: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray-muted);
    white-space: nowrap;
}

.itr-stepper-node.itr-stepper-current .itr-stepper-time {
    color: var(--accent-blue);
    font-weight: 700;
}

.itr-row-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itr-step-table.status-completed .itr-row-num { background: #2ecc71; }
.itr-step-table.status-skipped .itr-row-num { background: #f39c12; }
.itr-step-table.status-cancelled .itr-row-num { background: var(--accent-red); }

.itr-step-table-status {
    width: 300px;
    text-align: right;
    white-space: nowrap;
}

.itr-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-muted);
    background: var(--white);
    border: 1.5px solid #B9CEE0;
    border-radius: 999px;
    padding: 6px 13px;
    margin: 2px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.itr-pill input[type="checkbox"] {
    display: none;
}

.itr-pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.itr-pill-complete:has(input:checked) {
    background: #E6F7EE;
    border-color: #1E7B45;
    color: #1E7B45;
}

.itr-pill-skip:has(input:checked) {
    background: #FFF4E0;
    border-color: #B36B00;
    color: #B36B00;
}

.itr-pill-cancel:has(input:checked) {
    background: #FDEBEC;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.itr-pill:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.55;
}

.itr-pill:has(input:disabled):hover {
    border-color: #B9CEE0;
    color: var(--gray-muted);
}


.itr-step-locked-note {
    margin-top: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--gray-muted);
    text-align: right;
}

.itr-step-locked-note i {
    margin-right: 3px;
}

@media (max-width: 575.98px) {
    .itr-step-table-status {
        display: block;
        width: auto;
        text-align: left;
    }
    .itr-step-table tr,
    .itr-step-table td {
        display: block;
        width: 100%;
        border-right: none !important;
    }
    .itr-step-locked-note {
        text-align: left;
    }
}




.itr-filter-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    background: #F7FAFD;
    border: 1px solid #C7DCEE;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.itr-filter-search {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.itr-filter-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--gray-muted);
    font-size: 0.95rem;
}

.itr-filter-search .form-control {
    padding-left: 34px;
}

.itr-filter-field {
    min-width: 160px;
}

.itr-filter-date {
    min-width: 150px;
}

.itr-filter-actions {
    display: flex;
    gap: 8px;
}

.itr-filter-actions .btn-pastel,
.itr-filter-actions .btn-outline-pastel {
    white-space: nowrap;
}

/* ---- Patient info summary grid (View modal) ---- */
.itr-view-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}

.itr-view-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.itr-view-meta-item span {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray-muted);
}

.itr-view-meta-item strong {
    font-size: 0.88rem;
    color: var(--text-dark);
}

.itr-view-meta-wide {
    grid-column: span 2;
}

@media (max-width: 767.98px) {
    .itr-view-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    .itr-view-meta-wide {
        grid-column: span 2;
    }
}

.itr-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 15px;
    border-radius: 999px;
    background: #EEF2F6;
    color: var(--gray-muted);
    border: 1.5px solid #B9CEE0;
}

.itr-view-badge.status-completed {
    background: #E6F7EE;
    color: #1E7B45;
    border-color: #1E7B45;
}

.itr-view-badge.status-skipped {
    background: #FFF4E0;
    color: #B36B00;
    border-color: #B36B00;
}

.itr-view-badge.status-cancelled {
    background: #FDEBEC;
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.itr-view-badge-meta {
    margin-top: 5px;
    font-size: 0.68rem;
    color: var(--gray-muted);
}


.profile-banner {
    height: 90px;
    background: linear-gradient(120deg, var(--accent-blue), var(--accent-green));
    border-radius: 14px 14px 0 0;
}

.profile-header-body {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    padding-top: 0 !important;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    margin-top: -46px;
    text-align: left;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--white);
    background: #EEF4FB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-initials {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.avatar-uploading .profile-avatar {
    opacity: 0.5;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    color: var(--white);
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.18s ease;
}

.profile-avatar-edit:hover {
    background: #4a86bd;
}

.profile-header-info {
    padding-bottom: 4px;
    text-align: left;
    min-width: 0;
}

.profile-header-info h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-office-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-muted);
    margin: 4px 0 8px;
}

.form-hint {
    font-size: 0.7rem;
    color: var(--gray-muted);
    margin-top: 4px;
}

.btn-pastel-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.18s ease;
}

.btn-pastel-outline:hover {
    background: var(--accent-blue);
    color: var(--white);
}

/* =========================================================
   PROFILE PAGE — SIMPLE LAYOUT (v2)
   Plain white cards, light border, soft shadow, generous
   whitespace. Replaces the old banner-style header layout
   with a summary card + quick-facts card up top, and a
   two-column editable form row underneath.
   ========================================================= */

.profile-simple-card {
    background: var(--white);
    border: 1px solid #E7EDF3;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(20, 70, 122, 0.06);
    padding: 26px 28px;
}

/* ---- Summary card (avatar + name + contact list) ---- */
.profile-summary-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.profile-summary-info {
    min-width: 0;
    flex: 1;
}

.profile-summary-info h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.profile-summary-office {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-muted);
    margin: 4px 0 10px;
}

.profile-summary-divider {
    border-top: 1px solid #EDF2F7;
    margin: 22px 0 16px;
}

.profile-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.profile-summary-row i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #EEF4FB;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.profile-summary-row span {
    color: var(--gray-muted);
    min-width: 130px;
}

.profile-summary-row strong {
    color: var(--text-dark);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---- Quick-facts card (right column, top row) ---- */
.profile-quick-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-muted);
    margin-bottom: 16px;
}

.profile-quick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #EDF2F7;
    font-size: 0.88rem;
}

.profile-quick-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-quick-row span {
    color: var(--gray-muted);
}

.profile-quick-row strong {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

.profile-simple-header {
    margin-bottom: 18px;
}

.profile-simple-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.profile-simple-header p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--gray-muted);
}

@media (max-width: 575.98px) {
    .profile-simple-card {
        padding: 20px;
    }
    .profile-summary-row span {
        min-width: 100px;
    }
}


.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;        
}

@media (max-width: 991.98px) {
    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .stat-cards-grid { grid-template-columns: 1fr; }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 10px;             /* was 14px */
    background: var(--white);
    border: 1px solid #C7DCEE;
    border-radius: 12px;   /* was 14px */
    padding: 13px 14px;    /* was 18px */
    box-shadow: 0 2px 8px rgba(20, 70, 122, 0.05);
}

.stat-card-icon {
    flex-shrink: 0;
    width: 38px;           /* was 48px */
    height: 38px;          /* was 48px */
    border-radius: 10px;   /* was 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.stat-icon-blue   { background: #E8F1FC; color: var(--accent-blue); }
.stat-icon-orange { background: #FFF4E0; color: #B36B00; }
.stat-icon-green  { background: #E6F7EE; color: #1E7B45; }
.stat-icon-red    { background: #FDEBEC; color: var(--accent-red); }

.stat-card-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.stat-card-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.itr-recent-list {
    display: flex;
    flex-direction: column;
    gap: 2px;              /* was 4px */
}

.itr-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px;      /* was 11px 4px */
    border-bottom: 1px solid #C7DCEE;
}

.itr-recent-item:last-child {
    border-bottom: none;
}

.itr-recent-name {
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}


.personnel-avatar {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #EEF4FB;
    color: var(--accent-blue);
    border: 2px solid rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    overflow: hidden;
}

.personnel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.status-progress-bar {
    display: flex;
    height: 13px;          /* was 18px */
    border-radius: 999px;
    overflow: hidden;
    background: #EEF2F6;
    margin-bottom: 12px;   /* was 16px */
    border: 1px solid #C7DCEE;
}

.status-progress-segment {
    height: 100%;
    transition: width 0.2s ease;
}

.status-seg-waiting     { background: #B36B00; }
.status-seg-in_progress { background: var(--accent-blue); }
.status-seg-completed   { background: #1E7B45; }
.status-seg-cancelled   { background: var(--accent-green); }

/* ---- Legend row under the bar ---- */
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;             /* was 18px */
    font-size: 0.7rem;
    color: var(--gray-muted);
}

.status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;              /* was 7px */
}

.status-legend-item strong {
    color: var(--text-dark);
    margin-left: 2px;
}

.status-legend-dot {
    width: 9px;            /* was 11px */
    height: 9px;           /* was 11px */
    border-radius: 50%;
    display: inline-block;
}

.dash-alert-banner {
    display: flex;
    align-items: center;
    gap: 9px;              /* was 10px */
    background: #FDEBEC;
    border: 1px solid #F1AEB5;
    border-radius: 10px;
    padding: 10px 14px;    /* was 13px 18px */
    font-size: 0.75rem;
    color: var(--text-dark);
}

.dash-alert-banner i {
    color: var(--accent-green);
    font-size: 0.95rem;
}

.stat-card.stat-card-highlight {
    border: 1.5px solid var(--accent-green);
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.18);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;              
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;             /* was 12px */
}

.rating-label {
    flex-shrink: 0;
    width: 78px;           /* was 90px */
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray-muted);
}

.rating-track {
    flex: 1;
    height: 7px;           /* was 9px */
    border-radius: 999px;
    background: #EEF2F6;
    overflow: hidden;
    border: 1px solid #DCE7F1;
}

.rating-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.2s ease;
}

.rating-value {
    flex-shrink: 0;
    width: 72px;           /* was 84px */
    text-align: right;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-dark);
}

.rating-pct {
    font-size: 0.64rem;
    font-weight: 500;
    color: var(--gray-muted);
}

.profile-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent-green);
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-green);
    padding-left: 8px;
}

.profile-section-divider {
    border-top: 1px solid #C7DCEE;
    margin: 24px 0 20px;
}


.landing-body {
    overflow-x: hidden;
}

.landing-header {
    justify-content: flex-start;   /* was space-between — that spread logo/title/nav apart evenly */
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 10px;
    flex-wrap: nowrap;
}

.landing-header .brand-text {
    min-width: 0;
}

.landing-header .brand-text .brand-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-header .brand-text .brand-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;  
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.btn-nav-ghost {
    color: var(--text-dark);
    border: 1.5px solid transparent;
    background: #F1F6FB;
}

.btn-nav-ghost:hover {
    background: #d4f7ec;
    color: var(--accent-green);
}

.btn-nav-outline {
    color: var(--accent-green);
    border: 1.5px solid var(--accent-green);
    background: transparent;
}

.btn-nav-outline:hover {
    background: var(--accent-green);
    color: var(--white);
}

.btn-nav-solid {
    color: var(--white);
    border: 1.5px solid var(--accent-green);
    background: var(--accent-green);
}

.btn-nav-solid:hover {
    background: var(--pastel-blue-dark);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.landing-nav-toggle {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
    background: none;
    border: 1px solid #C7DCEE;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
}

/* ---- Hero ---- */
.landing-hero {
    padding: 34px 24px 40px;
    background:
        radial-gradient(circle at 15% 20%, rgba(91, 155, 213, 0.16), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(230, 57, 70, 0.10), transparent 40%);
}

.landing-hero-split {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: center;
}

.landing-hero-left {
    text-align: left;
}

.landing-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--pastel-blue-dark);
    background: #f1f9ff;
    border: 1px solid var(--accent-green);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.landing-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: #14467a;
    margin-bottom: 10px;
}

.landing-hero-text {
    font-size: 0.95rem;
    color: antiquewhite;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 0 20px;
}

.landing-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-hero-right {
    min-width: 0;
    border: 3px solid var(--accent-green);
    border-radius: 6.5%;
}

@media (max-width: 900px) {
    .landing-hero-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .landing-hero-left {
        text-align: center;
    }

    .landing-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-actions {
        justify-content: center;
    }
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    padding: 11px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(91, 155, 213, 0.32);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-get-started:hover {
    background: #4a86bd;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(91, 155, 213, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1.5px solid #C7DCEE;
    background: var(--white);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ---- Generic landing section wrapper ---- */
.landing-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px;
}

.landing-section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 18px;
}

.landing-section-head .section-title {
    font-size: 1.15rem;
}

.landing-section-head .section-subtitle {
    margin-bottom: 0;
}

/* ---- Carousel ---- */
.landing-carousel-section {
    padding-top: 8px;
    padding-bottom: 8px;
}

.elocate-carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(20, 70, 122, 0.18);
}

.elocate-carousel .carousel-inner {
    aspect-ratio: 16 / 9;
    background: #0b1620;
}

.elocate-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption-elocate {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 28px 20px;
    text-align: left;
    background: linear-gradient(0deg, rgba(0, 7, 14, 0.82) 0%, rgba(0, 7, 14, 0) 100%);
    color: var(--white);
}

.carousel-caption-elocate h5 {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.carousel-caption-elocate p {
    font-size: 0.82rem;
    opacity: 0.92;
    margin: 0;
}

.elocate-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--white);
    opacity: 0.6;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.elocate-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: var(--accent-green);
}

/* ---- Process steps (YAKAP/Konsulta flow) ---- */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.process-step-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--card-accent);   /* CHANGED — accent green border */
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 16px rgba(20, 70, 122, 0.06);
}

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent-blue);
    color: var(--white);
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.process-step-card h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.process-step-card p {
    font-size: 0.82rem;
    color: var(--gray-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.process-step-branch {
    border-color: var(--card-accent);   /* CHANGED — was orange #F5C36B; cream background kept */
    background: #FFFBF3;
}

.process-step-branch .process-step-num {
    background: #f39c12;
}

.process-step-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #B36B00;
    background: #FFF4E0;
    border: 1px solid #FCE1B0;
    border-radius: 999px;
    padding: 3px 10px;
}

@media (max-width: 900px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Vision & Mission ---- */
.landing-vm-section {
    padding-top: 8px;
    padding-bottom: 40px;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.vm-card {
    background: var(--white);
    border: 1.5px solid var(--card-accent);   /* CHANGED — uses the shared card accent */
    border-top: 4px solid var(--card-accent);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 10px 24px rgba(91, 155, 213, 0.14);
}

.vm-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #E8F1FC;
    color: var(--pastel-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.vm-card p {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767.98px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Footer ---- */
.landing-footer {
    background: #0d2038;
    color: #b9c8db;
    padding: 18px 24px;
}

.landing-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-footer-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
    padding: 3px;
}

.landing-footer-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.landing-footer-brand strong {
    color: var(--white);
    font-size: 0.9rem;
}

.landing-footer-brand span {
    font-size: 0.75rem;
    color: #8fa2ba;
}

.landing-footer-copy {
    font-size: 0.76rem;
    margin: 0;
    color: #8fa2ba;
}

/* ---- Landing responsive: nav collapses to a toggle ---- */
@media (max-width: 767.98px) {
    .landing-nav-toggle {
        display: inline-flex;
    }

    .landing-nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 14px;
        gap: 8px;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 3px solid var(--accent-green);
    }

    .landing-nav-actions.is-open {
        display: flex;
    }

    .btn-nav {
        justify-content: center;
        width: 100%;
    }

    .landing-hero {
        padding: 52px 20px 64px;
    }

    .landing-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .elocate-header.landing-header {
        padding: 8px 14px;
    }

    .elocate-header.landing-header img.logo {
        height: 48px;
        width: 48px;
        margin-right: 0;
    }

    .elocate-header.landing-header .brand-title {
        font-size: 1.1rem;
    }

    .elocate-header.landing-header .brand-subtitle {
        font-size: 0.65rem;
    }
}

/* ---- Very small phones (older/compact devices, ~360px and under) ---- */
@media (max-width: 400px) {
    .elocate-header.landing-header .brand-subtitle {
        display: none;
    }

    .landing-hero-title {
        font-size: 1.5rem;
    }

    .landing-hero {
        padding: 40px 16px 52px;
    }

    .landing-section {
        padding: 24px 16px;
    }

    .landing-eyebrow {
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .btn-get-started,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .process-step-card,
    .service-card,
    .right-item,
    .vm-card {
        padding: 14px 14px;
    }
}



.itr-locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.itr-location-card {
    border: 1px solid #C7DCEE;
    border-radius: 14px;
    padding: 18px 20px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(20, 70, 122, 0.06);
    transition: opacity 0.25s ease, box-shadow 0.18s ease;
}

.itr-location-card:hover {
    box-shadow: 0 6px 18px rgba(20, 70, 122, 0.12);
}

.itr-location-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.itr-location-row-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EEF4FB;
    color: var(--accent-blue);
    border: 1.5px solid #C7DFF5;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itr-location-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.itr-location-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.itr-location-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.itr-mini-progress {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #EEF2F6;
    border: 1px solid #DCE7F1;
    overflow: hidden;
}

.itr-mini-progress-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.itr-current-office-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: #E8F1FC;
    border: 1px solid #C7DFF5;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.itr-locations-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--gray-muted);
}

@media (max-width: 575.98px) {
    .itr-location-card-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .itr-location-meta {
        width: 100%;
    }
}



.elocate-card-wide {
    max-width: 1280px;
}

/* ---- Back-to-home button (sits on the dark card header) ---- */
.itr-locations-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.itr-locations-header-text {
    text-align: center;
}

.itr-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.18s ease;
}

.itr-back-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

@media (min-width: 576px) {
    .itr-locations-header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    .itr-back-btn {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.itr-locations-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid #C7DCEE;
    border-radius: 10px;
}

.itr-locations-table {
    width: 100%;
}


.itr-locations-table.table-elocate tbody tr:nth-of-type(even) td {
    background: var(--white);
}

.itr-locations-table .itr-loc-row td {
    background: var(--white);
}

.itr-locations-table .itr-loc-row:nth-of-type(4n+3) td {
    background: #F5F9FD;
}

.itr-locations-table .itr-loc-row:hover td {
    background: #EAF3FC;
}

/* ---- Name cell: patient name + status pill ---- */
.itr-loc-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.itr-loc-progress-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.itr-loc-row td {
    border-bottom: none;
}

.itr-loc-detail-row td {
    border-bottom: 1px solid #C7DCEE;
    padding: 0;
    background: #F7FAFD;
}

.itr-loc-detail-inner {
    background: #F7FAFD;
    padding: 16px 18px;
}

.itr-loc-toggle-btn i {
    transition: transform 0.15s ease;
}

@media (max-width: 575.98px) {
    .itr-locations-header-text h3 {
        font-size: 1.15rem;
    }
    .itr-back-btn {
        position: static;
        transform: none;
        margin-bottom: 8px;
    }
}


@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: visible;
        border: none;
        background: transparent;
    }

    .table-elocate,
    .table-elocate thead,
    .table-elocate tbody,
    .table-elocate tr,
    .table-elocate td,
    .table-elocate th {
        display: block;
        width: 100%;
    }

    .table-elocate thead {
        display: none;
    }

    .table-elocate tbody tr {
        margin-bottom: 12px;
        border: 1px solid #C7DCEE;
        border-radius: 10px;
        background: var(--white) !important;
        overflow: hidden;
    }

    .table-elocate tbody tr:last-child {
        margin-bottom: 0;
    }

    .table-elocate td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
        padding: 9px 12px;
        border-bottom: 1px dashed #E3EBF3;
        background: transparent !important;
    }

    .table-elocate td:last-child {
        border-bottom: none;
    }

   
    .table-elocate td.text-center {
        text-align: right !important;
        justify-content: space-between !important;
    }

    .table-elocate td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--accent-blue);
        text-align: left;
        margin-right: 10px;
        flex-shrink: 0;
    }

    
    .table-elocate td[colspan] {
        display: block;
        text-align: left;
    }

    .table-elocate td[colspan]::before {
        content: none;
    }

    .itr-locations-table .itr-loc-row {
        margin-bottom: 0;
        border-radius: 10px 10px 0 0;
        border-bottom: none;
    }

    .itr-locations-table .itr-loc-detail-row {
        margin-bottom: 12px;
        border: 1px solid #C7DCEE;
        border-top: none;
        border-radius: 0 0 10px 10px;
    }

    .itr-locations-table .itr-loc-detail-row td {
        background: #F7FAFD !important;
    }
}


#registerTypeModal .modal-content {
    border-radius: 16px;
    border: 1px solid var(--pastel-blue-dark);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(20, 70, 122, 0.22);
}

#registerTypeModal .modal-header {
    background: #01224f;
    border-bottom: 3px solid var(--pastel-blue-dark);
    padding: 18px 24px;
}

#registerTypeModal .modal-title {
    color: var(--white);
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#registerTypeModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

#registerTypeModal .btn-close:hover {
    opacity: 1;
}

#registerTypeModal .modal-body {
    padding: 22px 24px 24px;
}

.account-type-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--white);
    border: 1.5px solid #C7DCEE;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.account-type-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 70, 122, 0.12);
}

.account-type-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.account-type-option.account-type-patient .account-type-icon {
    background: #f7e6e7;
    color: var(--accent-green);
}

.account-type-option.account-type-patient:hover {
    border-color: var(--accent-green);
    background: #F4FBF8;
}

/* Personnel / Staff — blue accent (matches .stat-icon-blue elsewhere) */
.account-type-option.account-type-personnel .account-type-icon {
    background: #E8F1FC;
    color: var(--accent-blue);
}

.account-type-option.account-type-personnel:hover {
    border-color: var(--accent-blue);
    background: #F7FAFD;
}

.account-type-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-type-text strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-dark);
}

.account-type-text span {
    font-size: 0.78rem;
    color: var(--gray-muted);
    line-height: 1.4;
}

.account-type-option i.bi-chevron-right {
    margin-left: auto;
    color: var(--gray-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.account-type-option.account-type-patient:hover i.bi-chevron-right {
    color: var(--accent-green);
    transform: translateX(2px);
}

.account-type-option.account-type-personnel:hover i.bi-chevron-right {
    color: var(--accent-blue);
    transform: translateX(2px);
}


.elocate-segmented-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 5px;
    gap: 5px;
    background: #EEF4FB;
    border: 1px solid #C7DCEE;
    border-radius: 12px;
}

.elocate-segmented-tabs .nav-item {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
}

.elocate-segmented-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--pastel-blue-dark);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
    padding: 11px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.elocate-segmented-tabs .nav-link:hover {
    background: rgba(91, 155, 213, 0.14);
    color: var(--pastel-blue-dark);
}

.elocate-segmented-tabs .nav-link.active {
    background: var(--pastel-blue-dark);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(0, 82, 154, 0.28);
}

.elocate-segmented-tabs .nav-link.active:hover {
    background: var(--pastel-blue-dark);
    color: var(--white);
}

.elocate-segmented-tabs .nav-link .badge {
    background: rgba(0, 82, 154, 0.1);
    color: var(--pastel-blue-dark);
    font-weight: 700;
}

.elocate-segmented-tabs .nav-link.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: var(--white) !important;
}

@media (max-width: 575.98px) {
    .elocate-segmented-tabs .nav-link {
        font-size: 0.8rem;
        padding: 10px 6px;
    }
    .elocate-segmented-tabs .nav-link span.badge {
        display: none;
    }
}


.btn-labeled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-labeled i {
    font-size: 1rem;
}

.btn-labeled:active {
    transform: scale(0.97);
}

.btn-labeled-primary {
    background-color: #eaf1ff;
    border-color: #d4e3ff;
    color: #3468d1;
}
.btn-labeled-primary:hover {
    background-color: #dbe8ff;
}

.btn-labeled-success {
    background-color: #e7f8ee;
    border-color: #cdeedd;
    color: #2f9e63;
}
.btn-labeled-success:hover {
    background-color: #d6f2e2;
}

.btn-labeled-danger {
    background-color: #fdecec;
    border-color: #f9d4d4;
    color: #d9534f;
}
.btn-labeled-danger:hover {
    background-color: #fbdcdc;
}

.table-elocate td[data-label="Approval"],
.table-elocate td[data-label="Actions"] {
    white-space: nowrap;
}



.elocate-mobile-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1040;
}
.sidebar-hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px 8px;
}
.elocate-mobile-title {
    font-weight: 600;
}
.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    margin-left: auto;
}

/* Overlay behind mobile sidebar */
.elocate-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1049;
}
.elocate-sidebar-overlay.show {
    display: block;
}

.elocate-no-scroll {
    overflow: hidden;
}

/* Floating hamburger button (rendered by includes/navbar.php) — phones/tablets only */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 1030;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: .6rem;
    background: #14467a;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Small devices: hide sidebar off-canvas, show as drawer */
@media (max-width: 991.98px) {
    .elocate-mobile-topbar {
        display: flex;
    }
    .sidebar-toggle-btn {
        display: inline-flex;
    }

    .elocate-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw) !important;   /* beats the inline width set by the resize script */
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1050;
    }
    .elocate-sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar-resize-handle {
        display: none !important; /* desktop-only resize/collapse control */
    }

    /* Drawer is always the full layout: icons + labels + logo text + user info */
    .elocate-sidebar .sidebar-logo {
        justify-content: flex-start;
        padding: 14px 16px;
    }
    .elocate-sidebar .sidebar-logo img {
        width: 52px;
        height: 52px;
    }
    .elocate-sidebar .sidebar-logo-text,
    .elocate-sidebar .sidebar-user-info {
        display: flex !important;
    }
    .elocate-sidebar .sidebar-logo-fullname {
        display: block !important;
    }
    .elocate-sidebar .sidebar-link {
        justify-content: flex-start;
    }
    .elocate-sidebar .sidebar-link > span:not(.sidebar-icon-wrap) {
        display: inline !important;
    }
    .elocate-sidebar .sidebar-link .sidebar-icon-wrap {
        display: inline-flex !important;
    }
    .elocate-sidebar .sidebar-user {
        justify-content: flex-start;
        padding: 10px 8px;
    }

    /* Page content takes the full width and clears the hamburger button */
    .elocate-main {
        margin-left: 0;
        padding-top: 4rem;
    }
}

@media (min-width: 992px) {
    .sidebar-close-btn {
        display: none;
    }
}


.landing-services-section {
    padding-top: 8px;
    padding-bottom: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--white);
    border: 1.5px solid var(--card-accent);   /* CHANGED — accent green border */
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 16px rgba(20, 70, 122, 0.06);
}

.service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E8F1FC;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-card h6 {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-card-schedule {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-card-schedule li {
    font-size: 0.8rem;
    color: var(--gray-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card-schedule li i {
    color: var(--accent-green);
    font-size: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


.landing-rights-section {
    padding-top: 8px;
    padding-bottom: 40px;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid var(--card-accent);   /* CHANGED — accent green border */
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(20, 70, 122, 0.04);
}

.right-item-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--white);
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-item-text {
    min-width: 0;
}

.right-item-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.right-item-text span {
    font-size: 0.78rem;
    color: var(--gray-muted);
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .rights-grid {
        grid-template-columns: 1fr;
    }
}


@media (prefers-reduced-motion: reduce) {
    .p-home-fade { animation: none !important; }
}

@keyframes pHomeFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.p-home-fade {
    animation: pHomeFadeUp 0.5s ease both;
}


.p-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 34px 32px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(20, 150, 127, 0.35), transparent 50%),
        linear-gradient(120deg, #01224f 0%, var(--pastel-blue-dark) 55%, var(--accent-blue) 100%);
    box-shadow: 0 18px 40px rgba(1, 34, 79, 0.28);
    color: var(--white);
}

.p-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.p-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.p-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.25;
    margin-bottom: 8px;
}

.p-hero-title span {
    color: #9fe0c8;
}

.p-hero-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 0;
}

.p-hero-facility {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 10px;
}

.p-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.p-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.p-hero-btn-solid {
    background: var(--white);
    color: var(--pastel-blue-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.p-hero-btn-solid:hover {
    color: var(--pastel-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.p-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.p-hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.p-hero-art {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--white);
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .p-hero { padding: 26px 20px; text-align: center; }
    .p-hero-inner { flex-direction: column; text-align: center; }
    .p-hero-text { margin: 0 auto; }
    .p-hero-facility { justify-content: center; }
    .p-hero-actions { justify-content: center; }
    .p-hero-art { width: 72px; height: 72px; font-size: 1.9rem; border-radius: 20px; }
}


.p-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.p-section-head h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pastel-blue-dark);
    margin: 0;
}

.p-section-head p {
    font-size: 0.82rem;
    color: var(--gray-muted);
    margin: 0;
}

.p-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.p-quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    border: 1px solid #DCE9F5;
    border-radius: 16px;
    padding: 18px 18px 16px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 6px 18px rgba(20, 70, 122, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.p-quick-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 155, 213, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.p-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(20, 70, 122, 0.16);
    border-color: var(--accent-blue);
    color: var(--text-dark);
}

.p-quick-card:hover::before {
    opacity: 1;
}

.p-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #E8F1FC;
    color: var(--pastel-blue-dark);
    position: relative;
    z-index: 1;
}

.p-quick-card.is-green .p-quick-icon { background: var(--accent-green-light); color: var(--accent-green); }
.p-quick-card.is-blue  .p-quick-icon { background: #E8F1FC; color: var(--accent-blue); }
.p-quick-card.is-navy  .p-quick-icon { background: #E4EBFB; color: var(--pastel-blue-dark); }

.p-quick-card h6 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
}

.p-quick-card p {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    color: var(--gray-muted);
    margin: 0;
    line-height: 1.4;
}

.p-quick-card .p-quick-arrow {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.p-quick-card:hover .p-quick-arrow i {
    transform: translateX(3px);
}

.p-quick-arrow i {
    transition: transform 0.18s ease;
}
.sidebar-icon-wrap {
    position: relative;
    display: inline-flex;
}
.sidebar-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.p-footer {
    margin-top: 36px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(120deg, #01224f 0%, var(--pastel-blue-dark) 100%);
    box-shadow: 0 -6px 24px rgba(1, 34, 79, 0.12);
    color: rgba(255, 255, 255, 0.86);
}
.p-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 28px 32px 24px;
}

.p-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-width: 0;
}
.p-footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
    flex-shrink: 0;
}

.p-footer-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.p-footer-brand strong {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.p-footer-brand span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.68);
}
.p-footer-cols {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
}

.p-footer-col h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9fe0c8;
    margin-bottom: 10px;
}

.p-footer-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.p-footer-line i {
    color: #9fe0c8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.p-footer-bottom {
    text-align: center;
    padding: 14px 20px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 575.98px) {
    .p-footer-top {
        padding: 24px 20px 20px;
        flex-direction: column;
        text-align: center;
    }
    .p-footer-brand {
        flex-direction: column;
        text-align: center;
    }
    .p-footer-cols {
        justify-content: center;
        width: 100%;
    }
    .p-footer-col {
        text-align: center;
    }
    .p-footer-line {
        justify-content: center;
    }
}

.enotif-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.enotif-summary-chip {
    background: #EEF4FB;
    color: #4A78B0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

.enotif-range-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.enotif-range-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #4A78B0;
    background: #EAF2FB;
    white-space: nowrap;
}
.enotif-range-pill:hover { background: #DCEAFB; color: #4A78B0; }
.enotif-range-pill.active { background: #4A78B0; color: #fff; }

.enotif-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4A5A6E;
    border-bottom: 2px solid #E3ECF5;
    white-space: nowrap;
}
.enotif-table td { vertical-align: middle; font-size: 0.87rem; border-bottom: 1px dashed #E3ECF5; }
.enotif-table tbody tr:hover { background: #F7FAFD; }
.enotif-subtext { font-size: 0.78rem; color: #8a97a6; }
.enotif-date-cell { color: #5a6b7a; white-space: nowrap; }
.btn-sm-pastel { padding: 4px 10px; font-size: 0.8rem; width: auto !important; }
.btn-word-archive { background: #EDEFF2; color: #5a6b7a; }
.btn-word-archive:hover { background: #E0E3E7; color: #3a444d; }
.enotif-empty { text-align: center; color: #8a97a6; padding: 40px 0; }

.enotif-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    white-space: nowrap;
}
.enotif-type-registration { background: #E6F6EC; color: #2E9E5B; }
.enotif-type-reset        { background: #FFF3E0; color: #C97A1E; }
.enotif-type-office       { background: #EAF2FB; color: #4A78B0; }
.enotif-type-feedback     { background: #FCEAEA; color: #C94A4A; }

.enotif-status-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.enotif-status-unread   { background: #FCEAEA; color: #C94A4A; }
.enotif-status-read     { background: #E9ECEF; color: #6c757d; }
.enotif-status-pending  { background: #FFF3E0; color: #C97A1E; }
.enotif-status-archived { background: #E9ECEF; color: #6c757d; }

#notifBellModal .modal-dialog { max-width: 420px; }
.enotif-bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px dashed #E3ECF5; }
.enotif-bell-item:last-child { border-bottom: none; }
.enotif-bell-item .enotif-icon {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; background: #EAF2FB; color: #4A78B0;
}
.enotif-icon-registration { background: #E6F6EC; color: #2E9E5B; }
.enotif-icon-reset        { background: #FFF3E0; color: #C97A1E; }
.enotif-icon-office       { background: #EAF2FB; color: #4A78B0; }
.enotif-icon-feedback     { background: #FCEAEA; color: #C94A4A; }
.enotif-bell-item-text { font-size: 0.85rem; color: var(--text-dark); margin: 0; }
.enotif-bell-item-time { font-size: 0.75rem; color: #8a97a6; margin-top: 2px; }


.btn-confirm-cancel {
    background: transparent;
    border: 1.5px solid #C7DCEE;
    color: var(--gray-muted);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-confirm-cancel:hover {
    background: #EEF4FB;
    border-color: var(--accent-blue);
    color: var(--pastel-blue-dark);
}
.btn-confirm-archive {
    background: #f8d2d4;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-confirm-archive:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}


/* =========================================================
   ADDED — Password eye button: tappable on phones
   Lock | input | eye sit side by side in the row, so the eye
   can never be covered by the input. !important makes this
   win over the small <style> blocks inside the PHP pages.
   ========================================================= */
.input-group.password-wrapper > .form-control {
    padding-right: 12px !important;
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group.password-wrapper > .password-toggle-btn {
    position: static !important;
    transform: none !important;
    flex: 0 0 48px;
    min-width: 48px;
    min-height: 44px;
    z-index: auto !important;
    justify-content: center;
    background: #fff !important;
    border: 1px solid #B9CEE0 !important;
    border-left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ADDED — ACCENT GREEN CARD BORDERS (landing page)
   Base borders for .process-step-card, .vm-card, .service-card
   and .right-item are set in their own rules above. This block
   adds the cards styled inline in index.php (.info-card and the
   map box) plus a matching hover state for every landing card.
   Change --card-accent in :root to retheme all of them at once.
   ========================================================= */
.info-card,
.location-map-wrap {
    border: 1.5px solid var(--card-accent) !important;
}

.info-card,
.vm-card,
.service-card,
.process-step-card,
.right-item,
.location-map-wrap {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.vm-card:hover,
.service-card:hover,
.process-step-card:hover,
.right-item:hover {
    border-color: var(--card-accent-hover) !important;
    box-shadow: 0 8px 20px rgba(20, 150, 127, 0.18);
}