* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', sans-serif;
    color: #333;
    padding-top: 0px;
}

body:has(.main--flush) {
    padding-top: 0;
}

/* Navbar */
.site-navbar {
    background: #ffffff;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px #0f201314;
    border-bottom: 1px solid #1a6b2a14;
    padding: 0;
}

.site-navbar__brand {
    font-size: 1.25rem;
    font-weight: 550;
    color: #1a6b2a;
    letter-spacing: -0.02em;
    padding: 16px 0;
}

.site-navbar__brand:hover,
.site-navbar__brand:focus {
    color: #145220;
}

.site-navbar__toggler {
    border: 1px solid rgba(26, 107, 42, 0.18);
    padding: 6px 10px;
}

.site-navbar__toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 107, 42, 0.16);
}

.site-navbar__nav {
    align-items: center;
    gap: 10px;
}

.site-navbar__link {
    color: #2b332c;
    padding: 20px 24px;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    background: none;
}

.site-navbar__link:hover,
.site-navbar__link:focus {
    background: #f1f1f1;
}

.site-navbar__link.active {
    color: #145220;
    background: none;
    border-bottom-color: #1a6b2a;
}

.site-navbar__dropdown-item .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.site-navbar__dropdown-menu {
    margin-top: 0;
    border: 1px solid #1a6b2a14;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(15, 32, 19, 0.12);
    padding: 8px;
    min-width: 220px;
}

.site-navbar__dropdown-link {
    border-radius: 8px;
    color: #2b332c;
    padding: 10px 14px;
}

.site-navbar__dropdown-link:hover,
.site-navbar__dropdown-link:focus {
    background: #f1f1f1;
    color: #145220;
}

.site-navbar__dropdown-link.active {
    background: rgba(26, 107, 42, 0.08);
    color: #145220;
    font-weight: 600;
}

.site-navbar__action-item {
    margin-left: 10px;
}

.site-navbar__button,
.btn-login {
    background-color: #1a6b2a;
    color: white !important;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;

}

.site-navbar__button:hover,
.site-navbar__button:focus,
.btn-login:hover {
    background-color: #145220;
    color: white !important;
}

.btn-cream {
    background-color: #f4ead7;
    color: #6a5630 !important;
    border: 1px solid #e4d3b5;
    box-shadow: 0 8px 20px rgba(106, 86, 48, 0.12);
}

.btn-cream:hover,
.btn-cream:focus {
    background-color: #ecdfc8;
    color: #5d4b2a !important;
    border-color: #dcc7a3;
}

.site-navbar__postlink-form {
    margin: 0;
}

.site-navbar__postlink-form .submit {
    margin: 0;
}

.site-navbar__collapse {
    flex-grow: 0;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #6f7b70;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.breadcrumb-link::before {
    content: ">";
    color: #95a08f;
    font-size: 0.9em;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
    color: #1a6b2a;
    text-decoration: none;
}

/* Bootstrap Filter stuff */
/* FILTER BUTTON */
.admin-filter-btn {
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.admin-filter-btn:hover {
    background: #f5f5f5;
}

/* DROPDOWN MENU */
.admin-filter-menu {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    min-width: 260px;
}

/* GROUP SPACING */
.admin-filter-group {
    margin-bottom: 15px;
}

/* LABELS */
.admin-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #000000;
}

/* SELECT INPUT */
.admin-filter-select {
    border-radius: 6px;
    font-size: 0.9rem;
}

/* APPLY BUTTON */
.fill-button {
    background: #1a6b2a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    color: white;
}

.fill-button:hover {
    background: #145321;
}

/* Footer */
.footer {
    background-color: #1e2d2f;
    color: #ccc;
    padding: 50px 40px 20px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 30px auto;
}

.footer-brand p:first-child {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4caf50;
    margin-bottom: 10px;
}

.footer-contact h4,
.footer-hours h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-contact p,
.footer-hours p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d4a2d;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* Flash Messages */
.message {
    padding: 15px 25px;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    width: 100%;
}

.message.flash-toast {
    position: fixed;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: min(92vw, 360px);
    margin: 0;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
    animation: flash-toast-in 0.24s ease-out;
}

.flash-popup {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e6ece6;
    box-shadow: 0 18px 40px rgba(15, 32, 19, 0.14);
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.35;
}

