/* EDC – interface web. Identité FBL (docs/maquettes/README.md). Aucun style en ligne : la CSP les interdit. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, .auth {
  --brand: #006F9A; --brand-dark: #004563; --brand-light: #008BBF; --tint: #E5F3F9; --tint-2: #F0F8FB;
  --brand-solid: #006F9A; --brand-solid-hover: #004563;
  --text: #1A2230; --text-2: #5B6474; --text-3: #6B7380; --border: #E3E6EB; --border-2: #D5D9E0;
  --bg: #F5F6F8; --white: #FFFFFF; --bg-2: #FAFBFC; --danger: #A3312B; --danger-bg: #FBEAE8; --ok: #1D6B44; --ok-bg: #E3F2E9; --warn: #8A5A00; --warn-bg: #FBF0DA;
  --danger-border: #E7B9B5; --secbar-bg: #E9EDF3; --secbar-text: #4A5565; --secbar-hover: #DFE5EE; --nav-text: #3A4352; --chev: #8A929E;
  --line: var(--line); --gray-bg: #EEF0F3; --gray-text: #4A5262; --arch-text: #2F4E78; --arch-bg: #E6EDF6; --img-text: #6B3FA0; --img-bg: #EFE8F7; --meter-bg: #E6E9EE;
  color-scheme: light;
}
/* Thème sombre (Mon profil > Apparence). Les écrans de connexion (.auth) gardent toujours la palette claire. */
:root[data-theme="dark"] {
  --brand: #4DB3E0; --brand-dark: #9BD6F0; --brand-light: #2E9BCB; --tint: #12303F; --tint-2: #10222C;
  --brand-solid: #1A7FAA; --brand-solid-hover: #2290C0;
  --text: #E6E9EE; --text-2: #A3ACBA; --text-3: #8B94A3; --border: #2A313C; --border-2: #3A4350;
  --bg: #0F1318; --white: #181D25; --bg-2: #1D232C; --danger: #F0847C; --danger-bg: #3A1D1B; --ok: #5CC48A; --ok-bg: #17301F; --warn: #E3B04B; --warn-bg: #35280C;
  --danger-border: #6B3A36; --secbar-bg: #222934; --secbar-text: #A9B3C2; --secbar-hover: #2B3340; --nav-text: #C9D0DB; --chev: #7C8594;
  --line: #232A33; --gray-bg: #262D37; --gray-text: #B3BBC8; --arch-text: #8DB4E8; --arch-bg: #1B2A40; --img-text: #C3A0EE; --img-bg: #2D2140; --meter-bg: #2A313C;
  color-scheme: dark;
}
.auth { background: var(--bg); color: var(--text); }
.topbar .logo .logo-dark { display: none; }
:root[data-theme="dark"] .topbar .logo .logo-dark { display: inline; }
:root[data-theme="dark"] .topbar .logo .logo-light { display: none; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; }
a { color: var(--brand); } a:hover { color: var(--brand-dark); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.hidden { display: none !important; }
.muted { color: var(--text-2); } .small { font-size: 12px; } .right { margin-left: auto; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 0; min-width: 0; }
svg.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); background: var(--white); border-radius: 6px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--bg); color: var(--text); }
.btn.primary { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff; font-weight: 500; } .btn.primary:hover { background: var(--brand-solid-hover); color: #fff; }
.btn.danger { color: var(--danger); border-color: var(--danger-border); } .btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--brand); cursor: pointer; text-decoration: none; } .linkbtn:hover { text-decoration: underline; }

