.staff-actions{display:flex;gap:10px}.staff-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;align-items:end;padding:20px 0 26px}#staff-error,#staff-create-error,#staff-action-error{color:#a52e42;line-height:1.6}.staff-profile-dialog{max-width:760px}.staff-profile-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:8px 0 24px}.staff-profile-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.staff-profile-meta>div{border:1px solid #e9e4ee;border-radius:10px;padding:14px}.staff-profile-meta span{display:block;color:#756f83;font-size:11px;margin-bottom:6px}.staff-profile-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 28px}.danger{color:#a52e42;border-color:#e3aeba}.danger:hover{background:#fff0f2}.history-section{margin-top:24px}.history-list{display:grid;gap:9px;margin-top:12px}.history-item{border:1px solid #ebe7f0;border-radius:10px;padding:13px 15px;display:flex;justify-content:space-between;gap:18px;font-size:13px}.history-item small{display:block;color:#756f83;margin-top:4px}.staff-status-active{background:#e8f3e8;color:#2e6e43}.staff-status-inactive{background:#fff2db;color:#936619}.staff-status-exited{background:#f1edf3;color:#746b7b}#staff-action-fields{display:grid;gap:18px}textarea{font:inherit;border:1px solid #ddd8e6;border-radius:8px;background:white;color:#30283e;padding:12px 14px;min-height:90px;resize:vertical}textarea:focus-visible{outline:3px solid #9d83d5;outline-offset:2px}.profile-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;overflow-wrap:anywhere}@media(max-width:850px){.staff-filters{grid-template-columns:1fr 1fr}.staff-filters label:first-child{grid-column:1/-1}.staff-profile-meta{grid-template-columns:1fr}}@media(max-width:650px){.staff-actions{flex-direction:column}.staff-filters{grid-template-columns:1fr}.staff-filters label:first-child{grid-column:auto}.staff-profile-head,.history-item{flex-direction:column}.staff-profile-actions button{flex:1 1 45%}}
#staff-document-error{color:#a52e42;line-height:1.6}.staff-documents{margin-top:28px;border-top:1px solid #e9e4ee;padding-top:24px}.staff-documents-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.staff-documents-head h3,.staff-documents-head p{margin:0 0 5px}.staff-documents-empty{border:1px dashed #d9d1e2;border-radius:10px;padding:18px;color:#756f83}.staff-document-list{display:grid;gap:12px;margin-top:14px}.staff-document-card{border:1px solid #e5dfea;border-radius:12px;padding:15px}.staff-document-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.staff-document-title small{display:block;color:#756f83;margin-top:5px}.staff-document-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.staff-document-actions button,.document-version-row button{padding:7px 10px;font-size:12px}.document-versions{margin-top:13px;border-top:1px solid #eee9f2;padding-top:10px}.document-versions summary{cursor:pointer;color:#69569d;font-size:12px;font-weight:700}.document-version-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #f0edf3;font-size:12px;color:#6d6677}.document-version-row:last-child{border-bottom:0}#staff-document-file-wrap small{display:block;color:#756f83;margin-top:6px}@media(max-width:650px){.staff-documents-head,.staff-document-title,.document-version-row{flex-direction:column}.staff-document-actions{justify-content:flex-start}}
#asset-type-error,#asset-issue-error,#asset-resolve-error{color:#a52e42;line-height:1.6}.staff-assets{margin-top:28px;border-top:1px solid #e9e4ee;padding-top:24px}.staff-assets .history-section{margin-top:14px}.staff-assets .history-section h3{font-size:13px}.asset-exit-warning{background:#fff0f2;border:1px solid #e3aeba;border-radius:10px;color:#8d2638;padding:12px 14px;line-height:1.5;margin:0}

.staff-status-exit_in_progress{background:#fff0f2;color:#a52e42}.exit-clearance{margin-top:28px;border-top:1px solid #e9e4ee;padding-top:24px}.exit-clearance-card{border:1px solid #e3dcec;border-radius:12px;padding:16px;margin-top:12px}.clearance-checks{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.clearance-checks span{background:#f3f0f7;color:#756f83;border-radius:999px;padding:6px 10px;font-size:12px}.clearance-checks span.done{background:#e8f3e8;color:#2e6e43}

.staff-selfie-history{padding:20px 0;border-top:1px solid #e4dfdc}.selfie-history-filters{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:18px 0}.selfie-history-filters input{min-width:0;width:100%}.selfie-history-filters button,.selfie-history-photo button,.staff-selfie-history>button{min-height:48px}.selfie-history-list{display:grid;gap:16px}.selfie-history-day{border:1px solid #e4dfdc;border-radius:18px;padding:18px;background:#fff}.selfie-history-day h4{margin:0 0 8px;font-size:17px}.selfie-history-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.selfie-history-photo{padding:14px;border-radius:14px;background:#f5f3f0;min-width:0}.selfie-history-photo>p:first-child{font-weight:650}.selfie-history-image{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:12px;background:#171517;margin-top:12px}.staff-selfie-history>button{margin-top:16px}@media(max-width:650px){.selfie-history-filters{grid-template-columns:1fr 1fr}.selfie-history-filters button{grid-column:1/-1}.selfie-history-photos{grid-template-columns:1fr}}
.selfie-history-placeholder{display:grid;place-content:center;gap:12px;text-align:center;min-height:170px;background:#ebe6e2;color:#625a59;border-radius:12px;margin-bottom:12px}.selfie-history-placeholder:before{content:'◎';font-size:64px;line-height:1}

.staff-history-nav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.staff-history-nav button[aria-pressed="true"]{background:#a90e37;color:white;border-color:#a90e37}.staff-history-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0}.staff-history-filters label{display:grid;gap:6px;flex:1;min-width:150px}.staff-history-filters input{width:100%;min-height:44px}.staff-history-nav button,.staff-history-filters button{min-height:44px}.staff-history-table{overflow-x:auto;border:1px solid #e4dfdc;border-radius:12px;margin:12px 0 24px}.staff-history-table table{width:100%;border-collapse:collapse}.staff-history-table th,.staff-history-table td{padding:12px;text-align:left;white-space:nowrap;border-bottom:1px solid #eee8e5}.staff-history-table th{font-size:12px;background:#f6f3f1}.staff-history-table td{font-size:13px}.staff-history-link{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;text-align:left;padding:8px 0;color:inherit}.staff-activity-history{border-top:1px solid #e4dfdc;padding-top:20px}@media(max-width:650px){.staff-history-nav button{flex:1}.staff-history-filters button{flex:1 1 auto}}

.staff-location-setting { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
#staff-profile-dialog .staff-location-setting input[role=switch] { appearance: none; width: 44px; min-height: 26px; height: 26px; padding: 2px; border: 1px solid #756471; border-radius: 20px; background: #756471; cursor: pointer; }
#staff-profile-dialog .staff-location-setting input::before { content: ''; display: block; width: 20px; height: 20px; border-radius: 50%; background: white; }
#staff-profile-dialog .staff-location-setting input:checked { background: #943955; }
#staff-profile-dialog .staff-location-setting input:checked::before { transform: translateX(18px); }
