/* =========================================================
   STAFF WORKSPACE
   ========================================================= */

.ls-staff {
    --ls-green: #155d3e;
    --ls-ink: #182b24;
    --ls-line: #d9e4de;
    --ls-muted: #52645b;

    max-width: 1160px;
    margin: 32px auto;
    padding: 28px;
    background: #f3f7f4;
    border: 1px solid var(--ls-line);
    border-radius: 18px;
    color: var(--ls-ink);
    font: 16px/1.55 system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

.ls-staff * {
    box-sizing: border-box;
}

.ls-staff h1,
.ls-staff h2,
.ls-staff h3,
.ls-staff p {
    margin: 0 0 14px;
    color: inherit;
}

.ls-staff h1 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 750;
}

.ls-staff h2 {
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.ls-staff h3 {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

.ls-staff a {
    color: var(--ls-green);
}


/* =========================================================
   HEADER
   ========================================================= */

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

.ls-staff-kicker {
    display: block;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ls-muted);
    margin-bottom: 8px;
}

.ls-staff-muted {
    color: var(--ls-muted) !important;
    font-size: 14px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.ls-staff-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--ls-line);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.ls-staff-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: 650;
    border: 1px solid var(--ls-line);
    border-radius: 9px;
    background: #fff;
}

.ls-staff-nav a[aria-current="page"] {
    background: var(--ls-green);
    color: #fff;
    border-color: var(--ls-green);
}


/* =========================================================
   OVERVIEW CARDS AND PANELS
   ========================================================= */

.ls-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.ls-staff-card,
.ls-staff-panel,
.ls-staff-record {
    background: #fff;
    border: 1px solid var(--ls-line);
    border-radius: 12px;
    padding: 22px;
}

.ls-staff-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    gap: 12px;
}

.ls-staff-label {
    font-weight: 650;
    color: var(--ls-ink);
}

.ls-staff-number {
    font-size: 40px;
    line-height: 1.15;
    color: var(--ls-green);
}

.ls-staff-panel {
    margin: 18px 0;
}

.ls-staff-panel ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.ls-staff-panel li {
    padding: 3px 0;
}


/* =========================================================
   ACCOUNT AND CUSTOMER RECORDS
   ========================================================= */

.ls-staff-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 12px 0;
}

.ls-staff-record p {
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.ls-staff-record h3 {
    margin-bottom: 8px;
}

.ls-staff-badge {
    display: inline-block;
    font-size: 13px;
    background: #eef4ef;
    color: #365447;
    padding: 5px 9px;
    border-radius: 6px;
}


/* =========================================================
   BUTTONS AND FOCUS STATES
   ========================================================= */

.ls-staff-primary,
.ls-staff-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--ls-green);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    cursor: pointer;
    white-space: normal;
    text-align: center;
}

.ls-staff .ls-staff-primary {
    background: var(--ls-green);
    color: #fff;
}

.ls-staff .ls-staff-secondary {
    background: #fff;
    color: var(--ls-green);
}

.ls-staff a:hover,
.ls-staff button:hover {
    filter: brightness(.95);
}

.ls-staff a:focus-visible,
.ls-staff button:focus-visible,
.ls-staff input:focus-visible,
.ls-staff select:focus-visible {
    outline: 3px solid #e7893c;
    outline-offset: 3px;
}


/* =========================================================
   NOTICES
   ========================================================= */

.ls-staff-notice {
    margin: 16px 0;
    padding: 16px 18px;
    background: #e8f4eb;
    border-left: 4px solid #26744e;
    border-radius: 6px;
}

.ls-staff-error {
    background: #fff3e8;
    border-left-color: #bd651e;
}


/* =========================================================
   SEARCH FORMS
   ========================================================= */

.ls-staff-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ls-line);
    padding: 18px;
    border-radius: 12px;
    margin: 18px 0;
}

