* {
    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;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.admin-filter-btn.is-active,
.admin-filter-btn.is-active:hover,
.admin-filter-btn.is-active:focus {
    border-color: #1a6b2a;
    background: #1a6b2a;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 107, 42, 0.12);
}

.admin-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.admin-filter-actions form {
    margin: 0;
}

.admin-filter-actions .dropdown {
    display: inline-flex;
    align-items: center;
}

/* 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;
}

.date-range-control {
    display: grid;
    grid-template-columns: minmax(128px, 1fr) 18px minmax(128px, 1fr);
    align-items: center;
    gap: 0;
    padding: 0 8px;
    border: 1px solid #d7dfd7;
    border-radius: 8px;
    background: #fff;
    height: 46px !important;
    flex: 1 1 360px;
    min-width: 290px;
    max-width: 520px;
    align-self: center !important;
    box-sizing: border-box;
}

.date-range-control .input {
    margin: 0;
}

.date-range-control input {
    width: 100%;
    min-width: 0;
    height: 44px !important;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.date-range-separator {
    color: #7a8c7a;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 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;
}

@media (max-width: 991px) {
    .site-navbar .container {
        max-width: 100%;
    }

    .site-navbar__collapse.collapse:not(.show) {
        display: none !important;
    }

    .site-navbar__brand {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-navbar__collapse {
        width: 100%;
        flex-grow: 1;
        padding: 8px 0 14px;
        background: #ffffff;
    }

    .site-navbar__nav {
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .site-navbar__link {
        padding: 12px 14px;
        border-bottom-width: 0;
        border-left: 3px solid transparent;
        border-radius: 8px;
    }

    .site-navbar__link.active {
        color: #1a6b2a;
        font-weight: 600;
    }

    .site-navbar__dropdown-item > .site-navbar__link.active {
        border-left: none;
        background: none;
        color: #2b332c;
    }

    .site-navbar__dropdown-link.active {
        border-left: 3px solid #1a6b2a;
        background: rgba(26, 107, 42, 0.06);
        color: #1a6b2a;
        font-weight: 600;
    }

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

    .site-navbar__button {
        width: 100%;
    }

    .main {
        padding: 92px 16px 40px;
    }

    .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;
    flex-wrap: wrap;
    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-button a {
    color: #fff;
    text-decoration: none;
}

.admin-button a:hover {
    text-decoration: none;
    color: #e6e6e6;
}

.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;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.content-block-anchor-button {
    margin: 8px 0 0 10px;
    color: #fff !important;
}

.contentBlocks a:not(.admin-button):not(.admin-secondary-link):not(.admin-danger-link) {
    color: #1f2b22;
    text-decoration: none;
}

.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;
}

.admin-button-disabled {
    opacity: 0.72 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    background: #8f9a8f !important;
    border-color: #8f9a8f !important;
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
}

.admin-button.admin-button-disabled,
a.admin-button.admin-button-disabled,
span.admin-button.admin-button-disabled,
button.admin-button.admin-button-disabled {
    background: #8f9a8f !important;
    border-color: #8f9a8f !important;
    color: #fff !important;
    box-shadow: none !important;
}

.admin-button-disabled:hover,
.admin-button-disabled:focus {
    background: #8f9a8f !important;
    border-color: #8f9a8f !important;
    color: #fff !important;
    transform: none !important;
}

.admin-button-disabled[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: max-content;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f2013;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    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: 60;
}

.admin-button-disabled[data-tip]:hover::after,
.admin-button-disabled[data-tip]:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.disabled-action-wrap {
    position: relative;
    display: inline-flex;
}

.disabled-action-tip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: max-content;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f2013;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    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: 1000;
}

.disabled-action-wrap:hover .disabled-action-tip,
.disabled-action-wrap:focus-within .disabled-action-tip {
    opacity: 1;
    transform: translateY(0);
}

.admin-toolbar-messages {
    overflow-x: auto;
    padding-bottom: 2px;
}

.message-toolbar-form {
    flex-wrap: nowrap !important;
    min-width: 940px;
}

.message-toolbar-form .search-row {
    flex: 1 1 300px !important;
    min-width: 220px !important;
    max-width: none !important;
}

.message-toolbar-form > .input {
    flex: 0 1 150px !important;
    min-width: 130px !important;
    margin: 0 !important;
}

.message-toolbar-form > .input select {
    width: 100% !important;
}

.message-toolbar-form .date-range-control {
    flex: 1 1 300px !important;
    min-width: 260px !important;
    max-width: 360px !important;
}

.message-toolbar-form > .admin-button {
    flex: 0 0 96px !important;
}

.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;
    overflow-x: visible;
}

.admin-toolbar form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100%;
}

.admin-toolbar .admin-button {
    flex: 0 0 auto;
    height: 46px !important;
    min-width: 96px !important;
    width: auto !important;
    white-space: nowrap;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.search-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) 46px;
    align-items: center !important;
    gap: 6px;
    flex: 1 1 360px;
    min-width: 280px;
    max-width: 560px;
}

.search-row .input {
    flex: none;
    min-width: 0;
    margin: 0;
    width: 100%;
}

.search-row .form-control {
    width: 100%;
    height: 46px !important;
    margin: 0 !important;
}

.admin-toolbar .form-select,
.admin-toolbar select {
    height: 46px !important;
    margin: 0 !important;
}

.missing-value {
    color: #c62828;
    font-weight: 700;
}

/* Jobs index toolbar: search box should grow, status select stays fixed */
.admin-toolbar form > .input:has(select) {
    flex: 0 0 180px;
}

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

.admin-hint {
    width: 46px;
    height: 46px !important;
    flex: 0 0 46px;
    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;
    margin: 0 !important;
    align-self: center !important;
}

.date-range-control {
    width: auto !important;
    min-width: 290px !important;
    max-width: 520px !important;
    flex: 1 1 360px !important;
    display: grid !important;
    grid-template-columns: minmax(128px, 1fr) 18px minmax(128px, 1fr);
    align-items: center !important;
    box-sizing: border-box;
}

.date-range-control .input {
    min-width: 0 !important;
    width: 100% !important;
}

.date-range-control input {
    width: 100% !important;
    min-width: 0 !important;
}

.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;
    left: 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;
    }

    .message-id {
        font-size: 0.75em;
        opacity: 0.5;
    }

    .message-reader-subject-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .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-filter-btn {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }

    /* 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');
}

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

/* Reviews */
.admin-banner-reviews {
    background-image:
        linear-gradient(120deg, rgba(15, 46, 22, 0.82), rgba(26, 107, 42, 0.38)),
        url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?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: #e5e7eb; color: #4b5563; }
.status-available { background: #d1fae5; color: #065f46; }
.status-deployed { background: #dbeafe; color: #1e40af; }
.status-in-maintenance { background: #fef3c7; color: #92400e; }
.status-accepted { background: #d1fae5; color: #065f46; }
.status-declined { background: #fee2e2; color: #991b1b; }

.message-card-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e5ece5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.message-date-heading {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 16px;
    border-bottom: 1px solid #e5ece5;
    background: #f6f8f6;
}

.message-date-heading:not(:first-child) {
    border-top: 8px solid #f0f3f0;
}

.message-date-heading span {
    color: #526252;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.message-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 68px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2ed;
    background: #fff;
    box-shadow: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.message-card:last-child {
    border-bottom: 0;
}

.message-card:hover {
    background: #f7faf7;
    box-shadow: inset 3px 0 0 #1a6b2a;
}

.message-card-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.message-card-main:hover {
    color: inherit;
    text-decoration: none;
}

.message-card-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf3de;
    color: #1a6b2a;
    font-weight: 700;
    font-size: 0.95rem;
}

.message-card-content {
    min-width: 0;
    flex: 1;
}

.message-card-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 5px;
}

.message-card-topline h2 {
    min-width: 0;
    margin: 0;
    color: #1a2a1a;
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-card-topline time {
    flex: 0 0 auto;
    color: #7a8c7a;
    font-size: 0.82rem;
}

.message-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5f705f;
    font-size: 0.86rem;
}

.message-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.message-card-actions form {
    margin: 0;
}

.message-card-actions .admin-button,
.message-card-actions .admin-secondary-link,
.message-card-actions .admin-danger-link {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
}

.message-reader-page {
    max-width: 980px;
}

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

.message-reader-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.message-reader-actions form {
    margin: 0;
}

.message-reader {
    background: #fff;
    border: 1px solid #e5ece5;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.message-reader-subject {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #edf2ed;
}

.message-reader-subject h1 {
    margin: 0;
    color: #202124;
    font-size: 1.55rem;
    font-weight: 500;
}

.message-reader-email {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 24px 28px;
}

.message-reader-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf3de;
    color: #1a6b2a;
    font-weight: 700;
}

.message-reader-main {
    min-width: 0;
}

.message-reader-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.message-reader-sender {
    color: #202124;
    font-size: 0.98rem;
    font-weight: 700;
}

.message-reader-to,
.message-reader-meta time {
    color: #6f7d6f;
    font-size: 0.84rem;
}

.message-reader-to span::before {
    content: "·";
    padding: 0 7px;
    color: #a4b0a4;
}

.message-reader-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.message-reader-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f1;
    color: #4b5c4b;
    font-size: 0.82rem;
}

.message-reader-body {
    max-width: 760px;
    color: #202124;
    font-size: 0.98rem;
    line-height: 1.75;
}

.message-reader-body p:last-child {
    margin-bottom: 0;
}

.message-reader-attachments {
    margin-top: 26px;
}

.message-reader-attachments h2,
.message-reader-panel h2 {
    margin: 0 0 12px;
    color: #202124;
    font-size: 0.95rem;
    font-weight: 700;
}

.panel-reload-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1a6b2a;
    padding: 6px 10px;
    border-radius: 6px;
}

.panel-reload-btn:hover {
    background: #eef5ee;
    color: #145220;
}

.panel-reload:hover {
    background: #eef5ee;
    color: #145220;
}

.message-attachment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.message-attachment {
    display: flex;
    width: 150px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e1e8e1;
    border-radius: 8px;
    background: #f5f7f5;
}

.message-attachment-image {
    display: block;
}

.message-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-attachment-file {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    color: #1a6b2a;
    text-align: center;
    text-decoration: none;
}

.message-attachment-file:hover {
    background: #edf7ed;
    color: #145220;
    text-decoration: none;
}

.message-attachment-file-icon {
    padding: 4px 8px;
    border-radius: 6px;
    background: #dcecdc;
    color: #1a6b2a;
    font-size: 0.72rem;
    font-weight: 700;
}

.message-attachment-file-name {
    max-width: 100%;
    color: #354535;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-reader-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-reader-panel {
    padding: 18px;
    border: 1px solid #e5ece5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.message-reader-panel p {
    color: #3f4f3f;
    font-size: 0.9rem;
    line-height: 1.55;
}

.message-reply-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf2ed;
}

.message-reply-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.message-reply-item p {
    margin: 5px 0;
    color: #6f7d6f;
    font-size: 0.84rem;
}

@media (max-width: 760px) {
    .message-card {
        grid-template-columns: 1fr;
    }

    .message-card-topline {
        display: block;
    }

    .message-card-topline h2 {
        margin-bottom: 4px;
    }

    .message-card-meta {
        flex-wrap: wrap;
    }

    .message-card-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-left: 56px;
    }

    .message-reader-toolbar,
    .message-reader-subject,
    .message-reader-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .message-reader-email {
        grid-template-columns: 1fr;
    }

    .message-reader-sections {
        grid-template-columns: 1fr;
    }
}