.flash-popup__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.flash-popup__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.flash-popup--success .flash-popup__icon {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.flash-popup__content {
    flex: 1;
    min-width: 0;
}

.flash-popup__title {
    font-weight: 750;
    color: #0f2013;
    letter-spacing: -0.01em;
}

.flash-popup__message {
    margin-top: 2px;
    color: #38513d;
}

.flash-popup__close {
    border: 0;
    background: transparent;
    color: #6d7b6f;
    padding: 0;
    line-height: 1;
    font-size: 22px;
    opacity: 0.7;
    cursor: pointer;
    transform: translateY(-1px);
}

.flash-popup__close:hover,
.flash-popup__close:focus {
    opacity: 1;
    color: #263428;
}

.message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: left;
}

.message.hidden {
    display: none;
}

.message.flash-toast.hidden {
    display: flex;
    opacity: 0;
    transform: translate(-50%, -10px);
    pointer-events: none;
}

@keyframes flash-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.main {
    padding: 116px 40px 48px;
}

.main--flush {
    padding: 0;
}

.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-banner {
    min-height: 220px;
    border-radius: 18px;
    margin-bottom: 24px;
    padding: 32px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    background-color: #145220; /* fallback if background-image fails to load */
    background-size: cover;
    background-position: center;
}

.admin-banner-staff {
    background-image:
        linear-gradient(120deg, rgba(15, 46, 22, 0.82), rgba(26, 107, 42, 0.38)),
        url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1400&q=80');
}

