/* TAMBUA staff page components. Skote/Bootstrap vendor bundles remain unchanged. */
:root { --staff-accent: #556ee6; --staff-border: #e9edf3; }
.staff-workspace .main-content { min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.staff-workspace .page-content { flex: 1; padding-bottom: 28px; }
.staff-workspace .footer { position: static; height: auto; padding: 20px 12px; border-top: 1px solid var(--staff-border); }
.staff-workspace .container-fluid { max-width: 1720px; }
.staff-wordmark { font-size: 20px; font-weight: 700; letter-spacing: 1.8px; white-space: nowrap; }
.staff-brand-mark { display: inline-flex; align-items: center; justify-content: center; height: 30px; width: 30px; margin-right: 7px; border-radius: 8px; background: #556ee6; color: #fff; font-size: 18px; letter-spacing: 0; }
.navbar-brand-box .staff-wordmark { color: #fff; }
.staff-topbar-label { font-size: 14px; color: #74788d; }
.staff-identity { align-items: center; gap: 10px; margin-right: 15px; line-height: 1.35; max-width: 260px; }
.staff-identity > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.staff-user-avatar { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #eef0fd; color: #556ee6; font-weight: 600; }
.staff-signout { margin-right: 8px; white-space: nowrap; }
.staff-sidebar-note { margin: 40px 22px 24px; font-size: 11px; color: #a6b0cf; }
.staff-workspace #sidebar-menu a.active { color: #fff; background: rgba(255,255,255,.07); border-left: 3px solid #8da0ff; padding-left: calc(1.5rem - 3px); }
.staff-workspace #sidebar-menu a.active i { color: #a8b6ff; }
.staff-workspace.vertical-collpsed .staff-sidebar-note { display: none; }
.staff-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.staff-page-header > div { min-width: 0; }
.staff-page-header h1 { overflow-wrap: anywhere; }
.staff-page-header .breadcrumb { font-size: 12px; }
.staff-page-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.staff-card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 20px 16px; background: transparent; border-bottom: 1px solid var(--staff-border); }
.staff-card-header .card-title { font-size: 15px; font-weight: 600; }
.staff-workspace .card { border-radius: 8px; box-shadow: 0 2px 8px rgba(18,38,63,.035); }
.staff-stat-card .card-body { min-height: 142px; }
.staff-stat-icon, .staff-empty-icon { display: inline-flex; align-items: center; justify-content: center; height: 46px; width: 46px; border-radius: 12px; background: #eef0fd; color: #556ee6; font-size: 25px; flex-shrink: 0; }
.staff-count-link { display: block; border: 1px solid transparent; color: inherit; transition: border-color .15s; }
.staff-count-link:hover, .staff-count-link.is-selected { border-color: #556ee6; }
.staff-count-link.is-selected { background: #f5f6ff; }
.staff-count-link .card-body { padding: 18px 20px; }
.staff-table { min-width: 580px; }
.staff-table thead th { background: #f8f9fc; color: #74788d; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; border-bottom-width: 1px; }
.staff-table th, .staff-table td { padding: 14px 16px; }
.staff-table td { overflow-wrap: anywhere; }
.staff-table tbody tr:last-child td { border-bottom: 0; }
.staff-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; padding: 6px 9px; border-radius: 5px; white-space: normal; text-align: start; }
.staff-status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.staff-status-success { background: #e6f6ef; color: #187954; }
.staff-status-warning { background: #fff4df; color: #926116; }
.staff-status-danger { background: #fdebec; color: #b5414d; }
.staff-status-secondary { background: #edf0f5; color: #596579; }
.staff-detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--staff-border); }
.staff-detail-list > div:first-child { padding-top: 0; }
.staff-detail-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.staff-detail-list dt { font-weight: 400; color: #74788d; flex: 0 0 42%; }
.staff-detail-list dd { text-align: end; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.staff-related-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; color: inherit; border-bottom: 1px solid var(--staff-border); }
.staff-related-link:first-child { padding-top: 0; }
.staff-related-link:last-child { padding-bottom: 0; border-bottom: 0; }
.staff-related-link:hover { color: #556ee6; }
.staff-related-link small { display: block; margin-top: 4px; }
.staff-empty-state { padding: 28px 12px; text-align: center; }
.staff-empty-state p { max-width: 450px; margin-inline: auto; }
.staff-empty-icon { height: 54px; width: 54px; background: #f1f3f9; color: #74788d; }
.staff-evidence-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--staff-border); }
.staff-evidence-row:first-child { padding-top: 0; }
.staff-evidence-row:last-child { padding-bottom: 0; border: 0; }
.staff-evidence-row > div:first-child { min-width: 0; }
.staff-evidence-action { flex-shrink: 0; max-width: 150px; }
.staff-file-icon { height: 40px; width: 36px; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; background: #f1f3fb; color: #556ee6; border-radius: 5px; font-size: 25px; }
.staff-timeline { margin-left: 5px; }
.staff-timeline > li { position: relative; padding: 0 0 24px 24px; border-left: 1px solid var(--staff-border); }
.staff-timeline > li:last-child { padding-bottom: 0; }
.staff-timeline-dot { position: absolute; left: -5px; top: 5px; height: 9px; width: 9px; border-radius: 50%; background: #556ee6; box-shadow: 0 0 0 4px #f0f2ff; }
.staff-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-break-word { overflow-wrap: anywhere; min-width: 0; }
.staff-form-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--staff-border); }
.staff-pagination nav > div { margin-bottom: 0 !important; }
.staff-pagination nav p { display: none; }
.staff-pagination .pagination { margin-bottom: 0; }
.staff-pagination nav .d-sm-flex > div:first-child { display: none; }
.fw-semibold { font-weight: 600; }
.staff-eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 700; }
.staff-auth { min-height: 100vh; display: flex; align-items: center; background: #f3f5fa; }
.staff-auth-container { max-width: 980px; padding-top: 40px; padding-bottom: 40px; }
.staff-auth-panel { overflow: hidden; border-radius: 12px; box-shadow: 0 10px 50px rgba(18,38,63,.07); }
.staff-auth-intro { padding: 42px 36px; flex-direction: column; justify-content: space-between; gap: 75px; color: #b9c3de; background: #2a3042; }
.staff-auth-intro .staff-wordmark { color: #fff; }
.staff-auth-intro h2 { font-size: 25px; line-height: 1.5; }
.staff-auth-intro p { line-height: 1.8; }
.staff-auth-form { padding: 52px 45px; }
.staff-auth-form .btn { min-height: 42px; }
.staff-skip-link { position: fixed; z-index: 1100; top: -80px; left: 16px; padding: 12px 18px; background: #fff; color: #283987; border-radius: 5px; }
.staff-skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #798bf1; outline-offset: 3px; }
.staff-sidebar-overlay { display: none; }
body[data-layout-mode="dark"] .staff-count-link.is-selected { background: #303b5e; }
body[data-layout-mode="dark"] .staff-table thead th { background: #30374b; color: #c3cbe4; }
body[data-layout-mode="dark"] .staff-card-header, body[data-layout-mode="dark"] .staff-detail-list > div, body[data-layout-mode="dark"] .staff-evidence-row { border-color: #3c4357; }
@media (max-width: 991.98px) {
    .staff-page-header { flex-direction: column; align-items: stretch; gap: 16px; }
    .staff-workspace .navbar-header { padding: 0 14px 0 0; }
    .staff-workspace .navbar-brand-box { display: none; }
    .staff-sidebar-overlay:not([hidden]) { display: block; position: fixed; inset: 70px 0 0; border: 0; background: rgba(18,38,63,.4); z-index: 1000; }
}
@media (max-width: 575.98px) {
    .staff-workspace .page-content { padding-inline: 0; }
    .staff-page-header h1 { font-size: 23px; }
    .staff-page-actions .btn { flex: 1; }
    .staff-count-link .card-body { padding: 16px; }
    .staff-count-link .card-body > span:first-child { font-size: 12px; }
    .staff-evidence-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .staff-evidence-action { margin-left: 52px; max-width: none; }
    .staff-auth-container { padding: 20px 16px; }
    .staff-auth-form { padding: 30px 24px; }
    .staff-pagination { align-items: start !important; flex-direction: column; }
    .staff-detail-list > div { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
