:root { --blue:#1457d9; --blue-dark:#0f3fa4; --ink:#172033; --muted:#687287; --line:#e3e8f0; --soft:#f4f7fb; --white:#fff; --danger:#b42318; --warning:#9a5b00; }
* { box-sizing:border-box; }
img { max-width:100%; }
html { scrollbar-gutter:stable; }
body { margin:0; min-height:100vh; color:var(--ink); background:var(--soft); font-family:Inter,Segoe UI,Arial,sans-serif; line-height:1.45; }
a { color:inherit; }
.skip-link { position:fixed; top:8px; left:275px; z-index:100; padding:10px 14px; color:white; background:var(--blue); border-radius:8px; font-size:13px; font-weight:750; text-decoration:none; transform:translateY(-150%); transition:transform .15s ease; }.skip-link:focus { transform:translateY(0); }
.sidebar { position:fixed; inset:0 auto 0 0; width:260px; padding:25px 16px 20px; display:flex; flex-direction:column; overflow-y:auto; color:#dce7ff; background:#0e1d3b; border-right:1px solid #273a5d; }
.brand { display:flex; gap:12px; align-items:center; text-decoration:none; }
.brand-logo { display:block; width:190px; height:auto; object-fit:contain; }
.sidebar-caption { margin:12px 8px 0; color:#8fa4c9; font-size:11px; font-weight:800; letter-spacing:.12em; }
.sidebar nav { display:grid; gap:5px; margin-top:30px; }
.sidebar nav a,.nav-disabled { display:flex; align-items:center; min-height:44px; gap:12px; padding:11px 12px; border-radius:9px; text-decoration:none; font-size:13px; }
.sidebar nav img { width:20px; height:20px; flex:0 0 auto; object-fit:contain; }
.sidebar nav a:hover,.sidebar nav a.active { color:white; background:#20365f; }
.sidebar nav a:focus-visible,.link-button:focus-visible { outline:2px solid #8eb4ff; outline-offset:2px; }
.nav-disabled { color:#788baa; }.nav-disabled img { opacity:.45; }.nav-disabled small { margin-left:auto; font-size:9px; }
.account { margin-top:auto; padding:15px 10px 0; border-top:1px solid #294069; font-size:13px; }
.account-user { display:flex; align-items:center; gap:10px; }.account-user strong,.account-user small { display:block; }.account-user small { margin-top:3px; color:#8498bc; font-size:10px; }.avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 auto; border-radius:50%; color:#fff; background:#2456a6; font-weight:800; }
.link-button { display:flex; align-items:center; gap:8px; padding:10px 0 0; color:#9fb4da; background:none; border:0; cursor:pointer; }.link-button img { width:16px; height:16px; }
.main { min-height:100vh; margin-left:260px; padding:38px clamp(22px,3vw,46px); outline:none; }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:28px; }
h1,h2,p { margin-top:0; } h1 { margin-bottom:7px; font-size:30px; } h2 { margin-bottom:5px; font-size:19px; }
/* Os antigos overlines eram apenas decorativos e repetiam o título seguinte. */
.eyebrow { display:none !important; }
.muted { color:var(--muted); }
.status,.badge { display:inline-flex; align-items:center; padding:7px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.status.online { color:#067647; background:#ecfdf3; }.status.offline { color:var(--danger); background:#fef3f2; }.badge.warning { color:var(--warning); background:#fff7e6; }
.metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:22px; }
.restricted-dashboard { display:flex; align-items:center; gap:20px; max-width:760px; padding:28px; }
.restricted-dashboard h2 { margin:4px 0 8px; }
.restricted-dashboard-icon { display:grid; place-items:center; flex:0 0 52px; width:52px; height:52px; border-radius:16px; background:#e8f7ef; color:#16834a; font-size:25px; font-weight:800; }
.access-create-panel { margin-bottom:20px; padding:24px; }
.access-create-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:14px; align-items:end; }
.access-create-form label { display:grid; gap:7px; min-width:0; }
.access-create-form label > span { font-size:12px; font-weight:750; color:var(--muted); }
.access-create-form input,.access-create-form select { width:100%; min-height:44px; }
.access-create-form .primary-button { min-height:44px; white-space:nowrap; }
.access-password-note { margin:13px 0 0; color:var(--muted); font-size:12px; }
@media (max-width:1200px) { .access-create-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.access-create-form .primary-button { justify-self:start; } }
@media (max-width:640px) { .access-create-form { grid-template-columns:1fr; }.restricted-dashboard { align-items:flex-start; flex-direction:column; } }
.metric-card,.panel { background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 18px rgba(25,45,80,.04); }
.metric-card { padding:22px; }.metric-card span,.metric-card small { display:block; color:var(--muted); }.metric-card strong { display:block; margin:9px 0; font-size:34px; }.metric-card a { color:var(--blue); font-size:13px; font-weight:700; text-decoration:none; }.metric-top { display:flex; justify-content:space-between; align-items:center; }.metric-icon,.section-icon,.title-icon { display:grid!important; place-items:center; border-radius:10px; }.metric-icon { width:42px; height:42px; }.metric-icon.blue { background:#e9f1ff; }.metric-icon.amber { background:#fff3da; }.metric-icon img { width:22px; height:22px; }
.panel { overflow:hidden; }.panel-heading { display:flex; align-items:center; gap:12px; padding:22px 24px 13px; }.section-icon { width:38px; height:38px; flex:0 0 auto; background:#edf3ff; }.section-icon img { width:20px; height:20px; }
.table-wrap { overflow:auto; } table { width:100%; border-collapse:collapse; } th,td { padding:14px 18px; text-align:left; border-top:1px solid var(--line); white-space:nowrap; } th { color:var(--muted); background:#fafbfd; font-size:11px; letter-spacing:.04em; text-transform:uppercase; } td { font-size:13px; }
.filters { display:grid; grid-template-columns:minmax(190px,2fr) repeat(3,minmax(110px,1fr)) auto; gap:12px; align-items:end; padding:18px 20px; }.filters label,.stack-form { display:grid; gap:6px; }.filters label span,.stack-form label { color:var(--muted); font-size:12px; font-weight:700; }
input,select { width:100%; height:42px; padding:0 12px; color:var(--ink); background:white; border:1px solid #ccd4e1; border-radius:8px; outline:none; } input:focus,select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(20,87,217,.12); }
.primary-button { min-height:42px; padding:0 18px; color:white; background:var(--blue); border:0; border-radius:8px; font-weight:700; cursor:pointer; }.primary-button:hover { background:var(--blue-dark); }.icon-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; }.icon-button img { width:17px; height:17px; }
.primary-button:focus-visible,.clear-button:focus-visible,.filter-chip:focus-visible,.employee-link:focus-visible,.row-action:focus-visible { outline:3px solid rgba(20,87,217,.22); outline-offset:2px; }
.result-count { margin:0; color:var(--muted); font-size:12px; }.result-count strong { color:var(--ink); }.empty-state { padding:44px 24px; color:var(--muted); text-align:center; }.empty-state strong,.empty-state span { display:block; }.empty-state strong { margin-bottom:5px; color:var(--ink); font-size:14px; }.pagination { display:flex; justify-content:center; align-items:center; gap:14px; padding:16px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }.pagination a.pagination-button { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 13px; color:var(--blue); background:#f4f7ff; border:1px solid #d9e4fa; border-radius:8px; font-weight:750; text-decoration:none; transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }.pagination a.pagination-button:hover { background:#eaf1ff; border-color:#aac2ef; box-shadow:0 4px 12px rgba(20,87,217,.11); transform:translateY(-1px); }
.employee-link { color:var(--ink); font-weight:750; text-decoration:none; }.employee-link:hover { color:var(--blue); text-decoration:underline; }.row-action { color:var(--blue); font-size:12px; font-weight:750; text-decoration:none; }.row-action:hover { text-decoration:underline; }.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.message { margin-bottom:18px; padding:13px 16px; border-radius:9px; background:#eef4ff; }.message.error { color:var(--danger); background:#fef3f2; }
.loading-overlay[hidden] { display:none!important; }.loading-overlay { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:20px; opacity:0; background:radial-gradient(circle at center,rgba(21,48,92,.2),rgba(7,18,39,.48)); backdrop-filter:blur(0); transition:opacity .22s ease,backdrop-filter .22s ease; }.loading-overlay.is-visible { opacity:1; backdrop-filter:blur(5px); }.loading-dialog { position:relative; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; width:min(330px,calc(100vw - 32px)); padding:17px 19px; overflow:hidden; opacity:0; background:rgba(255,255,255,.97); border:1px solid rgba(255,255,255,.82); border-radius:15px; box-shadow:0 22px 60px rgba(4,15,35,.26); transform:translateY(12px) scale(.975); transition:opacity .2s ease,transform .34s cubic-bezier(.2,.85,.25,1.15); }.loading-dialog::before { content:""; position:absolute; inset:0 auto auto 0; width:38%; height:2px; background:linear-gradient(90deg,transparent,#4a86ec,transparent); animation:loading-glide 1.25s ease-in-out infinite; }.loading-overlay.is-visible .loading-dialog { opacity:1; transform:translateY(0) scale(1); }.loading-visual { position:relative; display:grid; place-items:center; width:38px; height:38px; border:2px solid #dce7f9; border-top-color:var(--blue); border-right-color:#70a0ef; border-radius:50%; animation:loading-spin .85s cubic-bezier(.55,.2,.45,.8) infinite; }.loading-visual span { width:8px; height:8px; background:var(--blue); border-radius:50%; box-shadow:0 0 0 5px rgba(20,87,217,.1); animation:loading-pulse 1.1s ease-in-out infinite; }.loading-copy { min-width:0; }.loading-copy strong,.loading-copy small { display:block; }.loading-copy strong { margin-bottom:3px; color:var(--ink); font-size:14px; letter-spacing:-.01em; }.loading-copy small { overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.main[aria-busy="true"] { cursor:progress; }@keyframes loading-spin { to { transform:rotate(360deg); } }@keyframes loading-pulse { 50% { opacity:.55; transform:scale(.72); } }@keyframes loading-glide { 0% { transform:translateX(-110%); } 100% { transform:translateX(370%); } }
/* Transição direcional da ficha ---------------------------------------- */
html[data-route-entry="forward"] .main { opacity:0; transform:translateX(24px) scale(.996); }
html[data-route-entry="back"] .main { opacity:0; transform:translateX(-24px) scale(.996); }
html[data-route-entry].route-entry-active .main { opacity:1; transform:translateX(0) scale(1); transition:opacity .3s ease,transform .4s cubic-bezier(.2,.78,.25,1); }
body.route-exit { overflow:hidden; }
body.route-exit .main { opacity:.12; filter:blur(1px); transition:opacity .22s ease,transform .28s cubic-bezier(.4,0,.7,.2),filter .22s ease; }
body.route-exit-forward .main { transform:translateX(-24px) scale(.994); }
body.route-exit-back .main { transform:translateX(24px) scale(.994); }
body.route-exit::after { content:""; position:fixed; inset:0; z-index:190; pointer-events:all; background:var(--soft); background:linear-gradient(135deg,color-mix(in srgb,var(--soft) 72%,transparent),var(--soft)); animation-duration:.28s; animation-timing-function:cubic-bezier(.42,0,.25,1); animation-fill-mode:forwards; }
body.route-exit-forward::after { animation-name:route-cover-forward; }
body.route-exit-back::after { animation-name:route-cover-back; }
@keyframes route-cover-forward { from { clip-path:inset(0 0 0 100%); opacity:.15; } to { clip-path:inset(0); opacity:1; } }
@keyframes route-cover-back { from { clip-path:inset(0 100% 0 0); opacity:.15; } to { clip-path:inset(0); opacity:1; } }

.login-page { display:grid; min-height:100vh; place-items:center; padding:24px; background:linear-gradient(135deg,#0e1d3b,#174d9c); }.login-card { width:min(420px,100%); padding:34px; background:white; border-radius:18px; box-shadow:0 24px 70px rgba(0,0,0,.25); }.login-logo-wrap { margin-bottom:28px; }.login-logo { display:block; width:225px; height:auto; }.login-logo-wrap span { display:block; margin-top:9px; color:#657087; font-size:11px; font-weight:800; letter-spacing:.14em; }.stack-form { margin-top:25px; }.stack-form .primary-button { margin-top:10px; }
.title-with-icon { display:flex; align-items:flex-start; gap:13px; }.title-icon { width:46px; height:46px; flex:0 0 auto; background:#e9f1ff; }.title-icon img { width:24px; height:24px; }.title-with-icon h1 { margin-bottom:5px; }
.employee-sticky-controls { position:sticky; top:0; z-index:25; margin:-18px -10px 18px; padding:18px 10px 12px; background:linear-gradient(to bottom,var(--soft) 88%,rgba(244,247,251,0)); }
.employee-page-header { margin-bottom:14px; }.employee-page-header .muted { margin-bottom:0; }
.filter-panel { overflow:visible; border-color:#dbe3ef; box-shadow:0 8px 24px rgba(25,45,80,.08); }
.employee-filters { grid-template-columns:minmax(300px,1fr) minmax(430px,auto); gap:11px; padding:16px 18px 14px; }
.employee-filter-apply { min-width:105px; white-space:nowrap; }
.advanced-filter-disclosure { display:contents; }
.advanced-filter-checkbox { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.advanced-filter-bar { display:flex; align-items:center; justify-content:flex-end; align-self:end; min-width:0; min-height:42px; gap:8px; padding:0; border:0; }
.employee-filter-action-strip > * { min-height:42px; border-radius:9px; }
.advanced-filter-toggle { display:flex!important; align-items:center; justify-content:center; width:auto; min-width:166px; gap:8px!important; padding:0 12px; color:#40516a; background:var(--white); border:1px solid var(--line); font:inherit; cursor:pointer; user-select:none; transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.advanced-filter-toggle:hover,.advanced-filter-checkbox:checked + .advanced-filter-bar .advanced-filter-toggle { color:var(--blue); }
.advanced-filter-checkbox:focus-visible + .advanced-filter-bar .advanced-filter-toggle { outline:3px solid rgba(29,95,218,.14); outline-offset:4px; border-radius:6px; }
.advanced-filter-toggle:hover { background:#f7faff; border-color:#a9bfdf; box-shadow:0 5px 14px rgba(25,45,80,.07); transform:translateY(-1px); }
.advanced-filter-checkbox:checked + .advanced-filter-bar .advanced-filter-toggle { background:#edf4ff; border-color:#8eafe1; box-shadow:inset 0 0 0 1px rgba(29,95,218,.06); }
.advanced-filter-toggle .advanced-filter-sliders { display:block; width:28px; height:28px; flex:0 0 auto; padding:6px; color:#315e9f; background:#edf4ff; border-radius:7px; }
.advanced-filter-toggle > span { display:block; flex:0 1 auto; min-width:0; }
.advanced-filter-toggle strong,.advanced-filter-toggle small { display:block; }
.advanced-filter-toggle strong { color:var(--ink); font-size:11px; line-height:1.25; }
.advanced-filter-toggle small { margin-top:2px; color:var(--muted); font-size:9px; font-weight:600; line-height:1.25; }
.advanced-filter-toggle b { display:grid; place-items:center; min-width:21px; height:21px; padding:0 6px; color:white; background:var(--blue); border-radius:999px; font-size:9px; }
.advanced-filter-chevron { width:17px; height:17px; flex:0 0 auto; margin-left:1px; transition:transform .18s ease; }
.advanced-filter-checkbox:checked + .advanced-filter-bar .advanced-filter-chevron { transform:rotate(180deg); }
.advanced-filter-clear { display:inline-flex; align-items:center; flex:0 0 auto; gap:7px; min-height:34px; padding:0 10px; color:#637083; border-radius:7px; font-size:10px; font-weight:750; text-decoration:none; transition:color .18s ease,background .18s ease; }
.advanced-filter-clear:hover { color:var(--blue); background:#eef4ff; }
.advanced-filter-clear.is-idle { opacity:.5; pointer-events:none; }
.employee-advanced-filters { display:none; grid-column:1/-1; margin-top:2px; overflow:hidden; background:linear-gradient(145deg,#f8faff,#f4f7fb); border:1px solid #d9e3f0; border-radius:12px; box-shadow:inset 0 1px 0 rgba(255,255,255,.8); }
.advanced-filter-checkbox:checked ~ .employee-advanced-filters { display:block; animation:advanced-filters-in .2s cubic-bezier(.2,.8,.2,1); }
.employee-filter-export { display:inline-flex; align-items:center; justify-content:center; min-width:150px; gap:8px; padding:0 13px; color:#087443; background:#edf9f2; border:1px solid #bfe7ce; font-size:11px; font-weight:850; text-decoration:none; white-space:nowrap; transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.employee-filter-export:hover { color:#065d35; background:#e2f5ea; border-color:#8fd0a8; box-shadow:0 5px 14px rgba(8,116,67,.1); transform:translateY(-1px); }
.employee-filter-export-feedback { grid-column:1/-1; margin:2px 0 0; text-align:right; }
.advanced-filter-panel-actions { display:flex; justify-content:flex-end; padding:8px 16px 0; }
.filter-field-help { min-height:14px; color:var(--muted); font-size:9px; font-weight:600; line-height:1.35; }
.advanced-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px 12px; border-bottom:1px solid #dfe7f1; }
.advanced-filter-heading strong,.advanced-filter-heading span { display:block; }
.advanced-filter-heading strong { color:var(--ink); font-size:12px; }
.advanced-filter-heading div > span { margin-top:3px; color:var(--muted); font-size:9px; }
.advanced-filter-heading .advanced-filter-status { padding:5px 8px; color:#315e9f; background:#e8f1ff; border-radius:999px; font-size:9px; font-weight:800; white-space:nowrap; }
.advanced-filter-group { margin:0; padding:13px 16px 15px; border:0; }
.advanced-filter-group + .advanced-filter-group { border-top:1px solid #e2e9f2; }
.advanced-filter-group legend { padding:0; color:#53647a; font-size:9px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.advanced-filter-grid { display:grid; gap:12px; margin-top:10px; }
.advanced-filter-grid.organization-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.advanced-filter-grid.employment-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.advanced-filter-grid.contract-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.advanced-filter-grid label { min-width:0; }
@keyframes advanced-filters-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .employee-advanced-filters { animation:none; } }

/* Painel avançado suspenso: compacto, ancorado e consistente nas listagens. */
.filters .advanced-filter-disclosure,.employee-filters .advanced-filter-disclosure { position:relative; display:block; align-self:end; min-width:0; }
.filters .advanced-filter-disclosure .advanced-filter-bar,.employee-filters .advanced-filter-disclosure .advanced-filter-bar { width:100%; }
.filters .advanced-filter-disclosure .employee-advanced-filters,.employee-filters .advanced-filter-disclosure .employee-advanced-filters { position:absolute; z-index:80; top:calc(100% + 10px); right:0; left:auto; width:min(780px,calc(100vw - 390px)); min-width:620px; max-height:min(620px,72vh); margin:0; overflow:auto; background:var(--white); border:1px solid #ccd8e8; border-radius:14px; box-shadow:0 22px 55px rgba(18,39,72,.2); }
.filters .advanced-filter-disclosure .employee-advanced-filters::before,.employee-filters .advanced-filter-disclosure .employee-advanced-filters::before { position:absolute; top:-7px; right:92px; width:13px; height:13px; content:""; background:var(--white); border-top:1px solid #ccd8e8; border-left:1px solid #ccd8e8; transform:rotate(45deg); }
.filters .advanced-filter-disclosure .advanced-filter-heading,.employee-filters .advanced-filter-disclosure .advanced-filter-heading { position:relative; z-index:1; padding:13px 15px 11px; background:var(--white); }
.filters .advanced-filter-disclosure .advanced-filter-group,.employee-filters .advanced-filter-disclosure .advanced-filter-group { position:relative; z-index:1; padding:11px 15px 13px; background:var(--white); }
.filters .advanced-filter-disclosure .advanced-filter-grid,.employee-filters .advanced-filter-disclosure .advanced-filter-grid { gap:10px; margin-top:8px; }
:root[data-theme="dark"] .filters .advanced-filter-disclosure .employee-advanced-filters,:root[data-theme="dark"] .employee-filters .advanced-filter-disclosure .employee-advanced-filters,:root[data-theme="dark"] .filters .advanced-filter-disclosure .advanced-filter-heading,:root[data-theme="dark"] .employee-filters .advanced-filter-disclosure .advanced-filter-heading,:root[data-theme="dark"] .filters .advanced-filter-disclosure .advanced-filter-group,:root[data-theme="dark"] .employee-filters .advanced-filter-disclosure .advanced-filter-group { background:#111e30; border-color:#34465f; }
:root[data-theme="dark"] .filters .advanced-filter-disclosure .employee-advanced-filters::before,:root[data-theme="dark"] .employee-filters .advanced-filter-disclosure .employee-advanced-filters::before { background:#111e30; border-color:#34465f; }
@media(max-width:1100px){.filters .advanced-filter-disclosure .employee-advanced-filters,.employee-filters .advanced-filter-disclosure .employee-advanced-filters{width:min(720px,calc(100vw - 44px));min-width:0}}
@media(max-width:700px){.filters .advanced-filter-disclosure,.employee-filters .advanced-filter-disclosure{width:100%}.filters .advanced-filter-disclosure .employee-advanced-filters,.employee-filters .advanced-filter-disclosure .employee-advanced-filters{position:fixed;top:50%;right:16px;left:16px;width:auto;max-height:76vh;transform:translateY(-50%)}.filters .advanced-filter-disclosure .employee-advanced-filters::before,.employee-filters .advanced-filter-disclosure .employee-advanced-filters::before{display:none}}
.filter-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:43px; padding:8px 20px; border-top:1px solid var(--line); }
.active-filters { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; color:var(--muted); font-size:10px; }.filter-chip { display:inline-flex; align-items:center; gap:5px; max-width:220px; padding:5px 8px; overflow:hidden; color:#24477f; background:#edf3ff; border:1px solid #d5e3fc; border-radius:999px; font-size:10px; font-weight:700; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }.filter-chip b { font-size:14px; line-height:1; }.filter-chip:hover { color:var(--blue); background:#e2ecff; border-color:#b7caed; }
.filter-actions { display:flex; align-items:center; gap:8px; }.filter-actions .primary-button { flex:0 0 auto; }.clear-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:0 13px; color:#526071; background:#f7f9fc; border:1px solid #d6dde8; border-radius:8px; font-size:12px; font-weight:750; text-decoration:none; white-space:nowrap; transition:color .18s ease,background .18s ease,border-color .18s ease; }.clear-button img { width:16px; height:16px; }.clear-button:hover { color:var(--blue); background:#edf3ff; border-color:#b7caed; }.clear-button.is-idle { opacity:.68; }
.employee-list-panel { overflow:hidden; }
.employee-table-wrap { overflow-x:hidden; }.employee-table { width:100%; table-layout:fixed; }.employee-table .col-number { width:10%; }.employee-table .col-name { width:23%; }.employee-table .col-category { width:17%; }.employee-table .col-department { width:15%; }.employee-table .col-contract { width:12%; }.employee-table .col-admission { width:11%; }.employee-table .col-action { width:12%; }.employee-table th,.employee-table td { padding:13px 12px; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }.employee-table th:first-child,.employee-table td:first-child { padding-left:20px; }.employee-table th:last-child,.employee-table td:last-child { padding-right:20px; }.employee-table td.action-cell { white-space:nowrap; }.employee-table tbody tr { transition:background .15s ease; }.employee-table tbody tr:hover { background:#f8faff; }
.row-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:4px 9px 4px 5px; color:#244d89; background:#f4f8ff; border:1px solid #d6e3f7; border-radius:10px; box-shadow:0 2px 6px rgba(24,66,126,.05); font-size:11px; font-weight:800; line-height:1; text-decoration:none; white-space:nowrap; transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.row-action-symbol { display:grid; place-items:center; width:28px; height:28px; flex:0 0 auto; color:var(--blue); background:#e4edfd; border-radius:7px; transition:color .18s ease,background .18s ease,transform .18s ease; }
.row-action-arrow { flex:0 0 auto; color:#7690b5; transition:color .18s ease,transform .18s ease; }
.row-action:hover { color:white; background:linear-gradient(135deg,var(--blue),#174897); border-color:var(--blue); box-shadow:0 7px 16px rgba(20,87,217,.22); text-decoration:none; transform:translateY(-1px); }
.row-action:hover .row-action-symbol { color:white; background:rgba(255,255,255,.15); transform:scale(1.03); }
.row-action:hover .row-action-arrow { color:white; transform:translateX(2px); }
.row-action:active { box-shadow:0 3px 8px rgba(20,87,217,.18); transform:translateY(0); }
.breadcrumb { margin-bottom:18px; }.back-button { display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:6px 14px 6px 7px; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:11px; box-shadow:0 3px 12px rgba(25,45,80,.05); text-decoration:none; transition:color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }.back-button-icon { display:grid; place-items:center; width:34px; height:34px; color:var(--blue); background:#eaf1ff; border-radius:8px; transition:background .18s ease,transform .18s ease; }.back-button small,.back-button strong { display:block; }.back-button small { margin-bottom:2px; color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.12em; }.back-button strong { font-size:12px; }.back-button:hover { color:var(--blue); border-color:#b7caed; box-shadow:0 7px 18px rgba(20,87,217,.12); transform:translateY(-1px); }.back-button:hover .back-button-icon { color:white; background:var(--blue); transform:translateX(-2px); }.back-button:focus-visible,.pagination-button:focus-visible { outline:3px solid rgba(20,87,217,.22); outline-offset:2px; }
.employee-hero { display:flex; align-items:center; gap:18px; margin-bottom:22px; padding:24px; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 18px rgba(25,45,80,.04); }.employee-avatar { display:grid; place-items:center; width:68px; height:68px; flex:0 0 auto; color:white; background:linear-gradient(135deg,var(--blue),#123b86); border-radius:50%; font-size:21px; font-weight:800; box-shadow:0 7px 18px rgba(20,87,217,.22); }.employee-identity { min-width:0; }.employee-identity .eyebrow { margin-bottom:5px; }.employee-identity h1 { margin-bottom:4px; font-size:25px; }.employee-identity p:last-child { margin-bottom:0; }.employee-statuses { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-left:auto; }.badge.success { color:#067647; background:#ecfdf3; }.badge.danger { color:var(--danger); background:#fef3f2; }.badge.neutral { color:#526071; background:#eef1f5; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.detail-card { overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 18px rgba(25,45,80,.04); }.detail-card header { display:flex; align-items:center; gap:11px; padding:18px 20px; border-bottom:1px solid var(--line); }.detail-card header h2 { margin:0; font-size:16px; }.detail-icon { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; background:#edf3ff; border-radius:9px; }.detail-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:5px 20px 12px; }.detail-card dl div { min-width:0; padding:14px 12px 14px 0; border-bottom:1px solid #edf0f5; }.detail-card dl div:nth-last-child(-n+2) { border-bottom:0; }.detail-card dt { margin-bottom:5px; color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.035em; }.detail-card dd { margin:0; overflow-wrap:anywhere; font-size:14px; font-weight:700; line-height:1.4; }
@media (max-width:900px) { .sidebar { position:static; width:auto; min-height:auto; }.sidebar nav { grid-template-columns:repeat(2,1fr); margin-top:24px; }.account { margin-top:24px; }.main { margin-left:0; padding:26px 18px; }.skip-link { left:18px; }.filters { grid-template-columns:1fr 1fr; }.filter-summary { align-items:flex-start; flex-direction:column; }.active-filters { justify-content:flex-start; }.metrics { grid-template-columns:1fr; } }

/* Central de importação */
.import-page { display:grid; gap:22px; }
.import-page-header { margin-bottom:0; }
.import-module-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:6px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.import-module-tabs a { display:flex; align-items:center; gap:12px; min-height:64px; padding:11px 15px; color:var(--muted); border:1px solid transparent; border-radius:12px; text-decoration:none; transition:background .18s,border-color .18s,color .18s,transform .18s; }
.import-module-tabs a:hover { color:var(--text); background:var(--background); transform:translateY(-1px); }
.import-module-tabs a.active { color:var(--primary); border-color:color-mix(in srgb,var(--primary) 28%,var(--border)); background:color-mix(in srgb,var(--primary) 8%,var(--surface)); box-shadow:0 5px 16px rgba(20,87,202,.08); }
.import-module-tabs a > span:first-child { display:grid; place-items:center; width:38px; height:38px; flex:0 0 auto; border-radius:10px; color:var(--primary); background:color-mix(in srgb,var(--primary) 11%,var(--surface)); font-size:18px; }
.import-module-tabs a > span:last-child { display:grid; gap:2px; }.import-module-tabs strong { color:inherit; font-size:13px; }.import-module-tabs small { color:var(--muted); font-size:11px; }
.import-review-overview { display:grid; gap:20px; padding:26px; overflow:hidden; background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 5%,var(--surface)),var(--surface) 42%); }
.import-file-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.import-file-meta span { display:inline-flex; align-items:center; min-height:29px; padding:5px 10px; color:var(--muted); border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:11px; font-weight:700; }
.import-review-overview .import-steps { box-shadow:none; }
.import-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow:hidden; }
.import-steps li { position:relative; display:flex; align-items:center; justify-content:center; gap:11px; min-height:72px; padding:12px 18px; color:var(--muted); }
.import-steps li + li { border-left:1px solid var(--border); }
.import-steps li > span { display:grid; place-items:center; width:31px; height:31px; border-radius:50%; background:var(--background); border:1px solid var(--border); font-weight:800; }
.import-steps li div { display:grid; gap:2px; }
.import-steps li strong { color:var(--text); font-size:14px; }
.import-steps li small { font-size:12px; }
.import-steps li.active { background:color-mix(in srgb,var(--primary) 8%,var(--surface)); }
.import-steps li.active > span,.import-steps li.complete > span { border-color:var(--primary); background:var(--primary); color:#fff; }
.import-steps li.error > span { border-color:#dc3545; background:#dc3545; color:#fff; }
.import-start-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.7fr); gap:20px; align-items:stretch; }
.import-upload-panel,.import-requirements,.import-history-panel,.import-preview-panel,.import-confirm-panel { padding:24px; }
.import-upload-form { display:grid; gap:16px; }
.import-dropzone { display:grid; place-items:center; gap:7px; min-height:240px; padding:28px; border:2px dashed color-mix(in srgb,var(--primary) 32%,var(--border)); border-radius:17px; background:color-mix(in srgb,var(--primary) 3%,var(--surface)); text-align:center; cursor:pointer; transition:border-color .2s,background .2s,transform .2s; }
.import-dropzone:hover,.import-dropzone.is-dragging { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 8%,var(--surface)); transform:translateY(-1px); }
.import-dropzone.has-error { border-color:#d34151; background:color-mix(in srgb,#dc3545 6%,var(--surface)); }
.import-dropzone.has-error small { color:#b62838; }
.import-dropzone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.import-dropzone-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:var(--primary); color:#fff; font-size:27px; box-shadow:0 9px 22px rgba(20,87,202,.2); }
.import-dropzone strong { margin-top:6px; font-size:17px; }
.import-dropzone > span:not(.import-dropzone-icon),.import-dropzone small { color:var(--muted); }
.import-dropzone.has-file small { color:var(--primary); font-weight:750; }
.import-safety-note { display:flex; gap:11px; align-items:flex-start; padding:13px 15px; border-radius:12px; background:#eaf8f0; color:#17643d; }
.import-safety-note > span { display:grid; place-items:center; flex:0 0 23px; height:23px; border-radius:50%; background:#1d9259; color:#fff; font-weight:800; }
.import-safety-note p { margin:0; font-size:13px; line-height:1.45; }
.import-validate-button { justify-self:start; }
.import-requirements { display:flex; flex-direction:column; }
.import-requirements h2 { margin:4px 0 10px; }
.import-requirements > p:not(.eyebrow) { margin:0; color:var(--muted); line-height:1.55; }
.import-requirements ul { display:grid; gap:10px; margin:20px 0; padding:0; list-style:none; }
.import-requirements li { position:relative; padding-left:24px; font-size:13px; font-weight:650; }
.import-requirements li::before { content:"✓"; position:absolute; left:0; color:#188650; font-weight:900; }
.import-limit { display:flex; align-items:baseline; gap:8px; margin-top:auto; padding-top:18px; border-top:1px solid var(--border); }
.import-limit strong { color:var(--primary); font-size:28px; }
.import-limit span { color:var(--muted); font-size:12px; }
.import-template-link { justify-content:center; margin-top:14px; }
.import-history-table td strong,.import-history-table td small,.import-preview-table td strong,.import-preview-table td small { display:block; }
.import-preview-filters { display:grid; grid-template-columns:minmax(240px,1fr) minmax(210px,.55fr) auto; gap:13px; align-items:end; margin:4px 0 16px; padding:15px; border-radius:13px; background:var(--background); }
.import-preview-filters label { display:grid; gap:6px; }.import-preview-filters label > span { color:var(--muted); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.import-error-shortcut { display:grid; grid-template-columns:32px auto 1fr; gap:10px; align-items:center; margin-bottom:15px; padding:11px 13px; border:1px solid #f0bdc3; border-radius:12px; color:#a72a39; background:#fff2f3; text-decoration:none; }
.import-error-shortcut > span { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; color:#fff; background:#c63848; font-weight:850; }.import-error-shortcut small { color:#8f5c62; }
.import-history-table td small,.import-preview-table td small { margin-top:3px; color:var(--muted); }
.import-status,.import-row-status { display:inline-flex; align-items:center; width:max-content; padding:6px 10px; border-radius:999px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
.import-status.status-validated,.import-row-status.status-update { background:#fff3d8; color:#9a5b00; }
.import-status.status-processing { background:#eaf2ff; color:#245ead; }
.import-status.status-completed,.import-row-status.status-new,.import-row-status.status-inserted { background:#e6f7ee; color:#167246; }
.import-status.status-failed,.import-row-status.status-error { background:#feecee; color:#b62838; }
.import-status.status-cancelled,.import-row-status.status-unchanged { background:var(--background); color:var(--muted); }
.import-status.status-rolled_back,.import-row-status.status-excluded { background:#edf0f5; color:#566277; }
.import-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:11px; }
.import-summary-card { position:relative; display:grid; gap:8px; min-height:92px; padding:17px 18px; overflow:hidden; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:0 5px 18px rgba(18,43,77,.045); }
.import-summary-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:#8490a4; }.import-summary-card.new::before { background:#188650; }.import-summary-card.update::before { background:#d48100; }.import-summary-card.error::before { background:#c53545; }.import-summary-card.total::before { background:var(--primary); }
.import-summary-card span { color:var(--muted); font-size:12px; font-weight:700; }
.import-summary-card strong { font-size:27px; }
.import-summary-card.new strong { color:#188650; }.import-summary-card.update strong { color:#d48100; }.import-summary-card.error strong { color:#c53545; }
.import-summary-card.excluded strong { color:#69758a; }
.import-review-note,.import-result-banner { display:flex; align-items:center; gap:13px; padding:16px 18px; border-radius:14px; }
.import-review-note { border:1px solid #bcd2fb; background:#edf4ff; color:#244f8e; }
.import-review-note > span,.import-result-banner > span { display:grid; place-items:center; flex:0 0 30px; height:30px; border-radius:50%; font-weight:850; }
.import-review-note > span { background:#d3e4ff; }.import-review-note p,.import-result-banner p { margin:0; }
.import-result-banner.success { background:#e8f7ef; color:#17643d; }.import-result-banner.error { background:#feecee; color:#9f2634; }
.import-result-banner > span { background:rgba(255,255,255,.7); }
.import-result-banner > div { flex:1; }.import-result-banner p { margin-top:3px; font-size:13px; }
.import-row.row-error { background:color-mix(in srgb,#dc3545 4%,var(--surface)); }
.import-row-message { color:#b62838 !important; max-width:320px; }
.import-conflict-fields { margin-top:6px !important; color:#8d4e0b !important; font-weight:750; }
.row-excluded { opacity:.72; }.row-excluded .import-row-message { color:var(--muted) !important; }
.duplicate-choice-form { margin-top:8px; }.duplicate-select-button { padding:7px 10px; border:1px solid #b8cdf2; border-radius:8px; color:#2056a5; background:#edf4ff; font-size:11px; font-weight:800; cursor:pointer; }.duplicate-select-button:hover { color:#fff; background:var(--primary); border-color:var(--primary); }
.row-toggle-button { padding:6px 0; border:0; color:var(--muted); background:transparent; font-size:11px; font-weight:750; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }.row-toggle-button:hover { color:var(--primary); }
.import-rollback-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 24px; border-color:#edc6a1; }.import-rollback-panel h2 { margin:4px 0 6px; }.rollback-button { min-height:44px; padding:0 18px; border:1px solid #c95e23; border-radius:10px; color:#a83f0b; background:#fff5ec; font-weight:800; cursor:pointer; white-space:nowrap; }.rollback-button:hover { color:#fff; background:#bd4e17; }
.import-result-banner.rollback { color:#645325; background:#fff8dd; }
.import-confirm-panel { display:grid; grid-template-columns:minmax(240px,1fr) minmax(360px,1.3fr) auto; gap:20px; align-items:center; }
.import-confirm-panel h2 { margin:4px 0 7px; }
.import-confirm-form { display:grid; gap:12px; }
.import-danger-option { display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid #efcf9a; border-radius:12px; background:#fff8e9; cursor:pointer; }
.import-danger-option input { width:18px; height:18px; margin-top:2px; accent-color:#d17a00; }
.import-danger-option span { display:grid; gap:3px; }.import-danger-option strong { font-size:12px; }.import-danger-option small { color:#7d6239; line-height:1.35; }
.import-danger-option.disabled { opacity:.62; cursor:not-allowed; }
.import-footer-actions { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.import-issues-panel { overflow:hidden; }.import-issue-list { display:grid; gap:0; max-height:340px; margin:0; padding:0 24px 20px; overflow:auto; list-style:none; }.import-issue-list li { padding:11px 12px; color:#a72a39; border-bottom:1px solid var(--border); font-size:12px; line-height:1.45; }.import-issue-list li:last-child { border-bottom:0; }
.absence-confirm-panel { grid-template-columns:minmax(260px,1fr) minmax(360px,1.15fr) auto; }
.attendance-heading-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.schedule-filters { display:grid; grid-template-columns:minmax(260px,1fr) minmax(170px,.35fr) auto; align-items:end; gap:10px; padding:14px 16px; }
.schedule-filters label > span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }
.schedule-filters input,.schedule-filters select { min-height:42px; font-size:11px; }
.schedule-kpis article.success { border-left-color:#12b76a; }
.schedule-table { min-width:980px; }
.schedule-status { display:inline-flex; padding:5px 9px; border-radius:999px; color:#526071; background:#eef1f5; font-size:9px; font-weight:850; text-transform:uppercase; }
.schedule-status.status-ativa { color:#067647; background:#ecfdf3; }.schedule-status.status-agendada { color:#9a5b00; background:#fff7e6; }.schedule-status.status-terminada { color:#526071; background:#eef1f5; }
.area-editor-form textarea { width:100%; min-height:96px; padding:10px 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:11px; line-height:1.5; resize:vertical; outline:none; }
.area-editor-form textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(20,87,217,.12); }
@media (max-width:760px) { .schedule-filters { grid-template-columns:1fr 1fr; }.schedule-filters .wide,.schedule-filters .filter-actions { grid-column:1/-1; }.schedule-table { min-width:0; } }
@media (max-width:520px) { .schedule-filters { grid-template-columns:1fr; }.schedule-filters .wide,.schedule-filters .filter-actions { grid-column:auto; } }

/* Conversor de documentos --------------------------------------------- */
.converter-page { display:grid; gap:16px; max-width:1500px; margin:0 auto; }
.converter-header { align-items:center; margin-bottom:0; }.converter-header h1 { margin-bottom:5px; }.converter-header .muted { margin:0; }
.converter-availability { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; color:#087443; background:#e9f9f1; border:1px solid #c5eed9; border-radius:999px; font-size:10px; font-weight:800; }.converter-availability > span { display:grid; place-items:center; width:18px; height:18px; color:#fff; background:#13a663; border-radius:50%; }
.converter-guidance { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:12px; padding:13px 18px; background:linear-gradient(110deg,#0d2c59,#164f9c); border-radius:13px; color:#fff; box-shadow:0 8px 22px rgba(10,43,88,.13); }.converter-guidance article { display:flex; align-items:center; justify-content:center; gap:10px; }.converter-guidance article > span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 auto; color:#dbeaff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.17); border-radius:9px; font-size:10px; font-weight:900; }.converter-guidance article div { display:grid; }.converter-guidance strong { font-size:11px; }.converter-guidance small { margin-top:2px; color:#bfd1ea; font-size:9px; }.converter-guidance > i { color:#86a8d4; font-style:normal; }
.converter-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; align-items:start; gap:16px; }.converter-documents { overflow:hidden; }.converter-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--line); }.converter-section-heading h2,.converter-section-heading p { margin:0; }.converter-section-heading h2 { margin-top:3px; font-size:17px; }.converter-section-heading p:last-child { margin-top:4px; color:var(--muted); font-size:10px; }.converter-section-heading > strong { padding:7px 10px; color:#24569a; background:#eaf2ff; border-radius:8px; font-size:10px; white-space:nowrap; }
.converter-documents form { padding:20px; }.converter-dropzone { display:grid; place-items:center; min-height:310px; padding:30px; color:#50637d; background:linear-gradient(145deg,#f9fbfe,#f1f6fc); border:2px dashed #b9c9dc; border-radius:13px; text-align:center; cursor:pointer; transition:border-color .18s,background .18s,transform .18s; }.converter-dropzone:hover,.converter-dropzone.is-dragging { color:#1457d9; background:#edf5ff; border-color:#3d7ce8; }.converter-dropzone.is-dragging { transform:scale(.995); }.converter-dropzone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }.converter-drop-icon { display:grid; place-items:center; width:64px; height:64px; margin-bottom:14px; color:#1457d9; background:#e1edff; border-radius:17px; }.converter-dropzone > strong { color:var(--ink); font-size:14px; }.converter-dropzone > span:not(.converter-drop-icon) { margin-top:5px; font-size:10px; }.converter-dropzone > small { margin-top:14px; color:#7a899e; font-size:9px; }
.converter-file-area { min-height:310px; }.converter-file-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }.converter-file-toolbar > span { display:grid; }.converter-file-toolbar strong { font-size:12px; }.converter-file-toolbar small { margin-top:2px; color:var(--muted); font-size:9px; }.converter-file-toolbar .clear-button { min-height:36px; }
.converter-file-list { display:grid; gap:7px; max-height:430px; margin:0; padding:0 3px 0 0; overflow:auto; list-style:none; }.converter-file-list li { display:grid; grid-template-columns:42px minmax(0,1fr) 34px; align-items:center; gap:10px; min-height:61px; padding:8px 10px; background:#f8fafc; border:1px solid #e0e7f0; border-radius:9px; }.converter-file-type { display:grid; place-items:center; width:42px; height:42px; color:#fff; background:linear-gradient(145deg,#2464cb,#123e83); border-radius:9px; font-size:8px; font-weight:900; }.converter-file-copy { min-width:0; display:grid; }.converter-file-copy strong { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.converter-file-copy small { margin-top:4px; color:var(--muted); font-size:8px; }.converter-file-list button { display:grid; place-items:center; width:32px; height:32px; padding:0; color:#687990; background:transparent; border:0; border-radius:7px; font-size:20px; cursor:pointer; }.converter-file-list button:hover { color:#b42318; background:#feeceb; }.converter-add-more { width:100%; min-height:40px; margin-top:10px; color:#1457d9; background:#f4f8fe; border:1px dashed #b9cbe4; border-radius:8px; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }.converter-add-more:hover { background:#eaf3ff; border-color:#6c99da; }
.converter-options { display:grid; gap:18px; padding:20px; position:sticky; top:16px; }.converter-options h2,.converter-options p { margin:0; }.converter-options h2 { margin-top:3px; font-size:17px; }.converter-options > div:first-child p:last-child { margin-top:4px; color:var(--muted); font-size:10px; }.converter-options label > span,.converter-mobile-options label > span { display:block; margin-bottom:6px; color:var(--muted); font-size:10px; font-weight:800; }.converter-options select,.converter-mobile-options select { width:100%; min-height:43px; padding:0 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:11px; }
.converter-format-card { display:grid; grid-template-columns:50px 1fr; align-items:center; gap:12px; padding:13px; background:#f6f9fd; border:1px solid #e0e7f0; border-radius:10px; }.converter-format-card > span { display:grid; place-items:center; height:50px; color:#fff; background:linear-gradient(145deg,#df3a30,#aa1f19); border-radius:10px; font-size:9px; font-weight:900; }.converter-format-card div { display:grid; }.converter-format-card strong { font-size:10px; }.converter-format-card small { margin-top:4px; color:var(--muted); font-size:8px; line-height:1.4; }
.converter-privacy { display:flex; gap:10px; padding:12px; color:#49627e; background:#eff6ff; border:1px solid #d5e6fb; border-radius:9px; }.converter-privacy svg { flex:0 0 auto; }.converter-privacy p { display:grid; }.converter-privacy strong { font-size:9px; }.converter-privacy span { margin-top:3px; font-size:8px; line-height:1.45; }.converter-options .converter-submit { width:100%; display:flex; align-items:center; justify-content:space-between; min-height:46px; }.converter-submit:disabled { opacity:.48; cursor:not-allowed; }
.converter-mobile-options { display:none; }.converter-progress,.converter-result,.converter-error { align-items:center; gap:16px; padding:17px 20px; }.converter-progress:not([hidden]),.converter-result:not([hidden]),.converter-error:not([hidden]) { display:flex; }.converter-progress > div:nth-child(2) { min-width:0; flex:1; }.converter-progress strong,.converter-progress p,.converter-result h2,.converter-result p,.converter-error p { margin:0; }.converter-progress p,.converter-result p,.converter-error p { margin-top:3px; color:var(--muted); font-size:10px; }.converter-progress-visual { display:flex; align-items:flex-end; gap:4px; width:43px; height:35px; padding:8px; background:#e9f1ff; border-radius:10px; }.converter-progress-visual span { width:6px; height:9px; background:#2469dc; border-radius:5px; animation:converter-bars 1s ease-in-out infinite; }.converter-progress-visual span:nth-child(2) { height:18px; animation-delay:.14s; }.converter-progress-visual span:nth-child(3) { height:13px; animation-delay:.28s; }.converter-progress-track { height:4px; margin-top:10px; overflow:hidden; background:#e8edf4; border-radius:9px; }.converter-progress-track i { display:block; width:35%; height:100%; background:linear-gradient(90deg,#1457d9,#6ca0fa); border-radius:inherit; animation:converter-track 1.6s ease-in-out infinite; }
.converter-result { border-color:#bfe8d2; background:#f4fcf7; }.converter-result-icon,.converter-error > span { display:grid; place-items:center; width:43px; height:43px; flex:0 0 auto; color:#fff; background:#12a762; border-radius:50%; font-size:18px; font-weight:900; }.converter-result > div,.converter-error > div { min-width:0; flex:1; }.converter-result h2 { margin-top:2px; font-size:15px; }.converter-error { border-color:#f1c8c5; background:#fff7f6; }.converter-error > span { background:#d92d20; }.converter-error strong { color:#8f2018; }.converter-error .clear-button,.converter-result .clear-button { flex:0 0 auto; }
@keyframes converter-bars { 0%,100% { transform:scaleY(.55); opacity:.55; } 50% { transform:scaleY(1); opacity:1; } } @keyframes converter-track { from { transform:translateX(-110%); } to { transform:translateX(310%); } }
@media (max-width:1050px) { .converter-layout { grid-template-columns:1fr; }.converter-options { display:none; }.converter-mobile-options { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; margin-top:16px; }.converter-mobile-options .converter-submit { min-width:220px; min-height:43px; display:flex; align-items:center; justify-content:space-between; } }
@media (max-width:700px) { .converter-header { align-items:flex-start; flex-direction:column; }.converter-guidance { grid-template-columns:1fr; }.converter-guidance article { justify-content:flex-start; }.converter-guidance > i { display:none; }.converter-documents form,.converter-section-heading { padding:15px; }.converter-dropzone { min-height:260px; padding:22px 14px; }.converter-mobile-options { grid-template-columns:1fr; }.converter-mobile-options .converter-submit { width:100%; }.converter-file-list li { grid-template-columns:38px minmax(0,1fr) 34px; }.converter-file-type { width:38px; height:38px; }.converter-result:not([hidden]),.converter-error:not([hidden]) { align-items:flex-start; flex-wrap:wrap; }.converter-result .clear-button,.converter-error .clear-button { width:100%; } }
@media (prefers-reduced-motion:reduce) { .converter-progress-visual span,.converter-progress-track i { animation:none; } }

/* Processos disciplinares --------------------------------------------- */
.disciplinary-page { display:grid; gap:16px; max-width:1500px; margin:0 auto; }
.disciplinary-header { align-items:center; margin-bottom:2px; }.disciplinary-header h1 { margin-bottom:5px; }.disciplinary-header .muted { margin:0; }
.disciplinary-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.disciplinary-header-actions .primary-button { display:inline-flex; align-items:center; text-decoration:none; }
.disciplinary-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.disciplinary-kpis article { position:relative; min-height:108px; padding:17px 18px; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:0 5px 17px rgba(25,45,80,.05); }
.disciplinary-kpis article::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#7b8ba4; }.disciplinary-kpis .records::before { background:var(--blue); }.disciplinary-kpis .blocked::before { background:#d92d20; }.disciplinary-kpis .clear::before { background:#12a762; }
.disciplinary-kpis span,.disciplinary-kpis strong,.disciplinary-kpis small { display:block; }.disciplinary-kpis span { color:var(--muted); font-size:10px; font-weight:800; }.disciplinary-kpis strong { margin:5px 0 1px; font-size:26px; }.disciplinary-kpis small { color:var(--muted); font-size:9px; }
.disciplinary-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:6px; background:#eaf0f8; border:1px solid #d7e1ee; border-radius:13px; }
.disciplinary-tabs a { display:grid; grid-template-columns:36px 1fr; gap:0 11px; align-items:center; min-height:61px; padding:9px 13px; color:#5d6d83; border:1px solid transparent; border-radius:9px; text-decoration:none; }
.disciplinary-tabs a > span { grid-row:1/3; display:grid; place-items:center; width:36px; height:36px; color:#47617f; background:#dce6f2; border-radius:9px; font-size:10px; font-weight:900; }.disciplinary-tabs a strong { font-size:12px; }.disciplinary-tabs a small { color:var(--muted); font-size:9px; }
.disciplinary-tabs a.active { color:#174eaa; background:#fff; border-color:#cbd9ea; box-shadow:0 4px 13px rgba(29,61,105,.09); }.disciplinary-tabs a.active > span { color:#fff; background:var(--blue); }
.disciplinary-filter-panel { overflow:visible; }.disciplinary-filters { display:grid; grid-template-columns:minmax(260px,1fr) minmax(190px,.35fr) auto; align-items:end; gap:10px; padding:14px 16px; }
.disciplinary-filters label > span,.disciplinary-form label > span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }
.disciplinary-list-panel { overflow:hidden; }.disciplinary-list-panel .attendance-panel-heading { border-bottom:1px solid var(--line); }.disciplinary-list-panel .attendance-panel-heading span { display:block; margin-top:3px; color:var(--muted); font-size:9px; }.disciplinary-list-panel .attendance-panel-heading b { color:var(--muted); font-size:10px; }
.disciplinary-table { min-width:1050px; }.disciplinary-table th,.disciplinary-table td { padding:11px 12px; white-space:normal; vertical-align:middle; }.disciplinary-table td strong,.disciplinary-table td small { display:block; }.disciplinary-table td small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.35; }
.renewal-table tbody tr { box-shadow:inset 3px 0 transparent; }.renewal-table tbody tr.renewal-blocked { background:#fffafa; box-shadow:inset 3px 0 #e05146; }.renewal-table tbody tr.renewal-clear { box-shadow:inset 3px 0 #35a66f; }
.renewal-decision { display:inline-flex; padding:6px 9px; border-radius:999px; font-size:9px; font-weight:850; text-transform:uppercase; }.renewal-decision.blocked { color:#b42318; background:#fef3f2; }.renewal-decision.clear { color:#067647; background:#ecfdf3; }
.disciplinary-history-layout { display:grid; grid-template-columns:minmax(0,1fr) 370px; gap:16px; align-items:start; }.disciplinary-history-layout.read-only { grid-template-columns:1fr; }
.disciplinary-editor { position:sticky; top:16px; overflow:visible; }.disciplinary-editor-heading { padding:19px 19px 14px; border-bottom:1px solid var(--line); }.disciplinary-editor-heading h2,.disciplinary-editor-heading p { margin:0; }.disciplinary-editor-heading h2 { margin-top:3px; font-size:17px; }.disciplinary-editor-heading > p:last-child { margin-top:5px; color:var(--muted); font-size:10px; }
.disciplinary-form { display:grid; gap:12px; padding:17px 19px; }.disciplinary-form input,.disciplinary-form select,.disciplinary-form textarea { width:100%; min-height:42px; padding:0 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:11px; outline:none; }.disciplinary-form textarea { min-height:88px; padding:10px 11px; line-height:1.5; resize:vertical; }.disciplinary-form input:focus,.disciplinary-form select:focus,.disciplinary-form textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(20,87,217,.12); }
.disciplinary-form-actions { display:flex; justify-content:flex-end; gap:8px; padding-top:4px; }.disciplinary-form-actions .primary-button { min-width:145px; }
@media (max-width:1180px) { .disciplinary-history-layout { grid-template-columns:1fr; }.disciplinary-editor { position:static; }.disciplinary-kpis { grid-template-columns:repeat(2,1fr); } }
@media (max-width:760px) { .disciplinary-header { align-items:flex-start; flex-direction:column; }.disciplinary-header-actions { justify-content:flex-start; }.disciplinary-tabs { grid-template-columns:1fr; }.disciplinary-filters { grid-template-columns:1fr 1fr; }.disciplinary-filters .wide,.disciplinary-filters .filter-actions { grid-column:1/-1; }.disciplinary-table { min-width:0; }.disciplinary-table,.disciplinary-table tbody { display:block; }.disciplinary-table thead { display:none; }.disciplinary-table tr { display:block; margin:8px; overflow:hidden; border:1px solid var(--line); border-radius:9px; }.disciplinary-table td { display:grid; grid-template-columns:115px minmax(0,1fr); gap:9px; border-top:1px solid var(--line); }.disciplinary-table td:first-child { border-top:0; }.disciplinary-table td::before { content:attr(data-label); color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; }.disciplinary-table td.row-actions { display:flex; }.disciplinary-table td.row-actions::before { display:none; }.disciplinary-table .attendance-edit { width:100%; justify-content:center; } }
@media (max-width:520px) { .disciplinary-kpis { grid-template-columns:1fr; }.disciplinary-filters { grid-template-columns:1fr; }.disciplinary-filters .wide,.disciplinary-filters .filter-actions { grid-column:auto; }.disciplinary-header-actions,.disciplinary-header-actions .primary-button { width:100%; }.disciplinary-table td { grid-template-columns:1fr; }.disciplinary-form-actions { flex-direction:column-reverse; }.disciplinary-form-actions > * { width:100%; } }

/* Central de importação — acabamento específico do modo claro */
:root:not([data-theme="dark"]) .import-page { color:#17243a; }
:root:not([data-theme="dark"]) .import-module-tabs { padding:7px; background:#eaf0f8; border-color:#d7e1ee; box-shadow:inset 0 1px 2px rgba(28,55,91,.04); }
:root:not([data-theme="dark"]) .import-module-tabs a { color:#5e6d82; }
:root:not([data-theme="dark"]) .import-module-tabs a:hover { color:#173966; background:rgba(255,255,255,.62); }
:root:not([data-theme="dark"]) .import-module-tabs a.active { color:#174eaa; background:#fff; border-color:#cad9ec; box-shadow:0 5px 15px rgba(28,67,119,.1); }
:root:not([data-theme="dark"]) .import-module-tabs a > span:first-child { color:#1457d9; background:#e8f0ff; }
:root:not([data-theme="dark"]) .import-review-overview { position:relative; border-color:#d5e0ed; background:linear-gradient(135deg,#fff 0%,#fff 58%,#f1f6ff 100%); box-shadow:0 14px 34px rgba(30,60,101,.09); }
:root:not([data-theme="dark"]) .import-review-overview::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,#1457d9,#6e9ff1 58%,#d9e8ff); }
:root:not([data-theme="dark"]) .import-file-meta span { color:#52647c; background:#f7f9fc; border-color:#dce4ee; }
:root:not([data-theme="dark"]) .import-steps { border-color:#d9e2ed; background:#f7f9fc; }
:root:not([data-theme="dark"]) .import-steps li + li { border-color:#dfe6ef; }
:root:not([data-theme="dark"]) .import-steps li.active { background:#eaf2ff; }
:root:not([data-theme="dark"]) .import-steps li > span { color:#637187; background:#fff; border-color:#ccd7e5; }
:root:not([data-theme="dark"]) .import-steps li.active > span,
:root:not([data-theme="dark"]) .import-steps li.complete > span { color:#fff; background:#1457d9; border-color:#1457d9; box-shadow:0 4px 10px rgba(20,87,217,.2); }
:root:not([data-theme="dark"]) .import-summary-card { border-color:#dce4ee; background:#fff; box-shadow:0 6px 17px rgba(32,62,101,.065); }
:root:not([data-theme="dark"]) .import-summary-card.total { background:linear-gradient(145deg,#f5f8ff,#fff); }
:root:not([data-theme="dark"]) .import-summary-card.new { background:linear-gradient(145deg,#effaf4,#fff); }
:root:not([data-theme="dark"]) .import-summary-card.update { background:linear-gradient(145deg,#fff8e9,#fff); }
:root:not([data-theme="dark"]) .import-summary-card.error { background:linear-gradient(145deg,#fff2f3,#fff); }
:root:not([data-theme="dark"]) .import-summary-card.excluded { background:linear-gradient(145deg,#f3f5f8,#fff); }
:root:not([data-theme="dark"]) .import-summary-card span { color:#5b6b81; }
:root:not([data-theme="dark"]) .import-review-note { color:#244f8e; background:#edf4ff; border-color:#c2d5f4; box-shadow:0 5px 14px rgba(39,79,137,.055); }
:root:not([data-theme="dark"]) .import-preview-panel,
:root:not([data-theme="dark"]) .import-confirm-panel,
:root:not([data-theme="dark"]) .import-issues-panel { border-color:#d8e1ec; box-shadow:0 10px 27px rgba(27,55,92,.075); }
:root:not([data-theme="dark"]) .import-preview-panel .panel-heading,
:root:not([data-theme="dark"]) .import-issues-panel .panel-heading { background:linear-gradient(180deg,#fff,#fbfcfe); }
:root:not([data-theme="dark"]) .import-preview-filters { background:#f1f5fa; border:1px solid #dfe7f0; }
:root:not([data-theme="dark"]) .import-preview-table th,
:root:not([data-theme="dark"]) .import-preview-panel table th { color:#53647a; background:#edf2f8; border-top-color:#d8e1ec; }
:root:not([data-theme="dark"]) .import-preview-table tbody tr:hover,
:root:not([data-theme="dark"]) .import-preview-panel table tbody tr:hover { background:#f7faff; }
:root:not([data-theme="dark"]) .import-confirm-panel { border-color:#cbdaf0; background:linear-gradient(135deg,#fff,#f3f7ff); }
:root:not([data-theme="dark"]) .import-issues-panel .section-icon { color:#b42318; background:#fff0f1; }
:root:not([data-theme="dark"]) .import-issue-list li { color:#99343f; background:#fffafb; }
:root:not([data-theme="dark"]) .import-result-banner.success { border:1px solid #bfe6cf; box-shadow:0 5px 16px rgba(29,120,75,.07); }
@media (max-width:1100px) { .import-start-grid { grid-template-columns:1fr; }.import-requirements { min-height:300px; }.import-summary-grid { grid-template-columns:repeat(3,1fr); }.import-confirm-panel { grid-template-columns:1fr; align-items:start; }.import-rollback-panel { align-items:flex-start; flex-direction:column; } }
@media (max-width:700px) { .import-module-tabs { grid-template-columns:1fr; }.import-module-tabs a { min-height:56px; }.import-review-overview { padding:17px; }.import-steps li { min-height:58px; padding:10px 7px; }.import-steps li div { display:none; }.import-summary-grid { grid-template-columns:repeat(2,1fr); }.import-summary-card.total { grid-column:1/-1; }.import-upload-panel,.import-requirements,.import-history-panel,.import-preview-panel,.import-confirm-panel { padding:17px; }.import-footer-actions { align-items:stretch; flex-direction:column; }.import-preview-filters { grid-template-columns:1fr; }.import-error-shortcut { grid-template-columns:32px 1fr; }.import-error-shortcut small { grid-column:2; } }
@media (max-width:760px) { .detail-grid { grid-template-columns:1fr; }.employee-hero { align-items:flex-start; flex-wrap:wrap; }.employee-statuses { width:100%; justify-content:flex-start; margin-left:86px; } }
@media (max-width:700px) { .employee-table-wrap { padding:10px; background:var(--soft); }.employee-table,.employee-table tbody { display:block; }.employee-table colgroup,.employee-table thead { display:none; }.employee-table tr { display:block; margin-bottom:10px; overflow:hidden; background:white; border:1px solid var(--line); border-radius:10px; }.employee-table td,.employee-table td:first-child,.employee-table td:last-child { display:grid; grid-template-columns:115px minmax(0,1fr); gap:12px; padding:10px 12px; border-top:1px solid #edf0f5; }.employee-table td:first-child { border-top:0; }.employee-table td::before { content:attr(data-label); color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }.employee-table td.action-cell { display:flex; justify-content:flex-end; padding:10px 12px 12px; }.employee-table td.action-cell::before { display:none; }.employee-table .row-action { width:100%; min-height:44px; }.employee-table td.empty-state { display:block; }.employee-table td.empty-state::before { display:none; } }
@media (max-width:560px) { .filters { grid-template-columns:1fr; }.filter-actions { display:grid; grid-template-columns:1fr 1fr; }.page-header { display:block; }.status { margin-top:12px; }.sidebar nav { grid-template-columns:1fr; }.employee-hero { padding:18px; }.employee-avatar { width:54px; height:54px; font-size:17px; }.employee-identity h1 { font-size:21px; }.employee-statuses { margin-left:0; }.detail-card dl { grid-template-columns:1fr; }.detail-card dl div:nth-last-child(-n+2) { border-bottom:1px solid #edf0f5; }.detail-card dl div:last-child { border-bottom:0; }.pagination { flex-wrap:wrap; }.pagination > span { width:100%; order:-1; text-align:center; } }

/* Employee detail: protected identity documents ------------------------- */
.employee-documents-card { grid-column:1/-1; }
.employee-documents-heading { flex-wrap:wrap; }
.employee-documents-icon { color:#164fc3; }
.employee-documents-heading-copy { min-width:180px; flex:1; }
.employee-documents-heading-copy h2 { margin:0; }
.employee-documents-heading-copy small { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:500; }
.employee-documents-private { display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:5px 10px; color:#52647c; background:#f3f6fa; border:1px solid #dce4ee; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.employee-document-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:18px 20px 20px; }
.employee-document-tile { display:flex; flex-direction:column; min-width:0; padding:17px; background:linear-gradient(145deg,#fbfdff,#f6f9fd); border:1px solid #dfe7f1; border-radius:12px; }
.employee-document-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.employee-document-title-row h3 { margin:4px 0 0; color:var(--ink); font-size:15px; }
.employee-document-type { color:#2160d7; font-size:9px; font-weight:900; letter-spacing:.12em; }
.employee-document-state { display:inline-flex; align-items:center; min-height:26px; padding:4px 9px; border-radius:999px; font-size:10px; font-weight:800; white-space:nowrap; }
.employee-document-state.success { color:#177245; background:#eaf8f0; }
.employee-document-state.info { color:#225bb3; background:#eaf2ff; }
.employee-document-state.attention,.employee-document-state.warning { color:#9a5b00; background:#fff4df; }
.employee-document-state.danger { color:#b72c25; background:#fff0ee; }
.employee-document-state.neutral { color:#66758a; background:#edf1f5; }
.employee-document-data { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:0 18px; margin:14px 0 0!important; padding:0!important; }
.employee-document-data div { padding:10px 0!important; border-color:#e2e9f2!important; }
.employee-document-data dt { font-size:9px!important; }
.employee-document-data dd { font-size:13px!important; }
.employee-document-actions { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:8px; margin-top:auto; padding-top:15px; border-top:1px solid #e0e8f2; }
.employee-document-actions.is-single { grid-template-columns:minmax(0,1fr); }
.employee-document-action { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:9px; min-height:56px; padding:8px 10px; overflow:hidden; border:1px solid transparent; border-radius:10px; font-size:11px; text-decoration:none; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease; }
.employee-document-action:is(button) { width:100%; font:inherit; text-align:left; cursor:pointer; }
.employee-document-action.is-download { color:#fff; background:linear-gradient(135deg,#175cc8,#1649a7); border-color:#194da8; box-shadow:0 6px 15px rgba(22,73,167,.18); }
.employee-document-action.is-update { grid-template-columns:34px minmax(0,1fr) 16px; color:#174d9e; background:#fff; border-color:#cbd9eb; }
.employee-document-action-icon { display:grid; place-items:center; width:34px; height:34px; color:inherit; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.2); border-radius:9px; }
.employee-document-action.is-update .employee-document-action-icon { color:#245eb3; background:#edf4ff; border-color:#d8e6fa; }
.employee-document-action-copy { min-width:0; }
.employee-document-action-copy small,.employee-document-action-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.employee-document-action-copy small { margin-bottom:2px; color:inherit; font-size:7px; font-weight:850; letter-spacing:.065em; opacity:.72; }
.employee-document-action-copy strong { font-size:10px; line-height:1.3; }
.employee-document-action-arrow { justify-self:end; opacity:.65; transition:transform .18s ease,opacity .18s ease; }
.employee-document-action:hover { transform:translateY(-1px); }
.employee-document-action.is-download:hover { color:#fff; background:linear-gradient(135deg,#1b68dd,#174fb5); box-shadow:0 9px 20px rgba(22,73,167,.25); }
.employee-document-action.is-update:hover { color:#123f83; background:#f7faff; border-color:#9fbae0; box-shadow:0 6px 15px rgba(28,72,135,.09); }
.employee-document-action:hover .employee-document-action-arrow { opacity:1; transform:translateX(3px); }
.employee-document-action:focus-visible { outline:3px solid rgba(33,96,215,.25); outline-offset:2px; }
.employee-document-action:active { transform:translateY(0); }
.employee-document-tile.is-missing { background:#fbfcfe; border-style:dashed; }
.employee-document-empty { display:flex; align-items:center; gap:11px; min-height:82px; margin-top:12px; padding:12px; color:var(--muted); background:rgba(241,245,250,.7); border-radius:9px; }
.employee-document-empty > span { display:grid; place-items:center; width:32px; height:32px; flex:0 0 auto; color:#52709a; background:white; border:1px solid #dce5f0; border-radius:50%; font-size:19px; }
.employee-document-empty p,.employee-document-empty strong,.employee-document-empty small { display:block; margin:0; }
.employee-document-empty strong { color:#4c5b70; font-size:12px; }
.employee-document-empty small { margin-top:3px; font-size:11px; line-height:1.4; }
.document-preview-dialog { width:min(1120px,calc(100vw - 34px)); height:min(820px,calc(100dvh - 34px)); max-width:none; max-height:none; padding:0; overflow:hidden; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:0 34px 100px rgba(5,17,38,.36); }
.document-preview-dialog::backdrop { background:rgba(5,15,31,.68); backdrop-filter:blur(8px); animation:ux-backdrop-in .18s ease both; }
.document-preview-shell { display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:100%; }
.document-preview-header { display:grid; grid-template-columns:44px minmax(0,1fr) 38px; align-items:center; gap:12px; padding:15px 18px; background:linear-gradient(120deg,#f9fbff,#eef4fd); border-bottom:1px solid #dbe4f0; }
.document-preview-icon { display:grid; place-items:center; width:42px; height:42px; color:#1859bd; background:#e3edfc; border-radius:11px; }
.document-preview-header h2,.document-preview-header p { margin:0; }.document-preview-header h2 { margin-top:2px; font-size:17px; }.document-preview-header div > p:last-child { margin-top:3px; color:var(--muted); font-size:10px; }
.document-preview-close { display:grid; place-items:center; width:36px; height:36px; padding:0; color:#66758a; background:transparent; border:0; border-radius:9px; font-size:24px; cursor:pointer; }.document-preview-close:hover { color:#1b2d48; background:#e6edf7; }
.document-preview-stage { position:relative; min-height:0; padding:12px; overflow:hidden; background:#dfe5ec; }
.document-preview-stage iframe { width:100%; height:100%; background:#fff; border:0; border-radius:8px; box-shadow:0 3px 14px rgba(20,35,55,.12); }
.document-preview-loading { position:absolute; inset:12px; z-index:1; display:grid; place-content:center; justify-items:center; color:#52647c; background:#f5f7fa; border-radius:8px; text-align:center; transition:opacity .18s ease,visibility .18s ease; }.document-preview-loading.is-complete { visibility:hidden; opacity:0; }.document-preview-loading span { width:34px; height:34px; margin-bottom:12px; border:3px solid #d4dfed; border-top-color:#2160d7; border-radius:50%; animation:loading-spin .8s linear infinite; }.document-preview-loading strong { color:#263a57; font-size:12px; }.document-preview-loading small { margin-top:4px; font-size:9px; }
.document-preview-footer { display:flex; align-items:center; gap:9px; padding:12px 17px; background:#fbfcfe; border-top:1px solid var(--line); }.document-preview-footer p { display:flex; align-items:center; gap:6px; margin:0 auto 0 0; color:var(--muted); font-size:9px; }.document-preview-footer a { text-decoration:none; }.document-preview-download { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
@media (max-width:560px) { .employee-document-actions { grid-template-columns:1fr; }.employee-document-action { min-height:58px; }.employee-document-action-copy strong { font-size:11px; } }
@media (max-width:700px) { .document-preview-dialog { width:100vw; height:100dvh; border:0; border-radius:0; }.document-preview-stage { padding:0; }.document-preview-stage iframe,.document-preview-loading { inset:0; border-radius:0; }.document-preview-footer { flex-wrap:wrap; }.document-preview-footer p { width:100%; }.document-preview-footer a { flex:1; min-width:0; font-size:9px; }.document-preview-new-window { display:none; } }
.employee-contact-field dd { display:flex; align-items:flex-start; flex-wrap:wrap; gap:5px; }
.employee-contact-number { display:inline-flex; align-items:center; min-height:26px; padding:4px 8px; color:#164fae; background:#edf4ff; border:1px solid #d6e5fb; border-radius:7px; font-size:12px; font-weight:800; letter-spacing:.01em; }
.employee-contact-missing { color:var(--muted); font-weight:600; }
.editor-grid .field-help { display:block; margin-top:5px; color:var(--muted); font-size:9px; line-height:1.4; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; } }

/* Nova contratação ----------------------------------------------------- */
.admission-page { max-width:1180px; margin:0 auto; }
.admission-date-guidance { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:start; gap:10px; margin:0 0 18px; padding:11px 13px; color:#344054; background:#f5f8fd; border:1px solid #dce6f4; border-radius:10px; }.admission-date-guidance > span { display:grid; place-items:center; width:27px; height:27px; color:#175cd3; background:#e7f0ff; border-radius:8px; font-size:11px; font-weight:900; }.admission-date-guidance p,.admission-date-guidance strong { display:block; margin:0; }.admission-date-guidance p { font-size:9px; line-height:1.55; }.admission-date-guidance strong { margin-bottom:2px; color:#1d3455; font-size:10px; }.admission-date-guidance.is-contract { background:#f7fafc; }
.admission-header { align-items:flex-start; }
.admission-header .title-with-icon { max-width:760px; }
.admission-header .status { margin-top:4px; }
.admission-progress { position:sticky; top:0; z-index:24; margin-bottom:18px; padding:18px 22px 16px; box-shadow:0 9px 28px rgba(25,45,80,.09); }
.progress-copy { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.progress-copy strong { color:var(--blue); font-size:12px; letter-spacing:.04em; text-transform:uppercase; }
.progress-copy span { color:var(--muted); font-size:12px; font-weight:700; }
.progress-track { height:7px; overflow:hidden; background:#e7edf6; border-radius:999px; }
.progress-track span { display:block; width:33.333%; height:100%; background:linear-gradient(90deg,var(--blue),#5d94ef); border-radius:inherit; transition:width .3s ease; }
.step-navigation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:14px; }
.step-navigation button { display:flex; align-items:center; gap:9px; min-width:0; padding:8px 10px; color:var(--muted); background:transparent; border:1px solid transparent; border-radius:9px; font:inherit; font-size:11px; font-weight:750; cursor:pointer; text-align:left; }
.step-navigation button b { display:grid; place-items:center; width:25px; height:25px; flex:0 0 auto; color:#5e6b7d; background:#edf1f6; border-radius:50%; font-size:10px; }
.step-navigation button.is-active { color:var(--blue); background:#edf3ff; border-color:#d9e5fa; }
.step-navigation button.is-active b { color:white; background:var(--blue); }
.admission-step { overflow:visible; padding:0 24px 24px; }
.form-section-header { display:flex; align-items:center; gap:14px; margin:0 -24px 20px; padding:20px 24px; border-bottom:1px solid var(--line); }
.form-section-header > span { display:grid; place-items:center; width:42px; height:42px; flex:0 0 auto; color:var(--blue); background:#eaf1ff; border-radius:11px; font-size:12px; font-weight:850; }
.form-section-header h2 { margin:0 0 3px; font-size:18px; }
.form-section-header p { margin:0; color:var(--muted); font-size:12px; }
.admission-step fieldset { margin:0 0 20px; padding:0; border:0; }
.admission-step legend { width:100%; margin-bottom:14px; padding:0 0 9px; color:var(--ink); border-bottom:1px solid #e8edf4; font-size:12px; font-weight:850; letter-spacing:.055em; text-transform:uppercase; }
.admission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 18px; }
.admission-field { min-width:0; }
.admission-field.field-wide { grid-column:1/-1; }
.admission-field label { display:block; margin-bottom:6px; color:#46556a; font-size:11px; font-weight:750; }
.admission-field label span { color:var(--danger); }
.admission-field .form-control { width:100%; min-height:44px; padding:0 12px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:9px; font:inherit; font-size:13px; outline:0; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.admission-field select.form-control { padding-right:34px; text-overflow:ellipsis; }
.admission-field .form-control:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(20,87,217,.13); }
.admission-field.field-error .form-control,.admission-field.client-invalid .form-control { border-color:var(--danger); box-shadow:0 0 0 3px rgba(217,45,32,.08); }
.field-errors { display:grid; gap:2px; margin-top:5px; color:var(--danger); font-size:10px; font-weight:700; }
.field-help { display:block; margin-top:5px; color:var(--muted); font-size:10px; line-height:1.4; }
.client-field-error { display:block; margin-top:5px; color:var(--danger); font-size:10px; font-weight:700; line-height:1.4; }
.client-field-error[hidden] { display:none; }
.wizard-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:24px -24px -24px; padding:17px 24px; background:#fafbfd; border-top:1px solid var(--line); border-radius:0 0 11px 11px; }
.wizard-actions .primary-button,.wizard-actions .clear-button { min-height:44px; }
.wizard-actions .primary-button:disabled { opacity:.5; cursor:not-allowed; }
.review-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:22px; }
.review-layout h3 { margin:0 0 14px; font-size:15px; }
.review-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 0 15px; border:1px solid var(--line); border-radius:11px; }
.review-summary div { min-width:0; padding:12px 14px; border-bottom:1px solid var(--line); }
.review-summary div:nth-child(odd) { border-right:1px solid var(--line); }
.review-summary dt { margin-bottom:4px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.review-summary dd { margin:0; overflow-wrap:anywhere; font-size:12px; font-weight:750; }
.text-action { padding:0; color:var(--blue); background:none; border:0; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.document-package { padding:22px; background:linear-gradient(145deg,#eff5ff,#f8fbff); border:1px solid #d6e4fa; border-radius:13px; }
.package-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:15px; background:white; border-radius:12px; box-shadow:0 6px 18px rgba(20,87,217,.11); }
.document-package p,.document-package li,.document-package small { color:#59677a; font-size:11px; line-height:1.6; }
.document-package ul { margin:10px 0 16px; padding-left:18px; }
.download-feedback { margin:16px 0 0!important; padding:10px 12px; color:#067647!important; background:#ecfdf3; border:1px solid #abefc6; border-radius:8px; font-weight:750; }
.download-feedback[hidden] { display:none!important; }
.form-error-summary { margin-bottom:14px; padding:12px 15px; color:var(--danger); background:#fef3f2; border:1px solid #fecdca; border-radius:9px; }
.form-error-summary p { margin:0; }

@media (max-width:760px) {
    .admission-progress { top:0; margin-left:-4px; margin-right:-4px; padding:14px; }
    .step-navigation button { justify-content:center; }
    .step-navigation button span { display:none; }
    .admission-step { padding-left:16px; padding-right:16px; }
    .form-section-header { margin-left:-16px; margin-right:-16px; padding-left:16px; padding-right:16px; }
    .review-layout { grid-template-columns:1fr; }
    .wizard-actions { margin-left:-16px; margin-right:-16px; padding-left:16px; padding-right:16px; }
}
@media (max-width:560px) {
    .admission-header .status { margin-top:12px; }
    .admission-grid { grid-template-columns:1fr; }
    .admission-grid > span:empty { display:none; }
    .review-summary { grid-template-columns:1fr; }
    .review-summary div:nth-child(odd) { border-right:0; }
    .wizard-actions { align-items:stretch; flex-direction:column-reverse; }
    .wizard-actions > span:empty { display:none; }
    .wizard-actions .primary-button,.wizard-actions .clear-button { width:100%; }
}

/* Assiduidade ---------------------------------------------------------- */
.attendance-page { max-width:1500px; margin:0 auto; }
.attendance-hub-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:16px; }
.attendance-hub-header h1 { margin:0; color:var(--ink); font-size:27px; line-height:1.15; letter-spacing:-.025em; }
.attendance-hub-header p { margin:6px 0 0; color:var(--muted); font-size:12px; }
.attendance-area-count { display:inline-flex; align-items:center; justify-content:center; min-height:31px; flex:0 0 auto; padding:0 16px; color:white; background:var(--blue); border-radius:999px; font-size:9px; font-weight:850; letter-spacing:.045em; }
.attendance-hub-navigation { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-bottom:20px; padding:6px; background:var(--white); border:2px solid #c8d4e5; border-radius:12px; }
.attendance-hub-tab { display:flex; align-items:center; justify-content:center; min-height:45px; padding:8px 12px; color:var(--ink); border-radius:8px; font-size:11px; font-weight:800; text-align:center; text-decoration:none; transition:color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease; }
.attendance-hub-tab.active { color:white; background:var(--blue); box-shadow:0 6px 14px rgba(29,95,218,.2); }
.attendance-hub-tab.upcoming { cursor:not-allowed; }
.attendance-hub-tab.upcoming:hover { background:#f4f7fb; }
.attendance-module-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 2px 14px; }
.attendance-module-heading h2,.attendance-module-heading p { margin:0; }
.attendance-module-heading h2 { margin-top:3px; font-size:18px; }
.attendance-module-heading .muted { margin-top:4px; font-size:11px; }
.attendance-datebar { display:flex; align-items:center; gap:10px; margin-bottom:16px; padding:12px 16px; }
.date-step { display:grid; place-items:center; width:42px; height:42px; flex:0 0 auto; color:var(--blue); background:#edf3ff; border:1px solid #d5e3fa; border-radius:10px; font-size:18px; font-weight:850; text-decoration:none; transition:background .18s ease,color .18s ease,transform .18s ease; }
.date-step:hover { color:white; background:var(--blue); transform:translateY(-1px); }
.selected-day { display:flex; align-items:baseline; min-width:235px; gap:8px; }
.selected-day span { color:var(--muted); font-size:11px; font-weight:750; text-transform:uppercase; }
.selected-day strong { font-size:17px; }
.selected-day small { padding:3px 7px; color:#067647; background:#ecfdf3; border-radius:999px; font-size:9px; font-weight:800; }
.date-picker-form { display:flex; align-items:center; gap:8px; margin-left:auto; }
.date-picker-form label { color:var(--muted); font-size:10px; font-weight:750; }
.date-picker-form input { min-height:40px; padding:0 10px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; }
.date-picker-form .clear-button { min-height:40px; }
.today-button { color:var(--blue); font-size:11px; font-weight:800; text-decoration:none; }
.attendance-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.attendance-kpi { position:relative; min-width:0; overflow:hidden; padding:16px; background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:0 3px 13px rgba(25,45,80,.045); }
.attendance-kpi::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--blue); }
.attendance-kpi.success::before { background:#12b76a; }.attendance-kpi.warning::before { background:#f79009; }.attendance-kpi.danger::before { background:#f04438; }.attendance-kpi.coverage::before { background:#7a5af8; }
.attendance-kpi span,.attendance-kpi small,.attendance-kpi strong { display:block; }
.attendance-kpi span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.attendance-kpi strong { margin:5px 0 2px; font-size:24px; line-height:1.1; }.attendance-kpi small { color:var(--muted); font-size:10px; }
.attendance-notice { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding:12px 16px; border:1px solid; border-radius:11px; }
.attendance-notice > span { display:grid; place-items:center; width:30px; height:30px; flex:0 0 auto; border-radius:8px; font-weight:900; }
.attendance-notice strong { display:block; margin-bottom:2px; font-size:12px; }.attendance-notice p { margin:0; font-size:11px; }
.attendance-notice.needs-attention { color:#854a0e; background:#fffaeb; border-color:#fedf89; }.attendance-notice.needs-attention > span { background:#fef0c7; }
.attendance-notice.controlled { color:#067647; background:#ecfdf3; border-color:#abefc6; }.attendance-notice.controlled > span { background:#d1fadf; }
.attendance-filter-panel { margin-bottom:16px; }
.attendance-filters { display:grid; grid-template-columns:minmax(220px,1.5fr) minmax(150px,.7fr) minmax(200px,1fr) auto; align-items:end; gap:12px; padding:14px 16px; }
.attendance-filters label span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }
.attendance-filters input,.attendance-filters select { width:100%; min-height:42px; padding:0 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:12px; }
.attendance-result-count { padding:9px 16px; color:var(--muted); border-top:1px solid var(--line); font-size:10px; }
.attendance-result-count strong { color:var(--ink); font-size:12px; }
.attendance-workspace { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:16px; }
.attendance-roster { min-width:0; }
.attendance-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 18px 12px; }
.attendance-panel-heading h2,.attendance-panel-heading p { margin:0; }.attendance-panel-heading h2 { font-size:16px; }.attendance-panel-heading > span { color:var(--muted); font-size:11px; font-weight:750; }
.attendance-table-wrap { overflow:auto; }
.attendance-table { min-width:900px; }
.attendance-table th,.attendance-table td { padding:11px 12px; white-space:normal; vertical-align:middle; }
.attendance-table th:first-child,.attendance-table td:first-child { padding-left:18px; }
.attendance-table tbody tr { transition:background .15s ease; }.attendance-table tbody tr:hover { background:#f8faff; }
.attendance-table tr.requires-attention { background:#fffcf5; }
.attendance-table td:nth-child(2) strong,.attendance-table td:nth-child(3) strong,.attendance-table td:nth-child(3) small { display:block; }
.attendance-table td:nth-child(2) strong { font-size:12px; }.attendance-table td:nth-child(3) strong { font-size:10px; }.attendance-table td:nth-child(3) small { margin-top:2px; color:var(--muted); font-size:9px; }
.attendance-status { display:inline-flex; align-items:center; min-height:27px; padding:4px 8px; border-radius:999px; font-size:9px; font-weight:850; white-space:nowrap; }
.attendance-status.success { color:#067647; background:#ecfdf3; }.attendance-status.warning { color:#9a5b00; background:#fff4df; }.attendance-status.danger { color:#b42318; background:#fef3f2; }.attendance-status.info { color:#175cd3; background:#eff8ff; }.attendance-status.neutral { color:#526071; background:#eef1f5; }
.attendance-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; white-space:nowrap!important; }
.quick-attendance-form { margin:0; }.quick-present,.attendance-edit { min-height:34px; border-radius:8px; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.quick-present { width:34px; padding:0; color:#067647; background:#ecfdf3; border:1px solid #abefc6; }.quick-present:hover { color:white; background:#079455; border-color:#079455; }
.attendance-edit { padding:0 10px; color:#244d89; background:#f4f8ff; border:1px solid #d6e3f7; }.attendance-edit:hover { color:white; background:var(--blue); border-color:var(--blue); }
.team-coverage { position:sticky; top:16px; padding:18px; }
.coverage-heading { display:flex; align-items:center; gap:12px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.coverage-heading h2,.coverage-heading p { margin:0; }.coverage-heading h2 { font-size:14px; }.coverage-heading p { margin-top:3px; color:var(--muted); font-size:10px; }
.coverage-ring { display:grid; place-items:center; width:58px; height:58px; flex:0 0 auto; background:radial-gradient(circle closest-side,var(--white) 74%,transparent 76% 99%),conic-gradient(var(--blue) calc(var(--coverage) * 1%),#e5ebf3 0); border-radius:50%; font-size:11px; font-weight:850; }
.team-list h3 { margin:16px 0 8px; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }.team-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 0; border-top:1px solid #edf0f5; }
.team-row div { min-width:0; }.team-row strong,.team-row span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.team-row strong { font-size:10px; }.team-row span { margin-top:2px; color:var(--muted); font-size:9px; }.team-row b { flex:0 0 auto; color:#667085; font-size:8px; }.team-row b.has-alert { color:#b42318; }
.attendance-dialog { width:min(610px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); padding:0; overflow:auto; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 26px 80px rgba(4,15,35,.28); }
body.dialog-open { overflow:hidden; }
.attendance-dialog::backdrop { background:rgba(5,15,32,.55); backdrop-filter:blur(4px); }.attendance-dialog-form > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 22px 16px; border-bottom:1px solid var(--line); }.attendance-dialog-form header h2,.attendance-dialog-form header p { margin:0; }.attendance-dialog-form header > div > span { color:var(--muted); font-size:11px; }
.dialog-close { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; color:var(--muted); background:#f5f7fa; border:1px solid var(--line); border-radius:9px; font-size:20px; cursor:pointer; }.dialog-close:hover { color:var(--ink); background:#edf1f6; }
.attendance-editor-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; padding:20px 22px; }.attendance-editor-grid label span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }.attendance-editor-grid input,.attendance-editor-grid select,.attendance-editor-grid textarea { width:100%; min-height:43px; padding:0 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:12px; }.attendance-editor-grid textarea { min-height:95px; padding:10px 11px; resize:vertical; }.editor-notes { grid-column:1/-1; }.attendance-dialog-form footer { display:flex; align-items:center; gap:9px; padding:15px 22px; background:#fafbfd; border-top:1px solid var(--line); }.attendance-dialog-form footer > span { flex:1; }.delete-attendance { min-height:40px; padding:0 12px; color:#b42318; background:#fff; border:1px solid #fda29b; border-radius:8px; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }.delete-attendance:hover { color:white; background:#d92d20; border-color:#d92d20; }

@media (max-width:1180px) { .attendance-hub-navigation { grid-template-columns:repeat(3,1fr); }.attendance-kpis { grid-template-columns:repeat(3,1fr); }.attendance-workspace { grid-template-columns:1fr; }.team-coverage { position:static; }.team-list { display:grid; grid-template-columns:repeat(2,1fr); gap:0 18px; }.team-list h3 { grid-column:1/-1; } }
@media (max-width:760px) { .attendance-hub-header { align-items:flex-start; }.attendance-hub-navigation { grid-template-columns:repeat(2,1fr); }.attendance-module-heading { align-items:flex-start; }.attendance-datebar { flex-wrap:wrap; }.selected-day { min-width:0; flex:1; }.date-picker-form { width:100%; margin-left:0; padding-top:10px; border-top:1px solid var(--line); }.date-picker-form input { flex:1; }.attendance-filters { grid-template-columns:1fr 1fr; }.attendance-filters label:first-of-type { grid-column:1/-1; }.attendance-filters .filter-actions { grid-column:1/-1; }.attendance-kpis { grid-template-columns:repeat(2,1fr); }.attendance-table { min-width:0; }.attendance-table,.attendance-table tbody { display:block; }.attendance-table thead { display:none; }.attendance-table tr { display:block; margin:8px; overflow:hidden; border:1px solid var(--line); border-radius:10px; }.attendance-table td,.attendance-table td:first-child { display:grid; grid-template-columns:115px minmax(0,1fr); gap:10px; padding:9px 11px; border-top:1px solid #edf0f5; }.attendance-table td:first-child { border-top:0; }.attendance-table td::before { content:attr(data-label); color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }.attendance-table .attendance-actions { display:flex; }.attendance-table .attendance-actions::before { display:none; }.attendance-edit { flex:1; min-height:40px; }.quick-present { width:40px; height:40px; }.team-list { grid-template-columns:1fr; }.team-list h3 { grid-column:auto; } }
@media (max-width:520px) { .attendance-hub-header { display:block; }.attendance-hub-header h1 { font-size:24px; }.attendance-area-count { margin-top:12px; }.attendance-hub-navigation { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; }.attendance-hub-tab { min-width:155px; flex:0 0 auto; scroll-snap-align:start; }.attendance-module-heading { display:block; }.attendance-module-heading .status { display:inline-flex; margin-top:10px; }.selected-day { align-items:flex-start; flex-direction:column; gap:1px; }.date-picker-form label { display:none; }.today-button { width:100%; text-align:center; }.attendance-kpis { gap:7px; }.attendance-kpi { padding:13px; }.attendance-kpi strong { font-size:21px; }.attendance-filters { grid-template-columns:1fr; }.attendance-filters label:first-of-type,.attendance-filters .filter-actions { grid-column:auto; }.attendance-editor-grid { grid-template-columns:1fr; padding:17px; }.editor-notes { grid-column:auto; }.attendance-dialog-form footer { flex-wrap:wrap; padding:13px 17px; }.attendance-dialog-form footer > span { display:none; }.delete-attendance { width:100%; order:3; }.attendance-dialog-form footer .clear-button,.attendance-dialog-form footer .primary-button { flex:1; } }

/* Áreas integradas de assiduidade -------------------------------------- */
.attendance-area-page { padding-bottom:12px; }
.area-filter-panel { margin-bottom:16px; }
.area-filters { display:grid; grid-template-columns:minmax(210px,1.4fr) repeat(4,minmax(120px,.7fr)) auto; align-items:end; gap:10px; padding:14px 16px; }
.area-filters label span,.analysis-filters label span,.map-search label span,.area-editor-form label span,.simulation-form label span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }
.area-filters input,.area-filters select,.analysis-filters input,.analysis-filters select,.map-search input,.area-editor-form input,.area-editor-form select,.simulation-form input,.simulation-form select { width:100%; min-height:42px; padding:0 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:11px; }
.area-split-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; align-items:start; gap:16px; }
.area-list-panel { min-width:0; }
.primary-button.compact { min-height:36px; padding:0 12px; font-size:10px; text-decoration:none; }
.area-data-table { min-width:850px; }
.area-data-table th,.area-data-table td { padding:11px 12px; vertical-align:middle; white-space:normal; }
.area-data-table td strong,.area-data-table td small { display:block; }.area-data-table td strong { font-size:11px; }.area-data-table td small { margin-top:2px; color:var(--muted); font-size:9px; }
.area-data-table tbody tr:hover,.area-data-table tbody tr.selected-row { background:#f7faff; }
.area-data-table .row-actions { text-align:right; }
.area-data-table .attendance-edit { display:inline-flex; align-items:center; min-height:34px; text-decoration:none; }
.area-editor { position:sticky; top:16px; overflow:hidden; }
.area-editor-heading { padding:18px 18px 13px; border-bottom:1px solid var(--line); }.area-editor-heading h2,.area-editor-heading p { margin:0; }.area-editor-heading h2 { margin-top:3px; font-size:16px; }.area-editor-heading > p:last-child { margin-top:5px; color:var(--muted); font-size:10px; line-height:1.45; }
.area-editor-form,.simulation-form { display:grid; gap:12px; padding:16px 18px; }
.editor-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.area-editor-actions { display:flex; justify-content:flex-end; gap:8px; padding-top:5px; }.area-editor-actions .clear-button,.area-editor-actions .primary-button { min-width:100px; }
.danger-zone { padding:0 18px 18px; }.danger-zone .delete-attendance { width:100%; }
.analysis-rule { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:14px 18px; margin-bottom:14px; padding:14px 16px; }.analysis-rule > strong { color:var(--muted); font-size:9px; letter-spacing:.05em; }.analysis-rule > p { margin:0; font-size:11px; font-weight:650; }.analysis-rule > div { display:grid; grid-template-columns:repeat(3,1fr); grid-column:1/-1; gap:9px; }.analysis-rule > div span { padding:8px 10px; color:#92400e; background:#fef3c7; border-radius:7px; font-size:10px; font-weight:800; text-align:center; }.analysis-rule > div span:nth-child(2) { color:#c2410c; background:#ffedd5; }.analysis-rule > div span:nth-child(3) { color:#991b1b; background:#fee2e2; }
.area-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }.area-kpis article { padding:14px 16px; background:var(--white); border:1px solid var(--line); border-left:3px solid var(--blue); border-radius:10px; }.area-kpis article.warning { border-left-color:#f79009; }.area-kpis article.danger { border-left-color:#f04438; }.area-kpis span,.area-kpis strong,.area-kpis small { display:block; }.area-kpis span { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }.area-kpis strong { margin:4px 0 1px; font-size:23px; }.area-kpis small { color:var(--muted); font-size:9px; }
.analysis-filters { display:grid; grid-template-columns:1.4fr 1fr 1fr auto; align-items:end; gap:10px; padding:14px 16px; }
.analysis-table details { position:relative; }.analysis-table summary { color:var(--blue); font-weight:850; cursor:pointer; }.occurrence-list { position:static; width:min(420px,100%); margin-top:7px; padding:10px; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:9px; box-shadow:0 8px 20px rgba(15,35,65,.1); white-space:normal; }.occurrence-list p { margin:0; padding:7px; border-top:1px solid var(--line); }.occurrence-list p:first-child { border-top:0; }.occurrence-list b,.occurrence-list span { display:block; font-size:9px; }.occurrence-list span { margin-top:2px; color:var(--muted); }
.analysis-status { display:inline-flex; padding:5px 8px; color:#92400e; background:#fef3c7; border-radius:999px; font-size:9px; font-weight:800; }.analysis-status.level-2 { color:#c2410c; background:#ffedd5; }.analysis-status.level-3 { color:#991b1b; background:#fee2e2; }
.map-search { display:grid; grid-template-columns:minmax(240px,1fr) auto auto; align-items:end; gap:9px; padding:14px 16px; }.map-search label { min-width:0; }
.vacation-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; align-items:start; gap:16px; }.balance-value { color:#067647; }.balance-value.negative,.vacation-balance-hero strong.negative { color:#b42318; }
.vacation-detail { position:sticky; top:16px; padding:18px; }.vacation-detail > h2,.vacation-detail > p { margin:0; }.vacation-detail > h2 { margin-top:4px; font-size:17px; }.vacation-detail > span { display:block; margin-top:4px; color:var(--muted); font-size:10px; }.vacation-balance-hero { margin:16px 0; padding:16px; background:#edf4ff; border-radius:11px; }.vacation-balance-hero strong,.vacation-balance-hero span { display:block; }.vacation-balance-hero strong { color:#175cd3; font-size:36px; }.vacation-balance-hero span { color:var(--muted); font-size:10px; }.vacation-detail dl,.simulation-details { margin:0; }.vacation-detail dl div,.simulation-details div { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid var(--line); }.vacation-detail dt,.vacation-detail dd,.simulation-details dt,.simulation-details dd { margin:0; font-size:10px; }.vacation-detail dt,.simulation-details dt { color:var(--muted); }.vacation-detail dd,.simulation-details dd { font-weight:800; text-align:right; }.vacation-detail h3 { margin:18px 0 7px; font-size:11px; text-transform:uppercase; }.vacation-events { max-height:300px; overflow:auto; }.vacation-events article { margin-top:7px; padding:9px 10px; border-left:3px solid #64748b; background:#f7f9fc; border-radius:7px; }.vacation-events article.event-ferias { border-left-color:#16a34a; }.vacation-events article.event-desconto { border-left-color:#dc3545; }.vacation-events article.event-descanso { border-left-color:#f59e0b; }.vacation-events strong,.vacation-events span,.vacation-events small { display:block; font-size:9px; }.vacation-events span,.vacation-events small { margin-top:2px; color:var(--muted); }.detail-placeholder,.simulation-empty { display:grid; place-items:center; min-height:300px; padding:25px; text-align:center; }.detail-placeholder strong,.detail-placeholder span { display:block; }.detail-placeholder span { max-width:220px; margin-top:7px; color:var(--muted); font-size:10px; }
.simulation-layout { display:grid; grid-template-columns:minmax(310px,.8fr) minmax(0,1.2fr); align-items:start; gap:16px; }.simulation-form-panel { overflow:hidden; }.simulation-result { min-height:505px; padding:20px; }.simulation-result-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }.simulation-result-heading h2,.simulation-result-heading p { margin:0; }.simulation-result-heading h2 { margin-top:4px; font-size:19px; }.simulation-result-heading span { color:var(--muted); font-size:10px; }.simulation-result-heading b { padding:7px 10px; border-radius:999px; font-size:8px; }.simulation-result-heading b.positive { color:#067647; background:#ecfdf3; }.simulation-result-heading b.negative { color:#b42318; background:#fef3f2; }.simulation-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }.simulation-cards article { padding:18px; background:#f7f9fc; border:1px solid var(--line); border-radius:10px; }.simulation-cards article.projected { background:#edf4ff; border-color:#c9daf7; }.simulation-cards span,.simulation-cards strong,.simulation-cards small { display:block; }.simulation-cards span { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }.simulation-cards strong { margin:6px 0 2px; font-size:30px; }.simulation-cards small { color:var(--muted); font-size:9px; }.simulation-cards strong.negative { color:#b42318; }.simulation-empty span { display:grid; place-items:center; width:64px; height:64px; color:var(--blue); background:#edf4ff; border-radius:50%; font-size:32px; }.simulation-empty strong { margin-top:14px; font-size:16px; text-transform:uppercase; }.simulation-empty p { color:var(--muted); font-size:11px; }
@media (max-width:1250px) { .area-filters { grid-template-columns:repeat(3,1fr); }.area-filters .wide { grid-column:span 2; }.area-split-layout,.vacation-map-layout { grid-template-columns:1fr; }.area-editor,.vacation-detail { position:static; }.simulation-layout { grid-template-columns:1fr; }.simulation-result { min-height:0; } }
@media (max-width:760px) { .area-filters,.analysis-filters { grid-template-columns:1fr 1fr; }.area-filters .wide,.analysis-filters label:first-child,.area-filters .filter-actions,.analysis-filters .filter-actions { grid-column:1/-1; }.area-kpis { grid-template-columns:1fr 1fr; }.area-data-table { min-width:0; }.area-data-table,.area-data-table tbody { display:block; }.area-data-table thead { display:none; }.area-data-table tr { display:block; margin:8px; border:1px solid var(--line); border-radius:9px; }.area-data-table td { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; padding:9px 11px; border-top:1px solid var(--line); }.area-data-table td:first-child { border-top:0; }.area-data-table td::before { content:attr(data-label); color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; }.area-data-table td:last-child { display:flex; }.area-data-table .attendance-edit { width:100%; justify-content:center; }.occurrence-list { position:static; width:auto; margin-top:7px; }.simulation-cards { grid-template-columns:1fr; }.simulation-result-heading { display:block; }.simulation-result-heading b { display:inline-flex; margin-top:10px; } }
@media (max-width:520px) { .area-filters,.analysis-filters,.map-search { grid-template-columns:1fr; }.area-filters .wide,.analysis-filters label:first-child,.area-filters .filter-actions,.analysis-filters .filter-actions { grid-column:auto; }.map-search .primary-button,.map-search .clear-button { width:100%; }.area-kpis { grid-template-columns:1fr; }.analysis-rule { grid-template-columns:1fr; }.analysis-rule > div { grid-template-columns:1fr; }.editor-pair { grid-template-columns:1fr; }.simulation-result { padding:15px; } }

/* Combobox pesquisável ------------------------------------------------ */
.search-combobox { position:relative; min-width:0; width:100%; }
.search-combobox:focus-within { z-index:2; }
.search-combobox::after { content:""; position:absolute; z-index:1; top:50%; right:12px; width:7px; height:7px; pointer-events:none; border-right:2px solid #667085; border-bottom:2px solid #667085; transform:translateY(-70%) rotate(45deg); }
.search-combobox-input { width:100%!important; min-height:42px; padding:0 34px 0 11px!important; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:11px; text-overflow:ellipsis; }
.search-combobox-input:focus { outline:3px solid rgba(29,95,218,.13); border-color:var(--blue)!important; }
.search-combobox-native { position:absolute!important; width:1px!important; height:1px!important; margin:0!important; padding:0!important; opacity:0!important; pointer-events:none!important; }
.search-combobox-list { position:absolute; z-index:40; top:calc(100% + 5px); left:0; width:100%; min-width:190px; max-height:280px; overflow:auto; overscroll-behavior:contain; padding:5px; background:var(--white); border:1px solid #cbd6e5; border-radius:9px; box-shadow:0 14px 34px rgba(16,38,72,.18); }
.search-combobox-list.is-viewport-portal { position:fixed; z-index:180; min-width:0; margin:0; }
.search-combobox-option { display:block; width:100%; min-height:35px; padding:7px 9px; overflow:hidden; color:var(--ink); background:transparent; border:0; border-radius:6px; font:inherit; font-size:10px; font-weight:650; text-align:left; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.search-combobox-option:hover,.search-combobox-option.is-active { color:#174ea6; background:#edf4ff; }
.search-combobox-option[aria-selected="true"] { color:white; background:var(--blue); }
.search-combobox-empty,.search-combobox-hint { display:block; padding:10px 9px; color:var(--muted); font-size:9px; line-height:1.4; }
.search-combobox-hint { border-top:1px solid var(--line); }

/* Camadas fixas da Assiduidade ----------------------------------------- */
.attendance-page { --attendance-viewport-top:0px; --attendance-hub-height:70px; --attendance-tools-height:0px; }
.attendance-sticky-hub { position:sticky; top:var(--attendance-viewport-top); z-index:35; margin:-14px -12px 20px; padding:14px 12px 10px; background:var(--soft); background:linear-gradient(to bottom,var(--soft) 91%,color-mix(in srgb,var(--soft) 0%,transparent)); }
.attendance-sticky-hub .attendance-hub-header { max-height:76px; overflow:hidden; opacity:1; }
.attendance-sticky-hub .attendance-hub-navigation { margin-bottom:0; transition:box-shadow .22s ease,border-color .22s ease; }
.attendance-filter-panel,.area-filter-panel { overflow:visible; }
.attendance-sticky-tools { position:sticky; top:calc(var(--attendance-viewport-top) + var(--attendance-hub-height) + 6px); z-index:32; border-color:#d5dfec; box-shadow:0 9px 24px rgba(20,45,82,.1); }
.team-coverage,.area-editor,.vacation-detail { top:calc(var(--attendance-viewport-top) + var(--attendance-hub-height) + var(--attendance-tools-height) + 18px); }
.simulation-form-panel { position:sticky; top:calc(var(--attendance-viewport-top) + var(--attendance-hub-height) + 12px); }
@media (max-width:1250px) { .simulation-form-panel { position:static; } }
@media (max-width:1024px) { .attendance-page { --attendance-viewport-top:64px; }.attendance-sticky-hub { margin-left:-7px; margin-right:-7px; padding-left:7px; padding-right:7px; } }
@media (max-width:760px) { .attendance-hub-navigation { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; }.attendance-hub-tab { min-width:155px; flex:0 0 auto; scroll-snap-align:start; }.attendance-sticky-tools { position:static; }.attendance-page { --attendance-tools-height:0px!important; }.attendance-sticky-hub { margin-bottom:14px; } }
@media (max-width:640px) { .attendance-page { --attendance-viewport-top:58px; }.attendance-sticky-hub { margin-left:-5px; margin-right:-5px; padding-left:5px; padding-right:5px; } }

/* Pilha sticky unificada: impede qualquer colisão entre navegação e filtros. */
.attendance-sticky-hub { background:var(--soft); }
.attendance-sticky-tools { position:static; top:auto; z-index:auto; }
.attendance-sticky-hub.has-integrated-tools { padding-bottom:12px; }
.attendance-sticky-hub.has-integrated-tools .attendance-sticky-tools { margin:8px 0 0; border-color:#d5dfec; box-shadow:0 7px 18px rgba(20,45,82,.08); }
.team-coverage,.area-editor,.vacation-detail { top:calc(var(--attendance-viewport-top) + var(--attendance-hub-height) + 14px); }
.simulation-form-panel { top:calc(var(--attendance-viewport-top) + var(--attendance-hub-height) + 14px); }

/* Mapa de férias ------------------------------------------------------- */
.vacation-filter-form { display:grid; grid-template-columns:minmax(230px,1.5fr) minmax(120px,.55fr) minmax(105px,.45fr) minmax(180px,.85fr) auto; align-items:end; gap:10px; padding:14px 16px; }
.vacation-filter-form label { min-width:0; }
.vacation-filter-form label > span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }
.vacation-filter-form input,.vacation-filter-form select { width:100%; min-height:42px; padding:0 11px; color:var(--ink); background:var(--white); border:1px solid #ccd6e3; border-radius:8px; font:inherit; font-size:11px; }
.vacation-filter-form input:focus,.vacation-filter-form select:focus { outline:3px solid rgba(29,95,218,.13); border-color:var(--blue); }
.vacation-map-workspace { display:grid; grid-template-columns:minmax(210px,.65fr) minmax(440px,1.45fr) minmax(230px,.72fr); align-items:start; gap:14px; }
.vacation-employee-card,.vacation-calendar-card,.vacation-balance-card { min-width:0; overflow:hidden; }
.vacation-employee-card,.vacation-balance-card { padding:18px; }
.vacation-person-heading { display:flex; align-items:flex-start; gap:11px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.vacation-avatar { display:grid; place-items:center; width:43px; height:43px; flex:0 0 auto; color:#174ea6; background:#eaf2ff; border-radius:11px; font-size:17px; font-weight:850; }
.vacation-person-heading h2,.vacation-person-heading p,.vacation-person-heading span { margin:0; }
.vacation-person-heading h2 { margin-top:3px; overflow-wrap:anywhere; font-size:15px; line-height:1.25; }
.vacation-person-heading div > span { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.vacation-person-details,.vacation-balance-details { margin:0; }
.vacation-person-details div,.vacation-balance-details div { padding:9px 0; border-bottom:1px solid var(--line); }
.vacation-person-details dt,.vacation-person-details dd,.vacation-balance-details dt,.vacation-balance-details dd { margin:0; }
.vacation-person-details dt,.vacation-balance-details dt { color:var(--muted); font-size:9px; }
.vacation-person-details dd { margin-top:3px; overflow-wrap:anywhere; font-size:10px; font-weight:750; }
.vacation-change-person { display:flex; align-items:center; justify-content:center; width:100%; min-height:39px; margin-top:14px; color:var(--blue); background:#f6f9ff; border:1px solid #cbdaf2; border-radius:8px; font:inherit; font-size:10px; font-weight:800; text-decoration:none; cursor:pointer; }
.vacation-change-person:hover { color:white; background:var(--blue); border-color:var(--blue); }
.vacation-calendar-header { display:grid; grid-template-columns:38px 1fr 38px; align-items:center; gap:10px; padding:15px 16px 13px; border-bottom:1px solid var(--line); }
.vacation-calendar-header div { text-align:center; }.vacation-calendar-header p,.vacation-calendar-header h2 { margin:0; }.vacation-calendar-header h2 { margin-top:2px; font-size:17px; text-transform:capitalize; }
.vacation-calendar-header > a { display:grid; place-items:center; width:38px; height:38px; color:var(--ink); background:#f7f9fc; border:1px solid var(--line); border-radius:9px; font-size:24px; line-height:1; text-decoration:none; }
.vacation-calendar-header > a:hover { color:white; background:var(--blue); border-color:var(--blue); }
.vacation-calendar-scroll { padding:12px 14px 8px; overflow-x:auto; }
.vacation-calendar { min-width:392px; }
.vacation-weekdays,.vacation-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.vacation-weekdays span { padding:6px 2px 8px; color:var(--muted); font-size:9px; font-weight:800; text-align:center; text-transform:uppercase; }
.vacation-day { position:relative; display:flex; flex-direction:column; justify-content:space-between; min-height:58px; padding:7px; border-top:1px solid var(--line); border-left:1px solid var(--line); background:var(--white); }
.vacation-week .vacation-day:last-child { border-right:1px solid var(--line); }.vacation-week:last-child .vacation-day { border-bottom:1px solid var(--line); }
.vacation-week:first-of-type .vacation-day:first-child { border-top-left-radius:8px; }.vacation-week:first-of-type .vacation-day:last-child { border-top-right-radius:8px; }.vacation-week:last-child .vacation-day:first-child { border-bottom-left-radius:8px; }.vacation-week:last-child .vacation-day:last-child { border-bottom-right-radius:8px; }
.vacation-day > span { display:grid; place-items:center; width:22px; height:22px; font-size:10px; font-weight:750; }
.vacation-day.outside-month { color:#a6afbd; background:#fafbfd; }.vacation-day.is-today > span { color:white; background:var(--blue); border-radius:50%; }.vacation-day.has-event { background:#fbfdff; }
.vacation-day-markers { display:flex; flex-wrap:wrap; gap:3px; padding-top:5px; }.vacation-day-markers i,.vacation-calendar-legend i { display:inline-block; width:7px; height:7px; flex:0 0 auto; background:#64748b; border-radius:50%; }
.vacation-day-markers .marker-ferias,.vacation-calendar-legend .marker-ferias { background:#16a34a; }.vacation-day-markers .marker-desconto,.vacation-calendar-legend .marker-desconto { background:#dc3545; }.vacation-day-markers .marker-descanso,.vacation-calendar-legend .marker-descanso { background:#f59e0b; }.vacation-day-markers .marker-outro,.vacation-calendar-legend .marker-outro { background:#64748b; }
.vacation-calendar-legend { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 14px; padding:8px 14px 13px; color:var(--muted); font-size:9px; }.vacation-calendar-legend span { display:inline-flex; align-items:center; gap:5px; }
.vacation-balance-card > p { margin:0; }.vacation-balance-card .vacation-balance-hero { margin:9px 0 12px; padding:14px; }
.vacation-balance-details div { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }.vacation-balance-details dd { font-size:10px; font-weight:850; text-align:right; }
.vacation-balance-note { margin:13px 0 0; padding:10px 11px; color:var(--muted); background:#f7f9fc; border-radius:8px; font-size:9px; line-height:1.55; }
.vacation-history-card { margin-top:14px; overflow:hidden; }.vacation-history-card .attendance-panel-heading { border-bottom:1px solid var(--line); }.vacation-history-card .attendance-panel-heading h2 { margin-top:3px; }.vacation-history-card .attendance-panel-heading span { display:block; margin-top:3px; color:var(--muted); font-size:9px; }
.vacation-history-list { display:grid; }.vacation-history-item { display:grid; grid-template-columns:8px minmax(170px,1.4fr) minmax(145px,.8fr) minmax(110px,.6fr) minmax(120px,.7fr); align-items:center; gap:12px; min-height:58px; padding:10px 18px; border-top:1px solid var(--line); }.vacation-history-item:first-child { border-top:0; }.vacation-history-item > div strong,.vacation-history-item > div small { display:block; }.vacation-history-item > div strong { font-size:10px; }.vacation-history-item > div small,.vacation-history-item > span { color:var(--muted); font-size:9px; }.vacation-history-item > span strong { color:var(--ink); }.vacation-event-dot { width:8px; height:8px; background:#64748b; border-radius:50%; }.vacation-history-item.event-ferias .vacation-event-dot { background:#16a34a; }.vacation-history-item.event-desconto .vacation-event-dot { background:#dc3545; }.vacation-history-item.event-descanso .vacation-event-dot { background:#f59e0b; }
.vacation-history-empty { display:grid; place-items:center; min-height:150px; padding:24px; text-align:center; }.vacation-history-empty strong,.vacation-history-empty span { display:block; }.vacation-history-empty span { margin-top:5px; color:var(--muted); font-size:10px; }
.vacation-welcome-state { display:flex; align-items:center; justify-content:center; gap:16px; min-height:180px; margin-bottom:14px; padding:28px; }.vacation-welcome-state > span { display:grid; place-items:center; width:58px; height:58px; flex:0 0 auto; color:var(--blue); background:#edf4ff; border-radius:15px; font-size:28px; }.vacation-welcome-state strong { font-size:16px; }.vacation-welcome-state p { max-width:520px; margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.55; }
.vacation-employee-results { margin-top:14px; overflow:hidden; }.vacation-employee-results > summary { display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:58px; padding:12px 18px; cursor:pointer; list-style:none; }.vacation-employee-results > summary::-webkit-details-marker { display:none; }.vacation-employee-results > summary span strong,.vacation-employee-results > summary span small { display:block; }.vacation-employee-results > summary span strong { font-size:12px; }.vacation-employee-results > summary span small { margin-top:2px; color:var(--muted); font-size:9px; }.vacation-employee-results > summary > i { width:9px; height:9px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .18s ease; }.vacation-employee-results[open] > summary > i { transform:rotate(225deg); }.vacation-employee-results[open] > summary { border-bottom:1px solid var(--line); }
.vacation-selection-open { overflow:hidden; }
.vacation-employee-results.is-selection-overlay { position:fixed; inset:24px; z-index:150; display:flex; flex-direction:column; width:min(1120px,calc(100vw - 48px)); max-height:calc(100dvh - 48px); margin:auto; background:var(--white); box-shadow:0 0 0 100vmax rgba(5,15,32,.56),0 28px 80px rgba(4,15,35,.32); }
.vacation-employee-results.is-selection-overlay > summary { flex:0 0 auto; }.vacation-employee-results.is-selection-overlay > .table-wrap { flex:1 1 auto; overflow:auto; }.vacation-employee-results.is-selection-overlay > .pagination { flex:0 0 auto; }
.vacation-open-map { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:34px; padding:0 11px; color:#174ea6; background:#edf4ff; border:1px solid #c9daf7; border-radius:8px; font-size:9px; font-weight:850; text-decoration:none; white-space:nowrap; }.vacation-open-map:hover { color:white; background:var(--blue); border-color:var(--blue); }.vacation-open-map span { font-size:13px; transition:transform .18s ease; }.vacation-open-map:hover span { transform:translateX(2px); }
@media (max-width:1320px) { .vacation-map-workspace { grid-template-columns:minmax(210px,.65fr) minmax(400px,1.35fr); }.vacation-balance-card { grid-column:1/-1; }.vacation-balance-details { display:grid; grid-template-columns:repeat(4,1fr); gap:0 18px; } }
@media (max-width:1050px) { .vacation-filter-form { grid-template-columns:2fr 1fr 1fr; }.vacation-filter-form label:nth-of-type(4) { grid-column:span 2; }.vacation-map-workspace { grid-template-columns:1fr; }.vacation-balance-card { grid-column:auto; }.vacation-person-details,.vacation-balance-details { display:grid; grid-template-columns:repeat(2,1fr); gap:0 18px; } }
@media (max-width:760px) { .vacation-filter-form { grid-template-columns:1fr 1fr; }.vacation-search-field,.vacation-filter-form label:nth-of-type(4),.vacation-filter-form .filter-actions { grid-column:1/-1; }.vacation-history-item { grid-template-columns:8px 1fr auto; gap:6px 10px; padding:11px 14px; }.vacation-event-period,.vacation-event-duration,.vacation-event-holidays { grid-column:2/-1; }.vacation-employee-results .area-data-table td:last-child { display:grid; }.vacation-open-map { width:100%; }.vacation-welcome-state { align-items:flex-start; justify-content:flex-start; min-height:0; } }
@media (max-width:520px) { .vacation-filter-form { grid-template-columns:1fr; }.vacation-search-field,.vacation-filter-form label:nth-of-type(4),.vacation-filter-form .filter-actions { grid-column:auto; }.vacation-filter-form .filter-actions { display:grid; grid-template-columns:1fr 1fr; }.vacation-person-details,.vacation-balance-details { grid-template-columns:1fr; }.vacation-calendar-scroll { padding-left:10px; padding-right:10px; }.vacation-calendar { min-width:350px; }.vacation-day { min-height:50px; padding:5px; }.vacation-welcome-state { display:block; }.vacation-welcome-state > span { margin-bottom:13px; }.vacation-employee-results.is-selection-overlay { inset:10px; width:calc(100vw - 20px); max-height:calc(100dvh - 20px); } }

/* Login profissional -------------------------------------------------- */
.login-page { display:block; min-height:100vh; min-height:100dvh; padding:clamp(18px,3vw,42px); background:#eaf0f8; }
.login-shell { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr); width:min(1180px,100%); min-height:min(720px,calc(100dvh - clamp(36px,6vw,84px))); margin:auto; overflow:hidden; background:var(--white); border:1px solid rgba(180,195,216,.7); border-radius:24px; box-shadow:0 28px 80px rgba(20,43,77,.17); }
.login-visual { position:relative; display:flex; flex-direction:column; min-width:0; padding:clamp(34px,4vw,58px); overflow:hidden; color:white; background:linear-gradient(145deg,#091a36 0%,#103873 55%,#1457b9 100%); isolation:isolate; }
.login-visual::before { content:""; position:absolute; z-index:-2; inset:0; opacity:.16; background-image:linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(to bottom right,black,transparent 78%); }
.login-visual::after { content:""; position:absolute; z-index:-1; right:-145px; bottom:-180px; width:470px; height:470px; border:1px solid rgba(255,255,255,.2); border-radius:50%; box-shadow:0 0 0 60px rgba(255,255,255,.035),0 0 0 120px rgba(255,255,255,.025); }
.login-visual-glow { position:absolute; z-index:-1; top:15%; left:-120px; width:360px; height:360px; background:radial-gradient(circle,rgba(80,144,246,.38),transparent 68%); pointer-events:none; }
.login-visual-brand img { display:block; width:min(260px,72%); }.login-visual-brand > span { display:block; margin-top:12px; color:#a9c8f5; font-size:10px; font-weight:850; letter-spacing:.19em; }
.login-visual-copy { max-width:570px; margin:auto 0; padding:55px 0; }.login-visual-copy .login-kicker { margin-bottom:15px; color:#a9cbff; font-size:10px; font-weight:850; letter-spacing:.18em; }.login-visual-copy h1 { max-width:550px; margin-bottom:18px; color:white; font-size:clamp(31px,3.1vw,46px); line-height:1.12; letter-spacing:-.035em; }.login-visual-copy > p:not(.login-kicker) { max-width:520px; margin-bottom:27px; color:#cfdef4; font-size:14px; line-height:1.7; }
.login-capabilities { display:flex; flex-wrap:wrap; gap:9px; }.login-capabilities span { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; color:#eaf2ff; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.13); border-radius:999px; font-size:9px; font-weight:750; backdrop-filter:blur(6px); }.login-capabilities i { display:grid; place-items:center; width:15px; height:15px; color:#0e3972; background:#9bc1fb; border-radius:50%; font-size:9px; font-style:normal; font-weight:900; }
.login-visual-footer { display:flex; align-items:center; gap:8px; color:#9eb8dc; font-size:9px; font-weight:700; letter-spacing:.03em; }.login-visual-footer > span { width:6px; height:6px; background:#6fe1ad; border-radius:50%; box-shadow:0 0 0 4px rgba(111,225,173,.1); }
.login-access { position:relative; display:grid; grid-template-columns:minmax(0,1fr); place-items:center; min-width:0; padding:clamp(36px,5vw,70px); background:var(--white); }.login-access .login-theme-control { position:absolute; top:20px; right:20px; }.login-access .login-theme-control .theme-toggle { color:#334155; background:#f4f7fb; border-color:#dbe3ee; box-shadow:0 4px 12px rgba(20,43,77,.06); }
.login-form-card { width:100%; max-width:430px; min-width:0; }.login-mobile-brand { display:none; }.login-heading { display:flex; align-items:center; gap:13px; margin-bottom:13px; }.login-heading-icon { display:grid; place-items:center; width:44px; height:44px; flex:0 0 auto; overflow:hidden; background:#edf3ff; border-radius:11px; }.login-heading-icon img { width:29px; height:29px; object-fit:contain; }.login-heading p,.login-heading h2 { margin:0; }.login-heading p { margin-bottom:3px; color:var(--blue); font-size:9px; font-weight:850; letter-spacing:.15em; }.login-heading h2 { font-size:25px; letter-spacing:-.02em; }.login-introduction { margin-bottom:25px; overflow-wrap:anywhere; color:var(--muted); font-size:12px; line-height:1.6; }
.login-error { display:grid; grid-template-columns:28px 1fr; align-items:start; gap:10px; margin-bottom:20px; padding:12px 13px; color:#912018; background:#fff4f2; border:1px solid #ffd0cb; border-radius:10px; }.login-error > span { display:grid; place-items:center; width:25px; height:25px; color:white; background:#d92d20; border-radius:7px; font-size:11px; font-weight:900; }.login-error strong,.login-error p { display:block; margin:0; }.login-error strong { font-size:10px; }.login-error p { margin-top:2px; color:#ad4e46; font-size:9px; line-height:1.45; }
.login-form { display:grid; gap:17px; }.login-field { display:grid; gap:6px; }.login-field > label { color:#344054; font-size:10px; font-weight:800; }.login-input-shell { position:relative; }.login-input-shell > svg { position:absolute; z-index:1; top:50%; left:13px; width:18px; height:18px; color:#7a879a; pointer-events:none; transform:translateY(-50%); }.login-input-shell input { width:100%; height:50px; padding:0 14px 0 43px; color:var(--ink); background:#fbfcfe; border:1px solid #cad4e1; border-radius:10px; font:inherit; font-size:12px; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }.login-input-shell input::placeholder { color:#98a2b3; }.login-input-shell input:hover { border-color:#aebdce; }.login-input-shell input:focus { background:white; border-color:var(--blue); box-shadow:0 0 0 4px rgba(20,87,217,.11); }.login-input-shell:focus-within > svg { color:var(--blue); }.login-password-shell input { padding-right:49px; }
.password-visibility { position:absolute; z-index:2; top:50%; right:7px; display:grid; place-items:center; width:36px; height:36px; padding:0; color:#667085; background:transparent; border:0; border-radius:8px; cursor:pointer; transform:translateY(-50%); }.password-visibility svg { width:18px; height:18px; }.password-visibility:hover { color:var(--blue); background:#edf3ff; }.password-visibility:focus-visible { outline:3px solid rgba(20,87,217,.18); }.password-visibility.is-visible::after { content:""; position:absolute; width:21px; height:1.5px; background:currentColor; transform:rotate(-42deg); }
.caps-lock-warning { margin-top:1px; color:#9a5b00; font-size:9px; font-weight:750; }.caps-lock-warning[hidden] { display:none; }
.login-submit { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:50px; margin-top:3px; padding:0 17px 0 19px; color:white; background:linear-gradient(135deg,#1457d9,#0f449f); border:0; border-radius:10px; box-shadow:0 8px 20px rgba(20,87,217,.23); font:inherit; font-size:12px; font-weight:850; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }.login-submit svg { width:19px; height:19px; transition:transform .18s ease; }.login-submit:hover { filter:brightness(1.06); box-shadow:0 11px 24px rgba(20,87,217,.29); transform:translateY(-1px); }.login-submit:hover svg { transform:translateX(3px); }.login-submit:active { box-shadow:0 5px 12px rgba(20,87,217,.2); transform:translateY(0); }.login-submit:focus-visible { outline:3px solid rgba(20,87,217,.24); outline-offset:3px; }
.login-security-note { display:flex; align-items:flex-start; gap:10px; margin-top:25px; padding-top:19px; border-top:1px solid var(--line); }.login-security-note > svg { width:21px; height:21px; flex:0 0 auto; color:#4f6f9f; }.login-security-note p,.login-security-note strong,.login-security-note span { display:block; margin:0; }.login-security-note strong { font-size:9px; }.login-security-note span { margin-top:2px; color:var(--muted); font-size:9px; }.login-help { margin:17px 0 0; color:#8a94a5; font-size:9px; text-align:center; }
@media (max-width:920px) { .login-page { display:grid; place-items:center; padding:22px; background:linear-gradient(145deg,#0b1b36,#164e9d); }.login-shell { display:block; width:min(520px,100%); min-height:0; border-radius:20px; }.login-visual { display:none; }.login-access { min-height:0; padding:58px 40px 38px; }.login-mobile-brand { display:block; margin-bottom:32px; padding-bottom:22px; border-bottom:1px solid var(--line); }.login-mobile-brand img { display:block; width:220px; }.login-mobile-brand > span { display:block; margin-top:8px; color:var(--muted); font-size:9px; font-weight:850; letter-spacing:.16em; } }
@media (max-width:520px) { .login-page { align-items:start; padding:0; background:var(--white); }.login-shell { width:100%; border:0; border-radius:0; box-shadow:none; }.login-access { align-items:start; min-height:100vh; min-height:100dvh; padding:66px 22px 28px; }.login-access .login-theme-control { top:13px; right:13px; }.login-mobile-brand { margin-bottom:27px; }.login-mobile-brand img { width:190px; }.login-heading h2 { font-size:23px; }.login-capabilities { display:none; } }

/* Confirmação de encerramento de sessão ------------------------------- */
.logout-dialog { width:min(430px,calc(100vw - 30px)); max-width:none; padding:0; overflow:hidden; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:17px; box-shadow:0 28px 80px rgba(4,15,35,.3); }
.logout-dialog::backdrop { background:rgba(5,15,32,.58); backdrop-filter:blur(4px); }
.logout-dialog-content { display:grid; grid-template-columns:50px minmax(0,1fr); gap:14px; padding:22px; }
.logout-dialog-icon { display:grid; place-items:center; width:48px; height:48px; color:#b42318; background:#fef3f2; border:1px solid #fecdca; border-radius:13px; }.logout-dialog-icon svg { width:24px; height:24px; }
.logout-dialog-copy { min-width:0; }.logout-dialog-copy .eyebrow,.logout-dialog-copy h2,.logout-dialog-copy > p:last-child { margin:0; }.logout-dialog-copy h2 { margin-top:3px; font-size:19px; }.logout-dialog-copy > p:last-child { margin-top:7px; color:var(--muted); font-size:11px; line-height:1.55; }
.logout-dialog-actions { display:grid; grid-template-columns:1fr 1.15fr; grid-column:1/-1; gap:9px; margin-top:7px; padding-top:15px; border-top:1px solid var(--line); }
.logout-confirm-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 14px; color:white; background:#b42318; border:1px solid #b42318; border-radius:8px; font:inherit; font-size:11px; font-weight:800; cursor:pointer; transition:background .18s ease,border-color .18s ease,box-shadow .18s ease; }.logout-confirm-button:hover { background:#912018; border-color:#912018; box-shadow:0 6px 15px rgba(180,35,24,.2); }.logout-confirm-button:focus-visible { outline:3px solid rgba(180,35,24,.2); outline-offset:2px; }
@media (max-width:430px) { .logout-dialog-content { grid-template-columns:42px minmax(0,1fr); gap:12px; padding:18px; }.logout-dialog-icon { width:42px; height:42px; }.logout-dialog-actions { grid-template-columns:1fr; }.logout-dialog-actions .clear-button,.logout-confirm-button { width:100%; } }

/* Perfis de acesso e auditoria ---------------------------------------- */
.sidebar-section-label { margin:13px 12px 1px; color:#7187ab; font-size:8px; font-weight:850; letter-spacing:.15em; }
.attendance-hub-navigation { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
.admin-page { max-width:1320px; margin:0 auto; }.admin-page-header { align-items:center; }.admin-security-badge { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; color:#175cd3; background:#edf4ff; border:1px solid #c9daf7; border-radius:999px; font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }.admin-security-badge::before { content:""; width:7px; height:7px; background:#2e6dde; border-radius:50%; box-shadow:0 0 0 4px rgba(46,109,222,.1); }
.role-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:16px; }.role-summary-card { display:grid; grid-template-columns:38px 1fr; gap:10px; padding:15px; }.role-summary-card > span { display:grid; place-items:center; width:34px; height:34px; color:#175cd3; background:#edf4ff; border-radius:9px; font-size:10px; font-weight:850; }.role-summary-card h2,.role-summary-card p { margin:0; }.role-summary-card h2 { font-size:12px; }.role-summary-card p { margin-top:4px; color:var(--muted); font-size:9px; line-height:1.45; }
.access-users-panel { overflow:hidden; }.access-users-panel .panel-heading { border-bottom:1px solid var(--line); }.access-users-panel .panel-heading h2,.access-users-panel .panel-heading p { margin:0; }.access-users-panel .panel-heading p { margin-top:3px; font-size:10px; }.access-user-list { display:grid; }.access-user-row { display:grid; grid-template-columns:38px minmax(160px,1fr) minmax(120px,.45fr) minmax(300px,.9fr); align-items:center; gap:12px; min-height:70px; padding:11px 18px; border-top:1px solid var(--line); }.access-user-row:first-child { border-top:0; }.access-user-avatar { display:grid; place-items:center; width:36px; height:36px; color:white; background:linear-gradient(135deg,var(--blue),#123b86); border-radius:10px; font-size:12px; font-weight:850; }.access-user-identity { min-width:0; }.access-user-identity strong,.access-user-identity span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.access-user-identity strong { font-size:11px; }.access-user-identity span { margin-top:3px; color:var(--muted); font-size:9px; }.role-badge { justify-self:start; padding:6px 9px; color:#344054; background:#f2f4f7; border-radius:999px; font-size:8px; font-weight:850; }.role-badge.superuser { color:#175cd3; background:#edf4ff; }.access-locked { justify-self:end; color:var(--muted); font-size:9px; font-weight:750; }.access-role-form { display:grid; grid-template-columns:minmax(145px,1fr) auto; align-items:center; gap:8px; }.access-role-form select { min-height:39px; font-size:10px; }.access-role-form .primary-button { min-height:39px; padding:0 12px; font-size:9px; }.access-admin-note { padding:13px 18px; color:var(--muted); background:#fafbfd; border-top:1px solid var(--line); font-size:9px; line-height:1.5; }
.audit-filter-panel { margin-bottom:16px; overflow:visible; }.audit-filters { display:grid; grid-template-columns:minmax(240px,1.4fr) minmax(150px,.65fr) minmax(150px,.65fr) auto; align-items:end; gap:10px; padding:14px 16px; }.audit-filters label { min-width:0; }.audit-filters label > span { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:750; }.audit-filters input,.audit-filters select { width:100%; min-height:42px; font-size:11px; }.audit-list-panel { overflow:hidden; }.audit-table td { white-space:normal; vertical-align:middle; }.audit-table td strong,.audit-table td small,.audit-table td > span { display:block; }.audit-table td strong { font-size:10px; }.audit-table td small { margin-top:3px; color:var(--muted); font-size:8px; }.audit-category { display:inline-flex!important; width:max-content; padding:5px 8px; color:#344054; background:#f2f4f7; border-radius:999px; font-size:8px; font-weight:850; }.audit-category.category-access { color:#175cd3; background:#edf4ff; }.audit-category.category-attendance { color:#067647; background:#ecfdf3; }.audit-category.category-administration { color:#9a5b00; background:#fff7e6; }.audit-category.category-hiring { color:#6941c6; background:#f4f3ff; }
.read-only-layout { grid-template-columns:1fr; }.permission-denied-page { display:grid; place-items:center; min-height:calc(100vh - 76px); }.permission-denied-card { width:min(520px,100%); padding:35px; text-align:center; }.permission-denied-card > span { display:grid; place-items:center; width:58px; height:58px; margin:0 auto 18px; color:#b42318; background:#fef3f2; border-radius:16px; font-size:24px; font-weight:900; }.permission-denied-card h1 { font-size:24px; }.permission-denied-card > p:not(.eyebrow) { margin:10px auto 22px; color:var(--muted); font-size:12px; line-height:1.6; }.permission-denied-card .primary-button { display:inline-flex; align-items:center; text-decoration:none; }
@media (max-width:1100px) { .role-summary-grid { grid-template-columns:repeat(2,1fr); }.access-user-row { grid-template-columns:38px minmax(160px,1fr) minmax(120px,.5fr); }.access-role-form,.access-locked { grid-column:2/-1; justify-self:stretch; } }
@media (max-width:760px) { .admin-page-header { align-items:flex-start; }.role-summary-grid { grid-template-columns:1fr 1fr; }.audit-filters { grid-template-columns:1fr 1fr; }.audit-filters .wide,.audit-filters .filter-actions { grid-column:1/-1; }.audit-table,.audit-table tbody { display:block; }.audit-table thead { display:none; }.audit-table tr { display:block; margin:8px; overflow:hidden; border:1px solid var(--line); border-radius:9px; }.audit-table td { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; padding:9px 11px; }.audit-table td::before { content:attr(data-label); color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; } }
@media (max-width:520px) { .role-summary-grid { grid-template-columns:1fr; }.access-user-row { grid-template-columns:34px minmax(0,1fr); padding:12px 14px; }.role-badge { grid-column:2; }.access-role-form,.access-locked { grid-column:1/-1; }.access-role-form { grid-template-columns:1fr; }.audit-filters { grid-template-columns:1fr; }.audit-filters .wide,.audit-filters .filter-actions { grid-column:auto; }.audit-table td { grid-template-columns:90px minmax(0,1fr); }.permission-denied-card { padding:25px 18px; } }

/* Gestão integral de colaboradores ------------------------------------ */
.employee-management-actions,.management-hero-actions,.employee-record-action-buttons { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }.employee-management-actions .primary-button,.management-hero-actions .primary-button { display:inline-flex; align-items:center; text-decoration:none; }
.employee-management-page,.distribution-page,.mapping-page,.publication-page { max-width:1450px; margin:0 auto; }.management-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; padding:23px 25px; background:linear-gradient(135deg,#fff,#f7faff); border:1px solid #dbe4f1; border-radius:15px; box-shadow:0 8px 26px rgba(25,45,80,.06); }.management-hero h1,.management-hero p { margin:0; }.management-hero h1 { margin-top:4px; font-size:27px; }.management-hero div > p:last-child { margin-top:6px; color:var(--muted); font-size:11px; }.management-hero-badge { flex:0 0 auto; padding:8px 11px; color:#175cd3; background:#eaf2ff; border:1px solid #cbdcfa; border-radius:999px; font-size:9px; font-weight:850; text-transform:uppercase; }.management-hero-badge.is-warning { color:#9a5b00; background:#fff7e6; border-color:#f3d7a4; }
.employee-editor { display:grid; gap:14px; }.editor-card { overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:0 5px 18px rgba(25,45,80,.045); }.editor-card > header { display:flex; align-items:center; gap:12px; padding:16px 19px; background:#fafcff; border-bottom:1px solid var(--line); }.editor-card > header > span { display:grid; place-items:center; width:32px; height:32px; color:#175cd3; background:#eaf2ff; border-radius:9px; font-size:9px; font-weight:900; }.editor-card h2,.editor-card p { margin:0; }.editor-card h2 { font-size:14px; }.editor-card p { margin-top:3px; color:var(--muted); font-size:9px; }.editor-grid { display:grid; gap:14px; padding:18px 19px 20px; }.editor-grid.two-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }.editor-grid.three-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }.editor-grid label { min-width:0; }.editor-grid.three-columns label.wide { grid-column:span 2; }.editor-grid label.full-width { grid-column:1/-1; }.editor-grid label > label,.editor-grid label > span:first-child { display:block; margin-bottom:6px; color:#4f5e73; font-size:10px; font-weight:800; }.editor-grid input,.editor-grid select { min-height:44px; }.editor-grid textarea { width:100%; min-height:96px; padding:11px 12px; color:var(--ink); background:var(--white); border:1px solid #ccd4e1; border-radius:8px; font:inherit; resize:vertical; }.editor-grid input:focus,.editor-grid select:focus,.editor-grid textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(20,87,217,.12); outline:none; }.editor-grid .errorlist,.form-error-summary .errorlist { margin:6px 0 0; padding:0; color:#b42318; font-size:9px; list-style:none; }.form-error-summary { padding:12px 15px; color:#b42318; background:#fff3f2; border:1px solid #f5c4c0; border-radius:10px; }.editor-actions { position:sticky; bottom:10px; z-index:5; display:flex; justify-content:flex-end; gap:9px; padding:13px 15px; background:rgba(255,255,255,.94); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 28px rgba(13,31,61,.13); backdrop-filter:blur(12px); }
.employee-record-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:-8px 0 20px; padding:14px 16px; background:#f8fbff; border:1px solid #dce7f5; border-radius:12px; }.employee-record-actions > div:first-child strong,.employee-record-actions > div:first-child span { display:block; }.employee-record-actions > div:first-child strong { font-size:11px; }.employee-record-actions > div:first-child span { margin-top:3px; color:var(--muted); font-size:9px; }.employee-record-action-buttons form { margin:0; }.danger-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 14px; color:#b42318; background:#fff; border:1px solid #e8aaa5; border-radius:8px; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }.danger-button:hover { color:#fff; background:#b42318; border-color:#b42318; }
.employee-edit-action { position:relative; display:grid; grid-template-columns:34px auto 16px; align-items:center; gap:9px; min-height:48px; padding:6px 11px 6px 7px; overflow:hidden; color:#fff; background:linear-gradient(135deg,#245fd3 0%,#3d43d8 100%); border:1px solid rgba(31,71,187,.62); border-radius:11px; box-shadow:0 7px 18px rgba(34,72,190,.2); text-decoration:none; transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.employee-edit-action::after { content:""; position:absolute; inset:-70% auto -70% -30%; width:35%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent); transform:rotate(18deg); transition:left .38s ease; pointer-events:none; }
.employee-edit-action:hover { color:#fff; filter:saturate(1.08); box-shadow:0 10px 24px rgba(34,72,190,.29); transform:translateY(-2px); }
.employee-edit-action:hover::after { left:115%; }
.employee-edit-action:active { transform:translateY(0); box-shadow:0 5px 13px rgba(34,72,190,.22); }
.employee-edit-action:focus-visible { outline:3px solid rgba(36,95,211,.28); outline-offset:3px; }
.employee-edit-action-icon { display:grid; place-items:center; width:34px; height:34px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.2); border-radius:9px; }
.employee-edit-action-copy { min-width:0; line-height:1.05; }
.employee-edit-action-copy small,.employee-edit-action-copy strong { display:block; }
.employee-edit-action-copy small { margin-bottom:4px; color:rgba(255,255,255,.72); font-size:7px; font-weight:850; letter-spacing:.12em; }
.employee-edit-action-copy strong { color:#fff; font-size:11px; font-weight:850; white-space:nowrap; }
.employee-edit-action-arrow { opacity:.72; transition:transform .18s ease,opacity .18s ease; }
.employee-edit-action:hover .employee-edit-action-arrow { opacity:1; transform:translateX(2px); }
.employee-amendment-action { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:9px; min-height:48px; padding:6px 12px 6px 7px; color:#8a5300; background:linear-gradient(135deg,#fff9eb,#fff1cf); border:1px solid #e9c675; border-radius:11px; text-decoration:none; box-shadow:0 6px 16px rgba(157,99,8,.1); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.employee-amendment-action>span:first-child { display:grid; place-items:center; width:34px; height:34px; color:#a56808; background:#fff; border:1px solid #edd69f; border-radius:9px; }
.employee-amendment-action>span:last-child { min-width:0; }.employee-amendment-action small,.employee-amendment-action strong { display:block; }.employee-amendment-action small { margin-bottom:3px; color:#9a690e; font-size:7px; font-weight:850; letter-spacing:.08em; }.employee-amendment-action strong { color:#754700; font-size:10px; white-space:nowrap; }
.employee-amendment-action:hover { color:#754700; border-color:#d5a94d; box-shadow:0 9px 21px rgba(157,99,8,.16); transform:translateY(-2px); }.employee-amendment-action:focus-visible { outline:3px solid rgba(198,134,20,.25); outline-offset:3px; }
:root[data-theme="dark"] .employee-amendment-action { color:#ffd58e; background:linear-gradient(135deg,#3a2c17,#332516); border-color:#745526; box-shadow:0 8px 20px rgba(0,0,0,.23); }:root[data-theme="dark"] .employee-amendment-action>span:first-child { color:#ffd58e; background:#4b3519; border-color:#745526; }:root[data-theme="dark"] .employee-amendment-action small,:root[data-theme="dark"] .employee-amendment-action strong { color:#ffd58e; }
.document-form-grid [data-expiry-field] { transition:opacity .18s ease; }
.document-form-grid [data-expiry-field].is-disabled { opacity:.48; }
.action-dialog { width:min(500px,calc(100vw - 28px)); padding:0; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 30px 80px rgba(6,20,44,.32); }.action-dialog::backdrop { background:rgba(7,17,35,.58); backdrop-filter:blur(5px); }.action-dialog form { padding:24px; }.action-dialog h2,.action-dialog p { margin:0; }.action-dialog h2 { margin:5px 0 8px; font-size:21px; }.action-dialog p:not(.eyebrow) { color:var(--muted); font-size:11px; line-height:1.55; }.action-dialog-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:14px; color:#175cd3; background:#eaf2ff; border-radius:12px; font-size:18px; font-weight:900; }.action-dialog-icon.danger { color:#b42318; background:#fff0ef; }.action-dialog label { display:block; margin-top:17px; }.action-dialog label span { display:block; margin-bottom:6px; color:#4f5e73; font-size:10px; font-weight:800; }.action-dialog textarea { width:100%; min-height:90px; padding:10px 11px; color:var(--ink); background:var(--white); border:1px solid #ccd4e1; border-radius:8px; resize:vertical; }.action-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; padding-top:15px; border-top:1px solid var(--line); }
.distribution-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }.distribution-summary article { position:relative; padding:18px 19px 17px; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:0 5px 16px rgba(25,45,80,.035); }.distribution-summary article::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#2e6dde; }.distribution-summary article:nth-child(2)::before { background:#12a762; }.distribution-summary article:nth-child(3)::before { background:#7b8ba4; }.distribution-summary span,.distribution-summary small { display:block; color:var(--muted); font-size:10px; }.distribution-summary span { font-weight:750; }.distribution-summary strong { display:block; margin:7px 0 3px; font-size:28px; line-height:1.05; }.distribution-summary article.is-warning { border-color:#efcf98; background:#fffaf0; }.distribution-summary article.is-warning::before { background:#d99211; }.distribution-summary article.is-warning strong { color:#9a5b00; }.distribution-filter-panel { margin-bottom:14px; overflow:visible; border-color:#d7e1ef; box-shadow:0 7px 22px rgba(25,45,80,.055); }.distribution-filters { display:grid; grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(130px,1fr)) auto auto; align-items:end; gap:10px; padding:16px; }.distribution-filters label > span { display:block; margin-bottom:6px; color:#526071; font-size:10px; font-weight:800; }.distribution-publish-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; background:linear-gradient(100deg,#f5f9ff,#eef5ff); border-top:1px solid #d7e3f3; }.distribution-publish-bar strong,.distribution-publish-bar small { display:block; }.distribution-publish-bar strong { font-size:12px; }.distribution-publish-bar small { margin-top:3px; color:var(--muted); font-size:9px; }.distribution-publish-bar .primary-button { display:inline-flex; align-items:center; flex:0 0 auto; text-decoration:none; box-shadow:0 5px 13px rgba(20,87,217,.17); }.primary-button.is-disabled { opacity:.8; }.distribution-table-panel { overflow:hidden; border-color:#d8e2ef; box-shadow:0 7px 22px rgba(25,45,80,.05); }.distribution-table thead th { position:sticky; top:0; z-index:2; }.distribution-table td { white-space:normal; }.distribution-table tbody tr { transition:background .16s ease; }.distribution-table tbody tr:hover { background:#f8faff; }.mapping-pending { display:inline-flex; margin-left:6px; padding:3px 6px; color:#9a5b00; background:#fff4db; border-radius:999px; font-size:7px; font-weight:850; text-transform:uppercase; }
.mapping-panel { overflow:hidden; }.mapping-search { display:grid; grid-template-columns:minmax(260px,1fr) auto auto; gap:9px; padding:14px 16px; border-bottom:1px solid var(--line); }.mapping-list { display:grid; }.mapping-row { display:grid; grid-template-columns:minmax(220px,1fr) minmax(240px,1fr) auto; align-items:end; gap:16px; padding:14px 17px; border-top:1px solid var(--line); }.mapping-row:first-child { border-top:0; }.mapping-row.is-pending { background:#fffdf8; }.mapping-row > div:first-of-type span,.mapping-row label span { display:block; margin-bottom:5px; color:var(--muted); font-size:8px; font-weight:800; text-transform:uppercase; }.mapping-row > div:first-of-type strong { display:block; font-size:10px; }.mapping-row input { min-height:40px; }.mapping-state { display:flex; align-items:center; justify-content:flex-end; gap:8px; }.mapping-state .primary-button { min-height:40px; }.publication-table td { white-space:normal; }.publication-type { display:inline-flex; padding:5px 8px; color:#175cd3; background:#edf4ff; border-radius:999px; font-size:8px; font-weight:850; }.publication-type.distribution { color:#067647; background:#ecfdf3; }
.editor-grid.two-columns label.wide { grid-column:1 / -1; }
.distribution-sticky-controls .distribution-filter-panel { margin-bottom:0; }
.distribution-advanced-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.distribution-resolve-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.distribution-publish-bar { flex-wrap:wrap; }
.distribution-export-feedback { flex:1 0 100%; margin:0; cursor:default; }
.distribution-export-feedback[data-feedback-state="error"] { cursor:pointer; }
.is-exporting { opacity:.72; pointer-events:none; }
.distribution-table-panel .employee-table-wrap { overflow-x:hidden; }
.distribution-employee-table .col-number { width:9%; }
.distribution-employee-table .col-name { width:21%; }
.distribution-employee-table .col-category { width:20%; }
.distribution-employee-table .col-team { width:13%; }
.distribution-employee-table .col-department { width:17%; }
.distribution-employee-table .col-cost-center { width:7%; }
.distribution-employee-table .col-action { width:13%; }

/* UX transversal: confirmações, foco, estados ocupados e navegação longa. */
.global-confirm-dialog { width:min(92vw,470px); padding:0; color:var(--ink); background:transparent; border:0; overflow:visible; }
.global-confirm-dialog::backdrop { background:rgba(7,18,34,.5); backdrop-filter:blur(7px); animation:ux-backdrop-in .18s ease both; }
.global-confirm-content { display:grid; grid-template-columns:54px minmax(0,1fr); gap:16px; padding:23px; background:var(--white); border:1px solid rgba(152,169,192,.45); border-radius:17px; box-shadow:0 28px 80px rgba(8,28,58,.28); animation:ux-dialog-in .2s cubic-bezier(.2,.8,.2,1) both; }
.global-confirm-icon { display:grid; place-items:center; width:52px; height:52px; color:#155bd7; background:#edf4ff; border:1px solid #d8e7ff; border-radius:14px; }
.global-confirm-icon svg { width:25px; height:25px; }
.global-confirm-copy { min-width:0; }
.global-confirm-copy .eyebrow { margin:1px 0 7px; }
.global-confirm-copy h2 { margin:0; font-size:20px; line-height:1.2; }
.global-confirm-copy > p:last-child { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.global-confirm-actions { display:flex; grid-column:1 / -1; justify-content:flex-end; gap:9px; margin-top:4px; }
.global-confirm-button { min-height:42px; padding:0 17px; color:white; background:#155bd7; border:1px solid #155bd7; border-radius:9px; font-weight:800; cursor:pointer; }
.global-confirm-button:hover { background:#0f49b1; border-color:#0f49b1; }
.global-confirm-dialog.is-danger .global-confirm-icon { color:#b42318; background:#fff1f0; border-color:#ffd5d1; }
.global-confirm-dialog.is-danger .global-confirm-button { background:#c43227; border-color:#c43227; }
.global-confirm-dialog.is-danger .global-confirm-button:hover { background:#a92920; border-color:#a92920; }
.back-to-top { position:fixed; right:24px; bottom:24px; z-index:80; display:grid; place-items:center; width:44px; height:44px; color:white; background:#155bd7; border:1px solid rgba(255,255,255,.32); border-radius:13px; box-shadow:0 10px 28px rgba(12,63,151,.3); opacity:0; visibility:hidden; transform:translateY(12px); transition:opacity .18s ease,transform .18s ease,visibility .18s; cursor:pointer; }
.back-to-top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }

/* Controlo diário com conciliação da cantina ------------------------ */
.attendance-command-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 2px 14px; }
.attendance-command-header h2,.attendance-command-header p { margin:0; }
.attendance-command-header h2 { margin-top:4px; font-size:22px; letter-spacing:-.02em; }
.attendance-command-header > div:first-child > p:last-child { max-width:750px; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.5; }
.attendance-command-state { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; }
.attendance-command-actions { display:flex; align-items:flex-end; justify-content:flex-end; gap:12px; }
.canteen-upload-primary { display:grid; grid-template-columns:36px auto; align-items:center; gap:9px; min-height:50px; padding:6px 14px 6px 7px; color:#fff; background:linear-gradient(135deg,#155bd7,#2746c9); border:1px solid #164db7; border-radius:11px; box-shadow:0 8px 20px rgba(23,77,183,.22); font:inherit; text-align:left; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.canteen-upload-primary:hover { filter:saturate(1.08); box-shadow:0 11px 25px rgba(23,77,183,.3); transform:translateY(-1px); }.canteen-upload-primary:active { transform:translateY(0); }
.canteen-upload-primary > span:first-child { display:grid; place-items:center; width:36px; height:36px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.2); border-radius:9px; font-size:18px; font-weight:900; }.canteen-upload-primary small,.canteen-upload-primary strong { display:block; color:#fff; }.canteen-upload-primary small { margin-bottom:3px; opacity:.72; font-size:7px; font-weight:850; letter-spacing:.09em; }.canteen-upload-primary strong { font-size:10px; white-space:nowrap; }
.cycle-state { display:inline-flex; align-items:center; min-height:31px; padding:0 11px; border-radius:999px; font-size:9px; font-weight:850; }
.cycle-state.is-pending { color:#9a5b00; background:#fff7e6; border:1px solid #f3d7a4; }
.cycle-state.is-complete { color:#067647; background:#ecfdf3; border:1px solid #abefc6; }
.canteen-cycle { margin-bottom:16px; overflow:hidden; border-color:#d8e3f2; box-shadow:0 8px 25px rgba(26,49,83,.06); }
.duty-teams { margin-bottom:16px; overflow:hidden; border-color:#d8e3f2; box-shadow:0 8px 25px rgba(26,49,83,.06); }
.duty-teams-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 18px 14px; background:linear-gradient(110deg,#fbfdff,#f4f8fd); border-bottom:1px solid #dde6f2; }
.duty-teams-heading { display:flex; align-items:center; min-width:0; gap:13px; }
.duty-teams-heading h2,.duty-teams-heading p { margin:0; }
.duty-teams-heading h2 { margin-top:2px; font-size:16px; }
.duty-teams-heading div > p:last-child { margin-top:3px; color:var(--muted); font-size:10px; }
.duty-teams-icon { display:grid; place-items:center; width:43px; height:43px; flex:0 0 auto; color:#1d5fd0; background:#e8f1ff; border:1px solid #d3e2fb; border-radius:12px; }
.duty-teams-icon svg { width:22px; height:22px; }
.duty-teams-count { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; padding:7px 10px; color:#53647c; background:#fff; border:1px solid #dce5f1; border-radius:999px; font-size:9px; font-weight:750; }
.duty-teams-count strong { color:#174f9f; font-size:13px; }
.duty-team-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(225px,1fr)); gap:10px; padding:12px; }
.duty-team-card { --duty-accent:#2468d8; --duty-soft:#edf4ff; position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:86px; padding:12px 13px; overflow:hidden; background:linear-gradient(135deg,var(--duty-soft),#fff 68%); border:1px solid color-mix(in srgb,var(--duty-accent) 22%,#dce5f0); border-radius:13px; }
.duty-team-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--duty-accent); }
.duty-team-card.tone-night { --duty-accent:#6b4fd3; --duty-soft:#f2efff; }
.duty-team-card.tone-support { --duty-accent:#07887d; --duty-soft:#eaf9f6; }
.duty-team-card.tone-regular { --duty-accent:#607089; --duty-soft:#f1f4f8; }
.duty-team-card.tone-operation { --duty-accent:#d17619; --duty-soft:#fff5e8; }
.duty-team-card.tone-special { --duty-accent:#be6b17; --duty-soft:#fff4e7; }
.duty-team-badge { display:grid; place-items:center; width:40px; height:40px; color:#fff; background:var(--duty-accent); border-radius:11px; box-shadow:0 5px 12px color-mix(in srgb,var(--duty-accent) 25%,transparent); font-size:13px; font-weight:850; letter-spacing:.03em; }
.duty-team-copy { min-width:0; }
.duty-team-copy > span { display:block; overflow:hidden; color:var(--duty-accent); font-size:8px; font-weight:850; letter-spacing:.065em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.duty-team-copy strong { display:block; margin-top:3px; overflow:hidden; color:var(--text); font-size:13px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.duty-team-copy small { display:block; margin-top:4px; overflow:hidden; color:var(--muted); font-size:8px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.duty-team-presence { display:flex; flex-direction:column; align-items:flex-end; min-width:55px; }
.duty-team-presence strong { color:var(--text); font-size:13px; font-variant-numeric:tabular-nums; }
.duty-team-presence span { margin-top:1px; color:var(--muted); font-size:8px; }
.duty-team-presence i { display:block; width:48px; height:3px; margin-top:6px; overflow:hidden; background:#dfe6ef; border-radius:999px; }
.duty-team-presence i b { display:block; width:var(--duty-coverage); height:100%; background:var(--duty-accent); border-radius:inherit; }
.duty-teams-empty { grid-column:1/-1; display:flex; align-items:center; justify-content:center; flex-direction:column; min-height:78px; color:var(--muted); text-align:center; }
.duty-teams-empty strong { color:var(--text); font-size:12px; }.duty-teams-empty span { margin-top:3px; font-size:9px; }
.canteen-cycle-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:18px 20px 15px; background:linear-gradient(110deg,#fbfdff,#f3f7fd); border-bottom:1px solid #dde6f2; }
.canteen-cycle-title { display:flex; align-items:center; min-width:0; gap:13px; }
.canteen-cycle-title h2,.canteen-cycle-title p { margin:0; }
.canteen-cycle-title h2 { margin-top:3px; font-size:16px; }
.canteen-cycle-title div > p:last-child { margin-top:4px; color:var(--muted); font-size:10px; }
.canteen-cycle-icon { display:grid; place-items:center; width:43px; height:43px; flex:0 0 auto; color:#1b5fd1; background:#e8f1ff; border:1px solid #d3e2fb; border-radius:12px; }
.canteen-cycle-icon svg { width:23px; height:23px; }
.cycle-progress { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.cycle-progress > div { text-align:right; }.cycle-progress strong,.cycle-progress span { display:block; }.cycle-progress strong { font-size:18px; line-height:1; }.cycle-progress > div span { margin-top:3px; color:var(--muted); font-size:8px; font-weight:750; text-transform:uppercase; }
.cycle-progress-track { width:105px; height:7px; overflow:hidden; background:#dfe7f2; border-radius:999px; }
.cycle-progress-track i { display:block; width:var(--cycle-progress); height:100%; background:linear-gradient(90deg,#1e62d5,#16a66b); border-radius:inherit; transition:width .35s ease; }
.cycle-progress > button { min-height:34px; padding:0 11px; color:#174ea6; background:#fff; border:1px solid #c8d8ef; border-radius:8px; font:inherit; font-size:8px; font-weight:850; cursor:pointer; }.cycle-progress > button:hover { color:#fff; background:#1c5fd0; border-color:#1c5fd0; }
.canteen-slot-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:14px 16px; }
.canteen-slot { position:relative; display:grid; grid-template-columns:31px minmax(0,1fr); align-items:center; gap:9px; min-height:83px; padding:12px 10px; background:#fafbfd; border:1px solid #e0e6ef; border-radius:11px; }
.canteen-slot.is-received { background:#f7fdf9; border-color:#c6ead4; }.canteen-slot.is-missing { border-style:dashed; }
.canteen-slot-mark { display:grid; place-items:center; width:30px; height:30px; color:#75839a; background:#edf0f5; border-radius:9px; font-size:10px; font-weight:900; }
.canteen-slot.is-received .canteen-slot-mark { color:#067647; background:#dff7e8; }
.canteen-slot-copy { min-width:0; padding-right:2px; }.canteen-slot-copy > span,.canteen-slot-copy strong,.canteen-slot-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.canteen-slot-copy > span { color:var(--muted); font-size:8px; font-weight:800; text-transform:uppercase; }.canteen-slot-copy strong { margin-top:3px; font-size:10px; }.canteen-slot-copy small { margin-top:3px; color:var(--muted); font-size:8px; }
.canteen-slot-status { position:absolute; top:7px; right:8px; color:#79869a; font-size:7px; font-weight:850; text-transform:uppercase; }
.canteen-slot.is-received .canteen-slot-status { color:#07814b; }
.canteen-slot-remove { position:absolute; right:6px; bottom:5px; margin:0; }.canteen-slot-remove button { display:grid; place-items:center; width:23px; height:23px; padding:0; color:#98a2b3; background:transparent; border:0; border-radius:6px; font-size:16px; cursor:pointer; }.canteen-slot-remove button:hover { color:#b42318; background:#fff0ef; }
.canteen-cycle-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:46px; padding:9px 17px; color:var(--muted); background:#fafbfd; border-top:1px solid #e2e8f0; }.canteen-cycle-footer > div { display:flex; align-items:center; gap:12px; flex:0 0 auto; }.canteen-cycle-footer p { margin:0; font-size:8px; line-height:1.45; text-align:right; }.cycle-legend { display:inline-flex; align-items:center; gap:5px; font-size:8px; font-weight:750; }.cycle-legend i { width:7px; height:7px; border-radius:50%; }.cycle-legend.received i { background:#12a762; }.cycle-legend.missing i { background:#aab3c1; }
.canteen-import { border-top:1px solid #e2e8f0; }.canteen-import > summary { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; min-height:50px; padding:10px 18px; cursor:pointer; list-style:none; }.canteen-import > summary::-webkit-details-marker { display:none; }.canteen-import > summary span { font-size:10px; font-weight:850; }.canteen-import > summary small { color:var(--muted); font-size:9px; }.canteen-import > summary b { display:grid; place-items:center; width:26px; height:26px; color:#1d5fd1; background:#edf4ff; border-radius:7px; font-size:16px; transition:transform .18s ease; }.canteen-import[open] > summary b { transform:rotate(45deg); }
.canteen-import-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,.45fr) auto; align-items:center; gap:12px; padding:0 16px 16px; }
.canteen-dropzone { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:72px; padding:11px 12px; color:var(--ink); background:#f8fbff; border:1px dashed #9db7df; border-radius:11px; cursor:pointer; transition:background .18s ease,border-color .18s ease,box-shadow .18s ease; }.canteen-dropzone:hover,.canteen-dropzone.is-dragging { background:#eef5ff; border-color:#2765cf; box-shadow:0 0 0 3px rgba(36,95,211,.1); }.canteen-dropzone.has-file { background:#f2fcf6; border-color:#57b981; }.canteen-dropzone.has-error { background:#fff5f4; border-color:#e97970; }
.canteen-dropzone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }.canteen-dropzone-icon { display:grid; place-items:center; width:36px; height:36px; color:#1d5fd1; background:#e5efff; border-radius:9px; font-size:18px; font-weight:900; }.canteen-dropzone span:nth-of-type(2) { min-width:0; }.canteen-dropzone strong,.canteen-dropzone small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.canteen-dropzone strong { font-size:10px; }.canteen-dropzone small { margin-top:3px; color:var(--muted); font-size:8px; }.canteen-dropzone > b { padding:8px 10px; color:#174ea6; background:#fff; border:1px solid #c9d9ef; border-radius:8px; font-size:8px; white-space:nowrap; }
.canteen-import-guidance span { display:block; color:#344054; font-size:9px; font-weight:850; }.canteen-import-guidance p { margin:3px 0 0; color:var(--muted); font-size:8px; line-height:1.5; }.canteen-import-form > .primary-button { white-space:nowrap; }
.attendance-kpi.evidence::before { background:#2781d9; }
.attendance-control-page .attendance-filters { grid-template-columns:minmax(190px,1.35fr) minmax(145px,.7fr) minmax(165px,.8fr) minmax(170px,.85fr) auto; gap:10px; }
.attendance-control-page .attendance-workspace { grid-template-columns:minmax(0,1fr) 315px; }
.attendance-panel-heading > div > p:last-child:not(.eyebrow) { margin-top:4px; color:var(--muted); font-size:9px; }
.attendance-evidence-table { min-width:1040px; }
.attendance-row.has-canteen-conflict { box-shadow:inset 3px 0 #f79009; }
.canteen-evidence-badge { display:inline-flex; align-items:center; gap:7px; min-width:92px; padding:5px 7px; color:#067647; background:#ecfdf3; border:1px solid #c5efd6; border-radius:9px; }.canteen-evidence-badge > b { display:grid; place-items:center; width:19px; height:19px; flex:0 0 auto; color:white; background:#12a762; border-radius:6px; font-size:9px; }.canteen-evidence-badge span,.canteen-evidence-badge small { display:block; }.canteen-evidence-badge span { font-size:9px; font-weight:850; }.canteen-evidence-badge small { margin-top:1px; color:#438064; font-size:7px; font-weight:700; }.canteen-evidence-badge.is-conflict { color:#8a5300; background:#fff8e8; border-color:#f0d397; }.canteen-evidence-badge.is-conflict > b { background:#e28a08; }.canteen-evidence-badge.is-conflict small { color:#93691f; }.canteen-no-evidence { color:#a0a9b7; }
.attendance-insights { position:sticky; top:calc(var(--attendance-viewport-top) + var(--attendance-hub-height) + 14px); display:grid; gap:14px; }
.attendance-insights .team-coverage { position:static; top:auto; }
.reconciliation-panel { overflow:hidden; }.reconciliation-heading { padding:17px 17px 13px; background:linear-gradient(135deg,#fbfdff,#f5f8fd); border-bottom:1px solid var(--line); }.reconciliation-heading h2,.reconciliation-heading p { margin:0; }.reconciliation-heading h2 { margin-top:3px; font-size:14px; }.reconciliation-heading > p:last-child { margin-top:4px; color:var(--muted); font-size:9px; line-height:1.45; }
.reconciliation-list { display:grid; }.reconciliation-list > a,.reconciliation-list > div { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:9px; min-height:55px; padding:9px 15px; color:var(--ink); border-top:1px solid var(--line); text-decoration:none; }.reconciliation-list > :first-child { border-top:0; }.reconciliation-list > a:hover { background:#f7faff; }.reconciliation-list span strong,.reconciliation-list span small { display:block; }.reconciliation-list span strong { font-size:15px; line-height:1; }.reconciliation-list span small { margin-top:3px; color:var(--muted); font-size:8px; }.reconciliation-list > * > b { color:#8a98aa; font-size:12px; }.reconciliation-dot { width:8px; height:8px; border-radius:50%; }.reconciliation-dot.success { background:#12a762; }.reconciliation-dot.neutral { background:#98a2b3; }.reconciliation-dot.warning { background:#f79009; }.reconciliation-dot.danger { background:#e5483d; }.reconciliation-dot.info { background:#2781d9; }
:root[data-theme="dark"] .canteen-cycle-header,:root[data-theme="dark"] .reconciliation-heading { background:linear-gradient(110deg,#141e30,#111a29); border-color:#2b3a50; }
:root[data-theme="dark"] .duty-teams { border-color:#2a3b52; }:root[data-theme="dark"] .duty-teams-header { background:linear-gradient(110deg,#141e30,#111a29); border-color:#2b3a50; }:root[data-theme="dark"] .duty-teams-count { color:#aebbd0; background:#111b2b; border-color:#314158; }:root[data-theme="dark"] .duty-teams-count strong { color:#8eb9ff; }:root[data-theme="dark"] .duty-team-card { background:linear-gradient(135deg,color-mix(in srgb,var(--duty-accent) 13%,#111b2b),#111b2b 72%); border-color:color-mix(in srgb,var(--duty-accent) 30%,#2d3c52); }:root[data-theme="dark"] .duty-team-presence i { background:#2b394d; }
:root[data-theme="dark"] .canteen-cycle { border-color:#2a3b52; }:root[data-theme="dark"] .canteen-slot { background:#111b2b; border-color:#304057; }:root[data-theme="dark"] .canteen-slot.is-received { background:#10261e; border-color:#2b5a46; }:root[data-theme="dark"] .canteen-slot-mark { color:#b9c4d4; background:#263348; }:root[data-theme="dark"] .canteen-slot.is-received .canteen-slot-mark { color:#8ce3b2; background:#183d2d; }
:root[data-theme="dark"] .canteen-import { border-color:#2b3a50; }:root[data-theme="dark"] .canteen-dropzone { background:#111d2e; border-color:#48658c; }:root[data-theme="dark"] .canteen-dropzone:hover,:root[data-theme="dark"] .canteen-dropzone.is-dragging { background:#17263c; }:root[data-theme="dark"] .canteen-dropzone.has-file { background:#10271e; border-color:#3d9165; }:root[data-theme="dark"] .canteen-dropzone > b { color:#a8c8ff; background:#18263a; border-color:#3a4c66; }:root[data-theme="dark"] .canteen-import-guidance span { color:#d6deea; }
:root[data-theme="dark"] .canteen-evidence-badge { color:#8ee4b4; background:#10271e; border-color:#28583f; }:root[data-theme="dark"] .canteen-evidence-badge small { color:#79bd98; }:root[data-theme="dark"] .canteen-evidence-badge.is-conflict { color:#ffd58e; background:#332617; border-color:#705226; }:root[data-theme="dark"] .canteen-evidence-badge.is-conflict small { color:#d7aa5c; }

.canteen-upload-dialog { width:min(760px,calc(100vw - 30px)); max-height:calc(100dvh - 30px); padding:0; overflow:auto; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:0 32px 90px rgba(7,20,43,.35); }
.canteen-upload-dialog::backdrop { background:rgba(6,17,35,.58); backdrop-filter:blur(7px); animation:ux-backdrop-in .18s ease both; }
.canteen-upload-form { min-width:0; }.canteen-upload-header { display:grid; grid-template-columns:46px minmax(0,1fr) 36px; align-items:start; gap:13px; padding:21px 22px 17px; background:linear-gradient(125deg,#f8fbff,#eef4fe); border-bottom:1px solid #dce6f4; }.canteen-upload-header-icon { display:grid; place-items:center; width:46px; height:46px; color:#155bd7; background:#e4efff; border:1px solid #cddff9; border-radius:13px; font-size:22px; font-weight:900; }.canteen-upload-header h2,.canteen-upload-header p { margin:0; }.canteen-upload-header h2 { margin-top:3px; font-size:19px; letter-spacing:-.02em; }.canteen-upload-header div > p:last-child { max-width:560px; margin-top:5px; color:var(--muted); font-size:10px; line-height:1.5; }
.canteen-upload-context { display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border-bottom:1px solid var(--line); }.canteen-upload-context div { min-width:0; padding:12px 18px; border-left:1px solid var(--line); }.canteen-upload-context div:first-child { border-left:0; }.canteen-upload-context span,.canteen-upload-context strong { display:block; }.canteen-upload-context span { color:var(--muted); font-size:8px; font-weight:750; text-transform:uppercase; }.canteen-upload-context strong { margin-top:4px; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.canteen-upload-body { display:grid; gap:15px; padding:20px 22px; }.canteen-upload-dialog .canteen-dropzone { min-height:100px; padding:16px; }.canteen-upload-dialog .canteen-dropzone-icon { width:44px; height:44px; font-size:21px; }.canteen-upload-dialog .canteen-dropzone strong { font-size:12px; }.canteen-upload-dialog .canteen-dropzone small { margin-top:4px; font-size:9px; }.canteen-upload-dialog .canteen-dropzone > b { padding:10px 12px; font-size:9px; }
.canteen-upload-rules { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }.canteen-upload-rules article { display:grid; grid-template-columns:25px minmax(0,1fr); gap:8px; align-items:start; padding:11px; background:#f8fafc; border:1px solid #e3e9f1; border-radius:10px; }.canteen-upload-rules article > b { display:grid; place-items:center; width:24px; height:24px; color:#175cd3; background:#eaf2ff; border-radius:7px; font-size:9px; }.canteen-upload-rules strong,.canteen-upload-rules small { display:block; }.canteen-upload-rules strong { font-size:9px; }.canteen-upload-rules small { margin-top:3px; color:var(--muted); font-size:8px; line-height:1.4; }
.canteen-upload-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; padding:14px 22px; background:#fafbfd; border-top:1px solid var(--line); }.canteen-upload-actions > span { margin-right:auto; color:var(--muted); font-size:8px; }.canteen-upload-actions button { min-width:120px; }.canteen-upload-actions .primary-button:disabled { opacity:.48; cursor:not-allowed; box-shadow:none; }
.attendance-control-page .canteen-result-filters { grid-template-columns:minmax(250px,1.45fr) minmax(190px,.8fr) minmax(200px,.9fr) auto; }
.canteen-results-workspace .attendance-evidence-table { min-width:1160px; }
.canteen-results-workspace .attendance-evidence-table th:nth-child(1) { width:8%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(2) { width:17%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(3) { width:17%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(4) { width:13%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(5),.canteen-results-workspace .attendance-evidence-table th:nth-child(6) { width:8%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(7) { width:10%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(8) { width:15%; }.canteen-results-workspace .attendance-evidence-table th:nth-child(9) { width:4%; text-align:center; }
.canteen-time { font-size:11px; font-variant-numeric:tabular-nums; }.canteen-location { display:inline-flex; padding:5px 7px; color:#175cd3; background:#eff6ff; border:1px solid #d4e5fb; border-radius:8px; font-size:8px; font-weight:800; white-space:nowrap; }.canteen-meal { display:block; max-width:180px; overflow:hidden; color:#475467; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.canteen-movement-count { display:grid; place-items:center; width:28px; height:28px; margin:auto; color:#344054; background:#eef1f5; border-radius:8px; font-size:9px; font-weight:850; }
.canteen-name-match { display:inline-flex; align-items:center; gap:4px; margin-top:5px; padding:3px 6px; color:#175cd3; background:#eff6ff; border:1px solid #d4e5fb; border-radius:999px; font-size:7px; font-weight:800; white-space:nowrap; }.canteen-name-match::before { content:"✓"; font-size:8px; }
:root[data-theme="dark"] .canteen-location { color:#a9c9ff; background:#152841; border-color:#29466c; }:root[data-theme="dark"] .canteen-meal { color:#b7c2d2; }:root[data-theme="dark"] .canteen-movement-count { color:#dbe4f0; background:#273449; }
:root[data-theme="dark"] .canteen-name-match { color:#a9c9ff; background:#152841; border-color:#29466c; }
:root[data-theme="dark"] .canteen-cycle-footer,:root[data-theme="dark"] .canteen-upload-actions { background:#111a29; border-color:#2a394e; }:root[data-theme="dark"] .canteen-upload-header { background:linear-gradient(125deg,#152136,#101a2a); border-color:#2d3d54; }:root[data-theme="dark"] .canteen-upload-context { background:#101827; }:root[data-theme="dark"] .canteen-upload-rules article { background:#111b2b; border-color:#2d3c52; }

@media (max-width:1250px) { .canteen-slot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.canteen-import-form { grid-template-columns:1fr auto; }.canteen-import-guidance { grid-column:1/-1; grid-row:2; }.attendance-control-page .attendance-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.attendance-control-page .attendance-filters .filter-actions { grid-column:1/-1; }.attendance-control-page .attendance-workspace { grid-template-columns:1fr; }.attendance-insights { position:static; grid-template-columns:1fr 1fr; }.attendance-insights .team-coverage { position:static; } }
@media (max-width:760px) { .attendance-command-header,.canteen-cycle-header,.duty-teams-header { align-items:flex-start; flex-direction:column; }.duty-teams-header { gap:10px; }.duty-teams-count { margin-left:56px; }.duty-team-list { display:flex; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin; }.duty-team-card { min-width:min(310px,86vw); scroll-snap-align:start; }.attendance-command-actions { width:100%; align-items:stretch; justify-content:space-between; }.attendance-command-state { justify-content:flex-start; }.cycle-progress { width:100%; }.cycle-progress-track { flex:1; }.canteen-import-form { grid-template-columns:1fr; }.canteen-import-guidance { grid-column:auto; grid-row:auto; }.canteen-import-form > .primary-button { width:100%; }.attendance-control-page .attendance-filters { grid-template-columns:1fr 1fr; }.attendance-insights { grid-template-columns:1fr; }.attendance-evidence-table { min-width:0; }.canteen-upload-rules { grid-template-columns:1fr; }.canteen-upload-actions > span { display:none; } }
@media (max-width:560px) { .attendance-command-actions { flex-direction:column; }.canteen-upload-primary { width:100%; }.canteen-slot-grid { grid-template-columns:1fr; padding:10px; }.canteen-cycle-header { padding:15px; }.canteen-cycle-footer { align-items:flex-start; flex-direction:column; }.canteen-cycle-footer p { text-align:left; }.canteen-dropzone { grid-template-columns:34px minmax(0,1fr); }.canteen-dropzone > b { grid-column:1/-1; text-align:center; }.canteen-import > summary { grid-template-columns:1fr auto; }.canteen-import > summary small { grid-column:1/-1; grid-row:2; }.canteen-import-form { padding:0 10px 12px; }.attendance-control-page .attendance-filters { grid-template-columns:1fr; }.attendance-control-page .attendance-filters .filter-actions { grid-column:auto; }.canteen-upload-header { grid-template-columns:40px minmax(0,1fr) 34px; padding:17px 15px 14px; }.canteen-upload-header-icon { width:40px; height:40px; }.canteen-upload-context { grid-template-columns:1fr; }.canteen-upload-context div { padding:9px 15px; border-top:1px solid var(--line); border-left:0; }.canteen-upload-context div:first-child { border-top:0; }.canteen-upload-body { padding:15px; }.canteen-upload-actions { flex-wrap:wrap; padding:12px 15px; }.canteen-upload-actions .clear-button,.canteen-upload-actions .primary-button { flex:1; min-width:0; } }
.back-to-top:hover { background:#0f49b1; transform:translateY(-2px); }
.table-wrap[tabindex="0"]:focus-visible { outline:3px solid rgba(21,91,215,.28); outline-offset:-3px; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(21,91,215,.2); outline-offset:1px; }
button:disabled,input:disabled,select:disabled,textarea:disabled,[aria-disabled="true"] { cursor:not-allowed; }
form.is-submitting button[type="submit"],form.is-submitting input[type="submit"] { pointer-events:none; opacity:.72; }
@keyframes ux-dialog-in { from { opacity:0; transform:translateY(9px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes ux-backdrop-in { from { opacity:0; } to { opacity:1; } }
@media (max-width:520px) {
    .global-confirm-content { grid-template-columns:44px minmax(0,1fr); gap:12px; padding:18px; border-radius:14px; }
    .global-confirm-icon { width:44px; height:44px; }
    .global-confirm-actions { flex-direction:column-reverse; }
    .global-confirm-actions > * { width:100%; justify-content:center; }
    .back-to-top { right:14px; bottom:max(14px,env(safe-area-inset-bottom)); }
}

/* Sidebar profissional: identidade e sessão fixas, navegação independente */
.sidebar{height:100vh;height:100dvh;padding:18px 14px 14px;overflow:hidden}
.sidebar-brand-zone{position:relative;z-index:2;flex:0 0 auto;padding:5px 8px 16px;border-bottom:1px solid rgba(143,164,201,.18)}
.sidebar-brand-zone .brand{min-height:58px}
.sidebar-brand-zone .brand-logo{width:186px}
.sidebar-brand-zone .sidebar-caption{margin:9px 0 0;color:#91a7cc;font-size:9px;letter-spacing:.16em}
.sidebar nav{min-height:0;flex:1;align-content:start;margin:14px -5px 10px 0;padding:2px 8px 12px 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.sidebar nav::-webkit-scrollbar{width:6px}
.sidebar nav::-webkit-scrollbar-track{background:transparent}
.sidebar nav::-webkit-scrollbar-thumb{background:#344b70;border:1px solid #0e1d3b;border-radius:999px}
.sidebar nav::-webkit-scrollbar-thumb:hover{background:#4b6691}
.sidebar nav{scrollbar-color:#344b70 transparent;scrollbar-width:thin}
.sidebar nav a,.sidebar .nav-disabled{position:relative;flex:0 0 auto;transition:color .16s ease,background .16s ease,transform .16s ease}
.sidebar nav a:hover{transform:translateX(2px)}
.sidebar nav a.active::before{content:"";position:absolute;inset:10px auto 10px 0;width:3px;background:#79a8ff;border-radius:0 4px 4px 0}
.sidebar-section-label{flex:0 0 auto;margin-top:16px}
.sidebar-group{min-width:0;border-radius:10px}
.sidebar-group summary{position:relative;display:flex;align-items:center;min-height:44px;gap:12px;padding:11px 12px;color:#dce7ff;border-radius:9px;list-style:none;font-size:13px;font-weight:650;cursor:pointer;transition:color .16s ease,background .16s ease}
.sidebar-group summary::-webkit-details-marker{display:none}
.sidebar-group summary:hover,.sidebar-group[open]>summary,.sidebar-group:has(.active)>summary{color:#fff;background:#182e54}
.sidebar-group summary:focus-visible{outline:2px solid #8eb4ff;outline-offset:2px}
.sidebar-group summary img{width:20px;height:20px;flex:0 0 auto;object-fit:contain}
.sidebar-group summary>span{min-width:0;flex:1}
.sidebar-group-chevron{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.sidebar-group[open] .sidebar-group-chevron{transform:rotate(180deg)}
.sidebar-submenu{position:relative;display:grid;gap:3px;margin:4px 0 7px 21px;padding:2px 0 2px 15px;border-left:1px solid #344d76}
.sidebar-group[open] .sidebar-submenu{animation:sidebarSubmenuIn .18s ease both}
@keyframes sidebarSubmenuIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.sidebar .sidebar-submenu a{min-height:36px;padding:8px 11px;color:#aebed7;border-radius:8px;font-size:12px;line-height:1.25}
.sidebar .sidebar-submenu a:hover,.sidebar .sidebar-submenu a.active{color:#fff;background:#203b68}
.sidebar .sidebar-submenu a.active{font-weight:750}
.sidebar .sidebar-submenu a.active::before{inset:8px auto 8px -16px;width:2px;background:#79a8ff}
.sidebar-admin{margin-top:7px;padding-top:7px;border-top:1px solid rgba(143,164,201,.14)}
.account{position:relative;z-index:3;flex:0 0 auto;margin:0;padding:12px;background:linear-gradient(145deg,rgba(31,55,94,.95),rgba(21,42,76,.98));border:1px solid #304a75;border-radius:14px;box-shadow:0 -10px 28px rgba(4,14,33,.2),0 8px 22px rgba(4,14,33,.16);font-size:12px}
.account::before{content:"";position:absolute;inset:-9px 0 auto;height:9px;background:linear-gradient(to bottom,transparent,#0e1d3b);pointer-events:none}
.account-user{min-width:0;gap:11px;padding:1px 2px 9px;border-bottom:1px solid rgba(143,164,201,.16)}
.account-user>span:last-child{min-width:0}
.account-user strong,.account-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-user strong{color:#f4f7ff;font-size:12px}
.account-user small{color:#9eb2d3;font-size:9px}
.account .avatar{position:relative;width:38px;height:38px;background:linear-gradient(145deg,#3974d2,#224b92);border:1px solid rgba(255,255,255,.14);box-shadow:0 6px 14px rgba(2,13,34,.24)}
.account .avatar::after{content:"";position:absolute;right:-1px;bottom:1px;width:8px;height:8px;background:#42c985;border:2px solid #1c3459;border-radius:50%}
.sidebar .account .theme-toggle{min-height:39px;margin-top:10px;color:#dce7ff;background:#1b355b;border-color:#385681;border-radius:9px}
.sidebar .account .theme-toggle:hover{background:#24436f;border-color:#5275a8}
.account form{margin:6px 0 0}
.account .link-button{width:100%;min-height:38px;justify-content:flex-start;padding:0 9px;color:#b7c8e5;border-radius:9px;font-size:11px;transition:color .16s ease,background .16s ease}
.account .link-button:hover{color:#fff;background:rgba(180,35,24,.22)}
.account .link-button:focus-visible{outline:3px solid rgba(142,180,255,.42);outline-offset:2px}
/* Ação compacta reutilizável para cabeçalhos, tabelas e atalhos secundários. */
.compact-action-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:35px;
    padding:4px 6px 4px 12px;
    color:#174ea6;
    background:linear-gradient(180deg,#fff 0%,#f5f8ff 100%);
    border:1px solid #cbdaf1;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(23,78,166,.07);
    font-size:10px;
    font-weight:850;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
    cursor:pointer;
    transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.compact-action-link > span[aria-hidden="true"] {
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    flex:0 0 auto;
    color:#fff;
    background:#175cc8;
    border-radius:7px;
    font-size:13px;
    font-weight:750;
    transition:background .18s ease,transform .18s ease;
}
.compact-action-link:hover {
    color:#123f8b;
    background:#edf4ff;
    border-color:#9fbae5;
    box-shadow:0 7px 17px rgba(23,78,166,.13);
    text-decoration:none;
    transform:translateY(-1px);
}
.compact-action-link:hover > span[aria-hidden="true"] { background:#0f4fae; transform:translateX(2px); }
.compact-action-link:active { box-shadow:0 2px 7px rgba(23,78,166,.1); transform:translateY(0); }
.compact-action-link:focus-visible { outline:3px solid rgba(23,92,200,.22); outline-offset:2px; }
:root[data-theme="dark"] .compact-action-link { color:#c6dcff; background:linear-gradient(180deg,#17263b,#142238); border-color:#355273; box-shadow:0 4px 14px rgba(0,0,0,.18); }
:root[data-theme="dark"] .compact-action-link:hover { color:#fff; background:#1b3150; border-color:#4c6f9b; }

