:root {
  --navy: #10233f;
  --blue: #2457d6;
  --blue-soft: #eaf0ff;
  --ink: #172033;
  --muted: #68758b;
  --line: #dfe5ef;
  --surface: #ffffff;
  --background: #f3f6fb;
  --green: #198754;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.global-progress {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 7px 18px 7px 20px;
  color: white;
  background: rgba(16, 35, 63, .96);
  box-shadow: 0 8px 24px rgba(16, 35, 63, .2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.global-progress.visible { display: flex; }
.global-progress-bar {
  position: relative;
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.global-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb34d, #ffffff, #4f7aeb);
  animation: progress-slide 1.05s ease-in-out infinite;
}
@keyframes progress-slide {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(245%); }
}
.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #10233f, #2457d6); }
.login-screen.hidden { display: none; }
.login-card { width: min(430px, 100%); background: white; border-radius: 18px; padding: 34px; box-shadow: 0 30px 100px rgba(0,0,0,.3); display: grid; gap: 17px; }
.login-brand { color: var(--navy); padding: 0 0 14px; }
.login-copy { color: var(--muted); margin: -8px 0 0; }
.login-card .primary { width: 100%; }
.demo-login { text-align: center; color: var(--muted); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--navy); color: white;
  display: flex; flex-direction: column; padding: 28px 18px 20px; z-index: 2;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent;
}
.sidebar:hover { scrollbar-color: rgba(255,255,255,.28) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #ffb34d; color: var(--navy); font-weight: 900; overflow: hidden; }
.brand-logo { width: 82px; background: white; }
.brand-logo img { width: 76px; max-height: 34px; display: block; object-fit: contain; }
.brand strong, .brand small, .user-card strong, .user-card small { display: block; }
.brand small { color: #9fb0c8; margin-top: 2px; }
nav { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: #c8d2e1; padding: 12px 14px; border-radius: 9px; text-align: left; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item.active { box-shadow: inset 3px 0 #ffb34d; }
.nav-item.muted { opacity: .45; cursor: default; }
.nav-heading { color: #71839c; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; padding: 24px 14px 8px; }
.user-card { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 8px 0; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.user-card small { color: #91a3bd; margin-top: 3px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2d4770; font-weight: 800; }
.logout-button { margin-left: auto; border: 0; color: #afbdd0; background: transparent; font-size: 20px; }
main { margin-left: 250px; padding: 0 42px 55px; max-width: 1600px; }
header { height: 116px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 800; margin: 0 0 5px; }
h1 { margin: 0; font-size: 28px; }
h2, h3, p { margin-top: 0; }
button { cursor: pointer; }
.primary, .secondary, .light-button, .link-button { border-radius: 9px; padding: 11px 17px; border: 1px solid transparent; font-weight: 750; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: #1949bf; }
.secondary { background: white; color: var(--ink); border-color: var(--line); }
.secondary.active { background: var(--blue-soft); color: var(--blue); border-color: #b9c9ff; box-shadow: inset 0 0 0 1px #b9c9ff; }
.view { display: none; }
.view.active { display: block; }
.hero { min-height: 270px; padding: 44px 48px; border-radius: 18px; color: white; background: linear-gradient(125deg,#183760 0%,#2457d6 65%,#4f7aeb 100%); display: flex; align-items: flex-end; justify-content: space-between; box-shadow: 0 14px 40px rgba(20,49,94,.16); }
.hero h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; margin: 18px 0 16px; }
.hero p { color: #d7e2ff; max-width: 650px; margin-bottom: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.pill { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: rgba(255,255,255,.13); padding: 8px 10px; border-radius: 999px; }
.light-button { color: var(--blue); background: white; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 22px 0; }
.metrics article, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 14px rgba(17,34,67,.04); }
.metrics article { padding: 20px 22px; }
.metrics span, .metrics small { color: var(--muted); display: block; }
.metrics span { font-size: 13px; font-weight: 700; }
.metrics strong { display: block; font-size: 26px; margin: 9px 0 4px; }
.metrics small { font-size: 11px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.budget-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: -6px 0 22px; }
.budget-summary article { padding: 18px 22px; border-radius: 12px; background: #eef4ff; border: 1px solid #d6e2ff; }
.budget-summary span, .budget-summary small { display: block; color: var(--muted); }
.budget-summary span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.budget-summary strong { display: block; font-size: 23px; margin: 7px 0 3px; color: var(--navy); }
.budget-summary small { font-size: 11px; }
.panel { overflow: hidden; }
.compact-panel { margin-bottom: 18px; }
.panel-heading { padding: 21px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 20px; }
.panel-heading h3 { margin: 0 0 5px; font-size: 17px; }
.panel-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.text-button { color: var(--blue); border: 0; background: transparent; font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: 10px; text-align: left; background: #fafbfe; }
th, td { padding: 14px 24px; border-bottom: 1px solid #edf0f5; }
tr:last-child td { border-bottom: 0; }
td { font-size: 13px; }
.request-id { color: var(--blue); font-weight: 800; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: #fff4d9; color: #936800; }
.status.completed { background: #e3f6eb; color: #137347; }
.status.matched, .status.approved { background: #e3f6eb; color: #137347; }
.status.mismatch { background: #fff0d5; color: #a65d00; }
.status.rejected { background: #fde4e4; color: #b42318; }
.spaced-detail { display: block; margin-top: 0.35rem; }
.claim-cell-main { display: block; font-weight: 800; line-height: 1.25; }
.claim-cell-sub { display: block; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.muted { color: var(--muted); }
.claim-history summary { color: var(--blue); font-weight: 800; cursor: pointer; white-space: nowrap; }
.claim-history ul { margin: 8px 0 0; padding-left: 16px; min-width: 260px; }
.claim-history li { margin: 0 0 7px; line-height: 1.35; }
.claim-call-lookup { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fbff; }
.claim-lookup-result { display: grid; gap: 12px; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.claim-route-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-row article { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.metric-row span, .metric-row small { color: var(--muted); display: block; }
.metric-row span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-row strong { display: block; margin: 6px 0 3px; color: var(--ink); }
.claim-card-action { margin-top: 10px; }
.lookup-badge { display: inline-flex !important; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 7px; border-radius: 999px; font-size: 10px !important; letter-spacing: 0; text-transform: none !important; vertical-align: middle; }
.lookup-badge.verified { color: #14783e; background: #e4f8ed; }
.lookup-badge.unverified { color: #b42318; background: #fee4e2; }
.lookup-badge.warning { color: #a15c00; background: #fff2cc; }
.site-admin-table th:nth-child(3),
.site-admin-table td:nth-child(3) { min-width: 280px; }
.site-address-cell { line-height: 1.45; color: var(--ink); }
.verification-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.verification-badge.verified { background: #e3f6eb; color: #137347; }
.verification-badge.pending,
.verification-badge.warning { background: #fff0d5; color: #a65d00; }
.selection-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; }
.selection-tools label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin: 0; }
.selection-tools small { color: var(--muted); }

.tab-strip {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  border: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.claim-manual-entry {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f7f9fc;
  border-radius: 12px;
}

.cost-summary-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.draggable-map {
  min-height: 260px;
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
}
.empty { color: var(--muted); text-align: center; padding: 45px; }
.request-types { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 13px; margin-bottom: 18px; }
.type-card { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 18px; text-align: left; min-height: 130px; }
.type-card:hover, .type-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.type-card span { display: grid; place-items: center; width: 37px; height: 37px; background: var(--blue-soft); color: var(--blue); border-radius: 9px; font-size: 11px; font-weight: 900; margin-bottom: 13px; }
.type-card strong, .type-card small { display: block; }
.type-card small { color: var(--muted); margin-top: 5px; line-height: 1.35; }
.form-panel { overflow: visible; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; padding: 24px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; color: #405069; }
input, select, textarea { width: 100%; border: 1px solid #cfd7e5; border-radius: 8px; padding: 11px 12px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[readonly] { background: #f2f5fa; color: #526078; cursor: not-allowed; }
textarea { min-height: 92px; resize: vertical; }
.currency-input { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid #cfd7e5; border-radius: 8px; background: white; overflow: hidden; }
.currency-input span { padding: 11px 12px; color: var(--muted); font-weight: 800; background: #f6f8fc; border-right: 1px solid #dfe5ef; font-size: 14px; }
.currency-input input { border: 0; border-radius: 0; }
.currency-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.currency-input:focus-within input { box-shadow: none; }
.currency-preview { color: var(--muted); font-weight: 700; }
.wide { grid-column: 1 / -1; }
.form-subheading { margin: 6px 0 -4px; color: var(--navy); }
.preview { margin: 0 24px 20px; background: #f7f9fd; border: 1px dashed #bdc9da; border-radius: 10px; padding: 17px; }
.preview span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 900; }
.preview strong { display: block; margin-top: 7px; }
.preview p { white-space: pre-wrap; color: var(--muted); font-size: 12px; line-height: 1.55; margin: 10px 0 0; max-height: 130px; overflow: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 18px 24px; }
.error { margin: 0 24px 18px; padding: 12px; border-radius: 8px; background: #fff0f0; color: #a52929; font-size: 13px; }
.documents { margin: 0 24px 20px; border: 1px solid var(--line); border-radius: 11px; padding: 18px; }
.documents-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.documents-heading h3 { margin: 0 0 5px; font-size: 15px; }
.documents-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.add-files { display: inline-flex; background: var(--blue-soft); color: var(--blue); padding: 10px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.add-files input { display: none; }
.document-list { display: grid; gap: 8px; margin-top: 15px; }
.document-empty { color: var(--muted); padding: 12px; text-align: center; background: #f8fafd; border-radius: 8px; font-size: 12px; }
.document-row { display: grid; grid-template-columns: minmax(160px, 1fr) 190px auto; gap: 10px; align-items: center; padding: 10px; background: #f8fafd; border-radius: 8px; }
.document-name { overflow: hidden; }
.document-name strong, .document-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-name small, .upload-note { color: var(--muted); font-size: 10px; }
.remove-file { border: 0; background: transparent; color: #b03737; font-weight: 800; }
.upload-note { display: block; margin-top: 10px; }
.search { max-width: 360px; }
.reference-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.reference-form-panel { position: sticky; top: 20px; }
#reference-form { display: grid; gap: 15px; padding: 22px; }
.active-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.active-check input { width: auto; }
.reference-actions { display: flex; justify-content: flex-end; gap: 9px; }
.reference-heading { align-items: flex-end; }
.reference-filters { display: flex; gap: 9px; }
.reference-filters select { min-width: 170px; }
.row-actions { display: flex; gap: 7px; }
.small-action { border: 1px solid var(--line); background: white; color: var(--blue); border-radius: 7px; padding: 6px 9px; font-size: 11px; font-weight: 800; }
.small-action.danger { color: #a52929; }
.rollup-card { border: 1px solid var(--line); border-radius: 12px; background: white; margin: 12px 24px; overflow: hidden; }
.rollup-card summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 900; display: flex; justify-content: space-between; gap: 12px; background: #f8fafd; }
.rollup-card summary::-webkit-details-marker { display: none; }
.rollup-card summary span { color: var(--muted); font-size: 12px; font-weight: 800; }
.rollup-card table { margin: 0; border-top: 1px solid var(--line); }
.incentive-notes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 16px; }
.incentive-notes span { background: #fff7e8; border: 1px solid #f7d9a6; border-radius: 999px; padding: 7px 10px; color: #805200; font-size: 12px; font-weight: 800; }
.age-warning { color: #b42318; font-weight: 900; }
.open-mail-priority-row { background: #fff1f1; }
.open-mail-priority-row td:first-child { border-left: 4px solid #dc2626; }
.open-mail-priority { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.order-actions { display: flex; gap: 4px; }
.order-button { min-width: 30px; font-size: 15px; padding: 4px 7px; line-height: 1; }
.order-button:disabled { opacity: .3; cursor: default; }
.payment-linked { color: var(--green); font-weight: 750; }
.payment-pending { color: #986b00; font-weight: 750; }
.create-payment { white-space: nowrap; background: var(--blue-soft); border-color: #c8d6ff; }
.lifecycle-subtitle { display: block; color: var(--muted); margin-top: 4px; }
.linked-records { margin-top: 8px; color: var(--muted); font-size: 11px; }
.linked-records summary { color: var(--blue); cursor: pointer; font-weight: 750; }
.linked-records div { margin-top: 4px; }
.inactive-row { opacity: .5; }
.template-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.template-list-panel { position: sticky; top: 20px; }
.template-list { display: grid; padding: 10px; gap: 6px; }
.template-list button { border: 0; background: transparent; text-align: left; border-radius: 8px; padding: 12px; color: var(--ink); }
.template-list button:hover, .template-list button.selected { background: var(--blue-soft); color: var(--blue); }
.template-list strong, .template-list small { display: block; }
.template-list small { color: var(--muted); margin-top: 4px; line-height: 1.35; }
.template-fields { display: grid; gap: 17px; padding: 23px; }
.template-fields label small { color: var(--muted); font-weight: 400; }
.recipient-field { min-height: 65px; }
.subject-field { min-height: 70px; }
.body-template-field { min-height: 310px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5; }
.token-panel { background: #f7f9fd; border: 1px solid var(--line); border-radius: 9px; padding: 15px; }
.token-panel p { color: var(--muted); font-size: 12px; margin: 5px 0 12px; }
.template-tokens { display: flex; flex-wrap: wrap; gap: 7px; }
.template-token { border: 1px solid #cbd8f7; background: white; color: var(--blue); border-radius: 999px; padding: 6px 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.template-preview { background: var(--navy); color: white; border-radius: 10px; padding: 18px; }
.template-preview span { color: #9eb2cf; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 900; }
.template-preview strong { display: block; margin: 8px 0 13px; }
.template-preview pre { margin: 0; white-space: pre-wrap; color: #dce6f5; font-family: inherit; font-size: 12px; line-height: 1.55; max-height: 280px; overflow: auto; }
.billing-entry-form { border-bottom: 1px solid var(--line); }
.billing-import-form { display: grid; grid-template-columns: 180px 180px minmax(260px, 1fr) auto; gap: 14px; padding: 22px; align-items: end; border-bottom: 1px solid var(--line); }
.report-file input { padding: 8px; }
.import-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 20px; }
.import-stat { border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: #f8fafd; }
.import-stat span, .import-stat small { display: block; color: var(--muted); }
.import-stat strong { display: block; font-size: 22px; margin: 5px 0; }
.import-actions { display: flex; justify-content: space-between; gap: 12px; padding: 0 20px 20px; align-items: center; }
.import-notice { margin: 0 20px 18px; padding: 12px 14px; border-radius: 8px; background: #eef4ff; color: #254f9b; font-weight: 700; font-size: 13px; }
.import-exceptions { margin: 0 20px 20px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.billing-review-panel { margin-top: 18px; overflow-x: auto; }
.billing-table { min-width: 1450px; }
.billing-table input, .billing-table select { min-width: 100px; padding: 7px; font-size: 11px; }
.billing-table td { vertical-align: top; }
.comparison { display: grid; gap: 3px; font-size: 11px; white-space: nowrap; }
.comparison span { color: var(--muted); }
.comparison strong { color: var(--ink); }
.customer-billing-groups { display: grid; gap: 12px; padding: 18px; }
.customer-billing-group { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: white; }
.customer-billing-group summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; background: #f8fafd; list-style: none; }
.customer-billing-group summary::-webkit-details-marker { display: none; }
.customer-billing-group summary strong { font-size: 15px; }
.customer-billing-group summary small { display: block; color: var(--muted); margin-top: 4px; }
.client-access-list { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px 18px; }
.client-access-list legend { color: var(--muted); font-size: 12px; font-weight: 700; padding: 0 6px; }
.client-access-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; min-height: 30px; }
.client-access-list input { width: 16px; height: 16px; margin: 0; }
.approval-metrics { grid-template-columns: repeat(4, 1fr); }
.approval-count { display: inline-flex; min-width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; }
.approval-count.waiting { background: #fff2d6; color: #8a5b00; }
.approval-count.approved { background: #def5e8; color: #147a49; }
#billing-approval-table td small { display: block; color: var(--muted); margin-top: 4px; }
.date-filter { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.date-filter label { min-width: 135px; }
.date-filter input { padding: 8px 10px; }
.operation-filter-row { margin: 0 0 14px 0; }
.table-actions { display: flex; gap: 7px; }
.small-action.danger { color: #a52929; border-color: #efc7c7; }
.danger-button { color: #a52929; border-color: #efc7c7; }
.mini-bar-chart { display: grid; gap: 9px; padding: 18px 24px 22px; }
.mini-bar-chart.compact { padding: 0; gap: 7px; }
.mini-bar-row { display: grid; grid-template-columns: minmax(95px, 160px) 1fr 48px; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; color: var(--ink); text-align: left; cursor: pointer; }
.mini-bar-row:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.mini-bar-label { font-weight: 800; font-size: 13px; }
.mini-bar-track { height: 10px; border-radius: 999px; background: #eef3fb; overflow: hidden; }
.mini-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #6ea8ff); }
.mini-bar-row strong { text-align: right; }
.operation-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 22px; }
.operation-mini-chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfdff; }
.operation-mini-chart h4 { margin-top: 0; }
.map-selection { border: 1px solid #bdd8c9; background: #eefaf3; color: #245d3e; border-radius: 8px; padding: 10px 12px; font-size: 12px; }
.map-selection a { color: var(--blue); font-weight: 750; }
.map-selection iframe { display: block; width: 100%; height: 190px; border: 0; border-radius: 8px; margin-top: 10px; }
.budget-metrics { padding: 0 22px; }
.budget-entry-panel, .budget-breakdown-panel, #employee-costs .panel + .panel { margin-top: 20px; }
.budget-breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 22px; }
.budget-breakdown-section { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fbfcff; }
.budget-breakdown-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: #eef4ff; border-bottom: 1px solid #d6e2ff; }
.budget-breakdown-total span { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.budget-breakdown-total strong { color: var(--navy); font-size: 20px; }
.budget-breakdown-row { border-bottom: 1px solid #edf0f5; }
.budget-breakdown-row:last-child { border-bottom: 0; }
.budget-breakdown-row summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; font-weight: 750; }
.budget-breakdown-row summary::marker { color: var(--blue); }
.budget-breakdown-items { padding: 0 18px 14px 36px; color: var(--muted); }
.budget-breakdown-items div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px dashed #e2e8f2; }
.budget-breakdown-items small { display: block; margin-top: 3px; color: var(--muted); }
#employee-table td small { display: block; color: var(--muted); margin-top: 3px; }
.group-count { margin-left: auto; border-radius: 999px; padding: 5px 9px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.billing-call-list { display: grid; }
.billing-call-row { display: grid; grid-template-columns: 150px 170px minmax(170px, 1fr) minmax(180px, 1.2fr) 120px 130px; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid #edf0f5; cursor: pointer; }
.billing-call-row:hover { background: #f7faff; }
.billing-call-row small { color: var(--muted); display: block; margin-top: 3px; }
.billing-detail-dialog { width: min(980px, calc(100vw - 30px)); max-width: none; padding: 0; text-align: left; }
.billing-detail-shell { margin: 0; }
.billing-detail-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.billing-detail-header h2 { margin: 0; }
.billing-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 22px 25px; }
.billing-detail-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #f8fafd; }
.billing-detail-card span { color: var(--muted); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.billing-detail-card strong { display: block; margin-top: 6px; }
.detail-inline-select { width: 100%; margin-top: 6px; padding: 9px 10px; background: white; }
.billing-total-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid #cbd8f7; background: #f3f7ff; border-radius: 10px; padding: 12px; }
.billing-total-box article { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.billing-total-box span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.billing-total-box strong { display: block; margin-top: 5px; font-size: 17px; color: var(--navy); }
.approval-section { padding: 18px 24px; border-top: 1px solid var(--line); }
.approval-section:first-child { border-top: 0; }
.approval-section h4 { margin: 0 0 12px; }
.approval-detail-panel { margin-top: 18px; }
.engineer-setup { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 800; }
.engineer-setup.ready { background: #e7f8ef; color: #16683c; border: 1px solid #bce8cf; }
.engineer-setup.missing { background: #ffecec; color: #9f2323; border: 1px solid #f3c4c4; }
.engineer-setup .small-action { background: white; }
.billing-detail-notes { padding: 0 25px 20px; display: grid; gap: 12px; }
.billing-detail-editor { border-top: 1px solid var(--line); padding: 20px 25px 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.billing-detail-editor .wide { grid-column: 1 / -1; }
.address-search-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.address-results { display: grid; gap: 7px; }
.address-result { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: white; text-align: left; color: var(--ink); }
.address-result:hover { border-color: var(--blue); background: var(--blue-soft); }
.address-result small { display: block; color: var(--muted); margin-top: 3px; }
.upload-progress { padding: 18px 22px; border-top: 1px solid var(--line); }
.upload-progress[hidden] { display: none; }
.progress-track { height: 12px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #2457d6, #62a1ff); transition: width .2s ease; }
.progress-bar.processing { width: 35%; animation: processing-progress 1.2s ease-in-out infinite alternate; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 8px; }
@keyframes processing-progress { from { transform: translateX(-80%); } to { transform: translateX(180%); } }
.billing-admin-heading select { max-width: 240px; }
.billing-admin-controls { display: flex; align-items: center; gap: 10px; }
.admin-table-filter { padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.admin-table-filter label { max-width: 280px; }
.billing-export-controls { display: flex; gap: 9px; }
.billing-admin-form-empty { padding: 25px; color: var(--muted); }
.drop-upload-zone {
  border: 1px dashed #b8c6da;
  border-radius: 12px;
  padding: 10px;
  transition: border-color .15s, background .15s;
}
.drop-upload-zone.drag-over {
  border-color: var(--blue);
  background: #eef5ff;
}
.drop-upload-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.onsite-engineer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 18px 24px 24px;
}
.onsite-engineer-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.onsite-engineer-option span {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.role-customer .internal-only, .role-customer .admin-only { display: none !important; }
.role-internal .admin-only { display: none !important; }
.role-operations .internal-only, .role-operations .admin-only { display: none !important; }
.role-operations .ops-access { display: block !important; }
.role-operations header .primary[data-view="new"] { display: none !important; }
dialog { border: 0; border-radius: 16px; padding: 34px; max-width: 430px; text-align: center; box-shadow: 0 24px 80px rgba(16,35,63,.3); }
dialog::backdrop { background: rgba(11,24,44,.55); }
.success-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--green); font-size: 25px; font-weight: 900; }
dialog p { color: var(--muted); line-height: 1.5; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
@media (max-width: 1050px) {
  .request-types, .budget-summary, .budget-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .global-progress { left: 0; }
  .sidebar { position: static; width: auto; padding: 16px; }
  .brand { padding-bottom: 12px; }
  nav { grid-template-columns: repeat(3, 1fr); }
  .nav-heading, .nav-item.muted, .user-card { display: none; }
  main { margin-left: 0; padding: 0 15px 35px; }
  header { height: 90px; }
  .hero { padding: 30px 25px; display: block; }
  .hero .light-button { margin-top: 25px; }
  .hero-actions { align-items: flex-start; }
  .request-types, .form-grid, .budget-summary, .budget-breakdown-grid, .client-access-list, .two-column, .metric-row { grid-template-columns: 1fr; }
  .reference-layout { grid-template-columns: 1fr; }
  .template-layout { grid-template-columns: 1fr; }
  .reference-form-panel { position: static; }
  .template-list-panel { position: static; }
  .reference-heading, .reference-filters { display: block; }
  .reference-filters > * { margin-top: 9px; max-width: none; width: 100%; }
  .documents-heading { display: block; }
  .add-files { margin-top: 14px; }
  .document-row { grid-template-columns: 1fr; }
  .billing-import-form, .import-summary, .billing-detail-grid, .billing-detail-editor { grid-template-columns: 1fr; }
  .billing-call-row { grid-template-columns: 1fr; }
  .address-search-line { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .panel { overflow-x: auto; }
  th, td { padding: 12px 14px; white-space: nowrap; }
}
.inline-upload {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-field-action {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.inline-field-action select,
.inline-field-action input {
  flex: 1;
}

.inline-field-action .secondary {
  white-space: nowrap;
}

.quote-lines-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.manual-quote-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
}
.manual-quote-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 12px;
}
.naresh-column-rollup {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 14px 0;
  overflow: hidden;
  background: #f8fbff;
}
.naresh-column-rollup summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--ink);
}
.naresh-column-rollup table {
  margin-top: 0;
  background: #fff;
}
.manual-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.quote-line {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) 100px minmax(220px, 2fr) minmax(130px, 1fr) 130px auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.manual-quote-line {
  grid-template-columns: minmax(220px, 1.6fr) minmax(130px, 1fr) 110px 140px 140px auto;
}

@media (max-width: 1100px) {
  .quote-line,
  .manual-quote-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