.admin-banner-messages {
    background-image:
        linear-gradient(120deg, rgba(18, 45, 39, 0.82), rgba(28, 96, 83, 0.36)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=80');
}

.admin-banner-dashboard-admin {
    background-image:
        linear-gradient(120deg, rgba(18, 45, 39, 0.72), rgba(28, 96, 83, 0.28)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=80');
    /* Nudge focal point so the subject doesn't get awkwardly cropped on wide screens. */
    background-position: 70% 70%;
}

.admin-banner-dashboard-staff {
    background-image:
        linear-gradient(120deg, rgba(15, 46, 22, 0.72), rgba(26, 107, 42, 0.28)),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1400&q=80');
}

.admin-banner-copy {
    max-width: 560px;
}

.admin-banner-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    margin-bottom: 8px;
    opacity: 0.86;
}

.admin-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.admin-banner p {
    line-height: 1.6;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-page-header h1 {
    font-size: 2rem;
    color: #1a6b2a;
    margin-bottom: 8px;
}

.admin-page-header p {
    color: #666;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-button,
.admin-secondary-link,
.admin-danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.admin-button {
    background-color: #1a6b2a;
    color: #fff;
}

.admin-button:hover {
    background-color: #145220;
}

.admin-secondary-link {
    color: #1a6b2a;
    border: 1px solid #cfd8cf;
    background: #fff;
}

.admin-danger-link {
    color: #c62828;
    border: 1px solid #efc7c7;
    background: #fff7f7;
}

.admin-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.admin-form-card,
.admin-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 30px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th{
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #7a8c7a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fafcfa;
    border-bottom: 1px solid #f0f4f0;
}

.admin-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f5f7f5;
    color: #2a3a2a;
    vertical-align: middle;
}

.admin-table td:last-child {
    vertical-align: middle;
}

.admin-actions {
    white-space: nowrap;
}

.admin-actions > a,
.admin-actions > form {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.admin-actions > form {
    margin-bottom: 0;
}

.admin-actions > form:last-child,
.admin-actions > a:last-child {
    margin-right: 0;
}

.admin-actions a,
.admin-actions form a,
.admin-actions .postlink {
    color: #1a6b2a;
}

.admin-actions .admin-button,
.admin-actions .admin-secondary-link,
.admin-actions .admin-danger-link {
    padding: 5px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.admin-actions .admin-button {
    background-color: transparent;
    border: 1px solid #1a6b2a;
    color: #1a6b2a;
}

.admin-actions .admin-button:hover {
    background-color: #1a6b2a;
    color: #fff;
}

.admin-actions .admin-danger-link {
    background-color: #c62828;
    border-color: #c62828;
    color: #fff;
}

.admin-actions .admin-danger-link:hover {
    background-color: #a31f1f;
    border-color: #a31f1f;
}

.admin-paginator {
    margin-top: 20px;
    color: #666;
}

.admin-paginator .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin-bottom: 10px;
}

.admin-paginator .pagination li {
    margin: 0;
}

.admin-paginator .pagination a,
.admin-paginator .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #d7dfd7;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.admin-paginator .pagination li.disabled {
    border-radius: 8px;
    background: #f1f3f1;
    opacity: 0.65;
}

.admin-paginator .pagination .disabled span,
.admin-paginator .pagination .disabled a {
    color: #6b756e !important;
    background: #f1f3f1 !important;
    border-color: #c9d1ca !important;
    text-decoration: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-paginator .pagination li.disabled > span,
.admin-paginator .pagination li.disabled > a,
.admin-paginator .pagination span.disabled,
.admin-paginator .pagination a.disabled {
    color: #6b756e !important;
    background: #f1f3f1 !important;
    border-color: #c9d1ca !important;
    text-decoration: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-paginator .pagination .disabled a:hover,
.admin-paginator .pagination .disabled a:focus,
.admin-paginator .pagination .disabled span:hover,
.admin-paginator .pagination .disabled span:focus {
    color: #6b756e !important;
    background: #f1f3f1 !important;
    text-decoration: none !important;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.admin-detail-grid dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a756d;
    margin-bottom: 6px;
}

.admin-detail-grid dd {
    color: #1f2b22;
}

.admin-message-block {
    margin-top: 24px;
}

.admin-message-copy {
    margin-top: 10px;
    padding: 16px;
    border-radius: 10px;
    background: #f7faf7;
    border: 1px solid #e3ebe3;
    line-height: 1.6;
}

.admin-danger-zone {
    margin-top: 24px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.admin-form-field {
    min-width: 0;
}

.admin-form-field-full {
    grid-column: 1 / -1;
}

.admin-form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    outline: none;
}

.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus {
    border-color: #1a6b2a;
}

.admin-form-field-password-block {
    grid-column: 1 / -1;
}

.admin-password-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 320px);
    gap: 20px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid #e4ebe4;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdfb 0%, #f5f8f5 100%);
}

.admin-password-inputs {
    display: grid;
    gap: 14px;
}

.admin-password-inputs .input {
    margin-bottom: 0;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}

.live-validation-message {
    display: none;
    margin-top: 6px;
    color: #c62828;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.username-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.server-validation-message {
    display: block !important;
}

.admin-form-field input.is-invalid {
    border-color: #c62828;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.admin-toolbar form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.admin-toolbar form > .input {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.admin-toolbar form > .input .form-control {
    width: 100%;
    min-width: 0;
}

.admin-hint {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d7dfd7;
    background: #fff;
    color: #516151;
    user-select: none;
    cursor: help;
    position: relative;
    padding: 0;
}

.admin-hint svg {
    width: 18px;
    height: 18px;
    display: block;
}

.admin-hint:hover,
.admin-hint:focus {
    background: #f7faf7;
    border-color: #c8d3c8;
    color: #145220;
    outline: none;
}

.admin-hint::after {
    content: attr(data-tip);
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 260px;
    max-width: 380px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f2013;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50;
}

.admin-hint:hover::after,
.admin-hint:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.admin-form-field input.is-invalid,
.admin-form-field select.is-invalid,
.admin-form-field textarea.is-invalid,
.admin-form-field input.is-invalid:focus,
.admin-form-field select.is-invalid:focus,
.admin-form-field textarea.is-invalid:focus {
    border-color: #c62828;
    box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.18);
}

.admin-password-requirements {
    margin: 0;
    padding: 14px 16px 14px 32px;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e3ebe3;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.admin-password-requirements li {
    color: #c62828;
    margin-bottom: 6px;
}

.admin-password-requirements li.is-met {
    color: #1b8f3a;
    font-weight: 600;
}

.admin-password-requirements li.is-unmet {
    color: #c62828;
}

@media (max-width: 768px) {
    body {
        padding-top: 0px;
    }

    .site-navbar {
        padding: 20px 0;
    }

    .site-navbar__collapse {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(26, 107, 42, 0.08);
    }

    .site-navbar__nav {
        align-items: stretch;
        gap: 6px;
    }

    .site-navbar__action-item {
        margin-left: 0;
    }

    .site-navbar__dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        min-width: 0;
    }

    .site-navbar__button {
        width: 100%;
    }

    .main {
        padding: 90px 16px 36px;
    }

    .message.flash-toast {
        top: 82px;
    }

    .admin-banner {
        min-height: 180px;
        padding: 24px 20px;
    }

    .admin-page-header,
    .admin-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-password-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .admin-password-requirements {
        margin-top: 0;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search-bar {
        margin-bottom: 16px;
    }

    .admin-search-bar input {
        border-radius: 8px;
        border: 1px solid #ddd;
        padding: 10px 16px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 500px;
    }

    .admin-search-bar input:focus {
        border-color: #1a6b2a;
        outline: none;
        box-shadow: 0 0 0 3px rgba(26, 107, 42, 0.1);
    }

    .admin-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        gap: 12px;
    }

    .admin-toolbar form {
        display: flex;
        gap: 8px;
    }

    /* Footer responsive */
    .footer {
        padding: 30px 16px 20px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer Bootstrap columns fix */
    .footer .col-md-4 {
        width: 100% !important;
    }
}

/* Jobs */
.admin-banner-jobs {
    background-image:
        linear-gradient(120deg, rgba(15, 46, 22, 0.82), rgba(26, 107, 42, 0.38)),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1400&q=80');
}

/* Vehicles */
.admin-banner-vehicles {
    background-image:
        linear-gradient(120deg, rgba(15, 46, 22, 0.82), rgba(26, 107, 42, 0.38)),
        url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1400&q=80');
}

/* Status badges */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status-unread { background: #faeeda; color: #633806; }
.status-read { background: #eaf3de; color: #27500a; }
.status-in-progress { background: #dbeafe; color: #1e40af; }
.status-resolved { background: #e3e1e1; color: #474646;}
.status-pending { background: #fef3c7; color: #92400e; }
.status-scheduled { background: #d1fae5; color: #065f46; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-available { background: #d1fae5; color: #065f46; }
.status-in-use { background: #dbeafe; color: #1e40af; }
.status-maintenance { background: #fef3c7; color: #92400e; }
.status-accepted { background: #d1fae5; color: #065f46; }
.status-declined { background: #fee2e2; color: #991b1b; }

.quote-sent-time { font-size: 12px; color: #888; margin-top: 8px; }
.quote-empty { color: #888; font-style: italic; }

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e8ede8;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.stat-card:hover {
    border-color: #b8d4b8;
    box-shadow: 0 2px 12px rgba(26, 107, 42, 0.08);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 18px;
    height: 18px;
}

.stat-icon.green { background: #eaf3de; }
.stat-icon.amber { background: #faeeda; }
.stat-icon.blue { background: #e6f1fb; }
.stat-icon.gray { background: #f1efe8; }
.stat-icon.teal { background: #e1f5ee; }

.stat-number {
    font-size: 24px;
    font-weight: 500;
    color: #1a3a1a;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #7a8c7a;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-section {
    background: #fff;
    border: 1px solid #e8ede8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.dashboard-section-full {
    grid-column: 1 / -1;
}

.dashboard-section-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f4f0;
}

.dashboard-section-header h2 {
    font-size: 14px;
    font-weight: 500;
    color: #1a3a1a;
}

.dashboard-link {
    font-size: 12px;
    color: #1a6b2a;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 5px;
    background: #f0f7f0;
}

.dashboard-link:hover {
    background: #e0f0e0;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dashboard-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    color: #7a8c7a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fafcfa;
    border-bottom: 1px solid #f0f4f0;
}

.dashboard-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f5f7f5;
    color: #2a3a2a;
    vertical-align: middle;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover td {
    background: #fafcfa;
}

.dashboard-table a {
    color: #1a6b2a;
    text-decoration: none;
}

.dashboard-stars {
    color: #e9a800;
    font-size: 13px;
    letter-spacing: 1px;
}

.dashboard-stars-empty {
    color: #ddd;
    font-size: 13px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar form {
        width: 100%;
    }

    .admin-toolbar .form-control {
        width: 100%;
    }

    .admin-toolbar .admin-button {
        width: 30%;
    }
}

@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-section-full {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* Staff View — profile header */
.staff-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8ede8;
}

.staff-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.staff-profile-avatar-placeholder {
    background: #cfd8cf;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.staff-profile-header-info h2 {
    font-size: 1.5rem;
    color: #1a3a1a;
    margin-bottom: 6px;
    margin-top: 0;
}

.staff-profile-role {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a6b2a;
    background: #eaf3de;
    margin: 0;
}

@media (max-width: 600px) {
    .staff-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .staff-profile-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Password visibility toggle button (Add/Edit Staff) */
.password-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-input-shell {
    position: relative;
}

.password-input-shell input {
    padding-right: 46px;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9aaa9a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #1a6b2a;
}

.password-toggle-icon {
    pointer-events: none;
}
