.filter-form {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: .7rem;
  margin-bottom: 1rem;
}
.button-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.ui-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; overflow: visible; vertical-align: -.125em; }
.button .ui-icon { width: 1.02rem; height: 1.02rem; }
.nav .nav-icon { width: 19px; height: 19px; opacity: .78; transition: opacity .15s ease, transform .15s ease; }
.nav a:hover .nav-icon { opacity: 1; transform: translateX(1px); }
.logout-button { display: inline-flex; align-items: center; gap: .42rem; cursor: pointer; }
.logout-button .ui-icon { width: .9rem; height: .9rem; }
.credentialing-manage { display: flex !important; align-items: center; gap: .45rem; }
.credentialing-manage .ui-icon { width: .9rem; height: .9rem; }
.switcher-chevron .ui-icon { display: block; width: 1rem; height: 1rem; }
.mobile-nav .ui-icon { display: block; width: 1.12rem; height: 1.12rem; margin: 0 auto .2rem; }
.result-box { background: var(--green-100); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.2rem; }
.result-name { min-height: 0; }
.small-title { font-size: 1rem; margin-top: 0; }
.spaced { margin-top: 1.5rem !important; }
.muted-copy { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.summary-empty { padding: 1.5rem 0; }
.notice-spaced { margin: 1.2rem 0; }
.single-card { width: min(480px, calc(100% - 2rem)); margin: auto; }
.sidebar-user form { margin: 0; }
.sidebar,
.button-primary,
.eyebrow,
.brand-mark { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

.credentialing-switcher { position: relative; margin: 0 0 .7rem; }
.credentialing-switcher > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  min-height: 64px;
  padding: .45rem;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  list-style: none;
}
.credentialing-switcher > summary::-webkit-details-marker { display: none; }
.credentialing-switcher > summary:hover,
.credentialing-switcher[open] > summary { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.credentialing-switcher .brand-mark { width: 42px; height: 42px; border-color: color-mix(in srgb, var(--green-650) 60%, #fff); background: color-mix(in srgb, var(--green-650) 28%, transparent); }
.credentialing-current { display: grid; gap: .15rem; min-width: 0; }
.credentialing-current small { color: rgba(255,255,255,.48); font-size: .56rem; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.credentialing-current strong { overflow: hidden; color: #fff; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.switcher-chevron { color: rgba(255,255,255,.62); font-size: .9rem; transition: transform .18s; }
.credentialing-switcher[open] .switcher-chevron { transform: rotate(180deg); }
.credentialing-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + .45rem);
  left: 0;
  width: 310px;
  padding: .55rem;
  border: 1px solid #dce6e3;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 55px rgba(5, 34, 30, .22);
}
.credentialing-menu-label { display: block; padding: .35rem .5rem .55rem; color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credentialing-menu > a:not(.credentialing-manage) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .67rem .62rem; border-radius: 10px; }
.credentialing-menu > a:hover,
.credentialing-menu > a.active { background: color-mix(in srgb, var(--green-100) 58%, #fff); }
.credentialing-menu a i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent); }
.credentialing-menu a span { display: grid; gap: .16rem; min-width: 0; }
.credentialing-menu a strong { font-size: .74rem; }
.credentialing-menu a small { overflow: hidden; color: var(--muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.credentialing-menu a b { color: var(--green-800); font-size: .75rem; }
.credentialing-manage { display: block; margin-top: .4rem; padding: .65rem; border-top: 1px solid var(--line); color: var(--green-800); font-size: .68rem; font-weight: 800; text-align: center; }
.mobile-credentialing-switcher { display: none; position: relative; }
.vehicle-option[hidden] { display: none; }
.python-runtime { font-size: .65rem; color: var(--muted); }

.admin-tabs {
  display: flex;
  gap: .4rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.6rem;
  padding: .35rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(13, 55, 49, .04);
}
.admin-tabs a {
  flex: 0 0 auto;
  padding: .62rem .85rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 780;
}
.admin-tabs a:hover { color: var(--green-800); background: #f1f7f5; }
.admin-tabs a.active { color: #fff; background: var(--green-800); }
.admin-heading { margin-bottom: 1.35rem; }
.admin-stats { margin-bottom: 1.6rem; }
.online-number { color: var(--green-800); }
.section-head > div { min-width: 0; }
.section-copy { margin: .3rem 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.admin-table td { min-width: 105px; }
.admin-table td:first-child { min-width: 210px; }
.admin-table td:last-child { min-width: auto; text-align: right; }
.cell-sub-block { display: inline-block; margin-top: 0; }
.button-small { min-height: 34px; padding: .48rem .7rem; font-size: .72rem; }
.presence { display: inline-flex; align-items: center; gap: .42rem; color: #71817e; font-size: .73rem; font-weight: 780; white-space: nowrap; }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: #a5b1af; box-shadow: 0 0 0 4px rgba(165, 177, 175, .12); }
.presence-online { color: #087060; }
.presence-online i { background: #1eaf8e; box-shadow: 0 0 0 4px rgba(30, 175, 142, .12); }
.presence-suspended { color: #9b565b; }
.presence-suspended i { background: #c45c63; box-shadow: 0 0 0 4px rgba(196, 92, 99, .10); }
.department-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.department-chips span { padding: .24rem .45rem; border-radius: 7px; color: #2d5a53; background: #edf5f3; font-size: .65rem; font-weight: 780; white-space: nowrap; }
.department-chips .chip-muted { color: var(--muted); background: #f1f3f3; font-weight: 650; }
.admin-edit-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); }
.admin-help-card { position: sticky; top: 94px; }
.admin-help-card h2 { margin: .45rem 0 .8rem; font-size: 1.25rem; }
.admin-help-card p { margin: 0 0 1rem; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.switch-card { display: flex; align-items: flex-start; gap: .75rem; margin: 1.2rem 0; padding: .9rem; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfa; cursor: pointer; }
.switch-card input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: .15rem; accent-color: var(--green-800); }
.switch-card span { display: grid; gap: .18rem; }
.switch-card strong { font-size: .82rem; }
.switch-card small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.checkbox-field > ul { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.checkbox-field > ul li label { display: flex; align-items: flex-start; gap: .55rem; height: 100%; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: .74rem; line-height: 1.4; cursor: pointer; }
.checkbox-field input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: .08rem; accent-color: var(--green-800); }
.position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .75rem; margin-top: 1.2rem; }
.lot-create-panel { margin-bottom: 1.6rem; }
.lot-create-form { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr) auto; gap: 0 .8rem; align-items: end; }
.lot-create-form .field { margin: 0; }
.lot-create-form .button { min-height: 45px; }

.credentialing-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .36fr); gap: 1rem; align-items: start; }
.credentialing-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.credentialing-card { position: relative; overflow: hidden; padding: 1.1rem; }
.credentialing-card.current { border-color: color-mix(in srgb, var(--card-primary) 58%, #fff); box-shadow: 0 10px 28px color-mix(in srgb, var(--card-primary) 11%, transparent); }
.credentialing-card-stripe { position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--card-primary), var(--card-accent)); }
.credentialing-card-head { display: flex; align-items: center; gap: .7rem; margin: .25rem 0 .8rem; }
.credentialing-card-head > div { min-width: 0; }
.credentialing-card-head h3 { margin: 0; overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.credentialing-card-mark { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--card-primary); font-weight: 850; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.current-context-label { display: inline-flex; margin-top: .15rem; color: var(--card-primary); font-size: .58rem; font-weight: 820; text-transform: uppercase; }
.credentialing-card > p { min-height: 3.2em; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.credentialing-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .9rem; padding: .75rem 0; border-block: 1px solid var(--line); }
.credentialing-card-stats span { color: var(--muted); font-size: .58rem; }
.credentialing-card-stats strong { display: block; margin-bottom: .12rem; color: var(--ink); font-size: .88rem; }
.credentialing-card-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.credentialing-create-card { position: sticky; top: 94px; }
.credentialing-create-card > h2 { margin: .45rem 0 .5rem; font-size: 1.15rem; }
.credentialing-create-card > p { margin: 0 0 1rem; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.color-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.color-field input[type="color"] { min-height: 48px; padding: .28rem; cursor: pointer; }
.credentialing-preview-banner { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; padding: 1rem; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--preview-primary), color-mix(in srgb, var(--preview-primary) 72%, var(--preview-accent))); }
.credentialing-preview-banner span { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.38); border-radius: 11px; background: rgba(255,255,255,.12); font-weight: 850; }
.credentialing-preview-banner strong { font-size: .9rem; }

.provider-profile-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  align-items: start;
}
.profile-sections { display: grid; gap: 1rem; min-width: 0; }
.profile-card { padding: clamp(1.1rem, 2.2vw, 1.65rem); }
.profile-card-title {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.profile-card-title h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.profile-card-title p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.profile-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: var(--green-800);
  font-size: .72rem;
  font-weight: 850;
}
.profile-card-icon .ui-icon { width: 17px; height: 17px; }
.profile-card textarea { min-height: 92px; resize: vertical; }
.term-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 0 .75rem; }
.profile-card input[type="file"] {
  min-height: auto;
  padding: .55rem;
  border: 1px dashed #a9c7c0;
  background: #f7fbfa;
}
.profile-card input[type="file"]::file-selector-button {
  margin-right: .7rem;
  padding: .55rem .7rem;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green-800);
  font: inherit;
  font-size: .72rem;
  font-weight: 760;
  cursor: pointer;
}
.document-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .7rem;
  padding: .8rem;
  border: 1px solid #cfe1dd;
  border-radius: 11px;
  background: #f4faf8;
}
.document-card > div { display: grid; gap: .2rem; min-width: 0; margin-right: auto; }
.document-card strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.document-card small { color: var(--muted); font-size: .67rem; }
.document-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #9e3137;
  background: #f9e8e9;
  font-size: .61rem;
  font-weight: 900;
}
.document-icon .ui-icon { width: 21px; height: 21px; }
.text-link { display: inline-flex; align-items: center; gap: .3rem; }
.text-link .ui-icon { width: .86rem; height: .86rem; transition: transform .15s ease; }
.text-link:hover .ui-icon { transform: translateX(2px); }
.remove-document {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin: 0 0 1rem;
  color: #8f4b50;
  font-size: .7rem;
  cursor: pointer;
}
.remove-document input { width: 15px; height: 15px; accent-color: #a34249; }
.empty-document { margin-bottom: 1rem; padding: .8rem; border-radius: 10px; color: var(--muted); background: #f3f6f5; font-size: .72rem; }
.provider-profile-actions { display: grid; gap: .7rem; }
.provider-profile-actions h2 { margin-bottom: 0; }
.provider-profile-actions p { margin-bottom: .35rem; }
.provider-profile-actions .button { width: 100%; }
.provider-profile-actions .notice { margin-top: .35rem; }

.provider-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.provider-admin-card { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem; }
.provider-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.provider-card-head > div { min-width: 0; }
.provider-card-head h3 { margin: .28rem 0 .12rem; overflow-wrap: anywhere; font-size: 1.05rem; }
.provider-card-head p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.provider-type { color: var(--green-800); font-size: .63rem; font-weight: 820; letter-spacing: .055em; text-transform: uppercase; }
.profile-completeness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin: 1rem 0;
  padding: .55rem .65rem;
  border-radius: 9px;
  color: #7f6a3a;
  background: #fff7e3;
  font-size: .67rem;
  font-weight: 780;
}
.profile-completeness.complete { color: #126457; background: #eaf7f3; }
.profile-completeness > div { display: flex; gap: .22rem; }
.profile-completeness i { width: 19px; height: 4px; border-radius: 999px; background: rgba(113, 103, 73, .18); }
.profile-completeness i.filled { background: #29a88c; }
.provider-card-info { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin: 0; padding: 0; }
.provider-card-info div { min-width: 0; }
.provider-card-info dt { margin-bottom: .18rem; color: var(--muted); font-size: .61rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.provider-card-info dd { margin: 0; overflow-wrap: anywhere; color: #28423e; font-size: .73rem; font-weight: 720; line-height: 1.4; }
.expired-label { display: inline-flex; margin-left: .25rem; padding: .12rem .3rem; border-radius: 5px; color: #a13d44; background: #fae9ea; font-size: .56rem; font-weight: 850; text-transform: uppercase; }
.provider-card-lots { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.provider-card-lots > span { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .61rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.provider-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1rem; }
.provider-card-footer > span { color: var(--muted); font-size: .68rem; }
.provider-card-footer > span strong { margin-left: .2rem; color: var(--ink); font-size: .9rem; }

.log-filter-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .75fr auto; gap: .7rem; align-items: end; margin-bottom: 1.35rem; }
.log-filter-grid .field { margin: 0; }
.log-filter-grid .button { min-height: 45px; }
.audit-list { overflow: hidden; }
.audit-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-marker { width: 10px; height: 10px; margin-top: .3rem; border-radius: 50%; background: #8fa39f; box-shadow: 0 0 0 5px rgba(143, 163, 159, .1); }
.audit-marker.login { background: #1eaf8e; box-shadow: 0 0 0 5px rgba(30, 175, 142, .1); }
.audit-marker.logout { background: #c58348; box-shadow: 0 0 0 5px rgba(197, 131, 72, .1); }
.audit-marker.service { background: #3c83b5; box-shadow: 0 0 0 5px rgba(60, 131, 181, .1); }
.audit-main { min-width: 0; }
.audit-title { display: flex; flex-wrap: wrap; gap: .25rem .55rem; font-size: .76rem; }
.audit-title span { color: #526762; }
.audit-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .32rem; color: var(--muted); font-size: .64rem; }
.audit-meta span + span::before { content: "•"; margin-right: .8rem; color: #b5c1bf; }
.audit-main p { margin: .5rem 0 0; color: var(--muted); font-size: .7rem; }
.audit-user-link { margin-top: .05rem; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1rem; color: var(--muted); font-size: .7rem; }

.dashboard-heading { margin-bottom: 1.35rem; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.dashboard-kpi { position: relative; overflow: hidden; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(13, 55, 49, .045); }
.dashboard-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #9cb2ad; }
.dashboard-kpi > span { display: flex; align-items: center; gap: .35rem; min-height: 2.25em; color: var(--muted); font-size: .64rem; font-weight: 760; line-height: 1.35; text-transform: uppercase; }
.dashboard-kpi > span .ui-icon { width: .8rem; height: .8rem; }
.dashboard-kpi strong { display: block; margin: .35rem 0 .22rem; font-size: 1.75rem; letter-spacing: -.045em; }
.dashboard-kpi small { display: block; overflow: hidden; color: #81928e; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi.kpi-progress::before { background: #3c83b5; }
.dashboard-kpi.kpi-danger::before { background: #c84f58; }
.dashboard-kpi.kpi-danger strong { color: #ad3942; }
.dashboard-kpi.kpi-success::before { background: #1eaf8e; }
.dashboard-kpi.kpi-success strong { color: #087060; }
.insight-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.insight-card { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem; border: 1px solid #d6e2df; border-radius: 12px; background: #f8fbfa; }
.insight-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; color: #536a65; background: #e5edeb; font-size: .7rem; font-weight: 900; }
.insight-symbol .ui-icon { width: 15px; height: 15px; }
.insight-card strong { display: block; margin-bottom: .18rem; font-size: .72rem; }
.insight-card p { margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.insight-danger { border-color: #efd1d3; background: #fff7f7; }
.insight-danger .insight-symbol { color: #a6373f; background: #f9e0e2; }
.insight-warning { border-color: #eadbb5; background: #fffbf1; }
.insight-warning .insight-symbol { color: #8a652b; background: #f7eac9; }
.insight-success { border-color: #c5e4dc; background: #f2fbf8; }
.insight-success .insight-symbol { color: #087060; background: #d9f2eb; }
.dashboard-main-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.dashboard-secondary-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.dashboard-panel { min-width: 0; padding: 1.15rem; }
.dashboard-total { color: var(--green-800); font-size: .68rem; font-weight: 800; }
.status-breakdown { display: grid; gap: .75rem; margin-top: 1rem; }
.status-breakdown-row { display: grid; grid-template-columns: minmax(115px, .85fr) minmax(100px, 1.4fr) 34px; align-items: center; gap: .65rem; }
.status-breakdown-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .68rem; }
.status-breakdown-row > div:first-child strong { color: var(--ink); }
.status-breakdown-row > small { color: var(--muted); font-size: .6rem; text-align: right; }
.progress-track { overflow: hidden; height: 7px; border-radius: 999px; background: #edf1f0; }
.progress-track i { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: #92a6a2; }
.progress-track i.status-pending { background: #d29a48; }
.progress-track i.status-progress { background: #3c83b5; }
.progress-track i.status-hold { background: #8c6aab; }
.progress-track i.status-completed { background: #1eaf8e; }
.dashboard-note { margin-top: 1rem; padding: .65rem .75rem; border-radius: 9px; color: #6f6652; background: #fbf5e8; font-size: .66rem; }
.monthly-chart { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: .6rem; height: 205px; padding-top: 1rem; }
.month-column { display: grid; grid-template-rows: auto 1fr auto; align-items: end; gap: .35rem; height: 100%; text-align: center; }
.month-column strong { color: #536a65; font-size: .67rem; }
.month-column > span { color: var(--muted); font-size: .59rem; text-transform: uppercase; }
.month-bar-track { display: flex; align-items: end; justify-content: center; height: 100%; border-radius: 7px; background: linear-gradient(180deg, rgba(237, 245, 243, .25), #edf5f3); }
.month-bar-track i { width: min(26px, 66%); min-height: 3px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #38b99d, #087060); }
.deadline-list { margin: .3rem -1.15rem -1.15rem; }
.deadline-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .75rem 1.15rem; border-top: 1px solid var(--line); color: var(--ink); }
.deadline-row:hover { background: #f8fbfa; }
.deadline-row.overdue { background: #fff9f9; }
.deadline-row.due-soon { background: #fffdf7; }
.deadline-date { display: grid; place-items: center; width: 40px; height: 43px; border: 1px solid #dce5e3; border-radius: 9px; background: #fff; }
.deadline-date strong { font-size: .9rem; line-height: 1; }
.deadline-date small { color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.deadline-row > span:nth-child(2) { display: grid; gap: .2rem; min-width: 0; }
.deadline-row > span:nth-child(2) strong { overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.deadline-row > span:nth-child(2) small { color: var(--muted); font-size: .61rem; }
.workload-list { display: grid; margin-top: .3rem; }
.workload-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.workload-row:last-child { border-bottom: 0; }
.workload-row > span:first-child { display: grid; gap: .18rem; min-width: 0; }
.workload-row strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.workload-row small { color: var(--muted); font-size: .61rem; }
.workload-count { flex: 0 0 auto; padding: .25rem .45rem; border-radius: 7px; color: #657773; background: #eef3f2; font-size: .59rem; font-weight: 780; }
.workload-count.has-overdue { color: #a43840; background: #fae7e8; }
.compact-empty { padding: 1.3rem .5rem; }
.dashboard-lot-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lot-service-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin: .9rem 0; padding: .65rem 0; border-block: 1px solid var(--line); }
.lot-service-stats span { color: var(--muted); font-size: .59rem; text-align: center; }
.lot-service-stats strong { display: block; margin-bottom: .12rem; color: var(--ink); font-size: .82rem; }
.danger-text, .danger-text strong { color: #ad3942 !important; }
.service-status { display: inline-flex; align-items: center; width: fit-content; padding: .27rem .48rem; border-radius: 7px; color: #62736f; background: #edf1f0; font-size: .61rem; font-weight: 800; white-space: nowrap; }
.service-status.status-pending { color: #805d28; background: #fbefd6; }
.service-status.status-progress { color: #285f87; background: #e3f0f8; }
.service-status.status-hold { color: #684c82; background: #eee6f5; }
.service-status.status-completed { color: #087060; background: #ddf3ed; }
.service-status.status-overdue { color: #a43840; background: #fae4e6; }
.service-status.status-cancelled { color: #8b5c31; background: #f4e9dd; }
.recent-activity-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.recent-activity-list > div:last-child { border-bottom: 0; }
.activity-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #fff; background: var(--green-800); font-size: .7rem; font-weight: 850; }
.recent-activity-list > div > span:nth-child(2) { display: grid; gap: .15rem; }
.recent-activity-list strong { font-size: .71rem; }
.recent-activity-list small, .recent-activity-list time { color: var(--muted); font-size: .62rem; }

.referral-filter-form { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 190px auto; gap: .7rem; margin-bottom: 1rem; }
.service-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 1rem; align-items: start; }
.service-vehicle-card { position: sticky; top: 94px; }
.service-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.service-timeline { display: grid; gap: 0; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.service-timeline > div { display: grid; grid-template-columns: auto 1fr; gap: .65rem; position: relative; min-height: 55px; }
.service-timeline > div:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 15px; bottom: 0; width: 2px; background: #e0e8e6; }
.service-timeline i { z-index: 1; width: 12px; height: 12px; margin-top: .15rem; border: 3px solid #dce5e3; border-radius: 50%; background: #fff; }
.service-timeline .done i { border-color: #1eaf8e; background: #1eaf8e; }
.service-timeline > div span { display: grid; align-content: start; gap: .2rem; }
.service-timeline strong { font-size: .69rem; }
.service-timeline small { color: var(--muted); font-size: .61rem; }
.service-progress-panel { margin-top: 1rem; }
.service-progress-form { display: grid; grid-template-columns: 220px 200px minmax(240px, 1fr) auto; gap: .8rem; align-items: end; }
.service-progress-form .field { margin: 0; }
.service-progress-form textarea { min-height: 78px; resize: vertical; }
.service-progress-form .button { min-height: 45px; margin-bottom: 0; }
.service-readonly-notes { padding: .9rem; border-radius: 10px; color: var(--muted); background: #f3f6f5; font-size: .73rem; line-height: 1.6; white-space: pre-wrap; }

.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #eef4f2;
  color: var(--ink);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(500px, 1.08fr);
}
.auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4.75rem);
  color: #fff;
  background:
    radial-gradient(circle at 18% 88%, rgba(48, 196, 164, .28), transparent 29%),
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .10), transparent 23%),
    linear-gradient(145deg, #042d29 0%, #075348 54%, #087363 100%);
}
.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
}
.auth-brand::before { width: 420px; height: 420px; right: -240px; top: -120px; }
.auth-brand::after { width: 230px; height: 230px; right: -85px; top: -25px; }
.auth-brand-top { display: flex; align-items: center; gap: .9rem; position: relative; z-index: 1; }
.auth-brand-top div { display: grid; gap: .2rem; }
.auth-brand-top strong { font-size: .94rem; letter-spacing: -.01em; }
.auth-brand-top span:not(.auth-logo) { color: rgba(255, 255, 255, .62); font-size: .75rem; }
.auth-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 14px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  font-size: 1.3rem;
  font-weight: 850;
}
.auth-brand-copy { position: relative; z-index: 1; max-width: 590px; margin: clamp(4rem, 10vh, 8rem) 0; }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .35rem .65rem;
  border: 1px solid rgba(159, 227, 213, .26);
  border-radius: 999px;
  color: #a8eadc;
  background: rgba(255, 255, 255, .06);
  font-size: .69rem;
  font-weight: 820;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.auth-brand-copy h1 {
  max-width: 650px;
  margin: 1.35rem 0 1.15rem;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: .99;
  letter-spacing: -.057em;
  text-wrap: balance;
}
.auth-brand-copy > p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .72); font-size: 1.03rem; line-height: 1.7; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 2rem; }
.auth-benefits span { display: flex; align-items: center; gap: .45rem; color: rgba(255, 255, 255, .82); font-size: .78rem; font-weight: 650; }
.auth-benefits i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #063b35; background: #9fe3d5; font-size: .66rem; font-style: normal; font-weight: 900; }
.auth-benefits i .ui-icon { width: 11px; height: 11px; }
.auth-brand-foot { display: flex; align-items: center; gap: .55rem; position: relative; z-index: 1; color: rgba(255, 255, 255, .55); font-size: .73rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #62dfba; box-shadow: 0 0 0 5px rgba(98, 223, 186, .10); }

.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: clamp(1.5rem, 5vw, 5rem); background: #f8fbfa; }
.auth-card { width: min(440px, 100%); }
.auth-card-wide { width: min(620px, 100%); }
.auth-header { margin-bottom: 2rem; }
.auth-header h2 { margin: .55rem 0 .45rem; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -.045em; }
.auth-header p { margin: 0; color: var(--muted); line-height: 1.6; }
.auth-form .field { margin-bottom: 1.05rem; }
.auth-form .field label { color: #27443f; font-size: .79rem; }
.auth-form .field input,
.auth-form .field select {
  min-height: 50px;
  border-color: #cbdad6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 55, 49, .02);
}
.auth-form .field input::placeholder { color: #9aaaa6; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.field-label-row > span { color: #899995; font-size: .67rem; }
.field-error { color: #a32f38; font-size: .74rem; line-height: 1.4; }
.auth-submit {
  min-height: 50px;
  margin-top: .35rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(11, 95, 84, .18);
}
.auth-submit-icon { display: grid; place-items: center; margin-left: auto; }
.auth-submit-icon .ui-icon { width: 1.12rem; height: 1.12rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; color: #8b9b97; font-size: .7rem; }
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: #dce6e3; }
.auth-create-button { min-height: 48px; border: 1px solid #b8d4ce; border-radius: 12px; color: var(--green-800); background: #f3faf8; }
.auth-create-button:hover { border-color: var(--green-650); background: var(--green-100); }
.auth-security { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.7rem; padding-top: 1.25rem; border-top: 1px solid #e1eae8; }
.auth-security p { margin: 0; color: #7c8e8a; font-size: .7rem; line-height: 1.5; }
.auth-security strong { color: #536a65; }
.auth-shield { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 8px; color: var(--green-800); background: var(--green-100); font-size: .72rem; font-weight: 900; }
.auth-shield .ui-icon { width: 15px; height: 15px; }

.auth-brand-register .auth-brand-copy h1 { font-size: clamp(2.35rem, 4.5vw, 4.5rem); }
.auth-role-card { display: flex; gap: .85rem; margin-top: 2rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, .13); border-radius: 15px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); }
.auth-role-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; color: #063b35; background: #9fe3d5; font-weight: 900; }
.auth-role-icon .ui-icon { width: 19px; height: 19px; }
.auth-role-card strong { display: block; margin-bottom: .3rem; font-size: .83rem; }
.auth-role-card p { margin: 0; color: rgba(255, 255, 255, .64); font-size: .72rem; line-height: 1.55; }
.auth-back-link { display: inline-flex; align-items: center; gap: .45rem; position: relative; z-index: 1; width: fit-content; color: rgba(255, 255, 255, .68); font-size: .76rem; font-weight: 700; }
.auth-back-link:hover { color: #fff; }
.auth-panel-register { padding-block: 2rem; }
.auth-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-span-2 { grid-column: 1 / -1; }
.password-rule { margin: -.1rem 0 1rem; padding: .75rem .85rem; border-radius: 10px; color: #61726f; background: #edf4f2; font-size: .72rem; line-height: 1.5; }
.password-rule strong { color: #38504c; }
.auth-account-link { margin: 1.25rem 0 0; color: var(--muted); text-align: center; font-size: .78rem; }
.auth-account-link a { color: var(--green-800); font-weight: 800; }
.auth-account-link a { display: inline-flex; align-items: center; gap: .32rem; }
.auth-account-link .ui-icon { width: .9rem; height: .9rem; }
.auth-centered { display: grid; place-items: center; padding: 2rem; }
.auth-centered .auth-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .log-filter-grid { grid-template-columns: 1fr 1fr; }
  .log-filter-grid .button { width: 100%; }
  .service-progress-form { grid-template-columns: 1fr 1fr; }
  .service-notes-field { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 1.5rem; }
  .auth-brand-copy { margin: 3.5rem 0 2rem; }
  .auth-brand-copy h1 { max-width: 650px; font-size: clamp(2.2rem, 8vw, 3.4rem); }
  .auth-brand-copy > p { max-width: 650px; }
  .auth-brand-foot { display: none; }
  .auth-panel { min-height: auto; padding: 2.5rem 1.25rem 3.5rem; }
  .auth-brand-register .auth-brand-copy { margin-bottom: 1.5rem; }
  .credentialing-admin-layout { grid-template-columns: 1fr; }
  .credentialing-create-card { position: static; }
}

@media (max-width: 560px) {
  .auth-brand { padding: 1.25rem; }
  .auth-brand-copy { margin: 2.1rem 0 .85rem; }
  .auth-brand-copy h1,
  .auth-brand-register .auth-brand-copy h1 { font-size: clamp(1.9rem, 9vw, 2.25rem); overflow-wrap: break-word; }
  .auth-brand-copy > p { font-size: .9rem; line-height: 1.55; }
  .auth-benefits { display: none; }
  .auth-role-card { display: none; }
  .auth-panel { padding: 2rem 1.1rem 3rem; }
  .auth-header { margin-bottom: 1.5rem; }
  .auth-field-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .field-label-row > span { display: none; }
}

@media (max-width: 760px) {
  .filter-form { grid-template-columns: 1fr; }
  .button-row { width: 100%; }
  .button-row .button { flex: 1; }
  .admin-tabs { width: 100%; margin-bottom: 1.2rem; }
  .dashboard-kpis, .insight-strip, .dashboard-main-grid, .dashboard-secondary-grid { grid-template-columns: 1fr; }
  .referral-filter-form, .service-detail-grid, .service-progress-form { grid-template-columns: 1fr; }
  .service-vehicle-card { position: static; }
  .service-summary-grid { grid-template-columns: 1fr; }
  .service-notes-field { grid-column: auto; }
  .deadline-row { grid-template-columns: auto minmax(0, 1fr); }
  .deadline-row .service-status { grid-column: 2; }
  .audit-row { grid-template-columns: auto minmax(0, 1fr); }
  .audit-user-link { grid-column: 2; }
  .admin-edit-layout { grid-template-columns: 1fr; }
  .provider-profile-layout, .provider-card-grid { grid-template-columns: 1fr; }
  .admin-help-card { position: static; }
  .checkbox-field > ul, .position-grid, .term-grid { grid-template-columns: 1fr; }
  .document-card { align-items: flex-start; flex-wrap: wrap; }
  .document-card .button { width: 100%; }
  .lot-create-form { grid-template-columns: 1fr; gap: .9rem; }
  .lot-create-form .button { width: 100%; }
  .mobile-nav { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .topbar-identity { display: none; }
  .mobile-credentialing-switcher { display: block; }
  .mobile-credentialing-switcher > summary { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; font-size: .72rem; font-weight: 800; list-style: none; cursor: pointer; }
  .mobile-credentialing-switcher > summary::-webkit-details-marker { display: none; }
  .mobile-credentialing-switcher > summary i { width: 9px; height: 9px; border-radius: 50%; }
  .mobile-credentialing-switcher > summary span { color: var(--muted); }
  .mobile-credentialing-switcher > div { position: absolute; z-index: 40; top: calc(100% + .35rem); left: 0; width: min(280px, calc(100vw - 2rem)); padding: .45rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .mobile-credentialing-switcher a { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem; border-radius: 8px; color: var(--muted); font-size: .7rem; }
  .mobile-credentialing-switcher a.active { color: var(--green-800); background: var(--green-100); }
  .credentialing-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .dashboard-kpis { grid-template-columns: 1fr 1fr; }
  .dashboard-kpi:last-child { grid-column: 1 / -1; }
  .monthly-chart { gap: .25rem; }
  .log-filter-grid { grid-template-columns: 1fr; }
  .lot-service-stats { grid-template-columns: 1fr; gap: .55rem; }
  .color-field-grid { grid-template-columns: 1fr; }
}
