:root {
    --primary: #32865a;
    --primary-dark: #163d2d;
    --primary-hover: #276e49;
    --background: #f4f7f5;
    --surface: #ffffff;
    --text: #172b24;
    --muted: #78877f;
    --border: #e3eae5;
    --sidebar-width: 270px;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(22, 61, 45, .05);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

button, a, input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

:focus-visible {
    outline: 3px solid #82bc99;
    outline-offset: 3px;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: #f0f5f1;
}

.btn-block {
    width: 100%;
}

/* FORMS */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 13px;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #dce5df;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(50, 134, 90, .10);
}

.form-control::placeholder {
    color: #a2afa7;
}

.field-error {
    font-size: 12px;
    color: #b83b3b;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 90px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.password-requirements {
    padding: 13px;
    border-radius: 8px;
    background: #f0f6f2;
    color: #52715e;
    font-size: 12px;
}

/* AUTHORIZATION */

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    overflow: hidden;
    background: linear-gradient(
        145deg, #102f22, #1b5138 65%, #32865a
    );
    color: white;
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand::before {
    top: -160px;
    right: -140px;
}

.auth-brand::after {
    bottom: -220px;
    left: -140px;
}

.brand-logo {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -2px;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 60px 0;
}

.brand-label {
    color: #a4d5ae;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}

.brand-content h1 {
    margin: 22px 0;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -1.8px;
}

.brand-content p {
    max-width: 410px;
    color: #c5dfce;
    font-size: 17px;
    line-height: 1.8;
}

.brand-features {
    display: grid;
    gap: 16px;
    margin-top: 38px;
}

.brand-features span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0efe4;
}

.brand-features span::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(164,213,174,.16);
    color: #a4d5ae;
}

.auth-brand footer {
    color: #a4c4af;
    font-size: 12px;
    letter-spacing: 2px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background: white;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-heading {
    margin-bottom: 32px;
}

.auth-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #edf6ef;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.auth-heading h2 {
    margin: 18px 0 8px;
    font-size: 32px;
    letter-spacing: -1px;
}

.auth-heading p {
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 22px;
}

.auth-form .btn-primary {
    min-height: 50px;
}

.auth-card > form + form {
    margin-top: 14px;
}

.auth-security {
    margin: 25px 0 15px;
    color: var(--primary);
    font-size: 12px;
    text-align: center;
}

.auth-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* CRM LAYOUT */

.crm-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    background: var(--primary-dark);
    color: #e5efe9;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 28px 23px;
}

.sidebar-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #32865a;
    color: white;
    font-size: 21px;
    font-weight: 700;
}

.sidebar-brand strong {
    display: block;
    color: white;
    font-size: 15px;
    letter-spacing: 1.4px;
}

.sidebar-brand small {
    display: block;
    margin-top: 2px;
    color: #9fc2ad;
    font-size: 10px;
    letter-spacing: 2px;
}

.workspace {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px 20px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
}

.workspace-indicator {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #83dba2;
    box-shadow: 0 0 10px rgba(131,219,162,.3);
}

.workspace strong,
.workspace small {
    display: block;
}

.workspace strong {
    font-size: 12px;
}

.workspace small {
    margin-top: 3px;
    color: #9fc2ad;
    font-size: 10px;
}

.sidebar-navigation {
    flex: 1;
    padding: 0 12px 20px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.nav-section {
    margin: 24px 12px 10px;
    color: #8eaf9b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 3px 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #dcebe1;
    font-size: 12px;
    transition: background .2s;
}

.nav-item.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

a.nav-item:hover {
    background: rgba(255,255,255,.12);
}

.nav-icon {
    width: 20px;
    flex-shrink: 0;
    font-size: 19px;
    text-align: center;
}

.nav-disabled {
    opacity: .65;
    cursor: default;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #90b29d;
    font-size: 10px;
}

.crm-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    min-width: 0;
}

/* TOPBAR */

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 78px;
    padding: 16px 30px;
    border-bottom: 1px solid var(--border);
    background: white;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.breadcrumb {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
}