.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(170px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

a.stat-card {
    cursor: pointer;
}

a.stat-card:hover .stat-number {
    color: #1a6b2a;
}

.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: 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;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

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

    .admin-toolbar form > .input {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }

    .admin-toolbar form > .input:has(select) {
        flex: none;
        width: 100%;
    }

    .admin-toolbar form > .input:has(select) {
        flex: none;
        width: 100%;
    }

    /* Optional: reduce padding inside inputs for a tighter feel */
    .admin-toolbar .form-control,
    .admin-toolbar select {
        padding: 8px 10px; /* slightly smaller than desktop */
    }

    .search-row {
        grid-template-columns: minmax(0, 1fr) 46px !important;
        align-items: center;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .search-row .input,
    .search-row .form-control {
        width: 100%;
    }

    .search-row button {
        width: 46px;
    }

    .date-range-control {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-content: space-between;
    }

    .date-range-control .input {
        flex: 1;
    }

    .date-range-control input {
        width: 100%;
        min-width: 0;
    }


}

.admin-toolbar-messages .message-toolbar-form {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    min-width: 940px;
}

.admin-toolbar-messages .message-toolbar-form > .input {
    width: auto !important;
}

.admin-toolbar-messages .message-toolbar-form .search-row {
    width: auto !important;
}

/* 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;
}

/* Invoice payment statuses */
.status-unpaid { background: #fde8e8; color: #c0392b; }
.status-partial { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.admin-detail-subtle { color: #6c757d; font-size: 12px; }
.admin-title-with-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ====== Job Notes ====== */
.job-notes-card {
    margin-top: 18px;
}

.job-notes-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.1rem;
    color: #1a3a1a;
    margin-bottom: 16px;
}

.job-notes-count {
    color: #7a8c7a;
    font-weight: normal;
    font-size: 0.95rem;
}

/* Textareas in this card (both 'add note' and 'edit note' forms) */
.job-notes-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7dfd7;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1f2b22;
    background: #fff;
    outline: none;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
}

.job-notes-card textarea:focus {
    border-color: #1a6b2a;
    box-shadow: 0 0 0 3px rgba(26, 107, 42, 0.1);
}

.job-notes-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

/* Notes list */
.job-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.job-note-item {
    padding: 14px 18px;
    border: 1px solid #e3ebe3;
    border-radius: 10px;
    background: #fafcfa;
}

.job-note-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #38513d;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.job-note-time {
    color: #7a8c7a;
    font-size: 0.85rem;
}

.job-note-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #d4e9d4;
    color: #1a6b2a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-note-body {
    color: #1f2b22;
    line-height: 1.5;
}

