/* SifatSavdo — umumiy uslub (interfeys maketi asosida). */
[hidden] { display: none !important; }
:root {
  --bg: #F4F6F8; --card: #fff; --line: #E4E7EC; --line2: #F2F4F7; --text: #101828; --muted: #5D6676;
  --brand: #0F766E; --brand-d: #115E59; --brand-l: #E6F4F1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, "Segoe UI", system-ui, sans-serif; }
a { color: var(--brand); } a:hover { color: var(--brand-d); }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 16px; margin: 0 0 14px; }
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 236px; max-width: 100%; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none; color: var(--text); }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav span { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #344054; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--line2); color: var(--text); }
.nav a.on { background: var(--brand-l); color: #0B5F58; font-weight: 600; }
.nav span { color: #98A2B3; cursor: default; }
.nav .soon { margin-left: auto; font-size: 11px; font-weight: 600; color: #98A2B3; }
.nav .cnt { margin-left: auto; background: #FEF3F2; color: #B42318; border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.navcap { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 12px 4px; }
.foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.foot form { margin-left: auto; }
.ava { width: 34px; height: 34px; border-radius: 50%; background: #FEF0C7; color: #93370D; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; }
.wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid2 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 14px inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-p { background: var(--brand); color: #fff; } .btn-p:hover { background: var(--brand-d); color: #fff; }
.btn-s { background: #fff; color: #344054; border-color: #D0D5DD; } .btn-s:hover { background: #F9FAFB; color: var(--text); }
.btn-l { background: none; border: 0; color: var(--muted); padding: 0 6px; min-height: 32px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.p-ok { background: #ECFDF3; color: #067647; } .p-warn { background: #FFFAEB; color: #B54708; } .p-bad { background: #FEF3F2; color: #B42318; }
.p-wait { background: var(--line2); color: #475467; } .p-info { background: #EFF4FF; color: #3538CD; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.link:hover td { background: #F9FAFB; cursor: pointer; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 320px; max-width: 520px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid #D0D5DD; border-radius: 12px; color: var(--muted); }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; }
select, .inp { min-height: 44px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 12px; background: #fff; font: inherit; color: var(--text); }
.inp { width: 100%; }
label.lbl { display: block; font-weight: 600; margin: 0 0 6px; }
.kpi-l { color: var(--muted); font-size: 13px; }
.kpi-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.dl { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.note { background: #FFFAEB; border: 1px solid #FEDF89; color: #93370D; border-radius: 12px; padding: 12px 14px; white-space: pre-line; }
.err { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; border-radius: 12px; padding: 12px 14px; }
.kameralar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kameralar figure { margin: 0; background: var(--line2); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.kameralar video, .kameralar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kameralar figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(16,24,40,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.ok { background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647; border-radius: 12px; padding: 12px 14px; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.12); max-height: 320px; overflow: auto; }
.ac-list button { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.ac-list button:hover, .ac-list button:focus { background: var(--line2); outline: 0; }
.ac-list button[disabled] { color: #98A2B3; cursor: not-allowed; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chk { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ferr { color: #B42318; font-size: 12.5px; margin-top: 4px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login .card { width: 100%; max-width: 400px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
@media print { .side, .yoq { display: none !important; } .main { padding: 0; } .card { border: 0; padding: 0; } body { background: #fff; } }
@media (max-width: 760px) {
  .nav { flex-direction: row; flex-wrap: wrap; } .navcap, .foot .who { display: none; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); } .main { padding: 20px 16px 40px; }
}
/* Hisobotlar */
td.manfiy { color: #B42318; }
tfoot th { border-top: 2px solid var(--line); font-weight: 700; }
