/* =====================================================
   PRINTBUDDY EXPRESS — STAFF THEME CSS
   Sky Blue Minimal — Task-Focused Interface
   ===================================================== */

/* ── Staff Color Tokens ── */
:root {
    --stf-primary: #334155;
    --stf-primary-lt: #475569;
    --stf-accent: #0EA5E9;
    --stf-accent-lt: #38BDF8;
    --stf-surface: #F1F5F9;
    --stf-card: #FFFFFF;
    --stf-border: #CBD5E1;
    --stf-text: #1E293B;
    --stf-text-md: #334155;
    --stf-text-muted: #64748B;
    --stf-radius: 12px;
    --stf-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

body.staff-page {
    background: var(--stf-surface);
    color: var(--stf-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* ==============================================
   STAFF HEADER
   ============================================== */
.header-staff {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--stf-primary);
    padding: 0 36px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}

.header-staff .stf-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.header-staff .stf-brand-dot {
    width: 32px;
    height: 32px;
    background: var(--stf-accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
}

.header-staff .stf-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
}

.header-staff .stf-brand-role {
    font-size: 11px;
    color: #94A3B8;
}

.nav-staff {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-staff a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #CBD5E1;
    transition: all 0.2s;
}

.nav-staff a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.nav-staff a.nav-active {
    background: rgba(14, 165, 233, 0.22);
    color: #7DD3FC;
}

.nav-staff a.nav-logout {
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
    margin-left: 8px;
}

.nav-staff a.nav-logout:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #FEE2E2;
}

/* ==============================================
   STAFF FOOTER
   ============================================== */
.footer-staff {
    background: var(--stf-primary);
    border-top: 1px solid #2D3748;
    padding: 18px 36px;
    margin-top: 50px;
}

.footer-staff-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-staff p {
    font-size: 12.5px;
    color: #64748B;
}

.footer-staff .stf-footer-role {
    font-size: 12px;
    color: var(--stf-accent);
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 999px;
}

/* ==============================================
   STAFF HERO BANNER
   ============================================== */
.stf-hero {
    background: linear-gradient(135deg, #1E293B 0%, #0C4A6E 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.stf-hero .hero-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7DD3FC;
    margin-bottom: 8px;
}

.stf-hero h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.stf-hero p {
    font-size: 13.5px;
    color: #BAE6FD;
    line-height: 1.6;
}

/* ==============================================
   STAFF STAT CARDS
   ============================================== */
.stf-stat-card {
    background: var(--stf-card);
    border: 1.5px solid var(--stf-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--stf-shadow);
    text-decoration: none;
    display: block;
    transition: all 0.22s;
    color: var(--stf-text);
}

.stf-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    border-color: var(--stf-accent);
}

.stf-stat-card .stat-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stf-accent);
    margin-bottom: 14px;
}

.stf-stat-card .stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--stf-text);
    line-height: 1;
    margin-bottom: 8px;
}

.stf-stat-card .stat-label {
    font-size: 13px;
    color: var(--stf-text-muted);
    font-weight: 500;
}

/* Color variants */
.stf-stat-card.accent-pending .stat-num {
    color: #D97706;
}

.stf-stat-card.accent-queue .stat-num {
    color: #7C3AED;
}

.stf-stat-card.accent-printing .stat-num {
    color: #1D4ED8;
}

.stf-stat-card.accent-ready .stat-num {
    color: #0369A1;
}

.stf-stat-card.accent-done .stat-num {
    color: #059669;
}

/* ==============================================
   STAFF SECTION CARD
   ============================================== */
.stf-section {
    background: var(--stf-card);
    border: 1.5px solid var(--stf-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--stf-shadow);
    margin-bottom: 20px;
}

.stf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--stf-border);
    flex-wrap: wrap;
    gap: 10px;
}

.stf-section-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--stf-text);
}

.stf-section-head p {
    font-size: 13px;
    color: var(--stf-text-muted);
    margin-top: 3px;
}

/* ==============================================
   STAFF TABLE
   ============================================== */
.stf-table-wrap {
    background: var(--stf-card);
    border: 1.5px solid var(--stf-border);
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: var(--stf-shadow);
    margin-bottom: 18px;
}

.stf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.stf-table thead {
    background: #F8FAFC;
}

.stf-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748B;
    border-bottom: 1.5px solid var(--stf-border);
    white-space: nowrap;
}