.job-note-body p {
    margin: 0 0 6px 0;
}

.job-note-body p:last-child {
    margin-bottom: 0;
}

/* All note action buttons share the same base style (Edit / Delete / Save / Cancel) */
.job-note-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.job-note-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-family: inherit;
    line-height: 1.4;
    border-radius: 6px;
    border: 1px solid #cfd8cf;
    background: #fff;
    cursor: pointer;
    height: 28px;
    box-sizing: border-box;
}

/* Edit (green text) */
.job-note-edit-btn {
    color: #1a6b2a;
}
.job-note-edit-btn:hover {
    background: #f0f7f0;
}

/* Delete (red text + light red bg) */
.job-note-delete-btn {
    color: #c62828;
    border-color: #efc7c7;
    background: #fff7f7;
}
.job-note-delete-btn:hover {
    background: #ffeaea;
    border-color: #e0a3a3;
}

/* Save (filled green) */
.job-note-save-btn {
    background: #1a6b2a;
    border-color: #1a6b2a;
    color: #fff;
}
.job-note-save-btn:hover {
    background: #145220;
    border-color: #145220;
}

/* Cancel (gray) */
.job-note-cancel-btn {
    color: #555;
}
.job-note-cancel-btn:hover {
    background: #f1f1f1;
}

/* The inline form wrapping Delete shouldn't add margin */
.job-note-inline-form {
    display: inline-block;
    margin: 0;
}

