/* BUILD 86972afd — generated by infra/tools/build-css.mjs; EDIT css-src/*.css, not this file */

/* ===== 01-main.css ===== */
@font-face { font-family: "El Messiri"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/el-messiri-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "El Messiri"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/el-messiri-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "El Messiri"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/el-messiri-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "El Messiri"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/el-messiri-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "El Messiri"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/el-messiri-latin-400.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "El Messiri"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/el-messiri-latin-500.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "El Messiri"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/el-messiri-latin-600.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "El Messiri"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/el-messiri-latin-700.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Dancing Script"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/dancing-script-600.woff2) format("woff2"); }

:root {
  --bg-top: #303c50;
  --bg-bottom: #38465d;
  --card: rgba(31, 41, 61, 0.6);
  --card-strong: rgba(31, 41, 61, 0.8);
  --card-border: rgba(255, 255, 255, 0.25);
  --input: rgba(31, 41, 61, 0.55);
  --input-border: rgba(255, 255, 255, 0.7);
  --text: #ffffff;
  --muted: #cbd5e1;
  --accent: #e39a73;
  --yellow: #ffd54f;
  --green: #a5d6a7;
  --danger: #ffb4b4;
  --icon-box: #faeadf;
  --icon-box-border: #efcdb5;
  --color-primary: #3f4f69;
  --color-accent: #d48054;
}

:root {
  --sb-w: 252px;
  --sb-scale: 1;
  --sb-w-mobile: min(270px, 82vw);
  --sb-gap: 36px;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-num: 22px;
  --fs-2xl: 28px;
  /* Top bar icons (bell, inboxes): gap between them */
  --tb-icon-gap: 8px;
  /* Page footer (ownership lines): reserved height, gap above it, space below it */
  --foot-h: 66px;
  --foot-gap: 16px;
  --foot-pad: 4px;
  /* Page panel grid: gap between cards */
  --pg-gap: 14px;
}

@media (min-width: 900px) { html { --uz: .9; zoom: var(--uz); } }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 60%, #38465d 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "El Messiri", "Segoe UI", Tahoma, Arial, sans-serif;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.brand { text-align: center; margin-bottom: 20px; }
.brand img { width: 190px; max-width: 50vw; height: auto; }
.brand.small img { width: 130px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.topbar a, .link-btn {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}
.link-btn.danger { color: var(--danger); }
#userBar { display: flex; align-items: center; gap: 14px; }

h1.title { text-align: center; font-size: var(--fs-num); margin: 6px 0 4px; }
p.subtitle { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin: 0 0 20px; }

.glass {
  background: var(--card);
  border: 1.2px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(4px);
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.menu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.menu-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.55); }
.menu-card .icon-box {
  width: 80px; height: 60px; flex: none;
  background: var(--icon-box);
  border: 1px solid var(--icon-box-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.menu-card .icon-box img { max-width: 72px; max-height: 50px; }
.menu-card .icon-box img.svg { width: 44px; height: 44px; }
.menu-card .icon-box.full { overflow: hidden; }
.menu-card .icon-box.full img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.menu-card .text { flex: 1; min-width: 0; }
.menu-card .text b { display: block; font-size: var(--fs-lg); }
.menu-card .text > span { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; }
.menu-card .arrow { color: #fff; font-size: var(--fs-base); opacity: .8; }
.menu-card.disabled { opacity: .45; cursor: default; }
.menu-card.disabled:hover { transform: none; border-color: var(--card-border); }
.badge {
  display: inline-block; font-size: var(--fs-2xs); padding: 2px 8px; border-radius: 10px;
  background: rgba(255,213,79,.15); color: var(--yellow); margin-inline-start: 6px;
}

.section-title { font-size: var(--fs-base); color: var(--muted); margin: 22px 4px 10px; }

.login-box { max-width: 420px; margin: 0 auto; padding: 22px; }
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input);
  color: #fff;
  font: inherit;
  font-size: var(--fs-md);
  outline: none;
}
input:focus, select:focus { border-color: var(--color-accent); }
select option { background: #2b3648; color: #fff; }
input[type=email], input[type=password] { direction: ltr; text-align: left; }
input[type=file] { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); }
input[type=file]::file-selector-button { margin-inline-end: 10px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card-strong); color: var(--text); font: inherit; font-weight: bold; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--color-accent); }

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #b3633a, #b86a52);
  color: #fff;
  font: inherit;
  font-weight: bold;
  font-size: var(--fs-md);
  cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn.secondary { background: var(--card-strong); border: 1.2px solid var(--card-border); }

.error { color: var(--danger); font-size: var(--fs-sm); margin-top: 12px; text-align: center; min-height: 18px; }
.notice {
  max-width: 640px; margin: 0 auto 16px; padding: 14px 16px; font-size: var(--fs-base); line-height: 1.8;
  border-color: rgba(255,213,79,.6);
}
.notice code { direction: ltr; unicode-bidi: embed; background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 6px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 220px; }
.breadcrumb { color: var(--yellow); font-weight: bold; font-size: var(--fs-base); }

