@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #EEF1F7;
  --sidebar: #0E1424;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-text: #9AA4B8;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --surface-3: #EAEEF6;
  --border: #E3E7F0;
  --text: #1A2135;
  --text-muted: #6B7688;
  --text-faint: #98A2B3;
  --blue: #2F6FED;
  --blue-dark: #1E52C2;
  --purple: #8B5CF6;
  --purple-dark: #6D3FD1;
  --green: #17A056;
  --green-dark: #0E8045;
  --red: #EF4444;
  --red-dark: #C0322F;
  --amber: #F5A524;
  --amber-dark: #C67C0E;
  --radius: 12px;
  --font: 'Aptos', 'Inter', 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(20,26,46,0.04), 0 8px 24px rgba(20,26,46,0.06);
}

*{box-sizing:border-box; margin:0; padding:0;}
body{ margin:0; font-family:var(--font); background:var(--bg); color:var(--text); }
.login-gate{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-gate[hidden]{ display:none; }
.login-card{ width:min(420px, 100%); }
.login-message{ margin-bottom:12px; padding:10px 12px; border-radius:10px; background:#FDEEEE; color:var(--red-dark); border:1px solid #F8D6D5; }
.settings-choices{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin:14px 0; }
.cadastro-choices{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin:14px 0; }
.kit-row{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) 88px minmax(0,1fr) auto; gap:8px; align-items:center; margin-top:8px; }
.kit-head{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr) 88px minmax(0,1fr) auto; gap:8px; margin-top:8px; font-size:11px; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; }
.route-row{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 108px; gap:10px; align-items:end; margin-top:10px; }
.route-field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.route-label{ font-size:11px; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; line-height:1; }
.route-row select{ width:100%; min-width:0; }
.route-actions{ display:flex; gap:4px; justify-content:flex-end; align-items:center; white-space:nowrap; width:108px; min-height:38px; }
.route-actions-labeled{ margin-bottom:0; }
.settings-choice{ text-align:left; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 16px; cursor:pointer; font:inherit; color:var(--text); }
.settings-choice b{ display:block; font-size:15px; margin-bottom:4px; }
.settings-choice span{ display:block; color:var(--text-muted); font-size:12.5px; font-weight:500; line-height:1.35; }
.settings-choice.active{ border-color:var(--blue); background:#EAF1FE; box-shadow:0 0 0 1px var(--blue); }
@media (max-width: 900px){
  .cadastro-choices{ grid-template-columns:1fr 1fr; }
  .kit-row, .kit-head{ grid-template-columns:1fr; }
  .route-row{ grid-template-columns:1fr; }
  .route-actions{ width:auto; justify-content:flex-start; }
}
@media (max-width: 720px){ .settings-choices{ grid-template-columns:1fr; } }
.perm-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:10px;
  margin:8px 0 14px;
  width:100%;
}
label.perm-item,
.perm-item{
  display:flex !important;
  flex-direction:row;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  margin:0 !important;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  font-weight:600;
  cursor:pointer;
  box-sizing:border-box;
  color:var(--text);
  overflow:hidden;
}
.perm-item > input[type="checkbox"]{
  order:2;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  flex:0 0 18px !important;
  align-self:center;
  accent-color:var(--blue);
  box-shadow:none !important;
  border:none;
}
.perm-item-text{
  order:1;
  display:block;
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.perm-item-code{
  display:block;
  font-size:11px;
  font-weight:700;
  color:var(--text-faint);
  letter-spacing:0.02em;
  margin-bottom:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.perm-item-title{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.perm-item-sub{
  display:block;
  font-size:11px;
  font-weight:500;
  color:var(--text-muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-form{ max-width:100%; }
.log-table .btn-log{ min-width:64px; }
.log-diff{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:8px;
}
@media (max-width:720px){
  .log-diff{ grid-template-columns:1fr; }
}
.log-diff-pane{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  min-width:0;
}
.log-diff-pane pre{
  margin:8px 0 0;
  white-space:pre-wrap;
  word-break:break-word;
  font-size:12px;
  line-height:1.4;
  max-height:55vh;
  overflow:auto;
}
.operator-sector-block{ margin-top:12px; }
.operator-sector-title{ font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:6px; }
.cadastro-list-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:4px; }
.cadastro-list-actions{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#sosystem-app.is-locked{ display:none; }
#sosystem-app{
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display:flex;
  font-size:14px;
  line-height:1.45;
}
::selection{ background: var(--blue); color:#fff; }
#sosystem-app *::-webkit-scrollbar{ width:8px; height:8px; }
#sosystem-app *::-webkit-scrollbar-track{ background: transparent; }
#sosystem-app *::-webkit-scrollbar-thumb{ background: #C7CEDC; border-radius:4px; }
.icon{ display:inline-block; vertical-align:middle; flex-shrink:0; }

/* ===== Sidebar ===== */
.sidebar{ width:246px; min-width:246px; background: var(--sidebar); display:flex; flex-direction:column; position:relative; z-index:20; }
.brand{ padding:20px 20px 16px 20px; display:flex; align-items:center; gap:11px; }
.brand-mark{ width:36px; height:36px; border-radius:9px; background:linear-gradient(135deg, var(--blue), var(--purple)); display:flex; align-items:center; justify-content:center; font-weight:800; color:#fff; font-size:15px; flex-shrink:0; }
.brand-logo{ width:42px; height:42px; border-radius:10px; object-fit:cover; object-position:center; flex-shrink:0; background:#061018; }
.login-logo{ width:100%; height:132px; object-fit:cover; object-position:center; border-radius:12px; margin-bottom:14px; display:block; background:#061018; }
.brand-text{ font-weight:700; font-size:16.5px; color:#fff; letter-spacing:0.1px; }
.brand-sub{ font-size:10.5px; color:var(--sidebar-text); margin-top:1px; }

.nav{ flex:1; padding:8px 12px; display:flex; flex-direction:column; gap:2px; overflow-y:auto; }
.nav-item{ display:flex; align-items:center; gap:11px; padding:10px 11px; border-radius:9px; color:var(--sidebar-text); cursor:pointer; user-select:none; font-size:13.3px; font-weight:500; transition: background .15s, color .15s; }
.nav-item:hover{ background:var(--sidebar-hover); color:#fff; }
.nav-item.active{ background:var(--blue); color:#fff; font-weight:600; box-shadow:0 4px 12px rgba(47,111,237,0.35); }
.nav-item .ic{ width:18px; text-align:center; flex-shrink:0; opacity:.95; display:flex; justify-content:center;}
.nav-item .nlabel{ flex:1; }
.nav-badge{ background:rgba(255,255,255,0.12); color:#cfd6e6; font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:20px; }
.nav-item.active .nav-badge{ background:rgba(255,255,255,0.25); color:#fff; }

.sidebar-foot{ padding:14px 20px 18px 20px; border-top:1px solid rgba(255,255,255,0.08); font-size:11px; color:var(--sidebar-text); }
.sidebar-foot b{ color:#dfe4ee; }
.company-switch{ margin-top:6px; background:#1a2236; color:#fff; border-color:rgba(255,255,255,0.18); }

/* ===== Main ===== */
.main{ flex:1; display:flex; flex-direction:column; min-width:0; height:100vh; overflow:hidden; }
.topbar{ height:64px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; padding:0 26px; background:var(--surface); flex-shrink:0; gap:14px; flex-wrap:wrap; }
.topbar-title{ font-size:19px; font-weight:700; letter-spacing:-0.2px; white-space:nowrap; }
.topbar-title .eyebrow{ display:block; font-size:10.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.topbar-right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hamburger{ display:none; background:none; border:1px solid var(--border); color:var(--text); border-radius:8px; padding:7px 10px; cursor:pointer; font-size:16px; }

.pill{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:7px 12px; border-radius:20px; border:1px solid var(--border); background:var(--surface-2); color:var(--text-muted); cursor:default; white-space:nowrap;}
.pill.clickable{ cursor:pointer; }
.pill.clickable:hover{ background:var(--surface-3); }
.pill-green{ background:#E8F9EF; color:var(--green-dark); border-color:#CDEFDC; }
.pill-red{ background:#FDEEEE; color:var(--red-dark); border-color:#F8D6D5; }
.pill-blue{ background:#EAF1FE; color:var(--blue-dark); border-color:#D3E2FC; }
.pill-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }

.content{ flex:1; overflow-y:auto; padding:24px 28px 60px 28px; }
body.has-cadastro-select .content{ padding-bottom:88px; }
.tab-panel{ display:none; animation: fadein .18s ease; }
.tab-panel.active{ display:block; }
@keyframes fadein{ from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;} }

/* ===== Common ===== */
.section-title{ font-size:17px; font-weight:700; letter-spacing:-0.2px; margin-bottom:3px; display:flex; align-items:center; gap:9px;}
.section-sub{ color:var(--text-muted); font-size:12.8px; margin-bottom:16px; }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow); }
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns: 1fr 1fr; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
@media(max-width:1050px){ .grid-3{grid-template-columns:repeat(2,1fr);} .grid-2{grid-template-columns:1fr;} }
@media(max-width:640px){ .grid-3{grid-template-columns:1fr;} }

/* KPI gradient cards — vivid, glossy, 3D */
.kpi-row{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:20px; }
.kpi-card{
  border-radius:18px; padding:20px 22px; position:relative; overflow:hidden; color:#fff; min-height:112px; width:250px; flex:0 0 auto;
  box-shadow: 0 14px 28px -8px var(--kpi-shadow, rgba(47,111,237,0.55)), 0 4px 10px rgba(10,14,26,0.18), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -14px 22px rgba(0,0,0,0.12);
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}
.kpi-card:hover{ transform: translateY(-5px) scale(1.02); box-shadow: 0 22px 40px -8px var(--kpi-shadow, rgba(47,111,237,0.6)), 0 6px 14px rgba(10,14,26,0.22), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -14px 22px rgba(0,0,0,0.12); }
.kpi-card::before{ content:""; position:absolute; top:-70%; left:-30%; width:75%; height:240%; background:linear-gradient(115deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 35%, rgba(255,255,255,0) 60%); transform:rotate(18deg); pointer-events:none; }
.kpi-card::after{ content:""; position:absolute; left:10%; right:10%; bottom:-26px; height:26px; border-radius:50%; background:radial-gradient(ellipse at center, rgba(0,0,0,0.16), rgba(0,0,0,0) 70%); pointer-events:none; }
.kpi-card .kpi-icon{ position:relative; z-index:1; width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,0.22); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; margin-bottom:12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.kpi-label{ position:relative; z-index:1; font-size:11.5px; text-transform:uppercase; letter-spacing:0.7px; font-weight:800; opacity:.95; margin-bottom:8px; }
.kpi-value{ position:relative; z-index:1; font-size:34px; font-weight:800; letter-spacing:-0.6px; text-shadow:0 2px 8px rgba(0,0,0,0.18); }
.kpi-note{ position:relative; z-index:1; font-size:11.5px; opacity:.92; margin-top:4px; font-weight:600; }
.kpi-blue{ background:linear-gradient(140deg, #63A4FF 0%, #2F6FED 45%, #6D3FD1 100%); --kpi-shadow: rgba(47,111,237,0.55); }
.kpi-green{ background:linear-gradient(140deg, #4CE38F 0%, #17A056 50%, #0B6E63 100%); --kpi-shadow: rgba(23,160,86,0.5); }
.kpi-purple{ background:linear-gradient(140deg, #C68CFF 0%, #8B5CF6 50%, #5B21B6 100%); --kpi-shadow: rgba(139,92,246,0.55); }
.kpi-pink{ background:linear-gradient(140deg, #FF9AA8 0%, #FF4D6A 50%, #C0143C 100%); --kpi-shadow: rgba(255,77,106,0.5); }

/* buttons */
.btn{ font-family:var(--font); font-weight:600; font-size:12.8px; padding:9px 16px; border-radius:9px; border:1px solid var(--border); background:var(--surface-2); color:var(--text); cursor:pointer; transition:.15s; display:inline-flex; align-items:center; gap:7px; }
.btn:hover{ background:var(--surface-3); }
.btn:disabled{ opacity:.4; cursor:not-allowed; }
.btn-primary{ background:var(--blue); color:#fff; border-color:var(--blue); }
.btn-primary:hover{ background:var(--blue-dark); }
.btn-danger{ background:#FDEEEE; color:var(--red-dark); border-color:#F8D6D5; }
.btn-danger:hover{ background:#FBDCDB; }
.btn-success{ background:#E8F9EF; color:var(--green-dark); border-color:#CDEFDC; }
.btn-success:hover{ background:#D8F3E3; }
.btn-ghost{ background:transparent; border-color:var(--border); }
.btn-sm{ padding:6px 10px; font-size:11.5px; }
.btn-block{ width:100%; justify-content:center; }

/* forms */
label{ display:block; font-size:11.5px; color:var(--text-muted); margin-bottom:5px; font-weight:600; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea{
  width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text);
  padding:9px 11px; border-radius:9px; font-family:var(--font); font-size:13px; outline:none;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus{
  border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,111,237,0.12);
}
input::placeholder{ color:var(--text-faint); }
input[type="checkbox"], input[type="radio"]{
  width:18px; height:18px; min-width:18px; max-width:18px;
  margin:0; padding:0; flex:none; accent-color:var(--blue);
}
.field{ margin-bottom:14px; }
.field-row{ display:flex; gap:10px; }
.field-row > *{ flex:1; }
.checkbox-row{ display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.checkbox-row input{ width:16px; height:16px; min-width:16px; max-width:16px; }
.checkbox-row label{ margin:0; }

/* table */
table{ width:100%; border-collapse:collapse; font-size:13px; }
th{ text-align:left; font-size:10.8px; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-faint); padding:11px 14px; border-bottom:1px solid var(--border); font-weight:700; background:var(--surface-2); }
td{ padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
tbody tr:hover{ background:var(--surface-2); }
tr.row-vacation{ background:#FDEAEA; }
tr.row-vacation:hover{ background:#FBDCDB; }
tr.row-vacation td{ color:#7A1F24; }
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.cadastro-check-cell{ width:36px; text-align:center; padding-left:10px; padding-right:6px; }
.cadastro-check{ width:16px; height:16px; cursor:pointer; vertical-align:middle; }
.cadastro-select-bar{
  position:fixed; left:246px; right:0; bottom:0; z-index:45;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 24px; border-top:1px solid var(--border);
  background:var(--surface); box-shadow:0 -6px 20px rgba(15,20,35,0.08);
}
.cadastro-select-bar[hidden]{ display:none !important; }
.cadastro-select-bar span{ font-size:13px; color:var(--text-muted); font-weight:600; }
.cadastro-save-row{ display:flex; align-items:center; gap:8px; margin-top:12px; }
.cadastro-save-row .cadastro-delete{ margin-left:auto; position:relative; }
.cadastro-pager{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-top:10px; padding:8px 2px;
}
.cadastro-pager-size{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-muted); font-weight:600; }
.cadastro-pager-size select{ width:auto; min-width:64px; padding:4px 8px; font-size:12.5px; }
.cadastro-pager-nav{ display:inline-flex; align-items:center; gap:8px; }
.cadastro-pager-page{ font-size:12.5px; color:var(--text-muted); font-weight:600; white-space:nowrap; }
.cadastro-trash-count{
  position:absolute; top:-4px; right:-6px; min-width:16px; height:16px; padding:0 4px;
  border-radius:999px; background:var(--red); color:#fff; font-size:10px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
}
.modal-confirm{ max-width:420px; }
.confirm-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
#modalConfirm{ z-index:120; }
.mono{ font-variant-numeric:tabular-nums; }
.empty-row td{ text-align:center; color:var(--text-faint); padding:34px; font-style:italic; }

/* badges */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; padding:4px 10px; border-radius:20px; }
.badge-blue{ background:#EAF1FE; color:var(--blue-dark); }
.badge-green{ background:#E8F9EF; color:var(--green-dark); }
.badge-red{ background:#FDEEEE; color:var(--red-dark); }
.badge-amber{ background:#FEF3E0; color:var(--amber-dark); }
.badge-purple{ background:#F1EBFE; color:var(--purple-dark); }
.badge-gray{ background:var(--surface-3); color:var(--text-muted); }
.dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }
.class-select{ font-size:10.5px; font-weight:700; padding:4px 8px; border-radius:20px; border:1px solid transparent; cursor:pointer; width:auto; }
.class-PI{ background:#F1EBFE; color:var(--purple-dark); }
.class-PF{ background:#E8F9EF; color:var(--green-dark); }

/* toolbar */
.toolbar{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.search-box{ position:relative; max-width:320px; flex:1; min-width:200px; }
.search-box input{ padding-left:34px; }
.search-ic{ position:absolute; left:10px; top:50%; transform:translate(0,-50%); color:var(--text-faint); display:flex; }

/* filter bar */
.filter-bar{ display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
.filter-bar .field{ margin-bottom:0; }
.filter-bar .grow{ flex:1; min-width:220px; }
.filter-bar .fixed{ width:220px; }

/* modal */
.modal-overlay{ position:fixed; inset:0; background:rgba(15,20,35,0.55); backdrop-filter:blur(2px); display:none; align-items:center; justify-content:center; z-index:100; padding:20px; }
.modal-overlay.open{ display:flex; }
.modal{ background:var(--surface); border-radius:16px; width:100%; max-width:460px; max-height:90vh; overflow-y:auto; padding:22px 24px; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.modal.modal-wide{
  max-width:min(1100px, 96vw);
  width:min(1100px, 96vw);
  max-height:94vh;
  overflow:auto;
  padding:24px 28px;
}
.modal-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:12px; }
.modal-title{ font-size:17px; font-weight:700; }
.modal-close{
  flex:0 0 auto;
  width:32px; height:32px;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--text);
  font-size:18px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.modal-close:hover{
  background:var(--surface-3);
  border-color:#C7CEDC;
  color:var(--text);
}

/* employee cards (dashboard) */
.emp-scroll{ display:flex; gap:12px; overflow-x:auto; padding-bottom:6px; }
.emp-card{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px; min-width:150px; max-width:150px; flex:0 0 auto; box-shadow:var(--shadow); cursor:grab; text-align:center; position:relative; }
.emp-card:active{ cursor:grabbing; }
.emp-card.vacation{ background:#FEF4F3; border-color:#FAD9D6; cursor:default; }
.emp-tag{ position:absolute; top:9px; left:9px; font-size:9px; font-weight:700; padding:2px 7px; border-radius:20px; text-transform:uppercase; letter-spacing:.3px; display:flex; align-items:center; gap:3px;}
.emp-avatar{ width:64px; height:64px; border-radius:15px; margin:16px auto 10px auto; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:16px; }
.emp-name{ font-size:12.5px; font-weight:700; line-height:1.25; }
.emp-turno{ font-size:10.8px; color:var(--text-muted); margin-top:2px; }
.emp-vac-dates{ font-size:10px; color:var(--red-dark); margin-top:4px; font-weight:600; }

/* resource / cell cards */
.res-card{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px 17px; box-shadow:var(--shadow); transition: box-shadow .15s, border-color .15s; }
.res-card.drop-hover{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,111,237,0.15); }
.res-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:2px; }
.res-code{ font-size:15px; font-weight:800; letter-spacing:-0.2px; }
.res-desc{ font-size:11.8px; color:var(--text-muted); margin-bottom:10px; }
.res-tags{ display:flex; gap:6px; margin-bottom:12px; flex-wrap:wrap; }
.status-select{ font-size:11.5px; font-weight:700; padding:5px 9px; border-radius:20px; border:1px solid transparent; cursor:pointer; }
.status-select.st-Produzindo{ background:#E8F9EF; color:var(--green-dark); }
.status-select.st-Parada{ background:#FDEEEE; color:var(--red-dark); }
.status-select.tone-gray{ background:var(--surface-3); color:var(--text-muted); }
.status-select.tone-red{ background:#FDEEEE; color:var(--red-dark); }
.status-select.tone-green{ background:#E8F9EF; color:var(--green-dark); }
.status-select.tone-amber{ background:#FEF3E0; color:var(--amber-dark); }
.dropzone{ min-height:64px; border:1.5px dashed var(--border); border-radius:10px; padding:10px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:center; margin-bottom:10px; background:var(--surface-2); }
.dropzone.has-people{ justify-content:flex-start; }
.dropzone-hint{ color:var(--text-faint); font-size:12px; }
.chip{ display:flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:4px 6px 4px 4px; font-size:11.5px; font-weight:600; }
.chip .chip-avatar{ width:24px; height:24px; border-radius:7px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:9px; font-weight:700; flex-shrink:0; }
.chip .chip-x{ cursor:pointer; color:var(--text-faint); font-weight:700; padding:0 3px; }
.chip .chip-x:hover{ color:var(--red); }
.res-icon-btn{ background:none; border:none; cursor:pointer; padding:4px; border-radius:6px; color:var(--text-faint); display:flex; }
.res-icon-btn:hover{ background:var(--surface-3); color:var(--text); }
.res-icon-btn.danger:hover{ color:var(--red); }

/* ===================== APONTAMENTO — TABLET MODE ===================== */
#panel-apontamento{ font-size:15.5px; }
.ap-hero{ display:flex; align-items:center; gap:14px; background:linear-gradient(135deg,#2F6FED,#6D3FD1); color:#fff; border-radius:18px; padding:20px 24px; margin-bottom:20px; }
.ap-hero-icon{ width:52px; height:52px; border-radius:14px; background:rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ap-hero-title{ font-size:19px; font-weight:800; }
.ap-hero-sub{ font-size:13px; opacity:.92; margin-top:2px; }
.ap-clock{ margin-left:auto; text-align:right; font-weight:700; font-size:18px; white-space:nowrap; }
.ap-clock small{ display:block; font-weight:500; font-size:11px; opacity:.85; }

.ap-step{ background:var(--surface); border-radius:18px; padding:22px 24px; margin-bottom:18px; box-shadow:var(--shadow); border-left:6px solid var(--blue); }
.ap-step.step-purple{ border-left-color:var(--purple); }
.ap-step.step-orange{ border-left-color:var(--amber); }
.ap-step-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.ap-step-num{ width:34px; height:34px; border-radius:50%; background:var(--blue); color:#fff; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.step-purple .ap-step-num{ background:var(--purple); }
.step-orange .ap-step-num{ background:var(--amber); }
.ap-step-title{ font-size:17px; font-weight:800; }

.ap-emp-grid, .ap-res-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(130px,1fr)); gap:12px; }
.ap-emp-btn, .ap-res-btn{ background:var(--surface-2); border:2.5px solid transparent; border-radius:14px; padding:14px 10px; text-align:center; cursor:pointer; font-family:var(--font); position:relative; transition:.12s; }
.ap-emp-btn:hover, .ap-res-btn:hover{ background:var(--surface-3); }
.ap-emp-btn.selected{ background:#EAF1FE; border-color:var(--blue); }
.ap-res-btn.selected{ background:#F1EBFE; border-color:var(--purple); }
.ap-check{ position:absolute; top:6px; right:6px; color:var(--blue); }
.ap-res-btn .ap-check{ color:var(--purple); }
.ap-emp-avatar{ width:60px; height:60px; border-radius:14px; margin:0 auto 8px auto; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:18px; }
.worker-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
  background-position:center center;
  border:1px solid #D7DBE3;
  box-shadow:0 3px 10px rgba(20,26,46,.16);
  position:relative;
  overflow:hidden;
  flex-shrink:0;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.worker-avatar:hover{
  transform:translateY(-1px) scale(1.045);
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(47,111,237,.14), 0 8px 20px rgba(20,26,46,.22);
}
.worker-avatar::before,
.worker-avatar::after{ display:none !important; content:none !important; }
.worker-avatar-badge{ display:none !important; }
.chip-avatar.worker-avatar{
  border-width:1px;
  box-shadow:0 2px 6px rgba(20,26,46,.14);
}
.table-emp-avatar{ width:48px; height:48px; border-radius:11px; display:inline-flex; }
.inline-avatar{ width:36px; height:36px; border-radius:9px; display:inline-flex; }
.inline-avatar-small{ width:26px; height:26px; border-radius:7px; display:inline-flex; border-width:1px; box-shadow:0 2px 5px rgba(20,26,46,.12); }
.employee-inline{ display:inline-flex; align-items:center; gap:9px; font-weight:600; vertical-align:middle; }
.employee-mini-chip{ display:inline-flex; align-items:center; gap:7px; background:#EAF1FE; color:var(--blue-dark); border:1px solid #D3E2FC; border-radius:20px; padding:4px 10px 4px 5px; font-size:11.5px; font-weight:700; }
.ap-emp-btn-name{ font-size:13.5px; font-weight:700; line-height:1.25; }
.ap-emp-num{ font-size:11px; font-weight:700; color:var(--blue); margin-top:3px; font-variant-numeric:tabular-nums; }
.ap-res-code-big{ font-size:16px; font-weight:800; }
.ap-res-desc-small{ font-size:11.3px; color:var(--text-muted); margin-top:2px; }

.ap-scan-btn{ width:100%; background:var(--surface); border:2px solid var(--border); color:#3A4150; font-family:'Aptos','Segoe UI',var(--font); border-radius:14px; padding:18px; font-size:17px; font-weight:700; display:flex; align-items:center; justify-content:center; text-align:center; gap:10px; cursor:pointer; }
.ap-scan-btn:hover{ background:var(--surface-2); border-color:var(--amber); }

/* single-screen Apontamento home */
.ap-main-actions{ display:flex; gap:20px; flex-wrap:wrap; align-items:stretch; }
.ap-main-actions > button{ flex:1 1 280px; }
.ap-big-btn{ border:none; border-radius:24px; color:#fff; font-weight:800; font-size:24px; letter-spacing:0.3px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; cursor:pointer; padding:34px 24px; min-height:260px; position:relative; box-shadow:0 14px 30px rgba(20,26,46,0.15); font-family:var(--font); }
.ap-big-btn:hover{ filter:brightness(1.05); }
.ap-big-icon{ width:68px; height:68px; border-radius:50%; background:rgba(255,255,255,0.22); display:flex; align-items:center; justify-content:center; }
.ap-big-sub{ font-size:13.5px; font-weight:600; opacity:.92; letter-spacing:0; }
.ap-btn-green{ background:linear-gradient(135deg,#2ED47A,#0E7C39); }
.ap-btn-red{ background:linear-gradient(135deg,#FF6B6B,#C0322F); }
.ap-big-badge{ position:absolute; top:16px; right:16px; background:#fff; color:var(--red-dark); font-weight:800; font-size:14px; padding:6px 13px; border-radius:20px; }
@media(max-width:700px){ .ap-main-actions{ flex-direction:column; } .ap-big-btn{ min-height:200px; } }
.ap-or-divider{ text-align:center; color:var(--text-faint); font-size:12.5px; font-weight:600; margin:14px 0; }
.ap-order-input{ font-size:22px !important; font-weight:800; text-align:center; text-transform:uppercase; padding:16px !important; border-width:2px !important; letter-spacing:1px;}
.ap-recent-ops{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.ap-op-chip{ background:var(--surface-2); border:1.5px solid var(--border); border-radius:20px; padding:7px 14px; font-size:12.5px; font-weight:700; cursor:pointer; color:var(--text); }
.ap-op-chip:hover{ background:var(--surface-3); }

.ap-start-btn{ width:100%; background:linear-gradient(135deg,#22C168,#0E7C39); color:#fff; border:none; border-radius:16px; padding:20px; font-size:19px; font-weight:800; display:flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; box-shadow:0 10px 24px rgba(23,160,86,0.3); margin-bottom:8px; }
.ap-start-btn:hover{ filter:brightness(1.05); }

.ap-open-title{ font-size:18px; font-weight:800; margin:26px 0 14px 0; display:flex; align-items:center; gap:9px;}
.ap-punch-card{ background:#FFFBF0; border:2px solid #FBE7B0; border-radius:18px; padding:18px 20px; margin-bottom:16px; }
.ap-punch-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:16px;}
.ap-punch-op{ font-size:19px; font-weight:800; color:var(--amber-dark); }
.ap-punch-meta{ font-size:13px; color:var(--text-muted); margin-top:3px; }
.ap-qty-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
@media(max-width:640px){ .ap-qty-grid{ grid-template-columns:1fr; } }
.ap-qty-label{ display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.4px; margin-bottom:8px; }
.ap-stepper{ display:flex; align-items:center; gap:8px; }
.ap-stepper button{ width:44px; height:44px; border-radius:12px; border:none; background:var(--surface-3); font-size:20px; font-weight:800; cursor:pointer; color:var(--text); flex-shrink:0; }
.ap-stepper button:hover{ background:#DCE2EE; }
.ap-stepper input{ text-align:center; font-size:20px; font-weight:800; padding:10px 4px; }
.ap-quick-row{ display:flex; gap:6px; margin-top:8px; }
.ap-quick-btn{ flex:1; background:var(--surface-2); border:1px solid var(--border); border-radius:9px; padding:6px; font-size:11.5px; font-weight:700; cursor:pointer; color:var(--text-muted); }
.ap-quick-btn:hover{ background:var(--surface-3); }
.ap-end-btn{ width:100%; background:linear-gradient(135deg,#FF7A59,#D6412A); color:#fff; border:none; border-radius:14px; padding:16px; font-size:16px; font-weight:800; display:flex; align-items:center; justify-content:center; gap:9px; cursor:pointer; }
.ap-end-btn:hover{ filter:brightness(1.05); }

/* bar chart — vivid with glow */
.hbar-chart{ display:flex; align-items:flex-end; gap:6px; height:160px; padding-top:10px; }
.hbar-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.hbar{ width:100%; background:linear-gradient(180deg, #FF9A3D 0%, #FF4D6A 55%, #8B3FE8 100%); border-radius:6px 6px 3px 3px; min-height:3px; box-shadow:0 0 12px rgba(255,77,106,0.45); position:relative; }
.hbar::after{ content:""; position:absolute; top:0; left:0; right:0; height:40%; background:linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0)); border-radius:6px 6px 0 0; }
.hbar-label{ font-size:9.5px; color:var(--text-faint); margin-top:4px; font-weight:600; }

/* progress — vivid gradient with glow */
.progress-track{ height:10px; background:var(--surface-3); border-radius:20px; overflow:hidden; box-shadow:inset 0 1px 3px rgba(0,0,0,0.08); }
.progress-fill{ height:100%; background:linear-gradient(90deg, #4F8CFF, #8B5CF6, #FF4D9E); border-radius:20px; transition:width .4s; box-shadow:0 0 10px rgba(139,92,246,0.55); }

.rank-row{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); position:relative; }
.rank-row:last-child{ border-bottom:none; }
.rank-num{ font-weight:800; color:var(--text-faint); font-size:14px; width:20px; flex-shrink:0; }
.rank-name{ flex:1; font-size:12.5px; font-weight:700; z-index:1; }
.rank-val{ font-size:12.5px; color:#fff; font-weight:800; z-index:1; background:linear-gradient(90deg,#8B5CF6,#4F8CFF); padding:3px 10px; border-radius:20px; box-shadow:0 2px 8px rgba(139,92,246,0.4); }
.rank-bar-track{ position:absolute; left:30px; right:0; bottom:2px; height:4px; background:var(--surface-3); border-radius:4px; overflow:hidden; }
.rank-bar-fill{ height:100%; background:linear-gradient(90deg,#4F8CFF,#8B5CF6); border-radius:4px; }

/* gauge (SVG circular indicator) */
.gauge-wrap{ display:flex; align-items:center; justify-content:center; padding:6px 0; filter:drop-shadow(0 6px 14px rgba(139,92,246,0.25)); }

/* donut chart (orders by status) */
.donut-row{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.donut-outer{ width:132px; height:132px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 10px 24px rgba(20,26,46,0.18); }
.donut-inner{ width:86px; height:86px; border-radius:50%; background:var(--surface); display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:inset 0 2px 8px rgba(0,0,0,0.1); }
.donut-total{ font-size:24px; font-weight:800; letter-spacing:-0.5px; }
.donut-sub{ font-size:10px; color:var(--text-faint); font-weight:700; text-transform:uppercase; letter-spacing:0.4px; }
.donut-legend{ display:flex; flex-direction:column; gap:9px; }
.donut-legend-row{ display:flex; align-items:center; gap:9px; font-size:12.5px; font-weight:700; }
.donut-legend-dot{ width:12px; height:12px; border-radius:4px; flex-shrink:0; box-shadow:0 2px 6px rgba(0,0,0,0.25); }
.donut-legend-val{ margin-left:auto; color:var(--text-muted); font-weight:800; }



/* employee photo zoom */

.photo-zoom-image-wrap{ position:relative; }

.photo-zoom-overlay{ position:fixed; inset:0; background:rgba(8,13,24,.82); backdrop-filter:blur(7px); display:none; align-items:center; justify-content:center; z-index:260; padding:24px; }
.photo-zoom-overlay.open{ display:flex; animation:photoZoomFade .18s ease; }
.photo-zoom-dialog{ width:min(92vw,500px); background:var(--surface); border:1px solid rgba(255,255,255,.2); border-radius:22px; box-shadow:0 28px 80px rgba(0,0,0,.48); overflow:hidden; position:relative; animation:photoZoomIn .2s ease; }
.photo-zoom-image-wrap{ background:#ECEDEF; aspect-ratio:1/1; overflow:hidden; }
.photo-zoom-image-wrap[data-letters]::after{ content:attr(data-letters); position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:64px; font-weight:800; }
.photo-zoom-image{ width:100%; height:100%; display:block; object-fit:cover; object-position:center center; image-rendering:auto; background:#ECEDEF; }
.photo-zoom-info{ padding:17px 20px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.photo-zoom-name{ font-size:20px; font-weight:800; letter-spacing:-.25px; }
.photo-zoom-role{ color:var(--text-muted); margin-top:2px; font-size:13px; }
.photo-zoom-meta{ color:var(--blue-dark); background:#EAF1FE; border:1px solid #D3E2FC; border-radius:20px; padding:6px 11px; font-size:11.5px; font-weight:800; white-space:nowrap; }
.photo-zoom-close{ position:absolute; top:13px; right:13px; z-index:2; width:40px; height:40px; border:1px solid rgba(255,255,255,.48); border-radius:50%; background:rgba(14,20,36,.72); color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; cursor:pointer; box-shadow:0 5px 18px rgba(0,0,0,.22); }
.photo-zoom-close:hover{ background:rgba(14,20,36,.92); }
@keyframes photoZoomFade{ from{opacity:0} to{opacity:1} }
@keyframes photoZoomIn{ from{opacity:0; transform:scale(.96) translateY(8px)} to{opacity:1; transform:none} }
@media(max-width:620px){ .photo-zoom-overlay{padding:12px}.photo-zoom-dialog{border-radius:17px}.photo-zoom-info{align-items:flex-start;flex-direction:column}.photo-zoom-name{font-size:18px} }

/* scanner */
.scanner-box{ position:relative; width:100%; aspect-ratio:1; background:#000; border-radius:12px; overflow:hidden; }
.scanner-box video{ width:100%; height:100%; object-fit:cover; }
.scanner-frame{ position:absolute; inset:14%; border:2px solid var(--blue); border-radius:10px; box-shadow:0 0 0 1000px rgba(0,0,0,0.35); pointer-events:none; }
.scanner-status{ text-align:center; font-size:12px; color:var(--text-muted); margin-top:10px; }

/* toast */
.toast-wrap{ position:fixed; bottom:20px; right:20px; z-index:200; display:flex; flex-direction:column; gap:8px; }
.toast{ background:var(--text); color:#fff; border-left:3px solid var(--blue); padding:11px 16px; border-radius:9px; font-size:12.5px; box-shadow:0 6px 18px rgba(0,0,0,0.25); min-width:220px; animation:toastin .2s ease; }
.toast.success{ border-left-color:var(--green); }
.toast.error{ border-left-color:var(--red); }
@keyframes toastin{ from{opacity:0; transform:translateX(20px);} to{opacity:1; transform:none;} }

.empty-state{ text-align:center; padding:50px 20px; color:var(--text-faint); }
.empty-state .ic{ margin-bottom:10px; opacity:.5; display:flex; justify-content:center;}

.editable-td input{ background:transparent; border:1px solid transparent; padding:5px 7px; border-radius:6px; }
.editable-td input:hover{ border-color:var(--border); }
.editable-td input:focus{ background:var(--surface-2); border-color:var(--blue); }

.icon-btn{ background:none; border:none; color:var(--text-muted); cursor:pointer; padding:4px 6px; border-radius:6px; display:inline-flex; }
.icon-btn:hover{ color:var(--text); background:var(--surface-3); }
.icon-btn.danger:hover{ color:var(--red); }

.qr-preview{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px; background:#fff; border-radius:12px; border:1px solid var(--border); }
.qr-preview .op-code{ font-weight:700; color:#111; font-size:14px; }

@media(max-width:880px){
  .sidebar{ position:fixed; left:0; top:0; bottom:0; transform:translateX(-100%); transition:transform .2s; width:246px; }
  .sidebar.open{ transform:translateX(0); box-shadow:20px 0 40px rgba(0,0,0,0.3); }
  .hamburger{ display:inline-block; }
  .content{ padding:16px; }
  .topbar{ padding:0 16px; }
  .cadastro-select-bar{ left:0; padding:12px 16px; }
}

/* ===== Print: Ordem de Produção (A4) ===== */
#printArea{ display:none; }
.print-page{ font-family: Arial, Helvetica, sans-serif; color:#111; width:100%; box-sizing:border-box; }
.print-top-row{ display:flex; justify-content:space-between; align-items:flex-start; border-bottom:3px solid #111; padding-bottom:10px; margin-bottom:16px; gap:16px; }
.print-brand{ font-size:20px; font-weight:800; letter-spacing:1px; }
.print-doc-title{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#444; margin-top:2px; }
.print-op-number{ font-size:28px; font-weight:800; margin-top:8px; letter-spacing:0.5px; }
.print-qr-block{ display:flex; flex-direction:column; align-items:center; gap:6px; border:1px solid #bbb; padding:10px; width:132px; flex-shrink:0; }
.print-qr-label{ font-size:10.5px; font-weight:700; }
.print-info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:11px 26px; margin-bottom:18px; }
.print-label{ display:block; font-size:9px; text-transform:uppercase; letter-spacing:0.5px; color:#666; font-weight:700; }
.print-value{ display:block; font-size:13px; font-weight:700; color:#111; margin-top:2px; }
.print-section-title{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; margin:14px 0 8px 0; border-top:1px solid #ccc; padding-top:12px; }
.print-table{ width:100%; border-collapse:collapse; font-size:10.5px; }
.print-table th, .print-table td{ border:1px solid #999; padding:9px 6px; text-align:left; height:22px; }
.print-table th{ background:#eee; font-size:9px; text-transform:uppercase; letter-spacing:0.3px; }
.print-footer{ margin-top:20px; font-size:8.5px; color:#777; text-align:center; }

.field-hint{ color:var(--text-muted); font-weight:500; font-size:12px; }
.password-field{ position:relative; }
.password-field input{ width:100%; padding-right:40px; }
.eye-btn{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:28px; height:28px; padding:0; border:none; border-radius:6px;
  background:transparent; color:var(--text-muted); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}
.eye-btn:hover{ color:var(--text); background:var(--surface-3); }
.csv-actions{ display:flex; gap:6px; align-items:center; }
.csv-actions[hidden]{ display:none !important; }
.notif-wrap{ position:relative; }
.notif-btn{ position:relative; width:36px; height:36px; border:1px solid var(--border); background:var(--surface); }
.notif-badge{
  position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px;
  border-radius:99px; background:var(--red); color:#fff; font-size:10px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.notif-panel{
  position:absolute; right:0; top:42px; width:min(360px, 82vw); max-height:420px; overflow:auto;
  background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); z-index:40;
}
.notif-head{ display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border); }
.notif-item{ display:block; width:100%; text-align:left; background:transparent; border:none; border-bottom:1px solid var(--border); padding:10px 12px; cursor:pointer; font:inherit; color:inherit; }
.notif-item b, .notif-item span{ display:block; }
.notif-item span{ color:var(--text-muted); font-size:12.5px; margin-top:2px; }
.notif-item.unread{ background:#EAF1FE; }
.notif-empty{ padding:14px 12px; color:var(--text-muted); }
.support-board{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; align-items:start; }
.support-col{ background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:10px; min-height:160px; }
.support-col-title{ font-weight:800; font-size:13px; }
.support-card{ background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px; margin-top:8px; }
.support-reply{ margin-top:8px; padding:8px 10px; border-radius:8px; background:#EAF1FE; font-size:13px; }
.support-actions{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.support-list{ display:grid; gap:10px; margin-top:14px; }
@media(max-width:880px){ .support-board{ grid-template-columns:1fr; } }
@media print{
  body *{ visibility:hidden; }
  #printArea, #printArea *{ visibility:visible; }
  #printArea{ display:block !important; position:absolute; left:0; top:0; width:100%; }
  @page{ size:A4; margin:7mm; }
}