/* Edit form: hidden by default, shown when parent has .is-editing */
.job-note-edit-form {
    display: none;
    margin-top: 10px;
}

.job-note-item.is-editing .job-note-body,
.job-note-item.is-editing .job-note-actions {
    display: none;
}

.job-note-item.is-editing .job-note-edit-form {
    display: block;
}

/* Empty state */
.job-notes-empty {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    color: #7a8c7a;
    background: #f7faf7;
    border: 1px dashed #d7dfd7;
    border-radius: 8px;
    font-size: 0.9rem;
}

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

/* Mobile calendar improvements */
@media (max-width: 768px) {
    .admin-detail-card {
        overflow-x: hidden;
    }

    #calendar {
        font-size: 0.9rem;
        padding: 0;
        transform: none;
        width: 100%;
    }

    .fc .fc-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .fc .fc-button {
        min-height: 40px;
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
    }

    .fc .fc-col-header-cell-cushion {
        padding: 6px 2px;
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.82rem;
        padding: 4px 6px;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 64px;
        padding: 2px;
    }

    .fc-daygrid-event {
        margin: 1px 2px !important;
        padding: 2px 4px !important;
        font-size: 0.72rem !important;
        border-radius: 4px !important;
    }

    .fc-event-title {
        font-size: 0.72rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc-event-staff {
        display: none;
    }

    .fc .fc-list-day-cushion {
        background: #fafcfa;
        padding: 10px 12px;
    }

    /* Left side: Sunday / Wednesday */
    .fc .fc-list-day-text,
    .fc .fc-list-day-text:hover {
        color: #1a3a1a;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
    }

    /* Right side: May 17, 2026 */
    .fc .fc-list-day-side-text,
    .fc .fc-list-day-side-text:hover {
        color: #6a756d;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.82rem;
    }

    /* Remove default blue link look from all list header links */
    .fc .fc-list-day-cushion a {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* Border colour to match your calendar */
    .fc .fc-list-table td,
    .fc .fc-list-table th {
        border-color: #f0f4f0;
    }

    /* Event rows */
    .fc .fc-list-event:hover td {
        background: rgba(26, 107, 42, 0.04);
    }

    .fc .fc-list-event-title a,
    .fc .fc-list-event-title a:hover {
        color: #1a3a1a;
        text-decoration: none;
        font-weight: 500;
    }

    .fc .fc-list-event-time {
        color: #6a756d;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Dot spacing */
    .fc .fc-list-event-dot {
        border-color: currentColor;
    }
}

/* Legend - subtle pill style above the calendar */
.calendar-legend {
    display: flex;
    gap: 24px;
    margin: 0 0 20px 4px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #38513d;
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* ===== FullCalendar overrides ===== */
.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    color: #1a3a1a;
    font-weight: 600;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 18px;
}

/* Toolbar buttons - match site theme */
.fc .fc-button-primary {
    background-color: #1a6b2a;
    border-color: #1a6b2a;
    text-transform: capitalize;
    font-weight: 500;
    padding: 6px 14px;
    box-shadow: none;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #145220;
    border-color: #145220;
    box-shadow: none;
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(26, 107, 42, 0.18);
}

.fc .fc-button-primary:disabled {
    background-color: #cfd8cf;
    border-color: #cfd8cf;
}

/* Date numbers - depth grey, no underline */
.fc .fc-daygrid-day-number {
    color: #1a3a1a;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 8px;
    font-size: 0.9rem;
}

.fc .fc-daygrid-day-number:hover {
    color: #1a6b2a;
    text-decoration: none;
}

/* Day-of-week headers (Mon, Tue, ...) */
.fc .fc-col-header-cell-cushion {
    color: #6a756d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 4px;
}

.fc .fc-col-header-cell-cushion:hover {
    color: #1a6b2a;
    text-decoration: none;
}

.fc .fc-col-header-cell {
    background-color: #fafcfa;
    border-color: #f0f4f0;
}

/* Other-month days slightly faded */
.fc .fc-day-other .fc-daygrid-day-number {
    color: #c8d3c8;
    opacity: 1;
}

/* Today highlight - subtle green tint instead of yellow */
.fc-day-today {
    background-color: rgba(26, 107, 42, 0.08) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: #1a6b2a;
    font-weight: 700;
    background: #1a6b2a;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    padding: 0;
}

/* Cell borders - softer */
.fc .fc-scrollgrid,
.fc .fc-scrollgrid td,
.fc .fc-scrollgrid th {
    border-color: #f0f4f0;
}

/* Row min-height for better visual breathing */
.fc .fc-daygrid-day-frame {
    min-height: 90px;
}

/* === Events: solid block style with proper colours === */
.fc-daygrid-event {
    border-radius: 4px !important;
    padding: 3px 6px !important;
    margin: 1px 4px !important;
    font-size: 0.78rem !important;
    border: none !important;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fc-daygrid-event:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Force event text to white (not blue link colour) */
.fc-daygrid-event,
.fc-daygrid-event:hover,
.fc-daygrid-event .fc-event-title {
    color: #fff !important;
    text-decoration: none !important;
}

/* Unallocated jobs: red border with subtle pulse for attention */
.fc-event-unallocated {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3) !important;
    animation: unallocated-pulse 2.4s ease-in-out infinite;
}

@keyframes unallocated-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.45);
    }
}