.stf-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13.5px;
    color: var(--stf-text-md);
    vertical-align: middle;
}

.stf-table tr:hover td {
    background: #FAFBFC;
}

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

/* ==============================================
   STAFF BUTTONS
   ============================================== */
.btn-stf {
    background: var(--stf-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-stf:hover {
    background: #0284C7;
    transform: translateY(-1px);
}

.btn-stf-dark {
    background: var(--stf-primary);
    color: #fff;
}

.btn-stf-dark:hover {
    background: #1E293B;
}

.btn-stf-ghost {
    background: #F1F5F9;
    color: var(--stf-text-md);
    border: 1.5px solid var(--stf-border);
}

.btn-stf-ghost:hover {
    background: #E2E8F0;
}

/* ==============================================
   STAFF BADGES
   ============================================== */
.stf-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.stf-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.stf-badge-queue {
    background: #EDE9FE;
    color: #5B21B6;
}

.stf-badge-printing {
    background: #DBEAFE;
    color: #1E40AF;
}

.stf-badge-ready {
    background: #E0F2FE;
    color: #0369A1;
}

.stf-badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.stf-badge-paid {
    background: #D1FAE5;
    color: #065F46;
}

.stf-badge-unpaid {
    background: #FEE2E2;
    color: #991B1B;
}

/* ==============================================
   STAFF LOGIN
   ============================================== */
.stf-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stf-surface);
    padding: 40px 20px;
}

.stf-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--stf-card);
    border: 1.5px solid var(--stf-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    padding: 42px 36px;
    text-align: center;
}

.stf-login-card .login-icon {
    width: 56px;
    height: 56px;
    background: var(--stf-accent);
    border-radius: 16px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.stf-login-card .login-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--stf-text);
    margin-bottom: 4px;
}

.stf-login-card .login-sub {
    font-size: 13px;
    color: var(--stf-text-muted);
    margin-bottom: 28px;
}

.stf-login-card .form-group {
    text-align: left;
    margin-bottom: 16px;
}

.stf-login-card label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--stf-text-md);
    display: block;
    margin-bottom: 6px;
}

.stf-login-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--stf-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--stf-text);
    background: #F8FAFC;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.stf-login-card input:focus {
    border-color: var(--stf-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.stf-login-card .error-msg {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.stf-login-card .back-link {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--stf-text-muted);
    transition: color 0.2s;
}

.stf-login-card .back-link:hover {
    color: var(--stf-accent);
}

/* ==============================================
   STAFF STATUS UPDATE FORM
   ============================================== */
.stf-update-form {
    background: #F8FAFC;
    border: 1.5px solid var(--stf-border);
    border-radius: 12px;
    padding: 12px;
    min-width: 160px;
}

.stf-update-form select,
.stf-update-form input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--stf-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--stf-text);
    background: #fff;
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
}

.stf-update-form select:focus,
.stf-update-form input:focus {
    border-color: var(--stf-accent);
}

.stf-update-form button {
    width: 100%;
    padding: 9px;
    background: var(--stf-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.stf-update-form button:hover {
    background: #0284C7;
}

/* ==============================================
   STAFF STATUS TABS
   ============================================== */

.stf-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    border-radius: 12px;

    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;

    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    transition: all 0.2s ease;
}

.stf-tab-btn:hover {
    background: #E0F2FE;
    border-color: #38BDF8;
    color: #0369A1;
    transform: translateY(-1px);
}

.stf-tab-btn.active {
    background: linear-gradient(135deg, #0EA5E9, #2563EB);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

/* STAFF PAGINATION ACTIVE INDICATOR */
.pagination .stf-tab-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #CBD5E1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .stf-tab-btn:hover {
    background: #E0F2FE;
    color: #0369A1;
    border-color: #38BDF8;
}

.pagination .stf-tab-btn.active {
    background: #0EA5E9;
    color: #ffffff;
    border-color: #0EA5E9;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
    transform: translateY(-2px);
}

/* ==============================================
   RESPONSIVE — STAFF
   ============================================== */
@media (max-width: 768px) {
    .header-staff {
        padding: 0 16px;
    }

    .nav-staff a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .stf-hero {
        padding: 20px;
    }

    .stf-hero h1 {
        font-size: 20px;
    }

    .footer-staff {
        padding: 16px;
    }

    .footer-staff-inner {
        flex-direction: column;
    }

    .stf-login-card {
        padding: 28px 18px;
    }



}