:root {
  --sif-brand: #1268a8; --sif-brand-2: #0d568d; --sif-green: #3ca536;
  --sif-bg: #e9eef2; --sif-panel: #fff; --sif-text: #243746;
  --sif-muted: #657784; --sif-line: #c8d2d9; --sif-radius: 4px;
  --sif-shadow: 0 4px 14px rgba(31,58,77,.09);
}
body.sif-page { min-height:100vh; background:linear-gradient(135deg,#e6edf1 0,#f6f8f9 55%,#e4ecef 100%); color:var(--sif-text); overflow-x:clip; }
#app { min-height:100vh; }
.sif-topbar { height:44px; padding:0 16px 0 14px; flex-wrap:nowrap; background:linear-gradient(90deg,#123c58,#155d83 58%,#1d6d91); border-bottom:1px solid #0c344c; box-shadow:0 1px 6px rgba(8,35,52,.3); }
.sif-brand { display:flex; align-items:center; gap:10px; font-size:14px; letter-spacing:.7px; }
.sif-brand img { width:25px; height:25px; object-fit:contain; filter:drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.sif-brand span { display:flex; align-items:baseline; gap:10px; }
.sif-brand small { font-size:11px; letter-spacing:.2px; color:#d2e2ec; }
.sif-userchip { height:44px; gap:10px; }
#logoutButton,#installPwaButton { height:27px; padding:0 11px; color:#fff; border:1px solid rgba(255,255,255,.3); border-radius:3px; background:rgba(255,255,255,.1); }
#logoutButton:hover,#installPwaButton:hover { background:rgba(255,255,255,.2); }
#installPwaButton { border-color:rgba(126,226,119,.75); background:rgba(55,160,47,.35); font-weight:700; }
.sif-userchip>i { width:42px; height:44px; display:grid; place-items:center; font-style:normal; font-size:15px; color:#eaf3f7; }
.sif-userchip>i.window-close { font-size:21px; }
.sif-userchip>i:hover { background:rgba(255,255,255,.12); }.sif-userchip>i.window-close:hover{background:#c42b1c}
#menubar { top:0; gap:0; padding:0 12px; min-height:43px; align-items:stretch; background:linear-gradient(#fff,#edf2f4); border-bottom:1px solid #929da3; box-shadow:0 2px 6px rgba(31,58,77,.08); }
#menubar button { position:relative; border-radius:0; padding:0 13px; min-height:42px; color:#405767; font-size:12.5px; font-weight:600; }
#menubar button:hover { color:#105c8f; background:linear-gradient(#f9fcfd,#dce9ef); }
  #menubar button.active { color:#0e4d23; background:linear-gradient(#f4faf3,#dbf0dc); box-shadow:inset 0 -4px 0 var(--sif-green); }
#menubar button.sif-no-access,
#menubar button.sif-no-access:hover,
button[data-perm].sif-no-access,
button[data-perm].sif-no-access:hover {
  filter:grayscale(1);
  opacity:.48;
  color:#7a878f !important;
  background:#e9edef !important;
  border-color:#a8aeb2 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  cursor:not-allowed !important;
}
button[data-perm].sif-no-access { outline:none !important; }
main { padding:14px 16px 24px; max-width:1800px; margin:auto; }
.screen { padding:0; animation:sifReveal .18s ease-out; }
.screen > :not(.screen-title) {
  width: auto;
  max-width: calc(100% - 24px);
  margin-left: 12px;
  margin-right: 12px;
  box-sizing: border-box;
}
@keyframes sifReveal { from{opacity:.35;transform:translateY(3px)} to{opacity:1;transform:none} }
.screen-title { min-height:58px; padding:12px 15px 11px 18px; display:flex; flex-direction:column; justify-content:center; gap:3px; border:1px solid #9ea8ae; border-left:0; border-top:0; border-radius:0 4px 0 0; background:linear-gradient(100deg,#fff,#eef5f6); box-shadow:inset 4px 0 0 var(--sif-green),0 2px 8px rgba(31,58,77,.07); }
.screen-title b { color:#174f70; font-size:18px; letter-spacing:.1px; }.screen-title span{color:#6c7c87;font-size:12px}
.sif-status-link { cursor:pointer; }
.data-table tbody tr.sif-target-row td { background:#fff4d6!important; box-shadow:inset 0 1px #dfb64b,inset 0 -1px #dfb64b; }
.data-table tbody tr.sif-target-row td:first-child { border-left:3px solid #d49b16; }
.toolbar { min-height:48px; margin:0 0 12px; padding:8px 10px; display:flex; align-items:center; gap:7px; border:1px solid #9ea8ae; border-top:0; background:linear-gradient(#fdfefe,#e7edef); box-shadow:0 3px 8px rgba(31,58,77,.06); }
.toolbar button,.modal-actions button { min-height:30px; padding:5px 12px; border:1px solid #9daab2; border-radius:3px; color:#294b60; background:linear-gradient(#fff,#e4eaed); box-shadow:inset 0 1px #fff,0 1px 2px rgba(0,0,0,.07); font:600 12px 'Segoe UI',sans-serif; }
.toolbar button { display:inline-flex; align-items:center; gap:6px; }
.toolbar button .btn-ico { width:14px; height:14px; flex:0 0 auto; }
.sif-actions button .btn-ico { display:block; width:14px; height:14px; }
.sif-actions button.icon-danger { color:#ad2d25; border-color:#d9aaa6; background:linear-gradient(#fff,#f8e5e3); }
.sif-actions button.icon-danger:hover { color:#861d17; border-color:#bd625b; background:linear-gradient(#fff4f3,#efd0cd); }
.toolbar button:hover,.modal-actions button:hover { border-color:#5784a0; background:linear-gradient(#fff,#dceaf0); }
.toolbar button.primary,.modal-actions button.primary { border-color:#31852d; color:#fff; background:linear-gradient(#55ba4c,#34972e); text-shadow:0 1px rgba(0,0,0,.18); }
.toolbar button.danger,.modal-actions button.danger { border-color:#b7463d; color:#9c251e; background:linear-gradient(#fff,#f4dddd); }
.sif-kpis { gap:10px; }
.sif-kpis>div { position:relative; overflow:hidden; min-height:92px; padding:15px 16px 13px; border:1px solid #a4adb2; border-radius:4px; background:linear-gradient(145deg,#fff,#f4f7f8); box-shadow:var(--sif-shadow); }
.sif-kpis>div::after { content:''; position:absolute; left:0; right:0; bottom:0; height:3px; background:linear-gradient(90deg,var(--sif-green),#68bd60); }
.sif-kpis>div>b { display:block; color:#173f58; font-size:23px; letter-spacing:-.4px; margin-bottom:5px; }.sif-kpis>div>small{display:block;color:#627683;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.35px}
.sif-panel { margin:0 0 14px; padding:12px; border:1px solid #a5aeb3; border-radius:4px; background:#fff; box-shadow:var(--sif-shadow); }
.sif-panel>.panel-head { margin:-12px -12px 11px; padding:9px 12px; border-bottom:1px solid #a5aeb3; color:#244f69; font-weight:700; background:linear-gradient(#f8fafb,#e4eaed); }
.sif-equip-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(255px,1fr)); gap:10px; }
.sif-card { border-color:#a5aeb3; border-radius:4px; box-shadow:var(--sif-shadow); }
.sif-card-header { margin:-14px -14px 12px; padding:9px 12px; border-bottom:1px solid #a5aeb3; background:linear-gradient(#f8fafb,#e4eaed); }
.sif-card-header h3 { color:#244f69; font-size:13px; }
.sif-alert { min-height:38px; border:1px solid #ead29c; border-left:4px solid #d89924; border-radius:3px; background:linear-gradient(90deg,#fff9ea,#fffdf7); }
.sif-alert.red { border-color:#e2b5b2; border-left-color:#c84b42; background:linear-gradient(90deg,#fff1f0,#fffafa); }
.sif-alert b { min-width:210px; color:#304e60; }.sif-alert span{color:#5f6e77}
.sif-equip-card { border:1px solid #a5aeb3; border-left:4px solid var(--sif-green); border-radius:4px; background:linear-gradient(145deg,#fff,#f2f6f7); box-shadow:0 3px 10px rgba(31,58,77,.08); transition:.16s ease; }
.sif-equip-card:hover { transform:translateY(-2px); border-color:#83a4b7; box-shadow:0 7px 18px rgba(31,58,77,.14); }
.sif-dashboard-section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:16px 2px 7px; padding:0 2px; }
.sif-dashboard-section-title b { color:#244f69; font-size:14px; }
.sif-dashboard-section-title span { color:#71828c; font-size:11px; }
.sif-dashboard-alert-panel { margin-bottom:0; }
.sif-dashboard-alert-panel .panel-head > b,
.sif-dashboard-fleet-panel .panel-head > b { min-width:24px; padding:2px 7px; border:1px solid #99a9b2; border-radius:10px; color:#245a77; background:#fff; font-size:10.5px; text-align:center; }
.sif-dashboard-fleet-panel { padding:0; }
.sif-dashboard-fleet-panel > .panel-head { margin:0; }
.sif-dashboard-fleet-panel .sif-table-wrap { border:0; border-radius:0; box-shadow:none; }
.sif-dashboard-table th { position:sticky; top:0; z-index:3; }
.sif-status-heading { width:100%; min-width:92px; display:flex; align-items:center; justify-content:space-between; gap:10px; white-space:nowrap; }
.sif-filter-icon { position:relative; flex:0 0 19px; width:19px; height:19px; margin-left:auto; display:grid; place-items:center; border:1px solid transparent; border-radius:3px; color:#628091; background:transparent; cursor:pointer; }
.sif-filter-icon:hover { border-color:#9fb3bf; color:#245b78; background:rgba(255,255,255,.65); }
.sif-filter-icon.active { border-color:#6e98ad; color:#1d6588; background:#e7f2f7; }
.sif-filter-icon svg { width:12px; height:12px; pointer-events:none; }
.sif-filter-icon select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.sif-dashboard-equipment[hidden] { display:none !important; }
.sif-dashboard-equipment { cursor:pointer; }
.sif-dashboard-equipment:hover .sif-dashboard-open { color:#19723a; font-weight:800; }
.sif-dashboard-status { white-space:nowrap; }
.sif-dashboard-status .badge + .badge { margin-left:4px; }
.sif-dashboard-open { color:#39728f!important; white-space:nowrap; font-size:11px; }
.sif-dashboard-content { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(260px,30%) minmax(0,70%); gap:12px; }
#screen-painel.active { display:flex; flex-direction:column; height:100%; min-height:0; overflow:hidden; }
#screen-painel > .screen-title,
#screen-painel > .toolbar,
#screen-painel > .sif-kpis { flex:0 0 auto; }
#screen-painel > .screen-title { height:38px; min-height:38px; max-height:38px; box-sizing:border-box; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:4px 12px 4px 18px; gap:10px; }
#screen-painel > .screen-title b { font-size:13px; line-height:1.15; }
#screen-painel > .screen-title span { grid-column:2; font-size:10.5px; line-height:1.15; text-align:center; white-space:nowrap; }
#screen-painel .sif-kpis { margin-bottom:8px; }
#screen-painel .sif-kpis>div { min-height:0; padding:7px 14px 8px; }
#screen-painel .sif-kpis>div>b { font-size:19px; margin-bottom:2px; }
#screen-painel .sif-kpis>div>small { font-size:10px; }
#screen-painel .sif-dashboard-content > .sif-panel { min-height:0; height:100%; margin:0; overflow:hidden; }
.sif-dashboard-content .panel-head span { display:flex; flex-direction:column; gap:2px; }
.sif-dashboard-content .panel-head small { color:#75858f; font-size:10px; font-weight:400; }
.sif-alert-filters { display:flex; align-items:center; gap:3px; margin-left:auto; }
.sif-alert-filters select { height:24px; max-width:142px; padding:2px 22px 2px 6px; border:1px solid #9ea8ae; border-radius:3px; color:#405d6d; background:#fff; font:600 10.5px 'Segoe UI',sans-serif; }
.sif-alert-filters button { min-height:24px; padding:3px 7px; border:1px solid #9ea8ae; border-radius:3px; color:#526a78; background:#fff; font:600 10.5px 'Segoe UI',sans-serif; cursor:pointer; }
.sif-alert-filters button:hover { border-color:#7895a5; background:#f2f7f9; }
.sif-alert-filters button.active { border-color:#397b9d; color:#fff; background:#397b9d; }
.sif-dashboard-alert-panel { display:flex; flex-direction:column; }
.sif-dashboard-alert-panel > .panel-head { flex:0 0 auto; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:7px 8px; }
.sif-dashboard-alert-panel > .panel-head > span { grid-column:1; min-width:0; }
.sif-dashboard-alert-panel > .panel-head > b { grid-column:2; grid-row:1; }
.sif-dashboard-alert-panel > .panel-head > .sif-alert-filters { grid-column:1 / -1; grid-row:2; width:100%; margin-left:0; flex-wrap:wrap; }
.sif-dashboard-alert-panel > .sif-alerts { flex:1 1 auto; min-height:0; overflow:auto; padding:1px 4px 4px 0; align-content:start; grid-auto-rows:max-content; gap:6px; }
.sif-dashboard-alert-panel .sif-alert { display:block; min-height:0; height:auto; padding:9px 10px 10px; overflow:visible; line-height:1.4; }
.sif-dashboard-alert-panel .sif-alert[hidden] { display:none !important; }
.sif-dashboard-alert-panel .sif-alert b { display:block; min-width:0; margin:0 0 4px; line-height:1.3; }
.sif-dashboard-alert-panel .sif-alert span { display:block; line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
.sif-dashboard-fleet-panel { display:flex; flex-direction:column; }
.sif-dashboard-fleet-panel > .panel-head { flex:0 0 auto; }
.sif-dashboard-fleet-panel .sif-table-wrap { flex:1 1 auto; height:auto; min-height:0; max-height:none; }
@media(max-width:1000px){#screen-painel.active{overflow:auto}.sif-dashboard-content{display:block;flex:none}.sif-dashboard-content>.sif-panel{height:auto!important;margin-bottom:12px!important}.sif-dashboard-alert-panel>.sif-alerts{max-height:260px}.sif-dashboard-fleet-panel .sif-table-wrap{max-height:420px}}
.sif-table-wrap { border:1px solid #9aa4aa; border-radius:3px; background:#fff; box-shadow:0 3px 12px rgba(31,58,77,.07); max-height:calc(100vh - 210px); max-width:100%; overflow:auto; }
#app:has(#screen-apontamentos.active) { height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
body:has(#screen-apontamentos.active) { height:100dvh; overflow:hidden; }
#app:has(#screen-apontamentos.active) > .sif-topbar,
#app:has(#screen-apontamentos.active) > #menubar { flex:0 0 auto; }
body:has(#screen-apontamentos.active) #menubar { position:relative; top:auto; scrollbar-width:none; }
body:has(#screen-apontamentos.active) #menubar::-webkit-scrollbar { display:none; }
main:has(#screen-apontamentos.active) { flex:1 1 auto; width:100%; height:auto; min-height:0; padding-bottom:10px; overflow:hidden; box-sizing:border-box; }
#screen-apontamentos.active { display:flex; flex-direction:column; height:100%; min-height:0; }
#screen-apontamentos .screen-title, #screen-apontamentos .toolbar { flex:0 0 auto; }
#screen-apontamentos .screen-title { min-height:42px; padding:7px 14px 6px 18px; }
#screen-apontamentos .screen-title b { font-size:14px; }
#screen-apontamentos .screen-title span { font-size:11px; }
#screen-equipamentos .screen-title { min-height:42px; padding:7px 14px 6px 18px; }
#screen-equipamentos .screen-title b { font-size:14px; }
#screen-equipamentos .screen-title span { font-size:11px; }
#screen-tacografo .screen-title { height:42px; min-height:42px; max-height:42px; box-sizing:border-box; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:5px 14px 4px 18px; gap:12px; box-shadow:inset 4px 0 0 var(--sif-green),0 2px 8px rgba(31,58,77,.07); }
#screen-tacografo .screen-title b { font-size:14px; }
#screen-tacografo .screen-title span { grid-column:2; font-size:11px; text-align:center; white-space:nowrap; }
#screen-base .screen-title { height:42px; min-height:42px; max-height:42px; box-sizing:border-box; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:5px 14px 4px 18px; gap:12px; box-shadow:inset 4px 0 0 var(--sif-green),0 2px 8px rgba(31,58,77,.07); }
#screen-base .screen-title b { font-size:14px; }
#screen-base .screen-title span { grid-column:2; font-size:11px; text-align:center; white-space:nowrap; }
#screen-orc .screen-title { height:42px; min-height:42px; max-height:42px; box-sizing:border-box; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:5px 14px 4px 18px; gap:12px; box-shadow:inset 4px 0 0 var(--sif-green),0 2px 8px rgba(31,58,77,.07); }
#screen-orc .screen-title b { font-size:14px; }
#screen-orc .screen-title span { grid-column:2; font-size:11px; text-align:center; white-space:nowrap; }
#screen-relatorios .screen-title { height:42px; min-height:42px; max-height:42px; box-sizing:border-box; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:5px 14px 4px 18px; gap:12px; box-shadow:inset 4px 0 0 var(--sif-green),0 2px 8px rgba(31,58,77,.07); }
#screen-relatorios .screen-title b { font-size:14px; }
#screen-relatorios .screen-title span { grid-column:2; font-size:11px; text-align:center; white-space:nowrap; }
#screen-usuarios .screen-title { min-height:42px; padding:7px 14px 6px 18px; }
#screen-usuarios .screen-title b { font-size:14px; }
#screen-usuarios .screen-title span { font-size:11px; }
#screen-permissoes .screen-title { min-height:42px; padding:7px 14px 6px 18px; }
#screen-permissoes .screen-title b { font-size:14px; }
#screen-permissoes .screen-title span { font-size:11px; }
#screen-auditoria .screen-title { min-height:42px; padding:7px 14px 6px 18px; }
#screen-auditoria .screen-title b { font-size:14px; }
#screen-auditoria .screen-title span { font-size:11px; }
#screen-apontamentos .sif-table-wrap { flex:1 1 auto; height:auto; min-height:0; }
table.data-table,table.sif-table { font-size:12px; }
table.data-table th,table.sif-table th { padding:8px 9px; color:#284c62; background:linear-gradient(#f7f9fa,#dfe6e9); border-color:#9fb0bb; text-shadow:0 1px #fff; }
table.data-table td,table.sif-table td { padding:7px 9px; border-color:#97a2aa; color:#354b59; }
table.data-table tbody tr:nth-child(even),table.sif-table tbody tr:nth-child(even){background:#f6f8f9}
table.data-table tbody tr:hover,table.sif-table tbody tr:hover{background:#eaf4f8;box-shadow:none}
.data-table .sif-naoconta { color:#b3261e; font-weight:700; }
.data-table tbody tr.sif-selectable-row { cursor:pointer; }
.data-table tbody tr.sif-selectable-row.selected,
.data-table tbody tr.sif-selectable-row.selected:hover { background:#d8efd9!important; box-shadow:inset 4px 0 #3ca536; }
.data-table tbody tr.sif-selectable-row.selected td { background:#d8efd9!important; color:#173f2a; border-color:#9ab49d; }
.data-table tbody tr.sif-selectable-row.selected td:first-child { box-shadow:inset 4px 0 #3ca536; }
.sif-table-wrap { scrollbar-width:thin; scrollbar-color:#9fb2bd #ffffff; }
.sif-table-wrap::-webkit-scrollbar { height:10px; width:10px; }
.sif-table-wrap::-webkit-scrollbar-track { background:#fff; }
.sif-table-wrap::-webkit-scrollbar-thumb { background:#9fb2bd; border-radius:5px; border:2px solid #fff; }
.sif-table-wrap::-webkit-scrollbar-thumb:hover { background:#7d94a3; }
.sif-table-wrap table.data-table thead th,
.sif-table-wrap table.sif-table thead th {
  position:sticky;
  top:0;
  z-index:12;
  background-color:#e8eef1;
  background-image:linear-gradient(#f7f9fa,#dfe6e9);
  background-clip:border-box;
  box-shadow:inset 0 -1px 0 #aebbc3,0 1px 0 #aebbc3;
}
table.data-table tfoot td,table.data-table tfoot th { position:sticky; bottom:0; z-index:5; background:#edf1f4; border-top:1px solid #aeb9c0; border-bottom:0; color:#284c62; font-weight:700; box-shadow:0 -2px 5px rgba(31,58,77,.10); }
table.data-table tfoot td:first-child,table.data-table tfoot th:first-child,
table.data-table tfoot td:last-child,table.data-table tfoot th:last-child { box-shadow:0 -2px 5px rgba(31,58,77,.10); }
table.data-table tfoot td b,table.data-table tfoot th b { color:#173f58; font-size:13px; }
table.data-table.sif-apontamentos-grid tfoot td {
  bottom:0;
  padding-top:9px;
  padding-bottom:9px;
  background:linear-gradient(#d5e7f0,#b7cfdd);
  border-top:3px solid #315f7a;
  border-bottom:2px solid #315f7a;
  border-left:1px solid #9fb3bf;
  border-right:1px solid #9fb3bf;
  color:#0d3853;
  font-size:12.5px;
  font-weight:800;
  text-shadow:0 1px #fff;
  box-shadow:0 -3px 7px rgba(31,58,77,.16);
}
#screen-apontamentos .sif-table-wrap { overflow-x:hidden; overflow-y:auto; scrollbar-gutter:auto; }
#screen-apontamentos .sif-table-wrap::after { display:none; }
.sif-horizontal-scroll{display:block!important;position:relative;flex:0 0 6px;width:100%;height:6px;min-height:6px;box-sizing:border-box;border-left:1px solid #9aa4aa;border-right:1px solid #9aa4aa;background:#dfe7eb;cursor:default;overflow:hidden}
.sif-horizontal-scroll[hidden]{display:none!important}
th[data-filter] { position: relative; cursor: pointer; }
table.data-table th[data-filter] { user-select:none; }
table.data-table th.sif-col-drag-source { opacity:.55; }
table.data-table th.sif-col-drop-before::before,
table.data-table th.sif-col-drop-after::after { content:""; position:absolute; top:0; bottom:0; z-index:80; width:3px; background:#2b7da8; pointer-events:none; }
table.data-table th.sif-col-drop-before::before { left:-2px; }
table.data-table th.sif-col-drop-after::after { right:-2px; }
body.sif-dragging-column, body.sif-dragging-column * { cursor:grabbing!important; }
.sif-col-filter-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 5px; padding: 0; vertical-align: middle; color: #7d94a3; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
.sif-col-filter-btn svg { width: 12px; height: 12px; }
.sif-col-filter-btn:hover { color: #105c8f; border-color: #9fb3bf; background: #fff; }
.sif-col-filter-btn.active { color: #0e4d23; border-color: #9ccc9e; background: #dbf0dc; }
.ap-extra-filters { margin-top:6px; }
.sif-col-filter-menu { position: absolute; top: calc(100% + 2px); left: 0; z-index: 60; min-width: 230px; max-width: 300px; background: #fff; border: 1px solid #9fb3bf; border-radius: 4px; box-shadow: 0 10px 28px rgba(7,25,37,.25); padding: 8px; font-weight: 400; }
.sif-col-filter-menu > input[type="search"] { width: 100%; box-sizing: border-box; min-height: 28px; margin-bottom: 6px; border: 1px solid #9faeb7; border-radius: 3px; background: #fff; font-size: 12px; padding: 3px 8px; color: #243746; }
.sif-col-filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow: auto; margin-bottom: 8px; background: #fff; }
.sif-col-filter-list label { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.4; color: #354b59; background: #fff; padding: 3px 4px; border-radius: 3px; cursor: pointer; min-width: 0; }
.sif-col-filter-list label:hover { background: #eaf4f8; }
.sif-col-filter-list input[type="checkbox"] { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; padding: 0; }
.sif-col-filter-list label span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sif-col-filter-list label em { flex:0 0 auto; min-width:22px; color:#82939d; font-size:10px; font-style:normal; text-align:right; }
.sif-col-filter-date { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.sif-col-filter-date label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #354b59; }
.sif-col-filter-num { display: flex; gap: 8px; margin-bottom: 8px; }
.sif-col-filter-num label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: #657784; }
.sif-col-filter-num input[type="number"] { width: 100%; box-sizing: border-box; min-height: 30px; border: 1px solid #9faeb7; border-radius: 3px; background: #fff; font-size: 12px; padding: 3px 6px; color: #243746; }
.sif-col-filter-date input[type="date"] { min-height: 30px; border: 1px solid #9faeb7; border-radius: 3px; background: #fff; font-size: 12px; padding: 3px 6px; color: #243746; }
.sif-col-filter-foot { display: flex; gap: 6px; justify-content: flex-end; }
.sif-col-filter-foot button { font-size: 11px; font-weight: 600; border: 1px solid #9daab2; border-radius: 3px; background: linear-gradient(#fff,#e4eaed); color: #294b60; padding: 3px 10px; cursor: pointer; }
.sif-col-filter-foot button:hover { border-color: #5784a0; }
.sif-col-filter-presets { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 7px; }
.sif-col-filter-presets button { min-height:24px; padding:2px 7px; border:1px solid #a2aaaf; border-radius:3px; background:#f6f9fa; color:#496374; font:600 10px 'Segoe UI',sans-serif; cursor:pointer; }
.sif-col-filter-presets button:hover { border-color:#7393a5; background:#eaf3f7; color:#174f70; }
.sif-table-filterbar { position:sticky; left:0; z-index:8; display:flex; align-items:center; gap:8px; width:100%; min-height:38px; box-sizing:border-box; padding:5px 7px; border-bottom:1px solid #a8b2b7; background:linear-gradient(#f8fafb,#edf2f4); color:#5a6f7c; }
.sif-table-search { position:relative; display:flex; align-items:center; flex:0 1 310px; min-width:185px; }
.sif-table-search input { width:100%; height:28px; box-sizing:border-box; padding:3px 9px 3px 27px; border:1px solid #929da3; border-radius:4px; background:#fff; color:#243746; font-size:11.5px; }
.sif-table-search input:focus { outline:2px solid rgba(39,117,158,.18); border-color:#5e91ad; }
.sif-table-search-icon { position:absolute; left:8px; z-index:1; color:#66808f; font-size:15px; pointer-events:none; }
.sif-filter-count { flex:0 0 auto; min-width:88px; color:#667b87; font-size:10.5px; font-weight:600; white-space:nowrap; }
.sif-filter-chips { display:flex; align-items:center; gap:4px; flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.sif-filter-chip { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; max-width:230px; min-height:24px; padding:2px 7px; border:1px solid #8db49a; border-radius:12px; background:#e7f3e9; color:#285f36; font:600 10px 'Segoe UI',sans-serif; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sif-filter-chip:hover { border-color:#579168; background:#d9ecdd; }
.sif-filter-chip span { font-size:13px; line-height:1; }
.sif-filter-clear-all { flex:0 0 auto; min-height:27px; padding:3px 9px; border:1px solid #a8b5bc; border-radius:4px; background:#fff; color:#405b6b; font:600 10.5px 'Segoe UI',sans-serif; cursor:pointer; }
.sif-filter-clear-all:hover:not(:disabled) { border-color:#a94d46; background:#fff0ef; color:#922d27; }
.sif-filter-clear-all:disabled { opacity:.45; cursor:default; }
.sif-filter-pagination { display:inline-flex; flex:0 0 auto; align-items:center; gap:6px; margin-left:6px; color:#405b6b; font:600 11px 'Segoe UI',Arial,sans-serif; white-space:nowrap; }
.sif-filter-pagination button { min-width:27px; height:27px; padding:0 7px; font-weight:700; }
.sif-filter-pagination button:disabled { opacity:.45; cursor:default; transform:none; }
.data-table th.sif-col-selected { background:linear-gradient(#dceefd,#bfdaef) !important; color:#0b4669 !important; box-shadow:inset 0 3px #2479aa; }
.data-table td.sif-col-selected { background:#edf6fc !important; box-shadow:inset 1px 0 #c4dfef,inset -1px 0 #c4dfef; }
.sif-column-context-menu { position:fixed; z-index:10050; min-width:220px; padding:5px; border:1px solid #8fa3ae; border-radius:4px; background:#fff; box-shadow:0 9px 28px rgba(17,38,51,.28); color:#294657; font:12px 'Segoe UI',sans-serif; }
.sif-column-context-title { padding:6px 9px; color:#6a7d88; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.25px; }
.sif-column-context-menu button { display:block; width:100%; min-height:29px; padding:5px 9px; border:0; border-radius:3px; background:transparent; color:#294657; font:12px 'Segoe UI',sans-serif; text-align:left; cursor:pointer; }
.sif-column-context-menu button:hover:not(:disabled) { background:#e7f1f7; color:#174f70; }
.sif-column-context-menu button:disabled { color:#a0adb4; cursor:default; }
.sif-column-context-sep { height:1px; margin:4px 2px; background:#d7e0e5; }
@media(max-width:760px){.sif-table-filterbar{flex-wrap:wrap}.sif-table-search{flex:1 1 100%}.sif-filter-chips{order:4;flex-basis:100%}.sif-filter-count{margin-left:auto}}
.sif-subtabs { display: flex; gap: 0; margin: 0 0 12px; border-bottom: 2px solid #9aa4aa; align-items: flex-end; }
.sif-subtabs button { border: 1px solid #9aa4aa; border-bottom: 0; border-radius: 5px 5px 0 0; background: linear-gradient(#f4f7f8, #e2e9ed); color: #405767; font: 600 12.5px 'Segoe UI', sans-serif; padding: 8px 18px; cursor: pointer; margin-bottom: -2px; margin-right: 4px; }
.sif-subtabs button:hover { color: #105c8f; background: linear-gradient(#fff, #dceaf0); }
.sif-subtabs button.active { background: #fff; color: #174f70; border-bottom: 2px solid #fff; box-shadow: inset 0 3px 0 var(--sif-green); }
.sif-subtabs-spacer { flex: 1; }
.sif-acum-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding-left:8px; flex-wrap: wrap; }
.sif-day-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #405767; margin-bottom: 6px; margin-left: 8px; }
.sif-acum-filter .sif-day-filter { margin-bottom: 0; margin-left: 0; }
.sif-acum-filter-hint { font-size: 11.5px; color: #657784; }
.sif-day-filter input[type="date"] { min-height: 30px; border: 1px solid #9faeb7; border-radius: 3px; background: #fff; font-size: 12.5px; padding: 3px 8px; }
.sif-acum-filter .sif-day-filter + .sif-day-filter { margin-left:4px; }
.sif-day-clear { border: 1px solid #b7463d !important; border-radius: 12px !important; background: #fdecea !important; color: #9c251e !important; font-size: 11.5px !important; padding: 3px 10px !important; margin-bottom: 6px !important; margin-right: 0 !important; }
#screen-apontamentos .sif-subtabs { flex:0 0 auto; }
#aponto-tab-lanc:not([hidden]) { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; overflow:hidden; }
#aponto-tab-lanc .sif-table-wrap { flex:1 1 auto; height:auto; min-height:0; max-height:none; }
#aponto-tab-lanc .sif-apontamentos-totals { flex:0 0 auto; }
#aponto-tab-acum:not([hidden]) { display:block; flex:1 1 auto; min-height:0; overflow:auto; }
#aponto-tab-acum .sif-table-wrap { max-height:calc(100vh - 300px); min-height:220px; }
.sif-auth-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 10px; padding:11px 13px; border:1px solid #9ba7ad; border-left:4px solid var(--sif-green); background:linear-gradient(#fbfcfd,#e8eef1); }
.sif-auth-head>div { display:flex; min-width:0; flex-direction:column; gap:3px; }
.sif-auth-head b { color:#194d69; font-size:14px; }
.sif-auth-head span { color:#607681; font-size:11.5px; }
.sif-auth-head button { flex:0 0 auto; min-height:30px; padding:5px 12px; border:1px solid #9daab2; border-radius:3px; color:#294b60; background:linear-gradient(#fff,#e4eaed); box-shadow:inset 0 1px #fff,0 1px 2px rgba(0,0,0,.07); font:600 12px 'Segoe UI',sans-serif; cursor:pointer; }
.sif-auth-head button:hover { border-color:#5784a0; background:linear-gradient(#fff,#dceaf0); }
.sif-auth-head button:disabled { opacity:.7; cursor:wait; }
.sif-auth-head .sif-auth-copy { border-color:#31852d; color:#fff; background:linear-gradient(#55ba4c,#34972e); text-shadow:0 1px rgba(0,0,0,.18); }
.sif-auth-head .sif-auth-copy:hover { border-color:#287327; color:#fff; background:linear-gradient(#61c257,#3a9e34); }
.sif-auth-head-actions { display:flex !important; flex-direction:row !important; gap:8px; }
#aponto-tab-auth:not([hidden]) { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; overflow:hidden; }
#aponto-tab-auth .sif-table-wrap { flex:1 1 auto; height:auto; min-height:220px; max-height:none; overflow:auto; }
.sif-auth-table td { vertical-align:middle; }
.sif-auth-status { display:inline-block; min-width:104px; padding:4px 8px; border:1px solid #aab7be; border-radius:12px; background:#f3f6f7; color:#405767; font-size:10.5px; font-weight:700; text-align:center; white-space:nowrap; }
.sif-auth-status.is-new { background:#eef2f4; color:#60717b; }
.sif-auth-status.is-pending { border-color:#d2a64c; background:#fff6df; color:#805d12; }
.sif-auth-status.is-sent { border-color:#4c91b5; background:#eaf5fb; color:#195f82; }
.sif-auth-status.is-authorized { border-color:#72ad78; background:#e9f6ea; color:#276532; }
.sif-auth-status.is-partial { border-color:#5d93b4; background:#e9f3f9; color:#245e80; }
.sif-auth-status.is-rejected { border-color:#cf7770; background:#fdeceb; color:#912b25; }
.sif-auth-row-actions { min-width:190px; }
.sif-auth-row-actions button { min-height:28px; padding:4px 10px; border:1px solid #9daab2; border-radius:3px; color:#294b60; background:linear-gradient(#fff,#e4eaed); box-shadow:inset 0 1px #fff,0 1px 2px rgba(0,0,0,.07); font:600 11px 'Segoe UI',sans-serif; cursor:pointer; }
.sif-auth-row-actions button:hover { border-color:#5784a0; background:linear-gradient(#fff,#dceaf0); }
.sif-auth-row-actions button:disabled { opacity:.65; cursor:wait; }
.sif-auth-row-actions button+button { margin-left:6px; }
.sif-auth-detail-section { margin-bottom:16px; }
.sif-auth-detail-section h3 { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:#254d63; font-size:14px; }
.sif-auth-detail-section h3 span { min-width:22px; padding:2px 6px; border-radius:10px; background:#e5edf1; font-size:10px; text-align:center; }
.sif-auth-detail-item { margin-bottom:8px; padding:10px 12px; border:1px solid #a5afb4; border-left:4px solid #6d9bb5; border-radius:4px; background:#f8fafb; }
.sif-auth-detail-rejected .sif-auth-detail-item { border-left-color:#c74e47; background:#fff7f6; }
.sif-auth-detail-canceled .sif-auth-detail-item { border-left-color:#7b858b; background:#f4f5f6; }
.sif-auth-detail-authorized .sif-auth-detail-item { border-left-color:#4ba456; background:#f4fbf4; }
.sif-auth-detail-item>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 12px; margin:6px 0; color:#526a77; font-size:11px; }
.sif-auth-detail-item p { margin:4px 0 0; font-size:12px; }
.sif-auth-audit-button span { display:inline-block; min-width:19px; margin-left:5px; padding:1px 6px; border:1px solid #aebac1; border-radius:10px; background:#edf2f4; color:#365568; text-align:center; }
.sif-auth-audit-summary { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; padding:11px 13px; border:1px solid #8fa1a9; border-left:4px solid var(--sif-green); background:#fff; }
.sif-auth-audit-summary b { color:#194d69; font-size:14px; }
.sif-auth-audit-summary span { color:#617681; font-size:11px; }
.sif-auth-audit-table { min-height:210px !important; max-height:min(56vh,520px) !important; }
.sif-auth-audit-table table { min-width:940px; }
.sif-auth-event-result { display:inline-block; padding:3px 7px; border:1px solid #a9b8bf; border-radius:10px; background:#f3f6f7; color:#3d5664; font-size:10.5px; font-weight:700; white-space:nowrap; }
@media(max-width:900px){.sif-auth-head{align-items:flex-start;flex-direction:column}.sif-auth-head-actions{width:100%;flex-wrap:wrap}.sif-auth-head-actions button{flex:1 1 180px;width:auto}}
.sif-acumulado-panel { margin-top: 0; }
@media print {
  #aponto-tab-lanc[hidden], #aponto-tab-acum[hidden], #aponto-tab-auth[hidden] { display: block !important; }
  .sif-subtabs { display: none !important; }
}
.sif-horizontal-scroll-thumb{position:absolute;left:0;top:1px;height:4px;min-width:36px;border-radius:3px;background:#6f8794;cursor:default;will-change:transform}
.sif-horizontal-scroll-thumb:hover{background:#536e7d}
.sif-apontamentos-totals { flex:0 0 auto; margin:0; min-height:30px; padding:5px 10px; border:1px solid #7892a1; border-left:3px solid #315f7a; border-radius:0 0 3px 3px; background:linear-gradient(#e4eff4,#cfdee6); color:#173f58; box-shadow:0 -1px 3px rgba(31,58,77,.10); }
.sif-apontamentos-totals span { padding-right:18px; }
.sif-apontamentos-totals span:first-child { min-width:110px; font-size:12px; }
.sif-apontamentos-totals b { font-size:12.5px; }
.sif-apontamentos-totals .sif-totals-count { margin-left:auto; padding-right:0; color:#4c6574; }
table.data-table.sif-apontamentos-grid tfoot td:first-child { border-left:2px solid #315f7a; }
table.data-table.sif-apontamentos-grid tfoot td:last-child { border-right:2px solid #315f7a; }
table.data-table.sif-apontamentos-grid tfoot td b { color:#0e3853; font-size:14px; }
.sif-alert-topic { margin: 7px 0 12px; }
.sif-alert-topic > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; padding: 5px 8px; border-bottom: 1px solid #a7b1b6; background: #edf2f4; color: #315f7a; font-size: 11px; text-transform: uppercase; letter-spacing: .35px; }
.sif-alert-topic > header span { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #d7e4ea; color: #315f7a; text-align: center; font-size: 10px; }
.sif-totals-bar { display:flex; flex-wrap:wrap; gap:8px 22px; align-items:center; margin-top:8px; padding:9px 12px; border:1px solid #9aa4aa; border-left:4px solid var(--sif-green); border-radius:3px; background:linear-gradient(#f7f9fa,#e8edef); font-size:12.5px; color:#354b59; box-shadow:0 3px 12px rgba(31,58,77,.07); }
.sif-totals-bar span:first-child { font-weight:800; letter-spacing:.4px; color:#244f69; }
.sif-totals-bar b { color:#173f58; }
.badge { border-radius:3px!important; font-weight:700; letter-spacing:.1px; }
.modal-backdrop { backdrop-filter:blur(2px); background:rgba(18,39,53,.5); }
.modal { width:min(820px,calc(100vw - 32px)); border:1px solid #617b8a; border-radius:5px; overflow:hidden; box-shadow:0 22px 60px rgba(7,25,37,.35); }
.modal>header { min-height:42px; padding:0 8px 0 14px; display:flex!important; align-items:center; justify-content:space-between; color:#fff; background:linear-gradient(90deg,#174d6d,#1d698f); }.modal>header h2{margin:0;font-size:14px}.modal>header button{width:38px;height:38px;color:#fff;background:transparent;border:0;font-size:23px}
#modal-body { padding:18px; background:#f4f7f8; }.modal-actions{padding:10px 14px;border-top:1px solid #a5aeb3;background:linear-gradient(#fff,#e7edef)}
.form-grid.sif-form label { color:#3d5665; font-size:12px; }.form-grid.sif-form input,.form-grid.sif-form select,.form-grid.sif-form textarea,.sif-plain-select{min-height:34px;border:1px solid #9faeb7;border-radius:3px;background:#fff;box-shadow:inset 0 1px 2px rgba(25,54,72,.08);font-size:13px}
.form-grid.sif-form select { appearance:none; -webkit-appearance:none; padding-right:30px; cursor:pointer; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294b60' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:13px; }
.form-grid.sif-form input:focus,.form-grid.sif-form select:focus,.form-grid.sif-form textarea:focus{outline:2px solid rgba(60,165,54,.25);border-color:#3ca536}
.sif-fraction-conta{display:block;width:100%;border:1px solid #d5e0e6;border-radius:6px;background:#f6fafb;font-size:12px;color:#24404d}.sif-fraction-conta>span{display:grid;grid-template-columns:90px 1fr auto;gap:10px;padding:6px 10px}.sif-fraction-conta>span+span{border-top:1px solid #e3ebef}.sif-fraction-conta em{font-style:normal;font-weight:400}
.sif-fraction-control{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px}.sif-fraction-percent{display:flex!important;align-items:center!important;gap:5px!important;color:#607582!important;font-size:10px!important}.sif-fraction-percent input{width:70px!important;min-height:28px!important;padding:3px 5px!important}
.form-grid.sif-form > label.sif-vehicle-field-hidden{display:none!important}
.sif-field-warning{display:block;margin-top:4px;color:#a52a22;font-size:10.5px;line-height:1.25}.sif-field-warning[hidden]{display:none}.form-grid.sif-form input.sif-input-invalid{border-color:#c8453c!important;background:#fff2f1!important;outline:2px solid rgba(200,69,60,.12)!important}
.sif-cc-category-tabs{display:flex;gap:3px;margin-left:8px}.sif-cc-category-tabs button{min-height:27px!important;padding:3px 10px!important;font-size:11.5px!important}.sif-cc-category-tabs button.active{border-color:#3b7d4c!important;background:#e2f0e5!important;color:#205b30!important;box-shadow:inset 0 -2px #3b8f4d!important}
.win-select-button { min-height:32px!important; border-radius:3px!important; border-color:#9faeb7!important; background:linear-gradient(#fff,#e7edef)!important; }
.sif-toolbar .sif-select { width:240px; height:32px; flex:0 0 240px; }
.sif-toolbar .sif-select .win-select-button { width:100%; min-width:0; border:1px solid #8fa0ab !important; border-radius:3px !important; background:linear-gradient(#fff,#e7edef) !important; box-shadow:inset 0 1px 2px rgba(25,54,72,.08) !important; }
.sif-info-bar { margin:-1px 0 12px; padding:10px 12px; border:1px solid #a4afb5; border-left:4px solid #4d91b7; border-radius:3px; color:#536b79; background:#f3f8fa; line-height:1.45; }
.sif-plan-summary { display:grid; grid-template-columns:minmax(230px,1fr) 150px minmax(360px,2fr); gap:0; margin:-1px 0 12px; border:1px solid #9ba8b0; border-left:4px solid #438db5; background:#fff; box-shadow:0 2px 8px rgba(31,58,77,.08); }
.sif-plan-summary > div { min-width:0; padding:11px 14px; }
.sif-plan-summary > div + div { border-left:1px solid #b2bbbf; }
.sif-plan-summary-label { display:block; margin-bottom:4px; color:#657986; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.45px; }
.sif-plan-summary-main b { display:block; color:#174f70; font-size:15px; }
.sif-plan-summary-main small { display:block; margin-top:3px; overflow:hidden; color:#768792; font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
.sif-plan-stat { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; background:#f3f8fa; }
.sif-plan-stat b { color:#174f70; font-size:22px; line-height:1; }
.sif-plan-stat span { margin-top:4px; color:#667b88; font-size:11px; }
.sif-plan-links > div { display:flex; flex-wrap:wrap; gap:5px; max-height:58px; overflow:auto; }
.sif-plan-chip { display:inline-flex; gap:5px; align-items:center; padding:4px 7px; border:1px solid #9fb0b9; border-radius:3px; color:#415d6d; background:#f3f8fa; font-size:11px; }
.sif-plan-chip b { color:#185a7c; }
.sif-plan-empty { color:#7a8890; font-size:12px; font-style:italic; }
@media(max-width:900px){.sif-plan-summary{grid-template-columns:1fr 120px}.sif-plan-links{grid-column:1/-1;border-left:0!important;border-top:1px solid #b2bbbf}}
.sif-equipment-notice { display:flex; align-items:center; gap:9px; margin:-1px 0 0; padding:7px 10px; border:1px solid #d5b66c; border-left:4px solid #d58a12; background:linear-gradient(90deg,#fff5d9,#fffaf0); color:#5f4a20; box-shadow:0 2px 7px rgba(89,66,17,.10); }
.sif-equipment-notice-icon { flex:0 0 20px; width:20px; height:20px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#d58a12; font-weight:800; font-size:13px; }
.sif-equipment-notice-body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; }
.sif-equipment-notice b { color:#67470d; font-size:12.5px; }
.sif-equipment-notice-rules { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:6px; }
.sif-equipment-notice-rule { min-width:0; padding:4px 7px; border:1px solid rgba(213,138,18,.24); border-radius:3px; background:rgba(255,255,255,.42); font-size:10.5px; line-height:1.25; }
.sif-equipment-notice-rule strong { display:block; margin-bottom:1px; color:#67470d; font-size:11px; }
@media(max-width:900px){.sif-equipment-notice{align-items:flex-start}.sif-equipment-notice-rules{grid-template-columns:1fr}}
body:has(#screen-equipamentos.active), main:has(#screen-equipamentos.active), #screen-equipamentos.active { background:#fff; }
body:has(#screen-equipamentos.active) { height:100dvh; overflow:hidden; }
#app:has(#screen-equipamentos.active) { height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
#app:has(#screen-equipamentos.active) > .sif-topbar,
#app:has(#screen-equipamentos.active) > #menubar { flex:0 0 auto; }
body:has(#screen-equipamentos.active) #menubar { position:relative; top:auto; }
main:has(#screen-equipamentos.active) { flex:1 1 auto; width:100%; height:auto; min-height:0; padding-bottom:10px; overflow:hidden; box-sizing:border-box; }
#screen-equipamentos.active { display:flex; flex-direction:column; height:100%; min-height:0; }
#screen-equipamentos .screen-title,
#screen-equipamentos .sif-equipment-notice,
#screen-equipamentos .toolbar { flex:0 0 auto; }
#screen-equipamentos .sif-equipment-table-panel { flex:1 1 auto; display:flex; flex-direction:column; min-height:0; overflow:hidden; border:1px solid #9ba7ad; background:#fff; box-shadow:0 3px 10px rgba(31,58,77,.07); }
#screen-equipamentos .sif-table-wrap { flex:1 1 auto; height:auto; min-height:0; max-height:none; overflow:auto; }
#screen-equipamentos details.sif-equipment-notice { display:block; padding:5px 8px; }
#screen-equipamentos .sif-equipment-notice summary { cursor:pointer; font-size:11px; }
#screen-equipamentos .sif-equipment-notice[open] .sif-equipment-notice-body { margin-top:6px; }
@media (min-width:701px) {
  #screen-equipamentos .screen-title { min-height:30px; padding:3px 10px; }
  #screen-equipamentos > :not(.screen-title) { margin-left:6px; margin-right:6px; max-width:calc(100% - 12px); }
  #screen-equipamentos .toolbar { min-height:34px; padding:4px 6px; margin-bottom:6px; }
  #screen-equipamentos .toolbar button { min-height:26px; padding:3px 8px; font-size:11px; }
  #screen-equipamentos .sif-equipment-table-title { padding:5px 8px; }
}
.sif-equipment-table-title{display:flex;justify-content:space-between;align-items:center;flex:0 0 34px;padding:0 11px;border-bottom:1px solid #9ba7ad;background:linear-gradient(#f7fafb,#e4ebee);color:#244f69}.sif-equipment-table-title b{font-size:12px}.sif-equipment-table-title span{font-size:11px;color:#6b7c86}
:is(body:has(#screen-manutencao.active),body:has(#screen-estoque.active)) { height:100dvh; overflow:hidden; background:#fff; }
:is(#app:has(#screen-manutencao.active),#app:has(#screen-estoque.active)) { height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
:is(#app:has(#screen-manutencao.active),#app:has(#screen-estoque.active)) > .sif-topbar,
:is(#app:has(#screen-manutencao.active),#app:has(#screen-estoque.active)) > #menubar { flex:0 0 auto; }
:is(body:has(#screen-manutencao.active),body:has(#screen-estoque.active)) #menubar { position:relative; top:auto; }
:is(main:has(#screen-manutencao.active),main:has(#screen-estoque.active)) { flex:1 1 auto; width:100%; height:auto; min-height:0; padding-bottom:10px; overflow:hidden; box-sizing:border-box; background:#fff; }
:is(#screen-manutencao,#screen-estoque).active { display:flex; flex-direction:column; height:100%; min-height:0; background:#fff; }
:is(#screen-manutencao,#screen-estoque) .screen-title,
:is(#screen-manutencao,#screen-estoque) .toolbar { flex:0 0 auto; }
:is(#screen-manutencao,#screen-estoque) .screen-title { min-height:42px; padding:7px 14px 6px 18px; box-shadow:inset 4px 0 0 var(--sif-green),0 2px 8px rgba(31,58,77,.07); }
:is(#screen-manutencao,#screen-estoque) .screen-title b { font-size:14px; }
:is(#screen-manutencao,#screen-estoque) .screen-title span { font-size:11px; }
:is(#screen-manutencao,#screen-estoque) .sif-table-wrap { flex:1 1 auto; height:auto; min-height:0; max-height:none; overflow:auto; }
#screen-estoque .data-table { border-collapse:separate; border-spacing:0; }
#screen-estoque .data-table thead th {
  position:sticky;
  top:0;
  z-index:20;
  background:#e8eef1;
  background-image:linear-gradient(#f7f9fa,#dfe6e9);
  background-clip:border-box;
  box-shadow:inset 0 -1px 0 #aebbc3,0 1px 0 #aebbc3;
  isolation:isolate;
}
:is(#screen-manutencao,#screen-estoque) .maint-tabs { display:flex; flex:0 0 auto; flex-wrap:wrap; gap:0; margin:0; padding:0 16px; border-bottom:1px solid #929da3; background:#f4f6f7; }
:is(#screen-manutencao,#screen-estoque) .maint-tab-link { min-height:31px; margin:0 2px -1px 0; padding:5px 13px; border:1px solid #99a3a9; border-bottom-color:#929da3; border-radius:3px 3px 0 0; color:#294b60; background:linear-gradient(#f8fafb,#e3e9ec); font-size:11.5px; cursor:pointer; box-shadow:none; }
:is(#screen-manutencao,#screen-estoque) .maint-tab-link:hover { border-color:#91a4af; background:linear-gradient(#fff,#edf2f4); }
:is(#screen-manutencao,#screen-estoque) .maint-tab-link.active { position:relative; z-index:1; border-top:3px solid var(--sif-green); border-bottom-color:#fff; padding-top:3px; color:#173f58; background:#fff; font-weight:700; box-shadow:none; }
:is(#screen-manutencao,#screen-estoque) .maint-tab-panel { display:none; flex-direction:column; flex:1 1 auto; min-height:0; }
:is(#screen-manutencao,#screen-estoque) .maint-tab-panel.active { display:flex; }
#screen-manutencao .maint-section-head { display:flex; flex:0 0 34px; align-items:center; justify-content:space-between; gap:14px; padding:0 12px; border-bottom:1px solid #a2acb1; color:#244f69; background:linear-gradient(#f8fafb,#e7edef); }
#screen-manutencao .maint-section-head b { font-size:12px; }
#screen-manutencao .maint-section-head span { color:#6b7c86; font-size:10.5px; }
#screen-manutencao [data-maint-panel="controles"] { overflow:hidden; }
#screen-manutencao .maintenance-control-guide { display:flex; flex:0 0 auto; align-items:center; gap:18px; margin:8px 12px 0; padding:8px 11px; border:1px solid #a5aeb3; border-left:4px solid #d79b18; background:#fffdf5; color:#526875; font-size:10.5px; }
#screen-manutencao .maintenance-control-guide span { display:flex; align-items:center; gap:5px; }
#screen-manutencao .maintenance-control-guide b { color:#294b60; }
#screen-manutencao .maintenance-control-guide strong { margin-left:auto; color:#8a5a00; font-size:11px; }
.maintenance-guide-dot { display:inline-block; flex:0 0 9px; width:9px; height:9px; border-radius:50%; border:1px solid #8799a4; background:#e8edf0; }
.maintenance-guide-dot.automatic { border-color:#c68a0b; background:#ffd866; box-shadow:0 0 0 2px rgba(214,154,24,.14); }
#screen-manutencao .maintenance-control-table-wrap { flex:1 1 auto; min-height:0; margin:10px 12px 12px; border:1px solid #9ba7ad; background:#fff; box-shadow:0 2px 7px rgba(31,58,77,.07); overflow:auto; }
#screen-manutencao .maintenance-control-table { min-width:1580px; border-collapse:separate; border-spacing:0; }
#screen-manutencao .maintenance-control-table thead th {
  position:sticky;
  top:0;
  z-index:20;
  background:#e8eef1;
  background-image:linear-gradient(#f7f9fa,#dfe6e9);
  background-clip:border-box;
  box-shadow:inset 0 -1px 0 #aebbc3,0 1px 0 #aebbc3;
  isolation:isolate;
}
#screen-manutencao .maintenance-auto-row:not(.selected) td { background:#fff5c9!important; border-color:#ead89a!important; }
#screen-manutencao .maintenance-auto-row:not(.selected) td:first-child { box-shadow:inset 4px 0 #d79b18; }
#screen-manutencao .maintenance-auto-row:not(.selected):hover td { background:#ffedaa!important; }
#screen-manutencao .maintenance-auto-row .badge-alert { border:1px solid #e1b64f; background:#ffe28a; color:#805300; }
#screen-manutencao .maintenance-status-inline { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
#screen-manutencao .maintenance-cycle-note { color:#756129; font-size:9.5px; font-weight:600; line-height:1.25; }
#screen-manutencao .maintenance-unit { color:#71828c; font-size:9px; font-weight:600; }
#screen-manutencao .maint-secondary-tabs { padding:7px 12px 0; border-bottom-color:#9da8ad; background:#fff; }
#screen-manutencao .maint-secondary-tabs .maint-tab-link { min-height:29px; padding:4px 12px; font-size:11px; }
:is(#screen-manutencao,#screen-estoque) .maint-status-strip { display:grid; flex:0 0 auto; grid-template-columns:repeat(4,minmax(130px,1fr)); margin:8px 12px 0; border:1px solid #9aa5ab; border-left:4px solid var(--sif-green); background:#fff; }
:is(#screen-manutencao,#screen-estoque) .maint-status-strip>div { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:10px; min-height:34px; padding:5px 11px; color:#526875; }
:is(#screen-manutencao,#screen-estoque) .maint-status-strip>div+div { border-left:1px solid #b0b7bc; }
:is(#screen-manutencao,#screen-estoque) .maint-status-strip span { overflow:hidden; font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
:is(#screen-manutencao,#screen-estoque) .maint-status-strip b { color:#1f6f31; font-size:15px; }
:is(#screen-manutencao,#screen-estoque) .maint-auto-state { align-self:center; color:#617582; font-size:10.5px; white-space:nowrap; }
:is(#screen-manutencao,#screen-estoque) .maint-auto-state:before { content:""; display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:var(--sif-green); box-shadow:0 0 0 2px rgba(60,165,54,.14); vertical-align:1px; }
#screen-manutencao [data-maint-panel="compra"]>.maint-tab-panel>.toolbar { margin-top:7px; }
#screen-manutencao [data-maint-panel="compra"]>.maint-tab-panel>.sif-table-wrap { margin-top:0; }
.os-management{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;background:#f7f9fa}.os-nav{display:flex;flex:0 0 auto;gap:0;padding:7px 12px 0;border-bottom:1px solid #9ba7ad;background:#fff;overflow-x:auto}.os-nav button{min-height:31px;padding:5px 12px;border:1px solid #9da7ac;border-bottom:0;border-radius:3px 3px 0 0;background:linear-gradient(#fafcfd,#e5ebee);color:#395669;font-size:11px;white-space:nowrap}.os-nav button.active{border-top:3px solid var(--sif-green);padding-top:3px;background:#fff;color:#17445d;font-weight:800}.os-nav .os-refresh{margin-left:auto;border:0;background:transparent;color:#287b35}.os-content{flex:1 1 auto;min-height:0;padding:12px;overflow:auto}.os-section-head{margin-bottom:10px;padding:9px 12px;border:1px solid #9ba7ad;border-left:4px solid var(--sif-green);background:linear-gradient(#f9fbfc,#e8eef1)}.os-section-head>div{display:flex;flex-direction:column;gap:2px}.os-kpis{grid-template-columns:repeat(3,minmax(150px,1fr))}.os-kpis>div{min-height:78px;padding:11px 13px;border:1px solid #9ca8ad;border-top:3px solid var(--sif-green);background:#fff;box-shadow:0 2px 6px #1f3a4d12}.os-kpis small,.os-kpis span{display:block;color:#647985;font-size:10.5px}.os-kpis b{display:block;margin:5px 0;color:#1b6d2b;font-size:22px}.os-grid section>p{display:flex;gap:12px;justify-content:space-between;margin:0;padding:7px;border-bottom:1px solid #bdc2c5;font-size:11px}.os-grid section>p span{color:#687b86}.os-bar{margin:10px 0}.os-bar:after{content:"";grid-column:2;grid-row:1;height:7px;background:#e4ece7;z-index:0}.os-bar i{grid-column:2;grid-row:1;z-index:1}.os-error{margin:20px;padding:18px;border:1px solid #d99;background:#fff2f2;color:#8b2727}.os-error button{margin-left:12px}.os-content>.sif-table-wrap{height:auto;max-height:none;border:1px solid #9aa5ab}.os-content .data-table button{padding:3px 7px;font-size:10.5px}
@media(max-width:900px){.os-kpis{grid-template-columns:repeat(2,minmax(140px,1fr))}.os-grid{grid-template-columns:1fr}.os-nav .os-refresh{margin-left:0}}
@media(max-width:900px){:is(#screen-manutencao,#screen-estoque) .maint-status-strip{grid-template-columns:repeat(2,minmax(130px,1fr))}:is(#screen-manutencao,#screen-estoque) .maint-status-strip>div:nth-child(3){border-left:0;border-top:1px solid #b0b7bc}:is(#screen-manutencao,#screen-estoque) .maint-status-strip>div:nth-child(4){border-top:1px solid #b0b7bc}:is(#screen-manutencao,#screen-estoque) .maint-auto-state{display:none}}
@media(max-width:900px){#screen-manutencao .maintenance-control-guide{align-items:flex-start;flex-wrap:wrap;gap:6px 14px}#screen-manutencao .maintenance-control-guide strong{width:100%;margin-left:0}#screen-manutencao .maintenance-control-table-wrap{margin:8px}#screen-manutencao .maintenance-control-table{min-width:1500px}}
#modal .qm-mat-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:3px 0; border-bottom:1px solid #c7cbcc; }
#modal .qm-mat-row:last-child { border-bottom:0; }
#modal .qm-mat-item { display:flex; align-items:center; gap:6px; font-size:11.5px; color:#294b60; cursor:pointer; }
#modal .qm-mat-item small { color:#6b7a84; font-size:10px; font-weight:400; }
#modal .qm-mat-qty { width:70px; padding:3px 6px; text-align:right; }

body:has(main > .screen.active) { height:100dvh; overflow:hidden; background:#fff; }
#app:has(main > .screen.active) { height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
#app:has(main > .screen.active) > .sif-topbar,
#app:has(main > .screen.active) > #menubar { flex:0 0 auto; }
body:has(main > .screen.active) #menubar { position:relative; top:auto; }
main:has(> .screen.active) { flex:1 1 auto; width:100%; height:auto; min-height:0; padding-bottom:10px; overflow:hidden; box-sizing:border-box; background:#fff; }
main > .screen.active { height:100%; min-height:0; overflow:auto; background:#fff; }

#screen-tacografo.active,
#screen-usuarios.active,
#screen-permissoes.active,
#screen-auditoria.active { display:flex; flex-direction:column; }
#screen-tacografo .screen-title,
#screen-tacografo .toolbar,
#screen-usuarios .screen-title,
#screen-usuarios .toolbar,
#screen-permissoes .screen-title,
#screen-permissoes .toolbar,
#screen-auditoria .screen-title,
#screen-auditoria .toolbar { flex:0 0 auto; }
#screen-tacografo .sif-table-wrap,
#screen-usuarios .sif-table-wrap,
#screen-permissoes .sif-perm-tree,
#screen-auditoria .sif-table-wrap { flex:1 1 auto; height:auto; min-height:0; max-height:none; overflow:auto; }
.sif-topbar button:focus-visible,#menubar button:focus-visible,.toolbar button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #3ca536!important;outline-offset:2px}
@media(max-width:900px){.sif-brand small,.sif-userchip>i{display:none}.sif-topbar{padding-left:10px}#menubar{overflow-x:auto;flex-wrap:nowrap;min-height:36px;padding:0 6px}#menubar button{min-height:35px;padding:0 8px;font-size:11px;white-space:nowrap}main{padding:10px}.screen>:not(.screen-title){max-width:calc(100% - 16px);margin-left:8px;margin-right:8px}.sif-alert{display:block}.sif-alert b{display:block;min-width:0}.screen-title b{font-size:16px}.toolbar{flex-wrap:wrap}.sif-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sif-toolbar .toolbar-spacer{display:none}}
@media(max-width:560px){.sif-toolbar .sif-tool-label{flex:0 0 100%}.sif-toolbar .sif-select{width:100%;flex:1 0 100%}.sif-toolbar>button{flex:1 1 auto}}
@media(max-width:520px){.sif-userchip b{display:none}.sif-kpis{grid-template-columns:1fr}.sif-brand span{font-size:12px}}
.sif-perm-tree .perm-ck:hover { border-color: var(--sif-brand); }
.sif-perm-tree .perm-ck.on { background: var(--sif-brand); color: #fff; border-color: var(--sif-brand); }

.pp-user { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sif-line); }
.pp-user b { font-size: 13px; }
.pp-user span { font-size: 11.5px; color: var(--sif-muted); }
.pp-user button { margin-left: auto; }

.empty { padding: 24px; text-align: center; color: var(--sif-muted); font-size: 13px; }

.sif-report-sec { margin-bottom: 16px; }
.sif-report-sec h4 { margin: 0 0 8px; font-size: 13.5px; }
.sif-report-actions-label { color:#607582; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.35px; }
.toolbar .sif-import-button { border-color:#6f8795; background:linear-gradient(#f8fbfc,#dce8ed); }
.sif-report-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:start; padding-bottom:4px; }
.sif-report-sec { min-width:0; margin:0; overflow:hidden; border:1px solid #9da8ae; border-radius:4px; background:#fff; box-shadow:0 3px 10px rgba(31,58,77,.08); }
.sif-report-wide { grid-column:1/-1; }
.sif-report-heading { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 12px; border-bottom:1px solid #a7b0b5; background:linear-gradient(#f9fbfc,#e7edef); }
.sif-report-heading h3 { margin:0 0 2px; color:#204f6a; font-size:13.5px; }
.sif-report-heading span { color:#6b7c86; font-size:11px; }
.sif-report-heading > b { flex:0 0 auto; padding:4px 7px; border:1px solid #9caeb7; border-radius:3px; color:#235d7b; background:#f1f7fa; font-size:10.5px; }
.sif-report-sec .sif-table-wrap { margin:0; border:0; border-radius:0; box-shadow:none; max-height:260px; }
.sif-report-wide .sif-table-wrap { max-height:310px; }
.sif-report-units { grid-column:auto; }
.sif-report-units .sif-table-wrap { max-height:220px; }
@media(max-width:900px){.sif-report-grid{grid-template-columns:1fr}.sif-report-wide,.sif-report-units{grid-column:auto}.sif-report-actions-label{display:none}}

#toast {
  position: fixed; right: 16px; bottom: 16px;
  background: #111827; color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 13px; opacity: 0;
  pointer-events: none; transition: opacity .2s;
  z-index: 200; max-width: 340px;
}
#toast.show { opacity: .95; }
#toast.success { background: var(--sif-green); }
#toast.error { background: var(--sif-red); }

@media screen and (min-width:701px) {
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria,#screen-relatorios) > .screen-title {
    height:30px; min-height:30px; max-height:30px; padding:3px 10px;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria,#screen-relatorios) > :not(.screen-title) {
    margin-left:6px; margin-right:6px; max-width:calc(100% - 12px);
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria,#screen-relatorios) .toolbar {
    min-height:34px; padding:4px 6px; margin-bottom:6px; gap:5px; flex-wrap:wrap;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria,#screen-relatorios) .toolbar button {
    min-height:26px; padding:3px 8px; font-size:11px;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria) .toolbar :is(input,select) {
    min-height:27px; padding-top:2px; padding-bottom:2px;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria) .sif-panel {
    padding:6px; margin-bottom:6px;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria) .sif-panel > .panel-head {
    margin:-6px -6px 6px; padding:6px;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria) .sif-table-filterbar {
    min-height:30px; padding:2px 6px; flex-wrap:wrap;
  }
  :is(#screen-apontamentos,#screen-manutencao,#screen-estoque,#screen-tacografo,#screen-usuarios,#screen-auditoria) .sif-table-filterbar input { height:24px; }
  #aponto-tab-acum .sif-table-wrap { max-height:max(220px, calc(100dvh - 270px)); }
  :is(#screen-manutencao,#screen-estoque) .maint-tab-link { padding-top:5px; padding-bottom:5px; }
  :is(#screen-manutencao,#screen-estoque) .os-content { padding:6px; }
  :is(#screen-manutencao,#screen-estoque) .os-section-head { padding:6px 8px; margin-bottom:6px; }
  #screen-relatorios .sif-report-grid { gap:6px; }
  #screen-relatorios .sif-report-heading { min-height:36px; padding:5px 8px; }
  #screen-relatorios .sif-report-sec .sif-table-wrap { max-height:clamp(260px, 52dvh, 600px); }
  #screen-relatorios .sif-report-wide .sif-table-wrap { max-height:clamp(310px, 65dvh, 750px); }
  #screen-relatorios .sif-report-units .sif-table-wrap { max-height:clamp(220px, 45dvh, 500px); }
  #screen-relatorios .ap-report { padding:6px; }
  #screen-relatorios .ap-filter-card { padding:6px 8px; margin-bottom:6px; }
  #screen-relatorios .ap-modes { margin-bottom:6px; }
  #screen-relatorios .ap-fields :is(input,select) { height:27px; }
  #screen-relatorios .ap-kpis { margin-top:6px; gap:6px; }
  #screen-relatorios .ap-kpis > div { padding:5px 6px; }
  #screen-relatorios .ap-actions { margin-bottom:6px; }
  #screen-relatorios .ap-section > header { padding:5px 8px; }
  #screen-relatorios .ap-rdo-list { padding:6px; }
}

@media print {
  body.sif-page { background: #fff; }
  .sif-topbar, #menubar, .sif-toolbar, .toolbar, button, .sif-actions, #toast, .win-select-options { display: none !important; }
  .screen { display: block !important; padding: 10px; }
  .sif-card, .sif-panel { border: 1px solid #afafaf; box-shadow: none; break-inside: avoid; }
}

thead th[data-filter] { cursor: pointer; }
thead th[data-filter]:hover { background-color: #e3edf2; }
thead th[data-sort] { background-color: #dcebf3; box-shadow: inset 0 -3px 0 #2b7da8; }
thead th[data-sort] .sif-col-filter-btn { width: auto !important; padding: 0 4px !important; gap: 2px; color: #1d5f85; }
thead th[data-sort="asc"] .sif-col-filter-btn::after { content: "▲"; font-size: 9px; }
thead th[data-sort="desc"] .sif-col-filter-btn::after { content: "▼"; font-size: 9px; }
.sif-col-menu-head { display: grid; gap: 5px; margin: 0 0 8px; }
.sif-col-menu-head > b { padding-bottom: 5px; border-bottom: 1px solid #d3dde2; color: #1d4f6c; font-size: 12px; }
.sif-col-menu-head > small { color: #74868f; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.sif-col-sort { display: grid; gap: 3px; }
.sif-col-sort button { display: block; width: 100%; min-height: 26px; padding: 3px 8px; border: 1px solid #c3ced4; border-radius: 3px; background: #fff; color: #294b60; font: 600 11px 'Segoe UI', sans-serif; text-align: left; cursor: pointer; }
.sif-col-sort button:hover { border-color: #6f97ad; background: #eef5f8; }
.sif-col-sort button.active { border-color: #2b7da8; background: #dcebf3; color: #134d6e; }

#aponto-tab-acum:not([hidden]) { display:flex; flex-direction:column; overflow:hidden; }
#aponto-tab-acum > .sif-acumulado-panel { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
#aponto-tab-acum .sif-acum-view:not([hidden]) { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:auto; }
#aponto-tab-acum .sif-acum-view > .sif-table-wrap:only-of-type { flex:1 1 auto; min-height:0; max-height:none; }
#aponto-tab-acum .sif-acum-view .sif-table-wrap { overflow:auto; }
#aponto-tab-acum .data-table td { max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sif-acum-nav > .sif-acum-filter { margin:0 0 0 auto; padding-left:0; }
.sif-acum-view[data-acum-panel="summary"] > .sif-acumulado-sub { display:none; }
#screen-manutencao .maintenance-late-row:not(.selected) td { background:#fde2e2!important; border-color:#f1b5b5!important; color:#8f1f1f; }
#screen-manutencao .maintenance-late-row:not(.selected) td:first-child { box-shadow:inset 4px 0 #c62828; }
#screen-manutencao .maintenance-late-row:not(.selected):hover td { background:#fbd0d0!important; }
#screen-tacografo .taco-late-row:not(.selected) td { background:#fde2e2!important; border-color:#f1b5b5!important; color:#8f1f1f; }
#screen-tacografo .taco-late-row:not(.selected) td:first-child { box-shadow:inset 4px 0 #c62828; }
#screen-tacografo .taco-late-row:not(.selected):hover td { background:#fbd0d0!important; }
.badge.maintenance-badge-warn { background:#fff1cf; color:#8a5b00; }
#screen-estoque .data-table td { white-space:nowrap; }
#screen-estoque .data-table td:not(.sif-actions) { max-width:320px; overflow:hidden; text-overflow:ellipsis; }