/* Add a subtle warning icon prefix in legend (we'll add it manually in HTML) */
.calendar-legend-dot.unallocated {
    background: #dc2626 !important;
}

/* Hide the default dot in dayGridMonth - we use the bg colour instead */
.fc-daygrid-event-dot {
    display: none !important;
}

/* Time text inside events (for week/day views) */
.fc-event-time {
    color: #fff !important;
    font-weight: 500;
}

/* Week / Day view event styling */
.fc .fc-timegrid-event {
    border-radius: 4px;
    border: none;
    padding: 2px 4px;
}

/* Calendar container - gentle inner padding */
#calendar {
    padding: 4px;
}

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

/* ============== FAQ Page ============== */
.faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.faq-hero {
    background:
        linear-gradient(120deg, rgba(15, 46, 22, 0.86), rgba(26, 107, 42, 0.50)),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    padding: 60px 40px;
    margin-bottom: 32px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

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

.faq-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.faq-hero p {
    line-height: 1.6;
    max-width: 560px;
    opacity: 0.92;
    margin-bottom: 24px;
}

.faq-search {
    position: relative;
    max-width: 520px;
}

.faq-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6a756d;
    pointer-events: none;
}

#faq-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    font-size: 1rem;
    color: #1a3a1a;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
    outline: none;
}