.topbar-left strong {
    font-size: 16px;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e5f1e8;
    color: var(--primary);
    font-weight: 700;
}

.user-information strong,
.user-information small {
    display: block;
}

.user-information strong {
    font-size: 12px;
}

.user-information small {
    color: var(--muted);
    font-size: 11px;
}

.topbar .btn {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 12px;
}

.menu-toggle {
    display: none;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-size: 20px;
}

/* MAIN CONTENT */

.page-content {
    flex: 1;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dashboard-welcome h1 {
    margin: 6px 0;
    font-size: 30px;
    letter-spacing: -1px;
}

.dashboard-welcome p {
    color: var(--muted);
    font-size: 13px;
}

.dashboard-date {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 23px;
    font-weight: 600;
}

.stat-blue {
    background: #e8f0fc;
    color: #3979b8;
}

.stat-green {
    background: #e7f4ea;
    color: #32865a;
}

.stat-orange {
    background: #fff3df;
    color: #b57c29;
}

.stat-purple {
    background: #f0eafa;
    color: #8565bc;
}

.stat-period {
    color: #9aa69e;
    font-size: 10px;
}

.stat-label {
    color: #607269;
    font-size: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 30px;
    font-weight: 650;
    line-height: 1.15;
}

.stat-description {
    color: #93a097;
    font-size: 11px;
}

/* PANELS */

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

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

.panel-header h2 {
    font-size: 17px;
    font-weight: 650;
}

.panel-header p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.panel-header .btn {
    flex-shrink: 0;
    min-height: 33px;
    padding: 7px 12px;
    font-size: 11px;
}

/* TABLES */

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    background: #f6f8f6;
    color: #6c7f72;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #edf1ed;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 25px 15px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    border-radius: 18px;
    background: #edf4ef;
    color: #91ae9a;
    font-size: 30px;
}

.empty-state h3 {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.empty-state p {
    max-width: 270px;
    color: var(--muted);
    font-size: 12px;
}

/* QUICK ACTIONS */

.quick-actions {
    display: grid;
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    text-align: left;
}

.quick-action:disabled {
    opacity: .7;
}

.quick-action-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #edf5ef;
    color: var(--primary);
    font-size: 20px;
}

.quick-action-text {
    flex: 1;
}

.quick-action-text strong,
.quick-action-text small {
    display: block;
}

.quick-action-text strong {
    font-size: 12px;
    font-weight: 600;
}

.quick-action-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.quick-action-arrow {
    color: #8ea297;
    font-size: 23px;
}

/* NOTIFICATIONS */

.notifications {
    position: fixed;
    z-index: 1000;
    top: 20px;
    right: 20px;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100% - 40px));
}

.notification {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
    font-size: 13px;
}

.notification-success {
    border-left-color: #32865a;
}

.notification-danger {
    border-left-color: #c44e4e;
}

.notification-warning {
    border-left-color: #d4a041;
}

.main-footer {
    padding: 20px 30px;
    color: #91a097;
    font-size: 11px;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .auth-brand {
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform .25s, visibility .25s;
    }

    .sidebar.open {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 0 0 0 100vmax rgba(0,0,0,.25);
    }

    .crm-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .page-content {
        padding: 20px;
    }

    .topbar {
        padding: 15px 20px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: 220px;
        padding: 30px;
    }

    .brand-content {
        margin: 25px 0 0;
    }

    .brand-content h1 {
        font-size: 28px;
    }

    .brand-content p {
        font-size: 14px;
    }

    .brand-features,
    .auth-brand footer {
        display: none;
    }

    .auth-main {
        padding: 35px 25px;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 15px;
    }

    .topbar {
        padding: 12px;
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        gap: 8px;
    }

    .topbar-left strong {
        font-size: 12px;
    }

    .user-information,
    .user-avatar,
    .breadcrumb {
        display: none;
    }

    .topbar .btn {
        padding: 7px 9px;
        font-size: 11px;
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-welcome h1 {
        font-size: 23px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 25px;
    }

    .stat-description {
        font-size: 10px;
    }

    .panel {
        padding: 15px;
    }

    .panel-header h2 {
        font-size: 15px;
    }

    .auth-heading h2 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================
   GREENLEAF CRM — EMPLOYEES MODULE
   ========================================= */

.employees-page {
    width: 100%;
    min-width: 0;
    color: #24372c;
}

.employees-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 26px;
}

.employees-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 7px;
    color: #193c2b;
}