.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--input);
  border: 1px solid rgba(255,255,255,.55);
  cursor: pointer;
}
.row:hover { border-color: #fff; }
.row .main { min-width: 0; }
.row .main b { display: block; font-size: var(--fs-md); }
.row .main > span { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; }
.row .count {
  flex: none; min-width: 44px; text-align: center; padding: 4px 10px; border-radius: 12px;
  background: rgba(212, 128, 84,.18); color: #e7c2b6; font-weight: bold; font-size: var(--fs-sm);
}
.empty, .loading { text-align: center; color: var(--muted); padding: 28px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 680px; max-height: 88vh; overflow: auto;
  background: rgba(31, 41, 61,.97); border: 1.2px solid var(--card-border); border-radius: 18px;
  padding: 20px 22px;
}
.modal h2 { margin: 0 0 6px; font-size: var(--fs-xl); }
.modal h3 { margin: 18px 0 6px; font-size: var(--fs-base); color: var(--yellow); }
.modal ul { margin: 0; padding-inline-start: 18px; }
.modal li { margin: 4px 0; font-size: var(--fs-base); line-height: 1.7; }
.modal .none { color: #7694c4; font-size: var(--fs-sm); }
.modal .close { margin-top: 18px; }

@media (max-width: 600px) {
  .menu { grid-template-columns: 1fr; }
  .brand img { width: 150px; }
}

.panel { padding: 16px 18px; margin-bottom: 14px; }
.panel-title { margin: 0 0 10px; font-size: var(--fs-md); }
.controls { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.controls label { font-size: var(--fs-sm); color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.controls .grow { flex: 1; min-width: 220px; }
.period { display: flex; align-items: center; gap: 10px; }
.period-label { font-weight: bold; color: var(--yellow); min-width: 170px; text-align: center; }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn.small { width: auto; padding: 9px 16px; font-size: var(--fs-base); white-space: nowrap; }
.btn.green { background: linear-gradient(90deg, #2e7d32, #43a047); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 14px 16px; text-align: center; }
.stat span { display: block; color: var(--muted); font-size: var(--fs-sm); }
.stat b { display: block; font-size: var(--fs-2xl); margin-top: 4px; }
.summary h3 { margin: 14px 0 6px; font-size: var(--fs-base); color: var(--yellow); }
.summary ul { margin: 0; padding-inline-start: 18px; }
.summary li { margin: 3px 0; font-size: var(--fs-base); }
.summary .panel-title { margin-top: 0; }
.summary .none { color: #7694c4; font-size: var(--fs-sm); }

.chart svg { width: 100%; height: 240px; display: block; }
.chart .bar { fill: #d48054; }
.chart .grid { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.chart .axis { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.chart .lbl, .chart .val { fill: #cbd5e1; font-size: var(--fs-xs); text-anchor: middle; font-family: inherit; }
.chart .val { fill: #fff; font-weight: bold; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: rgba(255,255,255,.06); }
.chart-tip {
  position: fixed; display: none; z-index: 20; pointer-events: none;
  background: #38465d; border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
  padding: 6px 10px; font-size: var(--fs-sm); color: #fff; text-align: center;
}

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th { color: var(--muted); font-weight: bold; text-align: center; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.25); }
.table td { text-align: center; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.table th:first-child, .table td:first-child { text-align: start; }

.print-only { display: none; }

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat b { font-size: var(--fs-num); }
  .period { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .period-label { min-width: 0; order: -1; width: 100%; }
}

@media print {
  html, body { background: #fff !important; color: #111 !important; }
  body::after, .no-print, .chart-tip, .modal-backdrop { display: none !important; }
  .print-only { display: block; text-align: center; margin-bottom: 12px; font-size: var(--fs-md); }
  .page { max-width: none; padding: 0; }
  .brand img { filter: invert(1) hue-rotate(180deg); }
  .glass, .row { background: #fff !important; border: 1px solid #bbb !important; backdrop-filter: none; color: #111; }
  .subtitle, .stat span, .section-title, .row .main > span, .table th { color: #444 !important; }
  .summary h3, .panel-title { color: #3f4f69 !important; }
  .chart .bar { fill: #b3633a; }
  .chart .lbl { fill: #333; } .chart .val { fill: #111; }
  .chart .grid { stroke: #ddd; } .chart .axis { stroke: #999; }
  .row { break-inside: avoid; }
}

.st-red { color: #ff6b6b; } .st-green { color: #7cfc98; } .st-yellow { color: #ffd54f; }
.row .main > span.st-green { color: #7cfc98; } .row .main > span.st-yellow { color: #ffd54f; }
.st-gray { color: #9aa5b5; } .st-orange { color: #ffb74d; } .st-blue { color: #dead9d; }
.muted { color: var(--muted); font-size: var(--fs-sm); }
.hint { color: var(--muted); font-size: var(--fs-sm); margin: 0 4px 10px; }
.prow { cursor: pointer; }
.prow .main > span { margin-top: 4px; }
.prow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prow-head .pct { font-weight: bold; font-size: var(--fs-lg); }
.pbar { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 8px 0 4px; overflow: visible; }
.pfill { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(270deg, #b3633a, #d48054); }
.pmark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-right: -1.5px; background: #ffd54f; border-radius: 2px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.four .stat span { min-height: 34px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin: 5px 0; font-size: var(--fs-base); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 200px) 1fr 40px; align-items: center; gap: 10px; font-size: var(--fs-base); }
.hbar .ht { height: 12px; background: rgba(255,255,255,.10); border-radius: 6px; }
.hbar .hf { height: 100%; border-radius: 6px; background: #d48054; }
.hbar b { text-align: end; }
@media (max-width: 600px) {
  .stats.four { grid-template-columns: 1fr 1fr; }
  .hbar { grid-template-columns: 90px 1fr 30px; }
}
@media print {
  .pbar { background: #eee; } .pmark { background: #e0a800; }
  .st-green { color: #1b7f3a !important; } .st-red { color: #c62828 !important; }
  .st-yellow { color: #a07800 !important; } .st-orange { color: #c66900 !important; } .st-blue { color: #733a27 !important; }
  .muted, .hint { color: #444 !important; }
  .hbar .ht { background: #eee; } .hbar .hf { background: #b3633a; }
}

.dlg-body .field { margin-bottom: 12px; }
.dlg-body .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dlg-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dlg-actions .btn { flex: 1; }
.btn.danger { background: linear-gradient(90deg, #b71c1c, #e53935); }
.row-actions { display: flex; gap: 8px; flex: none; }
.row-actions button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.row-actions button.edit { color: #d69984; } .row-actions button.del { color: #ef9a9a; }
.row-actions button:hover { border-color: #fff; }
.checks { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-md); padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: #d48054; }
input[type=date] { color-scheme: dark; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: #38465d; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 10px 18px; border-radius: 12px;
  z-index: 30; transition: all .2s ease; pointer-events: none; font-size: var(--fs-base);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 600px) { .dlg-body .grid2 { grid-template-columns: 1fr; } .row { flex-wrap: wrap; } }

textarea {
  width: 100%; min-height: 90px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--input-border); background: var(--input); color: #fff;
  font: inherit; font-size: var(--fs-md); outline: none; resize: vertical;
}
textarea:focus { border-color: var(--color-accent); }
input:disabled, select:disabled { opacity: .7; cursor: not-allowed; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 4px; }
/* Detail logs (submissions, actions): two entries per row on wide screens */
.log-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.log-grid > .row { margin: 0; }
/* Request attachments grouped by the party that uploaded them */
.files-h { margin: 12px 0 6px; font-size: var(--fs-base); color: var(--muted); }
.files-h:first-of-type { margin-top: 4px; }
@media (max-width: 899px) { .log-grid { grid-template-columns: 1fr; } }
@media print { .log-grid { grid-template-columns: 1fr; } }
.info-grid div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px 10px; }
.info-grid span { display: block; color: var(--muted); font-size: var(--fs-xs); }
.info-grid b { display: block; font-size: var(--fs-base); margin-top: 2px; overflow-wrap: anywhere; }
.rrow { border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,.03); }
.rrow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rrow-head b { color: var(--yellow); font-size: var(--fs-base); }
.rrow-head button { background: none; border: none; color: var(--danger); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.rgrid { display: grid; gap: 0 12px; }
.rgrid.c2 { grid-template-columns: 1fr 1fr; }
.rgrid.c3 { grid-template-columns: 2fr 1fr 1fr; }
.rgrid.c4 { grid-template-columns: 1fr 1fr; }
.rgrid .field { margin-bottom: 10px; }
.add-row { background: none; border: 1.2px dashed rgba(255,255,255,.45); color: #fff; border-radius: 10px; padding: 9px; width: 100%; font: inherit; font-size: var(--fs-base); cursor: pointer; }
.add-row:hover { border-color: #fff; background: rgba(255,255,255,.05); }
.total-labor { margin-top: 10px; font-size: var(--fs-base); color: var(--muted); }
.total-labor b { color: #fff; font-size: var(--fs-lg); }
.invalid { border-color: #ff6b6b !important; box-shadow: 0 0 0 2px rgba(255,107,107,.25); }
.field-error { color: #ff8a80; font-size: var(--fs-xs); margin-top: 4px; }
.edit-banner { border-color: rgba(255,213,79,.6); padding: 10px 14px; margin-bottom: 14px; font-size: var(--fs-base); color: var(--yellow); text-align: center; }
.submit-bar { margin: 6px 0 30px; }
.report-row .edit-link { display: inline-block; margin-top: 8px; font-size: var(--fs-sm); font-weight: bold; color: #d69984; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.report-row .edit-locked { display: inline-block; margin-top: 8px; font-size: var(--fs-sm); color: rgba(255,255,255,.55); }
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .rgrid.c3 { grid-template-columns: 1fr 1fr; }
  .rgrid.c3 > .field:first-child { grid-column: 1 / -1; }
}

.menu.single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.menu.single .menu-card { padding: 16px 18px; }
.page-head { text-align: center; margin: 0 0 18px; }
.page-head img { height: 64px; max-width: 170px; object-fit: contain; display: block; margin: 0 auto 10px; background: var(--icon-box); border: 1px solid var(--icon-box-border); border-radius: 16px; padding: 8px 14px; box-sizing: content-box; }
.page-head h1 { margin: 0; font-size: var(--fs-num); }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-base); }

.obs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.obs { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.obs.done { opacity: .72; }
.obs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.obs-head .main { min-width: 0; }
.obs-head .main b { display: block; font-size: var(--fs-md); }
.obs-head .main > span { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; overflow-wrap: anywhere; }
.obs-type { font-weight: bold; color: var(--yellow); font-size: var(--fs-md); }
.obs-desc { margin: 0; font-size: var(--fs-base); line-height: 1.8; overflow-wrap: anywhere; }
.obs-meta { color: var(--muted); font-size: var(--fs-sm); }
.obs-meta b { color: #fff; }
.obs-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.pill { flex: none; display: inline-block; font-size: var(--fs-xs); font-weight: bold; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.pill.warn { background: rgba(255,183,77,.18); color: #ffb74d; }
.pill.ok { background: rgba(124,252,152,.16); color: #7cfc98; }
.pill.prio { margin-inline-start: 6px; font-weight: normal; }
.pill.prio.high { background: rgba(255,107,107,.18); color: #ff8a80; }
.pill.prio.mid { background: rgba(255,213,79,.16); color: #ffd54f; }
.pill.prio.low { background: rgba(222, 173, 157,.16); color: #dead9d; }
@media (max-width: 600px) { .obs-list { grid-template-columns: 1fr; } }

.plan-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 4px 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.18); }
.plan-head:first-child { margin-top: 6px; }
.plan-head h2 { margin: 0; font-size: var(--fs-xl); color: var(--yellow); }
.plan-head span { color: var(--muted); font-size: var(--fs-sm); }

.sec { margin-bottom: 16px; overflow: hidden; }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; user-select: none; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:hover { background: rgba(255,255,255,.04); }
.sec > summary > img { width: 44px; height: 44px; flex: none; padding: 6px; background: var(--icon-box); border: 1px solid var(--icon-box-border); border-radius: 12px; box-sizing: border-box; }
.sec .t { flex: 1; min-width: 0; }
.sec .t b { display: block; font-size: var(--fs-lg); color: var(--yellow); }
.sec .t span { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; }
.sec .chev { flex: none; font-size: var(--fs-xl); color: var(--muted); transition: transform .15s ease; }
.sec:not([open]) .chev { transform: rotate(90deg); }
.sec .menu { padding: 4px 16px 16px; }
.sec .menu-card { background: rgba(255,255,255,.04); }

.d3 .glass {
  background: linear-gradient(150deg, rgba(61, 76, 101,.78) 0%, rgba(36, 45, 60,.88) 55%, rgba(20, 26, 34,.94) 100%);
  border: 1.2px solid rgba(255,255,255,.26);
  border-top-color: rgba(255,255,255,.6);
  border-bottom-color: rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.28),
    inset 0 -3px 8px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.06),
    0 14px 28px -8px rgba(0,0,0,.6),
    0 4px 10px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
.d3 .menu { perspective: 1000px; }
.d3 .menu-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
  will-change: transform;
}
.d3 .menu-card::after {  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.16), transparent 60%);
  opacity: 0; transition: opacity .18s ease-out;
}
.d3 .menu-card:hover {
  transform: translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,.85);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.4),
    inset 0 -3px 8px rgba(0,0,0,.35),
    0 26px 38px -10px rgba(0,0,0,.7),
    0 8px 14px rgba(0,0,0,.4);
}
.d3 .menu-card:hover::after { opacity: 1; }
.d3 .menu-card:active { transform: translateY(-1px) scale(.995); }
.d3 .menu-card .icon-box,
.d3 .sec > summary > img {
  background: linear-gradient(160deg, #f6fcff 0%, #d4ecfd 55%, #b4dbf6 100%);
  border: 1px solid #e3b9ab;
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -4px 8px rgba(148, 74, 49,.28),
    0 8px 14px -2px rgba(0,0,0,.55),
    0 2px 0 rgba(255,255,255,.12);
  transform: none;
}
.d3 .menu-card .icon-box img { filter: drop-shadow(0 3px 3px rgba(37, 47, 62,.35)); }
.d3 .menu-card .text b { text-shadow: 0 2px 4px rgba(0,0,0,.45); }
.d3 .menu-card .arrow { text-shadow: 0 2px 3px rgba(0,0,0,.5); }

.d3 .sec { overflow: visible; }
.d3 .sec > summary { border-radius: 20px; }
.d3 .sec > summary:hover { background: rgba(255,255,255,.05); }
.d3 .sec .t b { text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.d3 .sec .menu-card { background: linear-gradient(150deg, rgba(74, 92, 123,.7), rgba(28, 35, 46,.9)); }

.d3 .btn {
  background: linear-gradient(180deg, #dd8d62 0%, #b3633a 100%);
  border: 1px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 #3f4f69, 0 10px 14px rgba(0,0,0,.4);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.d3 .btn.secondary {
  background: linear-gradient(180deg, rgba(77, 97, 128,.7) 0%, rgba(36, 45, 60,.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 0 #232c3f, 0 10px 14px rgba(0,0,0,.4);
}
.d3 .btn.green {
  background: linear-gradient(180deg, #5fcf65 0%, #2e7d32 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 0 #1b5e20, 0 10px 14px rgba(0,0,0,.4);
}
.d3 .btn:hover:not(:disabled) { transform: translateY(-1px); }
.d3 .btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 #3f4f69, 0 3px 6px rgba(0,0,0,.4); }

.d3 .obs { transition: transform .18s ease-out, box-shadow .18s ease-out; }
.d3 .obs:hover { transform: translateY(-4px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.34), inset 0 -3px 8px rgba(0,0,0,.35), 0 24px 34px -10px rgba(0,0,0,.7), 0 6px 12px rgba(0,0,0,.4); }
.d3 .obs.done { opacity: .78; }
.d3 .stat b { text-shadow: 0 3px 6px rgba(0,0,0,.55); }
.d3 .pill { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.35); }
.d3 input, .d3 select { box-shadow: inset 0 3px 6px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.12); }

@media (prefers-reduced-motion: reduce) {
  .d3 .menu-card, .d3 .obs, .d3 .btn { transition: none; }
  .d3 .menu-card:hover, .d3 .obs:hover { transform: none; }
}

@media (min-width: 900px) {
  body.nb { background: transparent; }
  body.nb::before {    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-color: #38465d;
    background-image:
      linear-gradient(180deg, rgba(31, 41, 61, .30) 0%, rgba(31, 41, 61, .18) 100%),
      url("../img/bg_wide.jpg");
    background-size: auto, cover;
    background-position: 0 0, center bottom;
    background-repeat: no-repeat;
  }
  body.nb::after { display: none; }  body.nb .page { min-height: calc(100vh / var(--uz, 1)); padding-bottom: 120px; max-width: 1560px; }
  body.nb .page::after, body.nb .page::before {    position: absolute; inset-inline: 0; text-align: center; pointer-events: none; direction: ltr;
  }
  body.nb .page::after {
    content: none; bottom: 36px; padding-top: 14px;
    font-size: var(--fs-base); letter-spacing: .08em; color: rgba(206, 222, 242, .92);
    background: linear-gradient(90deg, transparent, rgba(190, 210, 235, .45), transparent) top center / 380px 1px no-repeat;
  }
  body.nb .page::before {
    content: none;
  }
  body.nb .nb-dev { position: absolute; inset-inline: 0; bottom: 12px; text-align: center; pointer-events: none; font-size: var(--fs-xs); letter-spacing: .07em; font-weight: 400; color: rgba(200, 216, 238, .98); }
  body.nb .nb-dev .nb-dev-c { display: none; }
  body.nb .nb-dev b { font-family: "Dancing Script", cursive; font-weight: 600; font-size: 1.2em; line-height: 1; letter-spacing: .02em; color: #fff; vertical-align: -.08em; }
}
@media (max-width: 899px) {
  body.nb .page::after {
    content: none;
  }
  body.nb .nb-dev { display: block; text-align: center; pointer-events: none; margin-top: 28px; padding: 12px 0 calc(6px + env(safe-area-inset-bottom)); font-size: var(--fs-2xs); line-height: 1.8; letter-spacing: .06em; color: rgba(205, 220, 240, .95);
    background: linear-gradient(90deg, transparent, rgba(190, 210, 235, .45), transparent) top center / 240px 1px no-repeat; }
  body.nb .nb-dev span { display: block; }
  body.nb .nb-dev b { font-family: "Dancing Script", cursive; font-weight: 600; font-size: 1.2em; line-height: 1; letter-spacing: .02em; color: #fff; vertical-align: -.08em; }
  body.nb .page::after { content: none; direction: ltr; text-align: center; pointer-events: none;
    margin-top: 28px; padding: 12px 0 calc(6px + env(safe-area-inset-bottom));
    font-size: var(--fs-2xs); line-height: 1.8; letter-spacing: .06em; font-weight: 700; color: rgba(205, 220, 240, .95);
    background: linear-gradient(90deg, transparent, rgba(190, 210, 235, .45), transparent) top center / 240px 1px no-repeat;
  }
}
body.login { background: transparent; }
body.login::after { display: none; }
body.login::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: #38465d;
  background-image:
    linear-gradient(180deg, rgba(31, 41, 61, .30) 0%, rgba(31, 41, 61, .18) 100%),
    url("../img/bg_wide.jpg");
  background-size: auto, cover;
  background-position: 0 0, center bottom;
  background-repeat: no-repeat;
}
@media (max-width: 899px) {
  body.nb { background: transparent; }
  body.nb::after { display: none; }
  body.nb::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      linear-gradient(180deg, rgba(31, 41, 61, .30) 0%, rgba(31, 41, 61, .18) 100%),
      url("../img/bg_wide.jpg");
    background-repeat: no-repeat;
  }
  body.nb::before, body.login::before {
    background-color: #38465d;
    background-size: auto, auto 56vh;
    background-position: 0 0, center bottom;
  }
}
@media print { body.login::before { display: none !important; } }
@media print { body.nb::before, body.nb::after, body.nb .page::before, body.nb .page::after { display: none !important; } }

@media (min-width: 900px) {
  body.nb .brand { display: none; }  body.nb .page { padding-top: 116px; }
  body.nb .topbar {
    position: fixed; top: 0; inset-inline: 0; z-index: 20; height: 92px; margin: 0;
    padding: 0 max(20px, calc(((100vw / var(--uz, 1)) - 1560px) / 2 + 16px));    display: flex; align-items: center; gap: 14px; font-size: var(--fs-base);
    background: linear-gradient(180deg, rgba(27, 36, 54, .94), rgba(28, 35, 46, .80));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .38), inset 0 -1px 0 rgba(255, 255, 255, .05);
  }
  body.nb .topbar > .tb-logo {    display: block; flex: none; width: 150px; height: 80px; margin-inline-end: 8px; padding-inline-end: 22px;
    background: url("../img/company_logo.png") right center / contain no-repeat;
    background-origin: content-box;
    border-inline-end: 1px solid rgba(255, 255, 255, .2);
  }
  body.nb .topbar > a {    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07);
    color: #fff; font-weight: bold; text-decoration: none; transition: background .12s, border-color .12s;
  }
  body.nb .topbar > a:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .6); }
  body.nb #userBar { margin-inline-start: auto; gap: 12px; }
  body.nb #userBar > span { color: var(--muted); padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
  body.nb #userBar .link-btn.danger {
    padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255, 150, 150, .45);
    background: rgba(183, 28, 28, .18); color: #ffb4b4; font-weight: bold;
  }
  body.nb #userBar .link-btn.danger:hover { background: rgba(229, 57, 53, .32); border-color: rgba(255, 180, 180, .8); }
}
@media print {
  body.nb .topbar { position: static; height: auto; background: none; box-shadow: none; border: 0; padding: 0; }
  body.nb .topbar > .tb-logo { display: none; }
  body.nb .page { padding-top: 0; }
}

@media (min-width: 900px) {
  body.nb .glass, body.nb .panel, body.nb .stat, body.nb .obs, body.nb .menu-card, body.nb .sec .menu-card, body.nb .login-box {
    background: linear-gradient(150deg, rgba(74, 92, 123, .30), rgba(27, 36, 54, .40));
    backdrop-filter: blur(8px) saturate(1.2);
    border-color: rgba(255, 255, 255, .20);
    border-top-color: rgba(255, 255, 255, .46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 6px rgba(0, 0, 0, .18), 0 12px 26px -12px rgba(0, 0, 0, .5);
  }
  body.nb .menu-card:hover, body.nb .obs:hover { background: linear-gradient(150deg, rgba(86, 108, 144, .34), rgba(30, 40, 60, .38)); }
  body.nb .sec { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; margin-bottom: 10px; }
  body.nb .sec > summary { border-radius: 14px; padding: 12px 16px; background: linear-gradient(150deg, rgba(74, 92, 123, .26), rgba(27, 36, 54, .38)); backdrop-filter: blur(8px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .20); border-top-color: rgba(255, 255, 255, .42); }
  body.nb .sec > summary:hover { background: linear-gradient(150deg, rgba(86, 108, 144, .34), rgba(30, 40, 60, .42)); }
  body.nb .sec .menu { padding: 16px 0 6px; }
  body.nb .row { background: rgba(27, 36, 54, .34); backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, .34); }
  body.nb .row:hover { background: rgba(74, 92, 123, .32); }
  body.nb input, body.nb select, body.nb textarea { background: rgba(27, 36, 54, .50); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .3); }
  body.nb .rrow { background: rgba(255, 255, 255, .02); }
  body.nb .info-grid div { background: rgba(255, 255, 255, .06); }
  body.nb .glass, body.nb .panel, body.nb .menu-card, body.nb .obs, body.nb .row, body.nb .stat, body.nb .sec > summary, body.nb .page-head, body.nb h1.title, body.nb .subtitle {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
  }
  body.nb .menu-card .text > span, body.nb .subtitle, body.nb .muted { color: #dbe5f1; }
}

.stats.five { grid-template-columns: repeat(5, 1fr); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; perspective: 1200px; }
.pcard {
  position: relative; display: block; padding: 16px 18px 14px; color: inherit; text-decoration: none;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.16), transparent 60%);
  opacity: 0; transition: opacity .18s ease-out;
}
.pcard:hover { transform: translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); border-color: rgba(255,255,255,.55); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.4), 0 26px 38px -10px rgba(0,0,0,.7), 0 8px 14px rgba(0,0,0,.4); }
.pcard:hover::after { opacity: 1; }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pc-head b { font-size: var(--fs-lg); text-shadow: 0 2px 4px rgba(0,0,0,.45); }
.pc-head .pct { font-size: var(--fs-2xl); font-weight: bold; color: #e39a73; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.pcard .pbar { height: 12px; margin: 10px 0 8px; }
.pc-sub { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.chip { font-size: var(--fs-xs); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.chip.ok { color: #8fe3a8; border-color: rgba(143,227,168,.45); background: rgba(46,160,90,.15); }
.chip.warn { color: #ffcf8a; border-color: rgba(255,207,138,.45); background: rgba(230,150,30,.16); }
.pc-foot { font-size: var(--fs-xs); }
.dqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 22px; padding: 6px 16px 12px; }
.dq-h { display: flex; justify-content: space-between; font-size: var(--fs-base); }
.dq small { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 899px) { .stats.five { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transition: none; transform: none; } }

@media (min-width: 900px) {
  body.nb .dqsec { background: linear-gradient(150deg, rgba(74, 92, 123, .34), rgba(27, 36, 54, .62)); backdrop-filter: blur(10px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .20); border-top-color: rgba(255, 255, 255, .42); border-radius: 20px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); margin-top: 18px; }
  body.nb .dqsec > summary { background: transparent; border: 0; backdrop-filter: none; }
}

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 0 8px; scrollbar-width: thin; }
.tabs[hidden], section[hidden] { display: none !important; }
.tabs button {
  flex: none; font: inherit; font-weight: bold; color: #dbe7f6; cursor: pointer; padding: 10px 20px; border-radius: 14px;
  border: 1.2px solid rgba(255,255,255,.22); border-top-color: rgba(255,255,255,.45);
  background: linear-gradient(160deg, rgba(74, 92, 123,.40), rgba(27, 36, 54,.55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 5px rgba(0,0,0,.25), 0 6px 12px -6px rgba(0,0,0,.6);
  transition: transform .15s, background .15s, border-color .15s;
}
.tabs button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.55); }
.tabs button.on {
  color: #fff; border-color: #ffd54f; border-top-color: #ffe58a;
  background: linear-gradient(160deg, rgba(180, 90, 60,.75), rgba(37, 46, 61,.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 5px rgba(0,0,0,.3), 0 0 0 1px rgba(255,213,79,.35), 0 8px 16px -6px rgba(0,0,0,.7);
}
.pbar.big { height: 18px; }
.pbar.big .pfill, .pbar.big { border-radius: 10px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.legend .c-has, .legend .c-miss, .legend .c-off { height: 12px; width: 12px; border-radius: 4px; }
.legend .c-has { background: #2e9e5a; } .legend .c-miss { background: #c8433a; } .legend .c-off { background: rgba(255,255,255,.25); }
.mini { display: flex; align-items: center; gap: 8px; } .mini .pbar { flex: 1; margin: 0; } .mini b { min-width: 38px; }
.table small { display: block; font-size: var(--fs-2xs); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-h { text-align: center; color: var(--muted); font-size: var(--fs-sm); padding: 4px 0; }
.cal-d {
  font: inherit; color: #fff; min-height: 70px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: default;
}
.cal-d b { font-size: var(--fs-lg); } .cal-d small { font-size: var(--fs-xs); opacity: .9; }
.cal-d.empty { visibility: hidden; }
.cal-d.has { cursor: pointer; background: linear-gradient(150deg, rgba(46,160,90,.65), rgba(20,90,50,.65)); border-color: rgba(143,227,168,.65); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 12px -6px rgba(0,0,0,.6); transition: transform .12s; }
.cal-d.has:hover { transform: translateY(-3px); }
.cal-d.miss { background: linear-gradient(150deg, rgba(200,67,58,.55), rgba(110,28,28,.55)); border-color: rgba(255,150,140,.6); }
.cal-d.off, .cal-d.future { opacity: .45; }
.cal-d.pending { border-style: dashed; }
.cal-d.today { outline: 2px solid #ffd54f; outline-offset: 1px; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; color: #fff; background: rgba(255,255,255,.06); border: 0; padding: 7px 18px; cursor: pointer; }
.seg button.on { background: rgba(180, 90, 60,.7); font-weight: bold; }
.page-head h1 { margin-bottom: 4px; }
@media (max-width: 700px) { .cal-h { font-size: var(--fs-2xs); } .cal-d { min-height: 52px; } .cal-d b { font-size: var(--fs-base); } .cal-d small { font-size: var(--fs-2xs); } .cal-grid { gap: 4px; } }
@media print { .tabs { display: none !important; } section[hidden] { display: block !important; } }

.la-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin: 6px 0 4px; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.la-banner:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.55); }
.la-banner img { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(160deg, #f6fcff, #b4dbf6); padding: 6px; box-shadow: inset 0 2px 0 #fff, 0 6px 12px -2px rgba(0,0,0,.5); }
.la-banner .t { flex: 1; display: flex; flex-direction: column; gap: 3px; } .la-banner .t b { font-size: var(--fs-lg); } .la-banner .t span { font-size: var(--fs-sm); color: var(--muted); } .la-banner em { font-style: normal; font-weight: bold; }
.la-banner .chev { font-size: var(--fs-2xl); color: var(--muted); }
.row.la { border-inline-start: 4px solid rgba(255,255,255,.25); }
.row.la.crit { border-inline-start-color: #ff6b61; background: rgba(200, 67, 58, .16); }
.empty.small { padding: 10px; font-size: var(--fs-sm); }
.row.la .main > span b, .row.la .main > span strong { display: inline; }
body.nb .section-title { color: #dbe7f6; text-shadow: 0 1px 5px rgba(0, 0, 0, .85); }

/* Gantt */
.gantt-wrap { overflow-x: auto; }
.gantt { min-width: 780px; }
.g-head, .g-row { display: flex; align-items: stretch; }
.g-lab { flex: none; width: var(--lab, 230px); padding: 0 6px; font-size: var(--fs-base); display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-head .g-lab { color: var(--muted); font-size: var(--fs-sm); }
.g-axis { position: relative; flex: 1; height: 26px; border-bottom: 1px solid rgba(255,255,255,.3); }
.g-axis span { position: absolute; top: 3px; padding-right: 5px; font-size: var(--fs-2xs); color: var(--muted); white-space: nowrap; }
.g-body { position: relative; }
.g-over { position: absolute; top: 0; bottom: 0; left: 0; right: var(--lab, 230px); pointer-events: none; }
.g-gl { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.1); }
.g-today { position: absolute; top: 0; bottom: 0; width: 0; border-right: 2px dashed #ffd54f; z-index: 3; }
.g-today b { position: absolute; top: -2px; right: 4px; font-size: var(--fs-2xs); color: #ffd54f; text-shadow: 0 1px 3px #000; }
.g-row { height: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.g-row:hover { background: rgba(255,255,255,.04); }
.g-track { position: relative; flex: 1; }
.g-bar {
  position: absolute; top: 9px; height: 22px; border-radius: 8px; overflow: hidden; z-index: 2;
  background: rgba(185, 198, 218,.28); border: 1px solid rgba(185, 198, 218,.75);
  box-shadow: 0 4px 8px -3px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2);
}
.g-fill { position: absolute; right: 0; top: 0; bottom: 0; background: linear-gradient(270deg, #b3633a, #d48054); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.g-bar span { position: relative; z-index: 1; display: block; text-align: center; line-height: 20px; font-size: var(--fs-2xs); font-weight: bold; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.g-bar.late { border-color: #ff6b61; background: rgba(255,107,97,.25); }
.g-bar.late .g-fill { background: linear-gradient(270deg, #b83a32, #ff6b61); }
.g-bar.done { border-color: #5cc888; } .g-bar.done .g-fill { background: linear-gradient(270deg, #1f7a45, #2e9e5a); }
.g-bar.approx { border-style: dashed; }
@media print { .gantt-wrap { overflow: visible; } .gantt { min-width: 0; } }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 14px; }
.kcol { border-radius: 18px; padding: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(26, 35, 52, .35); backdrop-filter: blur(6px); min-height: 160px; transition: border-color .15s, background .15s; }
.kcol header { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; font-size: var(--fs-md); }
.kcol.open header b { color: #ffcf8a; } .kcol.progress header b { color: #e39a73; } .kcol.resolved header b { color: #8fe3a8; }
.kcount { min-width: 28px; text-align: center; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: bold; font-size: var(--fs-sm); }
.kbody { display: flex; flex-direction: column; gap: 12px; }
.kcol.over { border-color: #ffd54f; background: rgba(142, 71, 48, .35); }
.kcol .obs { cursor: grab; }
.kcol .obs.dragging { opacity: .45; }
.kcol .obs.open { border-inline-start: 4px solid #ffb74d; }
.kcol .obs.progress { border-inline-start: 4px solid #d48054; }
.kcol .obs.resolved { border-inline-start: 4px solid #2e9e5a; opacity: .88; }
.kempty { text-align: center; color: var(--muted); font-size: var(--fs-sm); padding: 22px 0; border: 1px dashed rgba(255,255,255,.2); border-radius: 12px; }
@media (max-width: 1000px) { .kanban { grid-template-columns: 1fr; } }
.pill.prog { background: rgba(212, 128, 84,.2); color: #e3b9ab; border: 1px solid rgba(212, 128, 84,.55); }
.stats.four .st-blue, .st-blue { color: #e39a73; }

.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kb-col { border-radius: 18px; border: 1px solid rgba(255,255,255,.18); border-top-color: rgba(255,255,255,.38); background: rgba(26, 35, 52, .38); backdrop-filter: blur(8px); padding: 10px; transition: background .15s, border-color .15s; min-height: 160px; }
.kb-col.over { background: rgba(180, 90, 60, .30); border-color: var(--color-accent); }
.kb-col header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; border-bottom: 3px solid var(--kc, #ffb74d); margin-bottom: 10px; }
.kb-col header b { font-size: var(--fs-lg); } .kb-n { min-width: 28px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: bold; background: rgba(255,255,255,.14); }
.kb-col.c-open { --kc: #ffb74d; } .kb-col.c-progress { --kc: #d69883; } .kb-col.c-done { --kc: #4cc27f; }
.kb-body { display: flex; flex-direction: column; gap: 10px; max-height: 68vh; overflow-y: auto; padding: 2px; }
.kb-empty { text-align: center; color: var(--muted); padding: 22px 0; font-size: var(--fs-sm); }
.kb-card { cursor: grab; padding: 12px 14px; gap: 7px; }
.kb-card.dragging { opacity: .45; transform: scale(.98); }
.kb-card .obs-actions .btn { padding: 5px 10px; font-size: var(--fs-sm); }
.kb-card .obs-desc { font-size: var(--fs-base); line-height: 1.7; }
@media (max-width: 1000px) { .kb { grid-template-columns: 1fr; } .kb-body { max-height: none; } }

.hdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; background: #728fbe; box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 10px currentColor; color: #728fbe; }
.hdot.h-green { background: #3fd37a; color: #3fd37a; } .hdot.h-yellow { background: #ffc94d; color: #ffc94d; } .hdot.h-red { background: #ff5f55; color: #ff5f55; } .hdot.h-gray { background: #728fbe; color: #728fbe; }
.pcard { border-inline-start: 5px solid #728fbe; }
.pcard.h-green { border-inline-start-color: #3fd37a; } .pcard.h-yellow { border-inline-start-color: #ffc94d; } .pcard.h-red { border-inline-start-color: #ff5f55; }
.health-row { margin-top: 12px; }
.page-head p .hdot { margin-inline-end: 6px; }

.cal-d.cg { min-height: 88px; justify-content: flex-start; padding: 7px 4px; cursor: pointer; transition: transform .12s, border-color .12s; }
.cal-d.cg:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.55); }
.cal-d.cg.sel { outline: 2px solid var(--color-accent); outline-offset: 1px; background: rgba(195, 105, 75, .28); }
.cal-d.cg.off, .cal-d.cg.future { opacity: .55; }
.dcs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.dc { font-size: var(--fs-2xs); padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); white-space: nowrap; }
.dc.ok { background: rgba(46,160,90,.45); border-color: rgba(143,227,168,.7); }
.dc.mid { background: rgba(230,170,40,.40); border-color: rgba(255,207,138,.8); }
.dc.bad { background: rgba(200,67,58,.50); border-color: rgba(255,150,140,.8); }
.dc.due { background: rgba(212, 128, 84,.28); border-color: rgba(222, 173, 157,.75); } .dc.due.late { background: rgba(200,67,58,.40); border-color: rgba(255,150,140,.8); }
.legend .c-mid { background: #d9a03a; height: 12px; width: 12px; border-radius: 4px; }
a.row.due-row { color: inherit; text-decoration: none; display: flex; }
@media (max-width: 700px) { .cal-d.cg { min-height: 64px; } .dc { font-size: var(--fs-2xs); padding: 0 4px; } }

.bell-wrap { position: relative; flex: none; }
.bell-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; font-size: var(--fs-xl); line-height: 1;
  border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.07); color: #fff; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.bell-btn.has .bell-ic { display: inline-block; animation: bellring 2.4s ease-in-out 1; transform-origin: 50% 10%; }
@keyframes bellring { 0%,100% { transform: rotate(0) } 10%,30% { transform: rotate(14deg) } 20%,40% { transform: rotate(-14deg) } 50% { transform: rotate(0) } }
.bell-badge { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #e53935; color: #fff; font-size: var(--fs-2xs); line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.bell-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: min(380px, 92vw); max-height: 70vh; display: flex; flex-direction: column;
  border-radius: 14px; background: rgba(29, 39, 58,.97); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 18px 44px rgba(0,0,0,.55); color: #fff; overflow: hidden; }
.bell-panel[hidden] { display: none; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.bell-rf { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: var(--fs-sm); }
.bell-ra { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: var(--fs-sm); margin-inline-start: auto; margin-inline-end: 12px; }
.bell-body { overflow: auto; padding: 6px 0; }
.bell-g { padding: 8px 14px 4px; font-size: var(--fs-xs); color: var(--muted); font-weight: bold; }
.bell-it { display: flex; gap: 10px; padding: 9px 14px; color: #fff; text-decoration: none; align-items: flex-start; }
.bell-it:hover { background: rgba(255,255,255,.09); }
.bell-it div { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.bell-it span { color: #cfd9ea; font-size: var(--fs-sm); }
.bell-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #fb8c00; }
.bell-it.red .bell-dot { background: #e53935; }
.bell-empty { padding: 22px 14px; text-align: center; color: var(--muted); }
.bell-f { padding: 8px 14px; font-size: var(--fs-2xs); color: var(--muted); border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
@media (max-width: 899px) { .bell-wrap { margin-inline-start: 8px; } .bell-panel { inset-inline-end: auto; inset-inline-start: -4px; } }
@media print { .bell-wrap { display: none; } }
.tb-icons { display: flex; align-items: center; gap: var(--tb-icon-gap); flex: none; }
.tb-icons .bell-wrap { margin-inline-start: 0; }
#bell, .tb-icons > [data-ghost="bell"] { order: 1; }
.ibx-all { display: block; text-decoration: none; color: var(--accent); font-size: var(--fs-sm); }
.ibx-all:hover { text-decoration: underline; }
@media (max-width: 899px) { .tb-icons { margin-inline-start: var(--tb-icon-gap); } }
@media print { .tb-icons { display: none; } }

.wiz { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 24px; }
.wiz-rail { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 110px; }
.wiz-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; cursor: pointer; font: inherit; font-size: var(--fs-base); color: #fff; text-align: start;
  border: 1px solid rgba(255,255,255,.2); background: rgba(29, 39, 58,.55); backdrop-filter: blur(6px); transition: background .12s, border-color .12s, transform .12s; }
.wiz-tab:hover { background: rgba(255,255,255,.12); }
.wiz-tab i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: var(--fs-sm); font-weight: bold; background: rgba(255,255,255,.14); }
.wiz-tab span { flex: 1; }
.wiz-tab em { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-style: normal; font-size: var(--fs-xs); line-height: 22px; text-align: center; background: rgba(76,175,80,.28); color: #a5d6a7; }
.wiz-tab em:empty { display: none; }
.wiz-tab.on { background: linear-gradient(135deg, #b2593c, #627ba4); border-color: rgba(255,255,255,.7); box-shadow: 0 8px 20px rgba(0,0,0,.4); transform: translateX(-4px); }
.wiz-tab.on i { background: rgba(255,255,255,.28); }
.wiz-tab.done i { background: #2e7d32; }
.wiz-tab.seen i { background: rgba(255,213,79,.35); }
.wiz-step[hidden] { display: none; }
.wiz-nav { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.wiz-nav .btn { width: auto; min-width: 130px; margin: 0; }
.wiz-nav .btn:disabled { opacity: .4; cursor: default; }
.wiz-nav .btn[hidden] { display: none; }
.wiz-pos { flex: 1; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.wiz-nav #btnSubmit { margin-inline-start: auto; min-width: 200px; }
@media (max-width: 899px) {
  .wiz { grid-template-columns: 1fr; gap: 10px; }
  .wiz-rail { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; gap: 6px; scrollbar-width: thin; }
  .wiz-tab { width: auto; flex: none; padding: 8px 10px; font-size: var(--fs-sm); }
  .wiz-tab.on { transform: none; }
  .wiz-nav { flex-wrap: wrap; } .wiz-pos { order: -1; flex-basis: 100%; }
  .wiz-nav .btn { flex: 1; }
}
@media (min-width: 1100px) { .wiz-top .info-grid { grid-template-columns: repeat(5, 1fr); } }

.stats.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .stats.three { grid-template-columns: 1fr 1fr; } }
.sub-card { padding: 14px 16px; margin-bottom: 10px; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; margin-bottom: 8px; }
.sub-head .main { display: flex; flex-direction: column; gap: 3px; }
.sub-head .main span { color: var(--muted); font-size: var(--fs-sm); }
.sub-n { text-align: center; } .sub-n b { display: block; font-size: var(--fs-num); } .sub-n small { color: var(--muted); }
.sub-card.open { border-color: rgba(255,255,255,.55); }
.sub-detail { margin-top: 12px; }
.sub-detail .tbl-wrap { overflow-x: auto; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:hover { background: rgba(255,255,255,.08); }

.sn-btn { display: none; }
.sidenav { position: fixed; top: 92px; inset-inline-start: max(20px, calc(((100vw / var(--uz, 1)) - 1560px) / 2 + 16px)); width: calc(var(--sb-w) / var(--sb-scale)); box-sizing: border-box; zoom: var(--sb-scale); z-index: 15; display: flex; flex-direction: column; gap: 14px;
  padding: 14px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 37, 49,.82), rgba(27, 36, 54,.82)); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.sn-g { display: flex; flex-direction: column; gap: 3px; }
.sn-g + .sn-g { padding-top: 4px; }
.sn-t { display: flex; align-items: center; gap: 11px; padding: 10px 12px; font-size: var(--fs-base); font-weight: bold; color: #fff; border-radius: 10px; background: rgba(255,255,255,.05); }
.sn-t svg { color: #e39a73; }
.sn-g.sub { gap: 2px; }
.sn-g.sub > a { margin-inline-start: 16px; padding: 8px 12px 8px 10px; font-size: var(--fs-base); border-radius: 8px; border-inline-start: 1px solid rgba(255,255,255,.14); border-start-start-radius: 0; border-end-start-radius: 0; }
.sn-g.sub > a svg { width: 16px; height: 16px; }
.sn-g.sub > a.on::before { inset-inline-start: -2px; inset-block: 6px; }
.sidenav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #d6e1f2; text-decoration: none; font-size: var(--fs-base); transition: background .12s, color .12s; }
.sidenav a svg { flex: none; opacity: .85; }
.sidenav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidenav a.on { background: rgba(200, 118, 90,.22); color: #fff; font-weight: bold; }
.sidenav a.on svg { opacity: 1; color: #e39a73; }
.sidenav a.on::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: -10px; width: 4px; border-radius: 4px; background: #d28e77; }
.sn-badge { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e53935; color: #fff; font-size: var(--fs-2xs); line-height: 20px; text-align: center; }
.sn-badge[hidden] { display: none; }
.sn-scrim { display: none; }
@media (max-width: 1099px) {
  .sn-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: var(--fs-xl); color: #fff;
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); flex: none; }
  .sidenav { top: 0; bottom: 0; inset-inline-start: 0; width: var(--sb-w-mobile); zoom: 1; border-radius: 0; padding-top: 20px; transform: translateX(100%); transition: transform .2s; z-index: 70; background: rgba(27, 36, 54,.98); overflow-y: auto; }
  .sidenav a.on::before { inset-inline-start: -6px; }
  body.sn-open .sidenav { transform: none; }
  body.sn-open .sn-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.5); }
}
@media print { .sidenav, .sn-btn { display: none; } body.has-nav .page { padding-inline-start: 0; } }
.mob-only { display: block; }
@media (min-width: 1100px) { .mob-only { display: none; } }

@media (min-width: 900px) {
  body.nb .topbar { height: 76px; }
  body.nb .page { padding-top: 98px; }
  body.nb .topbar > .tb-logo { width: var(--sb-w); height: 66px; margin-inline-end: 0; padding: 6px 12px; box-sizing: border-box;
    background: url("../img/company_logo_h.png") center / contain no-repeat; background-origin: content-box;
  }
}
@media (min-width: 1100px) {
  .sidenav { top: 92px; }
  .wiz-rail { top: 96px; }
  body.has-nav .stats { gap: 10px; margin-bottom: 10px; }
  body.has-nav .stat { padding: 9px 12px; }
  body.has-nav .stat span { font-size: var(--fs-xs); }
  body.has-nav .stat b { font-size: var(--fs-num); margin-top: 2px; }
  body.has-nav .stats.four .stat span { min-height: 0; }
  body.has-nav .pgrid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
  body.has-nav .pcard { padding: 12px 14px 10px; }
  body.has-nav .pc-head b { font-size: var(--fs-md); }
  body.has-nav .pc-head .pct { font-size: var(--fs-xl); }
  body.has-nav .pcard .pbar { height: 10px; margin: 8px 0 6px; }
  body.has-nav .pc-sub { font-size: var(--fs-xs); }
  body.has-nav .pc-chips { margin: 8px 0 6px; }
  body.has-nav .pc-foot { font-size: var(--fs-2xs); }
  body.has-nav .sec > summary, body.has-nav .la-banner { padding: 10px 14px; }
  body.has-nav .sec > summary > img { width: 38px; height: 38px; }
  body.has-nav .menu-card { padding: 10px 14px; }
  body.has-nav .page-head h1 { font-size: var(--fs-num); }
  body.has-nav .panel { padding: 12px 14px; margin-bottom: 10px; }
}
@media print { body.has-nav .page { padding-inline-start: 0; } }

.vz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 899px) { .vz-grid2 { grid-template-columns: 1fr; } }
.vz-card { margin-bottom: 0; }
.vz-card .panel-title { font-size: var(--fs-md); }
.stat.kpi small { display: block; color: var(--muted); font-size: var(--fs-2xs); margin-top: 2px; }
.stats.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 899px) { .stats.five { grid-template-columns: 1fr 1fr; } }
.vz-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vz-donut { width: 170px; height: 170px; flex: none; }
.vz-big { font-size: var(--fs-num); font-weight: bold; fill: #fff; } .vz-sm { font-size: var(--fs-2xs); fill: #b6c5dc; }
.vz-leg { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-base); }
.vz-card > .vz-leg { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; }
.vz-leg span { display: flex; align-items: center; gap: 8px; } .vz-leg i { width: 11px; height: 11px; border-radius: 3px; flex: none; } .vz-leg b { margin-inline-start: 2px; }
.vz-stack { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin-top: 4px; } .vz-stack span { min-width: 6px; }
.vz-sub { margin: 14px 0 6px; font-size: var(--fs-sm); color: var(--muted); }
.vz-bars { width: 100%; height: auto; display: block; }
.vz-grid { stroke: rgba(255,255,255,.1); stroke-width: 1; } .vz-ax { font-size: var(--fs-2xs); fill: #9fb0cb; }
.vz-hit { cursor: default; } .vz-hit:hover { filter: brightness(1.25); }
.vz-proj { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; padding-inline-end: 4px; }
.vz-pr { display: grid; grid-template-columns: 12px minmax(90px, 160px) 1fr 42px; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; color: inherit; text-decoration: none; font-size: var(--fs-base); }
.vz-pr:hover { background: rgba(255,255,255,.07); } .vz-pr b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: normal; } .vz-pr em { font-style: normal; text-align: end; font-weight: bold; }
.vz-pr .pbar { margin: 0; height: 10px; }
.vz-note { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.vz-tip { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(16, 20, 27,.96); border: 1px solid rgba(255,255,255,.25); font-size: var(--fs-sm); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.vz-tip[hidden] { display: none; }
@media print { .vz-tip { display: none; } .vz-proj { max-height: none; } }

.cal-grid { gap: 5px; }
.cal-d.cg { min-height: 58px; padding: 5px 3px; }
.cal-d.cg b { font-size: var(--fs-base); }
.dc { font-size: var(--fs-2xs); padding: 0 6px; }
.cal-d { min-height: 50px; }
.cal-d b { font-size: var(--fs-md); }
@media (min-width: 900px) { #result .cal-grid { max-width: 880px; margin-inline: auto; } }

.sn-steps .sn-step { position: relative; display: flex; align-items: center; gap: 9px; width: calc(100% - 16px); margin-inline-start: 16px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: var(--fs-sm); color: #d6e1f2;
  background: none; border: 0; border-inline-start: 1px solid rgba(255,255,255,.14); border-start-start-radius: 0; border-end-start-radius: 0; text-align: start; }
.sn-step:hover { background: rgba(255,255,255,.09); color: #fff; }
.sn-step i { flex: none; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: var(--fs-2xs); font-weight: bold; background: rgba(255,255,255,.14); }
.sn-step span { flex: 1; } .sn-step sup { color: #ff8a80; }
.sn-step em { flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-style: normal; font-size: var(--fs-2xs); line-height: 20px; text-align: center; background: rgba(76,175,80,.28); color: #a5d6a7; }
.sn-step em:empty { display: none; }
.sn-step.on { background: rgba(200, 118, 90,.22); color: #fff; font-weight: bold; } .sn-step.on i { background: #b2593c; }
.sn-step.done i { background: #2e7d32; } .sn-step.seen i { background: rgba(255,213,79,.4); }
.wiz-progress { padding: 10px 16px; margin-bottom: 12px; }
.wp-t { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; font-size: var(--fs-base); } .wp-t span { color: #ffb74d; font-size: var(--fs-sm); }
.wiz-progress .pbar { margin: 0; height: 9px; }
.step-hint { margin: -2px 0 12px; color: var(--muted); font-size: var(--fs-sm); }
.wiz-review { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.2); }
.wiz-review h4 { margin: 0 0 10px; font-size: var(--fs-base); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rv { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font: inherit; font-size: var(--fs-sm); color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.rv.ok { border-color: rgba(143,227,168,.55); background: rgba(46,160,90,.2); } .rv.bad { border-color: rgba(255,138,128,.7); background: rgba(200,67,58,.25); }
.rv:hover { background: rgba(255,255,255,.14); }
.rv-note { margin: 10px 0 0; font-size: var(--fs-base); color: var(--muted); }
@media (min-width: 1100px) {
  body.has-nav .wiz { grid-template-columns: 1fr; }
  body.has-nav .wiz-rail { flex-direction: row; gap: 8px; position: sticky; top: 84px; z-index: 9; padding: 8px; margin-bottom: 4px; border-radius: 14px;
    background: rgba(27, 36, 54, .86); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
  body.has-nav .wiz-tab { flex: 1; width: auto; justify-content: center; }
  body.has-nav .wiz-tab.on { transform: none; }
  body.has-nav .wiz-top .info-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1099px) { .sn-steps { display: none; } }

.desk-only { display: none; }
@media (min-width: 1100px) { .desk-only { display: block; } }
.it-hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.it-hello h2 { margin: 0 0 4px; font-size: var(--fs-xl); } .it-hello p { margin: 0; color: var(--muted); font-size: var(--fs-base); }
.it-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.it-row.clickable { cursor: pointer; } .it-row.clickable:hover { background: rgba(255,255,255,.1); }
.it-row.ok { border-color: rgba(143,227,168,.4); }
.it-row .main { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .it-row .main span { color: var(--muted); font-size: var(--fs-sm); }
.it-act { display: flex; gap: 8px; flex: none; } .it-act .btn { margin: 0; text-decoration: none; }
.it-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 7px; background: #728fbe; }
.it-dot.ok { background: #3fd37a; } .it-dot.bad { background: #ffb74d; } .it-dot.off { background: #728fbe; }
.ad-table td, .ad-table th { white-space: nowrap; } .ad-c { min-width: 110px; } .ad-c small { color: var(--muted); font-size: var(--fs-2xs); }

.chk-roles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chk-role { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.chk-role b { font-size: var(--fs-xs); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.12); }
.chk-role.on { background: rgba(212, 128, 84,.28); border-color: rgba(227, 154, 115,.7); }
.chk-role.full b { background: rgba(63,211,122,.28); color: #8fe3a8; }
.chk-role.off { opacity: .6; }
.chk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chk-head .chk-count { color: var(--muted); font-size: var(--fs-sm); margin-inline-start: auto; }
.chk-absent { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); cursor: pointer; }
.chk-slot { margin-bottom: 12px; }
.chk-slot h4 { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.chk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.chk-row.yes { border-color: rgba(63,211,122,.45); background: rgba(63,211,122,.07); }
.chk-row.no { border-color: rgba(255,120,100,.5); background: rgba(255,120,100,.07); }
.chk-t { flex: 1 1 240px; line-height: 1.6; }
.chk-btns { display: flex; gap: 6px; flex: none; }
.chk-b { padding: 7px 14px; border-radius: 10px; font: inherit; cursor: pointer; color: inherit; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); }
.chk-b.yes[aria-pressed="true"] { background: #1f9d57; border-color: #3fd37a; color: #fff; }
.chk-b.no[aria-pressed="true"] { background: #c4432f; border-color: #ff8a73; color: #fff; }
.chk-note { flex: 1 1 100%; }
.chk-sum { margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); }
.chk-absent input { width: auto; flex: none; margin: 0; }

.ck-slot { padding: 12px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.ck-slot-h { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ck-slot-h label { flex: 1 1 220px; font-size: var(--fs-sm); color: var(--muted); }
.ck-slot textarea { width: 100%; min-height: 70px; }
.pfill.pf-g { background: linear-gradient(90deg, #1f9d57, #3fd37a); } .pfill.pf-y { background: linear-gradient(90deg, #c99a1f, #f0c53d); } .pfill.pf-r { background: linear-gradient(90deg, #c4432f, #ff8a73); }
.hr-bar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 74px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: var(--fs-base); }
.hr-bar b { text-align: start; } .hr-bar small { color: var(--muted); display: block; font-size: var(--fs-2xs); }
.hr-reason { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: var(--fs-base); }
.hr-line { stroke: #d48054; stroke-width: 2.4; fill: none; } .hr-dot { fill: #d48054; stroke: #1f2738; stroke-width: 1.5; }
@media (max-width: 700px) { .hr-bar { grid-template-columns: 1fr 64px; } .hr-bar .pbar { grid-column: 1 / -1; order: 3; } }

.sn-sec { display: flex; align-items: center; text-align: center; flex-direction: column; gap: 2px; padding: 4px 12px 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sn-sec span { font-size: var(--fs-2xs); color: var(--muted); }
.sn-sec b { font-size: var(--fs-md); color: #fff; text-align: center; }
.sn-step span { white-space: nowrap; }
html { scroll-behavior: smooth; }
#roles, #sites, #tasks, #people, #safety { scroll-margin-top: 96px; }

.ap-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: bold; border: 1px solid transparent; }
.ap-chip.ap-ok { background: rgba(63,211,122,.18); color: #8fe3a8; border-color: rgba(63,211,122,.4); }
.ap-chip.ap-bad { background: rgba(255,120,100,.16); color: #ffab9b; border-color: rgba(255,120,100,.45); }
.ap-chip.ap-pending { background: rgba(240,197,61,.15); color: #f3d77a; border-color: rgba(240,197,61,.4); }
.ap-box { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.ap-box label { display: block; font-size: var(--fs-sm); color: var(--muted); } .ap-box textarea { width: 100%; margin-top: 6px; }
.ap-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ap-tabs button { padding: 8px 14px; border-radius: 10px; font: inherit; color: inherit; cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.ap-tabs button.on { background: rgba(212, 128, 84,.28); border-color: rgba(227, 154, 115,.7); }
.ap-tabs b { margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(240,197,61,.25); font-size: var(--fs-xs); }
.ap-returned { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid rgba(255,120,100,.5); background: rgba(255,120,100,.1); }
.ap-returned a { color: #ffd2c8; }
@media print { .ap-box, .modal .actions { display: none !important; } }

.offline-pill { position: fixed; z-index: 60; bottom: 14px; inset-inline-start: 50%; transform: translateX(50%); padding: 8px 16px; border-radius: 999px; background: #8a5a00; color: #fff; font-size: var(--fs-sm); font-weight: bold; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.offline-pill[hidden] { display: none; }
.wx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: var(--fs-base); }
.wx .wx-l { color: var(--muted); } .wx b { margin-inline-end: auto; } .wx select { width: auto; min-width: 150px; }
.sub-title { margin: 6px 0 8px; font-size: var(--fs-base); color: #f5dcc8; }

.pl-card { padding: 12px 14px; margin-bottom: 10px; }
.pl-card.late { border-color: rgba(255,120,100,.55) !important; }
.pl-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.pl-head .main { display: flex; flex-direction: column; gap: 3px; } .pl-head .main span { color: var(--muted); font-size: var(--fs-sm); }
.pl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-meta { margin-top: 6px; font-size: var(--fs-sm); color: #d5e2f5; }
#pAdd > form { padding: 12px 16px 16px; margin: 0; }

.rt-card { padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.rt-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .rt-h b { font-size: var(--fs-md); }
.rt-row { display: grid; grid-template-columns: minmax(150px, 220px) auto 1fr; align-items: center; gap: 10px; padding: 4px 0; font-size: var(--fs-base); }
.rt-row em { color: var(--muted); font-style: normal; font-size: var(--fs-sm); }
.rt-stars { display: flex; gap: 5px; direction: ltr; }
.rt-b { width: 34px; height: 32px; border-radius: 8px; font: inherit; font-weight: bold; cursor: pointer; color: #f5dcc8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); }
.rt-b.fill { background: rgba(240,197,61,.28); border-color: rgba(240,197,61,.6); color: #fff; }
.rt-b.on { background: #c99a1f; border-color: #f0c53d; }
.rt-note { width: 100%; margin-top: 8px; }
.rt-add { display: flex; gap: 8px; margin-top: 6px; } .rt-add input { flex: 1; }
@media (max-width: 700px) { .rt-row { grid-template-columns: 1fr auto; } .rt-row em { display: none; } .rt-b { width: 38px; height: 36px; } }
.ev-c { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.ev-table tr.on td { background: rgba(212, 128, 84,.12); }
.ev-detail td { background: rgba(255,255,255,.03); }
.ev-d { padding: 6px 2px; white-space: normal; }
.eval-print { display: none; }
@media print {
  body.printing-eval > *:not(#evalPrint) { display: none !important; }
  body.printing-eval #evalPrint { display: block !important; }
  body.printing-eval { background: #fff !important; }
}
.ep { color: #38465d; font-family: "El Messiri", sans-serif; font-size: var(--fs-sm); padding: 10mm; background: #fff; }
.ep-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #3f4f69; margin-bottom: 10px; }
.ep-h h1 { margin: 0; font-size: var(--fs-xl); color: #3f4f69; } .ep-h p { margin: 4px 0 8px; }
.ep-h img { height: 60px; padding: 6px 10px; border-radius: 8px; background: #38465d; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ep h3 { margin: 12px 0 4px; font-size: var(--fs-base); color: #3f4f69; }
.ep table { width: 100%; border-collapse: collapse; } .ep th, .ep td { border: 1px solid #9fb0c8; padding: 5px 7px; text-align: start; }
.ep th { background: #ececec; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ep-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; text-align: center; } .ep-sign div { border-top: 1px dashed #6c88b5; padding-top: 6px; }

.today-strip { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.today-strip .ts-l { display: flex; align-items: center; padding: 0 6px; font-weight: bold; color: #f5dcc8; font-size: var(--fs-base); }
.ts-c { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: inherit; font-size: var(--fs-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.ts-c b { font-size: var(--fs-xl); } .ts-c.ok b { color: #8fe3a8; } .ts-c.bad { border-color: rgba(255,150,120,.5); background: rgba(255,120,100,.1); } .ts-c.bad b { color: #ffab9b; }
.ts-c:hover { background: rgba(255,255,255,.12); }
.ts-c[hidden] { display: none; }

.ck-heads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ck-rc, .ck-rb { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; text-align: start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.ck-rc.on, .ck-rb.on { border-color: rgba(227, 154, 115,.85); background: rgba(212, 128, 84,.2); box-shadow: 0 0 0 1px rgba(227, 154, 115,.4) inset; }
.ck-rc.off, .ck-rb.off { opacity: .55; }
.ck-ring { width: 52px; height: 52px; flex: none; } .ck-ring .trk { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 5; }
.ck-ring .val { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .3s; } .ck-ring text { fill: #fff; font-size: var(--fs-xs); font-weight: bold; }
.ck-ring.go .val { stroke: #d48054; } .ck-ring.ok .val { stroke: #3fd37a; } .ck-ring.warn .val { stroke: #f0c53d; }
.ck-off { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); flex: none; }
.ck-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ck-rt small, .ck-rb small { color: var(--muted); font-size: var(--fs-2xs); }
.ck-bar { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); } .ck-bar .ck-title { font-size: var(--fs-md); } .ck-bar .chk-count { margin-inline-start: 6px; margin-inline-end: auto; }
.ck-tl { position: relative; }
.ck-tls { display: grid; grid-template-columns: 110px 1fr; gap: 14px; position: relative; padding-bottom: 12px; }
.ck-tls::before { content: ""; position: absolute; inset-inline-start: 54px; top: 46px; bottom: 0; width: 2px; background: rgba(255,255,255,.12); }
.ck-node { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(199, 115, 87,.16); border: 1px solid rgba(199, 115, 87,.45); height: fit-content; position: relative; z-index: 1; }
.ck-node b { font-size: var(--fs-xs); direction: ltr; } .ck-node small { color: var(--muted); } .ck-node.full { background: rgba(63,211,122,.16); border-color: rgba(63,211,122,.5); }
.ck-tlt { display: flex; flex-direction: column; gap: 6px; }
.ck-tlr { margin: 0; padding: 8px 12px; border-inline-start: 4px solid rgba(255,255,255,.18); }
.ck-tlr.yes { border-inline-start-color: #3fd37a; } .ck-tlr.no { border-inline-start-color: #ff8a73; }
.ck-tlr.yes .chk-t { color: #bfe9cc; }
.ck-seg { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); flex: none; }
.ck-seg .chk-b { border: 0; border-radius: 0; width: 44px; padding: 7px 0; font-size: var(--fs-md); }
.ck-seg .chk-b + .chk-b { border-inline-start: 1px solid rgba(255,255,255,.22); }
.ck-tiles .chk-row, .ck-tlt .chk-row { flex-wrap: wrap; }
.ck-rb { flex-direction: column; align-items: stretch; }
.ck-rn { font-weight: bold; }
.ck-stack { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); }
.ck-stack .d { background: #3fd37a; } .ck-stack .m { background: #ff8a73; }
.ck-hint { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--muted); }
.ck-tslot h4 { margin: 10px 0 6px; font-size: var(--fs-sm); color: var(--muted); }
.ck-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ck-tile { margin: 0; padding: 0; display: flex; flex-direction: column; }
.chk-cyc { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 12px; font: inherit; color: inherit; text-align: start; cursor: pointer; background: none; border: 0; }
.ck-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); font-style: normal; font-weight: bold; }
.ck-tile.yes .ck-ic { background: #1f9d57; border-color: #3fd37a; } .ck-tile.no .ck-ic { background: #c4432f; border-color: #ff8a73; }
.ck-tile .chk-note { margin: 0 12px 10px; width: auto; }
@media (max-width: 900px) { .ck-heads { grid-template-columns: 1fr 1fr; } .ck-tiles { grid-template-columns: 1fr; } .ck-tls { grid-template-columns: 1fr; } .ck-tls::before { display: none; } .ck-node { flex-direction: row; justify-content: space-between; padding: 6px 12px; } }
.ck-tile { align-items: stretch; }
.ck-tile .chk-note { flex: none; align-self: stretch; width: auto; margin: 0 12px 10px; }
.ph-sub { display: block; font-size: var(--fs-2xs); font-weight: normal; color: var(--muted); margin-top: 1px; white-space: normal; }
.sn-step span { white-space: normal; }
.wiz-step + .wiz-step:not([hidden]) { margin-top: 0; }

@media (min-width: 1100px) {
  #ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
  #ratings .rt-card { margin: 0; }
  #ratings > .empty { grid-column: 1 / -1; }
  #ratings .rt-row { grid-template-columns: minmax(140px, 1fr) auto 70px; }
}

.ck-heads.ck-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ck-heads.ck-tiles .ck-rb { padding: 7px 10px; gap: 4px; border-radius: 10px; }
.ck-heads.ck-tiles .ck-rn { font-size: var(--fs-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-heads.ck-tiles .ck-stack { height: 5px; }
.ck-heads.ck-tiles small { font-size: var(--fs-2xs); white-space: nowrap; }
@media (max-width: 900px) { .ck-heads.ck-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ck-heads.ck-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1100px) {
  #labor, #items, #inspections, #materials, #waste, #requests, #obstacles, #visitors, #equipment {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  #equipment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #labor > .rrow, #items > .rrow, #inspections > .rrow, #materials > .rrow, #waste > .rrow,
  #requests > .rrow, #obstacles > .rrow, #visitors > .rrow, #equipment > .rrow { margin: 0; }
  #punch .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  #punch .list > .pl-card { margin: 0; }
}

@media (min-width: 1100px) {
  .sidenav { max-height: calc((100vh / var(--uz, 1)) - 108px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(222, 173, 157,.45) transparent; }
  .sidenav::-webkit-scrollbar { width: 6px; }
  .sidenav::-webkit-scrollbar-thumb { background: rgba(222, 173, 157,.45); border-radius: 6px; }
  .sidenav::-webkit-scrollbar-track { background: transparent; }
  .sidenav > * { flex: none; }
}

.lab-abs { display: inline-flex; align-items: center; gap: 8px; margin: -2px 0 8px; font-size: var(--fs-sm); color: #ffcfc4; cursor: pointer; }
.lab-abs input { width: auto; margin: 0; }
.rrow.absent { border-color: rgba(255,120,100,.45); background: rgba(255,120,100,.06); }
.rrow.absent .field:not(:first-child) { opacity: .55; }

.lg-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lg-type { cursor: pointer; position: relative; } .lg-type input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; inset: 0; }
.lg-type span { display: inline-block; padding: 8px 12px; border-radius: 10px; font-size: var(--fs-base); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.lg-type input:checked + span { background: rgba(212, 128, 84,.3); border-color: rgba(227, 154, 115,.85); font-weight: bold; }
.lg-type input:focus-visible + span { outline: 2px solid var(--color-accent); }
#lgAdd > form { padding: 12px 16px 16px; margin: 0; }
.lg-tl { position: relative; padding-inline-start: 4px; }
.lg-month { margin: 14px 0 8px; font-weight: bold; color: #f5dcc8; font-size: var(--fs-base); }
.lg-item { display: grid; grid-template-columns: 40px 1fr; gap: 10px; position: relative; margin-bottom: 10px; }
.lg-item::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: -12px; width: 2px; background: rgba(255,255,255,.12); }
.lg-dot { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: var(--fs-xl); background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); z-index: 1; }
.lg-item.lg-ok .lg-dot { border-color: #3fd37a; } .lg-item.lg-bad .lg-dot { border-color: #ff8a73; } .lg-item.lg-warn .lg-dot { border-color: #f0c53d; } .lg-item.lg-info .lg-dot { border-color: var(--color-accent); }
.lg-card { padding: 10px 14px; margin: 0; }
.lg-item.lg-bad .lg-card { border-color: rgba(255,120,100,.45) !important; }
.lg-h b { font-size: var(--fs-md); } .lg-h span { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.lg-meta { margin-top: 6px; font-size: var(--fs-sm); } .lg-d { margin: 6px 0 0; white-space: pre-wrap; font-size: var(--fs-base); line-height: 1.7; }
.lg-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .lg-f small { color: var(--muted); }

@media (min-width: 1100px) {
  .sidenav { scrollbar-width: auto; scrollbar-color: rgba(222, 173, 157,.75) rgba(255,255,255,.06); scrollbar-gutter: stable; }
  .sidenav::-webkit-scrollbar { width: 9px; }
  .sidenav::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 8px; margin: 10px 0; }
  .sidenav::-webkit-scrollbar-thumb { background: rgba(222, 173, 157,.75); border-radius: 8px; border: 2px solid rgba(27, 36, 54,.9); }
  .sidenav::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
}

.menu.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; margin: 0 auto; gap: 14px; }
.menu.home-grid .menu-card { padding: 16px 18px; min-height: 96px; }
.menu.home-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
@media (min-width: 1100px) {
  .menu.home-grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1240px; }
  .menu.home-grid > * { flex: 0 0 calc((100% - 28px) / 3); min-width: 0; }
  .menu.home-grid > :last-child:nth-child(odd) { width: auto; }
  .pj-strip { max-width: 1240px; }
}
@media (min-width: 1200px) {
  .menu.home-grid { max-width: 1480px; }
  .menu.home-grid > * { flex: 0 0 calc((100% - 54px) / 4); }
  .menu.home-grid { gap: clamp(10px, 1.9vh, 18px) 18px; }
  .menu.home-grid .menu-card { padding: clamp(10px, 2vh, 18px) 22px; gap: 16px; min-height: clamp(72px, 11.5vh, 100px); }
  .menu.home-grid .menu-card .icon-box { width: 78px; height: 62px; transform: none; }
  .menu.home-grid .menu-card .text { transform: none; }
  .menu.home-grid .menu-card .icon-box img { max-width: 68px; max-height: 46px; }
  .menu.home-grid .menu-card .text b, .menu.home-grid .menu-card .text > span { white-space: normal; overflow: visible; }
  .pj-strip { max-width: 1480px; }
}
@media (min-width: 900px) {
  body.home .topbar .page-head.in-bar { margin-top: 0; }
  body.home #content { margin-top: auto; }
}
@media (max-width: 760px) {
  .menu.home-grid { grid-template-columns: 1fr; max-width: 560px; }
  .menu.home-grid > :last-child:nth-child(odd) { width: auto; justify-self: stretch; }
}
@media (min-width: 761px) {
  body.home .page { display: flex; flex-direction: column; min-height: calc(100vh / var(--uz, 1)); }
  body.home .page-head { margin-top: auto; }
  body.home #content { margin-bottom: auto; width: 100%; }
}
.ub-name { font-weight: bold; color: #e8f1ff; }
@media (max-width: 700px) { #userBar .ub-name + span { display: none; } }

.wk-frame { display: block; width: 100%; min-height: 900px; border: 0; border-radius: 12px; background: transparent; }

@media (min-width: 900px) {
  body.nb .topbar .page-head.in-bar {
    display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-content: center;
    margin: 0 auto; text-align: start; background: none; border: 0; padding: 0; min-width: 0;
  }
  body.nb .topbar .page-head.in-bar img { grid-row: 1 / 3; height: 40px; max-width: 110px; margin: 0; padding: 4px 8px; border-radius: 10px; }
  body.nb .topbar .page-head.in-bar h1 { margin: 0; font-size: var(--fs-xl); line-height: 1.3; white-space: nowrap; }
  body.nb .topbar .page-head.in-bar p { margin: 0; font-size: var(--fs-xs); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
  body.nb .topbar .page-head.in-bar ~ #userBar { margin-inline-start: 0; }
}
@media (min-width: 1100px) {
  body.has-nav .stats .stat, body.has-nav .stat.kpi {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; text-align: start; padding: 8px 14px;
  }
  body.has-nav .stats .stat > span, body.has-nav .stat.kpi > span { grid-column: 1; min-height: 0; }
  body.has-nav .stats .stat > b, body.has-nav .stat.kpi > b { grid-column: 2; grid-row: 1 / span 3; margin: 0; font-size: var(--fs-xl); }
  body.has-nav .stats .stat > small, body.has-nav .stat.kpi > small { grid-column: 1; margin: 0; }
}

.ls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.ls-scope { margin: 0; min-width: 260px; }
.ls-row { display: grid; grid-template-columns: 28px 1fr auto auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.ls-row input { margin: 0; }
.ls-row.fixed { grid-template-columns: 28px 1fr auto; padding: 8px 0; color: var(--muted); }
.ls-row.fixed em { font-style: normal; font-size: var(--fs-xs); padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ls-n { text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.ls-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; cursor: pointer; font-size: var(--fs-xs); }
.ls-btn:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.ls-btn:disabled { opacity: .3; cursor: default; }
.ls-btn.del:hover { background: rgba(229,57,53,.3); border-color: rgba(255,160,160,.6); }
.ls-add { display: flex; gap: 8px; margin-top: 10px; }
.ls-add input { flex: 1; margin: 0; }
@media (min-width: 1100px) { #rows { columns: 2; column-gap: 18px; } #rows .ls-row { break-inside: avoid; } }

.rt-row:has(.rt-w), #ratings .rt-row:has(.rt-w) { grid-template-columns: minmax(150px, 220px) 1fr; }
.rt-stars:has(.rt-w) { display: flex; gap: 6px; flex-wrap: nowrap; direction: rtl; }
.rt-b.rt-w { width: auto; min-width: 70px; padding: 0 12px; height: 34px; font-size: var(--fs-base); flex: 0 1 auto; }
.rt-b.rt-w.on.bad  { background: #c0392b; border-color: #ff8a80; color: #fff; }
.rt-b.rt-w.on.mid  { background: #c9821f; border-color: #f0b44d; color: #fff; }
.rt-b.rt-w.on.good { background: #1f8a4c; border-color: #6fe0a0; color: #fff; }
.rt-b.rt-w.on.exc  { background: #1f8a4c; border-color: #6fe0a0; color: #fff; }
@media (max-width: 700px) {
  .rt-row:has(.rt-w), #ratings .rt-row:has(.rt-w) { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; }
  .rt-stars:has(.rt-w) { flex-wrap: nowrap; width: 100%; }
  .rt-b.rt-w { flex: 1 1 0; min-width: 0; width: auto; height: 38px; padding: 0 4px; }
}

html[data-guard] body { visibility: hidden; }

.report-row .del-link { display: inline-block; margin-top: 8px; margin-inline-start: 18px; font-size: var(--fs-sm); font-weight: bold; color: #ff8a80; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.report-row .del-link:hover { text-decoration: underline; }

.rrow .lab-work { margin-top: 4px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.16); }
.rrow.absent .lab-work { opacity: .45; }

.ra-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ra-filters .field { margin: 0; min-width: 200px; }
.ra-filters .seg button { padding: 9px 14px; }
.ra-filters .seg button.on { background: rgba(212, 128, 84,.45); }
.ra-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ra-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: bold; }
.ra-all input, .ra-table input[type=checkbox] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.ra-table tr.sel td { background: rgba(229,57,53,.12); }
.ra-table td:first-child { width: 36px; text-align: center; }
.ra-act { white-space: nowrap; }
.ra-act .link-btn { margin-inline: 6px; font-size: var(--fs-sm); text-decoration: none; }
.table-wrap { overflow-x: auto; }
.ra-p[hidden] { display: none !important; }
.ra-bar .btn.danger { background: linear-gradient(90deg, #b71c1c, #e53935) !important; border-color: rgba(255,160,160,.5) !important; } .ra-bar .btn.danger:disabled { opacity: .45; cursor: default; }

.report-row .rr-info { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.report-row .rr-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.report-row .rr-b { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 9px; font: inherit; font-size: var(--fs-sm); font-weight: bold; cursor: pointer; text-decoration: none;
  color: #e6efff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); }
.report-row .rr-b:hover { background: rgba(255,255,255,.16); }
.report-row .rr-b.edit-link { margin: 0; color: #fff; background: rgba(212, 128, 84,.35); border-color: rgba(226, 183, 169,.6); }
.report-row .rr-b.del { margin: 0; color: #ffb4b4; background: rgba(229,57,53,.14); border-color: rgba(255,150,150,.45); }
.report-row .rr-b.del:hover { background: rgba(229,57,53,.3); }

body.page-v2 {
  --ds-primary: #c0703f;  --ds-primary-strong: #b3633a;
  --ds-success: #a5d6a7;  --ds-warning: #ffd54f;  --ds-danger: #ffb4b4;  --ds-text: #ffffff;
  --ds-text-2: #cbd5e1;  --ds-text-3: #7e9ed2;  --ds-page-title: var(--fs-xl);
  --ds-section-title: var(--fs-lg);
  --ds-card-title: var(--fs-md);
  --ds-body: var(--fs-base);
  --ds-secondary: var(--fs-sm);
  --ds-small: var(--fs-xs);
  --ds-number: var(--fs-num);  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-radius-lg: 14px;
  --ds-radius-md: 10px;
  --ds-radius-sm: 6px;
  --ds-border: rgba(255, 255, 255, 0.16);
  --ds-surface-row: rgba(255, 255, 255, 0.04);
  --ds-surface-row-hover: rgba(255, 255, 255, 0.08);
  font-size: var(--ds-body);
}

body.page-v2 .page-head h1 { font-size: var(--ds-page-title); font-weight: 700; }
body.page-v2 .page-head p { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .panel-title, body.page-v2 .it-hello h2 { font-size: var(--ds-section-title); font-weight: 700; margin: 0 0 var(--ds-space-2); line-height: 1.4; }
body.page-v2 .it-hello p, body.page-v2 .hint { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .it-row .main b, body.page-v2 .row .main b, body.page-v2 .menu-card .text b { font-size: var(--ds-card-title); font-weight: 600; }
body.page-v2 .it-row .main span, body.page-v2 .row .main > span, body.page-v2 .menu-card .text > span { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .stat span { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .stat b { font-size: var(--ds-number); font-weight: 700; }
body.page-v2 .stat small, body.page-v2 .stat.kpi small { font-size: var(--ds-small); color: var(--ds-text-3); }
body.page-v2 .btn { font-size: var(--ds-secondary); font-weight: 600; }
body.page-v2 .empty, body.page-v2 .empty.small { font-size: var(--ds-secondary); color: var(--ds-text-3); }

body.page-v2 .panel { padding: var(--ds-space-4); margin-bottom: var(--ds-space-3); }
body.page-v2 .it-hello { padding: var(--ds-space-3) var(--ds-space-4); gap: var(--ds-space-3); }
body.page-v2 .it-hello h2 { margin-bottom: var(--ds-space-1); }
body.page-v2 .stats { gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
body.page-v2 .stat { padding: var(--ds-space-2) var(--ds-space-3); }
body.page-v2 .vz-grid2 { gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
body.page-v2 .it-row { padding: var(--ds-space-2) var(--ds-space-3); margin-bottom: var(--ds-space-2); gap: var(--ds-space-3); }
body.page-v2 .it-row .main { gap: var(--ds-space-1); }
body.page-v2 .it-act { gap: var(--ds-space-2); }
body.page-v2 .ap-returned { padding: var(--ds-space-3) var(--ds-space-4); margin-bottom: var(--ds-space-3); }

body.page-v2 .it-row { background: var(--ds-surface-row); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); border-inline-start: 3px solid var(--ds-text-3); }
body.page-v2 .it-row.ok { border-inline-start-color: var(--ds-success); border-color: var(--ds-border); }
body.page-v2 .it-row:has(.it-dot.bad) { border-inline-start-color: var(--ds-warning); }
body.page-v2 .it-row.clickable:hover { background: var(--ds-surface-row-hover); }
body.page-v2 .it-dot.ok { background: var(--ds-success); }
body.page-v2 .it-dot.bad { background: var(--ds-warning); }
body.page-v2 em.st-green, body.page-v2 span.st-green {
  font-style: normal; display: inline-block; padding: 0 var(--ds-space-2); border-radius: var(--ds-radius-sm); font-size: var(--ds-small); line-height: 1.7;
  color: var(--ds-success); background: rgba(165, 214, 167, 0.12); border: 1px solid rgba(165, 214, 167, 0.35);
}
body.page-v2 .ap-returned { border-radius: var(--ds-radius-md); border: 1px solid rgba(255, 180, 180, 0.45); background: rgba(255, 120, 100, 0.10); font-size: var(--ds-secondary); }
body.page-v2 .ap-returned b { color: var(--ds-danger); }
body.page-v2 .ap-returned a { color: var(--ds-primary); }
body.page-v2 .btn.small { padding: 0 var(--ds-space-3); height: 32px; display: inline-flex; align-items: center; border-radius: var(--ds-radius-sm); }
body.page-v2 .btn.secondary { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ds-border); }
body.page-v2 .btn.secondary:hover { background: rgba(212, 128, 84, 0.14); border-color: rgba(212, 128, 84, 0.55); }
body.page-v2 .ap-chip { border-radius: var(--ds-radius-sm); font-size: var(--ds-small); padding: 1px var(--ds-space-2); }

body.page-v2 .stat { transition: transform .15s ease, border-color .15s ease; }
body.page-v2 .stat:hover { transform: translateY(-2px); border-color: rgba(212, 128, 84, 0.45); }
body.page-v2 .it-row, body.page-v2 .it-row:hover { transform: none; box-shadow: none; }
body.page-v2 .panel, body.page-v2 .glass { text-shadow: none; }

body.page-v2 #userBar { gap: var(--ds-space-2); }
body.page-v2 .um { position: relative; }
body.page-v2 .um-btn {
  display: inline-flex; align-items: center; gap: var(--ds-space-2); height: 36px; padding: 0 var(--ds-space-3) 0 var(--ds-space-2);
  font: inherit; font-size: var(--ds-secondary); font-weight: 600; color: var(--ds-text); cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ds-border); border-radius: 999px;
}
body.page-v2 .um-btn:hover, body.page-v2 .um-btn[aria-expanded=true] { background: rgba(212, 128, 84, 0.14); border-color: rgba(212, 128, 84, 0.55); }
body.page-v2 .um-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: var(--ds-small); font-weight: 700; background: linear-gradient(135deg, var(--ds-primary-strong), var(--color-accent)); }
body.page-v2 .um-caret { font-size: var(--fs-2xs); color: var(--ds-text-2); }
body.page-v2 .um-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 240px; z-index: 60; padding: var(--ds-space-2);
  background: rgba(23, 29, 38, 0.97); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
body.page-v2 .um-menu[hidden] { display: none; }
body.page-v2 .um-head { display: flex; flex-direction: column; gap: 2px; padding: var(--ds-space-2) var(--ds-space-3) var(--ds-space-3); border-bottom: 1px solid var(--ds-border); margin-bottom: var(--ds-space-2); }
body.page-v2 .um-head b { font-size: var(--ds-body); }
body.page-v2 .um-head span { font-size: var(--ds-small); color: var(--ds-text-3); text-align: start; }
body.page-v2 .um-item { display: block; width: 100%; text-align: start; padding: var(--ds-space-2) var(--ds-space-3); border-radius: var(--ds-radius-sm); font: inherit; font-size: var(--ds-secondary); background: none; border: 0; cursor: pointer; color: var(--ds-text); }
body.page-v2 .um-item.danger { color: var(--ds-danger); }
body.page-v2 .um-item:hover { background: rgba(255, 255, 255, 0.07); }

body.page-v2 .ap-chip { padding: 2px 8px; line-height: 1.4; vertical-align: middle; }
body.page-v2 .it-edit {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-start: var(--ds-space-1); vertical-align: middle;
  font-style: normal; font-size: var(--fs-xs); color: var(--ds-success); border: 1px solid rgba(165, 214, 167, 0.4); border-radius: 50%; cursor: help;
}
body.page-v2 .it-note { display: block; font-size: var(--ds-small); color: var(--ds-text-3); }

body.page-v2 .btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none; color: var(--ds-text-2); }
body.page-v2 .btn.ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(212, 128, 84, 0.6); color: var(--ds-text); }

body.page-v2 .sidenav a.on {
  background: linear-gradient(90deg, rgba(212, 128, 84, 0.42), rgba(212, 128, 84, 0.20)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(212, 128, 84, 0.55);
}
body.page-v2 .sidenav a.on svg { color: #fff; opacity: 1; }
body.page-v2 .sidenav a.on::before { inset-inline-start: -10px; width: 4px; inset-block: 6px; background: var(--color-accent); box-shadow: 0 0 10px rgba(212, 128, 84, 0.9); }

body.page-v2 h1.title { font-size: var(--ds-page-title); font-weight: 700; margin-bottom: var(--ds-space-1); }
body.page-v2 .subtitle { font-size: var(--ds-secondary); color: var(--ds-text-2); margin-bottom: var(--ds-space-3); }
body.page-v2 .toolbar { gap: var(--ds-space-2); margin-bottom: var(--ds-space-3); }
body.page-v2 .list { gap: var(--ds-space-2); }
body.page-v2 .report-row { padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-md) !important; border-inline-start: 3px solid var(--ds-text-3) !important; }
body.page-v2 .report-row:has(.ap-ok) { border-inline-start-color: var(--ds-success) !important; }
body.page-v2 .report-row:has(.ap-pending) { border-inline-start-color: var(--ds-warning) !important; }
body.page-v2 .report-row:has(.ap-bad) { border-inline-start-color: var(--ds-danger) !important; }
body.page-v2 .report-row .main { display: flex; flex-direction: column; gap: var(--ds-space-1); }
body.page-v2 .report-row .rr-info { margin-top: 0; font-size: var(--ds-small); color: var(--ds-text-3); }
body.page-v2 .report-row .rr-acts { gap: var(--ds-space-2); margin-top: var(--ds-space-2); }
body.page-v2 .report-row .rr-b { height: 30px; padding: 0 var(--ds-space-3); border-radius: var(--ds-radius-sm); font-size: var(--ds-secondary); font-weight: 600; }
body.page-v2 .report-row .rr-b.edit-link { background: linear-gradient(90deg, var(--ds-primary-strong), var(--color-accent)); border-color: transparent; color: #fff; }
body.page-v2 .report-row .rr-b.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); color: var(--ds-text-2); }
body.page-v2 .report-row .rr-b.ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(212, 128, 84, 0.6); color: var(--ds-text); }
body.page-v2 .report-row .rr-b.del { background: transparent; border: 1px solid rgba(255, 180, 180, 0.45); color: var(--ds-danger); }
body.page-v2 .report-row .rr-b.del:hover { background: rgba(255, 120, 100, 0.12); }
body.page-v2 .report-row .rr-info .st-yellow { color: var(--ds-text-3); }
body.page-v2 #btnMore { margin-top: var(--ds-space-3); }
body.page-v2 .report-row .rr-b.del { transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
body.page-v2 .report-row .rr-b.del:hover, body.page-v2 .report-row .rr-b.del:focus-visible {
  background: rgba(239, 68, 68, 0.22); border-color: rgba(248, 113, 113, 0.9); color: #fff; box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); outline: none; text-decoration: none;
}

body.page-v2 .st-orange { color: var(--ds-warning); }
body.page-v2 .sec .t b { font-size: var(--ds-section-title); color: var(--ds-text); }
body.page-v2 .sec .t span, body.page-v2 .la-banner .t span { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .la-banner .t b { font-size: var(--ds-section-title); }
body.page-v2 .section-title { font-size: var(--ds-section-title); font-weight: 700; color: var(--ds-text); margin: var(--ds-space-5) var(--ds-space-1) var(--ds-space-3); }
body.page-v2 .section-title span { font-size: var(--ds-small); font-weight: 400; color: var(--ds-text-2); text-shadow: 0 1px 4px rgba(0,0,0,.9); }
body.page-v2 .today-strip { gap: var(--ds-space-2); margin-bottom: var(--ds-space-3); }
body.page-v2 .today-strip .ts-l { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .ts-c { padding: var(--ds-space-2) var(--ds-space-3); border-radius: var(--ds-radius-md); font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .ts-c b { font-size: var(--ds-card-title); }
body.page-v2 .ts-c.ok b { color: var(--ds-text-3); }
body.page-v2 .ts-c.bad { border-color: rgba(255, 213, 79, 0.5); background: rgba(255, 213, 79, 0.08); color: var(--ds-text); }
body.page-v2 .ts-c.bad b { color: var(--ds-warning); }
body.page-v2 .ts-c:hover { border-color: rgba(212, 128, 84, 0.6); }
body.page-v2 .pc-head b { font-size: var(--ds-card-title); }
body.page-v2 .pc-head .pct { font-size: var(--ds-number); color: var(--ds-primary); }
body.page-v2 .pc-sub, body.page-v2 .pc-foot { font-size: var(--ds-small); }
body.page-v2 .pcard .chip { font-size: var(--ds-small); }
body.page-v2 .dq-h { font-size: var(--ds-secondary); }
body.page-v2 .dq small { font-size: var(--ds-small); color: var(--ds-text-3); }

body.page-v2 .table { font-size: var(--ds-body); }
body.page-v2 .table th { font-size: var(--ds-secondary); color: var(--ds-text-2); font-weight: 600; padding: var(--ds-space-2); border-bottom-color: var(--ds-border); }
body.page-v2 .table td { padding: var(--ds-space-2); border-bottom-color: rgba(255, 255, 255, 0.07); }
body.page-v2 .table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
body.page-v2 .table td span.st-green { display: inline; padding: 0; border: 0; background: none; font-size: inherit; }
body.page-v2 .field label { font-size: var(--ds-secondary); color: var(--ds-text-2); margin-bottom: var(--ds-space-1); }
body.page-v2 .field input, body.page-v2 .field select, body.page-v2 .field textarea { font-size: var(--ds-body); border-radius: var(--ds-radius-sm); }
body.page-v2 .field input:focus, body.page-v2 .field select:focus, body.page-v2 .field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(212, 128, 84, 0.18); outline: none; }
body.page-v2 .tabs button { padding: var(--ds-space-2) var(--ds-space-4); border-radius: var(--ds-radius-md); font-size: var(--ds-secondary); }
body.page-v2 .tabs button:hover { transform: none; border-color: rgba(212, 128, 84, 0.55); }
body.page-v2 .tabs button.on { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
body.page-v2 .chip { font-size: var(--ds-small); border-radius: var(--ds-radius-sm); padding: 1px var(--ds-space-2); }
body.page-v2 .chip.warn { color: var(--ds-warning); border-color: rgba(255, 213, 79, 0.45); background: rgba(255, 213, 79, 0.10); }
body.page-v2 .chip.ok { color: var(--ds-success); border-color: rgba(165, 214, 167, 0.45); background: rgba(165, 214, 167, 0.10); }
body.page-v2 .menu-card:hover { transform: translateY(-2px); }
body.page-v2 .btn.danger:hover, body.page-v2 .btn.red:hover { box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); }
body.page-v2 .breadcrumb, body.page-v2 .modal h3, body.page-v2 .period-label, body.page-v2 .summary h3, body.page-v2 .rrow-head b, body.page-v2 .plan-head h2 { color: var(--ds-text); }
body.page-v2 .rrow-head b, body.page-v2 .modal h3, body.page-v2 .summary h3 { font-size: var(--ds-card-title); }
body.page-v2 .plan-head h2 { font-size: var(--ds-section-title); }

body.page-v2 .us-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
body.page-v2 .us-filters { margin: 0; }
body.page-v2 .us-tools { display: flex; gap: var(--ds-space-2); align-items: center; }
body.page-v2 .us-tools select { height: 32px; min-width: 150px; max-width: 220px; padding: 0 var(--ds-space-3); border-radius: var(--ds-radius-sm); font-size: var(--ds-secondary); }
body.page-v2 .us-tools input { width: 240px; height: 32px; padding: 0 var(--ds-space-3); border-radius: var(--ds-radius-sm); font-size: var(--ds-secondary); }
body.page-v2 .us-list { display: flex; flex-direction: column; gap: var(--ds-space-2); margin-bottom: var(--ds-space-3); }
body.page-v2 .us-row {
  display: grid; grid-template-columns: 36px minmax(220px, 1.2fr) auto minmax(200px, 2fr) auto; align-items: center; gap: var(--ds-space-3);
  width: 100%; text-align: start; font: inherit; color: var(--ds-text); cursor: pointer;
  padding: var(--ds-space-2) var(--ds-space-3); background: var(--ds-surface-row); border: 1px solid var(--ds-border); border-inline-start: 3px solid var(--ds-success); border-radius: var(--ds-radius-md);
}
body.page-v2 .us-row:hover { background: var(--ds-surface-row-hover); border-color: rgba(212, 128, 84, 0.5); }
body.page-v2 .us-row.stale { border-inline-start-color: var(--ds-warning); }
body.page-v2 .us-av { width: 32px; height: 32px; font-size: var(--ds-card-title); }
body.page-v2 .us-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.page-v2 .us-main b { font-size: var(--ds-card-title); font-weight: 600; }
body.page-v2 .us-main small { font-size: var(--ds-small); color: var(--ds-text-3); text-align: start; overflow: hidden; text-overflow: ellipsis; }
body.page-v2 .us-noname { color: var(--ds-warning); font-weight: 600; }
body.page-v2 .us-roles, body.page-v2 .us-projs, body.page-v2 .us-dlg-roles { display: flex; flex-wrap: wrap; gap: var(--ds-space-1); align-items: center; }
body.page-v2 .us-projs i, body.page-v2 .us-roles i { font-style: normal; }
body.page-v2 .us-projs .muted { font-size: var(--ds-small); }
body.page-v2 .us-role { font-style: normal; font-size: var(--ds-small); padding: 1px var(--ds-space-2); border-radius: var(--ds-radius-sm); border: 1px solid var(--ds-border); color: var(--ds-text-2); white-space: nowrap; }
body.page-v2 .us-role.r-admin, body.page-v2 .us-role.r-manager { color: #cfe8ff; border-color: rgba(212, 128, 84, 0.55); background: rgba(212, 128, 84, 0.14); }
body.page-v2 .us-role.r-hr, body.page-v2 .us-role.r-followup, body.page-v2 .us-role.r-planning, body.page-v2 .us-role.r-documents, body.page-v2 .us-role.r-basma, body.page-v2 .us-role.r-ohda, body.page-v2 .us-role.r-ohrep { color: #e3d4ff; border-color: rgba(180, 150, 255, 0.5); background: rgba(150, 120, 255, 0.12); }
body.page-v2 .us-act { font-size: var(--ds-small); color: var(--ds-text-2); }
body.page-v2 .us-edit { font-size: var(--ds-secondary); color: var(--ds-text-2); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--ds-radius-sm); padding: 4px var(--ds-space-3); white-space: nowrap; }
body.page-v2 .us-row:hover .us-edit { border-color: var(--color-accent); color: var(--ds-text); }
body.page-v2 .us-dlg-roles { margin-bottom: var(--ds-space-3); font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .us-ph { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-2); margin-bottom: var(--ds-space-2); flex-wrap: wrap; }
body.page-v2 .us-ph span { display: flex; gap: var(--ds-space-1); }
@media (max-width: 900px) {
  body.page-v2 .us-row { grid-template-columns: 36px 1fr auto; }
  body.page-v2 .us-roles { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  body.page-v2 .us-projs { grid-column: 2 / span 2; }
  body.page-v2 .us-edit { display: none; }
  body.page-v2 .us-tools { width: 100%; } body.page-v2 .us-tools input { flex: 1; width: auto; }
}

body.page-v2 .ad-grid { align-items: start; }
body.page-v2 .ad-grid .panel { margin-bottom: 0; }
body.page-v2 .ad-chk { border: 1px solid var(--ds-border); border-inline-start: 3px solid var(--ds-success); border-radius: var(--ds-radius-md); background: var(--ds-surface-row); margin-bottom: var(--ds-space-2); }
body.page-v2 .ad-chk.warn { border-inline-start-color: var(--ds-warning); }
body.page-v2 .ad-chk.bad { border-inline-start-color: var(--ds-danger); }
body.page-v2 .ad-chk > summary { list-style: none; display: flex; align-items: center; gap: var(--ds-space-2); padding: var(--ds-space-2) var(--ds-space-3); font-size: var(--ds-body); }
body.page-v2 .ad-chk > summary::-webkit-details-marker { display: none; }
body.page-v2 .ad-chk:not(.ok) > summary { cursor: pointer; }
body.page-v2 .ad-chk > summary i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: var(--ds-small); font-weight: 700; color: #161c25; background: var(--ds-success); flex: none; }
body.page-v2 .ad-chk.warn > summary i { background: var(--ds-warning); }
body.page-v2 .ad-chk.bad > summary i { background: var(--ds-danger); }
body.page-v2 .ad-chk > summary span { flex: 1; }
body.page-v2 .ad-chk > summary b { font-size: var(--ds-secondary); color: var(--ds-text-2); font-weight: 600; }
body.page-v2 .ad-chk.warn > summary b { color: var(--ds-warning); } body.page-v2 .ad-chk.bad > summary b { color: var(--ds-danger); }
body.page-v2 .ad-chk .hint, body.page-v2 .ad-chk ul { margin: 0 var(--ds-space-3) var(--ds-space-2); }
body.page-v2 .ad-chk ul { padding-inline-start: var(--ds-space-4); font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .ad-set { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); padding: var(--ds-space-2) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
body.page-v2 .ad-set > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.page-v2 .ad-set b { font-size: var(--ds-body); font-weight: 600; }
body.page-v2 .ad-set small { font-size: var(--ds-small); color: var(--ds-text-3); }
body.page-v2 .ad-counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--ds-space-4); }
body.page-v2 .ad-counts > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .ad-counts b { color: var(--ds-text); font-weight: 600; }
body.page-v2 a.btn.ghost { text-decoration: none; }
body.page-v2 .chk-confirm { list-style: none; margin: var(--ds-space-2) 0; padding: 0; display: flex; flex-direction: column; gap: var(--ds-space-1); font-size: var(--ds-secondary); }
body.page-v2 .chk-confirm li { padding: 6px var(--ds-space-3); border-radius: var(--ds-radius-sm); background: var(--ds-surface-row); border: 1px solid var(--ds-border); }

body.page-v2 .it-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-3); flex-wrap: wrap; margin-bottom: var(--ds-space-2); font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .it-bar-a { display: flex; gap: var(--ds-space-2); }
body.page-v2 .it-wrap { overflow-x: auto; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); background: rgba(27, 36, 54, 0.88); backdrop-filter: blur(8px); }
body.page-v2 .it-table { min-width: 1110px; }
body.page-v2 .it-table th { white-space: nowrap; background: rgba(255, 255, 255, 0.04); }
body.page-v2 .it-table td { padding: 4px; border-bottom-color: rgba(255, 255, 255, 0.06); }
body.page-v2 .it-table td.n, body.page-v2 .it-table th.n { width: 36px; color: var(--ds-text-3); font-size: var(--ds-small); }
body.page-v2 .it-table tr.dirty td:first-child { box-shadow: inset -3px 0 0 var(--color-accent); }
body.page-v2 .it-table input { width: 100%; height: 32px; padding: 0 var(--ds-space-2); font-size: var(--ds-secondary); border-radius: var(--ds-radius-sm); background: rgba(0, 0, 0, 0.18); border: 1px solid transparent; color: var(--ds-text); }
body.page-v2 .it-table input:hover { border-color: var(--ds-border); }
body.page-v2 .it-table input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(212, 128, 84, 0.18); outline: none; }
body.page-v2 .it-table input.invalid { border-color: var(--ds-danger); }
body.page-v2 .it-table .c-code { width: 90px; } body.page-v2 .it-table .c-name { min-width: 240px; } body.page-v2 .it-table .c-unit { width: 80px; }
body.page-v2 .it-table .c-qty, body.page-v2 .it-table .c-weight { width: 105px; } body.page-v2 .it-table .c-pct { width: 135px; } body.page-v2 .it-table .c-start, body.page-v2 .it-table .c-end { width: 150px; }
body.page-v2 .it-table td.none { padding: var(--ds-space-4); text-align: center; }
body.page-v2 .it-del { background: transparent; border: 1px solid transparent; border-radius: var(--ds-radius-sm); color: var(--ds-text-3); cursor: pointer; width: 32px; height: 32px; }
body.page-v2 .it-del:hover { background: rgba(239, 68, 68, 0.22); border-color: rgba(248, 113, 113, 0.9); color: #fff; }
.login-foot { position: fixed; inset-inline: 0; bottom: 10px; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; text-align: center; }
.login-foot b { font-weight: 400; font-size: var(--fs-base); letter-spacing: .08em; color: rgba(206, 222, 242, .92); padding-top: 12px; background: linear-gradient(90deg, transparent, rgba(190, 210, 235, .45), transparent) top center / 380px 1px no-repeat; }
.login-foot span { font-size: var(--fs-sm); font-weight: 400; letter-spacing: .07em; color: rgba(214, 228, 246, .98); }
@media print { .login-foot { display: none; } }
body.page-v2 .pend-banner { margin: 0 0 var(--ds-space-3); padding: var(--ds-space-2) var(--ds-space-4); border-radius: var(--ds-radius-md); border: 1px solid rgba(255, 213, 79, 0.45); background: rgba(27, 34, 45, 0.85); color: var(--ds-warning); font-size: var(--ds-secondary); }
@media print { .pend-banner { display: none; } }

.pj-strip { max-width: 1040px; margin: var(--ds-space-5) auto 0; }
.pj-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ds-space-3); margin: 0 4px var(--ds-space-2); }
.pj-head h2 { margin: 0; font-size: var(--ds-section-title); font-weight: 700; color: var(--ds-text); }
.pj-head a { font-size: var(--ds-small); color: var(--ds-text-2); text-decoration: none; }
.pj-head a:hover { color: var(--ds-primary); }
.pj-view { overflow: hidden; direction: ltr; border-radius: var(--ds-radius-lg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pj-track { display: flex; gap: var(--ds-space-3); width: max-content; padding: 4px 0; animation: pj-move var(--pj-dur, 80s) linear infinite; }
.pj-view:hover .pj-track, .pj-view:focus-within .pj-track { animation-play-state: paused; }
@keyframes pj-move { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--ds-space-3) / 2)); } }
.pj-card { position: relative; margin: 0; width: 230px; aspect-ratio: 3 / 2; flex: none; overflow: hidden; direction: rtl;
  border-radius: var(--ds-radius-md); border: 1px solid var(--ds-border); background: rgba(255, 255, 255, 0.04); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
.pj-card { background: linear-gradient(110deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 70%) 0 0 / 300% 100%; animation: pj-wait 1.6s ease-in-out infinite; }
.pj-card:has(img.ok) { animation: none; background: rgba(255, 255, 255, 0.04); }
@keyframes pj-wait { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pj-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: transform .4s ease, opacity .5s ease; }
.pj-card img.ok { opacity: 1; }
.pj-card:hover img { transform: scale(1.05); }
.pj-card figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 10px 8px; display: flex; flex-direction: column; gap: 2px; text-align: start;
  background: linear-gradient(180deg, transparent, rgba(16, 20, 27, 0.88) 55%); }
.pj-card figcaption b { font-size: var(--ds-secondary); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-card figcaption span { font-size: var(--ds-small); color: var(--ds-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .pj-strip { max-width: 560px; } .pj-card { width: 190px; } }
@media (prefers-reduced-motion: reduce) { .pj-view { overflow-x: auto; } .pj-track, .pj-card { animation: none; } .pj-card[aria-hidden="true"] { display: none; } }
@media print { .pj-strip { display: none; } }

@media (max-width: 899px) {
  body.nb .page-head > img { display: none; }
}
@media (max-width: 899px) {
  body.nb .brand { margin-bottom: var(--ds-space-3); }
  body.nb .brand img { content: url("../img/company_logo_h.png"); width: 210px; max-width: 64vw; }
}
.sec-links { margin-top: var(--ds-space-5); border-radius: var(--ds-radius-lg); border: 1px solid var(--ds-border); background: rgba(28, 35, 47, 0.72); overflow: hidden; }
.sec-links-t { padding: var(--ds-space-3) var(--ds-space-4); font-size: var(--ds-section-title); font-weight: 700; color: var(--ds-text); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sec-links a { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); color: var(--ds-text); text-decoration: none; font-size: var(--ds-body); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.sec-links a:last-child { border-bottom: 0; }
.sec-links a:hover, .sec-links a:active { background: var(--ds-surface-row-hover); }
.sec-links a svg { color: var(--ds-primary); flex: none; }
.sec-links a span { flex: 1; }
.sec-links a i { font-style: normal; font-size: var(--ds-small); color: var(--ds-text-3); }

.ph-logos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; border-bottom: 3px solid #3f4f69; padding-bottom: 8px; margin-bottom: 10px; }
.ph-logos img { height: 58px; width: auto; } .ph-logos img:first-child { justify-self: start; } .ph-logos img:last-child { justify-self: end; }
.ph-logos b { font-size: var(--fs-xl); }

.print-tm { margin-top: 10px; padding-top: 5px; border-top: 1px solid #dfe5ee; text-align: center; font-size: var(--fs-2xs); color: #7593c4; line-height: 1.6; }
.print-tm b { font-size: var(--fs-2xs); font-weight: 700; color: #475976; }

@media (min-width: 900px) {
  body.nb .topbar .page-head.in-bar > h1:last-child { grid-row: 1 / 3; align-self: center; }
}
@media (min-width: 1200px) {
  body.nb .topbar .page-head.in-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  body.nb .topbar .page-head.in-bar ~ #userBar { margin-inline-start: auto; }
}

body.page-v2 .nz-bar .chk-roles { margin: 0; }
body.page-v2 .nz-bar .toolbar .breadcrumb { font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .nz-state { font-size: var(--ds-small); color: var(--ds-text-2); white-space: nowrap; }
body.page-v2 .nz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-2); }
body.page-v2 .nz-grid.nz-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.page-v2 .nz-grid > .empty { grid-column: 1 / -1; }
body.page-v2 .us-row.nz-card { grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 64px; }
body.page-v2 .nz-card .us-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-v2 .nz-card .us-main small { white-space: nowrap; }
body.page-v2 .nz-grid > .row { flex-direction: column; align-items: stretch; justify-content: space-between; gap: var(--ds-space-2);
  background: var(--ds-surface-row); border: 1px solid var(--ds-border); border-inline-start: 3px solid var(--color-accent); border-radius: var(--ds-radius-md); padding: var(--ds-space-3); }
body.page-v2 .nz-grid > .row:hover { background: var(--ds-surface-row-hover); border-color: rgba(212, 128, 84, 0.5); }
body.page-v2 .nz-grid > .row .row-actions { justify-content: flex-end; }
@media (max-width: 1400px) { body.page-v2 .nz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { body.page-v2 .nz-grid, body.page-v2 .nz-grid.nz-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.page-v2 .nz-grid, body.page-v2 .nz-grid.nz-g3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { body.page-v2 .nz-card .us-edit { display: none; } }

body.page-v2 .it-table td.sel, body.page-v2 .it-table th.sel { width: 34px; text-align: center; }
body.page-v2 .it-table td.sel input, body.page-v2 .it-table th.sel input { width: 17px; height: 17px; accent-color: var(--color-accent); cursor: pointer; }
body.page-v2 .it-table tr.sel td { background: rgba(239, 68, 68, 0.10); }


body.page-v2 .bk-row .btn { width: auto; flex: none; padding-inline: var(--ds-space-5, 24px); }
body.page-v2 .bk-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); flex-wrap: wrap; }
body.page-v2 .bk-info { display: flex; flex-direction: column; gap: 4px; }
body.page-v2 .bk-info b { font-size: var(--fs-num); }
body.page-v2 .bk-info small { font-size: var(--ds-small); color: var(--ds-text-3); }

body.page-v2 a.ad-lnk { text-decoration: none; color: inherit; }
body.page-v2 a.ad-lnk:hover { border-color: rgba(212, 128, 84, 0.6); }
.stats.two { grid-template-columns: repeat(2, 1fr); }

body.page-v2 .ad-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-3); padding: 8px var(--ds-space-3); margin-bottom: var(--ds-space-3); font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .ad-strip b { font-size: var(--ds-body); color: var(--ds-text); font-weight: 600; margin-inline-end: var(--ds-space-3); }
body.page-v2 .ad-strip b.st-green { color: var(--ds-success); } body.page-v2 .ad-strip b.st-yellow { color: var(--ds-warning); }
body.page-v2 .ad-strip small { font-size: var(--ds-small); color: var(--ds-text-3); }
body.page-v2 .ad-strip .ad-lnk { display: inline-flex; gap: 6px; align-items: center; }
body.page-v2 .ad-strip .ad-lnk b { margin: 0; }
body.page-v2 a.ad-strip { text-decoration: none; color: var(--ds-text); }
body.page-v2 .bk-info b { font-size: var(--ds-body); }

body.page-v2 .us-row.grp { grid-template-columns: 110px minmax(160px, 1fr) 2fr; cursor: default; }
body.page-v2 .us-row.lg { grid-template-columns: 36px minmax(220px, 1.2fr) auto minmax(160px, 1fr); cursor: default; }
body.page-v2 .us-grp { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); }
body.page-v2 .us-grp label { flex: none; padding: 6px var(--ds-space-3); }

body.page-v2 .checks.us-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-2); max-height: none; overflow: visible; }
body.page-v2 .checks.us-checks label { padding: 6px var(--ds-space-2); gap: var(--ds-space-2); font-size: var(--ds-secondary); min-width: 0; }
body.page-v2 .checks.us-checks label input { flex: none; width: 16px; height: 16px; }
@media (max-width: 560px) { body.page-v2 .checks.us-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body.page-v2 .ls-body { display: flex; flex-direction: column; gap: var(--ds-space-3); }
body.page-v2 .ls-head { margin: 0; align-items: center; }
body.page-v2 .ls-head .hint { flex: 1; }
body.page-v2 .ls-scope { margin: 0; min-width: 240px; }
body.page-v2 .ls-scope label { display: none; }
body.page-v2 .ls-scope select, body.page-v2 .ck-name input, body.page-v2 .ls-add input, body.page-v2 .ls-row input, body.page-v2 .ck-slot input { height: 32px; padding: 0 var(--ds-space-3); border-radius: var(--ds-radius-sm); font-size: var(--ds-secondary); margin: 0; }
body.page-v2 .ck-name { margin: 0; display: flex; align-items: center; gap: var(--ds-space-2); }
body.page-v2 .ck-name label { margin: 0; white-space: nowrap; font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .ck-name input { width: 280px; }
body.page-v2 .ls-grid, body.page-v2 .ck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-2); columns: auto; }
body.page-v2 .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
body.page-v2 .ls-grid > .empty { grid-column: 1 / -1; }
body.page-v2 .ls-row, body.page-v2 .ck-slot { margin: 0; background: var(--ds-surface-row); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); }
body.page-v2 .ls-row { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: var(--ds-space-1); padding: var(--ds-space-2) var(--ds-space-3); }
body.page-v2 .ls-row.fixed { grid-column: 1 / -1; grid-template-columns: 22px 1fr auto; }
body.page-v2 .ls-btn { width: 28px; height: 28px; border-radius: var(--ds-radius-sm); font-size: var(--ds-small); }
body.page-v2 .ck-slot { padding: var(--ds-space-2) var(--ds-space-3); }
body.page-v2 .ck-slot-h { margin-bottom: var(--ds-space-2); gap: var(--ds-space-2); flex-wrap: nowrap; align-items: center; }
body.page-v2 .ck-slot-h label { flex: 1; font-size: var(--ds-small); color: var(--ds-text-3); display: flex; align-items: center; gap: var(--ds-space-2); }
body.page-v2 .ck-slot-h label input { flex: 1; }
body.page-v2 .ck-slot textarea { min-height: 0; font-size: var(--ds-secondary); line-height: 1.7; resize: vertical; }
body.page-v2 .ls-add { margin: 0; }
body.page-v2 .ls-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-3); flex-wrap: wrap; }
@media (max-width: 1100px) { body.page-v2 .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.page-v2 .ck-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { body.page-v2 .ls-grid { grid-template-columns: 1fr; } body.page-v2 .ck-name input { width: 100%; } }


body.page-v2 .pm-wrap { overflow-x: auto; max-width: 860px; margin: 0 auto; padding: 4px 14px 10px; border-radius: var(--ds-radius-sm, 12px); border: 1px solid var(--ds-border); background: rgba(27, 36, 54, .82); backdrop-filter: blur(6px); }
html[data-theme="light"] body.page-v2 .pm-wrap { background: rgba(255, 255, 255, .92); }
body.page-v2 .pm-t { width: 100%; border-collapse: collapse; font-size: var(--ds-body); }
body.page-v2 .pm-t th { font-size: var(--ds-small); color: var(--ds-text-2); text-align: center; padding: 6px 8px; white-space: nowrap; border-bottom: 1px solid var(--ds-border); }
body.page-v2 .pm-t th:first-child, body.page-v2 .pm-t td.pm-n, body.page-v2 .pm-t tr.pm-sec td:first-child { text-align: start; }
body.page-v2 .pm-t td { text-align: center; padding: 5px 8px; border-bottom: 1px solid var(--ds-border); }
body.page-v2 .pm-t td.pm-n { padding-inline-start: 22px; color: var(--ds-text-2); overflow-wrap: anywhere; }
body.page-v2 .pm-t tr.pm-sec td { font-weight: 700; background: rgba(150, 168, 195, .10); }
body.page-v2 .pm-t input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
html:not([data-theme="light"]) body.page-v2 .us-row { background: rgba(27, 36, 54, .84); backdrop-filter: blur(4px); }
html:not([data-theme="light"]) body.page-v2 .us-row:hover { background: rgba(41, 52, 69, .9); }
@media (min-width: 900px) {
  .pj-strip:not([hidden]) { display: flex; align-items: center; gap: var(--ds-space-4); width: 100%; }
  .pj-strip .pj-head { flex: none; margin: 0; width: 120px; }
  .pj-strip::after { content: ""; flex: none; width: 120px; }  .pj-strip .pj-view { flex: 1; min-width: 0; }
}

html[dir="ltr"] .menu-card .arrow, html[dir="ltr"] .sec-links a > i { display: inline-block; transform: scaleX(-1); }
html[dir="ltr"] body.page-v2 .us-row { text-align: left; }
@media (min-width: 1100px) { body.home .pj-strip { max-width: 1240px; } }
@media (min-width: 1200px) { body.home .pj-strip { max-width: 1480px; } }
.login-foot span strong { font-family: "Dancing Script", cursive; font-weight: 600; font-size: 1.2em; line-height: 1; letter-spacing: .02em; vertical-align: -.08em; }
.nb-dev-link { pointer-events: auto; color: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px solid transparent; transition: border-color .15s; }
.nb-dev-link:hover, .nb-dev-link:focus-visible { border-bottom-color: currentColor; }
.nb-dev-link b, .nb-dev-link strong { color: inherit !important; }
@media (min-width: 1200px) {
  body.home .page { padding-inline: 28px; }
  body.home .topbar { padding-inline: 28px; }
}
.hello-sep { opacity: .45; margin: 0 .35em; font-weight: 300; }
.hello-sub { font-weight: 500; opacity: .85; }

.att-title { margin: 16px 0 8px; font-size: var(--fs-md); }
.att-empty { padding: 10px 12px; border: 1px dashed var(--ds-border, rgba(255,255,255,.16)); border-radius: 10px; font-size: var(--fs-sm); opacity: .8; }
.att-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: var(--fs-base); }
.att-head b { color: var(--ds-success, #a5d6a7); } .att-head small { opacity: .7; font-size: var(--fs-xs); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.att-w { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--ds-border, rgba(255,255,255,.16)); border-radius: 10px; background: var(--ds-surface-row, rgba(255,255,255,.04)); }
.att-w.on { border-color: rgba(76,208,138,.6); background: rgba(76,208,138,.09); }
.att-w.dup { opacity: .65; border-style: dashed; }
.att-w label { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.att-w label input { width: 18px; height: 18px; flex: none; }
.att-n { font-weight: 700; font-size: var(--fs-base); line-height: 1.3; } .att-n small { display: block; font-weight: 400; opacity: .7; font-size: var(--fs-2xs); }
.att-ot { width: 66px; padding: 4px 6px; text-align: center; font-size: var(--fs-sm); }
.att-ot:disabled { visibility: hidden; }
.att-warn { grid-column: 1 / -1; font-size: var(--fs-2xs); color: var(--ds-warning, #ffd54f); }
.att-sheet { overflow-x: auto; }
table.att-t { border-collapse: collapse; font-size: var(--fs-sm); width: 100%; }
table.att-t th, table.att-t td { padding: 5px 6px; border: 1px solid var(--ds-border, rgba(255,255,255,.14)); text-align: center; white-space: nowrap; }
table.att-t td.n { text-align: start; font-weight: 700; }
table.att-t td.p { color: var(--ds-success, #a5d6a7); font-weight: 700; } table.att-t td.f { opacity: .35; }
table.att-t .tot { background: var(--ds-surface-row-hover, rgba(255,255,255,.08)); font-weight: 700; }
.att-pos { color: var(--ds-success, #a5d6a7); } .att-neg { color: var(--ds-danger, #ffb4b4); }
.att-dupnote { margin-top: 8px; font-size: var(--fs-xs); color: var(--ds-warning, #ffd54f); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--fs-sm); padding: 5px 12px; }
.chips .chip input { width: 15px; height: 15px; }
.chk-inline { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); padding-bottom: 8px; }
.chk-inline input { width: 16px; height: 16px; }

@media (min-width: 900px) {
  body.nb .page::after { content: none !important; }
  body.nb .nb-dev { bottom: 12px; padding-top: 12px; font-size: var(--fs-base); line-height: 1.9;
    background: linear-gradient(90deg, transparent, rgba(190, 210, 235, .45), transparent) top center / 380px 1px no-repeat; }
  body.nb .nb-dev .nb-dev-c { display: block; letter-spacing: .04em; color: rgba(206, 222, 242, .95); }
  body.nb .nb-dev .nb-dev-n { display: block; font-size: var(--fs-xs); }
}

@media (min-width: 1200px) {
  .menu.home-grid.dense { gap: clamp(8px, 2vh, 20px) 18px; }
  .menu.home-grid.dense .menu-card { padding: clamp(7px, 1.8vh, 18px) 22px; min-height: clamp(60px, 13.2vh, 112px); gap: 16px; }
  .menu.home-grid.dense .menu-card .icon-box { width: clamp(66px, 9.4vh, 78px); height: clamp(50px, 7.6vh, 62px); }
  .menu.home-grid.dense .menu-card .icon-box img { max-width: clamp(58px, 8.4vh, 68px); max-height: clamp(38px, 5.8vh, 46px); }
  body.home-dense .pj-strip { margin-top: clamp(8px, 2vh, 20px); }
  body.home-dense .pj-card { width: clamp(120px, 26.4vh, 240px); }
  body.home-dense .page { padding-bottom: 84px; }
}

.ra-filters .ra-search { flex: 1 1 260px; }
.ra-table.nosel td:first-child { width: auto; text-align: inherit; }
.ra-per[hidden] { display: none !important; }

@view-transition { navigation: auto; }
.sidenav { view-transition-name: sidenav; }
.topbar { view-transition-name: topbar; }
::view-transition-group(sidenav), ::view-transition-group(topbar) { animation-duration: 0s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
@media print { .sidenav, .topbar { view-transition-name: none; } }

.ub-ghost, .ub-ghost-bell { pointer-events: none; }
.ub-ghost { display: contents; }
.ub-ghost-bell .bell-panel { display: none !important; }

@media (min-width: 1100px) {
  body.has-nav .wiz-top { padding: 10px 14px; margin-bottom: 8px; }
  body.has-nav .wiz-top > .panel-title { display: none; }
  body.has-nav .wiz-top .rgrid.c2 { grid-template-columns: 3fr 1.2fr; }
  body.has-nav .wiz-top .rgrid.c3 { grid-template-columns: 3fr 1.2fr 1.2fr; }
  body.has-nav .wiz-top .rgrid .field { margin-bottom: 6px; }
  body.has-nav .wiz-top .info-grid { grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 4px 16px; margin: 0 0 6px; }
  body.has-nav .wiz-top .info-grid div { display: flex; align-items: baseline; gap: 6px; background: none; padding: 0; border-radius: 0; }
  body.has-nav .wiz-top .info-grid span { display: inline; font-size: var(--fs-xs); }
  body.has-nav .wiz-top .info-grid span::after { content: ":"; }
  body.has-nav .wiz-top .info-grid b { display: inline; margin: 0; font-size: var(--fs-sm); }
  body.has-nav .wiz-top .wx { margin-top: 0; padding: 5px 10px; }
  body.has-nav .wiz-progress { padding: 5px 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 14px; }
  body.has-nav .wiz-progress .wp-t { margin: 0; flex: none; font-size: var(--fs-sm); }
  body.has-nav .wiz-progress .pbar { flex: 1; height: 7px; }
  body.has-nav .wiz-rail { top: 80px; padding: 5px; margin-bottom: 6px; gap: 6px; }
  body.has-nav .wiz-tab { padding: 7px 10px; font-size: var(--fs-base); }
  body.has-nav .wiz-tab i { width: 24px; height: 24px; }
  body.has-nav .wiz-main .panel { padding: 10px 14px; margin-bottom: 8px; }
  body.has-nav .wiz-main .panel-title { margin: 0 0 6px; }
  body.has-nav .wiz-main .rrow { padding: 8px 12px; }
  body.has-nav .wiz-main .rrow-head { margin-bottom: 4px; }
  #labor > .rrow:only-child, #items > .rrow:only-child, #inspections > .rrow:only-child, #materials > .rrow:only-child,
  #waste > .rrow:only-child, #requests > .rrow:only-child, #obstacles > .rrow:only-child, #visitors > .rrow:only-child { grid-column: 1 / -1; }
  body.has-nav .wiz-main .field { margin-bottom: 6px; }
  body.has-nav .wiz-main .rgrid .field { margin-bottom: 6px; }
  body.has-nav .wiz-main .field label { margin-bottom: 2px; font-size: var(--fs-sm); }
  body.has-nav .wiz-main .field input, body.has-nav .wiz-main .field select { padding: 6px 10px; min-height: 34px; font-size: var(--fs-base); }
  body.has-nav .wiz-main .field textarea { padding: 6px 10px; font-size: var(--fs-base); }
  body.has-nav .wiz-main .add-row { width: auto; padding: 5px 16px; margin-top: 2px; font-size: var(--fs-sm); }
  body.has-nav .wiz-nav { margin-top: 8px; }
}
@media (min-width: 1100px) { body.has-nav .wiz-main .field textarea { min-height: 38px; } }

.ck-tslot h4 { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 6px 0 4px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); user-select: none; }
.ck-tslot h4:hover { background: rgba(255,255,255,.1); }
.ck-tslot h4 span { flex: 1; color: var(--text, #fff); font-weight: bold; }
.ck-tslot h4 small { font-size: var(--fs-xs); color: #ffcc80; }
.ck-tslot h4 small.all { color: #8fe3a8; }
.ck-tslot h4 i { font-style: normal; font-size: var(--fs-2xs); color: var(--muted); }
.ck-tslot.closed h4 { margin-bottom: 2px; }

.wiz textarea { resize: none; overflow: hidden; min-height: 38px; }
.ra-table .rr-info { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); font-weight: normal; }
.ra-table .rr-info.st-yellow { color: #ffd54f; }
.rr-lock { cursor: help; font-size: var(--fs-xs); }
#lgDetails { resize: none; overflow: hidden; min-height: 38px; }
.link-btn.ok { color: #8fe3a8; font-weight: bold; }
.pn-table tr.late td:last-child { box-shadow: inset 3px 0 0 #ff6b5e; }
.pn-table td:first-child { max-width: 360px; }

.td-box { padding: 0; margin-bottom: 10px; }
.td-box > summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.td-box > summary::-webkit-details-marker { display: none; }
.td-box > summary b { font-size: var(--fs-md); }
.td-box.done > summary b { color: #8fe3a8; }
.td-box.need { border-color: rgba(255, 193, 7, .45); }
.td-box .td-date { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-sm); }
.td-box .td-new { text-decoration: none; margin: 0; width: auto; }
.td-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.td-row > b { min-width: 150px; }
.td-row .td-st { flex: 1; font-size: var(--fs-sm); color: var(--muted); }
.td-row .td-st .it-dot { display: inline-block; margin-inline-end: 6px; }
.td-row .td-act { display: flex; gap: 8px; margin-inline-start: auto; }
.td-row .td-act .btn { margin: 0; width: auto; }
.td-row.warn { background: rgba(255, 193, 7, .08); }
.td-row.ok > b { color: #cdeed8; }
.td-row .td-act .btn, .td-box .td-new { text-decoration: none; }
.rr-me { color: #8fe3a8; }
#iCity { opacity: .9; cursor: default; }
#pAdd .pn-open { margin: 0; width: auto; pointer-events: none; } #pAdd[open] .pn-open { display: none; }
@media (min-width: 1100px) {
  body.page-v2 .us-list.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-2) 14px; }
  body.page-v2 .us-list.two .us-row.lg { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  body.page-v2 .us-list.two .us-row { min-width: 0; }
  body.page-v2 .us-list.two .us-main small { overflow: hidden; text-overflow: ellipsis; }
}
body.page-v2 .pm-t tr.pm-sec { cursor: pointer; } body.page-v2 .pm-t tr.pm-sec:hover td { background: rgba(150, 168, 195, .2); } .pm-arw { display: inline-block; width: 14px; opacity: .8; }
body.page-v2 .us-row.grp { cursor: pointer; grid-template-columns: 110px minmax(160px, 1fr) 2fr 20px; }
body.page-v2 .us-row.grp.shut { grid-template-columns: 110px minmax(160px, 1fr) 20px; }
body.page-v2 .us-code { font-style: normal; font-size: var(--fs-2xs); font-weight: 700; padding: 1px 7px; margin-inline-end: 8px; border-radius: 6px; background: rgba(212, 128, 84,.18); border: 1px solid rgba(212, 128, 84,.45); color: #e7c3b7; direction: ltr; display: inline-block; vertical-align: middle; }

body.page-v2 .us-list.fold { align-items: start; }
body.page-v2 .us-card { background: var(--ds-surface-row); border: 1px solid var(--ds-border); border-inline-start: 3px solid var(--ds-success); border-radius: var(--ds-radius-md); min-width: 0; }
body.page-v2 .us-card.stale { border-inline-start-color: var(--ds-warning); }
body.page-v2 .us-card.open { border-color: rgba(212, 128, 84, 0.5); }
body.page-v2 .us-head { display: flex; align-items: center; gap: var(--ds-space-3); width: 100%; padding: var(--ds-space-2) var(--ds-space-3); background: none; border: 0; color: var(--ds-text); font: inherit; text-align: right; cursor: pointer; }
body.page-v2 .us-head b { flex: 1; min-width: 0; font-size: var(--ds-card-title); font-weight: 600; }
body.page-v2 .us-plus { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.28); border-radius: var(--ds-radius-sm); font-size: var(--fs-xl); line-height: 1; }
body.page-v2 .us-head:hover .us-plus { border-color: var(--color-accent); }
body.page-v2 .us-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-2); padding: 0 var(--ds-space-3) var(--ds-space-3); }
body.page-v2 .us-body small { color: var(--ds-text-3); }
@media (max-width: 760px) { body.page-v2 .us-list.two.fold { grid-template-columns: 1fr; } }

body.page-v2 .us-rchecks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
body.page-v2 .us-rc { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

body.page-v2 .us-list.grpl .us-row.grp, body.page-v2 .us-list.grpl .us-row.grp.shut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: var(--ds-space-2) var(--ds-space-3); }
body.page-v2 .us-list.grpl .us-row.grp .us-main { flex: 1; min-width: 0; }
body.page-v2 .us-list.grpl .us-row.grp .us-projs { flex-basis: 100%; order: 5; }
body.page-v2 .us-list.grpl .cg-edit { flex-basis: 100%; order: 6; }
body.page-v2 .us-list.grpl .pm-arw.us-plus { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.28); border-radius: var(--ds-radius-sm); font-size: var(--fs-xl); }

body.page-v2 .us-list.grpl .us-row.grp.open { background: rgba(212, 128, 84, 0.16); border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent) inset; }
body.page-v2 .us-list.grpl .cg-edit { order: 4; }
body.page-v2 .us-list.grpl .us-row.grp .us-projs { order: 5; }

.alert-ticker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 6px 12px; border: 1px solid rgba(240, 120, 90, 0.55); background: rgba(190, 60, 40, 0.16); border-radius: 12px; overflow: hidden; }
.alert-ticker .tk-lbl { flex: none; font-weight: 700; white-space: nowrap; }
.alert-ticker .tk-view { flex: 1; min-width: 0; overflow: hidden; }
.alert-ticker .tk-track { display: flex; gap: 40px; width: max-content; }
.alert-ticker .tk-track.move { animation: tkmove 30s linear infinite; }
.alert-ticker:hover .tk-track { animation-play-state: paused; }
.alert-ticker .tk-it { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: inherit; text-decoration: none; }
.alert-ticker .tk-it:hover { text-decoration: underline; }
.alert-ticker .tk-x { flex: none; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; font-size: var(--fs-lg); }
@keyframes tkmove { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .alert-ticker .tk-track.move { animation: none; flex-wrap: wrap; width: auto; } }
.alert-ticker { margin: 10px 16px 0; }

.alert-ticker .tk-view { direction: ltr; }
.alert-ticker .tk-it { direction: rtl; }
@keyframes tkmove { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.alert-ticker .tk-it.ann { padding: 0 4px; }
.alert-ticker .tk-it.ann.red b { color: #ffb4a8; }
.alert-ticker .tk-off { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: var(--fs-xs); padding: 0 2px; }

body.page-v2 .drw-g { margin-bottom: 10px; } body.page-v2 .drw-g > summary { cursor: pointer; padding: 4px 2px; font-size: var(--ds-card-title); } body.page-v2 .drw-g[open] > summary { margin-bottom: 8px; }

.alert-ticker .tk-track { gap: 0; }
.alert-ticker .tk-unit { display: flex; gap: 48px; justify-content: flex-end; padding-inline-start: 48px; flex: none; box-sizing: border-box; }
@media (min-width: 900px) { .alert-ticker { margin-top: -12px; } }

html[data-theme="light"] .menu-card:hover { border-color: #cfd2d8; }
html[data-theme="light"] .menu-card .arrow { color: #1f2738; }
html[data-theme="light"] input, html[data-theme="light"] select { color: #1f2738; }
html[data-theme="light"] .notice code { background: rgba(255,255,255,0.7); }
html[data-theme="light"] .row { border: 1px solid #cfd2d8; }
html[data-theme="light"] .row:hover { border-color: #cfd2d8; }
html[data-theme="light"] .row .count { color: #7a3d1e; }
html[data-theme="light"] .modal .none { color: #3a4860; }
html[data-theme="light"] .summary .none { color: #3a4860; }
html[data-theme="light"] .chart .bar { fill: #7a3d1e; }
html[data-theme="light"] .chart .grid { stroke: rgba(31, 41, 61,0.75); }

body.page-v2 .us-pm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; width: 100%; }
body.page-v2 .us-pm b { flex: 1 1 140px; min-width: 0; font-weight: 600; }
body.page-v2 .us-pm select { min-width: 130px; flex: 0 1 auto; }
body.page-v2 .us-last { color: var(--ds-text-3); font-size: var(--ds-small); white-space: nowrap; }
body.page-v2 .pj-tabs { margin-bottom: var(--ds-space-3); }
body.page-v2 .pj-t select { min-width: 110px; }
html[data-theme="light"] .chart .axis { stroke: rgba(31, 41, 61,0.75); }
html[data-theme="light"] .chart .lbl, html[data-theme="light"] .chart .val { fill: #3a4960; }
html[data-theme="light"] .chart .val { fill: #1f2738; }
html[data-theme="light"] .chart .hit:hover { fill: rgba(31, 41, 61,0.75); }
html[data-theme="light"] .chart-tip { border: 1px solid #cfd2d8; }
html[data-theme="light"] .table th { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .table td { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .st-red { color: #990000; }
html[data-theme="light"] .st-green { color: #009921; }
html[data-theme="light"] .st-yellow { color: #997400; }
html[data-theme="light"] .row .main > span.st-green { color: #009921; }
html[data-theme="light"] .row .main > span.st-yellow { color: #997400; }
html[data-theme="light"] .st-gray { color: #3a4860; }
html[data-theme="light"] .st-orange { color: #995b00; }
html[data-theme="light"] .st-blue { color: #7a3d1e; }
html[data-theme="light"] .pbar { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .hbar .ht { background: rgba(31, 41, 61,0.09); }
html[data-theme="light"] .row-actions button { background: rgba(31, 41, 61,0.072); border: 1px solid #cfd2d8; color: #1f2738; }
html[data-theme="light"] .row-actions button.edit { color: #7a3d1e; }
html[data-theme="light"] .row-actions button.del { color: #8c0d0d; }
html[data-theme="light"] .row-actions button:hover { border-color: #cfd2d8; }
html[data-theme="light"] .checks label { background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .toast { border: 1px solid #cfd2d8; }
html[data-theme="light"] textarea { color: #1f2738; }
html[data-theme="light"] .info-grid div { background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .rrow { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.027); }
html[data-theme="light"] .add-row { border: 1.2px dashed #cfd2d8; color: #1f2738; }
html[data-theme="light"] .add-row:hover { border-color: #cfd2d8; background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .total-labor b { color: #1f2738; }
html[data-theme="light"] .field-error { color: #990c00; }
html[data-theme="light"] .report-row .edit-link { color: #7a3d1e; }
html[data-theme="light"] .report-row .edit-locked { color: rgba(31, 41, 61,0.75); }
html[data-theme="light"] .obs-meta b { color: #1f2738; }
html[data-theme="light"] .pill.warn { color: #995b00; }
html[data-theme="light"] .pill.ok { color: #009921; }
html[data-theme="light"] .pill.prio.high { color: #990c00; }
html[data-theme="light"] .pill.prio.mid { color: #997400; }
html[data-theme="light"] .pill.prio.low { color: #7a3d1e; }
html[data-theme="light"] .plan-head { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .sec > summary:hover { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .sec .menu-card { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .d3 .glass { background: linear-gradient(150deg, #ffffff 0%, #ffffff 55%, #ffffff 100%); border: 1.2px solid #cfd2d8; border-top-color: #cfd2d8; border-bottom-color: #cfd2d8; }
html[data-theme="light"] .d3 .menu-card::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 41, 61,0.144), transparent 60%); }
html[data-theme="light"] .d3 .menu-card:hover { border-color: #cfd2d8; border-top-color: #cfd2d8; }
html[data-theme="light"] .d3 .sec > summary:hover { background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .d3 .sec .menu-card { background: linear-gradient(150deg, #f4f4f3, #ffffff); }
html[data-theme="light"] .d3 .btn { border: 1px solid #cfd2d8; border-top-color: #cfd2d8; }
html[data-theme="light"] .d3 .btn.secondary { background: linear-gradient(180deg, #f4f4f3 0%, #ffffff 100%); }
@media (min-width: 900px) {
  html[data-theme="light"] body.nb::before { background-image: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.63) 100%),
      url("../img/bg_wide.jpg"); }
  html[data-theme="light"] body.nb .page::after { color: rgba(115, 57, 38,0.92); }
  html[data-theme="light"] body.nb .nb-dev { color: rgba(115, 57, 38,0.98); }
  html[data-theme="light"] body.nb .nb-dev b { color: #1f2738; }
}
@media (max-width: 899px) {
  html[data-theme="light"] body.nb .nb-dev { color: rgba(115, 57, 38,0.95); }
  html[data-theme="light"] body.nb .nb-dev b { color: #1f2738; }
  html[data-theme="light"] body.nb .page::after { color: rgba(115, 57, 38,0.95); }
}
html[data-theme="light"] body.login::before { background-image: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.63) 100%),
    url("../img/bg_wide.jpg"); }
@media (max-width: 899px) {
  html[data-theme="light"] body.nb::before { background-image: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.63) 100%),
      url("../img/bg_wide.jpg"); }
}
@media (min-width: 900px) {
  html[data-theme="light"] body.nb .topbar { background: linear-gradient(180deg, #ffffff, #ffffff); border-bottom: 1px solid #cfd2d8; }
  html[data-theme="light"] body.nb .topbar > .tb-logo { border-inline-end: 1px solid #cfd2d8; }
  html[data-theme="light"] body.nb .topbar > a { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.063); color: #1f2738; }
  html[data-theme="light"] body.nb .topbar > a:hover { background: rgba(31, 41, 61,0.135); border-color: #cfd2d8; }
  html[data-theme="light"] body.nb #userBar > span { background: rgba(31, 41, 61,0.054); border: 1px solid #cfd2d8; }
  html[data-theme="light"] body.nb #userBar .link-btn.danger { background: rgba(255,255,255,0.63); color: #990000; }
}
@media (min-width: 900px) {
  html[data-theme="light"] body.nb .glass, html[data-theme="light"] body.nb .panel, html[data-theme="light"] body.nb .stat, html[data-theme="light"] body.nb .obs, html[data-theme="light"] body.nb .menu-card, html[data-theme="light"] body.nb .sec .menu-card, html[data-theme="light"] body.nb .login-box { background: linear-gradient(150deg, #f4f4f3, rgba(255,255,255,0.85)); border-color: #cfd2d8; border-top-color: #cfd2d8; }
  html[data-theme="light"] body.nb .menu-card:hover, html[data-theme="light"] body.nb .obs:hover { background: linear-gradient(150deg, #f4f4f3, rgba(255,255,255,0.83)); }
  html[data-theme="light"] body.nb .sec > summary { background: linear-gradient(150deg, #f4f4f3, rgba(255,255,255,0.83)); border: 1px solid #cfd2d8; border-top-color: #cfd2d8; }
  html[data-theme="light"] body.nb .sec > summary:hover { background: linear-gradient(150deg, #f4f4f3, rgba(255,255,255,0.87)); }
  html[data-theme="light"] body.nb .row { background: rgba(255,255,255,0.79); border-color: #cfd2d8; }
  html[data-theme="light"] body.nb input, html[data-theme="light"] body.nb select, html[data-theme="light"] body.nb textarea { background: rgba(255,255,255,0.95); }
  html[data-theme="light"] body.nb .rrow { background: rgba(31, 41, 61,0.018); }
  html[data-theme="light"] body.nb .info-grid div { background: rgba(31, 41, 61,0.054); }
  html[data-theme="light"] body.nb .menu-card .text > span, html[data-theme="light"] body.nb .subtitle, html[data-theme="light"] body.nb .muted { color: #7a3d1e; }
}
html[data-theme="light"] .pcard::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 41, 61,0.144), transparent 60%); }
html[data-theme="light"] .pcard:hover { border-color: #cfd2d8; }
html[data-theme="light"] .pc-head .pct { color: #7a3d1e; }
html[data-theme="light"] .chip { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.072); }
html[data-theme="light"] .chip.ok { color: #178237; }
html[data-theme="light"] .chip.warn { color: #995a00; }
@media (min-width: 900px) {
  html[data-theme="light"] body.nb .dqsec { background: linear-gradient(150deg, #f4f4f3, #ffffff); border: 1px solid #cfd2d8; border-top-color: #cfd2d8; }
}
html[data-theme="light"] .tabs button { color: #7a3d1e; border: 1.2px solid #cfd2d8; border-top-color: #cfd2d8; background: linear-gradient(160deg, #f4f4f3, #ffffff); }
html[data-theme="light"] .tabs button:hover { border-color: #cfd2d8; }
html[data-theme="light"] .tabs button.on { color: #1f2738; background: linear-gradient(160deg, rgba(180, 90, 60,.75), #ffffff); }
html[data-theme="light"] .legend .c-off { background: rgba(31, 41, 61,0.225); }
html[data-theme="light"] .cal-d { color: #1f2738; border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .cal-d.has { background: linear-gradient(150deg, rgba(46,160,90,.65), #ffffff); }
html[data-theme="light"] .cal-d.miss { background: linear-gradient(150deg, rgba(200,67,58,.55), #ffffff); }
html[data-theme="light"] .seg { border: 1px solid #cfd2d8; }
html[data-theme="light"] .seg button { color: #1f2738; background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] .la-banner:hover { border-color: #cfd2d8; }
html[data-theme="light"] .row.la { border-inline-start: 4px solid #cfd2d8; }
html[data-theme="light"] body.nb .section-title { color: #7a3d1e; }
html[data-theme="light"] .g-axis { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .g-gl { background: rgba(31, 41, 61,0.09); }
html[data-theme="light"] .g-today b { color: #997400; }
html[data-theme="light"] .g-row { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .g-row:hover { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .g-bar span { color: #1f2738; }
html[data-theme="light"] .kcol { border: 1px solid #cfd2d8; background: rgba(255,255,255,0.8); }
html[data-theme="light"] .kcol.open header b { color: #995a00; }
html[data-theme="light"] .kcol.progress header b { color: #7a3d1e; }
html[data-theme="light"] .kcol.resolved header b { color: #178237; }
html[data-theme="light"] .kcount { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .kcol.over { background: rgba(255,255,255,0.8); }
html[data-theme="light"] .kempty { border: 1px dashed #cfd2d8; }
html[data-theme="light"] .pill.prog { color: #7a3d1e; }
html[data-theme="light"] .stats.four .st-blue, html[data-theme="light"] .st-blue { color: #7a3d1e; }
html[data-theme="light"] .kb-col { border: 1px solid #cfd2d8; border-top-color: #cfd2d8; background: rgba(255,255,255,0.83); }
html[data-theme="light"] .kb-n { background: rgba(31, 41, 61,0.126); }
html[data-theme="light"] .hdot { color: #394860; }
html[data-theme="light"] .hdot.h-green { color: #158441; }
html[data-theme="light"] .hdot.h-yellow { color: #996b00; }
html[data-theme="light"] .hdot.h-red { color: #990900; }
html[data-theme="light"] .hdot.h-gray { color: #394860; }
html[data-theme="light"] .cal-d.cg:hover { border-color: #cfd2d8; }
html[data-theme="light"] .dc { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.072); }
html[data-theme="light"] .bell-btn { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.063); color: #1f2738; }
html[data-theme="light"] .bell-btn:hover, html[data-theme="light"] .bell-btn[aria-expanded="true"] { background: rgba(31, 41, 61,0.144); }
html[data-theme="light"] .bell-panel { border: 1px solid #cfd2d8; }
html[data-theme="light"] .bell-h { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .bell-it { color: #1f2738; }
html[data-theme="light"] .bell-it:hover { background: rgba(31, 41, 61,0.081); }
html[data-theme="light"] .bell-it span { color: #38465e; }
html[data-theme="light"] .bell-f { border-top: 1px solid #cfd2d8; }
html[data-theme="light"] .wiz-tab { color: #1f2738; border: 1px solid #cfd2d8; background: #ffffff; }
html[data-theme="light"] .wiz-tab:hover { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .wiz-tab i { background: rgba(31, 41, 61,0.126); }
html[data-theme="light"] .wiz-tab em { color: #28712b; }
html[data-theme="light"] .wiz-tab.on { border-color: #cfd2d8; }
html[data-theme="light"] .wiz-tab.on i { background: rgba(31, 41, 61,0.252); }
html[data-theme="light"] .sub-card.open { border-color: #cfd2d8; }
html[data-theme="light"] .tbl tr.clickable:hover { background: rgba(31, 41, 61,0.072); }
html[data-theme="light"] .vz-big { fill: #1f2738; }
html[data-theme="light"] .vz-sm { fill: #39475e; }
html[data-theme="light"] .vz-grid { stroke: rgba(31, 41, 61,0.75); }
html[data-theme="light"] .vz-ax { fill: #39475f; }
html[data-theme="light"] .vz-pr:hover { background: rgba(31, 41, 61,0.063); }
html[data-theme="light"] .vz-tip { background: #ffffff; border: 1px solid #cfd2d8; color: #1f2738; }
html[data-theme="light"] .wp-t span { color: #995b00; }
html[data-theme="light"] .wiz-review { border-top: 1px dashed #cfd2d8; }
html[data-theme="light"] .rv { color: #1f2738; border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] .rv:hover { background: rgba(31, 41, 61,0.126); }
@media (min-width: 1100px) {
  html[data-theme="light"] body.has-nav .wiz-rail { background: #ffffff; border: 1px solid #cfd2d8; }
}
html[data-theme="light"] .it-row { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .it-row.clickable:hover { background: rgba(31, 41, 61,0.09); }
html[data-theme="light"] .chk-role { background: rgba(31, 41, 61,0.054); border: 1px solid #cfd2d8; }
html[data-theme="light"] .chk-role b { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .chk-role.full b { color: #178237; }
html[data-theme="light"] .chk-row { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .chk-b { background: rgba(31, 41, 61,0.063); border: 1px solid #cfd2d8; }
html[data-theme="light"] .ck-slot { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .hr-reason { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .hr-line { stroke: #7a3d1e; }
html[data-theme="light"] .hr-dot { fill: #7a3d1e; }
html[data-theme="light"] .ap-chip.ap-ok { color: #178237; }
html[data-theme="light"] .ap-chip.ap-bad { color: #991800; }
html[data-theme="light"] .ap-chip.ap-pending { color: #947305; }
html[data-theme="light"] .ap-box { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .ap-tabs button { background: rgba(31, 41, 61,0.054); border: 1px solid #cfd2d8; }
html[data-theme="light"] .ap-returned a { color: #991c00; }
html[data-theme="light"] .wx { background: rgba(31, 41, 61,0.045); border: 1px solid #cfd2d8; }
html[data-theme="light"] .sub-title { color: #944a28; }
html[data-theme="light"] .pl-meta { color: #7a3d1e; }
html[data-theme="light"] .rt-card { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .rt-b { color: #944a28; background: rgba(31, 41, 61,0.054); border: 1px solid #cfd2d8; }
html[data-theme="light"] .rt-b.fill { color: #1f2738; }
html[data-theme="light"] .ev-detail td { background: rgba(31, 41, 61,0.027); }
html[data-theme="light"] .today-strip .ts-l { color: #944a28; }
html[data-theme="light"] .ts-c { background: rgba(31, 41, 61,0.054); border: 1px solid #cfd2d8; }
html[data-theme="light"] .ts-c.ok b { color: #178237; }
html[data-theme="light"] .ts-c.bad b { color: #991800; }
html[data-theme="light"] .ts-c:hover { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .ck-rc, html[data-theme="light"] .ck-rb { background: rgba(31, 41, 61,0.045); border: 1px solid #cfd2d8; }
html[data-theme="light"] .ck-ring .trk { stroke: rgba(31, 41, 61,0.75); }
html[data-theme="light"] .ck-ring text { fill: #1f2738; }
html[data-theme="light"] .ck-ring.go .val { stroke: #7a3d1e; }
html[data-theme="light"] .ck-ring.ok .val { stroke: #158441; }
html[data-theme="light"] .ck-ring.warn .val { stroke: #967303; }
html[data-theme="light"] .ck-off { border: 2px dashed #cfd2d8; }
html[data-theme="light"] .ck-bar { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .ck-tls::before { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .ck-tlr { border-inline-start: 4px solid #cfd2d8; }
html[data-theme="light"] .ck-tlr.yes .chk-t { color: #1f7a3b; }
html[data-theme="light"] .ck-seg { border: 1px solid #cfd2d8; }
html[data-theme="light"] .ck-seg .chk-b + .chk-b { border-inline-start: 1px solid #cfd2d8; }
html[data-theme="light"] .ck-stack { background: rgba(31, 41, 61,0.09); }
html[data-theme="light"] .ck-ic { border: 2px solid #cfd2d8; }
html[data-theme="light"] .lab-abs { color: #991d00; }
html[data-theme="light"] .lg-type span { background: rgba(31, 41, 61,0.054); border: 1px solid #cfd2d8; }
html[data-theme="light"] .lg-month { color: #944a28; }
html[data-theme="light"] .lg-item::before { background: rgba(31, 41, 61,0.108); }
html[data-theme="light"] .lg-dot { background: rgba(31, 41, 61,0.072); border: 2px solid #cfd2d8; }
html[data-theme="light"] .ub-name { color: #7a3d1e; }
html[data-theme="light"] .ls-row.fixed em { background: rgba(31, 41, 61,0.09); }
html[data-theme="light"] .ls-btn { border: 1px solid #cfd2d8; background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] .ls-btn:hover:not(:disabled) { background: rgba(31, 41, 61,0.126); }
html[data-theme="light"] .report-row .del-link { color: #990c00; }
html[data-theme="light"] .rrow .lab-work { border-top: 1px dashed #cfd2d8; }
html[data-theme="light"] .report-row .rr-b { color: #7a3d1e; background: rgba(31, 41, 61,0.063); border: 1px solid #cfd2d8; }
html[data-theme="light"] .report-row .rr-b:hover { background: rgba(31, 41, 61,0.144); }
html[data-theme="light"] .report-row .rr-b.edit-link { color: #1f2738; }
html[data-theme="light"] .report-row .rr-b.del { color: #990000; }
html[data-theme="light"] body.page-v2 .btn.secondary { background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] body.page-v2 .um-btn { background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] body.page-v2 .um-item:hover { background: rgba(31, 41, 61,0.063); }
html[data-theme="light"] body.page-v2 .btn.ghost { border: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .btn.ghost:hover { background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] body.page-v2 .report-row .rr-b.edit-link { color: #1f2738; }
html[data-theme="light"] body.page-v2 .report-row .rr-b.ghost { border: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .report-row .rr-b.ghost:hover { background: rgba(31, 41, 61,0.054); }
html[data-theme="light"] body.page-v2 .report-row .rr-b.del:hover, html[data-theme="light"] body.page-v2 .report-row .rr-b.del:focus-visible { color: #1f2738; }
html[data-theme="light"] body.page-v2 .table td { border-bottom-color: #cfd2d8; }
html[data-theme="light"] body.page-v2 .table tbody tr:hover td { background: rgba(31, 41, 61,0.027); }
html[data-theme="light"] body.page-v2 .us-role.r-admin, html[data-theme="light"] body.page-v2 .us-role.r-manager { color: #7a3d1e; }
html[data-theme="light"] body.page-v2 .us-role.r-hr, html[data-theme="light"] body.page-v2 .us-role.r-followup, html[data-theme="light"] body.page-v2 .us-role.r-planning, html[data-theme="light"] body.page-v2 .us-role.r-documents, body.page-v2 .us-role.r-basma, html[data-theme="light"] body.page-v2 .us-role.r-ohda, html[data-theme="light"] body.page-v2 .us-role.r-ohrep { color: #354258; }
html[data-theme="light"] body.page-v2 .us-edit { border: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .ad-set { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .ad-counts > div { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .it-wrap { background: #ffffff; }
html[data-theme="light"] body.page-v2 .it-table th { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] body.page-v2 .it-table td { border-bottom-color: #cfd2d8; }
html[data-theme="light"] body.page-v2 .it-table input { background: rgba(255,255,255,0.63); }
html[data-theme="light"] body.page-v2 .it-del:hover { color: #1f2738; }
html[data-theme="light"] .login-foot b { color: rgba(115, 57, 38,0.92); }
html[data-theme="light"] .login-foot span { color: rgba(115, 57, 38,0.98); }
html[data-theme="light"] body.page-v2 .pend-banner { background: #ffffff; }
html[data-theme="light"] .pj-card { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .pj-card { background: linear-gradient(110deg, rgba(31, 41, 61,0.045) 30%, rgba(31, 41, 61,0.108) 50%, rgba(31, 41, 61,0.045) 70%) 0 0 / 300% 100%; }
html[data-theme="light"] .pj-card:has(img.ok) { background: rgba(31, 41, 61,0.036); }
html[data-theme="light"] .pj-card figcaption { background: linear-gradient(180deg, transparent, #ffffff 55%); }
html[data-theme="light"] .pj-card figcaption b { color: #1f2738; }
html[data-theme="light"] .sec-links { background: #ffffff; }
html[data-theme="light"] .sec-links-t { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] .sec-links a { border-bottom: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .pm-wrap { background: #ffffff; }
html[data-theme="light"] html:not([data-theme="light"]) body.page-v2 .us-row { background: #ffffff; }
html[data-theme="light"] html:not([data-theme="light"]) body.page-v2 .us-row:hover { background: #ffffff; }
html[data-theme="light"] .att-empty { border: 1px dashed var(--ds-border, #cfd2d8); }
html[data-theme="light"] .att-w { border: 1px solid var(--ds-border, #cfd2d8); background: var(--ds-surface-row, rgba(31, 41, 61,0.036)); }
html[data-theme="light"] table.att-t th, html[data-theme="light"] table.att-t td { border: 1px solid var(--ds-border, #cfd2d8); }
html[data-theme="light"] table.att-t .tot { background: var(--ds-surface-row-hover, rgba(31, 41, 61,0.072)); }
@media (min-width: 900px) {
  html[data-theme="light"] body.nb .nb-dev .nb-dev-c { color: rgba(115, 57, 38,0.95); }
}
html[data-theme="light"] .ck-tslot h4 { background: rgba(31, 41, 61,0.045); }
html[data-theme="light"] .ck-tslot h4:hover { background: rgba(31, 41, 61,0.09); }
html[data-theme="light"] .ck-tslot h4 small { color: #995c00; }
html[data-theme="light"] .ck-tslot h4 small.all { color: #178237; }
html[data-theme="light"] .ra-table .rr-info.st-yellow { color: #997400; }
html[data-theme="light"] .link-btn.ok { color: #178237; }
html[data-theme="light"] .td-box.done > summary b { color: #178237; }
html[data-theme="light"] .td-row { border-top: 1px solid #cfd2d8; }
html[data-theme="light"] .td-row.ok > b { color: #1f7a3d; }
html[data-theme="light"] .rr-me { color: #178237; }
html[data-theme="light"] body.page-v2 .us-code { color: #7a3d1e; }
html[data-theme="light"] body.page-v2 .us-plus { border: 1px solid #cfd2d8; }
html[data-theme="light"] body.page-v2 .us-list.grpl .pm-arw.us-plus { border: 1px solid #cfd2d8; }
html[data-theme="light"] .alert-ticker .tk-it.ann.red b { color: #991500; }

html[data-theme="light"], html[data-theme="light"] body, html[data-theme="light"] body.page-v2 {
  --bg-top: #f4f7fb; --bg-bottom: #e8eef6;
  --card: #ffffff; --card-strong: #ffffff; --card-border: #cfd2d8;
  --input: #ffffff; --input-border: #8a94a6;
  --text: #1f2738; --muted: #4b5668;
  --accent: #a85a33; --yellow: #8a5a00; --green: #1b6b36; --danger: #b3261e;
  --icon-box: #fbeee5; --icon-box-border: #ebc6ac;
  --ds-primary: #a85a33; --ds-success: #1b6b36; --ds-warning: #8a5a00; --ds-danger: #b3261e;
  --ds-text: #1f2738; --ds-text-2: #344156; --ds-text-3: #8a94a6;
  --ds-border: #cfd2d8; --ds-surface-row: rgba(255,255,255,.58); --ds-surface-row-hover: rgba(234,242,252,.82);
  color-scheme: light;
}
html[data-theme="light"] { background: #e6e6e6; color: #1f2738; }
html[data-theme="light"] body { background: transparent; color: #1f2738; }
html[data-theme="light"] body.nb::before, html[data-theme="light"] body.login::before { background-color: #e6e6e6 !important; background-image: url("../img/bg_light.jpg") !important; background-size: cover !important; background-position: center bottom !important; background-repeat: no-repeat !important; }
html[data-theme="light"] body::after { display: none; }
html[data-theme="light"] body.nb .topbar { background: #ffffff; border-bottom: 2px solid #cfd2d8; box-shadow: 0 2px 8px rgba(31, 41, 61,.12); }
html[data-theme="light"] body.nb .topbar > a, html[data-theme="light"] body.nb #userBar > span { background: #efefef; border: 1.5px solid #c4c8cf; color: #1f2738; }
html[data-theme="light"] body.nb #userBar > span * { color: inherit; }
html[data-theme="light"] body.nb #userBar .link-btn.danger { background: #fdecea; color: #b3261e; border-color: #b3261e; }
html[data-theme="light"] body.nb .glass, html[data-theme="light"] body.nb .panel, html[data-theme="light"] body.nb .menu-card, html[data-theme="light"] body.nb .stat, html[data-theme="light"] body.nb .obs, html[data-theme="light"] body.nb .row {
  background: rgba(255,255,255,.58); backdrop-filter: blur(3px); border: 1.5px solid #cfd2d8; border-top-color: #cfd2d8;
  box-shadow: 0 2px 6px rgba(31, 41, 61,.14); text-shadow: none; color: #1f2738;
}
html[data-theme="light"] body.nb .menu-card:hover { background: #fbeee5; border-color: var(--color-accent); }
html[data-theme="light"] body.nb .menu-card .text b { color: #1f2738; text-shadow: none; }
html[data-theme="light"] body.nb .menu-card .text > span { color: #4b5668; text-shadow: none; }
html[data-theme="light"] .menu-card .arrow { color: #1f2738; opacity: 1; text-shadow: none; }
html[data-theme="light"] .menu-card .icon-box { border: 1.5px solid #ebc6ac; box-shadow: none; }
html[data-theme="light"] body.nb .page-head h1, html[data-theme="light"] body.nb h1.title { color: #1f2738; text-shadow: none; }
html[data-theme="light"] body.nb .page::after { color: #4b5668; }
html[data-theme="light"] body.nb .page::before { color: #8a94a6; }
html[data-theme="light"] .btn, html[data-theme="light"] button.btn { background: var(--color-accent); color: #fff; border-color: #944a28; }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: #fff !important; color: #1f2738; border: 1.5px solid #8a94a6; box-shadow: none !important; }
html[data-theme="light"] .theme-btn { background: #efefef; color: #1f2738; border-color: #c4c8cf; }
.theme-btn { cursor: pointer; font: inherit; font-size: var(--fs-md); padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.07); color: #fff; }

html[data-theme="light"] body.nb .topbar > .tb-logo { background-image: url("../img/print_company.png"); border-inline-end-color: #cfd2d8; }
html[data-theme="light"] .menu-card .icon-box { background: #ffffff; border: 1.5px solid #cfd2d8; }
html[data-theme="light"] .um-btn { background: #efefef; border: 1.5px solid #c4c8cf; color: #1f2738; }
html[data-theme="light"] .um-name, html[data-theme="light"] .um-caret, html[data-theme="light"] .um-btn * { color: #1f2738; }
html[data-theme="light"] .um-menu { background: #fff; border: 1.5px solid #c4c8cf; color: #1f2738; box-shadow: 0 6px 18px rgba(31, 41, 61,.2); }
html[data-theme="light"] .um-head span { color: #4b5668; }
html[data-theme="light"] .um-item { color: #1f2738; }
html[data-theme="light"] .um-item.danger { color: #b3261e; }
html[data-theme="light"] .um-item:hover { background: #fbeee5; }
html[data-theme="light"] .bell, html[data-theme="light"] #bellBtn, html[data-theme="light"] .bell-btn { background: #efefef; border: 1.5px solid #c4c8cf; color: #1f2738; }
html[data-theme="light"] .pj-card { border: 1.5px solid #cfd2d8; }
html[data-theme="light"] .pj-head h2 { color: #1f2738; }

html[data-theme="light"] body.nb .sec > summary, html[data-theme="light"] body.nb .dqsec { background: #ffffff; backdrop-filter: none; border: 1.5px solid #cfd2d8; box-shadow: 0 2px 6px rgba(31, 41, 61,.14); text-shadow: none; }
html[data-theme="light"] body.nb .sec > summary:hover { background: #fbeee5; }
html[data-theme="light"] .btn.secondary, html[data-theme="light"] .btn.ghost, html[data-theme="light"] .d3 .btn.secondary { color: #1f2738; background: #efefef; border: 1.5px solid #c4c8cf; }
html[data-theme="light"] .btn:disabled, html[data-theme="light"] .btn[disabled] { background: #d5deeb; color: #8a94a6; border-color: #9aa9c2; opacity: 1; }
html[data-theme="light"] .modal-backdrop { background: rgba(31, 41, 61,.5); }
html[data-theme="light"] .modal, html[data-theme="light"] .bell-panel, html[data-theme="light"] .vz-tip { background: #ffffff; color: #1f2738; border: 1.5px solid #cfd2d8; box-shadow: 0 12px 32px rgba(31, 41, 61,.3); }
html[data-theme="light"] .modal h2, html[data-theme="light"] .modal h3, html[data-theme="light"] .modal label, html[data-theme="light"] .modal p, html[data-theme="light"] .modal li, html[data-theme="light"] .bell-panel * { color: #1f2738; }
html[data-theme="light"] .modal .hint, html[data-theme="light"] .modal small { color: #4b5668; }
html[data-theme="light"] .toast { background: #38465d; color: #fff; }

html[data-theme="light"] .sidenav { background: #ffffff; border: 1.5px solid #cfd2d8; box-shadow: 0 2px 8px rgba(31, 41, 61,.16); backdrop-filter: none; color: #1f2738; --muted:#4b5668; --text:#1f2738; }
html[data-theme="light"] .sidenav a { color: #303c50; }
html[data-theme="light"] .sidenav a svg, html[data-theme="light"] .sn-t svg { color: #a85a33; }
html[data-theme="light"] .sidenav a:hover { background: #fbeee5; color: #1f2738; }
html[data-theme="light"] .sidenav a.on { background: var(--color-accent); color: #fff; }
html[data-theme="light"] .sidenav a.on svg { color: #fff; }
html[data-theme="light"] .sn-t { background: #fbeee5; color: #1f2738; border: 1px solid #b9cde6; }
html[data-theme="light"] .sn-sec b { color: #1f2738; }
html[data-theme="light"] .sn-sec { border-bottom-color: #b9cde6; }
html[data-theme="light"] .sn-g.sub > a { border-inline-start-color: #b9cde6; }
html[data-theme="light"] .sn-step { color: #303c50; }
html[data-theme="light"] .sn-step:hover { background: #fbeee5; color: #1f2738; }
html[data-theme="light"] .sn-step.on { background: var(--color-accent); color: #fff; }
html[data-theme="light"] .sn-step i { background: #d5deeb; color: #1f2738; }
html[data-theme="light"] .sn-step.done i { background: #1b6b36; color: #fff; }
html[data-theme="light"] .sn-step.seen i { background: #e6b800; color: #1f2738; }
html[data-theme="light"] .sn-sec span { color: #4b5668; }
html[data-theme="light"] .sn-step sup { color: #b3261e; }
html[data-theme="light"] .sn-scrim { background: rgba(31, 41, 61,.5); }
html[data-theme="light"] .sn-step em { background: #d6e8da; color: #14532d; }
html[data-theme="light"] .sn-step.on em { background: #ffffff; color: #643221; }
html[data-theme="light"] .brand img { content: url("../img/print_company.png"); }

@media (min-width: 900px) { html[data-theme="light"] body.nb .page::before { color: #3f4f69; font-weight: 700; } html[data-theme="light"] body.nb .page::after { color: #303c50; font-weight: 600; } }
@media (max-width: 899px) { html[data-theme="light"] body.nb .page::after { color: #3f4f69; font-weight: 700; } }
html[data-theme="light"] .login-foot span { color: #232c3b; font-weight: 400; }
html[data-theme="light"] .login-foot span strong { color: #232c3f; font-weight: 600; }
html[data-theme="light"] .login-foot b { color: #303c50; }
html[data-theme="light"] .chk-role.on { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
html[data-theme="light"] .chk-role.on b { background: rgba(255,255,255,.28); color: #fff; }
html[data-theme="light"] .sidenav { scrollbar-width: thin; scrollbar-color: #ebc6ac transparent; }
html[data-theme="light"] body.nb .nb-dev { color: #3f4f69; }
html[data-theme="light"] body.nb .nb-dev b { color: #232c3f; font-weight: 600; }
@media (min-width: 900px) { html[data-theme="light"] body.nb .nb-dev .nb-dev-c { color: #303c50; font-weight: 600; } }

.mig-list{margin:0 0 .6rem;padding-inline-start:1.1rem}.mig-list li{margin:.35rem 0}
.dash{margin-bottom:var(--ds-space-3,12px)}.dash .stats{margin-bottom:.8rem}.dash-tile{text-decoration:none;color:inherit}
.dash-alerts{list-style:none;margin:0;padding:0}.dash-alerts li{padding:.45rem .2rem;border-bottom:1px solid rgba(255,255,255,.08)}.dash-alerts li:last-child{border:0}
.dash-alerts a{color:inherit;text-decoration:none}.dash-alerts li.red{border-inline-start:3px solid #e5484d;padding-inline-start:.6rem}.dash-alerts li.orange{border-inline-start:3px solid #f5a623;padding-inline-start:.6rem}

.dash-new{display:block;text-align:center;font-size:1.15rem;padding:.95rem 1rem;margin:.2rem 0 .8rem;text-decoration:none}
.pwa-bar{position:fixed;inset-inline:12px;bottom:12px;z-index:60;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.7rem .9rem}.pwa-bar span{flex:1;min-width:12rem}

.dash-strip{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 .8rem}
.dash-chip{flex:1;min-width:8.5rem;display:flex;align-items:center;gap:.55rem;padding:.45rem .8rem;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:inherit;text-decoration:none;font-size:.9rem}
.dash-chip b{font-size:1.15rem;min-width:1.4rem;text-align:center}
.dash-chip.ok b{color:#3ddc97}.dash-chip.warn{border-color:#f5a623}.dash-chip.warn b{color:#f5a623}.dash-chip.bad{border-color:#e5484d}.dash-chip.bad b{color:#ff6b6f}

.dash-lbl{font-weight:700;font-size:.85rem;color:#f5dcc8;display:flex;align-items:center;white-space:nowrap}
.dash .dash-lbl{margin-bottom:.4rem}
@media (min-width:900px){
  body:has(#homeLayout) .menu.home-grid{gap:10px 18px}
  body:has(#homeLayout) .menu.home-grid .menu-card{padding:9.5px 18px;min-height:0}
  body:has(#homeLayout) .brand{display:none}
  body:has(#homeLayout) .dash-strip{margin-bottom:.5rem}
  body:has(#homeLayout) .dash-chip{padding:.25rem .7rem}
  body:has(#homeLayout) .pj-strip{margin-top:12px}
  body:has(#homeLayout) .pj-head{margin-bottom:4px}
}

.dash-wrap{position:relative;flex:1;min-width:8.5rem;display:flex}.dash-wrap .dash-chip{flex:1}
.dash-pop{display:none;position:absolute;top:100%;inset-inline:0;z-index:50;padding-top:6px}
.dash-pop>a,.dash-pop>small{display:block;padding:.45rem .8rem;background:#232c3a;border:1px solid rgba(255,255,255,.18);border-top:0;color:#fff;text-decoration:none;font-size:.85rem}
.dash-pop>a:first-child{border-top:1px solid rgba(255,255,255,.18);border-radius:10px 10px 0 0}
.dash-pop>a:hover{background:#6e3724}
.dash-pop>:last-child{border-radius:0 0 10px 10px}.dash-pop>small{color:#9fb3d4}
.dash-wrap:hover .dash-pop,.dash-wrap:focus-within .dash-pop{display:block}
html[data-theme="light"] .dash-pop>a,html[data-theme="light"] .dash-pop>small{background:#fff;color:#1f2738;border-color:#9cb2d0}
@media (min-width:900px){body:has(#homeLayout) #dash{margin-top:8px}}
.dash-strip>.dash-lbl{padding:.3rem .9rem;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);color:#fff}
@media (min-width:900px){body:has(#homeLayout) .alert-ticker{margin-inline:0}}
.dash-arr{font-style:normal;font-size:.7rem;margin-inline-start:.5rem;opacity:.85}
.dash-arr3d{flex:none;width:20px;height:30px;align-self:center;filter:drop-shadow(0 3px 2px rgba(0,0,0,.55)) drop-shadow(0 0 4px rgba(227, 154, 115,.45))}
.dash-strip{align-items:center}
@media (min-width:900px){body:has(#homeLayout) #dash,body:has(#homeLayout) .alert-ticker{width:100%;box-sizing:border-box;max-width:1040px;margin-inline:auto}}
@media (min-width:1100px){body:has(#homeLayout) #dash,body:has(#homeLayout) .alert-ticker{max-width:1240px}}
@media (min-width:1200px){body:has(#homeLayout) #dash,body:has(#homeLayout) .alert-ticker{max-width:1480px}}

.dash-pages{flex:1;min-width:0}.dash-page{display:none;gap:.5rem}.dash-page.on{display:flex}
.dash-nav{flex:none;width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff;font-size:1.3rem;line-height:1;cursor:pointer}
.dash-nav:hover{background:rgba(255,255,255,.22)}
.dash-dots{display:flex;gap:6px;justify-content:center;margin:-.3rem 0 .4rem}.dash-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3)}.dash-dots i.on{background:#b9c6da}

.ph-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line, rgba(255,255,255,.18)); }
.ph-head { margin-bottom: 8px; }
.ph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ph-list:empty { display: none; }
.ph-it { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); }
.ph-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-x { position: absolute; top: 4px; inset-inline-start: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: var(--fs-base); line-height: 1; cursor: pointer; }

html[data-no-share] [data-share], html[data-no-share] #btnShare, html[data-no-share] #btnShareTg { display: none !important; }

.ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.ad-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .15s; }
.ad-card:hover { transform: translateY(-2px); }
.ad-card b { font-size: var(--fs-lg); } .ad-card span { font-size: var(--fs-sm); opacity: .8; }
body.page-v2 .pm-t td.pm-fn { padding-inline-start: 40px; font-size: .94em; }

.dash-page.on { flex-wrap: wrap; }
@media (max-width: 700px) {
  .dash-wrap { flex: 1 1 calc(50% - .25rem); min-width: 0; }
  .dash-wrap .dash-chip { min-width: 0; }
  .dash-strip { flex-wrap: wrap; }
  .dash-pages { flex: 1 1 100%; order: 3; }
  .dash-arr3d { display: none; }
}

html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 899px) {
  .sidenav { visibility: hidden; transition: transform .2s, visibility 0s .2s; }
  body.sn-open .sidenav { visibility: visible; transition: transform .2s; }
}

@media (max-width: 899px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar #userBar { flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
  body.page-v2 .um-btn { max-width: 100%; }
  .td-box summary { flex-wrap: wrap; row-gap: 8px; }
  .td-box .td-new { flex: 0 1 auto; }
}
@media (max-width: 700px) { .us-tools { flex-wrap: wrap; } .us-tools input { flex: 1 1 100%; min-width: 0; } }

body.login::before { background-image: url("../img/bg_wide.jpg") !important; background-size: cover !important; background-position: center !important; }

html:not([data-theme="light"]) body.login::before { background-color: #3f4f69 !important; background-image: url("../img/bg_pattern.jpg") !important; background-size: cover !important; background-position: center top !important; }

/* build 13 */

body.login h1.title { font-size: var(--fs-2xl); margin: 10px 0 6px; }
body.login p.subtitle { font-size: var(--fs-xl); font-weight: 500; color: #e6edf6; margin-bottom: 24px; }
@media (max-width: 480px) { body.login h1.title { font-size: var(--fs-num); } body.login p.subtitle { font-size: var(--fs-lg); } }
html[data-theme="light"] body.login p.subtitle { color: #4b5668; }


html[data-theme="light"], html[data-theme="light"] body, html[data-theme="light"] body.page-v2 {
  --bg-top: #ececec; --bg-bottom: #e6e6e6;
  --card: #f7f7f6; --card-strong: #ffffff; --card-border: #cfd2d8;
  --input-border: #aab0bb; --muted: #566073;
  --accent: #b9683a; --icon-box: #f6e7dc; --icon-box-border: #e8c9b3;
  --ds-primary: #b9683a; --ds-border: #cfd2d8; --ds-text-3: #566073;
  --ds-surface-row: #f7f7f6; --ds-surface-row-hover: #f6e7dc;
}
html[data-theme="light"] body.nb .topbar { background: #f7f7f6; border-bottom: 2px solid #d48054; }
html[data-theme="light"] body.nb .glass, html[data-theme="light"] body.nb .panel, html[data-theme="light"] body.nb .menu-card, html[data-theme="light"] body.nb .stat, html[data-theme="light"] body.nb .obs, html[data-theme="light"] body.nb .row, html[data-theme="light"] body.nb .sec .menu-card, html[data-theme="light"] body.nb .sec > summary, html[data-theme="light"] body.nb .dqsec {
  background: #f7f7f6; border: 1.5px solid #cfd2d8; border-top-color: #cfd2d8; box-shadow: 0 1px 4px rgba(63,79,105,.12);
}
html[data-theme="light"] body.nb .menu-card:hover, html[data-theme="light"] body.nb .obs:hover, html[data-theme="light"] body.nb .sec > summary:hover { background: #f6e7dc; border-color: #d48054; }
html[data-theme="light"] .d3 .glass, html[data-theme="light"] .d3 .sec .menu-card, html[data-theme="light"] .d3 .btn.secondary { background: #f7f7f6; }
html[data-theme="light"] body.nb .menu-card .icon-box { background: #fff; border-color: #e8c9b3; }
html[data-theme="light"] body.nb .menu-card .text > span, html[data-theme="light"] body.nb .subtitle, html[data-theme="light"] body.nb .muted, html[data-theme="light"] body.nb .section-title { color: #566073; }
html[data-theme="light"] body.nb .section-title, html[data-theme="light"] .pc-head .pct, html[data-theme="light"] .row .count, html[data-theme="light"] .st-blue, html[data-theme="light"] .tabs button { color: #3f4f69; }
html[data-theme="light"] .tabs button { background: #f7f7f6; border-color: #cfd2d8; }
html[data-theme="light"] .tabs button.on { color: #fff; background: #d48054; border-color: #d48054; }
html[data-theme="light"] .chip { background: #f7f7f6; border: 1px solid #cfd2d8; color: #1f2738; }
html[data-theme="light"] .alert-ticker { background: #f6e7dc; border-color: #d48054; color: #1f2738; }
html[data-theme="light"] .alert-ticker .tk-it.ann.red b { color: #a4471f; }
html[data-theme="light"] .bell-btn, html[data-theme="light"] body.nb .topbar > a, html[data-theme="light"] body.nb #userBar > span { background: #f7f7f6; border: 1.5px solid #cfd2d8; color: #1f2738; }
html[data-theme="light"] .bell-btn:hover, html[data-theme="light"] body.nb .topbar > a:hover { background: #f6e7dc; border-color: #d48054; }
html[data-theme="light"] .bell-panel, html[data-theme="light"] .toast, html[data-theme="light"] .vz-tip { background: #fff; border: 1px solid #cfd2d8; }
html[data-theme="light"] .table th, html[data-theme="light"] .table td { border-bottom-color: #dcdee3; }
html[data-theme="light"] body.nb input, html[data-theme="light"] body.nb select, html[data-theme="light"] body.nb textarea { background: #fff; border-color: #aab0bb; }
html[data-theme="light"] .sidenav { background: #f7f7f6; border-color: #cfd2d8; }


.hx { --hx-card: rgba(31, 41, 61, .6); --hx-line: rgba(255,255,255,.22); --hx-head: rgba(255,255,255,.1); --hx-fg: #fff; --hx-muted: #cbd5e1; --hx-ic: #f2b390; --hx-on-bg: #d48054; --hx-on-fg: #fff; --hx-tile: rgba(255,255,255,.07);
  display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; margin: 8px 16px 18px; color: var(--hx-fg); }
html[data-theme="light"] .hx { --hx-card: #f7f7f6; --hx-line: #cfd2d8; --hx-head: #f6e7dc; --hx-fg: #1f2738; --hx-muted: #566073; --hx-ic: #3f4f69; --hx-on-bg: #3f4f69; --hx-on-fg: #fff; --hx-tile: #fff; }
.hx-side { display: flex; flex-direction: column; gap: 4px; padding: 10px; background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 14px; position: sticky; top: 12px; }
.hx-mod { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--hx-fg); font: inherit; font-size: var(--fs-md); font-weight: 600; text-decoration: none; cursor: pointer; text-align: start; }
.hx-mod:hover { background: var(--hx-head); }
.hx-mod.on { background: var(--hx-on-bg); color: var(--hx-on-fg); }
.hx-mi { flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
.hx-mi img { width: 28px; height: 32px; object-fit: contain; }
.hx-mod.on .hx-mi img { box-shadow: 0 0 0 2px #fff; }
.hx-main { min-width: 0; }
.hx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hx-tab { font: inherit; font-size: var(--fs-base); font-weight: 600; padding: 8px 18px; border-radius: 8px; background: var(--hx-card); color: var(--hx-fg); border: 1px solid var(--hx-line); cursor: pointer; }
.hx-tab:hover { border-color: #d48054; }
.hx-tab.on { background: var(--hx-on-bg); color: var(--hx-on-fg); border-color: var(--hx-on-bg); }
.hx-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.hx-group { margin: 0; padding: 12px; background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 12px; }
.hx-group[hidden] { display: none; }
.hx-group > header { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 12px; background: var(--hx-head); border: 1px solid var(--hx-line); border-radius: 8px; }
.hx-group h3 { flex: 1; margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.hx-group header b { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; background: var(--hx-tile); border: 1px solid var(--hx-line); font-size: var(--fs-sm); }
.hx-gi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--hx-tile); border: 1px solid var(--hx-line); }
.hx svg { width: 22px; height: 22px; fill: none; stroke: var(--hx-ic); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.hx-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 124px; padding: 16px 8px 12px; text-align: center; text-decoration: none; color: var(--hx-fg); font-size: var(--fs-base); font-weight: 600; line-height: 1.4; background: var(--hx-tile); border: 1px solid var(--hx-line); border-radius: 8px; overflow-wrap: anywhere; }
.hx-tile:hover { border-color: #d48054; background: var(--hx-head); }
.hx-ti svg { width: 40px; height: 40px; stroke-width: 1.4; }
@media (max-width: 899px) {
  .hx { grid-template-columns: minmax(0, 1fr); margin-inline: 12px; }
  .hx-side { flex-direction: row; overflow-x: auto; position: static; }
  .hx-mod { flex: none; font-size: var(--fs-base); }
  .hx-groups { grid-template-columns: minmax(0, 1fr); }
}

html.i18n-wait .page > :not(.topbar), html.i18n-wait .topbar .page-head { opacity: 0; }
.hx-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hx-dash .hx-kpis, .hx-dash > .hx-card:first-child { grid-column: 1 / -1; }
.hx-card { padding: 16px; background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: 12px; }
.hx-card h3 { margin: 0 0 12px; font-size: var(--fs-lg); }
.hx-bar { height: 12px; border-radius: 999px; background: var(--hx-tile); border: 1px solid var(--hx-line); overflow: hidden; }
.hx-bar i { display: block; height: 100%; background: #d48054; border-radius: 999px; }
.hx-barlbl { display: flex; justify-content: space-between; margin: 6px 0 12px; font-size: var(--fs-sm); color: var(--hx-muted); }
.hx-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hx-dates div { padding: 10px 12px; background: var(--hx-tile); border: 1px solid var(--hx-line); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; }
.hx-dates span, .hx-kpi span { font-size: var(--fs-sm); color: var(--hx-muted); }
.hx-dates b { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.hx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hx-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--hx-card); border: 1px solid var(--hx-line); border-inline-start: 4px solid var(--hx-line); border-radius: 10px; }
.hx-kpi b { font-size: var(--fs-2xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hx-kpi.warn { border-inline-start-color: #d48054; } .hx-kpi.ok { border-inline-start-color: #2e9e5b; } .hx-kpi.ok2 { border-inline-start-color: #4aa3a0; } .hx-kpi.bad { border-inline-start-color: #c8453a; }
.hx-trow { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 32px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: var(--fs-base); }
.hx-trow b { text-align: end; font-variant-numeric: tabular-nums; }
.hx-stack { display: flex; height: 16px; border-radius: 6px; overflow: hidden; background: var(--hx-tile); border: 1px solid var(--hx-line); gap: 2px; }
.hx-stack i, .hx-lg i { display: block; } .hx-stack i { min-width: 6px; }
.s-approved { background: #2e9e5b; } .s-approved_notes { background: #4aa3a0; } .s-owner_review { background: #d48054; } .s-submitted { background: #e3b04b; } .s-resubmit_required { background: #8e6bbf; } .s-rejected { background: #c8453a; }
.hx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: var(--fs-sm); color: var(--hx-muted); }
.hx-lg { display: inline-flex; align-items: center; gap: 6px; } .hx-lg i { width: 10px; height: 10px; border-radius: 3px; }
.hx-rec { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; margin-bottom: 6px; text-decoration: none; color: var(--hx-fg); background: var(--hx-tile); border: 1px solid var(--hx-line); border-radius: 8px; font-size: var(--fs-base); }
.hx-rec:hover { border-color: #d48054; } .hx-rec span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hx-rec em { font-style: normal; font-size: var(--fs-sm); color: var(--hx-muted); }
@media (max-width: 899px) { .hx-dash { grid-template-columns: minmax(0, 1fr); } .hx-trow { grid-template-columns: 1fr 32px; } .hx-trow .hx-stack { grid-column: 1 / -1; order: 3; } }

.ob-cols { display: flex; align-items: flex-end; gap: 12px; height: 170px; }
.ob-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ob-col i { display: block; width: 100%; max-width: 56px; min-height: 3px; border-radius: 6px 6px 0 0; background: #d48054; }
.ob-col i.late { background: #c8453a; }
.ob-col b { font-variant-numeric: tabular-nums; font-size: var(--fs-base); } .ob-col span { font-size: var(--fs-xs); color: var(--hx-muted); }

:root { --hx-card: rgba(31, 41, 61, .6); --hx-line: rgba(255,255,255,.22); --hx-head: rgba(255,255,255,.1); --hx-fg: #fff; --hx-muted: #cbd5e1; --hx-ic: #f2b390; --hx-on-bg: #d48054; --hx-on-fg: #fff; --hx-tile: rgba(255,255,255,.07); }
html[data-theme="light"] { --hx-card: #f7f7f6; --hx-line: #cfd2d8; --hx-head: #f6e7dc; --hx-fg: #1f2738; --hx-muted: #566073; --hx-ic: #3f4f69; --hx-on-bg: #3f4f69; --hx-on-fg: #fff; --hx-tile: #fff; }

html body .sidenav { padding: 10px; gap: 4px; border-radius: 14px; background: var(--hx-card); border: 1px solid var(--hx-line); box-shadow: none; backdrop-filter: none; color: var(--hx-fg); }
.sn-mod { display: flex; flex-direction: column; gap: 2px; }
html body .sidenav a.sn-mh { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--hx-muted); font-size: var(--fs-md); font-weight: 600; background: none; }
html body .sidenav a.sn-mh:hover { background: var(--hx-head); color: var(--hx-fg); }
html body .sidenav .sn-mod.open > a.sn-mh { background: var(--hx-on-bg); color: var(--hx-on-fg); }
html body .sidenav a.sn-mh::before { display: none; }
.sn-mi { flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
.sn-mi img { width: 28px; height: 32px; object-fit: contain; }
.sn-mod.open > a.sn-mh .sn-mi img { box-shadow: 0 0 0 2px #fff; }
.sn-sub { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; padding: 8px 6px 8px 6px; border: 1px solid var(--hx-line); border-radius: 10px; background: var(--hx-tile); }
html body .sidenav .sn-sub a { color: var(--hx-fg); font-size: var(--fs-base); padding: 8px 10px; }
html body .sidenav .sn-sub a svg, html body .sidenav .sn-sub .sn-t svg { color: var(--hx-ic); }
html body .sidenav .sn-sub a:hover { background: var(--hx-head); }
html body .sidenav .sn-sub a.on { background: var(--hx-head); color: var(--hx-fg); border: 1px solid #d48054; }
html body .sidenav .sn-sub a.on::before { display: none; }
html body .sidenav .sn-sub .sn-t { background: none; color: var(--hx-muted); font-size: var(--fs-xs); padding: 4px 10px 0; }
html body .sidenav .sn-g.sub > a { margin-inline-start: 0; border-inline-start: 0; border-radius: 8px; }

html:not([data-theme="light"]) body.nb .glass, html:not([data-theme="light"]) body.nb .panel, html[data-theme="light"] body.nb .glass, html[data-theme="light"] body.nb .panel {
  background: var(--hx-card) !important; border: 1px solid var(--hx-line) !important; border-radius: 12px; box-shadow: none !important; backdrop-filter: none !important; color: var(--hx-fg); }
html:not([data-theme="light"]) body.nb .row, html[data-theme="light"] body.nb .row { background: var(--hx-tile) !important; border: 1px solid var(--hx-line) !important; border-radius: 8px; box-shadow: none !important; }
html body.nb a.row:hover, html body.nb .row.clickable:hover { border-color: #d48054 !important; background: var(--hx-head) !important; }
html body.nb .ap-tabs button { font-weight: 600; border-radius: 8px; background: var(--hx-card); color: var(--hx-fg); border: 1px solid var(--hx-line); }
html body.nb .ap-tabs button:hover { border-color: #d48054; }
html body.nb .ap-tabs button.on { background: var(--hx-on-bg); color: var(--hx-on-fg); border-color: var(--hx-on-bg); }
html body.nb .info-grid div { background: var(--hx-tile) !important; border: 1px solid var(--hx-line); border-radius: 8px; }
html body.nb .glass h3, html body.nb .panel h3 { font-size: var(--fs-lg); }
html body .sidenav .sn-sub a:not(.on) { border: 1px solid transparent; background: none; box-shadow: none; }
html body .sidenav .sn-sub a:not(.on):hover { background: var(--hx-head); }
html[data-theme="light"] body .sidenav .sn-sub a { color: #1f2738; }

.ub-ghost { pointer-events: none; }
@media (min-width: 1100px) {
  .hx { grid-template-columns: var(--sb-w) minmax(0, 1fr); margin-inline: 0; }
  body.has-nav .page { padding-inline-start: calc(var(--sb-w) + var(--sb-gap)); }
}
@media (min-width: 900px) {
  body.home .page { padding-inline: 20px; }
  body.home .topbar { padding-inline: max(20px, calc(((100vw / var(--uz, 1)) - 1560px) / 2 + 16px)); }
  body.home .alert-ticker { margin-inline: 0; }
}
@media (min-width: 1568px) { body.home .page { padding-inline: 16px; } }

html body .sidenav .sn-sub { display: none; }
.sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 8px; border: 1px solid var(--hx-line); border-radius: 12px; background: var(--hx-tile); }
html body .sec-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; color: var(--hx-fg); font-size: var(--fs-base); font-weight: 600; text-decoration: none; white-space: nowrap; }
html body .sec-tabs a svg { color: var(--hx-ic); width: 18px; height: 18px; flex: none; }
html body .sec-tabs a:hover { background: var(--hx-head); }
html body .sec-tabs a.on { background: var(--hx-head); border-color: #d48054; }
html[data-theme="light"] body .sec-tabs a { color: #1f2738; }
@media (max-width: 899px) { .sec-tabs { flex-wrap: nowrap; overflow-x: auto; } }


html:not([data-theme="light"]) body.login::before { background-image: none !important; }
html:not([data-theme="light"]) body.login::after {
  --s: max(calc((100vw / var(--uz, 1)) / 1920), calc((100vh / var(--uz, 1)) / 1080));
  --cw: calc(var(--s) * 177.615);
  --ch: calc(var(--s) * 1010.77);
  --lx: calc(((100vw / var(--uz, 1)) - var(--s) * 1920) / 2 + var(--s) * 240.2);
  --rx: calc(((100vw / var(--uz, 1)) - var(--s) * 1920) / 2 + var(--s) * 1500.2);
  display: block; content: ""; position: fixed; inset: 0; height: auto; opacity: 1; z-index: -1; pointer-events: none;
  background-image: url("../img/login_col.svg"), url("../img/login_col.svg");
  background-repeat: repeat-y; background-size: var(--cw) var(--ch);
  background-position: var(--lx) 0, var(--rx) 0;
  animation: login-col-up 45s linear infinite;
}
@keyframes login-col-up {
  to { background-position: var(--lx) var(--ch), var(--rx) calc(var(--ch) * -1); }
}
@media (prefers-reduced-motion: reduce) { html:not([data-theme="light"]) body.login::after { animation: none; } }
@media print { body.login::after { display: none !important; } }

html body .hx-kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
html body .hx-kpi { gap: 0; padding: 8px 12px; min-height: 0; border-radius: 10px; justify-content: center; }
html body .hx-kpi b { font-size: var(--fs-num); line-height: 1.15; }
html body .hx-kpi span { font-size: var(--fs-xs); line-height: 1.3; }

html body .alert-ticker { position: sticky; top: 100px; z-index: 15; background-color: #2b3550; background-image: linear-gradient(rgba(190, 60, 40, .16), rgba(190, 60, 40, .16)); }
html[data-theme="light"] body .alert-ticker { background-color: #f6e7dc; background-image: none; }
@media (min-width: 900px) { html body .alert-ticker { top: 86px; } }

.hx-dash .hx-filter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.hx-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hx-line); background: var(--hx-tile); color: var(--hx-fg); font: inherit; font-size: var(--fs-base); font-weight: 600; cursor: pointer; }
.hx-filter button b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: var(--fs-xs); text-align: center; font-variant-numeric: tabular-nums; }
.hx-filter button:hover { border-color: #d48054; }
.hx-filter button.on { background: #d48054; border-color: #d48054; color: #fff; }
html[data-theme="light"] .hx-filter button b { background: rgba(31, 41, 61, .09); }
html[data-theme="light"] .hx-filter button.on b { background: rgba(255, 255, 255, .28); }
.hx-dash .hx-wide { grid-column: 1 / -1; }
html body .hx-kpis { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }

.sn-chev{margin-inline-start:auto;width:7px;height:7px;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(45deg);opacity:.6}
[dir=rtl] .sn-chev{transform:rotate(45deg)}
[dir=ltr] .sn-chev{transform:rotate(-135deg)}

@media (min-width: 900px) {
  html body .alert-ticker { position: absolute; top: 100px; margin: 0; z-index: 19; box-sizing: border-box; max-width: none; }
  html body.has-tk.nb .page { padding-top: var(--tk-pad, 140px); }
}

@media (min-width: 900px) { html body.home.has-tk #content { margin-top: 0; } }

@media (min-width: 900px) { html body.home.has-tk .hx-side { margin-top: calc(-1 * var(--tk-lift, 0px)); } }

html body .sec-tabs { padding: 0; border: 0; background: none; border-radius: 0; gap: 8px; }
html body .sec-tabs a { padding: 8px 18px; border-radius: 8px; background: var(--hx-card); border: 1px solid var(--hx-line); color: var(--hx-fg); }
html body .sec-tabs a svg { display: none; }
html body .sec-tabs a:hover { background: var(--hx-card); border-color: #d48054; }
html body .sec-tabs a.on { background: var(--hx-on-bg); color: var(--hx-on-fg); border-color: var(--hx-on-bg); }


.alert-ticker { view-transition-name: ticker; }
::view-transition-group(ticker) { animation-duration: 0s; }


.mn-edit { margin-inline-start: auto; background: none; border: 0; color: var(--hx-ic, currentColor); opacity: .45; cursor: pointer; font: inherit; font-size: var(--fs-sm); padding: 2px 6px; border-radius: 6px; }
.mn-edit:hover, .mn-edit:focus-visible { opacity: 1; background: rgba(255,255,255,.12); }
@media print { .mn-edit { display: none; } }
html body .sec-tabs { scrollbar-width: none; -ms-overflow-style: none; }
html body .sec-tabs::-webkit-scrollbar { display: none; }

@media (min-width: 761px) { html body.home #content { margin-top: 0; margin-bottom: 0; } }
/* list kit: KPI strip, table-like list, empty state */
.lk-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 12px; }
.lk-k { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.lk-k b { display: block; font-size: var(--fs-xl); line-height: 1.3; }
.lk-k span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.lk-k.warn b { color: #ffd54f; } .lk-k.ok b { color: #7cfc98; } .lk-k.bad b { color: #ef9a9a; }
.toolbar .lk-search { flex: 1 1 220px; min-width: 180px; }
.lk-t { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); background: rgba(27,36,54,.28); }
.lk-h, .lk-r { display: grid; grid-template-columns: var(--lk-cols); gap: 12px; align-items: center; padding: 11px 16px; }
.lk-h { font-size: var(--fs-sm); color: var(--muted); background: rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.16); }
.lk-r { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); font-size: var(--fs-base); }
.lk-r:last-child { border-bottom: 0; }
.lk-r:hover { background: rgba(255,255,255,.09); }
.lk-r.unread { font-weight: bold; }
.lk-c { min-width: 0; overflow-wrap: anywhere; }
.lk-c b { font-weight: bold; }
.lk-c .muted { font-size: var(--fs-sm); }
.lk-empty { text-align: center; padding: 40px 16px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.lk-empty-ic { color: var(--muted); opacity: .8; }
.lk-empty h3 { margin: 10px 0 4px; font-size: var(--fs-lg); }
.lk-empty p { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-base); }
@media (max-width: 700px) {
  .lk-h { display: none; }
  .lk-r { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .lk-r .lk-c:first-child, .lk-r .lk-c:nth-child(2) { grid-column: 1 / -1; }
  .lk-r .lk-c[data-l]:not(:first-child):not(:nth-child(2))::before { content: attr(data-l) ": "; color: var(--muted); font-size: var(--fs-xs); }
}
html[data-theme="light"] .lk-k { background: rgba(31,41,61,.054); border-color: #cfd2d8; }
html[data-theme="light"] .lk-t { background: #fff; border-color: #cfd2d8; }
html[data-theme="light"] .lk-h { background: #eef0f4; border-color: #cfd2d8; }
html[data-theme="light"] .lk-r { border-color: #e3e5ea; }
html[data-theme="light"] .lk-r:hover { background: #f3f5f9; }
html[data-theme="light"] .lk-empty { background: #fff; border-color: #c3c7cf; }
.toolbar .btn, .toolbar select { width: auto; flex: 0 0 auto; }
.toolbar .lk-search { width: auto; }
.lk-empty .btn { width: auto; min-width: 180px; }
@media (max-width: 700px) { .toolbar select { flex: 1 1 140px; } }

/* workflow stepper + next action */
.fl-next { border-inline-start: 4px solid rgba(255,255,255,.35); }
.fl-next.warn { border-inline-start-color: #ffd54f; } .fl-next.ok { border-inline-start-color: #7cfc98; } .fl-next.bad { border-inline-start-color: #ef9a9a; }
.fl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fl-title { font-size: var(--fs-lg); font-weight: bold; }
.fl-text { color: var(--muted); font-size: var(--fs-base); margin-top: 2px; }
.fl-head .btn { width: auto; min-width: 140px; }
.fl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-reason { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(239,154,154,.12); font-size: var(--fs-base); }
.fl-note { white-space: pre-wrap; margin-top: 4px; color: var(--muted); }
.fl-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.fl-s { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.fl-s::before { content: ""; position: absolute; top: 13px; inset-inline-start: 50%; width: 100%; height: 2px; background: rgba(255,255,255,.2); }
.fl-s:last-child::before { display: none; }
.fl-s.done::before { background: #7cfc98; }
.fl-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-base); font-weight: bold; background: #28344d; border: 2px solid rgba(255,255,255,.3); }
.fl-s.done .fl-dot { background: #1f6b3a; border-color: #7cfc98; color: #fff; }
.fl-s.current .fl-dot { background: #8a6a00; border-color: #ffd54f; color: #fff; box-shadow: 0 0 0 4px rgba(255,213,79,.2); }
.fl-s.blocked .fl-dot { background: #7a2a2a; border-color: #ef9a9a; color: #fff; }
.fl-s.skipped { opacity: .55; } .fl-s.skipped .fl-dot { border-style: dashed; }
/* A step that was not needed does not break the path: its line is green when the path went on */
.fl-s.skipped:has(+ .fl-s.done)::before { background: #7cfc98; }
.fl-s.skipped:has(+ .fl-s.done) { opacity: 1; } .fl-s.skipped:has(+ .fl-s.done) .fl-dot, .fl-s.skipped:has(+ .fl-s.done) .fl-l, .fl-s.skipped:has(+ .fl-s.done) .fl-sub { opacity: .55; }
.fl-s.current .fl-l, .fl-s.blocked .fl-l { color: inherit; font-weight: bold; }
.fl-sub { font-size: var(--fs-2xs); }
.fl-s.blocked .fl-sub { color: #ef9a9a; } .fl-s.current .fl-sub { color: #ffd54f; }
@media (max-width: 560px) { .fl-s { font-size: var(--fs-2xs); } .fl-dot { width: 24px; height: 24px; } .fl-s::before { top: 11px; } }
html[data-theme="light"] .fl-dot { background: #eef0f4; border-color: #b8bdc8; }
html[data-theme="light"] .fl-s.done .fl-dot { background: #1f6b3a; } html[data-theme="light"] .fl-s.current .fl-dot { background: #b58900; } html[data-theme="light"] .fl-s.blocked .fl-dot { background: #b33a3a; }
html[data-theme="light"] .fl-reason { background: #fdecec; }
@media print { .fl-head .btn { display: none; } [data-act="download"] { display: none !important; } }

/* skeleton loading */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk-wrap { display: flex; flex-direction: column; gap: 12px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.07) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.07) 75%); background-size: 200% 100%; animation: sk-shine 1.4s linear infinite; }
@keyframes sk-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-line { height: 14px; } .sk-block { height: 90px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.sk-kpi { height: 62px; border-radius: 12px; }
.sk-table { display: flex; flex-direction: column; gap: 8px; }
.sk-th { height: 34px; } .sk-tr { height: 44px; }
.sk-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.sk-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .sk-step { height: 44px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .sk-cell { height: 44px; }
html[data-theme="light"] .sk { background: linear-gradient(90deg, #e6e8ee 25%, #f3f4f8 50%, #e6e8ee 75%); background-size: 200% 100%; }
html[data-theme="light"] .sk-panel { border-color: #d5d8df; background: #fff; }

/* change order editor */
.co-line { padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.co-line .info-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.co-line .info-grid input { width: 100%; }
html[data-theme="light"] .co-line { border-color: #d5d8df; background: #fff; }
.lk-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 8px; color: var(--muted); font-size: var(--fs-sm); }
.lk-more .btn { margin: 0; width: auto; }
.proj-switch { height: 36px; max-width: 220px; padding: 0 12px; font: inherit; font-size: var(--fs-base); font-weight: 600; color: var(--ds-text, inherit); cursor: pointer; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ds-border, rgba(255, 255, 255, 0.2)); border-radius: 999px; text-overflow: ellipsis; }
.proj-switch:hover, .proj-switch:focus-visible { background: rgba(212, 128, 84, 0.14); border-color: rgba(212, 128, 84, 0.55); outline: none; }
.proj-switch option { color: #1f2738; background: #fff; }
html[data-theme="light"] .proj-switch { background: #efefef; border: 1.5px solid #c4c8cf; color: #1f2738; }
@media print { .proj-switch { display: none; } }
.lk-f { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lk-f > span { font-size: var(--fs-sm); color: var(--ds-text-2, #cbd5e1); white-space: nowrap; }
@media (max-width: 700px) { .lk-f { flex: 1 1 100%; } .lk-f select { flex: 1 1 auto; } }
.sk-wrap > .sr-only { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: flex; align-items: center; gap: 10px; color: var(--ds-text-2, #cbd5e1); font-size: var(--fs-base); font-weight: 600; }
.sk-wrap > .sr-only::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #f2a36b; border-radius: 50%; animation: sk-spin .8s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sk-wrap > .sr-only::before { animation: none; } }
html[data-theme="light"] .sk-wrap > .sr-only { color: #475569; }
html[data-theme="light"] .sk-wrap > .sr-only::before { border-color: rgba(71, 85, 105, .25); border-top-color: #c2410c; }
.hx-tile { position: relative; }
.hx-tile > .hx-n { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #d48054; color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 22px; text-align: center; }
.hx-groups { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.hx-groups .hx-group { padding: 8px; }
.hx-groups .hx-group > header { padding: 5px 10px; margin-bottom: 8px; }
.hx-groups .hx-group h3 { font-size: var(--fs-md); }
.hx-groups .hx-tiles { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hx-groups .hx-tile { min-height: 84px; padding: 10px 6px 8px; gap: 6px; font-size: var(--fs-sm); line-height: 1.3; }
.hx-groups .hx-ti svg { width: 28px; height: 28px; }
.hx-groups .hx-tile > .hx-n { top: 5px; inset-inline-start: 5px; min-width: 20px; height: 20px; line-height: 20px; font-size: var(--fs-2xs); }
@media (max-width: 900px) { .hx-groups { grid-template-columns: minmax(0, 1fr); } }
/* Delete is always red, whatever other button classes or themes apply */
.btn.danger, body.page-v2 .btn.danger, body.page-v2 .btn.ghost.danger, body.page-v2 .btn.secondary.danger,
html[data-theme="light"] .btn.danger, html[data-theme="light"] body.page-v2 .btn.danger, html[data-theme="light"] .btn.ghost.danger, html[data-theme="light"] .btn.secondary.danger { background: linear-gradient(90deg, #b71c1c, #e53935); border: 1px solid rgba(255, 160, 160, 0.5); color: #fff; }
.btn.danger:disabled { opacity: .45; cursor: default; }
.hx-groups { align-items: start; }
.hx-groups .hx-tiles { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); align-content: start; }
.hx-groups .hx-tile { min-height: 92px; }
.hx-groups .hx-tile > span:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-mod { color: var(--hx-muted); padding: 9px 10px; }
.hx-mod:hover { color: var(--hx-fg); }
.hx-mod.on { color: var(--hx-on-fg); box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.alert-ticker { padding-block: 4px; }
.hx-groups { grid-auto-rows: 4px; row-gap: 0; column-gap: 10px; grid-auto-flow: row dense; }
.hx-groups .hx-group { align-self: start; }
.hx-groups .hx-group > header { background: var(--hx-tile); border-color: #d48054; transition: transform .2s ease; }
.hx-groups .hx-group > header .hx-gi { border-color: #d48054; }
.hx-groups .hx-group > header h3 { color: #fff; }
.hx-groups .hx-group > header .hx-gi { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-color: #d48054; }
.hx-groups .hx-group > header .hx-gi svg { stroke: #d48054; }
.hx-groups .hx-group:hover > header { transform: translateY(-2px); }
html[data-theme="light"] .hx-groups .hx-group > header { background: #d48054; border-color: #d48054; }
html[data-theme="light"] .hx-groups .hx-group > header .hx-gi { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); }
html[data-theme="light"] .hx-groups .hx-group > header .hx-gi svg { stroke: #fff; }
@media (prefers-reduced-motion: reduce) { .hx-groups .hx-group > header { transition: none; } }
.hx-cols { display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.hx-col { flex: 1 0 78px; min-width: 78px; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 8px; outline: none; }
.hx-colv { height: 190px; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hx-colv b { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.hx-colbar { width: min(34px, 70%); height: calc(var(--h) * 150px); min-height: 4px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 6px 6px 0 0; overflow: hidden; transform-origin: bottom; animation: hxGrow .75s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 50ms); transition: filter .15s ease; }
.hx-colbar i { display: block; min-height: 3px; }
.hx-col:hover .hx-colbar, .hx-col:focus-visible .hx-colbar { filter: brightness(1.2); }
.hx-col > span { font-size: var(--fs-xs); line-height: 1.3; text-align: center; color: var(--hx-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-col:hover > span { color: var(--hx-fg); }
.hx-tip { position: fixed; z-index: 9999; padding: 8px 12px; border-radius: 8px; background: #1f2738; color: #fff; font-size: var(--fs-sm); line-height: 1.6; white-space: pre-line; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.hx-tip[hidden] { display: none; }
@keyframes hxGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-colbar { animation: none; } }
.hx-proj .hx-rf { margin-inline-start: auto; }
.hx-proj { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 16px; }
.hx-proj h3 { margin: 0; font-size: var(--fs-md); white-space: nowrap; }
.hx-pbar { flex: 1 1 160px; min-width: 140px; height: 8px; border-radius: 99px; background: var(--hx-tile); border: 1px solid var(--hx-line); overflow: hidden; }
.hx-pbar i { display: block; height: 100%; border-radius: 99px; background: #d48054; }
.hx-pmeta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm); color: var(--hx-muted); }
.hx-pmeta b { color: var(--hx-fg); font-weight: 700; }
.hx-r2 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hx-wknav { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; font-size: var(--fs-sm); font-weight: 400; color: var(--hx-muted); }
.hx-wknav button { font: inherit; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--hx-line); background: var(--hx-tile); color: var(--hx-fg); cursor: pointer; }
.hx-wknav button:hover { border-color: #d48054; }
.hx-wk { position: relative; overflow-x: auto; }
.hx-wkgrid { display: grid; grid-template-columns: 84px repeat(7, minmax(96px, 1fr)); min-width: 760px; }
.hx-wkh { text-align: center; font-size: var(--fs-xs); color: var(--hx-muted); padding: 2px 0 8px; display: flex; flex-direction: column; }
.hx-wkh small { font-size: var(--fs-xs); opacity: .8; } .hx-wkh.now { color: #e6905f; font-weight: 700; }
.hx-wkl { display: flex; align-items: center; font-size: var(--fs-sm); border-top: 1px solid var(--hx-line); padding-inline-end: 6px; }
.hx-wkc { min-height: 62px; border-top: 1px solid var(--hx-line); border-inline-start: 1px solid var(--hx-line); padding: 6px 4px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.hx-wkp { display: flex; align-items: center; gap: 5px; padding: 3px 7px; direction: ltr; text-overflow: ellipsis; border-radius: 99px; background: var(--hx-tile); border: 1px solid var(--hx-line); color: var(--hx-fg); text-decoration: none; font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.hx-wkp:hover { border-color: #d48054; transform: translateY(-1px); }
.hx-wkp i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hx-wkm { font-size: var(--fs-2xs); color: var(--hx-muted); text-align: center; }
.hx-wknow { position: absolute; top: 34px; bottom: 0; right: calc(84px + (100% - 84px) * var(--p)); width: 2px; background: #d48054; box-shadow: 0 0 10px #d48054; pointer-events: none; }
.hx-donut { width: 150px; height: 150px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; animation: hxSpin .9s cubic-bezier(.2, .8, .2, 1) both; }
.hx-donut > div { width: 108px; height: 108px; border-radius: 50%; background: #26324a; display: grid; place-content: center; text-align: center; }
html[data-theme="light"] .hx-donut > div { background: #f7f7f6; }
.hx-donut b { font-size: var(--fs-2xl); line-height: 1.1; } .hx-donut span { font-size: var(--fs-xs); color: var(--hx-muted); }
.hx-dl > div { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); margin: 5px 0; }
.hx-dl i { width: 10px; height: 10px; border-radius: 3px; } .hx-dl span { flex: 1; }
/* .hx svg sizes the home icons (22px): the trend chart is an svg too, so it takes the higher specificity. */
.hx svg.hx-trend { width: 100%; height: auto; display: block; stroke: none; }
.hx-tm { display: flex; justify-content: space-between; font-size: var(--fs-2xs); color: var(--hx-muted); padding: 2px 0; }
.hx-tm span { flex: 1; text-align: center; display: flex; flex-direction: column; } .hx-tm b { color: var(--hx-fg); }
@keyframes hxSpin { from { transform: rotate(-90deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-donut { animation: none; } }
@media (max-width: 899px) { .hx-r2 { grid-template-columns: minmax(0, 1fr); } }
.hx-trendc { align-self: stretch; display: flex; flex-direction: column; }
/* Full card width (not flex-grown in height), so each point sits over its month label below. */
.hx-trendc .hx-trend { flex: none; }

/* Project picker in the home dashboard project card */
.hx-proj .hx-psel { font: inherit; color: inherit; background: transparent; border: 1px solid var(--ds-border, rgba(255, 255, 255, 0.2)); border-radius: 8px; padding: 2px 8px; max-width: 100%; cursor: pointer; }
.hx-proj .hx-psel option { color: #1f2738; background: #fff; }

/* Home layout (V.237): full-width rows, indicator groups in two columns, equal card sizes */
.hx-dash { gap: 12px; }
.hx-dash > * { grid-column: 1 / -1; }
.hx-dash .hx-card { padding: 12px 14px; }
.hx-dash .hx-card h3 { margin: 0 0 10px; font-size: var(--fs-lg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hx-kg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hx-kg > .hx-card { display: flex; flex-direction: column; }
html body .hx-kg .hx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1; align-content: start; }
html body .hx-kg .hx-kpi { min-height: 64px; }
html body .hx-kg .hx-kpi b { font-size: var(--fs-xl); }
.hx-proj .hx-today { flex-direction: row; align-items: center; gap: 8px; padding: 4px 10px; margin-inline-start: auto; border-radius: 8px; }
.hx-proj .hx-today b { font-size: var(--fs-md); }
.hx-lists .hx-acttabs { margin-bottom: 8px; }
.hx-lists .hx-acttabs b { margin-inline-start: 4px; }
.hx-more { display: inline-block; margin-top: 6px; font-size: var(--fs-sm); }
.hx-dash .hx-filter { gap: 6px; margin-bottom: 10px; }
.hx-r2 { gap: 12px; }
@media (max-width: 899px) { .hx-kg { grid-template-columns: minmax(0, 1fr); } html body .hx-kg .hx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-board .pf-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-board .pf-pick, .pf-board .pf-state { width: auto; min-width: 180px; max-width: 100%; font-size: var(--fs-md); }
.pf-board .pf-print { display: none; }
.pf-board .lk-h .pf-sort { cursor: pointer; user-select: none; }
.pf-board .lk-h .pf-sort[data-sort="asc"]::after { content: " ▲"; color: var(--accent); }
.pf-board .lk-h .pf-sort[data-sort="desc"]::after { content: " ▼"; color: var(--accent); }
.pf-board .hx-rec em.late { color: var(--danger); }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body:has(.pf-board) .topbar, body:has(.pf-board) .brand, body:has(.pf-board) .page-head, body:has(.pf-board) .toolbar, body:has(.pf-board) .hx-side, body:has(.pf-board) #sidenav, body:has(.pf-board) #alertTicker { display: none !important; }
  .pf-board { display: block; zoom: .85; }
  .pf-board .pf-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--color-primary); }
  .pf-board .pf-phead img { height: 40px; }
  .pf-board .pf-print { display: grid; margin-bottom: 12px; }
  .pf-board .hx-card, .pf-board .hx-rec { break-inside: avoid; background: #fff; color: #111; border-color: #bbb; }
  .pf-board .lk-r { break-inside: avoid; }
}
body.page-v2 .pm-wrap.pm-full { max-width: none; width: 100%; margin: 0; }
body.page-v2 .pm-t.pm-g th:first-child { width: 34%; }
body.page-v2 .pm-t.pm-g td, body.page-v2 .pm-t.pm-g th { padding: 6px 10px; }
body.page-v2 .pm-t.pm-g tr.pm-sec td:first-child { font-size: 1.02em; }
.pm-plat { margin-bottom: 14px; padding-top: 6px; }
.pm-plat-g { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pm-plat-i { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pm-plat-m { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.pm-plat-s { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 24px; font-size: var(--ds-small); }
.hx-groups .hx-group > header,
html[data-theme="light"] .hx-groups .hx-group > header { padding: 2px 4px 8px; margin-bottom: 8px; background: none; border: 0; border-bottom: 2px solid var(--color-accent); border-radius: 0; }
.hx-groups .hx-group:hover > header { transform: none; }
.hx-groups .hx-group > header h3,
html[data-theme="light"] .hx-groups .hx-group > header h3 { color: var(--hx-fg); }
.hx-groups .hx-group > header .hx-gi,
html[data-theme="light"] .hx-groups .hx-group > header .hx-gi { width: 28px; height: 28px; background: none; border: 0; }
.hx-groups .hx-group > header .hx-gi svg,
html[data-theme="light"] .hx-groups .hx-group > header .hx-gi svg { stroke: var(--color-accent); }
.hx-groups .hx-group > header b { background: none; border: 0; color: var(--hx-muted); font-weight: 600; }
.hx-groups .hx-tiles { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.hx-groups .hx-tile { flex-direction: row; align-items: center; min-height: 0; padding: 7px 10px; gap: 10px; text-align: start; font-size: var(--fs-base); transition: transform .15s ease, box-shadow .15s ease, border-color .15s, background .15s; }
.hx-groups .hx-tile > span:last-child { flex: 1; -webkit-line-clamp: 2; }
.hx-groups .hx-ti svg { width: 22px; height: 22px; }
.hx-groups .hx-tile > .hx-n { position: static; order: 3; flex: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hx-groups .hx-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
}
/* Permissions screen: role list + per-role section cards */
.pv-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 16px; border-bottom: 1px solid var(--ds-border); }
.pv-tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 9px 14px; color: var(--ds-text-2); font: inherit; font-weight: 600; cursor: pointer; }
.pv-tab.on { color: var(--ds-text); border-bottom-color: var(--color-accent); }
.pv-sp { flex: 1; }
.pv-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.pv-side { position: sticky; top: 12px; padding: 10px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface-row); }
.pv-side h4 { margin: 6px 6px 8px; font-size: var(--ds-small); color: var(--ds-text-2); font-weight: 600; }
.pv-role { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; margin-bottom: 2px; border: 0; border-radius: var(--ds-radius-md); background: none; color: var(--ds-text); font: inherit; text-align: start; cursor: pointer; }
.pv-role:hover { background: var(--ds-surface-row-hover); }
.pv-role b { flex: 1; font-weight: 600; padding-inline-start: 4px; }
.pv-role .pv-c { color: var(--ds-text-2); font-size: var(--ds-small); }
.pv-role.sub { padding-block: 5px; padding-inline-start: 22px; font-size: var(--ds-small); }
.pv-role.sub b { font-weight: 500; }
.pv-dot { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--ds-surface-row-hover); color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }
.pv-role.on { background: var(--color-primary); color: #fff; box-shadow: inset -3px 0 0 var(--color-accent); }
.pv-role.on .pv-c { color: rgba(255, 255, 255, .8); }
.pv-role.on .pv-dot { background: var(--color-accent); color: #fff; }
.pv-add { display: block; padding: 8px 10px; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: start; color: var(--accent); font-weight: 600; font-size: var(--ds-secondary); text-decoration: none; }
.pv-line { height: 1px; margin: 8px 4px; background: var(--ds-border); }
.pv-note { margin: 8px 0 2px; padding: 8px 10px; border-radius: var(--ds-radius-md); background: var(--ds-surface-row-hover); color: var(--ds-text-2); font-size: var(--ds-small); line-height: 1.7; }
.pv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface-row); }
.pv-head h2 { margin: 0; font-size: var(--ds-section-title); }
.pv-head p { margin: 2px 0 0; color: var(--ds-text-2); font-size: var(--ds-secondary); }
.pv-big { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--color-accent); color: #fff; font-weight: 700; font-size: var(--fs-lg); }
.pv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pv-tools input[type=search] { flex: 1 1 220px; min-width: 0; }
.pv-chip { padding: 6px 12px; border: 1px solid var(--ds-border); border-radius: 20px; background: none; color: var(--ds-text-2); font: inherit; font-size: var(--ds-secondary); font-weight: 600; cursor: pointer; }
.pv-chip.on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pv-sec { margin-bottom: 10px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface-row); overflow: hidden; }
.pv-sh { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.pv-sec:has(.pv-tw) .pv-sh { border-bottom: 2px solid var(--color-accent); }
.pv-sh:hover { background: var(--ds-surface-row-hover); }
.pv-sh b { font-size: var(--ds-card-title); white-space: nowrap; }
.pv-sh input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.pv-mn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ds-small); color: var(--ds-text-2); white-space: nowrap; cursor: pointer; }
.pv-mn input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--color-accent); }
.pv-cnt { white-space: nowrap; }
.pv-arw { color: var(--ds-text-2); width: 12px; }
.pv-cnt { color: var(--ds-text-2); font-size: var(--ds-small); }
.pv-bar { width: 80px; height: 6px; border-radius: 4px; background: var(--ds-surface-row-hover); overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: var(--color-accent); }
.pv-tw { overflow-x: auto; }
.pv-t { width: 100%; border-collapse: collapse; font-size: var(--ds-body); }
.pv-t th { padding: 8px 10px; color: var(--ds-text-2); font-size: var(--ds-small); font-weight: 600; text-align: center; white-space: nowrap; }
.pv-t th:first-child, .pv-t td.pv-name, .pv-t .pv-subr td:first-child { text-align: start; padding-inline-start: 16px; }
.pv-t td { padding: 8px 10px; border-top: 1px solid var(--ds-border); text-align: center; }
.pv-t input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--color-accent); cursor: pointer; vertical-align: middle; }
.pv-n { margin-inline-start: 6px; color: var(--ds-text-2); font-size: var(--ds-small); }
.pv-na { color: var(--ds-text-3); }
.pv-more { margin-inline-start: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--ds-small); cursor: pointer; }
.pv-off td { opacity: .55; }
.pv-subr td { font-size: var(--ds-secondary); color: var(--ds-text-2); background: var(--ds-surface-row); }
.pv-subr td:first-child { padding-inline-start: 34px; }
.pv-t td.pv-subc { text-align: start; }
.pv-cmps td { font-weight: 700; text-align: start; background: var(--ds-surface-row-hover); }
.pv-sw { position: relative; width: 38px; height: 21px; padding: 0; border: 0; border-radius: 12px; background: #5b667a; cursor: pointer; vertical-align: middle; }
.pv-sw::after { content: ""; position: absolute; top: 2.5px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.pv-sw.on { background: #3f9a6b; }
.pv-sw.on::after { inset-inline-start: 19px; }
.pv-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface-row); backdrop-filter: blur(8px); }
.pv-save span { flex: 1; font-weight: 600; color: var(--ds-text-2); }
.pv-save.dirty { border-color: var(--color-accent); }
.pv-save.dirty span { color: var(--ds-text); }
.pv-save.dirty span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--color-accent); }
@media (max-width: 860px) {
  .pv-grid { grid-template-columns: minmax(0, 1fr); }
  .pv-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .pv-side h4, .pv-note, .pv-line { flex-basis: 100%; }
  .pv-role { width: auto; }
}
/* Root panel (root.html) and activity log (security.html) */
.rt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.rt-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--ds-radius-lg); color: var(--ds-text); text-decoration: none; }
.rt-card:hover { background: var(--ds-surface-row-hover); }
.rt-card span { color: var(--ds-text-2); font-size: var(--ds-secondary); }
.rt-card b { font-size: var(--fs-xl); font-weight: 700; }
.rt-card small { color: var(--ds-text-3); font-size: var(--ds-small); }
.rt-parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rt-parties label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); background: var(--ds-surface-row); font-weight: 600; }
.rt-lv { width: auto; min-width: 120px; padding: 6px 10px; font-weight: 600; }
.rt-lv.st-green { color: var(--ds-text); }
.rt-lv.st-yellow { box-shadow: inset 3px 0 0 var(--ds-warning); }
.rt-lv.st-red { box-shadow: inset 3px 0 0 var(--ds-danger); }
.rt-table-wrap { overflow-x: auto; }
.rt-table { width: 100%; border-collapse: collapse; font-size: var(--ds-secondary); }
.rt-table th, .rt-table td { padding: 8px 10px; border-bottom: 1px solid var(--ds-border); text-align: start; white-space: nowrap; }
.rt-table th { color: var(--ds-text-2); font-weight: 600; }
.rt-table td:first-child { white-space: normal; min-width: 160px; font-weight: 600; }
.rt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rt-filters select, .rt-filters input { width: auto; flex: 1 1 160px; }
.rt-filters .btn { flex: none; }
.rt-log { display: flex; flex-direction: column; }
.rt-log-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--ds-border); font-size: var(--ds-secondary); line-height: 1.6; }
.rt-log-t { color: var(--ds-text-2); font-size: var(--ds-small); }
.rt-log-w { text-align: end; }
@media (max-width: 760px) {
  .rt-log-row { grid-template-columns: 1fr; gap: 2px; }
  .rt-log-w { text-align: start; }
}

/* sign-in log (login-log.html) */
.ll-keep { margin-inline-start: auto; }
.ll-t .lk-r.ll-none { opacity: .6; }
.ll-t .lk-c small { font-size: var(--fs-2xs); }
/* Project information (info.html) */
.chip.bad { color: var(--ds-danger); border-color: var(--ds-danger); background: transparent; }
.pi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pi-head h3 { margin: 0; }
.pi-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pi-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pi-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--ds-radius-md); background: var(--ds-surface-row); }
.pi-grid small { display: block; font-weight: 400; font-size: var(--ds-small); }
.pi-note { margin: 10px 0 0; font-size: var(--ds-small); }
.pi-sub { display: block; font-size: var(--ds-small); }
.pi-table td { vertical-align: middle; }
.pi-table .pi-acts { flex-wrap: nowrap; }
.pi-dead { opacity: .6; }
.pi-boq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--ds-secondary); }
.pi-sched { padding: 10px 12px; margin-bottom: 10px; border-radius: var(--ds-radius-md); background: var(--ds-surface-row); border-inline-start: 3px solid var(--ds-warning); }
.pi-sched.ok { border-inline-start-color: var(--ds-success); }
.pi-note a { color: var(--ds-primary); }
.pi-table td:first-child { min-width: 110px; }
.pi-table td bdi { white-space: nowrap; }
.pi-table a:not(.btn):not(.link-btn), .pi-sched a { color: var(--ds-primary); }
.pi-head a.btn { text-decoration: none; }
.pi-table td:nth-child(3) { min-width: 160px; }
/* Control panel (admin.html) sub-section cards */
.ad-card .ad-go { display: block; padding: 7px 10px; border-radius: var(--ds-radius-md); background: var(--ds-surface-row); color: var(--ds-text); text-decoration: none; font-size: var(--ds-secondary); }
.ad-card .ad-go:hover { background: var(--ds-surface-row-hover); }
/* Weekly report (weekly-report.html) */
.wr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wr-head h2 { margin: 0 0 2px; }
.wr-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 12px; font-size: var(--ds-secondary); }
.wr-sheet h3 { margin: 14px 0 4px; }
.wr-text { margin: 0; white-space: pre-wrap; line-height: 1.7; }
.wr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.wr-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ds-radius-md); display: block; }
.wr-photos.pick label { position: relative; cursor: pointer; }
.wr-photos.pick input { position: absolute; top: 6px; inset-inline-start: 6px; width: 18px; height: 18px; }
.wr-photos.pick label:has(input:checked) img { outline: 3px solid var(--ds-primary); outline-offset: -3px; }
#wForm textarea { width: 100%; resize: vertical; }
.wr-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wr-acts .btn { width: auto; flex: 0 0 auto; margin: 0; }
@media print {
  .wr-sheet h3 { break-after: avoid; }
  .wr-photos { grid-template-columns: repeat(3, 1fr); }
  .wr-photos img { break-inside: avoid; }
}
/* What is waiting on me (waiting.html, home dashboard) */
.wt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wt-head h3 { margin: 0; }
.wt-head b { margin-inline-start: auto; font-size: var(--fs-2xl); color: var(--ds-primary); }
.wt-n { display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--ds-primary); color: #fff; font-size: var(--ds-small); text-align: center; }
.wt-list { display: flex; flex-direction: column; gap: 6px; }
.wt-row { display: grid; grid-template-columns: minmax(120px, auto) 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--ds-radius-md); background: var(--ds-surface-row); color: inherit; text-decoration: none; }
.wt-row:hover { background: var(--ds-surface-row-hover); }
.wt-row bdi { font-weight: 600; }
.wt-row em { font-style: normal; font-size: var(--ds-small); color: var(--ds-warning); white-space: nowrap; }
.wt-row.late { box-shadow: inset 3px 0 0 var(--ds-warning); }
.wt-row.late em { color: var(--ds-warning); font-weight: 700; }
.wt-row.esc { box-shadow: inset 3px 0 0 var(--ds-danger, #c9483f); }
.wt-row.esc em { color: var(--ds-danger, #c9483f); }
@media (max-width: 600px) { .wt-row { grid-template-columns: 1fr auto; } .wt-row span { grid-column: 1 / -1; order: 3; } }
.hx-wait { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; border-inline-start: 3px solid var(--ds-warning); }
.hx-wait span { font-weight: 600; }
.hx-wait b { font-size: var(--fs-num); color: var(--ds-warning); }
/* Search (search.html, home dashboard) */
.sr-q, .hx-search input { width: 100%; font: inherit; padding: 10px 14px; border-radius: var(--ds-radius-md); border: 1px solid var(--ds-border, rgba(255,255,255,.2)); background: var(--ds-surface-row); color: inherit; }
.hx-search { display: flex; align-items: center; }
.hx-waitl h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hx-waitl h3 a { color: inherit; text-decoration: none; }
.hx-waitl h3 b { font-size: var(--fs-num); color: var(--ds-warning); }
.hx-waitl em.late { color: var(--ds-danger, #c9483f); font-weight: 700; }
.hx-side2 { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hx-today { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.hx-today span { font-weight: 600; }
.hx-today b { font-size: var(--fs-num); }
.hx-today b.ok { color: var(--ds-success); }
.hx-today b.warn { color: var(--ds-warning); }
.hx-today em { font-style: normal; font-size: var(--ds-small); color: var(--ds-text-2); }
.hx-sum a.hx-kpi { text-decoration: none; color: inherit; }
.hx-act { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hx-act > div[data-actp] > .hx-card { margin: 0; }
.hx-acttabs { display: flex; gap: 6px; }
.hx-acttabs button { padding: 5px 12px; border: 1px solid var(--ds-border); border-radius: 999px; background: none; color: var(--ds-text-2); font: inherit; font-size: var(--ds-small); cursor: pointer; }
.hx-acttabs button.on { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
/* Monthly owner report (monthly-report.html) */
.mr-head { text-align: center; margin: 4px 0 12px; }
.mr-head h2 { margin: 0; }
.mr-head p { margin: 4px 0 0; color: var(--ds-text-muted); }
.mr-sec h3 { margin: 0 0 10px; }
.mr-sec .table-wrap { margin-top: 10px; }
@media print { .mr-sec { break-inside: avoid; box-shadow: none; } }
/* Reports screen: missing report days and project days off. */
.td-miss { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.td-miss .chip { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.18)); color: var(--accent); text-decoration: none; font-size: var(--fs-xs); }
.td-row { flex-wrap: wrap; }
.pj-wk { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 8px; }
.pj-wk label { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }

/* Official letter header, printed only */
@media print {
  .print-only.ltr-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid #333; }
  .ltr-phead img { height: 48px; }
  body:has(.ltr-phead) .topbar, body:has(.ltr-phead) .brand, body:has(.ltr-phead) #alertTicker { display: none !important; }
}
.ob-stats-plain > .hx-card {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.ob-stats-plain > .hx-card h3 { margin-bottom: 10px; }


/* Dashboard KPI rotator */
.hx-rotator-host {
  grid-column: 1 / -1;
  min-width: 0;
}
.hx-rotator {
  position: relative;
  min-width: 0;
  padding-inline-end: 0;
  perspective: 1100px;
}
.hx-rotator-track {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding-inline-end: 0;
  border-radius: 12px;
}
.hx-rotator-slide {
  grid-area: 1 / 1;
  min-width: 0;
  padding-inline-end: 46px !important;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 42px, 0) rotateX(-18deg) scale(.97);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .45s ease, visibility 0s linear .7s;
  will-change: transform, opacity;
}
.hx-rotator-slide[data-rotator-pos="active"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  z-index: 3;
  transition-delay: 0s;
}
.hx-rotator-slide[data-rotator-pos="next"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 42px, 0) rotateX(-18deg) scale(.97);
  z-index: 2;
}
.hx-rotator-slide[data-rotator-pos="prev"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -42px, 0) rotateX(18deg) scale(.97);
  z-index: 2;
}
.hx-rotator-slide[data-rotator-pos="hidden"] {
  transform: translate3d(0, 0, -80px) rotateX(0) scale(.94);
  z-index: 1;
}
.hx-rotator-slide h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hx-rotator .hx-kpis {
  margin-inline-end: 11px;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  align-items: stretch;
  gap: 7px;
}
.hx-rotator .hx-kpi {
  min-width: 0;
  min-height: 56px;
  justify-content: center;
  padding: 7px 8px;
  border-inline-start-width: 3px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hx-line) 55%, transparent);
}
.hx-rotator .hx-kpi b { font-size: var(--fs-num); line-height: 1.1; }
.hx-rotator .hx-kpi span { font-size: var(--fs-sm); line-height: 1.2; }
.hx-rotator .hx-kpi.neutral { border-inline-start-color: #71809a; }
.hx-rotator .hx-kpi.ok { border-inline-start-color: #2e9e5b; }
.hx-rotator .hx-kpi.warn { border-inline-start-color: #d48054; }
.hx-rotator .hx-kpi.bad { border-inline-start-color: #c8453a; }
.hx-rotator .hx-kpi.ok2 { border-inline-start-color: #4aa3a0; }
.hx-rotator-slide.hx-lists { min-height: 100%; }
.hx-rotator-controls {
  position: absolute;
  inset-inline-end: 7px;
  top: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(-50%);
}
.hx-rotator-dots { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hx-rotator-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hx-line);
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.hx-rotator-dots button.on { width: 7px; height: 20px; border-radius: 999px; background: var(--color-accent, #d48054); }
.hx-rotator-dots button:focus-visible { outline: 2px solid var(--color-accent, #d48054); outline-offset: 3px; }
@media (max-width: 899px) {
  .hx-rotator .hx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .hx-rotator-slide { padding-inline-end: 34px; }
  .hx-rotator-slide { transform: translate3d(0, 28px, 0) rotateX(-12deg) scale(.98); }
  .hx-rotator-slide[data-rotator-pos="prev"] { transform: translate3d(0, -28px, 0) rotateX(12deg) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-rotator-slide, .hx-rotator-slide[data-rotator-pos="active"], .hx-rotator-slide[data-rotator-pos="next"], .hx-rotator-slide[data-rotator-pos="prev"] { transition: none; transform: none; }
  .hx-rotator-dots button { transition: none; }
}

/* Home dashboard: compact activity calendar and wider statistics card. */
.hx-dash .hx-r2 {
  grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 899px) {
  .hx-dash .hx-r2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* Keep the weekly calendar compact without horizontal scrolling. */
.hx-dash .hx-wk {
  overflow-x: hidden;
}
.hx-dash .hx-wkgrid {
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  min-width: 0;
}
.hx-dash .hx-wkp {
  min-width: 0;
  padding-inline: 4px;
  font-size: var(--fs-xs);
}

/* Keep the calendar views inside one aligned parent card. */
.hx-calendar-card {
  min-width: 0;
}
.hx-calendar-card .hx-act {
  min-width: 0;
}
.hx-calendar-card .hx-act > div[data-actp] > .hx-card {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.hx-stats-host {
  min-width: 0;
}
.hx-stats-rotator {
  height: 100%;
}
.hx-stats-rotator .hx-rotator-track {
  height: 100%;
}
.hx-stats-rotator .hx-stat-slide {
  min-height: 100%;
}

.hx-calendar-host {
  min-width: 0;
  height: 100%;
}
.hx-calendar-rotator,
.hx-calendar-rotator .hx-rotator-track {
  height: 100%;
}
.hx-calendar-rotator .hx-calendar-slide {
  min-height: 100%;
}

/* Keep every calendar view in the same rotating grid layer. */
.hx-calendar-rotator .hx-rotator-track {
  display: grid;
  position: relative;
  overflow: hidden;
}
.hx-calendar-rotator .hx-calendar-slide {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
}

/* Compact dashboard cards to reduce the home page height. */
.hx-calendar-card {
  padding-block: 8px;
}
.hx-calendar-rotator .hx-calendar-slide,
.hx-stats-rotator .hx-stat-slide {
  padding-block: 8px;
}
.hx-calendar-rotator .hx-calendar-slide h3,
.hx-stats-rotator .hx-stat-slide h3 {
  margin-bottom: 6px;
}
.hx-calendar-rotator .hx-wkgrid {
  grid-template-columns: 58px repeat(7, minmax(0, 1fr));
}
.hx-calendar-rotator .hx-wkh {
  padding-block: 1px 5px;
  font-size: var(--fs-xs);
}
.hx-calendar-rotator .hx-wkc {
  min-height: 46px;
  padding-block: 3px;
  gap: 2px;
}
.hx-calendar-rotator .hx-wkp {
  padding-block: 2px;
  font-size: var(--fs-xs);
}
.hx-stats-rotator .hx-donut {
  width: 112px;
  height: 112px;
  margin-block: 2px 8px;
}
.hx-stats-rotator .hx-donut > div {
  width: 78px;
  height: 78px;
}
.hx-stats-rotator .hx-donut b {
  font-size: var(--fs-2xl);
}
.hx-stats-rotator .hx-dl > div {
  margin-block: 2px;
  font-size: var(--fs-sm);
}

/* Home page footer spacing */
@media (min-width: 900px) {
  body.nb.home .page {
    min-height: 0;
    padding-bottom: 54px;
  }
  body.nb.home .page::after {
    bottom: 24px;
    padding-top: 8px;
  }
  body.nb.home .nb-dev {
    bottom: 3px;
  }
  body.nb.home .hx-dash {
    gap: 8px;
  }
  body.nb.home .hx-dash .hx-r2 {
    gap: 10px;
  }
}

/* Center the home page ownership lines within the page width. */
@media (min-width: 900px) {
  body.nb.home .page::after,
  body.nb.home .nb-dev {
    left: 50%;
    right: auto;
    width: 100%;
    transform: translateX(-50%);
    text-align: center;
  }
}

/* Enlarge the statistics donut by 1.2x. */
.hx-stats-rotator .hx-donut {
  width: 134px;
  height: 134px;
}
.hx-stats-rotator .hx-donut > div {
  width: 94px;
  height: 94px;
}
.hx-stats-rotator .hx-donut b {
  font-size: var(--fs-2xl);
}

/* Keep the home dashboard within the viewport without horizontal clipping. */
body.nb.home {
  overflow-x: hidden;
}
body.nb.home #content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
}

/* Recent requests: fixed-height list under the calendar, rows scroll upward. */
.hx-vp { overflow: hidden; height: 50px; }
.hx-vp .hx-rec { height: 44px; margin: 0 0 6px; box-sizing: border-box; }
.hx-vp .hx-track { animation: hx-rows-up calc(var(--n) * 2.4s) linear infinite; }
.hx-vp:hover .hx-track, .hx-vp:focus-within .hx-track { animation-play-state: paused; }
@keyframes hx-rows-up { from { transform: translateY(0); } to { transform: translateY(calc(var(--n) * -50px)); } }
@media (prefers-reduced-motion: reduce) {
  .hx-vp { overflow-y: auto; }
  .hx-vp .hx-track { animation: none; }
}

/* Type chart fits the wider calendar card without a scrollbar. */
.hx-calendar-rotator .hx-cols { gap: 6px; overflow-x: hidden; }
.hx-calendar-rotator .hx-col { flex: 1 1 0; min-width: 0; }

/* Recent requests card: tabs on the inline-start side, list beside them. */
.hx-dash .hx-lists { display: flex; align-items: center; gap: 12px; }
.hx-lists .hx-acttabs { flex: none; flex-direction: column; margin: 0; }
.hx-lists [data-ltp] { flex: 1 1 0; min-width: 0; }
.hx-lists [data-ltp][hidden] { display: none; }

/* Compact KPI (reports) cards: lower height. */
html body .hx-dash .hx-rotator-slide { padding-top: 8px; padding-bottom: 8px; }
html body .hx-dash .hx-rotator-slide h3 { margin-bottom: 6px; }
html body .hx-rotator .hx-kpi,
html body .hx-kg .hx-kpi { min-height: 40px; padding: 4px 10px; }
html body .hx-rotator .hx-kpis { gap: 6px; }

/* Status chips in the recent requests list (same colors as the donut). */
.hx-rec em.hx-st { --c: #8a94a8; padding: 2px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.hx-st-approved { --c: #2e9e5b !important; }
.hx-st-approved_notes { --c: #4aa3a0 !important; }
.hx-st-owner_review { --c: #d48054 !important; }
.hx-st-submitted { --c: #e3b04b !important; }
.hx-st-resubmit_required { --c: #8a63c9 !important; }
.hx-st-rejected { --c: #c9483f !important; }

/* Recent requests: font x1.2. */
.hx-lists .hx-rec { font-size: calc(var(--fs-base) * 0.95); }
.hx-lists .hx-rec em { font-size: calc(var(--fs-sm) * 1.2); }
.hx-lists .hx-acttabs button { font-size: calc(var(--fs-sm) * 1.2); }

/* Project strip: neutral chips, small label over a larger value; name centered. */
.hx-proj { align-items: center; }
.hx-proj h3 { align-self: center; display: flex; align-items: center; }
.hx-pmeta { gap: 8px; align-items: center; }
.hx-chip { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 14px; border-radius: 10px; background: var(--hx-tile); border: 1px solid var(--hx-line); line-height: 1.25; }
.hx-chip small { font-size: var(--fs-xs); color: var(--hx-muted); }
.hx-pmeta .hx-chip b { font-size: var(--fs-lg); color: var(--hx-fg); font-variant-numeric: tabular-nums; }
html body .hx-dash .hx-proj h3 { margin: 0; }

/* Calendar cells: one request chip with the +N counter beside it. */
.hx-calendar-rotator .hx-wkc { flex-direction: row; align-items: center; gap: 4px; min-height: 36px; }
.hx-calendar-rotator .hx-wkc .hx-wkp { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; }
.hx-calendar-rotator .hx-wkc .hx-wkm { flex: none; }

/* Statistics card: status list in two columns to lower the card height (donut unchanged). */
html body .hx-stats-rotator .hx-stat-slide .hx-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
html body .hx-stats-rotator .hx-stat-slide .hx-dl > div { margin-block: 2px; }

/* Types chart: bars start right under the title (no empty area above), original bar heights. */
.hx-calendar-rotator .hx-calendar-slide:has(.hx-cols) { display: flex; flex-direction: column; justify-content: flex-start; }
/* Statistics list: no wrapping of status names. */
html body .hx-stats-rotator .hx-stat-slide .hx-dl > div { white-space: nowrap; }
html body .hx-stats-rotator .hx-stat-slide .hx-dl > div span { overflow: hidden; text-overflow: ellipsis; }
html body .hx-stats-rotator .hx-stat-slide .hx-dl { gap: 0 10px; }

/* Lower the cards row: shorter bars, tighter padding (donut size unchanged). */
.hx-calendar-rotator .hx-colv { height: 150px; }
.hx-calendar-rotator .hx-colbar { height: calc(var(--h) * 110px); }
.hx-calendar-rotator .hx-cols { padding-block: 0 4px; }
.hx-calendar-rotator .hx-legend { margin-top: 4px; }
html body .hx-stats-rotator .hx-stat-slide .hx-donut { margin-block: 0 2px; }
html body .hx-stats-rotator .hx-stat-slide > h3 { margin-bottom: 2px; }
html body .hx-stats-rotator .hx-stat-slide .hx-dl > div { margin-block: 1px; }
/* Ownership footer pinned to the page bottom on every page:
   short pages fill the viewport so it sits at the window bottom,
   long pages keep it right after the content. */
@media screen {
  body.nb .page,
  body.nb.home .page,
  body.home-dense .page {
    min-height: calc(100vh / var(--uz, 1));
    min-height: calc(100dvh / var(--uz, 1));
    padding-bottom: calc(var(--foot-h) + var(--foot-gap));
  }
  body.nb .nb-dev,
  body.nb.home .nb-dev {
    position: absolute;
    bottom: 0;
    margin: 0;
    padding-bottom: calc(var(--foot-pad) + env(safe-area-inset-bottom));
  }
  .login-foot { bottom: var(--foot-pad); }
}
@media screen and (max-width: 899px) {
  body.nb .nb-dev { inset-inline: 0; }
}

/* Page panels in a responsive grid: two per row when space allows, one on narrow screens.
   .span-all keeps a long card (wide tables) on a full row. */
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pg-gap); margin-bottom: var(--pg-gap); }
.panel-grid > .panel { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.panel-grid > .span-all { grid-column: 1 / -1; }
.panel-grid > .panel > .panel-foot { margin-top: auto; padding-top: 8px; }
@media (max-width: 899px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } }
/* Claims setup: inline settings fields, deductions and additions columns */
.cs-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.cs-fields > div { flex: 0 1 200px; }
.cs-fields .cs-check { display: flex; flex-direction: row; gap: 8px; align-items: center; min-height: 40px; margin: 0; }
.cs-fields .cs-check input { width: 18px; height: 18px; flex: none; }
.cs-deds { margin-bottom: 0; }
.cs-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cs-col h4 { margin: 0; font-size: var(--fs-md); }
.cs-col > .btn { align-self: flex-start; }
.cs-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: var(--pg-gap) 0 8px; }
.cs-col .row { align-items: center; }
.cs-col .row > select { width: auto; flex: 1 1 120px; }
.cs-col .row > .btn { flex: none; }
/* BOQ main items (heading rows): description only, spans the value columns */
.table tr.boq-h td { background: var(--ds-surface-row-hover); font-weight: 600; text-align: start; }
.table tr.boq-h textarea { width: 100%; min-width: 220px; resize: vertical; }
.boq-h-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; line-height: 1.6; }
/* User signature: editor dialog and print signature table */
.sig-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 1px dashed var(--card-border, #9fb0c8); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sig-tools { display: flex; gap: 8px; margin-top: 8px; }
.sig-tools label.btn { cursor: pointer; }
.sig-t { width: 100%; border-collapse: collapse; margin-top: 10px; break-inside: avoid; }
.sig-t td { width: 33%; border: 1px solid #999; padding: 6px; text-align: center; vertical-align: top; }
.sig-t.one { width: 40%; margin-inline-start: auto; } .sig-t.one td { width: auto; }
.sig-img { display: block; height: 56px; max-width: 100%; margin: 4px auto; object-fit: contain; }
.sig-gap { height: 56px; }
.sig-s { color: #555; font-size: var(--fs-2xs); }
@media print {
  .sig-sec.print-only { text-align: start; break-inside: avoid; }
  .sig-sec h3 { margin: 12px 0 4px; font-size: var(--fs-md); }
  body:has(.sig-sec) .fl-next, body:has(.sig-sec) #act { display: none !important; }
}
/* documents management (docs.html) */
.dm-t .lk-r { padding-block: 7px; }
.dm-t .lk-r.dm-on { background: rgba(212, 128, 84, .12); }
.dm-t input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--color-accent, #d48054); }
.dm-act { display: inline-flex; gap: 4px; justify-content: flex-end; }
.dm-act .btn { width: auto; min-width: 0; padding-inline: 8px; }
.dm-bar input[type="date"] { width: auto; }
.dm-more { text-align: center; margin-block: 12px; }
.dm-more .btn { width: auto; }
@media (max-width: 700px) {
  .dm-t .lk-r .lk-c:first-child { grid-column: auto; }
  .dm-act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media print {
  body:has(.dm-t) #sidenav, body:has(.dm-t) .topbar, body:has(.dm-t) .dm-bar, body:has(.dm-t) #tabs, body:has(.dm-t) .dm-act,
  body:has(.dm-t) .dm-more, body:has(.dm-t) .dm-t input { display: none !important; }
  .dm-t { font-size: 10px; border-color: #999; background: #fff; color: #000; }
  .dm-t .lk-r { break-inside: avoid; }
}
/* master document register (doc-register.html) */
.dr-t .lk-r { padding-block: 7px; }
.dr-t .lk-c a, .dr-hist a { color: inherit; }
.dr-h .chip { justify-self: start; }
.dr-t .btn.small { width: auto; min-width: 0; padding-inline: 10px; }
.dr-hist { grid-column: 1 / -1; display: grid; gap: 4px; margin-block-start: 6px; padding: 6px 10px; border-inline-start: 3px solid var(--color-accent, #d48054); background: rgba(127, 127, 127, .06); border-radius: 8px; }
.dr-h { display: grid; grid-template-columns: .7fr 1fr 1.4fr 1.6fr; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.dr-bar select { width: auto; }
@media (max-width: 700px) {
  .dr-h { grid-template-columns: 1fr 1fr; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .print-only.dr-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #333; }
  .dr-phead img { height: 44px; }
  body:has(.dr-t) #sidenav, body:has(.dr-t) .topbar, body:has(.dr-t) .brand, body:has(.dr-t) .dr-bar, body:has(.dr-t) #alertTicker, body:has(.dr-t) .page-head,
  body:has(.dr-t) [data-hist] { display: none !important; }
  .dr-t { font-size: 9px; border-color: #999; background: #fff; color: #000; }
  .dr-t .lk-r { break-inside: avoid; }
  .dr-hist[hidden] { display: grid !important; }
}
/* overdue report (overdue.html) */
.od-sec { margin-block-end: 14px; }
.od-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.od-bar select, .od-bar .chk-inline input { width: auto; }
.od-bar .chk-inline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body:has(.od-t) #sidenav, body:has(.od-t) .topbar, body:has(.od-t) .brand, body:has(.od-t) .od-bar, body:has(.od-t) #alertTicker, body:has(.od-t) .page-head { display: none !important; }
  .od-t { font-size: 9px; border-color: #999; background: #fff; color: #000; }
  .od-t .lk-r { break-inside: avoid; }
  .od-sec { break-inside: avoid-page; }
}
/* distribution matrix (distribution.html) */
.dm-wrap { overflow-x: auto; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md, 10px); }
.dm-t { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dm-t th, .dm-t td { padding: 6px 8px; border-bottom: 1px solid var(--ds-border); text-align: center; }
.dm-t td:first-child, .dm-t thead tr:first-child th:first-child { text-align: start; min-width: 170px; }
.dm-t thead th { font-size: var(--fs-xs); }
.dm-t thead th { font-weight: 600; background: rgba(127, 127, 127, .07); }
.dm-t tr.dm-g td { font-weight: 700; background: rgba(127, 127, 127, .1); text-align: start; }
.dm-c { width: auto; min-width: 64px; white-space: nowrap; padding: 2px 8px; border: 1px solid var(--ds-border); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.dm-c.a { background: rgba(102, 187, 106, .2); border-color: rgba(102, 187, 106, .6); color: var(--ds-text); }
.dm-c.d { background: rgba(255, 193, 7, .18); border-color: rgba(255, 193, 7, .6); color: var(--ds-text); }
.dm-hint { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 8px; }
.dm-bar .btn.small { width: auto; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .print-only.dr-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #333; }
  .dr-phead img { height: 44px; }
  body:has(.dm-t) #sidenav, body:has(.dm-t) .topbar, body:has(.dm-t) .brand, body:has(.dm-t) .dm-bar, body:has(.dm-t) #alertTicker, body:has(.dm-t) .page-head { display: none !important; }
  .dm-wrap { overflow: visible; border: 0; }
  .dm-t { font-size: 8px; color: #000; }
  .dm-t th, .dm-t td { padding: 3px 4px; border: 1px solid #999; }
}
/* drawing markup (markup.html) */
.mk-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 8px; }
.mk-bar { flex-wrap: wrap; gap: 6px; }
.mk-bar select, .mk-bar .btn.small { width: auto; }
.mk-bar .chk-inline { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mk-bar .chk-inline input { width: auto; flex: 0 0 auto; min-width: 0; }
.mk-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.mk-tools .btn[aria-pressed="true"] { background: var(--color-accent, #d48054); color: #fff; border-color: transparent; }
.mk-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.mk-view { overflow: auto; max-height: calc(100vh - 220px); display: grid; gap: 12px; justify-items: center; padding: 2px; direction: ltr; }
.mk-page { position: relative; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.mk-page canvas { display: block; width: 100%; height: 100%; }
.mk-page svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mk-page.draw svg { pointer-events: auto; cursor: crosshair; touch-action: none; }
.mk-pins { position: absolute; inset: 0; pointer-events: none; }
.mk-pin { position: absolute; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; border: 2px solid #fff; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; cursor: pointer; pointer-events: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.mk-page.draw .mk-pin { pointer-events: none; }
.mk-pin.done { opacity: .5; }
.mk-pin.flash { animation: mk-flash .5s 3; }
@keyframes mk-flash { 50% { transform: translate(-50%, -50%) scale(1.6); } }
.mk-pno { position: absolute; inset-block-end: 4px; inset-inline-end: 6px; font-size: 10px; color: #555; background: rgba(255, 255, 255, .8); padding: 0 4px; border-radius: 4px; }
.mk-side { display: grid; gap: 8px; max-height: calc(100vh - 220px); overflow: auto; }
.mk-side h3 { margin: 0; font-size: var(--fs-md); }
.mk-item { padding: 8px 10px; border: 1px solid var(--ds-border); border-inline-start: 4px solid var(--c); border-radius: var(--ds-radius-sm, 8px); background: var(--ds-surface-row); cursor: pointer; font-size: var(--fs-sm); }
.mk-item.on { outline: 2px solid var(--c); }
.mk-item.done { opacity: .6; }
.mk-item p { margin: 4px 0; white-space: pre-wrap; }
.mk-ih { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mk-no { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11px; }
.mk-ia { display: flex; gap: 6px; }
#mkT { width: 100%; }
@media (max-width: 900px) {
  .mk-main { grid-template-columns: 1fr; }
  .mk-view, .mk-side { max-height: none; }
}
@media print {
  @page { margin: 8mm; }
  .print-only.dr-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #333; }
  .dr-phead img { height: 40px; }
  body:has(.mk-main) #sidenav, body:has(.mk-main) .topbar, body:has(.mk-main) .brand, body:has(.mk-main) .mk-bar, body:has(.mk-main) #alertTicker, body:has(.mk-main) .page-head, body:has(.mk-main) .mk-info .link-btn, .mk-ia { display: none !important; }
  .mk-main { display: block; }
  .mk-view, .mk-side { max-height: none; overflow: visible; }
  .mk-page { break-inside: avoid; box-shadow: none; border: 1px solid #999; max-width: 100%; }
  .mk-side { break-before: page; color: #000; }
  .mk-item { background: #fff; color: #000; break-inside: avoid; }
}
/* bulk drawing upload dialog (bulk-upload.js) */
.modal.bu-wide { width: min(1100px, 96vw); max-width: none; }
.bu-t { font-size: var(--fs-sm); }
.bu-t td { padding: 4px 6px; vertical-align: middle; }
.bu-t input:not([type="checkbox"]), .bu-t select { width: 100%; min-width: 70px; padding: 4px 6px; font-size: var(--fs-sm); }
.bu-t input[type="checkbox"] { width: auto; }
.bu-t .bu-f { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bu-t .bu-f small { display: block; white-space: normal; }
.bu-t tr.bad { opacity: .7; }
/* platform search (search.html) */
.sr-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sr-bar .sr-q { flex: 1 1 260px; }
.sr-bar select { width: auto; flex: 0 0 auto; }
.sr-n { margin: 4px 2px 8px; font-size: var(--ds-small); }
.sr-row span { display: grid; gap: 2px; min-width: 0; }
.sr-row small { font-size: var(--ds-small); overflow: hidden; text-overflow: ellipsis; }
.sr-snip { color: var(--ds-text-2); }
.sr-row em { color: var(--muted); }
.sr-row mark { background: rgba(255, 213, 79, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
/* directory page (V340) */
.dir-g[open] > summary { list-style: none; }
.dir-g summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 0; }

/* V366 top bar: clickable logo, open pages as tabs (× closes), no page title (the section strip names the page). */
.tb-logo { display: none; }
.tb-logo a { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: 0; }
.brand > a { display: inline-block; }
@media screen { body.nb:not(.home) main > .page-head { display: none !important; } }
.tb-tabs[hidden] { display: none !important; }
.tb-tabs { position: relative; display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.tb-more { display: none; }
.tb-list { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tb-list::-webkit-scrollbar { display: none; }
.tb-tab { display: inline-flex; align-items: center; flex: none; max-width: 220px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.tb-tab:hover { border-color: #d48054; }
.topbar .tb-tab a { display: block; min-width: 0; padding: 7px 4px; padding-inline-start: 12px; color: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-x { flex: none; width: 24px; height: 24px; margin-inline-end: 4px; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: .65; }
.tb-x:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.tb-tab.on { background: var(--hx-on-bg, #d48054); border-color: var(--hx-on-bg, #d48054); color: var(--hx-on-fg, #fff); }
.tb-tab.on .tb-x:hover { background: rgba(0, 0, 0, .15); }
html[data-theme="light"] .tb-tab { border-color: #cfd2d8; background: #f7f7f6; color: #1f2738; }
html[data-theme="light"] .tb-tab.on { background: var(--hx-on-bg, #d48054); border-color: var(--hx-on-bg, #d48054); color: var(--hx-on-fg, #fff); }
html[data-theme="light"] .tb-x:hover { background: rgba(31, 41, 61, .1); }
@media (max-width: 899px) {
  .tb-tabs { flex: 0 1 auto; }
  .tb-more { display: inline-flex; align-items: center; gap: 6px; max-width: 46vw; padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07); color: inherit; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
  .tb-more span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-more b { padding: 0 7px; border-radius: 999px; background: #d48054; color: #fff; font-size: var(--fs-xs); }
  .tb-list { display: none; }
  .tb-tabs.open .tb-list { display: flex; flex-direction: column; align-items: stretch; position: fixed; inset-inline: 12px; z-index: 60; padding: 6px; border-radius: 12px; background: #1f2738; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 26px rgba(0, 0, 0, .38); overflow: visible; }
  .tb-tabs.open .tb-tab { max-width: none; justify-content: space-between; }
  html[data-theme="light"] .tb-more { background: #f7f7f6; border-color: #cfd2d8; color: #1f2738; }
  html[data-theme="light"] .tb-tabs.open .tb-list { background: #fff; border-color: #cfd2d8; box-shadow: 0 6px 18px rgba(31, 41, 61, .2); }
}

/* V366 rule: the section strip lists screens; tabs inside a page are filters (small chips), never a second strip. */
html body.nb .ap-tabs { gap: 6px; }
html body.nb .ap-tabs button { padding: 4px 12px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; background: transparent; }
html body.nb .ap-tabs button.on { background: rgba(212, 128, 84, .16); color: inherit; border-color: #d48054; }
html[data-theme="light"] body.nb .ap-tabs button.on { background: #fbeee5; color: #1f2738; border-color: #d48054; }

/* V367 directory: approved communication plan pinned on top; locked until one is approved. */
.dir-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; border-inline-start: 4px solid #4caf50; }
.dir-plan b { margin-inline-end: 6px; }
.dir-lock { text-align: center; padding: 28px 20px; }
.dir-lock h3 { margin: 0 0 8px; }
.dir-lock p { margin: 6px auto; max-width: 620px; }
.dir-lock .btn { margin-top: 10px; }

/* V368 «التكويد» (coding.html): approval routes with ordered stages. */
.cd-route { margin-bottom: 12px; }
.cd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cd-head .r-name { flex: 1 1 220px; max-width: 360px; font-weight: 700; }
.cd-st { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.cd-st label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 0; font-size: var(--fs-sm); }
.cd-st label span { color: var(--muted); font-size: var(--fs-xs); }
.cd-st select, .cd-st input { width: 100%; }
.cd-n { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: #d48054; color: #fff; font-weight: 700; font-size: var(--fs-sm); align-self: center; }
.cd-first { align-items: center; }
.cd-first .cd-n { background: rgba(255, 255, 255, .2); }
.cd-acts { display: flex; gap: 4px; align-self: center; }
.cd-acts .link-btn { padding: 4px 8px; }
.cd-route > .btn { margin-top: 8px; }
.cd-save { position: sticky; bottom: 10px; display: flex; justify-content: flex-end; margin-top: 12px; }
html[data-theme="light"] .cd-st { border-top-color: #e2e4e8; }
.cd-save .btn { width: auto; min-width: 180px; }
.cd-st.cd-bad { background: rgba(201, 72, 63, .12); border-radius: 8px; padding-inline: 6px; }
.cd-warn { flex-basis: 100%; color: #ff8a80; font-size: var(--fs-sm); font-weight: 600; }
html[data-theme="light"] .cd-warn { color: #b3261e; }
.cd-alert { border-inline-start: 4px solid #c9483f; margin-bottom: 12px; }
.cd-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pj-route { white-space: nowrap; }
.cd-st label.cd-days { flex: 0 1 110px; }
/* V370 «المهل الزمنية» (deadlines.html). */
.dl-table input { width: 90px; text-align: center; }
.dl-gen { display: flex; gap: 16px; flex-wrap: wrap; }
.dl-gen label { display: flex; flex-direction: column; gap: 4px; }
.dl-gen input { width: 110px; text-align: center; }
.cd-save { gap: 8px; }
/* V371 project settings: the project being edited, and copying settings from another project. */
.pj-cur { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-opt { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 500; }
.cs-opt input { width: auto; }
.us-pl { text-decoration: none; }

/* V372 platform rule: more than 10 rows → pages of 10 (nav.js). Printing shows every row. */
.pg-off { display: none !important; }
@media print { .pg-off { display: revert !important; } }
.pg-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; font-size: var(--fs-sm); }
.pg-info { color: var(--muted); }
.pg-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-btns button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; cursor: pointer; }
.pg-btns button:hover:not(:disabled) { border-color: #d48054; }
.pg-btns button.on { background: var(--hx-on-bg, #d48054); border-color: var(--hx-on-bg, #d48054); color: var(--hx-on-fg, #fff); font-weight: 700; }
.pg-btns button:disabled { opacity: .4; cursor: default; }
.pg-gap { padding: 0 4px; color: var(--muted); }
html[data-theme="light"] .pg-btns button { border-color: #cfd2d8; background: #f7f7f6; color: #1f2738; }
html[data-theme="light"] .pg-btns button.on { background: var(--hx-on-bg, #d48054); border-color: var(--hx-on-bg, #d48054); color: var(--hx-on-fg, #fff); }

/* V373 license line under the top bar (license.js): demo edition, license ending or ended. */
.lic-note { margin: 0 0 10px; padding: 8px 14px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; text-align: center; border: 1px solid; }
.lic-note.demo { background: rgba(74, 163, 160, .14); border-color: rgba(74, 163, 160, .6); }
.lic-note.warn { background: rgba(227, 176, 75, .16); border-color: rgba(227, 176, 75, .7); }
.lic-note.bad { background: rgba(201, 72, 63, .16); border-color: rgba(201, 72, 63, .7); }
/* V373 RoOt control centre. */
.rt-lic { flex-wrap: wrap; }
.rt-flags { display: flex; gap: 18px; flex-wrap: wrap; }
.rt-flags label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rt-flags input { width: auto; }
.rt-sub-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rt-sub-head .panel-title { margin: 0; flex: 1; }
.rt-subs input, .rt-subs select { min-width: 110px; }
.rt-subs input[data-note] { min-width: 160px; }
.rt-acts { display: flex; gap: 6px; white-space: nowrap; }
.bk-remind-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: var(--ds-space-2); font-size: var(--fs-sm); }
.bk-remind-set input { width: 80px; text-align: center; }
.hx-btabs { margin-bottom: 10px; }

/* V376 «المتابعة والمهام» (tasks.html, task.html). */
.tk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-row label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.tk-table tr.late td:first-child { border-inline-start: 3px solid #c9483f; }
.tk-table a { color: inherit; font-weight: 600; text-decoration: none; }
.tk-table a:hover { text-decoration: underline; }

/* V377 «العقود والضمانات» (contracts.html, info.js in contracts mode). */
.ct-line { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ct-line li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); border-top: 3px solid rgba(255, 255, 255, .25); font-size: var(--fs-sm); }
.ct-line li.done { border-top-color: #4caf50; }
.ct-line li.todo { border-top-color: #e3b04b; }
.ct-line li.none { opacity: .55; }
.ct-line li b { font-weight: 600; }
.ct-cover { margin-bottom: 12px; border-inline-start: 4px solid #4caf50; }
.ct-cover.bad { border-inline-start-color: #c9483f; }
html[data-theme="light"] .ct-line li { border-color: #cfd2d8; }

/* «مؤشرات الأداء» (kpi.js): sections, two-column panels, simple bars. */
.kp-sec { margin-bottom: 18px; }
.kp-sec > h3 { margin: 0 0 10px; }
.kp-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 12px; }
.kp-grid .panel, .kp-sec > .panel { margin: 0; }
.kp-grid h4, .kp-sec h4 { margin: 0 0 10px; }
.kp-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.kp-row > b { width: 20px; text-align: center; }
.kp-row > a { flex: 1; min-width: 0; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-row > .kp-bar { flex: 1; }
.kp-bar { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; vertical-align: middle; }
.kp-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.kp-bar.warn > i { background: #e6a23c; }
.kp-bar.bad > i { background: #c9483f; }
.kp-note { font-size: var(--fs-sm); }
html[data-theme="light"] .kp-bar { background: #e3e5ea; }
@media (max-width: 760px) { .kp-grid { grid-template-columns: 1fr; } }
.kp-row > a:hover { color: var(--accent); }

/* «المواد والتوريدات» (materials.html, delivery.html). */
.ml-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.ml-head label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ml-lines td { padding: 4px; vertical-align: middle; }
.ml-lines input, .ml-lines select { width: 100%; min-width: 70px; }
.ml-lines td:first-child input { min-width: 150px; }
.ml-lines .mlQ { max-width: 100px; }
.ml-lines .mlU { max-width: 80px; }
.mt-note { font-size: var(--fs-sm); margin: 8px 0 0; }
.warn-note { border-inline-start: 4px solid #e6a23c; }
.dl-quick { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.modal:has(.ml-lines) { max-width: 980px; }
.dl-box a:not(.btn):not(.chip) { color: var(--accent); text-decoration: none; }
.dl-box a:not(.btn):not(.chip):hover { text-decoration: underline; }
.dl-box a.chip { color: inherit; text-decoration: none; }
.co-d { font-weight: 600; white-space: nowrap; }

/* «التقدم المصوّر» (photos.html). */
.pg-day { margin-bottom: 16px; }
.pg-day h4 { margin: 0 0 8px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pg-tile { margin: 0; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.pg-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(0,0,0,.2); }
.pg-tile figcaption { padding: 6px 10px; font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 2px; }
.pg-tile figcaption span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tile:hover { border-color: var(--accent); }
.pg-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 16px; }
.pg-cmp figure { margin: 0; }
.pg-cmp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: rgba(0,0,0,.2); }
.pg-cmp figcaption { text-align: center; margin-top: 6px; font-weight: 600; }
.pg-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pg-strip img { height: 72px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; cursor: pointer; flex: none; border: 2px solid transparent; }
.pg-strip img:hover { border-color: var(--accent); }
.pg-big { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; margin-bottom: 10px; background: rgba(0,0,0,.25); }
.modal:has(.pg-big) { max-width: 960px; }
html[data-theme="light"] .pg-tile { background: #fff; border-color: #d9dce2; }
@media (max-width: 640px) { .pg-cmp { grid-template-columns: 1fr; } }

/* Phones (V0.1.0.388 audit): one-row top bar, no repeated logo, readable home cards, finger-sized table actions. */
.um-item.um-mob { display: none !important; }
@media (max-width: 600px) {
  body.nb .topbar { flex-wrap: nowrap; row-gap: 0; gap: 6px; align-items: center; }
  body.nb .topbar #userBar { flex-wrap: nowrap; gap: 6px; flex: none; margin-inline-start: auto; }
  body.nb .topbar #userBar .theme-btn { display: none; }
  body.page-v2 .um-btn { padding: 4px; gap: 0; }
  body.page-v2 .um-btn .um-name, body.page-v2 .um-btn .um-caret { display: none; }
  body.page-v2 .um-av { width: 32px; height: 32px; }
  .um-item.um-mob { display: block !important; }
  .tb-more { padding: 7px 9px; }
  .tb-more span { display: none; }
  .topbar .tb-icons { margin-inline-start: 0; }
  body.nb:not(.home) main > .brand { display: none; }
  /* Home: recent requests stack under their tabs; one-line rows. */
  .hx-dash .hx-lists { flex-direction: column; align-items: stretch; }
  .hx-lists .hx-acttabs { flex-direction: row; flex-wrap: wrap; }
  .hx-lists .hx-rec > b, .hx-lists .hx-rec > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  /* Home: week grid shows dates only (day names do not fit seven narrow columns). */
  .hx-wkh .hx-wkn { display: none; }
  .hx-dash .hx-wkgrid { grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
  /* Table and list actions: at least 36px tall for a finger. */
  main .link-btn { min-height: 36px; display: inline-flex; align-items: center; padding-block: 4px; }
  .td-miss .chip { min-height: 36px; min-width: 52px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Section strip that only repeats this page's own tabs (nav.js marks it data-same). */
main:has(> .ap-tabs) > .sec-tabs[data-same] { display: none !important; }

/* Account button: the name stays on one line, cut with an ellipsis. */
body.page-v2 .um-btn { min-width: 0; }
body.page-v2 .um-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
/* Light theme: readable KPI tones (the dark-theme pastels vanish on a light card). */
html[data-theme="light"] .lk-k.ok b { color: #1b7f3b; }
html[data-theme="light"] .lk-k.warn b { color: #8a5a00; }
html[data-theme="light"] .lk-k.bad b { color: #b3261e; }
/* Phones: 16px fields, so iOS does not zoom the page when one is focused. */
@media (max-width: 600px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}

/* ===== 40-templates.css ===== */
/* Templates management (templates.html) */
.tp-g { margin-block: var(--ds-space-4, 18px) var(--ds-space-2, 8px); font-size: var(--fs-md, 1rem); }
.tp-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tp-hist { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.tp-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-block: 6px; border-block-end: 1px solid var(--line, rgba(127,127,127,.2)); }
.btn.loading { opacity: .6; pointer-events: none; }

/* ===== 41-backup.css ===== */
body.page-v2 .bk-part { margin-top: var(--ds-space-3); border-top: 1px solid var(--ds-border); padding-top: var(--ds-space-2); }
body.page-v2 .bk-part > summary { cursor: pointer; font-weight: 600; color: var(--ds-text); padding-block: var(--ds-space-1); }
body.page-v2 .bk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px var(--ds-space-3); max-height: 180px; overflow-y: auto; }
body.page-v2 .bk-pick label { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: var(--ds-secondary); color: var(--ds-text-2); }
body.page-v2 .bk-pick input, body.page-v2 .bk-dates input { width: auto; }
body.page-v2 .bk-dates > div { display: flex; gap: var(--ds-space-2); flex-wrap: wrap; }
body.page-v2 .bk-btns { display: flex; gap: var(--ds-space-2); flex-wrap: wrap; }
body.page-v2 .bk-remind { display: block; margin-bottom: var(--ds-space-3); border-inline-start: 3px solid var(--ds-warning); color: var(--ds-text); text-decoration: none; font-weight: 600; }

/* ===== 42-sections.css ===== */
/* RoOt › «الأقسام» (sections.html) */
.sc-tbl td { vertical-align: middle; }
.sc-tbl input.sc-ar, .sc-tbl input.sc-en { width: 100%; min-width: 150px; }
.sc-ord { white-space: nowrap; }
.sc-ord .btn { padding-inline: 8px; }
.sc-sw { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sc-sw input { width: 18px; height: 18px; }
.sc-logo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-img { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--b-r-sm, 10px); background: rgba(255, 255, 255, .06); }
.sc-img img { width: 32px; height: 32px; object-fit: contain; }
.sc-def { font-size: var(--fs-xs); opacity: .75; margin-bottom: 4px; }
.sc-scr { margin-top: 6px; font-size: var(--fs-sm); }
.sc-scr label { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.sc-scr input { width: 16px; height: 16px; }
.sc-tabs { margin: 0 0 6px; padding-inline-start: 22px; border-inline-start: 2px solid var(--ds-border); color: var(--ds-text-2); }
.sc-tabs label { margin: 2px 0; }
.sc-names > summary { cursor: pointer; font-weight: 700; }
.sc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-act .btn, .sc-logo .btn { width: auto; }

/* ===== 43-login-reset.css ===== */
/* Sign-in page: «نسيت كلمة المرور؟» under the form */
.login-box #btnForgot { display: block; margin: 10px auto 0; font-size: var(--fs-sm); }

/* ===== 99-brand.css ===== */
/* GENERATED by infra/tools/build-brand.mjs from tenants/bonyan/config.json. Do not edit. */
:root {
  --bg-top: #303c50;
  --bg-bottom: #38465d;
  --accent: #e39a73;
  --color-accent: #d48054;
  --color-primary: #3f4f69;
  --yellow: #ffd54f;
  --green: #a5d6a7;
  --danger: #ffb4b4;
  --icon-box: #faeadf;
  --icon-box-border: #efcdb5;
}
html:not([data-theme="light"]) .sn-mi:not(.own), html:not([data-theme="light"]) .hx-mi:not(.own) { background: url("../img/mark-dark.png") center / auto 32px no-repeat; }
html:not([data-theme="light"]) .sn-mi:not(.own) img, html:not([data-theme="light"]) .hx-mi:not(.own) img { opacity: 0; }
html:not([data-theme="light"]) .sn-mod.open > a.sn-mh .sn-mi img, html:not([data-theme="light"]) .hx-mod.on .hx-mi img { box-shadow: none; }
html:not([data-theme="light"]) .sn-mod.open > a.sn-mh .sn-mi, html:not([data-theme="light"]) .hx-mod.on .hx-mi { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .55)); }