#faq-search-input::placeholder {
    color: #95a08f;
}

#faq-search-input:focus {
    box-shadow: 0 0 0 3px rgba(26, 107, 42, 0.22), 0 6px 18px rgba(0,0,0,0.16);
}

/* Tabs */
.faq-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.faq-tab {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #38513d;
    border: 1px solid #e3ebe3;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.faq-tab:hover {
    background: #f0f7f0;
    color: #145220;
    border-color: #c5dac6;
}

.faq-tab.is-active {
    background: #1a6b2a;
    color: #fff;
    border-color: #1a6b2a;
}

/* List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8ede8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.faq-item[open] {
    border-color: #1a6b2a;
    box-shadow: 0 4px 16px rgba(26, 107, 42, 0.10);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1a3a1a;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.45;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-category-tag {
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eaf3de;
    color: #27500a;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f4f0;
    color: #1a6b2a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: #1a6b2a;
    color: #fff;
}

.faq-answer {
    padding: 0 22px 20px 22px;
    color: #38513d;
    line-height: 1.66;
    font-size: 0.95rem;
}

/* Empty state */
.faq-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6a756d;
    background: #f7faf7;
    border: 1px dashed #c8d3c8;
    border-radius: 12px;
    margin-top: 16px;
}

/* CTA */
.faq-cta {
    margin-top: 40px;
    padding: 32px 28px;
    background: linear-gradient(180deg, #f7faf7 0%, #eaf3de 100%);
    border: 1px solid #d4e9d4;
    border-radius: 14px;
    text-align: center;
}

.faq-cta h3 {
    color: #1a3a1a;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.faq-cta p {
    color: #38513d;
    margin-bottom: 18px;
}

.faq-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1a6b2a;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease;
}

.faq-cta-btn:hover {
    background: #145220;
    color: #fff !important;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .faq-hero {
        padding: 40px 24px;
    }

    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 18px 16px 18px;
    }

    .faq-category-tag {
        display: none; /* hide tag on mobile to save space */
    }
}