.employees-header p {
    margin: 0;
    color: #78867d;
    font-size: 14px;
}

/* Statistics */

.employees-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.employee-stat {
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(25, 60, 43, 0.04);
}

.employee-stat span {
    display: block;
    font-size: 13px;
    color: #78867d;
    margin-bottom: 12px;
}

.employee-stat strong {
    font-size: 32px;
    font-weight: 700;
    color: #24372c;
}

.employee-text-green {
    color: #248451 !important;
}

.employee-text-red {
    color: #bc4141 !important;
}

/* Table */

.employees-table-card {
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(25, 60, 43, 0.04);
}

.employees-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.employees-table th {
    padding: 16px;
    color: #697b70;
    background: #f5f8f6;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #e2eae5;
}

.employees-table td {
    padding: 17px 16px;
    border-bottom: 1px solid #edf1ee;
    vertical-align: middle;
}

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

.employees-table tbody tr:hover {
    background: #f9fbfa;
}

.employees-table small,
.employee-person small {
    display: block;
    color: #849087;
    font-size: 11px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

/* Employee identity */

.employee-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-person strong {
    font-size: 14px;
    color: #263e30;
}

.employee-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e4f1e8;
    color: #287c50;
    font-size: 15px;
    font-weight: 700;
}

.employee-role {
    display: inline-block;
    padding: 6px 10px;
    background: #edf3f8;
    color: #456782;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
}

/* Account status */

.employee-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.employee-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.employee-status.active {
    color: #23814b;
    background: #e6f5eb;
}

.employee-status.blocked {
    color: #bb4141;
    background: #fceaea;
}

.employee-owner {
    color: #849087;
    font-size: 12px;
}

/* Buttons */

.employee-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 210px;
}

.employee-actions form {
    margin: 0;
}

.employee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 8px;
    border: 1px solid #dce6df;
    background: #ffffff;
    color: #40594a;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.employee-btn:hover {
    background: #f0f6f2;
    border-color: #adcbb7;
}

.employee-btn-primary {
    background: #287c50;
    border-color: #287c50;
    color: #ffffff;
    padding: 12px 20px;
}

.employee-btn-primary:hover {
    background: #216841;
    border-color: #216841;
    color: #ffffff;
}

.employee-btn-danger {
    color: #b63d3d;
    border-color: #efcdcd;
}

.employee-btn-danger:hover {
    background: #fff0f0;
    border-color: #da9696;
}

.employee-btn-permissions {
    color: #287c50;
    border-color: #bfdac9;
}

/* Forms */

.employee-form-card {
    max-width: 1100px;
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(25, 60, 43, 0.04);
}

.employee-form-card h2 {
    font-size: 17px;
    color: #254834;
    margin: 26px 0 18px;
    font-weight: 650;
}

.employee-form-card h2:first-of-type {
    margin-top: 0;
}

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

.employee-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.employee-field label {
    font-size: 13px;
    font-weight: 600;
    color: #435b4b;
}

.employee-input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #dce6df;
    border-radius: 9px;
    background: #fbfdfb;
    color: #263e30;
    font-size: 14px;
    font-family: inherit;
}

.employee-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4e9a6c;
    box-shadow: 0 0 0 3px rgba(40, 124, 80, 0.09);
}

.employee-field-error {
    color: #bc4141;
    font-size: 12px;
}

.employee-notice {
    padding: 17px 19px;
    background: #f0f7f2;
    border: 1px solid #dceade;
    border-left: 3px solid #4e9a6c;
    border-radius: 9px;
    color: #45634f;
    font-size: 13px;
    line-height: 1.6;
    margin: 22px 0;
}