.ls-staff label {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.ls-staff-search label {
    flex: 1;
    min-width: 180px;
}

.ls-staff input:not([type="checkbox"]):not([type="hidden"]),
.ls-staff select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #9cad9f;
    border-radius: 7px;
    background: #fff;
    color: var(--ls-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.ls-staff-login {
    max-width: 520px;
    margin: 24px auto;
}

.ls-staff-login label {
    margin-bottom: 18px;
}

.ls-staff-login button {
    width: 100%;
    margin: 4px 0 18px;
}


/* =========================================================
   CUSTOMER DETAILS AND APPROVAL CHECKBOX
   ========================================================= */

.ls-staff dl {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
}

.ls-staff dt {
    font-weight: 650;
}

.ls-staff dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.ls-staff .ls-staff-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-weight: 400;
    font-size: 16px;
}

.ls-staff-check input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin: 3px 0 0;
}


/* =========================================================
   PAGINATION AND BACK LINKS
   ========================================================= */

.ls-staff-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.ls-staff-back {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 650;
}


/* =========================================================
   SMALL SCREEN ADJUSTMENTS
   ========================================================= */

@media (max-width: 640px) {
    .ls-staff {
        margin: 16px 0;
        padding: 18px;
        border-radius: 12px;
    }

    .ls-staff h1 {
        font-size: 26px;
    }

    .ls-staff h2 {
        font-size: 23px;
    }

    .ls-staff-grid {
        grid-template-columns: 1fr;
    }

    .ls-staff-record {
        align-items: stretch;
        flex-direction: column;
    }

    .ls-staff-record > a {
        align-self: flex-start;
    }

    .ls-staff-panel,
    .ls-staff-record,
    .ls-staff-card {
        padding: 18px;
    }

    .ls-staff dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ls-staff dd {
        margin-bottom: 12px;
    }

    .ls-staff-search {
        flex-direction: column;
        align-items: stretch;
    }

    .ls-staff-search label {
        min-width: 0;
    }

    .ls-staff-nav a {
        font-size: 14px;
        padding: 9px 12px;
    }

    .ls-staff-pager {
        gap: 10px;
        flex-wrap: wrap;
    }

    .ls-staff-header {
        align-items: flex-start;
    }

    .ls-staff-header .ls-staff-secondary {
        padding: 8px 11px;
        font-size: 14px;
        flex-shrink: 0;
    }
}


/* =========================================================
   DEDICATED PAGE AND DESKTOP SIDEBAR
   ========================================================= */

.leysam-staff-page {
    margin: 0;
    padding: 24px 16px;
    background: #f3f7f4;
}

.ls-staff-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
}

.ls-staff-layout .ls-staff-nav {
    display: flex;
    flex-direction: column;
    align-self: start;
    border: 0;
    margin: 0;
    padding: 0;
}

.ls-staff-main {
    min-width: 0;
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 780px) {
    .ls-staff-layout {
        grid-template-columns: 1fr;
    }

    .ls-staff-layout .ls-staff-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .leysam-staff-page {
        padding: 12px 8px;
    }
}
/* v1.8.4: grouped, consistent staff navigation */
.ls-staff-nav-group { display:flex; flex-direction:column; gap:6px; min-width:0; }
.ls-staff-nav-heading { display:block; padding:13px 12px 4px; color:#51635a; font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.ls-staff-layout .ls-staff-nav { gap:8px; }
.ls-staff-nav-group a { display:block; padding:10px 12px; border-radius:9px; overflow-wrap:anywhere; }
@media (max-width:780px) {
  .ls-staff-layout .ls-staff-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .ls-staff-nav-group { border:1px solid var(--ls-line); background:#fff; border-radius:12px; padding:7px; }
  .ls-staff-nav-heading { padding:8px 7px 4px; }
  .ls-staff-nav-group a { padding:9px 8px; font-size:13px; }
}
@media (max-width:420px) { .ls-staff-layout .ls-staff-nav { grid-template-columns:1fr; } }
