:root {
  --mk-bg: #f4f4f5;
  --mk-sidebar: #ffffff;
  --mk-sidebar-hover: #f4f4f5;
  --mk-sidebar-text: #3f3f46;
  --mk-sidebar-muted: #71717a;
  --mk-sidebar-border: #e4e4e7;
  --mk-ink: #161a1f;
  --mk-muted: #5c6570;
  --mk-card: #ffffff;
  --mk-line: #dfe3e8;
  --mk-accent: #1f4a46;
  --mk-accent-2: #163834;
  --mk-brass: #b0894d;
  --mk-soft: #e7eef0;
  --mk-danger: #8f2d2d;
  --mk-ok: #1f6b4a;
  --mk-radius: 8px;
  --mk-shadow: 0 1px 0 rgba(16, 24, 32, .04);
  --mk-sidebar-w: 248px;
  --mk-sidebar-rail: 68px;
  --mk-nav-section: #1e3a6b;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.app-body {
  background: var(--mk-bg);
  color: var(--mk-ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -.01em;
  height: 100%;
  overflow: hidden;
}
a { color: var(--mk-accent); }
a:hover { color: var(--mk-accent-2); }

.app-shell {
  display: flex;
  align-items: stretch;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.sidebar {
  position: relative;
  z-index: 30;
  width: var(--mk-sidebar-w);
  min-width: var(--mk-sidebar-w);
  max-width: var(--mk-sidebar-w);
  flex: 0 0 var(--mk-sidebar-w);
  height: 100vh;
  background: var(--mk-sidebar);
  color: var(--mk-sidebar-text);
  border-right: 1px solid var(--mk-sidebar-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width .22s cubic-bezier(.22, 1, .36, 1), min-width .22s cubic-bezier(.22, 1, .36, 1), max-width .22s cubic-bezier(.22, 1, .36, 1), flex-basis .22s cubic-bezier(.22, 1, .36, 1);
}
html.nav-rail .sidebar {
  width: var(--mk-sidebar-rail);
  min-width: var(--mk-sidebar-rail);
  max-width: var(--mk-sidebar-rail);
  flex-basis: var(--mk-sidebar-rail);
}
.app-content {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  overflow: auto;
}
.sidebar .brand {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #18181b;
  padding: .8rem .75rem .7rem .95rem;
  border-bottom: 1px solid var(--mk-sidebar-border);
}
.brand-lockup {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: 28px auto;
  column-gap: .7rem;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-stack {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
}
.brand-copy { grid-column: 2; grid-row: 1; }
.brand-stem {
  width: 1px;
  height: 8px;
  margin: 2px 0 3px;
  background: #0D3C3F;
  opacity: .28;
  border-radius: 1px;
}
.sidebar-fold {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  color: #3f3f46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #e4e4e7;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sidebar-fold svg {
  width: 12px;
  height: 12px;
  display: block;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.sidebar-fold:hover {
  background: #0D3C3F;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 60, 63, .28);
  transform: translateY(1px);
}
.sidebar-fold:active { transform: scale(.94); }
.sidebar-fold:focus-visible {
  outline: 2px solid #0D3C3F;
  outline-offset: 2px;
}
html.nav-rail .sidebar-fold {
  background: #0D3C3F;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 60, 63, .22);
}
html.nav-rail .sidebar-fold:hover {
  background: #092c2e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 60, 63, .32);
}
html.nav-rail .sidebar-fold svg { transform: rotate(180deg); }
.sidebar-edge {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 4;
  cursor: pointer;
}
.sidebar-edge::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  width: 3px;
  height: 28px;
  margin-top: -14px;
  border-radius: 99px;
  background: #c4c9ce;
  opacity: 0;
  transition: opacity .16s ease, background .16s ease, height .16s ease, margin-top .16s ease;
}
.sidebar:hover .sidebar-edge::after { opacity: 1; }
.sidebar-edge:hover::after {
  background: #0D3C3F;
  height: 44px;
  margin-top: -22px;
}
.sidebar .brand-mark,
img.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  background: #0D3C3F;
  flex: 0 0 auto;
}
.sidebar .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sidebar .brand-copy strong {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.sidebar .brand-copy small {
  color: var(--mk-sidebar-muted);
  font-size: .68rem;
  font-weight: 400;
}
.sidebar-nav {
  padding: .4rem .45rem .75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.sidebar .nav-group { position: relative; }
.sidebar .nav-label {
  color: var(--mk-nav-section);
  font-size: .78rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  width: 100%;
  min-height: 44px;
  padding: .55rem .6rem;
  margin: .08rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
}
.sidebar .nav-label:hover,
.sidebar .nav-group.has-active > .nav-label,
.sidebar .nav-group.is-open > .nav-label {
  background: var(--mk-sidebar-hover);
  color: #18181b;
}
.sidebar .nav-label .nav-ico,
.sidebar .nav-label .nav-caret {
  color: var(--mk-nav-section);
  opacity: .9;
}
.sidebar .nav-caret {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
}
.sidebar .nav-group.is-open > .nav-label .nav-caret { transform: rotate(90deg); }
.sidebar .nav-sub { display: none; flex-direction: column; padding: .15rem 0 .25rem .35rem; }
.sidebar .nav-group.is-open > .nav-sub { display: flex; flex-direction: column; }
.sidebar a {
  color: var(--mk-sidebar-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .6rem;
  margin: 0 0 .08rem;
  border-radius: 6px;
  font-size: .825rem;
  font-weight: 450;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar a:hover {
  background: var(--mk-sidebar-hover);
  color: #18181b;
}
.sidebar a.active {
  background: #eceef0;
  color: #18181b;
  font-weight: 550;
}
.sidebar .nav-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar a:hover .nav-ico,
.sidebar a.active .nav-ico {
  color: var(--mk-accent);
}
.sidebar .nav-ico svg {
  display: block;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--mk-line);
  padding: .55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.topbar-burger,
.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--mk-line);
  background: #fff;
  border-radius: 8px;
  color: var(--mk-ink);
}
html.nav-rail .sidebar .brand {
  justify-content: center;
  padding: .75rem .4rem .55rem;
}
html.nav-rail .brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}
html.nav-rail .sidebar .brand-copy,
html.nav-rail .sidebar .nav-label .nav-txt,
html.nav-rail .sidebar .nav-caret {
  display: none;
}
html.nav-rail .sidebar .nav-label {
  justify-content: center;
  padding: .55rem .3rem;
  margin: .15rem 0;
}
html.nav-rail .sidebar .nav-label .nav-ico { display: inline-flex; }
html.nav-rail .sidebar-nav { padding: .45rem .35rem .6rem; }
html.nav-rail .sidebar .nav-sub { padding-left: 0; }
html.nav-rail .sidebar .nav-sub .nav-txt { display: none; }
html.nav-rail .sidebar .nav-sub a {
  justify-content: center;
  padding: .5rem .35rem;
}
.topbar-burger svg,
.sidebar-close svg { display: block; }
.search-box { min-width: 0; flex: 1 1 240px; max-width: 560px; }
.search-box-icon {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  display: flex;
  z-index: 1;
}
.search-box .form-control { padding-left: 2.15rem; }
.topbar-branch { flex: 0 1 220px; min-width: 140px; max-width: 260px; }
.topbar-branch .form-select { width: 100%; }
.topbar .form-control,
.topbar .form-select {
  border-color: #d7dce2;
  background: #f7f8fa;
  box-shadow: none;
  font-size: .82rem;
}
.topbar .form-control:focus,
.topbar .form-select:focus {
  background: #fff;
  border-color: #9bb3af;
  box-shadow: 0 0 0 3px rgba(31, 74, 70, .12);
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--mk-ink);
  font-size: .8rem;
  font-weight: 500;
  max-width: 160px;
}
.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mk-accent);
  color: #f4efe4;
  font-size: .68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border: 1px solid var(--mk-line);
  background: #fff;
  color: var(--mk-ink);
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: 6px;
}
.btn-logout:hover { background: #f4f5f7; color: var(--mk-ink); }
.logout-ico { display: none; }
.nav-backdrop {
  display: none;
}
.dash-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

main.app-main {
  padding: 1.15rem 1.35rem 2rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--mk-muted);
  margin: 0 0 .7rem;
}
.crumbs a {
  color: var(--mk-muted);
  text-decoration: none;
}
.crumbs a:hover { color: var(--mk-accent); }
.crumbs .sep { color: #b7bec6; }
.crumbs .now { color: var(--mk-ink); font-weight: 550; }
.page-form { max-width: 920px; }
.est-form { max-width: 1120px; }
.est-lines-wrap { overflow: visible; }
.est-lines { overflow: visible; }
.est-lines thead, .est-lines tbody, .est-lines tr { overflow: visible; }
.est-lines th.est-num,
.est-lines .est-input-num { width: 6.2rem; min-width: 5.4rem; }
.est-desc-cell { min-width: 14rem; width: 28%; overflow: visible; }
.est-desc-wrap { position: relative; width: 100%; }
.est-desc-wrap .search-results {
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 220px;
  z-index: 80;
  margin: 0;
}
.est-line-total { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 6.5rem; }
.est-totals {
  background: #f4f6f8;
  border: 1px solid var(--mk-line, #e4e7eb);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: .45rem;
}
.est-totals .est-grand {
  padding-top: .45rem;
  border-top: 1px solid #d7dce2;
  font-size: 1.05rem;
}

.health-page { max-width: 1040px; }
.health-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.35rem 1.4rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--mk-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #102422 0%, #1f4a46 55%, #2a5f59 100%);
  color: #f4f7f6;
  box-shadow: 0 16px 40px rgba(16, 36, 34, .18);
}
.health-hero.is-bad {
  background: linear-gradient(135deg, #3a1616 0%, #6b2a2a 60%, #8f2d2d 100%);
}
.health-radar {
  position: absolute;
  right: 8.5rem;
  top: 50%;
  width: 220px;
  height: 220px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .35;
}
.health-radar span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  animation: health-radar 3.2s ease-out infinite;
}
.health-radar span:nth-child(2) { animation-delay: 1s; }
.health-radar span:nth-child(3) { animation-delay: 2s; }
.health-hero-copy { position: relative; z-index: 1; max-width: 34rem; }
.health-hero-copy h1 { color: #fff; }
.health-hero-copy p { color: rgba(255,255,255,.78); }
.health-hero .btn-outline-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.health-hero .btn-outline-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.health-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: .45rem;
}
.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dcea0;
  box-shadow: 0 0 0 0 rgba(125, 206, 160, .7);
  animation: health-pulse 1.6s ease-out infinite;
}
.health-hero.is-bad .health-dot { background: #f0b4b4; box-shadow: 0 0 0 0 rgba(240,180,180,.6); }
.health-ring {
  position: relative;
  z-index: 1;
  width: 108px;
  flex: 0 0 108px;
  text-align: center;
}
.health-ring svg { width: 108px; height: 108px; display: block; }
.health-ring-track, .health-ring-bar {
  fill: none;
  stroke-width: 8;
}
.health-ring-track { stroke: rgba(255,255,255,.16); }
.health-ring-bar {
  stroke: #d4b06a;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: calc(251.2 * (1 - var(--score, 0) / 100));
  transform: rotate(-90deg);
  transform-origin: 48px 48px;
  animation: health-ring 1.15s cubic-bezier(.2,.7,.2,1) both;
}
.health-ring-val {
  position: absolute;
  inset: 18px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.04em;
}
.health-ring-val small { font-size: .7rem; margin-left: .1rem; opacity: .8; }
.health-ring-lbl {
  margin-top: .15rem;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.health-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.health-kpi {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  box-shadow: var(--mk-shadow);
  min-height: 132px;
}
.health-kpi.is-ok { border-color: #c9dfd3; background: #f7fbf8; }
.health-kpi.is-bad { border-color: #ebc8c8; background: #fff8f8; }
.health-kpi-ico { color: var(--mk-accent); margin-bottom: .45rem; }
.health-kpi-label {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.health-kpi-value {
  margin-top: .35rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.03em;
}
.health-kpi-hint { margin-top: .35rem; color: var(--mk-muted); font-size: .75rem; min-height: 18px; }
.health-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.health-wave i {
  display: block;
  width: 3px;
  height: 6px;
  background: var(--mk-ok);
  border-radius: 2px;
  animation: health-wave 1s ease-in-out infinite;
}
.health-wave i:nth-child(2) { animation-delay: .12s; }
.health-wave i:nth-child(3) { animation-delay: .24s; }
.health-wave i:nth-child(4) { animation-delay: .36s; }
.health-block {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: .85rem;
  box-shadow: var(--mk-shadow);
}
.health-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .85rem;
}
.health-block-head h2 { font-size: .95rem; font-weight: 650; margin: 0; }
.health-block-head span { color: var(--mk-muted); font-size: .78rem; }
.health-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .55rem;
}
.health-chip {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: .55rem;
  padding: .7rem .75rem;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: #fafbfc;
  animation: health-pop .45s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.health-chip.is-ok { border-color: #d5e8dc; }
.health-chip.is-bad { border-color: #ebc8c8; background: #fff8f8; }
.health-mark {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f3ec;
  color: var(--mk-ok);
}
.health-chip.is-bad .health-mark { background: #f8e4e4; color: var(--mk-danger); }
.health-chip strong { font-size: .88rem; }
.health-chip small { color: var(--mk-muted); }
.health-dirs { display: grid; gap: .55rem; }
.health-dir {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem .75rem;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  animation: health-pop .45s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.health-dir-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mk-soft);
  color: var(--mk-accent);
}
.health-dir strong { display: block; font-size: .86rem; }
.health-dir em { font-style: normal; font-size: .75rem; color: var(--mk-ok); font-weight: 650; }
.health-dir.is-bad em { color: var(--mk-danger); }
.health-bar {
  height: 5px;
  margin-top: .4rem;
  background: #e8ecef;
  border-radius: 99px;
  overflow: hidden;
}
.health-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1f6b4a, #3d9a6d);
  border-radius: inherit;
  animation: health-fill .9s ease forwards;
  animation-delay: calc(.2s + var(--i, 0) * 80ms);
}
.health-dir.is-bad .health-bar span { background: #8f2d2d; }
.health-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 .4rem;
  border-left: 2px solid #e4e9ed;
}
.health-timeline li {
  position: relative;
  padding: 0 0 .85rem 1.1rem;
}
.health-timeline li:last-child { padding-bottom: 0; }
.health-pin {
  position: absolute;
  left: -6px;
  top: .35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4b06a;
  box-shadow: 0 0 0 4px #fff;
  animation: health-pin .6s ease both;
}
.health-timeline strong { display: block; font-size: .86rem; }
.health-timeline small { color: var(--mk-muted); }
.health-in { animation: health-up .55s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes health-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes health-pop {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes health-pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 206, 160, .55); }
  100% { box-shadow: 0 0 0 10px rgba(125, 206, 160, 0); }
}
@keyframes health-radar {
  0% { transform: scale(.35); opacity: .55; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes health-ring {
  from { stroke-dashoffset: 251.2; }
}
@keyframes health-wave {
  0%, 100% { height: 5px; }
  50% { height: 14px; }
}
@keyframes health-fill { to { width: 100%; } }
.health-dir.is-bad .health-bar span { animation-name: health-fill-bad; }
@keyframes health-fill-bad { to { width: 28%; } }
@keyframes health-pin {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
[data-health-refresh].is-spin svg { animation: health-spin .7s linear infinite; }
@keyframes health-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .health-radar span, .health-dot, .health-wave i, .health-ring-bar,
  .health-chip, .health-dir, .health-in, .health-bar span, .health-pin {
    animation: none !important;
  }
  .health-bar span { width: 100%; }
  .health-dir.is-bad .health-bar span { width: 28%; }
  .sidebar, .sidebar-fold, .sidebar-fold svg, .sidebar-edge::after {
    transition: none;
  }
}

.share-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: .15rem;
}
.share-wrap-end .share-menu {
  left: auto;
  right: 0;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--mk-accent);
  cursor: pointer;
}
.btn-share:hover {
  background: var(--mk-soft);
  color: var(--mk-accent-2);
}
.share-menu {
  position: absolute;
  top: 120%;
  left: 0;
  z-index: 20;
  min-width: 140px;
  padding: .3rem;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  box-shadow: var(--mk-shadow);
}
.share-menu a,
.share-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--mk-ink);
  text-decoration: none;
  padding: .35rem .55rem;
  border-radius: 6px;
  font-size: .8rem;
}
.share-menu a:hover,
.share-menu button:hover {
  background: var(--mk-sidebar-hover);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
}
.page-title-row h1,
.page-title-row .h4 { margin: 0; }
.page-head h1,
h1.h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}
.dash-sub {
  margin: .2rem 0 0;
  color: var(--mk-muted);
  font-size: .8rem;
}
.dash-filter-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0;
}
.dash-filter-field span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--mk-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dash-filter-field .form-control,
.dash-filter-field .form-select {
  min-width: 12.5rem;
  min-height: 38px;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
}
.dash-action {
  --act: #0D3C3F;
  --act-bg: #f3f7f7;
  --act-line: #d3e0e0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .7rem .38rem .4rem;
  border: 1px solid var(--act-line);
  border-radius: 8px;
  background: var(--act-bg);
  color: #1c2428;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
}
.dash-action svg {
  width: 15px;
  height: 15px;
  padding: 5px;
  box-sizing: content-box;
  border-radius: 6px;
  background: #fff;
  color: var(--act);
  box-shadow: inset 0 0 0 1px var(--act-line);
}
.dash-action:hover {
  background: #fff;
  border-color: var(--act);
  color: #1c2428;
}
.dash-action.is-receive { --act: #0D3C3F; --act-bg: #f2f7f7; --act-line: #cfe0e0; }
.dash-action.is-job { --act: #1d6b4a; --act-bg: #f3f8f5; --act-line: #cfe3d8; }
.dash-action.is-book { --act: #2f6f8f; --act-bg: #f3f7fb; --act-line: #d0dee8; }
.dash-action.is-estimate { --act: #4f5d9e; --act-bg: #f5f6fb; --act-line: #d6dae8; }
.dash-action.is-customer { --act: #3a6e72; --act-bg: #f3f8f8; --act-line: #d0e0e1; }
.dash-action.is-rental { --act: #8d5a32; --act-bg: #faf6f2; --act-line: #e6d6c8; }
.dash-action.is-wash { --act: #1f7a8c; --act-bg: #f2f8f9; --act-line: #c9e0e4; }
.dash-action.is-trip { --act: #8a6410; --act-bg: #fbf8f1; --act-line: #eadcbf; }
.dash-action.is-expense { --act: #8d3b3b; --act-bg: #fbf6f6; --act-line: #e6d4d4; }
.dash-action.is-payroll { --act: #6b3f55; --act-bg: #faf6f8; --act-line: #e4d4db; }
.dash-section { margin-bottom: 1.4rem; }
.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .65rem;
}
.dash-section-head h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: .92rem;
  font-weight: 650;
}
.dash-section-head h2 svg,
.dash-head-title svg {
  width: 15px;
  height: 15px;
  color: var(--mk-muted);
  flex: 0 0 auto;
}
.dash-head-title {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.dash-section-head span {
  font-size: .75rem;
  color: var(--mk-muted);
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}
.dash-kpis-now {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.dash-kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 118px;
  padding: 1rem 1.1rem 1.05rem;
  container-type: inline-size;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--mk-shadow);
}
a.dash-kpi:hover {
  border-color: #c8d0d6;
  color: inherit;
}
.dash-kpi-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.dash-kpi-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: #f3f5f6;
  color: #3d5a66;
  flex: 0 0 auto;
}
.dash-kpi-ico svg { width: 15px; height: 15px; }
.dash-kpi-label > span:last-child { min-width: 0; line-height: 1.25; }
.dash-kpi.is-warn .dash-kpi-ico { background: #f4e7c8; color: #8a6410; }
.dash-kpi.is-danger .dash-kpi-ico { background: #f4d6d6; color: #8d3b3b; }
.dash-kpi.is-ok .dash-kpi-ico { background: #d7ebdf; color: #1f6b45; }
.dash-kpis-now .dash-kpi-ico {
  background: #fff;
  color: var(--lane, #3d5a66);
}
.dash-kpi-value {
  margin-top: .45rem;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.15;
  min-width: 0;
  max-width: 100%;
}
.dash-kpi-value .money {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .35rem;
  row-gap: 0;
  width: 100%;
  max-width: 100%;
}
.dash-kpi-value .money-amt {
  font-size: clamp(1.02rem, 13cqi, 1.55rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  max-width: 100%;
}
.dash-kpi-value .money-ccy {
  font-size: .68rem;
}
.dash-kpi-hint {
  margin-top: .4rem;
  font-size: .72rem;
  color: var(--mk-muted);
}
.dash-kpi-links {
  display: flex;
  flex-direction: column;
  margin-top: .15rem;
}
.dash-kpi-links a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem 0;
  border-top: 1px solid var(--mk-line);
  color: var(--mk-ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 650;
}
.dash-kpi-links a:hover { color: #1f4a46; }
.dash-kpi-links b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dash-kpi-links svg { width: 15px; height: 15px; flex: 0 0 auto; }
.dash-kpi.is-warn { border-color: #ead9b0; background: #fffdf8; }
.dash-kpi.is-danger { border-color: #ebc8c8; background: #fff8f8; }
.dash-kpi.is-ok { border-color: #c9dfd3; background: #f7fbf8; }
.dash-kpis-now .dash-kpi {
  background: var(--lane-wash, #fff);
  border-color: var(--lane-line, var(--mk-line));
}
.dash-kpis-now .dash-kpi-label { color: var(--lane, var(--mk-muted)); }
.dash-kpis-now a.dash-kpi:hover {
  border-color: var(--lane, #c8d0d6);
  box-shadow: 0 8px 20px rgba(16, 24, 32, .06);
}
.dash-kpis-now .lane-inside { --lane: #3d5a66; --lane-wash: #f4f7f8; --lane-line: #d5dee2; }
.dash-kpis-now .lane-progress { --lane: #0D3C3F; --lane-wash: #f3f8f8; --lane-line: #c5d6d7; }
.dash-kpis-now .lane-approval { --lane: #a67c14; --lane-wash: #fbf7ee; --lane-line: #ead9b0; }
.dash-kpis-now .lane-parts { --lane: #b45a22; --lane-wash: #fbf4ef; --lane-line: #ebcbb8; }
.dash-kpis-now .lane-quality { --lane: #4f5d9e; --lane-wash: #f5f6fb; --lane-line: #cfd3e6; }
.dash-kpis-now .lane-ready { --lane: #2a7a55; --lane-wash: #f3faf6; --lane-line: #c5dfd2; }
.dash-kpis-now .lane-finished { --lane: #5b6b75; --lane-wash: #f5f6f7; --lane-line: #d5dadd; }
.dash-kpis-now .lane-estimates { --lane: #2f6f8f; --lane-wash: #f3f8fb; --lane-line: #c5d7e1; }
.dash-kpis-now .lane-tasks { --lane: #6b5b8c; --lane-wash: #f7f5fa; --lane-line: #d6d0e2; }
.dash-kpis-now .lane-customers { --lane: #3a6e72; --lane-wash: #f3f8f8; --lane-line: #c9dbdc; }
.dash-kpis-now .lane-vehicles { --lane: #5a6570; --lane-wash: #f5f6f7; --lane-line: #d4d8dc; }
.dash-kpis-now .lane-rentals { --lane: #9a5b2f; --lane-wash: #faf5f0; --lane-line: #e4d0bf; }
.dash-kpis-now .lane-people { --lane: #3d5a66; --lane-wash: #f4f7f8; --lane-line: #d5dee2; }
.dash-kpis-now .lane-account { --lane: #8a5a2b; --lane-wash: #fbf6f0; --lane-line: #ead8c4; }
.dash-kpis-now .lane-payroll { --lane: #6b3f55; --lane-wash: #faf4f7; --lane-line: #e4ced6; }
.dash-kpis-now .lane-hours { --lane: #0D3C3F; --lane-wash: #f3f8f8; --lane-line: #c5d6d7; }
.money {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .28rem .38rem;
  max-width: 100%;
  vertical-align: baseline;
}
.money-amt {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
}
.money-ccy {
  font-size: .62em;
  font-weight: 650;
  color: var(--mk-muted);
  letter-spacing: .03em;
}
.kpi-count {
  font-variant-numeric: tabular-nums;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.dash-panel { min-width: 0; }
.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.dash-panel-head a {
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
}
.dash-mini {
  font-size: .72rem;
  color: var(--mk-muted);
  margin-top: .1rem;
}
.dash-panel tr.is-late td { color: var(--mk-danger); }

.card,
.card.card-body {
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  box-shadow: var(--mk-shadow);
}
.card-header {
  background: #fbfbfc;
  border-bottom: 1px solid var(--mk-line);
  font-size: .78rem;
  font-weight: 600;
  color: var(--mk-ink);
  padding: .65rem .9rem;
}
.card-kpi {
  border: 1px solid var(--mk-line);
  box-shadow: none;
}
.card-kpi .card-body { padding: .75rem .85rem; }
.card-kpi .small {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  color: var(--mk-muted);
}
.card-kpi .kpi {
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  margin-top: .15rem;
}

.audit-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.audit-kpi {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.audit-kpi-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mk-muted);
  font-weight: 600;
}
.audit-kpi-value {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.03em;
  margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.audit-kpi-time { font-size: .95rem; }
.audit-chip {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: var(--mk-soft);
  color: var(--mk-ink);
  white-space: nowrap;
}
.audit-chip.is-ok { background: #e7f4ec; color: #1f6b4a; }
.audit-chip.is-warn { background: #f3ead6; color: #7a5b20; }
.audit-chip.is-danger { background: #f8e6e6; color: #8a2b2b; }
.audit-chip.is-mute { background: #eef1f4; color: #4b5560; }
.audit-table td { vertical-align: middle; }
.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
}
.page-head-actions form { display: inline-flex; margin: 0; }
.reset-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(16, 24, 32, .46);
  transition: background .35s ease;
}
.reset-scrim[hidden] { display: none; }
.reset-scrim.is-playing {
  background: radial-gradient(ellipse at 50% 18%, #12383a 0%, #071314 58%);
  z-index: 90;
}
.reset-stage { width: min(480px, 100%); }
.reset-scrim.is-playing .reset-stage { width: min(440px, 100%); }
.reset-card {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.3rem 1.15rem;
  box-shadow: 0 24px 60px rgba(16, 24, 32, .22);
}
.reset-card-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 .45rem;
  letter-spacing: -.02em;
}
.reset-card-help,
.reset-card-keep {
  font-size: .84rem;
  line-height: 1.45;
  color: #3f4650;
  margin: 0 0 .55rem;
}
.reset-card-keep { color: #1f6b4a; }
.reset-preview-label {
  margin: .15rem 0 .4rem;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7280;
}
.reset-preview-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 .75rem;
  padding: .15rem .2rem;
  border: 1px solid #eceff2;
  border-radius: 10px;
}
.reset-preview-list li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: .4rem;
  align-items: center;
  padding: .32rem .5rem;
  font-size: .76rem;
}
.reset-preview-ico { color: #5b6470; display: inline-flex; }
.reset-preview-list strong {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: .8rem;
}
.reset-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
}
.reset-theater {
  color: #e8eeef;
  padding: .2rem .1rem .15rem;
}
.reset-theater[hidden] { display: none; }
.reset-theater-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.reset-theater-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 8px rgba(125, 205, 196, .08);
}
.reset-theater-head {
  text-align: center;
  margin-bottom: 1.15rem;
}
.reset-theater-kicker {
  display: block;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7dcdc4;
  margin-bottom: .25rem;
}
.reset-theater-head strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}
.reset-theater.is-complete .reset-theater-kicker { color: #9be0c8; }
.reset-theater-rail {
  height: 2px;
  margin: .85rem auto 0;
  width: min(220px, 70%);
  background: rgba(255, 255, 255, .08);
  border-radius: 99px;
  overflow: hidden;
}
.reset-theater-rail i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0D3C3F, #7dcdc4);
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}
.reset-lanes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.reset-lane {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 2.6rem 18px;
  gap: .65rem;
  align-items: center;
  padding: .58rem .15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  opacity: .38;
  transform: translateY(4px);
  transition: opacity .28s ease, transform .28s ease, background .28s ease;
}
.reset-lane > * { position: relative; z-index: 1; }
.reset-lane.is-ready,
.reset-lane.is-active,
.reset-lane.is-done {
  opacity: 1;
  transform: none;
}
.reset-lane.is-active {
  background: rgba(125, 205, 196, .06);
}
.reset-lane.is-active::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(125, 205, 196, .16), transparent);
  animation: resetSweep .55s cubic-bezier(.22, 1, .36, 1) forwards;
}
.reset-lane.is-done { opacity: .48; }
.reset-lane-ico { display: inline-flex; color: #8aa0a3; }
.reset-lane.is-active .reset-lane-ico { color: #7dcdc4; }
.reset-lane-name {
  font-size: .86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reset-lane-count {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: .86rem;
  letter-spacing: -.02em;
  min-width: 2.6rem;
  text-align: right;
}
.reset-lane.is-done .reset-lane-count { color: #7dcdc4; }
.reset-lane-check {
  display: inline-flex;
  color: #7dcdc4;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}
.reset-lane.is-done .reset-lane-check {
  opacity: 1;
  transform: none;
}
.reset-theater-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .78rem;
  color: #7f9194;
}
@keyframes resetSweep {
  to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reset-lane,
  .reset-lane-check,
  .reset-theater-rail i,
  .reset-scrim { transition: none; }
  .reset-lane.is-active::after { animation: none; width: 100%; }
}
@media (max-width: 900px) {
  .audit-kpis { grid-template-columns: 1fr 1fr; }
}
.table { font-size: .84rem; }
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .85rem;
  margin-bottom: .75rem;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
}
.bulk-bar[hidden] { display: none !important; }
.bulk-bar-count { font-size: .86rem; font-weight: 600; }
.table .bulk-check {
  width: 36px;
  text-align: center;
  vertical-align: middle;
}
.table .bulk-check .form-check-input { margin: 0; cursor: pointer; }
.table thead th {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mk-muted);
  border-bottom-color: var(--mk-line);
  background: #fafbfc;
}
.table > :not(caption) > * > * { padding: .55rem .7rem; }
.badge-soft { background: var(--mk-soft); color: var(--mk-accent); }
.mk-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.mk-badge.is-primary,
.mk-badge.is-info { background: #dce8ea; color: #163834; border-color: #b7cbc8; }
.mk-badge.is-success { background: #d7eee2; color: #145334; border-color: #b3d4c2; }
.mk-badge.is-warning { background: #f3e4c2; color: #5c4310; border-color: #d4b56a; }
.mk-badge.is-danger { background: #f3d9d9; color: #7a2424; border-color: #d8a4a4; }
.mk-badge.is-secondary { background: #e6eaee; color: #2f3640; border-color: #c5ccd3; }
.mk-badge.is-dark { background: #2a3038; color: #fff; border-color: #2a3038; }
.mk-badge.is-purple { background: #5b3d7a; color: #fff; border-color: #5b3d7a; }
.badge.text-bg-warning,
.badge.bg-warning {
  background: #f3ead6 !important;
  color: #6d5018 !important;
}
.badge.text-bg-success,
.badge.bg-success {
  background: #e3f2ea !important;
  color: #1a5c3e !important;
}
.badge.text-bg-danger,
.badge.bg-danger {
  background: #f6e6e6 !important;
  color: var(--mk-danger) !important;
}
.badge.text-bg-primary,
.badge.bg-primary,
.badge.text-bg-info,
.badge.bg-info {
  background: var(--mk-soft) !important;
  color: var(--mk-accent) !important;
}
.badge.text-bg-secondary,
.badge.bg-secondary {
  background: #eef1f4 !important;
  color: #3d454e !important;
}
.badge.text-bg-dark,
.badge.bg-dark {
  background: #e8eaed !important;
  color: #2a3038 !important;
}
.badge.text-bg-purple,
.badge.bg-purple {
  background: #5b3d7a !important;
  color: #fff !important;
}
.text-warning { color: #6d5018 !important; }
.border-warning { border-color: #d4b56a !important; }

.form-label {
  font-size: .75rem;
  font-weight: 600;
  color: #3d454e;
  margin-bottom: .25rem;
}
.form-sec {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  margin: .85rem 0 .15rem;
}
.form-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .1rem;
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid #e4e8ee;
}
.form-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5d6670;
  font-size: .82rem;
  font-weight: 500;
  padding: .28rem .55rem;
  border-radius: 7px;
  line-height: 1.2;
}
.form-tab-sep { color: #c5ccd4; font-size: .82rem; user-select: none; }
.form-tab:hover { color: #1a1f24; background: #f3f5f7; }
.form-tab.is-on {
  color: #12201e;
  background: #eef3f2;
  font-weight: 600;
}
.form-tab.has-data::after {
  content: "";
  display: inline-block;
  width: .38rem;
  height: .38rem;
  margin-left: .35rem;
  border-radius: 50%;
  background: #2f6f68;
  vertical-align: 1px;
}
.form-tab-panel[hidden] { display: none !important; }
.form-control, .form-select {
  border-color: #d5dae1;
  border-radius: 7px;
  font-size: .86rem;
}
.form-control:focus, .form-select:focus {
  border-color: #8eaaa6;
  box-shadow: 0 0 0 3px rgba(31, 74, 70, .14);
}

.btn {
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem .9rem;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  line-height: 1.2;
}
.btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.btn-sm {
  min-height: 32px;
  padding: .28rem .65rem;
  font-size: .78rem;
}
.btn-warning,
.btn-primary {
  --bs-btn-color: #f7f3ea;
  --bs-btn-bg: var(--mk-accent);
  --bs-btn-border-color: var(--mk-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--mk-accent-2);
  --bs-btn-hover-border-color: var(--mk-accent-2);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--mk-accent-2);
  --bs-btn-active-border-color: var(--mk-accent-2);
  --bs-btn-focus-shadow-rgb: 31, 74, 70;
}
.btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2a3038;
  --bs-btn-border-color: #2a3038;
  --bs-btn-hover-bg: #1b2026;
  --bs-btn-hover-border-color: #1b2026;
}
.btn-outline-dark,
.btn-outline-secondary {
  --bs-btn-color: #2a3038;
  --bs-btn-border-color: #c5ccd3;
  --bs-btn-hover-bg: #f3f5f7;
  --bs-btn-hover-color: #161a1f;
  --bs-btn-hover-border-color: #aeb6be;
}
.btn-outline-danger {
  --bs-btn-color: #8f2d2d;
  --bs-btn-border-color: #e0b8b8;
  --bs-btn-hover-bg: #f8e6e6;
  --bs-btn-hover-color: #8f2d2d;
  --bs-btn-hover-border-color: #c98a8a;
}

.alert { border: 0; border-radius: var(--mk-radius); font-size: .86rem; font-weight: 550; }
.alert-success { background: #d7eee2; color: #145334; }
.alert-danger { background: #f3d9d9; color: #7a2424; }
.alert-warning { background: #f3e4c2; color: #5c4310; }

.timeline { border-left: 2px solid var(--mk-line); margin-left: .8rem; }
.timeline .item { position: relative; padding: 0 0 1rem 1.1rem; }
.timeline .item:before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mk-brass);
  position: absolute; left: -5px; top: .35rem;
}
.wo-tabs {
  gap: .35rem;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  padding: .3rem;
}
.wo-tabs .nav-item { margin: 0; }
.wo-tabs .nav-link {
  color: #2f3640;
  border-radius: 7px;
  font-weight: 600;
  padding: .5rem .95rem;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.wo-tabs .nav-link:hover { background: #f4f6f7; color: #161a1f; }
.wo-tabs .nav-link.active { background: var(--mk-accent); color: #fff; }
.wo-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .95rem 1.15rem .95rem 1.25rem;
  background: #f3f8f8;
  border: 1px solid #c5d6d7;
  border-radius: 10px;
  position: relative;
}
.wo-next::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: #0D3C3F;
}
.wo-next-kicker {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0D3C3F;
  margin-bottom: .2rem;
}
.wo-next-text { font-weight: 650; color: var(--mk-ink); }
.wo-kpis { margin-bottom: 1rem; }
.wo-kpis .dash-kpi { min-height: 108px; }
.cash-kpis { margin-bottom: 1rem; }
.cash-types {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.cash-type {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--mk-ink);
}
.cash-type strong { font-weight: 650; }
.cash-type span { color: var(--mk-muted); }
.cash-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .75rem;
}
.cash-acc { min-height: auto; }
.cash-acc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.cash-acc-balance {
  margin: .45rem 0 .7rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -.03em;
}
.cash-acc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .7rem;
  margin: 0;
}
.cash-acc-meta dt {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.cash-acc-meta dd { margin: .1rem 0 0; font-weight: 600; }
.cash-readonly {
  background: #f6f7f8;
  font-weight: 650;
}
.cash-close-diff {
  margin-top: .7rem;
  font-size: .82rem;
  font-weight: 600;
}
.cash-close-diff.is-ok { color: #1a5c3e; }
.cash-close-diff.is-warn { color: #6d5018; }
.cash-close-diff.is-danger { color: #8f2d2d; }
.is-in { color: #1a5c3e; }
.is-out { color: #8f2d2d; }
.ledger-out,
.table > :not(caption) > * > *.ledger-out { color: #c23131; font-weight: 650; }
.ledger-in,
.table > :not(caption) > * > *.ledger-in { color: #1d7a45; font-weight: 650; }
.table tfoot th {
  background: #fafbfc;
  font-weight: 650;
}
.table .is-ok { color: #1a5c3e; }
.table .is-warn { color: #6d5018; }
.table .is-danger { color: #8f2d2d; }
.wo-invoice-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .75rem;
}
.wo-invoice-choice-new,
.wo-invoice-choice-add {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .95rem 1.05rem;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
}
.wo-invoice-choice-kicker {
  font-size: .78rem;
  color: var(--mk-muted);
  line-height: 1.4;
}
.wo-invoice-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.wo-invoice-choice-row .form-select { min-width: 12rem; flex: 1 1 10rem; }
.dash-kpi-status {
  display: flex;
  align-items: flex-end;
  min-height: 2rem;
  font-size: 1rem;
}
.wo-labor {
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.wo-labor-head,
.wo-labor-row {
  display: grid;
  grid-template-columns: minmax(9rem, .9fr) minmax(12rem, 1.6fr) 6.5rem minmax(8rem, .8fr) auto;
  gap: .55rem;
  align-items: center;
  padding: .65rem .85rem;
}
.wo-labor-head {
  background: #fafbfc;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.wo-labor-row { border-top: 1px solid var(--mk-line); }
.wo-labor-add {
  border: 1px dashed var(--mk-line);
  border-radius: 10px;
  background: #fff;
  padding: .85rem;
}
.wo-labor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}
.wo-labor-empty { padding: .85rem; }
.inv-status {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: #fff;
}
.inv-status.is-issued,
.inv-status.is-partially_paid { background: #fffdf8; border-color: #ead9b0; }
.inv-status.is-overdue { background: #fff8f8; border-color: #ebc8c8; }
.inv-status.is-paid { background: #f7fbf8; border-color: #c9dfd3; }
.inv-status-title { margin-top: .35rem; }
.inv-status-money {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.guest-body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--mk-ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
.guest-top {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.15rem 1.6rem 0;
}
.guest-top .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0D3C3F;
  display: block;
  object-fit: cover;
}
.guest-top strong { font-size: .95rem; }
.guest-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.guest-locale { margin-left: 0; }
.guest-locale .form-select { width: auto; min-width: 4.5rem; }
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--mk-line, #d5dbe1);
  background: #fff;
  color: #0D3C3F;
  border-radius: 8px;
  height: 32px;
  padding: 0 .7rem;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.btn-install:hover { background: #f3f6f6; color: #0D3C3F; }
.btn-install svg { width: 15px; height: 15px; flex: 0 0 auto; }
.guest-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 1.8rem 2rem;
}
.guest-visual {
  min-height: 62vh;
  height: min(72vh, 640px);
}
.guest-slides,
.guest-visual-empty {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #eceff1;
}
.guest-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.guest-slides img.is-on { opacity: 1; }
.guest-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
  z-index: 2;
}
.guest-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.guest-dot.is-on { background: #fff; }
.guest-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
}
.guest-panel {
  width: min(400px, 100%);
}
.guest-form-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #71717a;
}
.guest-form-title {
  margin: 0 0 .4rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.guest-form-sub {
  margin: 0 0 1.4rem;
  color: #5c6570;
  font-size: .9rem;
  line-height: 1.45;
}
.guest-form { display: grid; gap: .95rem; }
.guest-field { display: block; }
.guest-input {
  height: 44px;
  background: #fff;
}
.guest-pass { position: relative; }
.guest-pass .guest-input { padding-right: 4.2rem; }
.guest-pass-toggle {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #52525b;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .35rem;
}
.guest-pass-toggle:hover { color: #18181b; }
.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
}
.guest-row a { font-weight: 500; text-decoration: none; }
.guest-row a:hover { text-decoration: underline; }
.guest-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #3f3f46;
  margin: 0;
}
.guest-check input { margin: 0; }
.guest-submit {
  height: 44px;
  width: 100%;
  font-size: .92rem;
  font-weight: 600;
  margin-top: .15rem;
  --bs-btn-bg: #2b5f6a;
  --bs-btn-border-color: #2b5f6a;
  --bs-btn-hover-bg: #245460;
  --bs-btn-hover-border-color: #245460;
}
.guest-back {
  margin: 1.1rem 0 0;
  font-size: .82rem;
}
.guest-back a { text-decoration: none; font-weight: 500; }
.guest-back a:hover { text-decoration: underline; }

.login-photo-slot {
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  padding: .65rem;
  background: #fff;
}
.login-photo-slot img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.photo-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background: #f4f4f5;
  touch-action: none;
}
.photo-frame.has-photo { cursor: grab; }
.photo-frame.is-drag { cursor: grabbing; }
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  pointer-events: none;
  user-select: none;
}
.photo-frame .login-photo-empty { height: 100%; }
.fleet-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.fleet-card {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--mk-shadow);
  display: flex;
  flex-direction: column;
}
.fleet-card[hidden] { display: none; }
.fleet-photo {
  display: block;
  background: #f4f4f5;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.fleet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fleet-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
}
.fleet-photo-empty svg { width: 40px; height: 40px; }
.fleet-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.fleet-title { color: inherit; text-decoration: none; }
.fleet-title:hover { color: inherit; }
.fleet-meta { font-size: .85rem; color: var(--mk-muted); }
.fleet-price { font-weight: 650; }
.fleet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .45rem; }
.fleet-search { max-width: 280px; }
.fleet-thumb-col { width: 56px; }
.fleet-thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  cursor: zoom-in;
}
.fleet-thumb.is-empty { cursor: default; }
.fleet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fleet-thumb:hover { box-shadow: 0 0 0 3px rgba(31, 74, 70, .12); }
button.fleet-photo {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}
.photo-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.photo-pop[hidden] { display: none; }
.photo-pop-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 32, .28);
}
.photo-pop-card {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16, 24, 32, .2);
}
.photo-pop-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  background: #f4f4f5;
}
.photo-pop-x {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #1a1f24;
  font-size: 1.15rem;
  line-height: 1;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d5dae1;
  border-radius: 8px;
  background: #fff;
  color: #3d454e;
  line-height: 1;
}
.btn-icon:hover { background: #f3f5f7; color: #1a1f24; }
.btn-icon.is-danger { color: var(--mk-danger); }
.btn-icon.is-danger:hover { background: #f8e6e6; }
.rental-photo {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.login-photo-empty {
  height: 110px;
  border-radius: 7px;
  background: #f4f4f5;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
@media (max-width: 900px) {
  .guest-top { padding: .9rem 1rem 0; }
  .guest-shell {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 2rem;
  }
  .guest-visual { height: 220px; min-height: 0; }
  .guest-main { min-height: 0; }
}
.search-results {
  position: absolute; z-index: 30; background: #fff;
  border: 1px solid var(--mk-line); border-radius: 8px;
  width: 100%; max-height: 360px; overflow: auto;
  box-shadow: 0 12px 32px rgba(16,24,32,.08);
}
.search-results a,
.search-results .lookup-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .5rem .75rem;
  color: inherit;
  text-decoration: none;
}
.search-results a:hover,
.search-results .lookup-item:hover { background: #f4f4f5; }
.gs-panel {
  top: calc(100% + .35rem);
  max-height: min(70vh, 480px);
  padding: .35rem 0 .45rem;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(16,24,32,.14);
}
.gs-head {
  padding: .45rem .85rem .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7280;
}
.gs-item {
  display: flex !important;
  align-items: flex-start;
  gap: .65rem;
  padding: .45rem .85rem !important;
}
.gs-item.is-active,
.gs-item:hover { background: #f3f6f5; }
.gs-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  background: #eef2f1;
  color: #1f4a46;
}
.gs-ico[data-type="customer"],
.gs-ico[data-type="employee"] { background: #e8f1ff; color: #1d4ed8; }
.gs-ico[data-type="vehicle"],
.gs-ico[data-type="rental_vehicle"] { background: #fff4e5; color: #b45309; }
.gs-ico[data-type="appointment"] { background: #f3e8ff; color: #7c3aed; }
.gs-ico[data-type="work_order"] { background: #e7f6ee; color: #047857; }
.gs-ico[data-type="invoice"],
.gs-ico[data-type="estimate"] { background: #fde8e8; color: #b42318; }
.gs-ico[data-type="part"],
.gs-ico[data-type="purchase"],
.gs-ico[data-type="supplier"] { background: #ecfeff; color: #0e7490; }
.gs-body { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.gs-body strong { font-size: .86rem; font-weight: 650; }
.gs-meta { font-size: .75rem; color: #6b7280; }
.gs-panel mark {
  background: #d9efe4;
  color: inherit;
  padding: 0 .1em;
  border-radius: 2px;
}
.gs-note { padding: .7rem .9rem; color: #6b7280; font-size: .84rem; }
.gs-note.is-error { color: #b42318; }
.gs-more {
  display: block;
  padding: .55rem .9rem .2rem;
  font-size: .78rem;
  font-weight: 600;
  color: #1f4a46 !important;
}
.gs-page { display: grid; gap: 1rem; }
.gs-group { overflow: hidden; }
.gs-group-head {
  padding: .7rem 1rem .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid var(--mk-line);
}
.gs-page-list { list-style: none; margin: 0; padding: 0; }
.gs-page-list a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem 1rem;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid #f1f3f5;
}
.gs-page-list li:first-child a { border-top: 0; }
.gs-page-list a:hover { background: #f6f8f7; }
.gs-page-list span { font-size: .8rem; color: #6b7280; }
.gs-empty { padding: 1.4rem 1.2rem; }
.mk-lookup { position: relative; }
.mk-lookup .search-results { margin-top: .2rem; z-index: 40; }
.mk-lookup-wrap { display: flex; gap: .4rem; align-items: stretch; }
.mk-lookup-wrap .mk-lookup { flex: 1; min-width: 0; }
.mk-lookup-new {
  flex: 0 0 38px;
  width: 38px;
  border: 1px solid var(--mk-line);
  background: #fff;
  border-radius: 8px;
  color: #3f3f46;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mk-lookup-new:hover {
  border-color: #18181b;
  color: #18181b;
  background: #fafafa;
}
.lookup-create {
  color: #18181b;
  font-weight: 500;
}
.mk-time { position: relative; }
.mk-time-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: #fff;
}
.mk-time-btn:focus {
  border-color: #8eaaa6;
  box-shadow: 0 0 0 3px rgba(31, 74, 70, .14);
}
.mk-time-caret { color: #71717a; font-size: .7rem; }
.mk-time-panel {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  margin-top: .25rem;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16,24,32,.1);
  padding: .5rem;
  min-width: 260px;
  max-height: 260px;
  overflow: auto;
}
.mk-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .3rem;
}
.mk-time-slot {
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 6px;
  padding: .38rem .15rem;
  font-size: .78rem;
  color: #18181b;
  line-height: 1;
}
.mk-time-slot:hover { background: #f4f4f5; }
.mk-time-slot.is-on {
  background: var(--mk-accent);
  color: #f4efe4;
  border-color: var(--mk-accent);
}
.mk-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.mk-quick {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.mk-quick[hidden] { display: none; }
.mk-quick-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, .38);
}
.mk-quick-card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(16,24,32,.16);
  padding: 1.1rem 1.15rem 1.15rem;
}
.mk-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}
.mk-quick-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.mk-quick-x {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: #71717a;
}
.mk-quick.is-wide .mk-quick-card {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}
.mk-quick.is-wide form { display: flex; flex-direction: column; min-height: 0; }
.mk-quick.is-wide .mk-quick-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .75rem;
  max-height: min(68vh, 640px);
  overflow: auto;
  padding-right: .2rem;
}
.mk-quick-section,
.mk-quick-span { grid-column: 1 / -1; }
.mk-quick-section {
  margin: .35rem 0 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5c6b68;
}
.mk-quick-fields { display: grid; gap: .65rem; }
.mk-quick-fields label { display: block; font-size: .8rem; color: #52525b; margin-bottom: .2rem; }
.mk-quick-err { color: #b42318; font-size: .85rem; margin-bottom: .6rem; }
.mk-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
}

@media (max-width: 1199px) {
  .page-head { flex-wrap: wrap; }
  .page-head .d-flex,
  .page-head .dash-filter { width: 100%; }
}

@media (max-width: 991px) {
  .health-kpis { grid-template-columns: 1fr; }
  html, body.app-body {
    height: 100%;
    overflow: hidden;
  }
  body.app-body { height: 100dvh; }
  .app-shell {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .app-content {
    height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(22, 26, 31, .4);
  }
  .nav-backdrop[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
  .sidebar {
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .2s ease;
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
  }
  .sidebar.open { transform: none; box-shadow: 16px 0 40px rgba(16,24,32,.18); }
  .sidebar .nav-sub a { min-height: 44px; }
  html.nav-rail .sidebar {
    width: var(--mk-sidebar-w);
    min-width: var(--mk-sidebar-w);
    max-width: var(--mk-sidebar-w);
    flex-basis: var(--mk-sidebar-w);
  }
  html.nav-rail .sidebar .brand { justify-content: flex-start; align-items: center; padding: .85rem 1rem .8rem .65rem; }
  html.nav-rail .brand-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  html.nav-rail .sidebar .brand-copy,
  html.nav-rail .sidebar .nav-label .nav-txt,
  html.nav-rail .sidebar .nav-caret { display: flex; }
  html.nav-rail .sidebar .nav-label {
    justify-content: flex-start;
    padding: .55rem .6rem;
    margin: .08rem 0;
  }
  html.nav-rail .sidebar .nav-label .nav-ico { display: inline-flex; }
  html.nav-rail .sidebar-nav { padding: .4rem .45rem .75rem; }
  html.nav-rail .sidebar .nav-sub .nav-txt { display: flex; }
  html.nav-rail .sidebar .nav-sub a {
    justify-content: flex-start;
    padding: .38rem .6rem;
  }
  .sidebar-fold,
  .brand-stem,
  .sidebar-edge { display: none; }
  .sidebar .brand { align-items: center; padding-right: .65rem; }
  .brand-lockup {
    display: flex;
    align-items: center;
  }
  .brand-stack { width: auto; }
  .topbar-burger,
  .sidebar-close { display: inline-flex; }
  .sidebar-close { margin-left: auto; width: 36px; height: 36px; }
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "menu search tools"
      "branch branch branch";
    align-items: center;
    gap: .5rem .55rem;
    padding: max(.5rem, env(safe-area-inset-top)) .75rem .55rem;
  }
  .topbar-burger { grid-area: menu; }
  .search-box { grid-area: search; flex: none; width: auto; }
  .topbar-tools { grid-area: tools; gap: .35rem; }
  .topbar-branch {
    grid-area: branch;
    flex: none;
    max-width: none;
    min-width: 0;
    width: 100%;
  }
  .user-chip-name,
  .logout-txt,
  .topbar-tools .btn-install-txt { display: none; }
  .topbar-tools .btn-install {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .logout-ico { display: inline-flex; }
  .btn-logout {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .topbar-tools .form-select { min-height: 40px; }
  main.app-main { padding: .85rem .75rem 1.6rem; }
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .page-head .btn,
  .page-head .d-flex { width: 100%; }
  .page-head .d-flex { flex-wrap: wrap; }
  .page-head-actions { width: 100%; justify-content: flex-start; }
  .page-head-actions .btn,
  .page-head-actions form { width: auto; }
  .dash-filter { width: 100%; }
  .dash-filter .form-control { flex: 1 1 8rem; min-width: 0; }
  .dash-filter-field { flex: 1 1 8rem; min-width: 0; }
  .dash-filter-field .form-control { min-width: 0; width: 100%; }
  .dash-kpis,
  .dash-kpis-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-catalog { grid-template-columns: 1fr 1fr; }
  .dash-kpi { min-height: 104px; padding: .85rem .9rem; }
  .dash-kpi-value { font-size: 1.25rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .card-kpi .kpi { font-size: 1rem; overflow-wrap: anywhere; }
  .app-main .card:has(> .table),
  .app-main .card:has(> table) { overflow-x: auto; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .wo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .15rem;
  }
  .wo-tabs .nav-item { flex: 0 0 auto; }
  .wo-labor-head { display: none; }
  .wo-labor-row,
  .wo-labor-add { grid-template-columns: 1fr 1fr; }
  .wo-labor-row select,
  .wo-labor-row input[name="description"],
  .wo-labor-add select,
  .wo-labor-add input[name="description"],
  .wo-labor-actions,
  .wo-labor-row > button,
  .wo-labor-add > button { grid-column: 1 / -1; }
  .mk-datetime-row { grid-template-columns: 1fr; }
  .mk-time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-quick { align-items: flex-end; padding: 0; }
  .mk-quick-card {
    width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 92dvh;
    overflow: auto;
  }
  .d-flex.gap-2,
  .d-flex.justify-content-between { flex-wrap: wrap; }
  .app-main .row { margin-left: 0; margin-right: 0; }
  .app-main .row > [class*="col-"] { padding-left: .5rem; padding-right: .5rem; }
}

@media (max-width: 575px) {
  .guest-top .btn-install-txt { display: none; }
  .guest-top .btn-install { width: 32px; padding: 0; justify-content: center; }
  .dash-kpis,
  .dash-kpis-now { grid-template-columns: 1fr; }
  .dash-kpi-value { font-size: 1.35rem; }
  body.app-body { font-size: 13px; }
  .col-6 .card-kpi .kpi { font-size: .95rem; }
  .btn { padding: .45rem .7rem; }
  .form-control, .form-select { min-height: 42px; }
  .page-form { max-width: none; }
  .health-hero { flex-direction: column; align-items: flex-start; }
  .health-radar { right: -20px; opacity: .2; }
  .health-kpis { grid-template-columns: 1fr; }
  .fleet-catalog { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  body.focus-reports .sidebar {
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    width: var(--mk-sidebar-w);
    min-width: var(--mk-sidebar-w);
    max-width: var(--mk-sidebar-w);
    flex-basis: var(--mk-sidebar-w);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.focus-reports .sidebar.open {
    transform: none;
    box-shadow: 16px 0 40px rgba(16, 24, 32, .18);
  }
  body.focus-reports .topbar-burger,
  body.focus-reports .sidebar-close { display: inline-flex; }
  body.focus-reports .sidebar-fold,
  body.focus-reports .brand-stem,
  body.focus-reports .sidebar-edge { display: none; }
  body.focus-reports .sidebar .brand { align-items: center; padding-right: .65rem; }
  body.focus-reports .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(22, 26, 31, .4);
  }
  body.focus-reports .nav-backdrop[hidden] { display: none; }
}
.report-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.report-nav {
  position: sticky;
  top: .75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.report-nav-label {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mk-muted);
  margin: 0 0 .4rem;
}
.report-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .55rem;
  border-radius: 8px;
  color: var(--mk-ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
}
.report-link:hover { background: #f4f6f7; color: var(--mk-ink); }
.report-link.is-on { background: #0d3c3f; color: #fff; }
.report-link.is-on svg { stroke: #fff; }
.report-toolbar {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1rem;
}
.report-filters { display: flex; flex-direction: column; gap: .7rem; }
.report-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.report-preset {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  color: var(--mk-ink);
  text-decoration: none;
  background: #fff;
}
.report-preset:hover { background: #f6f7f8; color: var(--mk-ink); }
.report-preset.is-on { background: #0d3c3f; border-color: #0d3c3f; color: #fff; }
.report-dates {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: flex-end;
}
.report-dates .dash-filter-field { margin: 0; }
.report-dates .dash-filter-field .form-control { min-width: 10rem; }
.report-kpis { margin-bottom: 1rem; }
.po-kpis { margin-bottom: 1rem; }
.po-kpis .dash-kpi.is-on { box-shadow: 0 8px 20px rgba(16, 24, 32, .06); }
.po-ticket { overflow: hidden; }
.po-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem .4rem;
}
.po-ticket-sum {
  text-align: right;
  color: #6b7280;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.po-ticket-sum strong {
  display: block;
  color: var(--mk-ink);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
}
.po-ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  padding: .4rem 1.1rem 1rem;
}
.po-span { grid-column: 1 / -1; }
.pay-calc-head { margin-bottom: .75rem; }
.pay-calc-try { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; max-width: 28rem; }
.pay-calc-try .form-label { width: 100%; margin-bottom: 0; }
.pay-calc-try .form-control { flex: 1 1 12rem; }
.pay-calc-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; margin: .85rem 0 .65rem; }
.pay-calc-lines > div { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--mk-line); }
.pay-calc-lines dt { margin: 0; font-size: .78rem; font-weight: 500; color: var(--mk-muted); }
.pay-calc-lines dd { margin: 0; font-weight: 650; text-align: right; }
.pay-calc-lines .is-net dt, .pay-calc-lines .is-net dd { color: var(--mk-ink); font-weight: 700; }
@media (max-width: 720px) {
  .pay-calc-lines { grid-template-columns: 1fr; }
}
.po-section {
  grid-column: 1 / -1;
  margin-top: .4rem;
  padding-top: .65rem;
  border-top: 1px solid var(--mk-line);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
a.emp-name { color: inherit; font-weight: 650; text-decoration: none; }
a.emp-name:hover { color: #1f4a46; text-decoration: underline; }
.emp-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.emp-chart h2 { margin-bottom: .15rem; }
.emp-plot { display: flex; align-items: flex-end; gap: .45rem; height: 160px; margin-top: .6rem; }
.emp-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.emp-track { flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.emp-pair { gap: 3px; }
.emp-bar-fill { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: #2f6f8f; }
.emp-pair .emp-bar-fill { width: 10px; max-width: 10px; }
.emp-bar-fill.is-jobs { background: #2a7a55; }
.emp-bar-fill.is-hours { background: #0D3C3F; }
.emp-bar-fill.is-brought { background: #b45a22; }
.emp-bar-fill.is-finished { background: #2f6f8f; }
.emp-bar-n { font-size: .68rem; color: #6b7280; min-height: .9rem; }
.emp-bar-l { font-size: .68rem; color: #6b7280; margin-top: .25rem; text-align: center; }
.emp-legend { display: flex; gap: .8rem; margin-top: .55rem; font-size: .75rem; color: #6b7280; }
.emp-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.emp-legend i.is-brought { background: #b45a22; }
.emp-legend i.is-finished { background: #2f6f8f; }
.emp-settle-head { margin-bottom: .15rem; }
.emp-settle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .85rem; }
.emp-settle-item { border: 1px solid var(--mk-line); border-radius: .7rem; padding: .7rem .85rem; background: #f7f8f7; }
.emp-settle-item span, .emp-settle-result span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5c6b68; }
.emp-settle-item strong { display: block; font-size: 1.15rem; margin-top: .15rem; }
.emp-settle-item small, .emp-settle-result small { display: block; color: #6b7280; margin-top: .15rem; }
.emp-settle-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  padding: .85rem 1rem;
  border-radius: .7rem;
  background: #0D3C3F;
  color: #fff;
}
.emp-settle-result span, .emp-settle-result small { color: rgba(255,255,255,.78); }
.emp-settle-result strong { flex: 1 1 auto; min-width: 0; max-width: 100%; font-size: clamp(1.25rem, 4.2vw, 2.45rem); font-weight: 750; line-height: 1; letter-spacing: -.03em; white-space: nowrap; text-align: right; }
.bonus-modes { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .35rem 0 .7rem; }
.bonus-panel[data-mode="manual"] .bonus-steps-wrap { display: none; }
.bonus-panel[data-mode="auto"] .bonus-manual-wrap { display: none; }
.bonus-manual-wrap { max-width: 16rem; margin-bottom: .75rem; }
.labor-revenue { border: 1px solid var(--mk-line); border-radius: .7rem; padding: .8rem .95rem; background: #f7f8f7; }
.labor-revenue-head { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.labor-revenue-totals { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .45rem; }
.labor-revenue-totals span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5c6b68; }
.labor-revenue-totals strong { font-size: 1.05rem; }
.labor-revenue-lines { list-style: none; margin: .35rem 0 0; padding: 0; }
.labor-revenue-lines li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding: .35rem 0; border-top: 1px solid var(--mk-line); }
.labor-revenue-lines strong { white-space: nowrap; }
.bonus-step { display: grid; grid-template-columns: 1fr 1fr auto; gap: .45rem; align-items: center; margin-bottom: .4rem; }
.phrase-step { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: .45rem; align-items: center; margin-bottom: .4rem; }
.bonus-step-head { margin-bottom: .15rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5c6b68; }
@media (max-width: 720px) {
  .emp-settle-grid { grid-template-columns: 1fr; }
  .emp-settle-result { flex-direction: column; align-items: flex-start; }
  .emp-settle-result strong { font-size: 1.85rem; }
}
@media (max-width: 991px) {
  .emp-charts { grid-template-columns: 1fr; }
}
.emp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.emp-tools > .form-control { max-width: 22rem; flex: 1 1 16rem; width: auto; }
.emp-branch {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.emp-branch .form-select {
  width: 16rem;
  max-width: 16rem;
  flex: 0 1 16rem;
}
.emp-branch .btn { flex: 0 0 auto; }
.emp-branch input[type="date"] { width: 11rem; flex: 0 0 auto; }
.wo-mechs { max-width: 16rem; white-space: normal; }
.wo-status-form { margin: 0; }
.wo-mech-pick { min-width: 9rem; max-width: 14rem; }
.wo-status-pick { min-width: 12.5rem; max-width: 16rem; }
.pay-lines .pay-num { width: 5.6rem; min-width: 4.5rem; }
.perm-board-wrap { margin-top: .25rem; }
.perm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.perm-group {
  border: 1px solid var(--mk-line);
  border-radius: .7rem;
  padding: .7rem .8rem .4rem;
  background: #fff;
}
.perm-group-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.perm-group .form-check { margin-bottom: .28rem; font-size: .92rem; }
.po-lines { border-top: 1px solid var(--mk-line); }
.po-lines th, .po-lines td { vertical-align: middle; }
.po-line-sum { font-weight: 650; white-space: nowrap; min-width: 5.5rem; }
.po-ticket-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .85rem 1.1rem 1rem;
}
.po-progress { display: flex; align-items: center; gap: .45rem; min-width: 8rem; }
.po-bar {
  flex: 1;
  height: 6px;
  background: #eceff2;
  border-radius: 99px;
  overflow: hidden;
  min-width: 56px;
}
.po-bar > span { display: block; height: 100%; background: #2a7a55; }
.po-progress-n { font-size: .75rem; color: #6b7280; white-space: nowrap; }
.po-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.po-meta span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: .2rem;
}
.po-meta-notes { grid-column: 1 / -1; }
.po-receive-wh { max-width: 320px; margin-bottom: .85rem; }
@media (max-width: 991px) {
  .po-ticket-grid { grid-template-columns: 1fr 1fr; }
  .po-meta { grid-template-columns: 1fr 1fr; }
  .perm-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .po-ticket-grid, .po-meta { grid-template-columns: 1fr; }
  .emp-tools { flex-direction: column; align-items: stretch; }
  .emp-tools > .form-control, .emp-branch { max-width: none; width: 100%; }
  .emp-branch .form-select { width: auto; max-width: none; flex: 1 1 auto; }
  .perm-board { grid-template-columns: 1fr; }
  .po-ticket-head { flex-direction: column; }
}
.inv-kpis { margin-bottom: 1rem; }
.inv-kpis .dash-kpi.is-on { box-shadow: 0 8px 20px rgba(16, 24, 32, .06); }
.inv-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1.5fr) repeat(5, minmax(8.5rem, 1fr)) auto;
  gap: .55rem;
  align-items: end;
}
.inv-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.inv-filters .mk-lookup-wrap { min-width: 10rem; }
.report-table th a { color: inherit; text-decoration: none; }
.report-table th a:hover { color: var(--mk-accent); }
@media (max-width: 1100px) {
  .inv-filters { grid-template-columns: 1fr 1fr; }
}
.report-search { max-width: 16rem; }
.report-table td { vertical-align: middle; }
.text-end .money { justify-content: flex-end; width: 100%; }
@media (max-width: 900px) {
  .report-layout { grid-template-columns: 1fr; }
  .report-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: .35rem; }
  .report-nav-group { flex: 1 1 100%; }
  .report-nav-label { margin-bottom: .3rem; }
  .report-link { display: inline-flex; }
  .report-search { max-width: none; }
}
@media print {
  .app-sidebar, .app-topbar, .report-nav, .page-head, .report-toolbar, .report-search, .crumbs { display: none !important; }
  .report-layout { display: block; }
  .dash-kpi { break-inside: avoid; box-shadow: none; }
}