.employee-notice p {
    margin: 6px 0 0;
}

.employee-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 24px 0;
    font-size: 14px;
}

.employee-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #287c50;
}

.employee-form-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    margin-top: 25px;
    border-top: 1px solid #edf1ee;
}

.permission-select {
    min-width: 145px;
}

/* Keyboard accessibility */

.employee-btn:focus-visible {
    outline: 2px solid #287c50;
    outline-offset: 3px;
}

/* Responsive layout */

@media (max-width: 900px) {
    .employees-stats {
        gap: 10px;
    }

    .employee-stat {
        padding: 16px;
    }

    .employee-form-card {
        padding: 20px;
    }

    .employees-table {
        min-width: 760px;
    }
}

@media (max-width: 600px) {
    .employees-header {
        align-items: stretch;
        flex-direction: column;
    }

    .employees-header h1 {
        font-size: 23px;
    }

    .employees-stats {
        grid-template-columns: 1fr;
    }

    .employee-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .employee-stat span {
        margin: 0;
    }

    .employee-stat strong {
        font-size: 25px;
    }

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

    .employee-form-card {
        padding: 16px;
    }

    .employee-form-footer {
        flex-direction: column-reverse;
    }

    .employee-form-footer .employee-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* END EMPLOYEES MODULE */


/* =========================================
   GREENLEAF CRM — AUDIT LOG MODULE
   ========================================= */

.audit-page {
    width: 100%;
    min-width: 0;
}

/* Search and filters */

.audit-filter-card {
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(25, 60, 43, 0.04);
}

.audit-filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.audit-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.audit-results-info {
    color: #78867d;
    font-size: 13px;
    margin-bottom: 14px;
}

.audit-results-info strong {
    color: #287c50;
}

/* Events table */

.audit-table {
    min-width: 950px;
}

.audit-date {
    white-space: nowrap;
    font-weight: 600;
    color: #40594a;
}

.audit-date small {
    font-weight: 400;
}

.audit-event-label {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 8px;
    background: #e6f5eb;
    color: #287c50;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.5;
}

.audit-event-warning {
    background: #fceaea;
    color: #bc4141;
}

/* Event details */

.audit-details {
    min-width: 110px;
}

.audit-details summary {
    cursor: pointer;
    color: #287c50;
    font-weight: 600;
    font-size: 12px;
}

.audit-details summary:hover {
    color: #193e2d;
}

.audit-details pre {
    max-width: 350px;
    max-height: 260px;
    overflow: auto;
    margin-top: 12px;
    padding: 14px;
    background: #f5f8f6;
    border: 1px solid #e2eae5;
    border-radius: 8px;
    color: #40594a;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Empty state */

.audit-empty {
    text-align: center;
    padding: 60px 20px !important;
    color: #849087;
}

.audit-empty strong {
    display: block;
    color: #40594a;
    font-size: 17px;
    margin-bottom: 10px;
}

.audit-empty p {
    margin: 0;
    font-size: 13px;
}

/* Pagination */

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.audit-pagination .employee-btn {
    min-width: 38px;
    min-height: 38px;
    box-sizing: border-box;
}

.audit-pagination span {
    color: #849087;
    padding: 0 5px;
}

/* Responsive layout */

@media (max-width: 1000px) {
    .audit-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .audit-filter-grid .employee-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .audit-filter-card {
        padding: 16px;
    }

    .audit-filter-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .audit-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-filter-actions .employee-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .audit-details pre {
        max-width: 240px;
    }
}

/* END AUDIT LOG MODULE */


/* =========================================
   GREENLEAF CRM — AUDIT LOG MODULE
   ========================================= */

.audit-page {
    width: 100%;
    min-width: 0;
}

/* Search and filters */

.audit-filter-card {
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(25, 60, 43, 0.04);
}

.audit-filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.audit-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.audit-results-info {
    color: #78867d;
    font-size: 13px;
    margin-bottom: 14px;
}

.audit-results-info strong {
    color: #287c50;
}

/* Events table */

.audit-table {
    min-width: 950px;
}

.audit-date {
    white-space: nowrap;
    font-weight: 600;
    color: #40594a;
}

.audit-date small {
    font-weight: 400;
}

.audit-event-label {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 8px;
    background: #e6f5eb;
    color: #287c50;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.5;
}

.audit-event-warning {
    background: #fceaea;
    color: #bc4141;
}

/* Event details */

.audit-details {
    min-width: 110px;
}

.audit-details summary {
    cursor: pointer;
    color: #287c50;
    font-weight: 600;
    font-size: 12px;
}

.audit-details summary:hover {
    color: #193e2d;
}

.audit-details pre {
    max-width: 350px;
    max-height: 260px;
    overflow: auto;
    margin-top: 12px;
    padding: 14px;
    background: #f5f8f6;
    border: 1px solid #e2eae5;
    border-radius: 8px;
    color: #40594a;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Empty state */

.audit-empty {
    text-align: center;
    padding: 60px 20px !important;
    color: #849087;
}

.audit-empty strong {
    display: block;
    color: #40594a;
    font-size: 17px;
    margin-bottom: 10px;
}

.audit-empty p {
    margin: 0;
    font-size: 13px;
}

/* Pagination */

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.audit-pagination .employee-btn {
    min-width: 38px;
    min-height: 38px;
    box-sizing: border-box;
}

.audit-pagination span {
    color: #849087;
    padding: 0 5px;
}

/* Responsive layout */

@media (max-width: 1000px) {
    .audit-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .audit-filter-grid .employee-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .audit-filter-card {
        padding: 16px;
    }

    .audit-filter-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .audit-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-filter-actions .employee-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .audit-details pre {
        max-width: 240px;
    }
}

/* END AUDIT LOG MODULE */


/* =========================================
   GREENLEAF CRM — AUDIT LOG MODULE
   ========================================= */

.audit-page {
    width: 100%;
    min-width: 0;
}

/* Search and filters */

.audit-filter-card {
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(25, 60, 43, 0.04);
}

.audit-filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.audit-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.audit-results-info {
    color: #78867d;
    font-size: 13px;
    margin-bottom: 14px;
}

.audit-results-info strong {
    color: #287c50;
}

/* Events table */

.audit-table {
    min-width: 950px;
}

.audit-date {
    white-space: nowrap;
    font-weight: 600;
    color: #40594a;
}

.audit-date small {
    font-weight: 400;
}

.audit-event-label {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 8px;
    background: #e6f5eb;
    color: #287c50;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.5;
}

.audit-event-warning {
    background: #fceaea;
    color: #bc4141;
}

/* Event details */

.audit-details {
    min-width: 110px;
}

.audit-details summary {
    cursor: pointer;
    color: #287c50;
    font-weight: 600;
    font-size: 12px;
}

.audit-details summary:hover {
    color: #193e2d;
}

.audit-details pre {
    max-width: 350px;
    max-height: 260px;
    overflow: auto;
    margin-top: 12px;
    padding: 14px;
    background: #f5f8f6;
    border: 1px solid #e2eae5;
    border-radius: 8px;
    color: #40594a;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Empty state */

.audit-empty {
    text-align: center;
    padding: 60px 20px !important;
    color: #849087;
}

.audit-empty strong {
    display: block;
    color: #40594a;
    font-size: 17px;
    margin-bottom: 10px;
}

.audit-empty p {
    margin: 0;
    font-size: 13px;
}

/* Pagination */

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.audit-pagination .employee-btn {
    min-width: 38px;
    min-height: 38px;
    box-sizing: border-box;
}

.audit-pagination span {
    color: #849087;
    padding: 0 5px;
}

/* Responsive layout */

@media (max-width: 1000px) {
    .audit-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .audit-filter-grid .employee-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .audit-filter-card {
        padding: 16px;
    }

    .audit-filter-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .audit-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-filter-actions .employee-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .audit-details pre {
        max-width: 240px;
    }
}

/* END AUDIT LOG MODULE */
