/* İSG Hekim Paneli - arayüz stilleri */
:root {
  --brand: #1c6fb5; --brand-d: #155a94; --brand-l: #e8f1fa;
  --bg: #f4f6f9; --card: #fff; --line: #e3e7ed; --text: #1d2733; --muted: #6b7785;
  --green: #1f8a4c; --green-l: #e5f5ec; --amber: #b86e00; --amber-l: #fff3df;
  --red: #c62f2f; --red-l: #fdeaea; --blue-l: #e6f0fb; --violet: #6b46c1; --violet-l: #f0ebfb; --gray-l: #eef0f3;
  --r: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 650; }
h3 { font-size: 14px; margin: 16px 0 8px; font-weight: 650; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.txt-red { color: var(--red); } .txt-amber { color: var(--amber); } .txt-violet { color: var(--violet); }

/* Yerleşim */
.shell { display: flex; min-height: 100vh; }
.side { width: 236px; background: #10263d; color: #c9d6e3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand b { color: #fff; display: block; font-size: 14px; }
.brand small { color: #8ea3b8; }
.logo { background: var(--brand); color: #fff; font-weight: 800; border-radius: 8px; padding: 8px 7px; font-size: 13px; letter-spacing: .5px; }
.side nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9d6e3; padding: 9px 10px; border-radius: 8px; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.side nav a.on { background: var(--brand); color: #fff; }
.side .ic { width: 20px; text-align: center; }
.side .badge { margin-left: auto; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.side-foot .who { color: #fff; margin-bottom: 4px; }
.side-foot a { color: #8ea3b8; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.burger { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; }
.wp-switch { display: flex; align-items: center; gap: 8px; }
.wp-switch label { font-size: 12px; color: var(--muted); }
.wp-switch select { min-width: 180px; font-weight: 600; }
.quick-search { margin-left: auto; }
.quick-search input { width: 260px; }
.content { padding: 22px 24px 40px; max-width: 1440px; width: 100%; }
.foot { padding: 14px 24px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: auto; }
.guest { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }

/* Bileşenler */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.empty { text-align: center; padding: 40px; color: var(--muted); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .count { font-size: 14px; background: var(--brand-l); color: var(--brand); border-radius: 20px; padding: 2px 10px; vertical-align: middle; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 4px; flex-wrap: nowrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.inline { display: inline; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand); border-color: #c7d9ec; }
.btn.ghost:hover { background: var(--brand-l); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.btn.wide { width: 100%; justify-content: center; padding: 10px; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: 12px; padding: 0 4px; }
.link.danger { color: var(--red); }

.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--gray-l); color: #4a5563; white-space: nowrap; }
.pill.green { background: var(--green-l); color: var(--green); }
.pill.amber { background: var(--amber-l); color: var(--amber); }
.pill.red { background: var(--red-l); color: var(--red); }
.pill.blue { background: var(--blue-l); color: var(--brand); }
.pill.violet { background: var(--violet-l); color: var(--violet); }
.badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.tag { font-size: 11px; background: var(--gray-l); border-radius: 4px; padding: 1px 6px; margin-left: 4px; color: var(--muted); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: var(--green-l); border-color: #b9e3c9; color: #145c33; }
.flash.err { background: var(--red-l); border-color: #f3c0c0; color: #8f1f1f; }
.flash.warn { background: var(--amber-l); border-color: #f2d7a6; color: #7a4a00; }
.flash.info { background: var(--blue-l); border-color: #c4dbf3; color: #164d80; }

/* Formlar */
input, select, textarea { font: inherit; font-weight: 400; color: inherit; border: 1px solid #cfd6df; border-radius: 7px; padding: 7px 9px; background: #fff; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(28,111,181,.25); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
input[readonly] { background: var(--gray-l); }
input.upper { text-transform: uppercase; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #3a4654; }
.form label small { font-weight: 400; color: var(--muted); }
.form > label, .form > .row, .form > div { margin-bottom: 12px; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.form.compact label { margin-bottom: 8px; }
.grid2, .grid3, .grid4, .grid5 { display: grid; gap: 12px 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid2.atop { align-items: start; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.form-actions { display: flex; gap: 8px; padding-top: 6px; }
.form-actions.sticky { position: sticky; bottom: 0; background: rgba(244,246,249,.95); padding: 12px 0; z-index: 5; border-top: 1px solid var(--line); }
.danger-zone { border-color: #f1c9c9; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; }
legend { font-weight: 650; font-size: 13px; padding: 0 4px; }

/* Tablolar */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); background: #f8fafc; font-weight: 650; white-space: nowrap; }
.tbl th a { color: inherit; }
.tbl.hover tbody tr:hover { background: #f7fafd; }
.tbl tr.dim td { opacity: .55; }
.tbl tr.row-late td { background: #fff8f8; }
.tbl.compact th, .tbl.compact td { padding: 6px 8px; }
.tbl.inputs td { padding: 4px; }
.tbl td.empty { text-align: center; color: var(--muted); padding: 30px; }
.tbl td.flags { white-space: nowrap; }
.tbl .w1 { width: 1%; }
.tbl.small td, .tbl.small th { font-size: 12px; }

/* Filtre ve toplu işlem */
.filters .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.filters label.inline { flex-direction: row; align-items: center; gap: 6px; margin-left: auto; }
.filters label.inline select { width: auto; }
.filters details { margin-bottom: 10px; }
.filters summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.bulkbar { display: none; gap: 6px; align-items: center; padding: 10px 12px; background: var(--brand-l); border-bottom: 1px solid #cfe0f2; flex-wrap: wrap; position: sticky; top: 0; }
.bulkbar.on { display: flex; }
.pager { display: flex; gap: 4px; align-items: center; justify-content: center; margin: 14px 0; }
.pager a { padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.pager a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
dialog.dlg { border: 0; border-radius: 12px; padding: 20px; width: min(460px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.dlg::backdrop { background: rgba(16,38,61,.45); }
dialog .form label { margin-bottom: 10px; }

/* Panel */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; color: var(--text); box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--brand); text-decoration: none; }
.stat b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.onboard ol { margin: 0; padding-left: 20px; line-height: 1.9; }

/* Kartlar: işyeri */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.wp-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(28,111,181,.15); }
.wp-card.dim { opacity: .6; }
.wp-card h3 { margin: 0; }
.wp-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.wp-logo { max-width: 70px; max-height: 40px; object-fit: contain; }
.wp-logo.lg { max-width: 160px; max-height: 70px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.wp-card .actions { display: flex; gap: 6px; margin-top: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 550; }

/* Çalışan sayfası */
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-l); color: var(--brand); font-weight: 700; font-size: 18px; }
.photo { width: 90px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 6px 0 10px 12px; }
.timeline li.bekliyor { border-color: #f0c36b; }
.timeline li.late { border-color: var(--red); }
.timeline li.yapildi { border-color: #9bd3b2; opacity: .8; }
.timeline li.iptal { opacity: .5; }
.timeline form { margin-top: 6px; }
.timeline input { padding: 4px 7px; }
.note { border-top: 1px solid var(--line); padding: 8px 0; }

/* Muayene formu */
.anamnez h3 { font-size: 13px; margin-top: 0; }
.yn-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.yn-row > span { flex: 1; }
.yn-row.q { flex-wrap: wrap; }
.yn-row.q > input { flex-basis: 100%; }
@media (min-width: 900px) { .yn-row.q > input { flex: 0 0 38%; } }
.yn { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid #d5dce4; border-radius: 20px; cursor: pointer; font-weight: 500 !important; font-size: 13px; user-select: none; }
.yn input { margin: 0; }
.yn:has(input:checked) { background: var(--brand-l); border-color: var(--brand); color: var(--brand); }
.yn.evet:has(input:checked) { background: var(--amber-l); border-color: var(--amber); color: var(--amber); }
.sorular { margin: 10px 0 14px; }
.habit .row { margin-top: 6px; }
.habit-b input, .habit-e input { flex: 1; min-width: 90px; }
.kosullar .row { margin-bottom: 6px; flex-wrap: nowrap; }
.kosullar .row input:last-child { max-width: 220px; }
.vitals { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* Takvim */
.seg { display: inline-flex; border: 1px solid #c7d9ec; border-radius: 8px; overflow: hidden; }
.seg a { padding: 7px 14px; color: var(--brand); font-weight: 600; }
.seg a.on { background: var(--brand); color: #fff; }
.seg a:hover { text-decoration: none; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.cal-head h2 { margin: 0; min-width: 160px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px; }
.cal .day { min-height: 96px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; overflow: hidden; }
.cal .day.empty { background: transparent; border: 0; }
.cal .day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal .dn { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal .ev { display: block; font-size: 11.5px; padding: 1px 5px; border-radius: 4px; margin-top: 2px; background: var(--amber-l); color: #7a4a00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.late { background: var(--red-l); color: var(--red); }
.cal .ev.yapildi { background: var(--green-l); color: var(--green); }
.cal .ev.iptal { background: var(--gray-l); color: var(--muted); text-decoration: line-through; }
.cal .more { font-size: 11px; }

/* Giriş */
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card h1 { font-size: 20px; margin-bottom: 6px; }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.auth-brand .logo { font-size: 16px; padding: 10px; }
.auth-brand small { color: var(--muted); }

@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid4, .grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .side { position: fixed; left: -250px; transition: left .2s; }
  .side.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .burger { display: block; }
  .top { padding: 10px 14px; flex-wrap: wrap; }
  .quick-search { margin-left: 0; flex: 1; }
  .quick-search input { width: 100%; }
  .content { padding: 16px; }
  .grid2, .grid3, .grid4, .grid5 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .cal .day { min-height: 64px; }
  .cal .ev { font-size: 10px; }
}
@media print {
  .side, .top, .foot, .bulkbar, .filters, .form-actions { display: none !important; }
  .content { padding: 0; }
}

/* Giriş / kayıt sekmeleri */
.auth-tabs { display: flex; border-bottom: 2px solid var(--line); margin: 0 -28px 20px; padding: 0 28px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; font-weight: 650; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tabs a.on { color: var(--brand); border-color: var(--brand); }
.auth-tabs a:hover { text-decoration: none; color: var(--brand); }
.auth-cta { margin: 16px -28px -28px; padding: 14px 28px; background: var(--brand-l); border-radius: 0 0 var(--r) var(--r); text-align: center; font-size: 13px; }
.grid-unvan { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.viewas { background: #fff3df; border-bottom: 1px solid #f2d7a6; color: #7a4a00; padding: 8px 24px; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.viewas form { margin-left: auto; }
.docbtn { display: inline-flex; gap: 0; margin-left: 4px; }
.docbtn .btn:first-child { border-radius: 6px 0 0 6px; }
.docbtn .btn:last-child { border-radius: 0 6px 6px 0; border-left: 0; padding-left: 7px; padding-right: 7px; }
.doclist { list-style: none; margin: 0 0 12px; padding: 0; }
.doclist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.check-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; margin-right: 6px; }
.btn.wide { justify-content: center; }
.pending-card { border-color: #f2d7a6; background: #fffcf6; }
.notice { background: var(--blue-l); border: 1px solid #c4dbf3; border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; }

/* ---- Tablo (Excel görünümü) ---- */
.grid-card { padding: 0; overflow: visible; }
.grid-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.grid-toolbar input[type=search] { width: 260px; }
.grid-toolbar select { width: auto; max-width: 220px; }
.grid-count { margin-left: auto; font-weight: 650; color: var(--brand); white-space: nowrap; }
.grid-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px; }
.grid-chips:not(:empty) { padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-l); color: var(--brand-d); border-radius: 14px; padding: 2px 4px 2px 10px; font-size: 12px; font-weight: 600; max-width: 420px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--brand-d); font-size: 15px; line-height: 1; padding: 0 4px; }
.grid-bulk { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 14px; background: #f6f9fc; border-bottom: 1px solid var(--line); font-size: 13px; }
.grid-wrap { overflow: auto; max-height: calc(100vh - 250px); min-height: 300px; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
table.grid th, table.grid td { border-right: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; padding: 5px 8px; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; text-align: left; }
table.grid th { position: sticky; top: 0; z-index: 2; background: #f3f6fa; font-weight: 650; color: #354150; user-select: none; }
table.grid th.r, table.grid td.r { text-align: right; }
table.grid .g-h { cursor: pointer; }
table.grid .g-fbtn { border: 1px solid #cdd6e1; background: #fff; border-radius: 4px; margin-left: 6px; cursor: pointer; font-size: 11px; padding: 0 4px; color: #5d6b7a; }
table.grid .g-fbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
table.grid td.ed { cursor: cell; }
table.grid td.ed:hover { background: #fffbe9; }
table.grid td.saving { color: var(--muted); font-style: italic; }
table.grid tr.sel td { background: #eaf3fc; }
table.grid tr.dim td { color: #9aa5b1; }
table.grid tbody tr:hover td { background: #f7fafd; }
table.grid .g-sel, table.grid .g-open { width: 1%; position: sticky; left: 0; background: #fff; z-index: 1; text-align: center; }
table.grid .g-open { left: 30px; }
table.grid th.g-sel, table.grid th.g-open { z-index: 3; background: #f3f6fa; }
table.grid td.empty { text-align: center; padding: 30px; color: var(--muted); }
.g-edit { padding: 2px 4px; font-size: 12.5px; min-width: 140px; border-color: var(--brand); }
.grid-more { text-align: center; padding: 10px; }
.grid-help { padding: 0 14px 12px; margin: 0; }
.g-pop { position: absolute; z-index: 50; width: 300px; background: #fff; border: 1px solid #cfd6df; border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.g-pop-h { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.g-range { display: flex; gap: 6px; }
.g-range label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); flex: 1; }
.g-text { display: flex; gap: 6px; }
.g-text select { width: 95px; }
.g-vals { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.g-vals label, .g-all { display: flex; gap: 6px; align-items: center; padding: 2px 0; cursor: pointer; }
.g-vals small { margin-left: auto; color: var(--muted); }
.g-pop input, .g-pop select { padding: 5px 7px; }
.g-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1d2733; color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 100; font-size: 13px; }
.g-toast.err { background: var(--red); }
dialog.dlg.wide { width: min(900px, 94vw); }
.colgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; margin-bottom: 12px; }
.colgroups label { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 2px 0; }
[hidden] { display: none !important; }
.page-head form.row select { width: auto; max-width: 300px; }