/* Formulaires */
label { font-size: 13px; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=datetime-local], select, textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px; font: inherit; font-size: 14px; background: var(--white); color: var(--text); width: 100%; }
textarea { height: auto; padding: 10px 12px; min-height: 90px; resize: vertical; }
input.big { height: 44px; font-size: 15px; padding: 0 14px; }
.hint { font-size: 12px; color: var(--text-3); }
.error { color: var(--danger); background: var(--danger-bg); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.notice { color: var(--ok); background: var(--ok-bg); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.info { color: var(--brand-dark); background: var(--tint); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; } .check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }

/* Écrans de connexion (maquettes 01 et 02) */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 420px; background: var(--brand-dark); border-top: 4px solid var(--brand-light); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-side .brandline { display: flex; align-items: center; gap: 12px; } .auth-side img { height: 36px; }
.auth-side .sep { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.auth-side h1 { font-size: 34px; line-height: 1.2; margin-bottom: 16px; } .auth-side p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 420px; }
.auth-side .feat { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(255,255,255,.85); } .auth-side .feat div { display: flex; gap: 10px; align-items: center; }
.auth-main { flex: 999 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.auth-card h2 { font-size: 24px; margin-bottom: 8px; }
.auth-card .btn.wide { width: 100%; height: 46px; justify-content: center; font-size: 15px; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); } .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.codebox { letter-spacing: 12px; text-align: center; font-size: 26px; font-weight: 600; height: 54px; }
.ntatext { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; max-height: 260px; overflow: auto; font-size: 13px; line-height: 1.55; }

/* Application */
.topbar { min-height: 60px; padding: 8px 24px; display: flex; align-items: center; gap: 16px; background: var(--white); border-top: 3px solid var(--brand-light); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.topbar .logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; } .topbar .logo img { height: 28px; }
.topbar .logo .v { width: 1px; height: 24px; background: var(--border); } .topbar .logo b { color: var(--brand-dark); font-size: 15px; font-weight: 600; } .topbar .logo span { color: var(--text-2); font-size: 13px; }
.topbar .user { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-left: auto; position: relative; }
.topbar .username { background: none; border: 0; padding: 4px 6px; border-radius: 6px; font: inherit; cursor: pointer; } .topbar .username:hover { background: var(--bg); color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--brand-solid); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; }
.menu { position: absolute; right: 0; top: 40px; z-index: 20; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,50,.12); min-width: 200px; padding: 6px; display: flex; flex-direction: column; }
.menu button, .menu a { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-decoration: none; } .menu button:hover, .menu a:hover { background: var(--bg); }
.layout { display: flex; flex-wrap: wrap; min-height: calc(100vh - 63px); }
.side { flex: 1 1 250px; max-width: 280px; background: var(--white); border-right: 1px solid var(--border); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.side .secbar { display: flex; align-items: center; gap: 8px; margin: 14px -12px 6px; padding: 8px 22px; width: auto; background: var(--secbar-bg); border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--secbar-text); text-transform: uppercase; text-align: left; }
.side .appver { margin-top: auto; padding: 14px 10px 0; font-size: 11px; }
.side .secbar:first-child { margin-top: -20px; border-top: 0; }
.side .secbar.click { cursor: pointer; text-decoration: none; } .side .secbar.click:hover { background: var(--secbar-hover); color: var(--secbar-text); }
.side .secbar .chev { width: 12px; font-size: 10px; flex: none; } .side .secbar .lbl { flex: 1; } .side .secbar .n { font-weight: 500; color: var(--text-3); }
.side .gap { height: 8px; }
.navlink { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--nav-text); text-decoration: none; cursor: pointer; border: 0; background: none; font: inherit; font-size: 13px; text-align: left; width: 100%; }
.navlink:hover { background: var(--bg); color: var(--nav-text); } .navlink.sel { background: var(--tint); color: var(--brand); font-weight: 500; } .navlink.top { font-weight: 500; }
.navlink .chev { width: 12px; color: var(--chev); font-size: 10px; flex: none; } .navlink .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; } .head h1 { font-size: 22px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
.tabs a { padding: 0 0 10px; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; } .tabs a.sel { color: var(--text); font-weight: 500; border-bottom-color: var(--brand); }
.crumbs { font-size: 13px; color: var(--text-2); margin-right: auto; } .crumbs a { color: var(--text-2); text-decoration: none; } .crumbs a:hover { color: var(--brand); } .crumbs .cur { color: var(--text); font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
.card > .pad { padding: 16px 20px; } .card h3 { font-size: 15px; } .card .sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.section { padding: 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; } .section:last-child { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; } .pill::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.pill.draft { color: var(--gray-text); background: var(--gray-bg); } .pill.online { color: var(--ok); background: var(--ok-bg); } .pill.offline { color: var(--warn); background: var(--warn-bg); }
.pill.archived { color: var(--arch-text); background: var(--arch-bg); } .pill.destroyed { color: var(--danger); background: var(--danger-bg); }
.badge { padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 500; color: var(--brand); background: var(--tint); } .badge.warn { color: var(--warn); background: var(--warn-bg); } .badge.ok { color: var(--ok); background: var(--ok-bg); } .badge.danger { color: var(--danger); background: var(--danger-bg); } .badge.gray { color: var(--text-2); background: var(--gray-bg); }

/* Tableaux (grilles) */
.table { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; }
.table .inner { min-width: 720px; }
.tr { display: grid; align-items: center; padding: 0 16px; min-height: 48px; font-size: 13px; border-bottom: 1px solid var(--line); gap: 8px; } .tr:last-child { border-bottom: 0; }
.tr.th { min-height: 42px; font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.tr.sel { background: var(--tint-2); } .tr:not(.th):hover { background: var(--bg-2); }
.cols-files { grid-template-columns: 36px 60px minmax(0, 1fr) 70px 90px 120px 150px 36px; }
.rowmenu { position: relative; justify-self: end; } .rowmenu .menu { top: 30px; min-width: 160px; z-index: 30; } .rowmenu .dots { background: none; border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--text-2); font-size: 16px; line-height: 1; } .rowmenu .dots:hover, .rowmenu .dots:focus-visible { background: var(--bg); color: var(--text); }
.picker { max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; } .picker .pk { display: flex; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; font: inherit; font-size: 13px; cursor: pointer; } .picker .pk:last-child { border-bottom: 0; } .picker .pk:hover { background: var(--bg-2); } .picker .pk.up { color: var(--brand); }
.cols-unread { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 60px 90px 120px 170px; }
.cols-search { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 130px 120px; }
.cols-va { grid-template-columns: minmax(0, 1fr) 130px 100px; } .tr.dim { color: var(--text-2); background: var(--bg-2); }
.cols-an-g { grid-template-columns: minmax(0, 1.2fr) 100px 110px 120px 150px 160px; } .cols-an-u { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 70px 110px 120px 160px; } .cols-an-d { grid-template-columns: minmax(0, 1fr) auto; }
.cols-rooms { grid-template-columns: 110px minmax(0, 1.4fr) 110px 90px 90px 130px 130px 190px; }
.cols-outbox { grid-template-columns: 150px 130px minmax(0, 1fr) minmax(0, 1.4fr) 90px; }
.cols-log { grid-template-columns: 150px 150px 130px minmax(0, 1.2fr) minmax(0, 1.6fr) 90px; }
.cols-inv { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px 140px 170px; }
.cols-accounts { grid-template-columns: minmax(0, 1.6fr) 90px 160px 70px 150px 130px minmax(0, 1fr) 170px; }
.cols-adm2 { grid-template-columns: minmax(0, 1fr) auto; }
.cols-adm { grid-template-columns: minmax(0, 1.6fr) 110px 150px; }
.name { display: flex; align-items: center; gap: 10px; min-width: 0; } .name .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficon { width: 30px; height: 30px; border-radius: 6px; background: var(--gray-bg); color: var(--text-2); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.ficon.pdf { color: var(--danger); background: var(--danger-bg); } .ficon.xls { color: var(--ok); background: var(--ok-bg); } .ficon.doc { color: var(--arch-text); background: var(--arch-bg); } .ficon.img { color: var(--img-text); background: var(--img-bg); } .ficon.zip { color: var(--warn); background: var(--warn-bg); }
.linkname { color: var(--text); text-decoration: none; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .linkname:hover { color: var(--brand); }
.empty { padding: 40px 20px; text-align: center; color: var(--text-2); font-size: 14px; }

/* Matrice des droits */
.matrix { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: auto; }
.matrix table { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.matrix th, .matrix td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.matrix thead th { background: var(--bg-2); font-size: 12px; font-weight: 500; color: var(--text-2); position: sticky; top: 0; }
.matrix td.dir { min-width: 220px; } .matrix select { height: 32px; font-size: 12px; min-width: 140px; } .matrix select.inherited { color: var(--text-3); background: var(--bg-2); border-style: dashed; }

/* Fenêtres, avis, progression */
.overlay { position: fixed; inset: 0; background: rgba(20,30,50,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--white); border-radius: 10px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 50px rgba(20,30,50,.25); } .modal h2 { font-size: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13px; max-width: 90vw; }
.toast.err { background: var(--danger); color: var(--bg); }
.panel { position: fixed; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 40px); z-index: 30; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,50,.15); overflow: hidden; }
.panels { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; gap: 12px; width: 380px; max-width: calc(100vw - 40px); }
.panels .panel { position: static; width: auto; max-width: none; }
.panel .ph { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.panel .pi { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; border-bottom: 1px solid var(--line); } .panel .pi .l { display: flex; justify-content: space-between; gap: 8px; } .panel .pi .l span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 4px; border-radius: 2px; background: var(--meter-bg); overflow: hidden; } .bar > div { height: 100%; background: var(--brand); transition: width .3s; } .bar.ok > div { background: var(--ok); } .bar.bad > div { background: var(--danger); } .bar.warn > div { background: #C68A1E; }
.dropzone-on { outline: 2px dashed var(--brand); outline-offset: -6px; background: var(--tint-2); }
.timeline { display: flex; flex-direction: column; gap: 10px; font-size: 13px; } .timeline .it { display: flex; gap: 12px; } .timeline .d { color: var(--text-2); min-width: 140px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13px; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 40px; text-align: center; color: var(--text-2); }
@media (max-width: 900px) { .side { max-width: none; flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--border); } .main { padding: 16px; } .auth-side { padding: 28px; } .topbar { padding: 8px 16px; } }

.cnt { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 10px; background: var(--brand-solid); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.tabs .cnt { margin-left: 6px; } .navlink .cnt { margin-left: auto; }
.choice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; } .choice:has(input:checked) { border-color: var(--brand); background: var(--tint-2); }
.search { flex: 1; max-width: 420px; margin: 0 24px; } .search input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font: inherit; font-size: 13px; } .search input:focus { background: var(--white); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; } .tile { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; } .tile .big { font-size: 28px; font-weight: 600; color: var(--brand-dark); margin: 4px 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin: 12px 0 6px; border-bottom: 1px solid var(--border); } .bars .bcol { flex: 1; min-width: 0; background: var(--brand); opacity: .85; border-radius: 3px 3px 0 0; } .bars .bcol:last-child { background: var(--brand-dark); opacity: 1; }
.meter { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--meter-bg); vertical-align: middle; } .meter > span { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
.small.warn { color: var(--warn); font-weight: 500; }
.card.pad { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; } .card.pad h3, .card.pad h4 { margin: 0; }
.toolbar input[type=date] { width: auto; min-width: 150px; }
.cols2 .table .inner { min-width: 0; } .cols2 > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.roomfilter { width: 260px; max-width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px; font: inherit; font-size: 13px; background: var(--white); }
.roomfilter:focus { outline: 2px solid var(--brand); outline-offset: -1px; }

.profile { max-width: 520px; }
input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--text-2); cursor: not-allowed; }
.cfgcard { margin-bottom: 16px; } .cfgcard h2 { font-size: 16px; margin: 0; } .cfg h3 { font-size: 14px; margin: 0; } .cfg .cfg-num { width: 110px; } .cfg .row { display: flex; align-items: center; gap: 10px; } .cfg .row .right { margin-left: auto; }
.tr.filters { background: var(--white); border-bottom: 1px solid var(--border); min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.colfilter { width: 100%; height: 30px; font-size: 12px; padding: 0 8px; box-sizing: border-box; }
.cols-log.cols-log-g { grid-template-columns: 170px 125px 110px minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr) 80px; }
.cfg .cfg-list { width: 100%; max-width: 640px; font: inherit; font-size: 13px; padding: 8px 10px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 6px; resize: vertical; }

.cols-comp { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 170px minmax(0, 2fr); }

.seg { display: flex; gap: 8px; flex-wrap: wrap; } .btn.sel { border-color: var(--brand); background: var(--tint); color: var(--brand); font-weight: 500; }
.cols-kv { grid-template-columns: 280px minmax(0, 1fr); }
