:root{--sidebar:#111827;--sidebar2:#0f172a;--brand:#2563eb;--bg:#f4f7fb;--line:#e5e7eb;--muted:#64748b;--text:#111827;--radius:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;padding:22px 16px;background:linear-gradient(180deg,var(--sidebar2),var(--sidebar));color:#fff;z-index:1020}.brand{display:flex;align-items:center;gap:11px;color:inherit}.brand:hover{color:inherit}.brand-mark,.login-logo{display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;font-weight:800;box-shadow:0 8px 24px rgba(37,99,235,.28)}.brand-mark{width:40px;height:40px;border-radius:12px}.brand b{display:block;font-size:17px;line-height:1.05}.brand small{display:block;font-size:10px;opacity:.6;margin-top:3px}.sidebar .nav-link,.mobile-link{color:#cbd5e1;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:11px}.sidebar .nav-link:hover,.sidebar .nav-link.active{background:rgba(255,255,255,.09);color:#fff}.nav-ico{width:24px;text-align:center;font-size:18px}.sidebar-user{border-top:1px solid rgba(255,255,255,.1);padding-top:16px;display:flex;align-items:center;gap:10px}.sidebar-user small{color:#94a3b8}.avatar{width:38px;height:38px;display:grid;place-items:center;background:#334155;border-radius:50%;font-weight:700}.main-panel{min-height:100vh;margin-left:250px}.topbar{height:72px;position:sticky;top:0;z-index:1010;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px}.top-title{font-weight:750}.content-wrap{padding:26px;max-width:1640px;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-head h1{font-size:1.55rem;margin:0 0 5px;font-weight:750}.page-head p{margin:0;color:var(--muted)}.app-card{border:1px solid rgba(226,232,240,.9);border-radius:var(--radius);box-shadow:0 8px 30px rgba(15,23,42,.045);overflow:hidden}.form-card{max-width:820px}.form-card-wide{max-width:1120px}.card-header{border-bottom:1px solid var(--line);padding:14px 18px}.table>:not(caption)>*>*{padding:.8rem .85rem}.table thead th{font-size:.76rem;text-transform:uppercase;letter-spacing:.03em;color:#64748b;background:#f8fafc;white-space:nowrap}.table td{font-size:.92rem}.code-pill{display:inline-block;padding:4px 8px;border-radius:7px;background:#eef2ff;color:#3730a3;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem}.filter-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:14px}.filter-bar>div{min-width:160px}.filter-bar .filter-grow{flex:1;min-width:240px}.filter-bar label{font-size:.75rem;font-weight:650;color:#64748b;margin-bottom:5px}.metric-circle{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#eef6ff;color:#1d4ed8;font-weight:800;font-size:1.2rem}.stats-grid,.mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stats-grid>div,.mini-stats>div{background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;padding:12px}.stat-n,.mini-stats b{display:block;font-size:1.35rem;font-weight:800}.stats-grid small,.mini-stats span{font-size:.74rem;color:#64748b}.mini-stats{margin-bottom:18px}.company-choice .app-card{transition:.18s ease}.company-choice:hover .app-card{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,23,42,.08);border-color:#bfdbfe}.choice-arrow{font-size:28px;color:#2563eb}.station-card{top:92px}.code-input{text-align:center;font-weight:800;letter-spacing:.32em;font-size:1.6rem}.empty-state{padding:60px 20px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:16px;color:#64748b}.empty-state h2{font-size:3rem;color:#cbd5e1}.empty-inline{padding:28px;text-align:center;color:#94a3b8}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top left,#dbeafe,transparent 38%),radial-gradient(circle at bottom right,#cffafe,transparent 35%),#f8fafc}.login-card{width:min(440px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:32px;box-shadow:0 24px 70px rgba(15,23,42,.1)}.login-logo{width:62px;height:62px;border-radius:18px;margin:0 auto 14px;font-size:26px}.login-card h1{font-size:1.55rem;font-weight:800}.captcha-code{font-family:ui-monospace,monospace;font-weight:800;letter-spacing:.18em;background:#eff6ff;color:#1d4ed8}.report-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.report-paper{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 8px 30px rgba(15,23,42,.04)}.report-heading{text-align:center;margin-bottom:18px}.report-heading h3{text-transform:uppercase;font-size:1.25rem;font-weight:800}.report-table{font-size:.84rem}.legend{display:flex;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin-bottom:12px;font-size:.82rem}.matrix-card{max-height:72vh;overflow:auto}.matrix-table{font-size:.75rem;white-space:nowrap}.matrix-table th,.matrix-table td{text-align:center;vertical-align:middle;padding:.35rem .42rem}.matrix-table .sticky-col{position:sticky;z-index:4;background:#fff}.matrix-table thead .sticky-col{background:#f8fafc;z-index:6}.matrix-table .col-name{left:0;min-width:190px;text-align:left}.matrix-table .col-pos{left:190px;min-width:65px}.matrix-status.s-1{font-weight:800;color:#047857}.matrix-status.s-2{font-weight:800;color:#0369a1}.matrix-status.s-3,.matrix-status.s-4{font-weight:800;color:#b91c1c}.matrix-status.s-0{color:#94a3b8}.min-w-0{min-width:0}.offcanvas .brand{color:#0f172a}.offcanvas .mobile-link{color:#334155}.offcanvas .mobile-link:hover{background:#f1f5f9}.form-label{font-size:.86rem;font-weight:650}.form-control,.form-select,.btn{border-radius:10px}.btn-group>.btn{border-radius:8px}.btn-primary{background:#2563eb;border-color:#2563eb}.alert{border-radius:12px}.guest-body{background:#f8fafc}
@media(max-width:991.98px){.main-panel{margin-left:0}.content-wrap{padding:18px}.topbar{height:64px;padding:0 16px}.page-head{align-items:flex-start}.station-card{position:static!important}.matrix-card{max-height:none}}
@media(max-width:767.98px){.content-wrap{padding:14px}.page-head{display:block}.page-head>div+*,.page-head>a,.page-head>.d-flex{margin-top:12px}.page-head h1{font-size:1.3rem}.stats-grid,.mini-stats{grid-template-columns:repeat(2,1fr)}.filter-bar{display:grid;grid-template-columns:1fr}.filter-bar>div,.filter-bar .filter-grow{min-width:0;width:100%}.app-card{border-radius:13px}.responsive-table thead{display:none}.responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}.responsive-table tr{padding:12px 14px;border-bottom:1px solid var(--line)}.responsive-table td{border:0;padding:4px 0 4px 42%;position:relative;min-height:28px}.responsive-table td::before{content:attr(data-label);position:absolute;left:0;width:38%;font-size:.72rem;text-transform:uppercase;color:#64748b;font-weight:700}.login-card{padding:24px 20px;border-radius:18px}.report-paper{padding:10px;border-radius:10px}.report-table{font-size:.72rem}.matrix-table .col-name{min-width:150px}.matrix-table .col-pos{left:150px}.code-input{font-size:1.4rem}.btn-group{display:flex;flex-wrap:wrap}.table>:not(caption)>*>*{padding:.65rem .7rem}}
@media print{body{background:#fff}.sidebar,.topbar,.no-print,.alert,.offcanvas{display:none!important}.main-panel{margin:0}.content-wrap{max-width:none;padding:0}.report-paper,.app-card{border:0;box-shadow:none;padding:0}.report-table{font-size:8.5pt}.matrix-card{max-height:none;overflow:visible}.matrix-table{font-size:7pt}.matrix-table .sticky-col{position:static}.page-head{display:none}@page{size:A4 landscape;margin:8mm}}

.report-table .department-row th{background:#eaf2ff;color:#1e40af;text-align:left;font-size:.78rem;letter-spacing:.04em}

.status-dot{width:.72rem;height:.72rem;border-radius:50%;display:inline-block;flex:0 0 auto}.status-dot.ok{background:#198754}.status-dot.bad{background:#dc3545}

.dept-mini{border-top:1px solid #eef2f7;padding-top:1rem}.dept-mini-row{margin-bottom:.55rem}.dept-mini-track{height:5px;border-radius:99px;background:#eef2f7;overflow:hidden;margin-top:.25rem}.dept-mini-track span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#60a5fa);border-radius:inherit}

.text-break{overflow-wrap:anywhere;word-break:break-word}

/* DicaPro branding */
.brand-dica{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.brand-dica small{font-size:10px;color:#fff;margin-left:5px;max-width:188px;line-height:1.35;opacity:.95}.brand-logo-shell{display:block;width:188px;height:64px;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(2,6,23,.18);border:1px solid rgba(255,255,255,.35)}.brand-logo-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.mobile-brand .brand-logo-shell{width:168px;height:58px;box-shadow:none;border-color:#e2e8f0}.login-brand-logo{width:290px;max-width:92%;height:102px;margin:0 auto 8px;border-radius:16px;overflow:hidden;background:#fff}.login-brand-logo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.login-tagline{font-size:.94rem;line-height:1.45;font-weight:600}

/* DicaPro mobile-first attendance station */
.attendance-page-head{margin-bottom:12px}.attendance-page-head h1{font-size:1.38rem}.attendance-entry-card .card-body{padding:16px}.attendance-card-title{font-weight:800}.attendance-submit{min-height:52px;font-weight:800;font-size:1.05rem}.attendance-options-toggle{font-weight:650}.attendance-recent-card .card-header{padding:12px 16px}.attendance-recent-table-wrap{max-height:520px}.attendance-stats{margin-bottom:0}
@media(max-width:767.98px){
  .attendance-page-head{margin-bottom:8px}.attendance-page-head h1{font-size:1.16rem;margin-bottom:2px}.attendance-page-head p{font-size:.8rem;line-height:1.2}
  .attendance-main-row{--bs-gutter-y:.6rem}.attendance-entry-card .card-body{padding:11px 12px}.attendance-card-title{font-size:1rem;margin-bottom:7px!important}
  .attendance-entry-form .form-label{font-size:.74rem;margin-bottom:3px}.attendance-code-input{height:52px;font-size:1.65rem;padding:.35rem .7rem}.attendance-entry-form .form-select,.attendance-entry-form .form-control:not(.attendance-code-input){min-height:40px;padding-top:.35rem;padding-bottom:.35rem;font-size:.9rem}
  .attendance-submit-wrap{margin-top:7px!important}.attendance-submit{min-height:50px;font-size:1rem;border-radius:11px}.attendance-options-toggle{padding:.35rem .6rem;font-size:.8rem}
  .attendance-recent-card .card-header{padding:9px 12px;font-size:.9rem}.attendance-recent-table-wrap{max-height:355px;overflow:auto}.attendance-recent-table tr{padding:8px 11px}.attendance-recent-table td{padding:2px 0 2px 38%;min-height:24px;font-size:.82rem}.attendance-recent-table td::before{width:34%;font-size:.64rem}.attendance-recent-table small{font-size:.72rem}
  .attendance-stats{grid-template-columns:repeat(4,1fr);gap:5px}.attendance-stats>div{padding:7px 4px;text-align:center}.attendance-stats b{font-size:1rem}.attendance-stats span{font-size:.62rem;line-height:1.1}
}
@media(max-width:430px){.attendance-stats{grid-template-columns:repeat(2,1fr)}.login-brand-logo{height:88px;width:250px}}

/* DicaPro 2.0.8 - báo cáo */
.matrix-table .col-stt{left:0;min-width:46px;width:46px}.matrix-table .col-name{left:46px}.matrix-table .col-pos{left:236px}.matrix-table tfoot th{background:#f8fafc;font-weight:800}.employee-report-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.employee-report-meta>div,.employee-report-stats>div{background:#f8fafc;border:1px solid #e9eef5;border-radius:10px;padding:10px 12px}.employee-report-meta span,.employee-report-stats span{display:block;font-size:.72rem;color:#64748b;margin-bottom:3px}.employee-report-meta b{font-size:.9rem}.employee-report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.employee-report-stats b{font-size:1.25rem}.matrix-report-heading{padding:14px 14px 0;margin-bottom:8px}
@media(max-width:767.98px){.matrix-table .col-stt{min-width:38px;width:38px}.matrix-table .col-name{left:38px;min-width:150px}.matrix-table .col-pos{left:188px}.employee-report-meta,.employee-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.print-block{display:block!important}.employee-report-meta,.employee-report-stats{grid-template-columns:repeat(4,1fr);gap:5px}.employee-report-meta>div,.employee-report-stats>div{padding:5px 7px}}
