:root {
  --navy-950: #0b1534;
  --navy-900: #111d42;
  --blue-600: #1769ff;
  --blue-500: #2e7bff;
  --blue-100: #dce9ff;
  --ice-50: #f5f9ff;
  --slate-900: #17213d;
  --slate-600: #69738f;
  --line: #dfe7f3;
  --success: #25bd75;
  --danger: #d9415d;
  --white: #fff;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 16px; }
body { margin: 0; min-height: 100vh; color: var(--slate-900); font-family: "Segoe UI", Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 42px);
  background: radial-gradient(circle at 9% 12%, rgba(23,105,255,.12), transparent 28%), radial-gradient(circle at 92% 86%, rgba(23,105,255,.1), transparent 24%), #edf4ff;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(390px,.84fr) minmax(500px,1.16fr);
  width: min(1240px,100%);
  min-height: min(790px,calc(100vh - 48px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 36px;
  box-shadow: 0 32px 90px rgba(28,65,125,.16);
}

.login-panel { display: flex; flex-direction: column; padding: clamp(34px,5vw,72px); background: rgba(255,255,255,.98); }
.brand { display: inline-flex; align-items: center; width: fit-content; color: var(--navy-900); text-decoration: none; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; color: var(--white); background: var(--blue-600); border-radius: 15px; box-shadow: 0 10px 25px rgba(23,105,255,.28); }
.brand-mark svg { width: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 1.25rem; letter-spacing: .12em; line-height: 1; }
.brand-copy span { color: var(--slate-600); font-size: .76rem; letter-spacing: .015em; }

.login-copy { margin-top: auto; padding-top: 58px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--blue-600); font-size: .76rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.login-copy h1 { margin: 0; color: var(--navy-950); font-size: clamp(2.25rem,4vw,3.2rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; }
.login-copy p { max-width: 420px; margin: 17px 0 0; color: var(--slate-600); font-size: 1rem; line-height: 1.65; }
.login-form { display: grid; gap: 23px; margin-top: 38px; }
.field-group { display: grid; gap: 9px; }
.field-group label, .label-row { color: var(--slate-900); font-size: .87rem; font-weight: 680; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.text-button { padding: 0; color: var(--blue-600); background: transparent; border: 0; cursor: pointer; font-size: .82rem; font-weight: 650; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 17px; width: 20px; color: #8190ad; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; pointer-events: none; }
.input-wrap input { width: 100%; height: 56px; padding: 0 50px; color: var(--navy-950); background: var(--ice-50); border: 1px solid var(--line); border-radius: 15px; outline: 0; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.input-wrap input::placeholder { color: #9ca7bb; }
.input-wrap input:focus { background: var(--white); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(23,105,255,.11); }
.input-wrap.has-error input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217,65,93,.09); }
.password-toggle { position: absolute; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; color: #74809b; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.password-toggle:hover { color: var(--blue-600); background: var(--blue-100); }
.password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.field-error { display: none; color: var(--danger); font-size: .77rem; }
.field-group.invalid .field-error { display: block; }
.remember-row { display: flex; align-items: center; width: fit-content; color: var(--slate-600); cursor: pointer; font-size: .86rem; gap: 10px; }
.remember-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-600); }
.primary-button { display: flex; align-items: center; justify-content: center; height: 57px; color: var(--white); background: linear-gradient(135deg,var(--blue-600),#0851de); border: 0; border-radius: 15px; box-shadow: 0 14px 26px rgba(23,105,255,.24); cursor: pointer; font-weight: 700; gap: 11px; transition: transform 160ms ease,box-shadow 160ms ease; }
.primary-button:hover { box-shadow: 0 17px 30px rgba(23,105,255,.32); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.support-copy { margin: auto 0 0; padding-top: 38px; color: var(--slate-600); font-size: .81rem; }
.support-copy a { color: var(--blue-600); font-weight: 650; text-decoration: none; }
.prototype-note { display: flex; align-items: center; margin: 15px 0 0; color: #8b96aa; font-size: .72rem; gap: 7px; }
.prototype-note span { width: 7px; height: 7px; background: #f2a93b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(242,169,59,.14); }

.login-visual { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(46px,5vw,72px); color: var(--white); background: linear-gradient(145deg,rgba(20,35,77,.12),transparent 38%),linear-gradient(145deg,#1d73ff 0%,#0b59e9 52%,#1537a7 100%); }
.login-visual::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom,rgba(0,0,0,.35),transparent 68%); }
.visual-orb { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.visual-orb-one { top: -130px; right: -90px; width: 390px; height: 390px; background: rgba(125,184,255,.22); }
.visual-orb-two { right: -50px; bottom: -120px; width: 300px; height: 300px; background: rgba(5,18,82,.3); }
.visual-header,.route-card,.metrics-grid,.visual-footer { position: relative; z-index: 1; }
.visual-kicker { display: block; margin-bottom: 12px; color: rgba(255,255,255,.72); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.visual-header h2 { max-width: 540px; margin: 0; font-size: clamp(2.15rem,4vw,3.55rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.03; }
.visual-header p { max-width: 530px; margin: 18px 0 0; color: rgba(255,255,255,.73); font-size: .97rem; line-height: 1.65; }

.route-card { margin-top: 46px; padding: 25px 27px 23px; color: var(--slate-900); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.72); border-radius: 24px; box-shadow: 0 22px 48px rgba(1,24,88,.26); }
.route-topline,.route-locations { display: flex; align-items: center; justify-content: space-between; }
.route-topline > div,.route-locations > div { display: grid; gap: 4px; }
.route-topline span:not(.status-pill),.route-locations span { color: var(--slate-600); font-size: .72rem; }
.route-topline strong { color: var(--navy-900); font-size: 1.05rem; }
.status-pill { display: inline-flex; align-items: center; padding: 8px 12px; color: #087948; background: #e1f8ed; border-radius: 999px; font-size: .72rem; font-weight: 700; gap: 7px; }
.status-pill i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(37,189,117,.15); }
.route-track { position: relative; height: 86px; margin: 3px 12px 0; }
.route-line { position: absolute; top: 46px; right: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--blue-600) 0 58%,#d8e2f2 58% 100%); border-radius: 99px; }
.route-node { position: absolute; top: 40px; width: 15px; height: 15px; background: var(--white); border: 3px solid #cbd7e8; border-radius: 50%; }
.route-node:first-of-type { left: -1px; }
.route-node:nth-of-type(2) { left: 57%; }
.route-node:nth-of-type(3) { right: -1px; }
.route-node.complete,.route-node.active { border-color: var(--blue-600); }
.route-node.active { box-shadow: 0 0 0 6px rgba(23,105,255,.12); }
.route-truck { position: absolute; top: 8px; left: calc(57% - 24px); width: 48px; color: var(--blue-600); fill: var(--blue-600); stroke: var(--white); stroke-width: 1.7; }
.route-locations strong { color: var(--navy-900); font-size: .78rem; }
.route-locations > div:last-child { text-align: right; }
.route-locations .route-time { text-align: center; }
.route-time strong { color: var(--blue-600); }

.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 17px; }
.metric-card { position: relative; display: grid; min-height: 148px; padding: 21px 22px; color: var(--slate-900); background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.65); border-radius: 22px; box-shadow: 0 15px 30px rgba(2,28,98,.15); }
.metric-card > span:not(.metric-icon) { color: var(--slate-600); font-size: .72rem; }
.metric-card strong { align-self: end; color: var(--blue-600); font-size: 2rem; letter-spacing: -.04em; }
.metric-card small { color: #8994aa; font-size: .68rem; }
.metric-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 35px; height: 35px; color: var(--blue-600); background: var(--blue-100); border-radius: 11px; }
.metric-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.accent-card { color: var(--white); background: var(--navy-900); border-color: rgba(255,255,255,.1); }
.accent-card > span:not(.metric-icon),.accent-card small { color: rgba(255,255,255,.62); }
.accent-card strong { color: var(--white); }
.accent-card .metric-icon { color: var(--white); background: rgba(255,255,255,.13); }
.visual-footer { display: flex; align-items: center; margin-top: auto; padding-top: 28px; }
.avatar-stack { display: flex; margin-right: 14px; }
.avatar-stack span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; color: var(--white); background: #163779; border: 2px solid #3a7eff; border-radius: 50%; font-size: .62rem; font-weight: 700; }
.avatar-stack span:first-child { margin-left: 0; background: #e68755; }
.avatar-stack span:nth-child(2) { background: #684bba; }
.visual-footer p { display: grid; margin: 0; gap: 2px; }
.visual-footer strong { font-size: .8rem; }
.visual-footer p span { color: rgba(255,255,255,.62); font-size: .7rem; }

.login-toast { position: fixed; right: 28px; bottom: 28px; z-index: 10; display: flex; align-items: center; width: min(390px,calc(100% - 36px)); padding: 16px 18px; color: var(--white); background: var(--navy-950); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 20px 45px rgba(5,16,45,.28); opacity: 0; pointer-events: none; transform: translateY(18px); transition: opacity 180ms ease,transform 180ms ease; gap: 13px; }
.login-toast.show { opacity: 1; transform: translateY(0); }
.login-toast svg { width: 24px; color: #55db9a; fill: none; stroke: currentColor; stroke-width: 2.2; }
.login-toast div { display: grid; gap: 3px; }
.login-toast strong { font-size: .84rem; }
.login-toast span { color: rgba(255,255,255,.66); font-size: .74rem; }

@media (max-width: 960px) {
  .login-page { padding: 0; place-items: stretch; }
  .login-shell { grid-template-columns: 1fr; width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
  .login-panel { min-height: 100vh; }
  .login-visual { display: none; }
  .login-copy { margin-top: auto; }
}

@media (max-width: 520px) {
  .login-panel { padding: 28px 22px; }
  .login-copy { padding-top: 50px; }
  .login-copy h1 { font-size: 2.35rem; }
  .login-form { margin-top: 30px; }
  .support-copy { text-align: center; }
  .prototype-note { justify-content: center; }
  .login-toast { right: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Dashboard approval prototype */
.dashboard-page { min-height: 100vh; background: #f1f6fd; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; height: 100vh; padding: 24px 16px 18px; color: var(--white); background: linear-gradient(180deg,#121e43 0%,#0c1736 100%); box-shadow: 12px 0 35px rgba(16,31,71,.08); }
.sidebar-brand { display: flex; align-items: center; min-height: 58px; padding: 0 10px; color: var(--white); text-decoration: none; gap: 12px; }
.sidebar-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--white); background: var(--blue-600); border-radius: 13px; box-shadow: 0 9px 22px rgba(23,105,255,.26); }
.sidebar-brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.sidebar-brand > span:last-child { display: grid; gap: 2px; }
.sidebar-brand strong { font-size: 1.02rem; letter-spacing: .12em; line-height: 1; }
.sidebar-brand small { color: rgba(255,255,255,.48); font-size: .63rem; letter-spacing: .02em; }
.sidebar-nav { overflow-y: auto; margin: 34px -4px 18px; padding: 0 4px 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section-label { display: block; padding: 0 12px 9px; color: rgba(255,255,255,.34); font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-section-gap { margin-top: 20px; }
.nav-link { position: relative; display: flex; align-items: center; min-height: 46px; margin-bottom: 4px; padding: 0 12px; color: rgba(230,237,255,.66); border-radius: 13px; text-decoration: none; font-size: .8rem; font-weight: 590; gap: 12px; transition: color 150ms ease,background 150ms ease,transform 150ms ease; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-link.active { color: var(--white); background: linear-gradient(135deg,#2b75f9,#175de2); box-shadow: 0 10px 23px rgba(1,54,160,.28); }
.nav-link.active::before { position: absolute; left: -4px; width: 3px; height: 20px; background: #75a8ff; border-radius: 99px; content: ""; }
.nav-link svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-link b { min-width: 23px; margin-left: auto; padding: 3px 6px; color: #b7d2ff; background: rgba(255,255,255,.09); border-radius: 99px; font-size: .62rem; text-align: center; }
.nav-link.active b { color: var(--white); background: rgba(255,255,255,.18); }
.sidebar-profile { display: flex; align-items: center; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.08); gap: 10px; }
.profile-avatar { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; color: var(--white); background: linear-gradient(135deg,#347dff,#734de8); border-radius: 12px; font-size: .7rem; font-weight: 750; }
.sidebar-profile > span:nth-child(2),.header-user > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.sidebar-profile strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { color: rgba(255,255,255,.42); font-size: .63rem; }
.sidebar-profile button { margin-left: auto; color: rgba(255,255,255,.44); background: transparent; border: 0; cursor: pointer; }
.app-main { min-width: 0; }
.app-header { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; height: 76px; padding: 0 clamp(24px,3vw,42px); background: rgba(255,255,255,.92); border-bottom: 1px solid #e5ecf6; backdrop-filter: blur(12px); }
.menu-toggle { display: none; place-items: center; width: 40px; height: 40px; margin-right: 13px; color: var(--navy-900); background: var(--ice-50); border: 1px solid var(--line); border-radius: 11px; }
.menu-toggle svg,.global-search svg,.notification-button svg,.create-button svg,.card-heading button svg,.text-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.global-search { display: flex; align-items: center; width: min(460px,48vw); color: #8c98ad; gap: 10px; }
.global-search input { width: 100%; color: var(--navy-900); background: transparent; border: 0; outline: 0; font-size: .84rem; }
.global-search input::placeholder { color: #929caf; }
.global-search kbd { padding: 4px 7px; color: #8e98a9; background: #f3f6fa; border: 1px solid #dfe6ef; border-radius: 6px; font-family: inherit; font-size: .62rem; white-space: nowrap; }
.header-actions { display: flex; align-items: center; margin-left: auto; gap: 14px; }
.notification-button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: #6f7b91; background: var(--ice-50); border: 1px solid #e5ebf4; border-radius: 12px; cursor: pointer; }
.notification-button i { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; background: #f45d76; border: 2px solid var(--white); border-radius: 50%; }
.header-divider { width: 1px; height: 32px; background: #e4eaf2; }
.header-user { display: flex; align-items: center; gap: 10px; }
.header-user strong { color: var(--navy-900); font-size: .74rem; }
.header-user small { color: var(--slate-600); font-size: .63rem; }
.dashboard-content { width: min(1480px,100%); margin: 0 auto; padding: 34px clamp(24px,3vw,42px) 48px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-eyebrow { display: block; margin-bottom: 7px; color: var(--blue-600); font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-heading h1 { margin: 0; color: var(--navy-950); font-size: clamp(1.7rem,2.6vw,2.35rem); letter-spacing: -.035em; line-height: 1.15; }
.dashboard-heading p { margin: 8px 0 0; color: var(--slate-600); font-size: .84rem; }
.create-button { display: flex; align-items: center; height: 45px; padding: 0 18px; color: var(--white); background: linear-gradient(135deg,var(--blue-600),#0d55dd); border: 0; border-radius: 12px; box-shadow: 0 10px 20px rgba(23,105,255,.2); cursor: pointer; font-size: .76rem; font-weight: 700; gap: 8px; text-decoration: none; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.summary-card { display: grid; min-height: 168px; padding: 20px; background: var(--white); border: 1px solid #e4ebf5; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,55,105,.045); }
.summary-card > span { margin-top: 13px; color: var(--slate-600); font-size: .72rem; }
.summary-card > strong { align-self: end; margin-top: 5px; color: var(--navy-950); font-size: 2rem; letter-spacing: -.035em; }
.summary-card > small { margin-top: 4px; color: #98a2b3; font-size: .65rem; }
.summary-top { display: flex; align-items: center; justify-content: space-between; }
.summary-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue-600); background: #e8f1ff; border-radius: 12px; }
.summary-icon svg,.pipeline-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.summary-icon.purple { color: #7658e9; background: #eeeaff; }
.summary-icon.green { color: #159966; background: #e2f7ee; }
.summary-icon.amber { color: #d78916; background: #fff2d8; }
.trend { padding: 5px 8px; color: var(--slate-600); background: #f3f6fa; border-radius: 99px; font-size: .59rem; font-weight: 700; }
.trend.up { color: #098459; background: #e3f8ef; }
.trend.attention { color: #b16e0a; background: #fff1d5; }
.blue-card { color: var(--white); background: linear-gradient(145deg,#2473fb,#1154d6); border-color: transparent; box-shadow: 0 16px 30px rgba(17,84,214,.2); }
.blue-card .summary-icon { color: var(--white); background: rgba(255,255,255,.16); }
.blue-card > span,.blue-card > small { color: rgba(255,255,255,.7); }
.blue-card > strong { color: var(--white); }
.blue-card .trend { color: var(--white); background: rgba(255,255,255,.15); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.8fr); gap: 18px; margin-top: 18px; }
.dashboard-card { background: var(--white); border: 1px solid #e4ebf5; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,55,105,.045); }
.operations-card,.attention-card { padding: 22px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading h2 { margin: 0; color: var(--navy-950); font-size: .95rem; }
.card-heading p { margin: 5px 0 0; color: #8b96a9; font-size: .67rem; }
.card-heading button,.text-action { display: flex; align-items: center; padding: 0; color: var(--blue-600); background: transparent; border: 0; cursor: pointer; font-size: .68rem; font-weight: 700; gap: 6px; white-space: nowrap; }
.card-heading button svg,.text-action svg { width: 15px; }
.pipeline-list { display: grid; gap: 8px; margin-top: 18px; }
.pipeline-row { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; min-height: 64px; padding: 9px 14px 12px 8px; overflow: hidden; background: #f8faff; border: 1px solid #edf1f7; border-radius: 13px; gap: 11px; }
.pipeline-row > i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--blue-600) var(--progress),#e5ebf4 var(--progress)); }
.pipeline-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--blue-600); background: #e7f0ff; border-radius: 12px; }
.pipeline-icon.quote { color: #795ae9; background: #eeeaff; }
.pipeline-icon.confirm { color: #d38712; background: #fff0d3; }
.pipeline-icon.delivery { color: #139568; background: #e1f6ed; }
.pipeline-row > div { display: grid; min-width: 0; gap: 3px; }
.pipeline-row strong { color: var(--navy-900); font-size: .72rem; }
.pipeline-row span:not(.pipeline-icon) { overflow: hidden; color: #8b96aa; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-row b { color: var(--navy-900); font-size: 1rem; }
.attention-count { display: grid; place-items: center; width: 30px; height: 30px; color: #bf3151; background: #ffe8ed; border-radius: 9px; font-size: .68rem; font-weight: 750; }
.attention-list { display: grid; margin-top: 17px; }
.attention-list a { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; padding: 15px 0; color: inherit; border-bottom: 1px solid #edf1f6; text-decoration: none; gap: 10px; }
.attention-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(23,105,255,.08); }
.attention-dot.red { background: #ec5270; box-shadow: 0 0 0 4px rgba(236,82,112,.1); }
.attention-dot.amber { background: #e7a22e; box-shadow: 0 0 0 4px rgba(231,162,46,.1); }
.attention-dot.blue { background: var(--blue-600); }
.attention-list div { display: grid; min-width: 0; gap: 4px; }
.attention-list strong { overflow: hidden; color: var(--navy-900); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.attention-list small { overflow: hidden; color: #909bad; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.attention-list time { color: #9aa4b4; font-size: .59rem; }
.text-action { margin-top: 17px; }
.project-table-card { margin-top: 18px; padding: 22px; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.project-table-card table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; }
.project-table-card th { padding: 11px 12px; color: #8b96a9; background: #f7f9fc; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-table-card th:first-child { border-radius: 9px 0 0 9px; }
.project-table-card th:last-child { border-radius: 0 9px 9px 0; }
.project-table-card td { padding: 15px 12px; color: #5f6c83; border-bottom: 1px solid #edf1f6; font-size: .65rem; }
.project-table-card td > strong,.project-table-card td > small { display: block; }
.project-table-card td > strong { color: var(--navy-900); font-size: .67rem; }
.project-table-card td > small { margin-top: 4px; color: #96a0b1; font-size: .57rem; }
.table-progress { width: 88px; height: 5px; overflow: hidden; background: #e8edf5; border-radius: 99px; }
.table-progress i { display: block; height: 100%; background: var(--blue-600); border-radius: inherit; }
.table-status { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 99px; font-size: .58rem; font-weight: 700; white-space: nowrap; }
.table-status.transit { color: #155cca; background: #e5efff; }
.table-status.delivery { color: #0f8059; background: #e0f6ec; }
.project-table-card td:last-child button { color: #7f8999; background: transparent; border: 0; cursor: pointer; }
.dashboard-toast { right: 24px; bottom: 24px; }
.sidebar-overlay { display: none; }

@media (max-width: 1180px) {
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 252px; transition: transform 180ms ease; }
  .nav-open .app-sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 19; display: block; visibility: hidden; background: rgba(7,16,40,.45); opacity: 0; transition: opacity 180ms ease,visibility 180ms ease; }
  .nav-open .sidebar-overlay { visibility: visible; opacity: 1; }
  .menu-toggle { display: grid; }
  .global-search { width: min(420px,55vw); }
}

@media (max-width: 640px) {
  .app-header { height: 68px; padding: 0 16px; }
  .global-search input,.global-search kbd,.header-user,.header-divider { display: none; }
  .global-search { width: 34px; }
  .dashboard-content { padding: 24px 16px 36px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading p { max-width: 250px; line-height: 1.5; }
  .create-button { width: 44px; padding: 0; justify-content: center; }
  .create-button span { display: none; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { min-height: 154px; padding: 16px; }
  .summary-card > strong { font-size: 1.7rem; }
  .trend { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .operations-card,.attention-card,.project-table-card { padding: 18px; }
}

@media (max-width: 430px) {
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 142px; }
}

/* Add enquiry */
.enquiry-content { width: min(1180px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.enquiry-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.titlebar-left { display: flex; align-items: center; min-width: 0; gap: 16px; }
.titlebar-left h1 { margin: 0; color: var(--navy-950); font-size: clamp(1.65rem,2.5vw,2.15rem); letter-spacing: -.035em; }
.titlebar-left p { margin: 7px 0 0; color: var(--slate-600); font-size: .78rem; line-height: 1.5; }
.back-button { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--navy-900); background: var(--white); border: 1px solid #dde5f0; border-radius: 12px; box-shadow: 0 6px 18px rgba(27,51,93,.06); }
.back-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.draft-pill { display: inline-flex; align-items: center; padding: 8px 12px; color: #8c620f; background: #fff1d4; border-radius: 99px; font-size: .66rem; font-weight: 700; gap: 7px; }
.draft-pill i { width: 7px; height: 7px; background: #e6a52c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(230,165,44,.13); }
.enquiry-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin: 28px 0 18px; padding: 17px 22px; background: var(--white); border: 1px solid #e2e9f3; border-radius: 17px; box-shadow: 0 7px 22px rgba(24,55,105,.035); }
.enquiry-progress > a { display: flex; align-items: center; color: #7e899e; text-decoration: none; gap: 9px; }
.enquiry-progress > a > span { display: grid; place-items: center; width: 30px; height: 30px; color: #7d899f; background: #eef2f7; border-radius: 9px; font-size: .67rem; font-weight: 750; }
.enquiry-progress > a.active > span { color: var(--white); background: var(--blue-600); box-shadow: 0 7px 16px rgba(23,105,255,.2); }
.enquiry-progress > a div { display: grid; gap: 2px; }
.enquiry-progress strong { color: var(--navy-900); font-size: .68rem; }
.enquiry-progress small { color: #9aa4b5; font-size: .56rem; }
.enquiry-progress > i { height: 1px; margin: 0 14px; background: #e1e7f0; }
.enquiry-form { display: grid; gap: 16px; }
.form-card { padding: 24px; background: var(--white); border: 1px solid #e2e9f3; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,55,105,.04); scroll-margin-top: 95px; }
.form-card-heading { display: flex; align-items: center; padding-bottom: 19px; border-bottom: 1px solid #edf1f6; gap: 12px; }
.form-card-heading > span { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; color: var(--blue-600); background: #e8f1ff; border-radius: 12px; }
.form-card-heading svg,.upload-icon svg,.form-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.form-card-heading div { display: grid; gap: 4px; }
.form-card-heading h2 { margin: 0; color: var(--navy-950); font-size: .9rem; }
.form-card-heading p { margin: 0; color: #8b96a9; font-size: .64rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.form-field { display: grid; align-content: start; gap: 8px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { color: #34405a; font-size: .68rem; font-weight: 680; }
.form-field label em { color: #e24968; font-style: normal; }
.form-field label span { color: #9aa4b5; font-size: .57rem; font-weight: 500; }
.form-field input,.form-field textarea,.form-field select { width: 100%; color: var(--navy-900); background: #f8faff; border: 1px solid #dfe6f0; border-radius: 11px; outline: none; font-size: .72rem; transition: border-color 150ms ease,box-shadow 150ms ease,background 150ms ease; }
.form-field input,.form-field select { height: 46px; padding: 0 13px; }
.form-field textarea { min-height: 76px; padding: 12px 13px; line-height: 1.5; resize: vertical; }
.form-field input::placeholder,.form-field textarea::placeholder { color: #a2acbd; }
.form-field input:focus,.form-field textarea:focus,.form-field select:focus { background: var(--white); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(23,105,255,.09); }
.form-field.invalid input,.form-field.invalid textarea,.form-field.invalid select { border-color: #e05570; box-shadow: 0 0 0 4px rgba(224,85,112,.08); }
.form-error { display: none; color: #cc3d59; font-size: .57rem; }
.form-field.invalid .form-error { display: block; }
.field-help { color: #97a2b4; font-size: .57rem; }
.optional-field-label { margin-left: 5px; padding: 3px 6px; color: #718096; background: #edf1f6; border-radius: 99px; font-size: .42rem; font-weight: 700; }
.driver-reference-preview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin-top: 9px; padding: 10px 11px; background: #eef5ff; border: 1px solid #d7e5fb; border-radius: 9px; gap: 9px; }
.driver-reference-preview[hidden] { display: none; }
.driver-reference-preview > span { display: grid; place-items: center; width: 30px; height: 30px; color: #1769ff; background: #fff; border-radius: 8px; }
.driver-reference-preview svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.driver-reference-preview p { display: grid; min-width: 0; margin: 0; gap: 2px; }
.driver-reference-preview strong { color: #354762; font-size: .51rem; }
.driver-reference-preview small { overflow: hidden; color: #74839a; font-size: .43rem; text-overflow: ellipsis; white-space: nowrap; }
.driver-reference-preview > b { padding: 5px 7px; color: #176d51; background: #dff2e9; border-radius: 99px; font-size: .4rem; white-space: nowrap; }
.phone-input,.suffix-input { position: relative; display: flex; align-items: center; }
.phone-input > span { position: absolute; left: 13px; padding-right: 11px; color: #536078; border-right: 1px solid #dce3ed; font-size: .69rem; font-weight: 650; }
.phone-input input { padding-left: 65px; }
.suffix-input > span { position: absolute; right: 12px; color: #8c97a9; font-size: .61rem; pointer-events: none; }
.suffix-input input { padding-right: 64px; }
.truck-selection-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 20px; margin-top: 20px; }
.truck-fields { margin-top: 0; }
.truck-preview { display: flex; flex-direction: column; min-height: 278px; padding: 19px; overflow: hidden; background: linear-gradient(145deg,#172650,#0f1938); border-radius: 16px; color: var(--white); }
.truck-visual { display: grid; place-items: center; height: 118px; margin-bottom: 13px; overflow: hidden; color: #70a9ff; background: #fff; border-radius: 11px; }
.truck-visual svg { width: 130px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.truck-visual img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.truck-visual [hidden] { display: none !important; }
.truck-preview-label { color: rgba(255,255,255,.48); font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.truck-preview h3 { margin: 6px 0 14px; font-size: .9rem; }
.truck-specs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.truck-specs div { display: grid; padding: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; gap: 4px; }
.truck-specs span { color: rgba(255,255,255,.45); font-size: .52rem; }
.truck-specs strong { font-size: .65rem; }
.capacity-alert { display: none; margin-top: 11px; padding: 10px 11px; color: #7a3510; background: #ffe8cc; border-radius: 10px; }
.capacity-alert.show { display: grid; gap: 3px; }
.capacity-alert strong { font-size: .62rem; }
.capacity-alert span { font-size: .54rem; line-height: 1.4; }
.route-form-grid { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 14px; margin-top: 20px; }
.route-side { display: grid; align-content: start; gap: 15px; padding: 18px; background: #f8faff; border: 1px solid #e7ecf4; border-radius: 14px; }
.route-side-title { display: flex; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #e4e9f1; gap: 10px; }
.route-side-title > i { width: 12px; height: 12px; flex: 0 0 12px; background: var(--blue-600); border: 3px solid #cfe0ff; border-radius: 50%; box-shadow: 0 0 0 3px #edf4ff; }
.delivery-side .route-side-title > i { background: #1a9e70; border-color: #c9efdf; box-shadow: 0 0 0 3px #ebf8f3; }
.route-side-title div { display: grid; gap: 2px; }
.route-side-title strong { color: var(--navy-900); font-size: .72rem; }
.route-side-title span { color: #96a0b1; font-size: .57rem; }
.route-connector { display: flex; flex-direction: column; align-items: center; padding: 22px 0; }
.route-connector span { width: 10px; height: 10px; background: var(--blue-600); border: 3px solid #d8e6ff; border-radius: 50%; }
.route-connector span:last-child { background: #1a9e70; border-color: #cceee1; }
.route-connector i { width: 1px; flex: 1; background: repeating-linear-gradient(to bottom,#aebbd0 0 4px,transparent 4px 8px); }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; margin-top: 20px; color: #59667d; background: #f8faff; border: 1.5px dashed #cbd7e8; border-radius: 14px; cursor: pointer; text-align: center; transition: border-color 150ms ease,background 150ms ease; }
.upload-zone:hover,.upload-zone.dragging { background: #f0f6ff; border-color: var(--blue-500); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 10px; color: var(--blue-600); background: #e4eeff; border-radius: 12px; }
.upload-zone strong { font-size: .68rem; }
.upload-zone u { color: var(--blue-600); text-underline-offset: 2px; }
.upload-zone small { margin-top: 5px; color: #99a3b4; font-size: .56rem; }
.file-list { display: grid; gap: 8px; margin-top: 10px; }
.file-chip { display: flex; align-items: center; padding: 10px 12px; color: #536078; background: #f5f8fc; border: 1px solid #e3e9f2; border-radius: 10px; font-size: .61rem; }
.file-chip strong { overflow: hidden; color: var(--navy-900); text-overflow: ellipsis; white-space: nowrap; }
.file-chip span { margin-left: auto; color: #96a0b1; }
.form-actions { position: sticky; bottom: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding: 15px 18px; background: rgba(255,255,255,.95); border: 1px solid #dfe7f2; border-radius: 16px; box-shadow: 0 -8px 30px rgba(28,55,99,.09); backdrop-filter: blur(12px); gap: 20px; }
.form-actions > p { display: flex; align-items: center; margin: 0; color: #8c97a9; font-size: .58rem; gap: 6px; }
.form-actions > p span { width: 7px; height: 7px; background: #e7a42a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(231,164,42,.12); }
.form-actions > p strong { color: #667288; }
.form-actions > div { display: flex; align-items: center; gap: 9px; }
.secondary-action,.primary-action { display: inline-flex; align-items: center; justify-content: center; height: 41px; padding: 0 15px; border-radius: 10px; text-decoration: none; cursor: pointer; font-size: .66rem; font-weight: 700; gap: 7px; }
.secondary-action { color: #59667d; background: var(--white); border: 1px solid #dbe3ee; }
.primary-action { color: var(--white); background: linear-gradient(135deg,var(--blue-600),#0c56dd); border: 0; box-shadow: 0 8px 18px rgba(23,105,255,.2); }
.secondary-action svg,.primary-action svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .truck-selection-grid { grid-template-columns: 1fr; }
  .truck-preview { min-height: auto; }
  .route-form-grid { grid-template-columns: 1fr; }
  .route-connector { flex-direction: row; height: 38px; padding: 0 32px; }
  .route-connector i { width: auto; height: 1px; background: repeating-linear-gradient(to right,#aebbd0 0 4px,transparent 4px 8px); }
}

@media (max-width: 700px) {
  .enquiry-content { padding: 24px 14px 90px; }
  .titlebar-left { align-items: flex-start; }
  .titlebar-left p { max-width: 270px; }
  .draft-pill { display: none; }
  .enquiry-progress { grid-template-columns: repeat(4,1fr); padding: 12px; }
  .enquiry-progress > i,.enquiry-progress small { display: none; }
  .enquiry-progress > a { flex-direction: column; text-align: center; gap: 5px; }
  .form-card { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.wide { grid-column: auto; }
  .truck-specs { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions > p { justify-content: center; }
  .form-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .primary-action { grid-column: 1 / -1; grid-row: 1; }
}

/* Vendor selection */
.vendor-content { width: min(1240px,100%); }
.workflow-steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin: 28px 0 18px; padding: 15px 22px; background: var(--white); border: 1px solid #e2e9f3; border-radius: 17px; box-shadow: 0 7px 22px rgba(24,55,105,.035); }
.workflow-steps > div { display: grid; grid-template-columns: 32px auto; align-items: center; column-gap: 10px; }
.workflow-steps > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; color: #7d899f; background: #eef2f7; border-radius: 10px; font-size: .66rem; font-weight: 750; }
.workflow-steps > div > span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.workflow-steps > div.complete > span { color: #16885f; background: #dff5eb; }
.workflow-steps > div.active > span { color: #fff; background: var(--blue-600); box-shadow: 0 7px 16px rgba(23,105,255,.2); }
.workflow-steps strong { color: var(--navy-900); font-size: .67rem; }
.workflow-steps small { color: #98a3b5; font-size: .55rem; }
.workflow-steps > i { height: 1px; margin: 0 18px; background: #dde5ef; }
.requirement-summary { display: grid; grid-template-columns: 1.05fr repeat(3,1fr); margin-bottom: 16px; overflow: hidden; background: linear-gradient(135deg,#15244b,#0d1734); border-radius: 17px; box-shadow: 0 10px 28px rgba(11,26,61,.12); }
.requirement-summary > div { position: relative; display: grid; grid-template-columns: 34px 1fr; padding: 19px 20px; border-left: 1px solid rgba(255,255,255,.08); column-gap: 10px; }
.requirement-summary > div:first-child { display: flex; align-items: flex-start; flex-direction: column; border-left: 0; }
.requirement-summary svg { grid-row: 1 / 4; width: 19px; height: 19px; margin-top: 2px; padding: 7px; box-sizing: content-box; color: #72aaff; background: rgba(78,143,255,.12); border-radius: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.requirement-summary span { color: rgba(255,255,255,.47); font-size: .54rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.requirement-summary strong { margin-top: 5px; color: #fff; font-size: .72rem; }
.requirement-summary small { margin-top: 3px; color: rgba(255,255,255,.48); font-size: .56rem; }
.summary-reference strong { font-size: .94rem; letter-spacing: .01em; }
.vendor-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; align-items: start; gap: 16px; }
.vendor-main { display: grid; min-width: 0; gap: 16px; }
.deadline-card .form-grid { margin-top: 17px; }
.vendor-directory { padding: 24px; background: var(--white); border: 1px solid #e2e9f3; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,55,105,.04); scroll-margin-top: 90px; }
.vendor-directory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.vendor-directory-heading h2 { margin: 3px 0 5px; color: var(--navy-950); font-size: 1rem; }
.vendor-directory-heading p { margin: 0; color: #8995a8; font-size: .63rem; line-height: 1.5; }
.sample-data-pill { flex: 0 0 auto; padding: 7px 10px; color: #6d778a; background: #f0f3f8; border-radius: 99px; font-size: .55rem; font-weight: 700; }
.vendor-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px; gap: 14px; }
.vendor-search { display: flex; align-items: center; width: min(390px,100%); height: 42px; padding: 0 12px; background: #f8faff; border: 1px solid #dfe6f0; border-radius: 11px; gap: 9px; }
.vendor-search svg { width: 17px; height: 17px; color: #8e99aa; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vendor-search input { width: 100%; color: var(--navy-900); background: transparent; border: 0; outline: 0; font-size: .66rem; }
.toggle-filter { display: flex; align-items: center; color: #57647b; font-size: .61rem; font-weight: 650; cursor: pointer; gap: 8px; white-space: nowrap; }
.toggle-filter input { position: absolute; opacity: 0; }
.toggle-filter > span { position: relative; width: 34px; height: 20px; background: #ccd5e2; border-radius: 99px; transition: background 150ms ease; }
.toggle-filter > span::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); content: ""; transition: transform 150ms ease; }
.toggle-filter input:checked + span { background: var(--blue-600); }
.toggle-filter input:checked + span::after { transform: translateX(14px); }
.match-legend { display: flex; align-items: center; margin-bottom: 10px; color: #8a95a8; font-size: .53rem; gap: 18px; }
.match-legend span { display: inline-flex; align-items: center; gap: 6px; }
.match-legend i { width: 7px; height: 7px; background: #1fa274; border-radius: 50%; }
.match-legend span:last-child i { background: #e2a233; }
.vendor-list { display: grid; gap: 10px; }
.vendor-card { position: relative; display: grid; grid-template-columns: 26px 43px minmax(0,1fr) auto; align-items: center; min-height: 128px; padding: 16px; background: #fbfcfe; border: 1px solid #e3e9f1; border-radius: 14px; transition: border-color 150ms ease,box-shadow 150ms ease,background 150ms ease; gap: 13px; }
.vendor-card[hidden] { display: none !important; }
.vendor-card.selected { background: #f7faff; border-color: #a9c8ff; box-shadow: 0 5px 18px rgba(23,105,255,.07); }
.vendor-checkbox { align-self: start; padding-top: 5px; cursor: pointer; }
.vendor-checkbox input { position: absolute; opacity: 0; }
.vendor-checkbox > span { display: grid; place-items: center; width: 20px; height: 20px; color: transparent; background: #fff; border: 1.5px solid #ccd6e4; border-radius: 6px; }
.vendor-checkbox svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.vendor-checkbox input:checked + span { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.vendor-avatar { display: grid; place-items: center; align-self: start; width: 43px; height: 43px; color: #225fba; background: #dceaff; border-radius: 12px; font-size: .68rem; font-weight: 800; }
.vendor-avatar.teal { color: #117a67; background: #d9f1eb; }
.vendor-avatar.orange { color: #a66318; background: #ffead2; }
.vendor-avatar.violet { color: #6d4bb0; background: #e9e0f9; }
.vendor-avatar.pink { color: #a33f6d; background: #f8dfeb; }
.vendor-info { min-width: 0; }
.vendor-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vendor-name-row h3 { margin: 0; color: var(--navy-950); font-size: .75rem; }
.auto-match,.partial-match { padding: 4px 7px; color: #147856; background: #def3e9; border-radius: 99px; font-size: .5rem; font-weight: 750; }
.partial-match { color: #986619; background: #fff0d6; }
.vendor-info > p { margin: 5px 0 8px; color: #929cad; font-size: .55rem; }
.match-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.match-chips span { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 7px; font-size: .51rem; font-weight: 650; gap: 4px; }
.match-chips svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.match-chips .positive { color: #167a59; background: #e7f6ef; }
.match-chips .warning { color: #99681e; background: #fff2dc; }
.driver-line { display: flex; margin-top: 9px; color: #8490a3; font-size: .53rem; gap: 7px; }
.driver-line strong { color: #536078; }
.vendor-capacity { display: grid; min-width: 104px; padding-left: 16px; border-left: 1px solid #e5eaf1; text-align: right; gap: 4px; }
.vendor-capacity span { color: #13835c; font-size: .52rem; font-weight: 700; }
.vendor-capacity strong { color: var(--navy-900); font-size: .8rem; }
.vendor-capacity small { color: #949eae; font-size: .5rem; }
.selection-panel { position: sticky; top: 86px; padding: 20px; background: #fff; border: 1px solid #e1e8f1; border-radius: 17px; box-shadow: 0 9px 26px rgba(24,55,105,.055); }
.selection-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #edf1f6; }
.selection-heading span { color: var(--navy-900); font-size: .73rem; font-weight: 750; }
.selection-heading strong { display: grid; place-items: center; width: 27px; height: 27px; color: #fff; background: var(--blue-600); border-radius: 8px; font-size: .65rem; }
.selection-panel ul { display: grid; margin: 14px 0; padding: 0; list-style: none; gap: 8px; }
.selection-panel li { position: relative; padding-left: 14px; overflow: hidden; color: #4b5870; font-size: .59rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.selection-panel li::before { position: absolute; top: 5px; left: 0; width: 6px; height: 6px; background: #1a9f70; border-radius: 50%; content: ""; }
.selection-panel li.empty-selection { color: #98a2b2; font-weight: 500; }
.selection-panel li.empty-selection::before { background: #b6bfcc; }
.add-vendor-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; color: var(--blue-600); background: #edf4ff; border: 1px dashed #9fc1fa; border-radius: 10px; cursor: pointer; font-size: .6rem; font-weight: 750; gap: 6px; }
.add-vendor-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.post-send-note { display: grid; margin: 14px 0; padding: 12px; color: #738097; background: #f6f8fc; border-radius: 10px; font-size: .53rem; line-height: 1.55; gap: 3px; }
.post-send-note strong { color: #42506a; font-size: .58rem; }
.notification-options { padding-top: 14px; border-top: 1px solid #edf1f6; }
.notification-options h3 { margin: 0 0 10px; color: var(--navy-900); font-size: .67rem; }
.notification-options label { display: flex; align-items: center; margin: 8px 0; color: #5a667c; font-size: .57rem; gap: 8px; }
.notification-options input { accent-color: var(--blue-600); }
.notification-options small { display: block; margin-top: 10px; color: #9aa4b5; font-size: .5rem; line-height: 1.45; }
.vendor-actions { grid-column: 1 / -1; margin-top: 16px; }
.vendor-actions button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }

@media (max-width: 1080px) {
  .requirement-summary { grid-template-columns: 1fr 1fr; }
  .requirement-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .requirement-summary > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .vendor-layout { grid-template-columns: 1fr; }
  .selection-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .selection-heading,.selection-panel ul,.add-vendor-button,.post-send-note { grid-column: 1; }
  .notification-options { grid-column: 2; grid-row: 1 / 5; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid #edf1f6; }
}

@media (max-width: 700px) {
  .workflow-steps { grid-template-columns: repeat(3,1fr); padding: 12px; }
  .workflow-steps > i { display: none; }
  .workflow-steps > div { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 4px; }
  .workflow-steps small { display: none; }
  .requirement-summary { grid-template-columns: 1fr; }
  .requirement-summary > div { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .requirement-summary > div:first-child { border-top: 0; }
  .vendor-directory { padding: 18px; }
  .vendor-toolbar { align-items: stretch; flex-direction: column; }
  .vendor-search { width: 100%; }
  .match-legend { align-items: flex-start; flex-direction: column; gap: 6px; }
  .vendor-card { grid-template-columns: 24px 40px minmax(0,1fr); align-items: start; padding: 14px; gap: 10px; }
  .vendor-capacity { grid-column: 2 / -1; grid-template-columns: auto auto 1fr; align-items: center; padding: 10px 0 0; border-top: 1px solid #e8edf3; border-left: 0; text-align: left; gap: 8px; }
  .vendor-capacity small { text-align: right; }
  .driver-line { align-items: flex-start; flex-direction: column; gap: 2px; }
  .selection-panel { display: block; }
  .notification-options { margin-top: 14px; padding: 14px 0 0; border-top: 1px solid #edf1f6; border-left: 0; }
  .vendor-actions > div { grid-template-columns: 1fr 1fr; }
  .vendor-actions .primary-action { grid-column: 1 / -1; }
}

/* Vendor, vehicle and driver creation */
.master-content { width: min(1120px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.master-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.master-titlebar h1 { margin: 0; color: var(--navy-950); font-size: clamp(1.65rem,2.5vw,2.15rem); letter-spacing: -.035em; }
.master-titlebar p { margin: 7px 0 0; color: var(--slate-600); font-size: .78rem; line-height: 1.5; }
.master-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0 16px; }
.master-tabs a { display: flex; align-items: center; min-height: 72px; padding: 14px 17px; color: #6f7b90; background: #fff; border: 1px solid #e0e7f1; border-radius: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(24,55,105,.035); gap: 11px; }
.master-tabs a > svg { width: 20px; height: 20px; padding: 9px; box-sizing: content-box; color: #7e8ba1; background: #f0f3f8; border-radius: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.master-tabs a > span { display: grid; gap: 3px; }
.master-tabs strong { color: var(--navy-900); font-size: .7rem; }
.master-tabs small { color: #99a3b4; font-size: .55rem; }
.master-tabs a.active { background: linear-gradient(135deg,#1d6eff,#0d58de); border-color: transparent; box-shadow: 0 9px 22px rgba(23,105,255,.19); }
.master-tabs a.active > svg { color: #fff; background: rgba(255,255,255,.15); }
.master-tabs a.active strong { color: #fff; }
.master-tabs a.active small { color: rgba(255,255,255,.63); }
.master-form { display: grid; gap: 16px; }
.vendor-registration-note { display: flex; align-items: center; margin-bottom: 16px; padding: 14px 17px; color: #28466f; background: #edf4ff; border: 1px solid #cee0fb; border-radius: 14px; gap: 12px; }
.vendor-registration-note > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; color: #fff; background: var(--blue-600); border-radius: 10px; }
.vendor-registration-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vendor-registration-note div { display: grid; gap: 3px; }
.vendor-registration-note strong { color: var(--navy-900); font-size: .66rem; }
.vendor-registration-note p { margin: 0; color: #74849a; font-size: .56rem; line-height: 1.45; }
.master-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.master-grid .wide { grid-column: 1 / -1; }
.section-required { align-self: flex-start; margin-left: auto; padding: 6px 9px; color: #185fca; background: #ebf3ff; border-radius: 7px; font-size: .51rem; font-weight: 750; }
.address-toggle-row { margin-top: -4px; }
.check-line { display: flex; align-items: center; min-height: 38px; cursor: pointer; gap: 9px; }
.check-line input { position: absolute; opacity: 0; }
.check-line > span { display: grid; place-items: center; width: 19px; height: 19px; color: transparent; background: #fff; border: 1.5px solid #cbd6e5; border-radius: 6px; }
.check-line svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.check-line input:checked + span { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.check-line strong { color: #58677d; font-size: .61rem; font-weight: 650; }
.mailing-address-field { transition: opacity 150ms ease; }
.mailing-address-field.is-disabled { opacity: .48; }
.required-choice-group { margin-top: 20px; padding: 15px; background: #f8faff; border: 1px solid #e4eaf2; border-radius: 13px; }
.required-choice-group.invalid { background: #fff9fa; border-color: #df8396; }
.choice-group-error { display: none; margin-top: 9px; color: #bc3e59; font-size: .53rem; font-weight: 650; }
.required-choice-group.invalid .choice-group-error { display: block; }
.country-coverage-options span { min-height: 38px; padding: 0 14px; }
.coverage-options { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-options label { cursor: pointer; }
.coverage-options input { position: absolute; opacity: 0; }
.coverage-options span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; color: #667287; background: #f5f7fb; border: 1px solid #dfe5ee; border-radius: 9px; font-size: .59rem; font-weight: 650; transition: all 150ms ease; }
.coverage-options input:checked + span { color: #155fcf; background: #e8f1ff; border-color: #9fc2fb; box-shadow: inset 0 0 0 1px rgba(23,105,255,.08); }
.fleet-type-list { display: grid; margin-top: 20px; gap: 10px; }
.fleet-type-row { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(140px,.65fr) 34px; align-items: end; padding: 14px; background: #f8faff; border: 1px solid #e4eaf2; border-radius: 13px; gap: 12px; }
.fleet-type-row .form-field { gap: 6px; }
.remove-fleet-row { width: 34px; height: 44px; color: #9a6070; background: #fff; border: 1px solid #e5d9df; border-radius: 9px; cursor: pointer; font-size: 1rem; }
.inline-add-button { display: inline-flex; align-items: center; height: 38px; margin-top: 12px; padding: 0 12px; color: var(--blue-600); background: #edf4ff; border: 1px dashed #9fc1fa; border-radius: 9px; cursor: pointer; font-size: .59rem; font-weight: 750; gap: 6px; }
.inline-add-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.fleet-total { display: flex; align-items: center; float: right; margin-top: 12px; padding: 8px 11px; color: #778298; background: #f5f7fa; border-radius: 9px; font-size: .56rem; gap: 8px; }
.fleet-total strong { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; color: #fff; background: var(--blue-600); border-radius: 7px; font-size: .62rem; }
.switch-field { display: flex; align-items: center; min-height: 46px; cursor: pointer; gap: 10px; }
.switch-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-field > span { position: relative; width: 39px; height: 22px; background: #cbd4e0; border-radius: 99px; transition: background 150ms ease; }
.switch-field > span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.18); content: ""; transition: transform 150ms ease; }
.switch-field input:checked + span { background: var(--blue-600); }
.switch-field input:checked + span::after { transform: translateX(17px); }
.switch-field strong { color: #617087; font-size: .61rem; font-weight: 650; }
.driver-master-content { width: min(1160px,100%); }
.vehicle-master-content { width: min(1160px,100%); }
.customer-master-content { width: min(1120px,100%); }
.customer-registration-summary { display: grid; grid-template-columns: repeat(3,1fr); margin: 26px 0 16px; overflow: hidden; background: linear-gradient(135deg,#152650,#0c1735); border-radius: 16px; box-shadow: 0 10px 28px rgba(11,26,61,.12); }
.customer-registration-summary > div { display: flex; align-items: center; padding: 17px 19px; border-left: 1px solid rgba(255,255,255,.09); gap: 11px; }
.customer-registration-summary > div:first-child { border-left: 0; }
.customer-registration-summary > div > span { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; color: #fff; background: rgba(255,255,255,.1); border-radius: 10px; }
.customer-registration-summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.customer-registration-summary p { display: grid; margin: 0; gap: 4px; }
.customer-registration-summary small { color: rgba(255,255,255,.46); font-size: .49rem; }
.customer-registration-summary strong { color: #fff; font-size: .61rem; }
.commercial-terms-card { border-color: #d7e2f1; }
.commercial-example { display: flex; align-items: center; margin-top: 16px; padding: 10px 12px; color: #6b7890; background: #f4f7fb; border-radius: 9px; font-size: .52rem; gap: 8px; }
.commercial-example strong { color: var(--blue-600); }
.customer-policy-alert { display: flex; align-items: flex-start; margin: 26px 0 12px; padding: 15px 17px; color: #725116; background: #fff5df; border: 1px solid #efd9a8; border-radius: 14px; gap: 12px; }
.customer-policy-alert > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: #fff; background: #d79a2a; border-radius: 10px; }
.customer-policy-alert svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.customer-policy-alert div { display: grid; gap: 4px; }
.customer-policy-alert strong { color: #68470d; font-size: .64rem; }
.customer-policy-alert p { margin: 0; font-size: .53rem; line-height: 1.6; }
.customer-section-index { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 16px; padding: 7px; background: #fff; border: 1px solid #e0e7f0; border-radius: 13px; box-shadow: 0 5px 18px rgba(24,55,105,.035); gap: 5px; }
.customer-section-index a { display: flex; align-items: center; justify-content: center; min-height: 36px; color: #6e7b90; border-radius: 8px; font-size: .49rem; font-weight: 700; text-decoration: none; gap: 5px; }
.customer-section-index a:hover { color: #155fcf; background: #edf4ff; }
.customer-section-index span { color: var(--blue-600); font-size: .46rem; }
.numbered-form-card { position: relative; scroll-margin-top: 88px; }
.form-section-number { position: absolute; top: 18px; right: 20px; color: #d7e5fa; font-size: 1.3rem; font-weight: 850; letter-spacing: -.04em; }
.numbered-form-card .form-card-heading { padding-right: 58px; }
.quantity-input { position: relative; }
.quantity-input input { width: 100%; padding-right: 70px; }
.quantity-input > span { position: absolute; top: 50%; right: 13px; color: #8793a6; font-size: .52rem; font-weight: 650; transform: translateY(-50%); }
.service-choice-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.service-choice-grid label { cursor: pointer; }
.service-choice-grid input { position: absolute; opacity: 0; }
.service-choice-grid label > span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 9px; color: #627087; background: #fff; border: 1px solid #dfe6ef; border-radius: 10px; gap: 7px; }
.service-choice-grid svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.service-choice-grid b { font-size: .51rem; }
.service-choice-grid input:checked + span { color: #155fcf; background: #eaf3ff; border-color: #91b9f8; }
.customer-billing-field { transition: opacity 150ms ease; }
.customer-billing-field.is-disabled { opacity: .48; }
.partner-list { display: grid; margin-top: 18px; gap: 10px; }
.partner-card { padding: 15px; background: #f8faff; border: 1px solid #e1e8f1; border-radius: 13px; }
.partner-card[hidden] { display: none !important; }
.partner-card-heading { display: flex; align-items: center; padding-bottom: 11px; border-bottom: 1px solid #e6ebf2; gap: 9px; }
.partner-card-heading > span { padding: 5px 7px; color: #fff; background: var(--blue-600); border-radius: 7px; font-size: .48rem; font-weight: 800; }
.partner-card-heading strong { color: #4d5b72; font-size: .57rem; }
.partner-card-heading button { margin-left: auto; color: #ad445a; background: transparent; border: 0; cursor: pointer; font-size: .5rem; font-weight: 700; }
.partner-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 13px; gap: 12px; }
.compact-file-upload { min-height: 46px; padding: 5px 8px; }
.compact-file-upload > span { width: 31px; height: 31px; }
.partner-ownership-summary { display: flex; align-items: center; float: right; margin-top: 12px; padding: 9px 11px; color: #7a879a; background: #f3f6fa; border-radius: 9px; font-size: .5rem; gap: 7px; }
.partner-ownership-summary strong { color: #45536b; }
.partner-ownership-summary strong b { color: var(--blue-600); }
.partner-ownership-summary small { padding-left: 8px; border-left: 1px solid #dce3ec; }
.partner-ownership-summary.invalid { color: #a93d54; background: #fff0f3; }
.partner-ownership-summary.invalid strong,.partner-ownership-summary.invalid strong b { color: #b43d56; }
.contact-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.contact-group:first-of-type { margin-top: 20px; padding-top: 0; border-top: 0; }
.contact-group-title { display: flex; align-items: center; margin-bottom: 11px; gap: 9px; }
.contact-group-title > span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--blue-600); background: #e7f0ff; border-radius: 8px; font-size: .49rem; font-weight: 800; }
.contact-group-title div { display: grid; gap: 2px; }
.contact-group-title strong { color: #3f4e66; font-size: .61rem; }
.contact-group-title small { color: #98a2b2; font-size: .48rem; }
.contact-record-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.contact-record { padding: 13px; background: #f8faff; border: 1px solid #e3e9f1; border-radius: 11px; }
.contact-record.optional { background: #fbfcfe; border-style: dashed; }
.contact-record > b { color: #516078; font-size: .54rem; }
.contact-record > b small { color: #9ba5b5; font-size: .45rem; font-weight: 600; }
.compact-contact-grid { margin-top: 10px; gap: 10px; }
.compact-contact-grid .form-field { gap: 5px; }
.contact-record.single { max-width: none; }
.operations-hours-grid { margin-top: 11px; }
.credit-mandatory-card { border-color: #cbdcf5; box-shadow: 0 9px 28px rgba(28,91,184,.06); }
.money-field { display: grid; grid-template-columns: 78px minmax(0,1fr); }
.money-field select,.money-field > span { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 8px; color: #516078; background: #edf2f8; border: 1px solid #dce4ee; border-right: 0; border-radius: 10px 0 0 10px; font-size: .55rem; font-weight: 700; }
.money-field input { border-radius: 0 10px 10px 0; }
.payment-method-options label > span { min-height: 58px; }
.credit-application-upload { background: #f1f6ff; border-color: #a8c6f5; }
.no-cash-banner { display: flex; align-items: center; margin-top: 16px; padding: 11px 13px; color: #8b3548; background: #fff0f3; border-radius: 10px; font-size: .52rem; gap: 9px; }
.no-cash-banner strong { font-size: .56rem; }
.no-cash-banner span { padding-left: 9px; border-left: 1px solid #edc8d0; }
.mandatory-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 18px; gap: 10px; }
.document-cross-check { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 12px; gap: 8px; }
.document-cross-check > div { display: flex; align-items: center; padding: 10px; color: #176f53; background: #eaf7f1; border-radius: 9px; gap: 8px; }
.document-cross-check > div > span { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; color: #fff; background: #20a176; border-radius: 6px; font-size: .5rem; }
.document-cross-check p { display: grid; margin: 0; gap: 2px; }
.document-cross-check strong { font-size: .5rem; }
.document-cross-check small { color: #679281; font-size: .44rem; }
.internal-approval-card { background: linear-gradient(180deg,#fff,#fbfdff); border-color: #c9d9ef; }
.internal-only-pill { margin-left: auto; padding: 6px 8px; color: #254f87; background: #e5effd; border-radius: 7px; font-size: .48rem; font-weight: 750; }
.approval-warning { display: flex; align-items: center; margin-top: 16px; padding: 11px 13px; color: #6c571e; background: #fff8e6; border-radius: 10px; gap: 9px; }
.approval-warning svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: #d49a2b; stroke-width: 1.8; }
.approval-warning p { display: grid; margin: 0; gap: 2px; }
.approval-warning strong { font-size: .55rem; }
.approval-warning span { font-size: .48rem; }
.customer-submit-actions { margin-top: 2px; }
.vehicle-configuration-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 20px; gap: 10px; }
.vehicle-configuration-options label { cursor: pointer; }
.vehicle-length-field { width: min(360px,100%); margin-top: 20px; }
.vehicle-length-field > div { position: relative; }
.vehicle-length-field input { width: 100%; padding-right: 62px; }
.vehicle-length-field > div > span { position: absolute; top: 50%; right: 14px; color: #8390a4; font-size: .55rem; font-weight: 650; transform: translateY(-50%); }
.derived-options { margin-top: 14px; }
.derived-options label { cursor: default; }
.vehicle-configuration-options input { position: absolute; opacity: 0; }
.vehicle-configuration-options label > span { position: relative; display: grid; min-height: 78px; padding: 14px 15px 14px 58px; background: #f8faff; border: 1px solid #dde5ef; border-radius: 13px; gap: 4px; }
.vehicle-configuration-options label > span::before { position: absolute; top: 27px; left: 20px; width: 20px; height: 20px; background: #fff; border: 1.5px solid #c5d1e1; border-radius: 50%; content: ""; }
.vehicle-configuration-options input:checked + span { background: #edf5ff; border-color: #80aff9; box-shadow: inset 0 0 0 1px rgba(23,105,255,.07); }
.vehicle-configuration-options input:checked + span::before { border: 6px solid var(--blue-600); }
.vehicle-configuration-options i { color: var(--blue-600); font-size: .53rem; font-style: normal; font-weight: 800; }
.vehicle-configuration-options b { color: #34435d; font-size: .65rem; }
.vehicle-configuration-options small { color: #929eaf; font-size: .5rem; }
.configuration-rule { display: flex; align-items: center; margin-top: 12px; padding: 11px 13px; color: #62718a; background: #f4f7fb; border-radius: 10px; font-size: .52rem; gap: 9px; }
.configuration-rule strong { color: #315887; font-size: .55rem; white-space: nowrap; }
.configuration-rule.separate { color: #76520f; background: #fff6e3; }
.configuration-rule.separate strong { color: #8a5d0a; }
.configuration-rule.pending { color: #66748b; background: #f4f7fb; }
.configuration-rule.pending strong { color: #4d5d76; }
.registration-divider { display: flex; align-items: center; padding: 4px 2px; gap: 11px; }
.registration-divider > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: #fff; background: var(--blue-600); border-radius: 10px; font-size: .55rem; font-weight: 800; }
.registration-divider div { display: grid; gap: 3px; }
.registration-divider b { color: var(--navy-900); font-size: .71rem; }
.registration-divider small { color: #8e99aa; font-size: .52rem; }
.trailer-divider { margin-top: 2px; }
.trailer-divider > span { background: #163b76; }
#trailerRegistrationGroup { display: grid; gap: 16px; }
#trailerRegistrationGroup[hidden] { display: none !important; }
.vehicle-document-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.binary-choice-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.binary-choice-options label { cursor: pointer; }
.binary-choice-options input { position: absolute; opacity: 0; }
.binary-choice-options label > span { position: relative; display: grid; min-height: 52px; padding: 10px 12px 10px 40px; background: #f8faff; border: 1px solid #dfe6ef; border-radius: 10px; gap: 3px; }
.binary-choice-options label > span::before { position: absolute; top: 16px; left: 14px; width: 16px; height: 16px; background: #fff; border: 1.5px solid #c8d3e2; border-radius: 50%; content: ""; }
.binary-choice-options input:checked + span { background: #edf5ff; border-color: #91bafb; }
.binary-choice-options input:checked + span::before { border: 5px solid var(--blue-600); }
.binary-choice-options b { color: #435169; font-size: .57rem; }
.binary-choice-options small { color: #97a2b3; font-size: .48rem; }
.form-field > .required-choice-group { margin-top: 0; }
.driver-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 20px; gap: 10px; }
.driver-file-upload { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; min-height: 72px; padding: 12px 14px; background: #f8faff; border: 1.5px dashed #cbd7e8; border-radius: 12px; cursor: pointer; gap: 11px; transition: background 150ms ease,border-color 150ms ease; }
.driver-file-upload:hover,.driver-file-upload.has-file { background: #eff6ff; border-color: #84b2fa; }
.driver-file-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.driver-file-upload > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue-600); background: #e4eeff; border-radius: 10px; }
.driver-file-upload svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.driver-file-upload div { min-width: 0; }
.driver-file-upload b,.driver-file-upload small { display: block; }
.driver-file-upload b { color: #435169; font-size: .58rem; }
.driver-file-upload small { margin-top: 4px; overflow: hidden; color: #99a3b4; font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.driver-file-upload u { color: var(--blue-600); font-size: .52rem; font-weight: 700; text-decoration: none; }
.driver-account-card { border-color: #cbdcf5; box-shadow: 0 9px 28px rgba(28,91,184,.07); }
.account-rule-note { display: flex; align-items: center; margin-top: 18px; padding: 12px 14px; color: #64738a; background: #edf5ff; border-radius: 11px; gap: 11px; }
.account-rule-note > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; color: #fff; background: var(--blue-600); border-radius: 8px; font-size: .56rem; font-weight: 800; }
.account-rule-note div { display: grid; gap: 3px; }
.account-rule-note strong { color: #315784; font-size: .58rem; }
.account-rule-note p { margin: 0; font-size: .5rem; line-height: 1.45; }
.credential-grid { margin-top: 16px; }
.credential-actions { display: flex; justify-content: flex-end; margin-top: 13px; gap: 8px; }
.credential-generated-status { display: flex; align-items: center; margin-right: auto; color: #197052; font-size: .52rem; font-weight: 650; }
.credential-actions .secondary-action { height: 38px; }
.credential-visibility-button { min-height: 38px; padding: 0 12px; color: #57667d; background: #f5f7fa; border: 1px solid #dce3ec; border-radius: 9px; cursor: pointer; font-size: .55rem; font-weight: 700; }
.master-actions { margin-top: 2px; }

@media (max-width: 700px) {
  .master-content { padding: 24px 14px 90px; }
  .master-tabs { gap: 7px; }
  .master-tabs a { justify-content: center; min-height: 62px; padding: 10px 7px; }
  .master-tabs a > svg { display: none; }
  .master-tabs a > span { text-align: center; }
  .master-tabs small { display: none; }
  .master-grid { grid-template-columns: 1fr; }
  .master-grid .wide { grid-column: auto; }
  .binary-choice-options,.driver-document-grid { grid-template-columns: 1fr; }
  .vehicle-configuration-options,.vehicle-document-grid { grid-template-columns: 1fr; }
  .customer-registration-summary { grid-template-columns: 1fr; }
  .customer-registration-summary > div { border-top: 1px solid rgba(255,255,255,.09); border-left: 0; }
  .customer-registration-summary > div:first-child { border-top: 0; }
  .customer-section-index { grid-template-columns: repeat(4,1fr); }
  .service-choice-grid { grid-template-columns: repeat(2,1fr); }
  .partner-grid,.contact-record-grid,.mandatory-document-grid,.document-cross-check { grid-template-columns: 1fr; }
  .partner-ownership-summary { align-items: flex-start; float: none; flex-direction: column; }
  .partner-ownership-summary small { padding: 0; border-left: 0; }
  .internal-only-pill { display: none; }
  .configuration-rule { align-items: flex-start; flex-direction: column; }
  .vendor-registration-note { align-items: flex-start; }
  .fleet-type-row { grid-template-columns: 1fr 70px 34px; align-items: end; padding: 11px; gap: 8px; }
  .fleet-type-row .form-field label { min-height: 24px; }
  .master-actions { align-items: stretch; flex-direction: column; }
  .master-actions > p { justify-content: center; }
  .master-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .master-actions .primary-action { grid-column: 1 / -1; grid-row: 1; }
}

/* Quotation comparison */
.quote-content { width: min(1240px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.quote-status-pill { display: inline-flex; align-items: center; padding: 9px 12px; color: #176b50; background: #e2f5ed; border-radius: 99px; font-size: .62rem; font-weight: 750; gap: 7px; white-space: nowrap; }
.quote-status-pill i { width: 7px; height: 7px; background: #1a9d70; border-radius: 50%; box-shadow: 0 0 0 4px rgba(26,157,112,.12); }
.quote-enquiry-summary { display: grid; grid-template-columns: repeat(4,1fr); margin: 28px 0 14px; overflow: hidden; background: linear-gradient(135deg,#15244b,#0d1734); border-radius: 17px; box-shadow: 0 10px 28px rgba(11,26,61,.12); }
.quote-enquiry-summary > div { display: grid; padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.08); gap: 4px; }
.quote-enquiry-summary > div:first-child { border-left: 0; }
.quote-enquiry-summary span { color: rgba(255,255,255,.46); font-size: .52rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.quote-enquiry-summary strong { color: #fff; font-size: .72rem; }
.quote-enquiry-summary small { color: rgba(255,255,255,.48); font-size: .54rem; }
.manual-selection-note { display: flex; align-items: center; margin-bottom: 14px; padding: 13px 16px; color: #76520f; background: #fff6e2; border: 1px solid #f1ddb4; border-radius: 13px; gap: 11px; }
.manual-selection-note > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; color: #fff; background: #dea32c; border-radius: 8px; font-size: .7rem; font-weight: 850; }
.manual-selection-note div { display: grid; gap: 2px; }
.manual-selection-note strong { font-size: .64rem; }
.manual-selection-note p { margin: 0; font-size: .56rem; line-height: 1.45; }
.quote-layout { display: grid; grid-template-columns: minmax(0,1fr) 265px; align-items: start; gap: 16px; }
.quote-comparison-card { min-width: 0; padding: 23px; background: #fff; border: 1px solid #e1e8f1; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,55,105,.04); }
.quote-card-header { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #edf1f6; gap: 18px; }
.quote-card-header h2 { margin: 4px 0; color: var(--navy-950); font-size: 1rem; }
.quote-card-header p { margin: 0; color: #8d98aa; font-size: .59rem; }
.quote-sort { display: grid; color: #7b879b; font-size: .53rem; font-weight: 650; gap: 5px; }
.quote-sort select { height: 36px; min-width: 150px; padding: 0 10px; color: #4f5b72; background: #f8faff; border: 1px solid #dde5ef; border-radius: 9px; outline: none; font-size: .59rem; }
.quote-list { display: grid; margin-top: 13px; gap: 10px; }
.quote-row { display: grid; grid-template-columns: 54px minmax(180px,1.2fr) minmax(108px,.55fr) minmax(210px,1.25fr) minmax(150px,.9fr) 92px; align-items: center; padding: 15px; background: #fbfcfe; border: 1px solid #e3e9f1; border-radius: 14px; transition: background 150ms ease,border-color 150ms ease,box-shadow 150ms ease; gap: 13px; }
.quote-row.selected { background: #f5f9ff; border-color: #93bbfb; box-shadow: 0 5px 18px rgba(23,105,255,.08); }
.quote-radio { display: grid; justify-items: center; cursor: pointer; gap: 5px; }
.quote-radio input { position: absolute; opacity: 0; }
.quote-radio > span { position: relative; width: 21px; height: 21px; background: #fff; border: 1.5px solid #c8d3e2; border-radius: 6px; }
.quote-radio input:checked + span { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(23,105,255,.1); }
.quote-radio input:checked + span { background: var(--blue-600); }
.quote-radio input:checked + span::after { position: absolute; top: 4px; left: 7px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; content: ""; transform: rotate(45deg); }
.quote-radio em { color: #7e899d; font-size: .49rem; font-style: normal; }
.quote-vendor { display: flex; align-items: center; min-width: 0; gap: 10px; }
.quote-vendor .vendor-avatar { flex: 0 0 42px; }
.quote-vendor h3 { margin: 0; color: var(--navy-950); font-size: .67rem; }
.quote-vendor p { margin: 4px 0; color: #929daf; font-size: .49rem; }
.vendor-rating { color: #69768c; font-size: .5rem; }
.quote-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.lowest-badge { padding: 3px 6px; color: #147856; background: #def3e9; border-radius: 99px; font-size: .44rem; font-weight: 750; }
.quote-amount,.quote-vehicle,.quote-remarks { display: grid; align-content: center; min-width: 0; gap: 4px; }
.quote-amount > span,.quote-vehicle > span,.quote-remarks > span { color: #98a2b3; font-size: .48rem; font-weight: 650; letter-spacing: .025em; text-transform: uppercase; }
.quote-amount strong { color: var(--navy-950); font-size: .82rem; }
.quote-amount.lowest strong { color: #15815c; }
.quote-amount small,.quote-vehicle small { color: #8c97a8; font-size: .48rem; line-height: 1.35; }
.quote-vehicle strong { color: #455269; font-size: .57rem; }
.quote-remarks p { display: -webkit-box; margin: 0; overflow: hidden; color: #6f7b8f; font-size: .51rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.quote-row-status { display: grid; justify-items: end; gap: 8px; }
.status-received { padding: 5px 8px; color: #176b50; background: #e4f5ed; border-radius: 99px; font-size: .48rem; font-weight: 750; }
.quote-details-button { padding: 0; color: var(--blue-600); background: transparent; border: 0; cursor: pointer; font-size: .5rem; font-weight: 700; }
.truck-allocation { display: grid; color: #8c97a8; font-size: .47rem; text-align: right; gap: 4px; }
.truck-allocation select { width: 78px; height: 29px; padding: 0 5px; color: #41506a; background: #fff; border: 1px solid #dce4ee; border-radius: 7px; outline: none; font-size: .51rem; }
.truck-allocation select:disabled { cursor: not-allowed; opacity: .5; }
.quote-extra { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3,1fr); padding: 10px 12px; background: #fff; border: 1px solid #e7ecf3; border-radius: 10px; gap: 15px; }
.quote-extra div { display: grid; gap: 4px; }
.quote-extra span { color: #99a3b4; font-size: .47rem; text-transform: uppercase; }
.quote-extra strong { color: #4b5870; font-size: .53rem; }
.quote-decision-panel { position: sticky; top: 86px; padding: 22px; background: #fff; border: 1px solid #e1e8f1; border-radius: 18px; box-shadow: 0 9px 26px rgba(24,55,105,.055); }
.decision-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; color: var(--blue-600); background: #e9f2ff; border-radius: 13px; }
.decision-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.quote-decision-panel h2 { margin: 5px 0 3px; color: var(--navy-950); font-size: .9rem; line-height: 1.3; }
.quote-decision-panel > strong { color: var(--blue-600); font-size: 1.05rem; }
.quote-decision-panel > p { margin: 7px 0 16px; color: #8b96a8; font-size: .55rem; line-height: 1.5; }
.selected-quote-list { display: grid; margin: 0 0 12px; padding: 10px; background: #f7f9fc; border: 1px solid #e7ecf3; border-radius: 10px; gap: 7px; }
.selected-quote-list > span { color: #98a2b2; font-size: .53rem; }
.selected-quote-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.selected-quote-list > div span { overflow: hidden; color: #4b5870; font-size: .52rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.selected-quote-list > div strong { flex: 0 0 auto; padding: 3px 6px; color: #1765d6; background: #e5efff; border-radius: 6px; font-size: .47rem; }
.allocation-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #7d899d; font-size: .52rem; }
.allocation-total strong { color: #40506a; font-size: .55rem; }
.allocation-total b { color: var(--blue-600); font-size: .72rem; }
.selection-status { display: flex; align-items: center; justify-content: space-between; margin: 0 -22px 16px; padding: 12px 22px; background: #f7f9fc; border-top: 1px solid #ebeff5; border-bottom: 1px solid #ebeff5; }
.selection-status > span { color: #8792a5; font-size: .52rem; }
.selection-status strong { display: inline-flex; align-items: center; color: #8b681e; font-size: .52rem; gap: 6px; }
.selection-status strong i { width: 6px; height: 6px; background: #dda42f; border-radius: 50%; }
.selection-status strong.ready { color: #167656; }
.selection-status strong.ready i { background: #1b9d70; }
.quote-decision-panel > label { display: block; margin-bottom: 7px; color: #3e4b63; font-size: .59rem; font-weight: 700; }
.quote-decision-panel > label span { color: #9ba5b5; font-size: .49rem; font-weight: 500; }
.quote-decision-panel > label em { color: #df4865; font-style: normal; }
.quote-decision-panel textarea { width: 100%; min-height: 82px; padding: 10px 11px; color: var(--navy-900); background: #f8faff; border: 1px solid #dfe6f0; border-radius: 10px; outline: none; resize: vertical; font-size: .58rem; line-height: 1.45; }
.quote-decision-panel textarea.invalid { border-color: #dc536c; box-shadow: 0 0 0 4px rgba(220,83,108,.08); }
.quote-decision-panel > .remark-error { display: none; margin-top: 5px; color: #ca405a !important; font-size: .49rem !important; text-align: left !important; }
.quote-decision-panel > .remark-error.show { display: block; }
.quote-confirm-button { width: 100%; margin-top: 12px; }
.quote-confirm-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.quote-decision-panel > small { display: block; margin-top: 11px; color: #9aa4b5; font-size: .48rem; line-height: 1.45; text-align: center; }
.quote-actions { margin-top: 16px; }

@media (max-width: 1120px) {
  .quote-enquiry-summary { grid-template-columns: 1fr 1fr; }
  .quote-enquiry-summary > div:nth-child(3) { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .quote-enquiry-summary > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-decision-panel { position: static; }
  .quote-row { grid-template-columns: 48px 1.25fr .65fr 1.1fr .85fr 85px; }
}

@media (max-width: 860px) {
  .quote-row { grid-template-columns: 42px minmax(0,1.2fr) minmax(100px,.55fr) 78px; align-items: start; }
  .quote-vehicle,.quote-remarks { grid-column: 2 / -1; padding-top: 9px; border-top: 1px solid #e8edf3; }
  .quote-row-status { grid-column: 4; grid-row: 1; }
  .quote-extra { grid-column: 2 / -1; }
}

@media (max-width: 700px) {
  .quote-content { padding: 24px 14px 90px; }
  .quote-status-pill { display: none; }
  .quote-enquiry-summary { grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .quote-enquiry-summary > div { padding: 14px; }
  .manual-selection-note { align-items: flex-start; }
  .quote-comparison-card { padding: 17px; }
  .quote-card-header { align-items: stretch; flex-direction: column; }
  .quote-sort select { width: 100%; }
  .quote-row { grid-template-columns: 34px minmax(0,1fr); padding: 13px; }
  .quote-vendor { grid-column: 2; }
  .quote-amount,.quote-vehicle,.quote-remarks,.quote-row-status { grid-column: 2; padding-top: 10px; border-top: 1px solid #e8edf3; }
  .quote-row-status { grid-row: auto; align-items: center; justify-content: space-between; grid-template-columns: auto auto; justify-items: start; }
  .quote-extra { grid-column: 2; grid-template-columns: 1fr; }
  .quote-actions { align-items: stretch; flex-direction: column; }
  .quote-actions > p { justify-content: center; }
  .quote-actions > div { display: grid; grid-template-columns: 1fr; }
}

/* Vendor confirmation and escalation */
.confirmation-content { width: min(1180px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.confirmation-alert-pill { display: inline-flex; align-items: center; padding: 9px 12px; color: #a33e52; background: #fde7eb; border-radius: 99px; font-size: .62rem; font-weight: 750; gap: 7px; white-space: nowrap; }
.confirmation-alert-pill i { width: 7px; height: 7px; background: #dc4c67; border-radius: 50%; box-shadow: 0 0 0 4px rgba(220,76,103,.12); }
.confirmation-summary { display: grid; grid-template-columns: repeat(4,1fr); margin: 28px 0 14px; overflow: hidden; background: linear-gradient(135deg,#15244b,#0d1734); border-radius: 17px; box-shadow: 0 10px 28px rgba(11,26,61,.12); }
.confirmation-summary > div { display: grid; padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.08); gap: 4px; }
.confirmation-summary > div:first-child { border-left: 0; }
.confirmation-summary span { color: rgba(255,255,255,.46); font-size: .52rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.confirmation-summary strong { color: #fff; font-size: .7rem; }
.confirmation-summary small { color: rgba(255,255,255,.48); font-size: .53rem; }
.confirmation-summary .status-attention { color: #ffb3c0; }
.escalation-rule-card { margin-bottom: 14px; padding: 20px 22px; background: #fff; border: 1px solid #e1e8f1; border-radius: 17px; box-shadow: 0 7px 22px rgba(24,55,105,.035); }
.rule-heading { display: flex; align-items: center; gap: 11px; }
.rule-heading > span { display: grid; place-items: center; width: 38px; height: 38px; color: #bd7730; background: #fff0dc; border-radius: 11px; }
.rule-heading svg,.rule-flow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.rule-heading h2 { margin: 0 0 3px; color: var(--navy-950); font-size: .78rem; }
.rule-heading p { margin: 0; color: #8e99aa; font-size: .57rem; }
.rule-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin-top: 17px; padding-top: 16px; border-top: 1px solid #edf1f6; }
.rule-flow > div { display: grid; grid-template-columns: 31px auto; align-items: center; column-gap: 8px; }
.rule-flow > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 31px; height: 31px; color: #17805c; background: #e4f5ed; border-radius: 9px; }
.rule-flow > div.alert > span { color: #c24960; background: #fbe7eb; }
.rule-flow strong { color: #35435c; font-size: .58rem; }
.rule-flow small { color: #9aa4b5; font-size: .48rem; }
.rule-flow > i { height: 1px; margin: 0 13px; background: #dfe6ef; }
.confirmation-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; align-items: start; gap: 16px; }
.confirmation-vendors { min-width: 0; padding: 22px; background: #fff; border: 1px solid #e1e8f1; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,55,105,.04); }
.confirmation-section-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; padding-bottom: 17px; border-bottom: 1px solid #edf1f6; gap: 16px; }
.confirmation-section-heading h2 { margin: 4px 0; color: var(--navy-950); font-size: .9rem; }
.confirmation-section-heading p { margin: 0; color: #8f99aa; font-size: .56rem; }
.confirmation-vendor-card { margin-top: 11px; padding: 17px; background: #fbfcfe; border: 1px solid #e2e8f0; border-radius: 14px; transition: border-color 150ms ease,background 150ms ease; }
.confirmation-vendor-card.confirmed { border-left: 3px solid #1c9c70; }
.confirmation-vendor-card.overdue,.confirmation-vendor-card.rejected { background: #fffafb; border-color: #efc6cf; border-left: 3px solid #d94c67; }
.confirmation-vendor-card.pending { border-left: 3px solid #daa131; }
.confirmation-vendor-main { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.confirmation-vendor-main h3 { margin: 0 0 4px; color: var(--navy-950); font-size: .72rem; }
.confirmation-vendor-main p { margin: 0; color: #8c97a9; font-size: .53rem; }
.confirmation-state { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 99px; font-size: .51rem; font-weight: 750; gap: 5px; }
.confirmation-state svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.confirmation-state.confirmed { color: #167656; background: #e1f3eb; }
.confirmation-state.overdue,.confirmation-state.rejected { color: #b44056; background: #fbe4e9; }
.confirmation-state.pending { color: #956516; background: #fff0d4; }
.confirmation-detail-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; padding: 12px; background: #fff; border: 1px solid #e7ecf3; border-radius: 10px; gap: 12px; }
.confirmation-detail-grid > div { display: grid; gap: 3px; }
.confirmation-detail-grid span { color: #9aa4b4; font-size: .47rem; text-transform: uppercase; }
.confirmation-detail-grid strong { color: #425068; font-size: .55rem; }
.confirmation-detail-grid small { color: #929dad; font-size: .48rem; }
.confirmation-detail-grid .overdue-text { color: #c1475d; font-weight: 650; }
.confirmation-timeline { display: grid; margin: 14px 0 0 9px; padding-left: 13px; border-left: 1px solid #dfe6ef; gap: 12px; }
.confirmation-timeline > div { position: relative; display: flex; gap: 8px; }
.confirmation-timeline i { position: absolute; top: 2px; left: -18px; width: 9px; height: 9px; background: #fff; border: 2px solid #1b9c70; border-radius: 50%; }
.confirmation-timeline .failed i { border-color: #d94d67; }
.confirmation-timeline span { display: grid; gap: 2px; }
.confirmation-timeline strong { color: #4b5870; font-size: .53rem; }
.confirmation-timeline small { color: #98a2b3; font-size: .47rem; }
.confirmation-card-actions { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 13px; border-top: 1px solid #e8edf3; gap: 8px; }
.exception-panel { position: sticky; top: 86px; padding: 20px; background: #fff; border: 1px solid #e1e8f1; border-radius: 17px; box-shadow: 0 9px 26px rgba(24,55,105,.055); }
.exception-panel h2 { margin: 4px 0; color: var(--navy-950); font-size: .8rem; }
.exception-panel > p { margin: 0; color: #8c97a9; font-size: .54rem; line-height: 1.5; }
.scenario-buttons { display: grid; grid-template-columns: repeat(3,1fr); margin: 14px 0; padding: 4px; background: #f0f3f7; border-radius: 9px; gap: 3px; }
.scenario-buttons button { min-height: 30px; padding: 0 4px; color: #788498; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: .49rem; font-weight: 700; }
.scenario-buttons button.active { color: #fff; background: var(--blue-600); box-shadow: 0 4px 10px rgba(23,105,255,.18); }
.dashboard-alert-preview { padding: 12px; background: #fff8f9; border: 1px solid #f1d2d8; border-radius: 10px; }
.dashboard-alert-preview > div { display: flex; align-items: center; gap: 7px; }
.dashboard-alert-preview strong { color: #7e3746; font-size: .57rem; }
.dashboard-alert-preview p { margin: 6px 0; color: #9b6671; font-size: .49rem; line-height: 1.4; }
.dashboard-alert-preview small { color: #9a7b82; font-size: .46rem; line-height: 1.4; }
.view-dashboard-button { width: 100%; margin-top: 12px; }
.confirmation-actions { margin-top: 16px; }

@media (max-width: 1000px) {
  .confirmation-summary { grid-template-columns: 1fr 1fr; }
  .confirmation-summary > div:nth-child(3) { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .confirmation-summary > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .confirmation-layout { grid-template-columns: 1fr; }
  .exception-panel { position: static; }
}

@media (max-width: 700px) {
  .confirmation-content { padding: 24px 14px 90px; }
  .confirmation-alert-pill { display: none; }
  .confirmation-summary > div { padding: 14px; }
  .escalation-rule-card,.confirmation-vendors { padding: 17px; }
  .rule-flow { grid-template-columns: 1fr; gap: 9px; }
  .rule-flow > i { width: 1px; height: 14px; margin: 0 0 0 15px; }
  .confirmation-detail-grid { grid-template-columns: 1fr; }
  .confirmation-vendor-main { grid-template-columns: 40px minmax(0,1fr); }
  .confirmation-state { grid-column: 2; justify-self: start; }
  .confirmation-card-actions { display: grid; grid-template-columns: 1fr; }
  .confirmation-actions { align-items: stretch; flex-direction: column; }
  .confirmation-actions > p { justify-content: center; }
  .confirmation-actions > div { display: grid; grid-template-columns: 1fr; }
}

/* Project creation */
.project-create-content { width: min(1160px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.project-workflow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin: 28px 0 16px; padding: 15px 22px; background: #fff; border: 1px solid #e2e9f3; border-radius: 17px; box-shadow: 0 7px 22px rgba(24,55,105,.035); }
.project-workflow > div { display: grid; grid-template-columns: 32px auto; align-items: center; column-gap: 9px; }
.project-workflow > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; color: #7c889c; background: #eef2f7; border-radius: 9px; font-size: .64rem; font-weight: 750; }
.project-workflow > div > span svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.project-workflow > div.complete > span { color: #18815d; background: #e0f4eb; }
.project-workflow > div.active > span { color: #fff; background: var(--blue-600); }
.project-workflow strong { color: #34425b; font-size: .63rem; }
.project-workflow small { color: #9aa4b5; font-size: .51rem; }
.project-workflow > i { height: 1px; margin: 0 16px; background: #dfe6ef; }
.project-create-form { display: grid; gap: 16px; }
.project-origin-card { padding: 22px; color: #fff; background: linear-gradient(135deg,#162650,#0d1734); border-radius: 18px; box-shadow: 0 10px 28px rgba(11,26,61,.12); }
.project-origin-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.09); gap: 16px; }
.project-origin-heading span:not(.locked-pill) { color: #73aaff; font-size: .53rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.project-origin-heading h2 { margin: 4px 0; font-size: .86rem; }
.project-origin-heading p { margin: 0; color: rgba(255,255,255,.52); font-size: .54rem; }
.locked-pill { padding: 6px 9px; color: #bcd4ff; background: rgba(78,139,245,.13); border: 1px solid rgba(119,165,244,.18); border-radius: 99px; font-size: .5rem; font-weight: 700; }
.project-origin-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 15px; gap: 12px; }
.project-origin-grid > div { display: grid; gap: 4px; }
.project-origin-grid span { color: rgba(255,255,255,.43); font-size: .48rem; text-transform: uppercase; }
.project-origin-grid strong { font-size: .6rem; }
.commercial-lines { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; gap: 9px; }
.commercial-lines > div { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; padding: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); border-radius: 11px; gap: 9px; }
.commercial-lines .vendor-avatar { width: 38px; height: 38px; }
.commercial-lines strong,.commercial-lines small { display: block; }
.commercial-lines strong { overflow: hidden; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.commercial-lines small { margin-top: 3px; color: rgba(255,255,255,.47); font-size: .48rem; }
.line-confirmed { padding: 5px 7px; color: #9be2c7; background: rgba(42,177,126,.12); border-radius: 99px; font-size: .47rem; font-weight: 700; }
.project-route-grid { display: grid; grid-template-columns: 1fr 42px 1fr; gap: 12px; margin-top: 20px; }
.project-route-side { display: grid; padding: 17px; background: #f8faff; border: 1px solid #e5ebf3; border-radius: 13px; gap: 14px; }
.project-route-line { display: flex; align-items: center; flex-direction: column; padding: 24px 0; }
.project-route-line span { width: 10px; height: 10px; background: var(--blue-600); border: 3px solid #d9e7ff; border-radius: 50%; }
.project-route-line span:last-child { background: #1a9e70; border-color: #cfefe2; }
.project-route-line i { width: 1px; flex: 1; background: repeating-linear-gradient(to bottom,#aebbd0 0 4px,transparent 4px 8px); }
.assignment-list { display: grid; margin-top: 20px; gap: 10px; }
.assignment-list article { display: grid; grid-template-columns: 34px minmax(140px,.8fr) minmax(220px,1.25fr) minmax(210px,1.2fr) auto; align-items: end; padding: 14px; background: #f8faff; border: 1px solid #e4eaf2; border-radius: 13px; gap: 12px; }
.assignment-number { display: grid; place-items: center; align-self: center; width: 31px; height: 31px; color: var(--blue-600); background: #e5efff; border-radius: 9px; font-size: .55rem; font-weight: 800; }
.assignment-vendor { display: grid; align-self: center; gap: 3px; }
.assignment-vendor strong { color: var(--navy-900); font-size: .61rem; }
.assignment-vendor small { color: #99a3b4; font-size: .5rem; }
.assignment-ready { align-self: center; padding: 6px 8px; color: #167656; background: #e1f3eb; border-radius: 99px; font-size: .48rem; font-weight: 750; }
.milestone-header,.milestone-row { display: grid; grid-template-columns: 58px 1fr 185px 1fr 92px; align-items: center; gap: 10px; }
.milestone-header { margin-top: 20px; padding: 0 11px 8px; color: #99a3b4; font-size: .47rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.milestone-list { display: grid; gap: 8px; }
.milestone-row { padding: 10px; background: #f8faff; border: 1px solid #e4eaf2; border-radius: 11px; }
.milestone-sequence { display: grid; place-items: center; width: 29px; height: 29px; margin: auto; color: #fff; background: var(--blue-600); border-radius: 9px; font-size: .56rem; font-weight: 800; }
.milestone-row .form-field { gap: 0; }
.milestone-row .form-field input { height: 39px; }
.milestone-controls { display: flex; justify-content: flex-end; gap: 4px; }
.milestone-controls button { width: 27px; height: 31px; color: #718097; background: #fff; border: 1px solid #dce4ee; border-radius: 7px; cursor: pointer; font-size: .67rem; }
.milestone-controls button:last-child { color: #b24b60; }
.delivery-note-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; gap: 12px; }
.project-upload-zone { display: flex; align-items: center; min-height: 95px; padding: 16px; background: #f8faff; border: 1.5px dashed #cbd7e8; border-radius: 13px; cursor: pointer; gap: 11px; }
.project-upload-zone > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--blue-600); background: #e5efff; border-radius: 11px; }
.project-upload-zone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.project-upload-zone strong,.project-upload-zone small { display: block; }
.project-upload-zone strong { color: #43516a; font-size: .61rem; }
.project-upload-zone small { margin-top: 4px; color: #99a3b4; font-size: .5rem; }
.project-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.project-file-list { display: grid; margin-top: 9px; gap: 6px; }
.project-file-list > div { display: flex; align-items: center; padding: 8px 10px; color: #5e6b81; background: #f5f8fc; border: 1px solid #e3e9f2; border-radius: 8px; font-size: .53rem; gap: 8px; }
.project-file-list strong { color: var(--navy-900); }
.project-file-list span:last-child { margin-left: auto; color: #98a2b3; }
.project-visibility { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 18px; gap: 9px; }
.project-visibility > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; padding: 12px; background: #f8faff; border: 1px solid #e4eaf2; border-radius: 11px; gap: 9px; }
.project-visibility svg { grid-row: 1 / 3; width: 17px; height: 17px; padding: 8px; box-sizing: content-box; color: var(--blue-600); background: #e5efff; border-radius: 9px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.project-visibility span { display: grid; gap: 2px; }
.project-visibility strong { color: #435169; font-size: .57rem; }
.project-visibility small { color: #98a2b3; font-size: .47rem; }
.project-visibility b { grid-column: 2; color: #177656; font-size: .47rem; }

@media (max-width: 980px) {
  .assignment-list article { grid-template-columns: 34px 1fr 1fr; }
  .assignment-vendor { grid-column: 2 / -1; }
  .assignment-ready { grid-column: 3; justify-self: end; }
  .milestone-header { display: none; }
  .milestone-row { grid-template-columns: 42px 1fr 1fr; }
  .milestone-row .form-field:nth-of-type(3) { grid-column: 2 / -1; }
  .milestone-controls { grid-column: 1; grid-row: 2; }
}

@media (max-width: 700px) {
  .project-create-content { padding: 24px 14px 90px; }
  .project-workflow { grid-template-columns: repeat(3,1fr); padding: 12px; }
  .project-workflow > i { display: none; }
  .project-workflow > div { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 4px; }
  .project-workflow small { display: none; }
  .project-origin-heading { flex-direction: column; }
  .project-origin-grid { grid-template-columns: 1fr 1fr; }
  .commercial-lines { grid-template-columns: 1fr; }
  .project-route-grid { grid-template-columns: 1fr; }
  .project-route-line { flex-direction: row; height: 34px; padding: 0 30px; }
  .project-route-line i { width: auto; height: 1px; background: repeating-linear-gradient(to right,#aebbd0 0 4px,transparent 4px 8px); }
  .assignment-list article { grid-template-columns: 34px 1fr; }
  .assignment-list article .form-field { grid-column: 1 / -1; }
  .assignment-ready { grid-column: 2; grid-row: 1; }
  .milestone-row { grid-template-columns: 36px 1fr; }
  .milestone-row .form-field { grid-column: 2; }
  .milestone-row .form-field:nth-of-type(3) { grid-column: 2; }
  .milestone-controls { grid-column: 2; grid-row: auto; justify-content: flex-start; }
  .delivery-note-grid,.project-visibility { grid-template-columns: 1fr; }
  .project-create-actions { align-items: stretch; flex-direction: column; }
  .project-create-actions > p { justify-content: center; }
  .project-create-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .project-create-actions .primary-action { grid-column: 1 / -1; grid-row: 1; }
}

/* Operating places and milestone masters */
.operations-master-content { width: min(1180px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.location-hierarchy-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin: 28px 0 16px; padding: 16px 22px; background: #fff; border: 1px solid #e1e8f1; border-radius: 17px; box-shadow: 0 7px 22px rgba(24,55,105,.035); }
.location-hierarchy-flow > div { display: grid; grid-template-columns: 31px auto; align-items: center; column-gap: 9px; }
.location-hierarchy-flow > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 31px; height: 31px; color: #6f7c91; background: #eef2f7; border-radius: 9px; font-size: .62rem; font-weight: 800; }
.location-hierarchy-flow > div.active > span { color: #fff; background: var(--blue-600); }
.location-hierarchy-flow strong { color: #39475f; font-size: .62rem; }
.location-hierarchy-flow small { color: #9aa4b5; font-size: .5rem; }
.location-hierarchy-flow > i { height: 1px; margin: 0 15px; background: #dfe6ef; }
.operations-master-layout { display: grid; grid-template-columns: minmax(0,1fr) 245px; align-items: start; gap: 16px; }
.operations-master-main { display: grid; min-width: 0; gap: 16px; }
.place-cascade-grid { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1.1fr; align-items: end; margin-top: 20px; gap: 8px; }
.cascade-arrow { display: grid; place-items: center; height: 46px; color: #9aa6b7; font-size: 1rem; }
.place-secondary-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: 14px; gap: 12px; }
.place-secondary-grid .primary-action { height: 46px; }
.master-section-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #edf1f6; gap: 16px; }
.master-section-heading h2 { margin: 4px 0; color: var(--navy-950); font-size: .88rem; }
.master-section-heading p { margin: 0; color: #909aab; font-size: .55rem; }
.record-count { padding: 7px 9px; color: #748096; background: #f1f4f8; border-radius: 99px; font-size: .51rem; font-weight: 650; white-space: nowrap; }
.record-count b { color: var(--blue-600); }
.place-directory { display: grid; margin-top: 13px; gap: 7px; }
.place-directory article { display: grid; grid-template-columns: 38px minmax(0,1fr) 82px 56px; align-items: center; padding: 10px 12px; background: #f9fbfd; border: 1px solid #e6ebf2; border-radius: 10px; gap: 10px; }
.place-flag { display: grid; place-items: center; width: 34px; height: 34px; color: #1b64ca; background: #e5efff; border-radius: 9px; font-size: .52rem; font-weight: 800; }
.place-directory strong,.place-directory small { display: block; }
.place-directory strong { color: #445169; font-size: .58rem; }
.place-directory small { margin-top: 3px; color: #99a3b4; font-size: .48rem; }
.place-directory code { color: #6f7c91; font-family: inherit; font-size: .5rem; }
.master-status { justify-self: end; padding: 5px 7px; border-radius: 99px; font-size: .46rem; font-weight: 750; }
.master-status.active { color: #167656; background: #e1f3eb; }
.master-status.inactive { color: #7c8798; background: #eceff4; }
.milestone-scope-field { margin-top: 18px; }
.milestone-scope-field > label { color: #35435b; font-size: .63rem; font-weight: 700; }
.milestone-scope-field > label em { color: #df4865; font-style: normal; }
.milestone-scope-field > p { margin: 4px 0 10px; color: #98a2b3; font-size: .51rem; }
.milestone-scope-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.milestone-scope-options label { cursor: pointer; }
.milestone-scope-options input { position: absolute; opacity: 0; }
.milestone-scope-options label > span { position: relative; display: grid; min-height: 54px; padding: 11px 12px 11px 40px; background: #f8faff; border: 1px solid #e0e7f0; border-radius: 10px; gap: 3px; }
.milestone-scope-options label > span::before { position: absolute; top: 17px; left: 14px; width: 16px; height: 16px; background: #fff; border: 1.5px solid #c7d2e1; border-radius: 50%; content: ""; }
.milestone-scope-options input:checked + span { background: #edf5ff; border-color: #8db8fb; box-shadow: inset 0 0 0 1px rgba(23,105,255,.06); }
.milestone-scope-options input:checked + span::before { border: 5px solid var(--blue-600); }
.milestone-scope-options b { color: #435169; font-size: .56rem; }
.milestone-scope-options small { color: #96a1b2; font-size: .47rem; }
#milestonePlaceSection { transition: opacity 150ms ease; }
#milestonePlaceSection.is-disabled { opacity: .43; }
#milestonePlaceSection.is-disabled .milestone-place-options { pointer-events: none; }
.milestone-place-picker { display: flex; align-items: flex-end; justify-content: space-between; margin: 18px 0 10px; gap: 15px; }
.milestone-place-picker label { color: #35435b; font-size: .63rem; font-weight: 700; }
.milestone-place-picker label em { color: #df4865; font-style: normal; }
.milestone-place-picker p { margin: 4px 0 0; color: #98a2b3; font-size: .51rem; }
.milestone-place-picker > span { padding: 6px 8px; color: #647187; background: #eef2f7; border-radius: 8px; font-size: .5rem; font-weight: 700; white-space: nowrap; }
.milestone-place-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.milestone-place-options label { cursor: pointer; }
.milestone-place-options input { position: absolute; opacity: 0; }
.milestone-place-options label > span { position: relative; display: grid; min-height: 48px; padding: 10px 12px 10px 38px; background: #f8faff; border: 1px solid #e0e7f0; border-radius: 10px; gap: 3px; }
.milestone-place-options label > span::before { position: absolute; top: 14px; left: 13px; width: 17px; height: 17px; background: #fff; border: 1.5px solid #c8d3e2; border-radius: 5px; content: ""; }
.milestone-place-options input:checked + span { background: #f0f6ff; border-color: #9fc1fa; }
.milestone-place-options input:checked + span::before { background: var(--blue-600); border-color: var(--blue-600); }
.milestone-place-options input:checked + span::after { position: absolute; top: 17px; left: 19px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; content: ""; transform: rotate(45deg); }
.milestone-place-options b { color: #46536b; font-size: .55rem; }
.milestone-place-options small { color: #99a3b4; font-size: .47rem; }
.place-selection-error { display: none; margin-top: 7px; color: #ca405a; font-size: .5rem; }
.place-selection-error.show { display: block; }
.milestone-master-actions { display: flex; justify-content: flex-end; margin-top: 14px; gap: 8px; }
.milestone-template-list { display: grid; margin-top: 13px; gap: 8px; }
.milestone-template-list article { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: start; padding: 12px; background: #f9fbfd; border: 1px solid #e5eaf1; border-radius: 11px; gap: 10px; }
.template-order { display: grid; place-items: center; width: 31px; height: 31px; color: var(--blue-600); background: #e5efff; border-radius: 9px; font-size: .52rem; font-weight: 800; }
.milestone-template-list strong,.milestone-template-list small { display: block; }
.milestone-template-list strong { color: #435169; font-size: .59rem; }
.milestone-template-list small { margin-top: 3px; color: #9aa4b5; font-size: .48rem; }
.template-place-tags { display: flex; flex-wrap: wrap; margin-top: 8px; gap: 5px; }
.template-place-tags span { padding: 4px 6px; color: #396aa9; background: #e8f1ff; border-radius: 6px; font-size: .46rem; font-weight: 650; }
.template-place-tags .default-scope-tag { color: #176b50; background: #dff4eb; }
.master-guidance-panel { position: sticky; top: 86px; padding: 20px; background: #fff; border: 1px solid #e1e8f1; border-radius: 17px; box-shadow: 0 9px 26px rgba(24,55,105,.055); }
.master-guidance-panel h2 { margin: 4px 0 14px; color: var(--navy-950); font-size: .8rem; }
.master-guidance-panel ol { display: grid; margin: 0; padding: 0; list-style: none; gap: 12px; }
.master-guidance-panel li { display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 8px; }
.master-guidance-panel li > span { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: var(--blue-600); border-radius: 8px; font-size: .5rem; font-weight: 800; }
.master-guidance-panel li div { display: grid; gap: 2px; }
.master-guidance-panel li strong { color: #46536b; font-size: .55rem; }
.master-guidance-panel li small { color: #99a3b4; font-size: .48rem; line-height: 1.4; }
.mapping-example { margin-top: 16px; padding: 12px; color: #5c6980; background: #f3f7fd; border-radius: 10px; }
.mapping-example strong { color: #3d4b64; font-size: .56rem; }
.mapping-example p { margin: 5px 0 0; font-size: .49rem; line-height: 1.5; }
.operations-master-actions { grid-column: 1 / -1; margin-top: 16px; }

/* Project milestone tracking and photo evidence */
.titlebar-actions { display: flex; align-items: center; gap: 9px; }
.titlebar-actions .secondary-action svg,.compact-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.compact-action { min-height: 40px; text-decoration: none; }
.project-tracking-content { width: min(1220px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 110px; }
.project-selector-card { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; padding: 16px 18px; background: #fff; border: 1px solid #dfe7f1; border-radius: 15px; box-shadow: 0 7px 22px rgba(24,55,105,.04); gap: 18px; }
.project-selector-card > div { display: flex; align-items: center; min-width: 0; gap: 11px; }
.selector-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; color: var(--blue-600); background: #e5efff; border-radius: 11px; }
.selector-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.project-selector-card label { display: block; margin-bottom: 5px; color: #8b97a9; font-size: .5rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.project-selector-card select { min-width: 330px; height: 39px; padding: 0 34px 0 11px; color: #30405a; background: #f8faff; border: 1px solid #dce4ee; border-radius: 9px; outline: none; font-size: .62rem; font-weight: 700; }
.tracking-status { display: inline-flex; align-items: center; padding: 8px 11px; color: #906111; background: #fff3d9; border-radius: 99px; font-size: .53rem; font-weight: 750; gap: 7px; white-space: nowrap; }
.tracking-status i { width: 7px; height: 7px; background: #d79a2a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(215,154,42,.13); }
.tracking-status.completed { color: #166c4f; background: #e1f4eb; }
.tracking-status.completed i { background: #1b9a70; box-shadow: 0 0 0 4px rgba(27,154,112,.13); }
.tracking-status.awaiting { color: #58677e; background: #edf1f6; }
.tracking-status.awaiting i { background: #7c8ba1; box-shadow: 0 0 0 4px rgba(124,139,161,.13); }
.tracking-summary { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; color: #fff; background: linear-gradient(135deg,#162751,#0c1734); border-radius: 16px; box-shadow: 0 11px 30px rgba(11,26,61,.13); }
.tracking-summary > div { display: grid; min-width: 0; padding: 17px 19px; border-left: 1px solid rgba(255,255,255,.08); gap: 4px; }
.tracking-summary > div:first-child { border-left: 0; }
.tracking-summary span { color: rgba(255,255,255,.43); font-size: .48rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tracking-summary strong { overflow: hidden; color: #fff; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.tracking-summary small { overflow: hidden; color: rgba(255,255,255,.46); font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.summary-progress > div { height: 5px; margin: 4px 0 2px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 99px; }
.summary-progress > div i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#3183ff,#6ba5ff); border-radius: inherit; transition: width 250ms ease; }
.tracking-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; margin-top: 16px; gap: 16px; }
.tracking-milestones-card,.tracking-side-panel { background: #fff; border: 1px solid #e0e7f0; border-radius: 17px; box-shadow: 0 8px 25px rgba(24,55,105,.045); }
.tracking-milestones-card { padding: 22px; }
.tracking-card-heading { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #edf1f6; gap: 16px; }
.tracking-card-heading h2,.tracking-side-heading h2 { margin: 4px 0; color: var(--navy-950); font-size: .9rem; }
.tracking-card-heading p,.tracking-side-heading p { margin: 0; color: #929cad; font-size: .54rem; }
.milestone-legend { display: flex; align-items: center; flex-wrap: wrap; color: #8c97a8; font-size: .47rem; gap: 10px; }
.milestone-legend span { display: flex; align-items: center; gap: 5px; }
.milestone-legend i { width: 7px; height: 7px; background: #c5ceda; border-radius: 50%; }
.milestone-legend .complete i { background: #1c9b70; }
.milestone-legend .current i { background: var(--blue-600); box-shadow: 0 0 0 3px rgba(23,105,255,.11); }
.tracking-milestone-list { display: grid; padding-top: 7px; }
.tracking-milestone { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; min-height: 108px; padding: 13px 0; gap: 12px; }
.tracking-milestone:not(:last-child)::before { position: absolute; top: 52px; bottom: -8px; left: 18px; width: 1px; background: #dfe5ed; content: ""; }
.tracking-milestone-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; color: #8c98a9; background: #f0f3f7; border: 1px solid #dce3ec; border-radius: 11px; font-size: .57rem; font-weight: 800; }
.tracking-milestone.complete .tracking-milestone-marker { color: #fff; background: #1b9b70; border-color: #1b9b70; }
.tracking-milestone.current .tracking-milestone-marker { color: #fff; background: var(--blue-600); border-color: var(--blue-600); box-shadow: 0 0 0 5px rgba(23,105,255,.1); }
.tracking-milestone-main { min-width: 0; padding-top: 2px; }
.tracking-milestone-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tracking-milestone-title strong { color: #35445d; font-size: .64rem; }
.tracking-milestone-title span { padding: 4px 6px; color: #7d899b; background: #eef2f6; border-radius: 99px; font-size: .44rem; font-weight: 750; }
.tracking-milestone.complete .tracking-milestone-title span { color: #177054; background: #e1f3eb; }
.tracking-milestone.current .tracking-milestone-title span { color: #155fcf; background: #e4efff; }
.tracking-milestone-meta { display: flex; flex-wrap: wrap; margin-top: 7px; color: #8d98aa; font-size: .49rem; gap: 10px; }
.tracking-milestone-meta span { display: flex; align-items: center; gap: 4px; }
.tracking-milestone-meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tracking-milestone-main p { margin: 8px 0 0; color: #69768b; font-size: .51rem; line-height: 1.5; }
.view-milestone-photos { align-self: center; min-width: 84px; height: 31px; padding: 0 9px; color: var(--blue-600); background: #edf4ff; border: 1px solid #c9dcfb; border-radius: 8px; cursor: pointer; font-size: .48rem; font-weight: 750; }
.view-milestone-photos:disabled { color: #9aa5b4; background: #f2f4f7; border-color: #e2e6ec; cursor: default; }
.tracking-side-panel { position: sticky; top: 86px; padding: 20px; }
.tracking-side-heading { padding-bottom: 13px; border-bottom: 1px solid #edf1f6; }
.photo-filter-row { display: flex; margin: 12px 0 10px; gap: 6px; }
.photo-filter-row button { height: 29px; padding: 0 9px; color: #768398; background: #f3f5f8; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: .47rem; font-weight: 700; }
.photo-filter-row button.active { color: #145fcf; background: #e8f1ff; border-color: #c4dafb; }
.milestone-photo-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.milestone-photo-card { overflow: hidden; background: #f7f9fc; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; text-align: left; }
.milestone-photo-card img { display: block; width: 100%; height: 90px; object-fit: cover; background: #fff; }
.milestone-photo-card span { display: grid; padding: 8px; gap: 3px; }
.milestone-photo-card strong { overflow: hidden; color: #45536a; font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.milestone-photo-card small { color: #98a3b4; font-size: .42rem; }
.no-project-photos { justify-items: center; padding: 30px 12px; color: #8c98aa; text-align: center; }
.no-project-photos > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue-600); background: #e7f0ff; border-radius: 12px; }
.no-project-photos svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.no-project-photos strong { margin-top: 10px; color: #4f5c72; font-size: .58rem; }
.no-project-photos p { margin: 5px 0 0; font-size: .48rem; line-height: 1.5; }
.photo-viewer { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; }
.photo-viewer[hidden] { display: none !important; }
.photo-viewer-backdrop { position: absolute; background: rgba(5,12,29,.72); border: 0; inset: 0; backdrop-filter: blur(3px); }
.photo-viewer-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); width: min(920px,95vw); max-height: 88vh; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 26px 80px rgba(0,0,0,.28); }
.photo-viewer-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; color: #fff; background: rgba(11,23,52,.72); border: 0; border-radius: 10px; cursor: pointer; font-size: 1rem; }
.photo-viewer-image { display: grid; place-items: center; min-height: 440px; padding: 20px; background: #eef2f7; }
.photo-viewer-image img { max-width: 100%; max-height: 68vh; object-fit: contain; border-radius: 10px; }
.photo-viewer-details { align-self: stretch; padding: 30px 24px; }
.photo-viewer-details h2 { margin: 6px 0 8px; color: var(--navy-950); font-size: 1rem; }
.photo-viewer-details > p { margin: 0; color: #748197; font-size: .56rem; line-height: 1.6; }
.photo-viewer-details > div { display: grid; margin-top: 20px; gap: 10px; }
.photo-viewer-details > div span { display: flex; align-items: center; color: #7e8b9f; gap: 7px; }
.photo-viewer-details svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.photo-viewer-details b { color: #4e5c72; font-size: .52rem; font-weight: 650; }
.tracking-actions { margin-top: 16px; }

@media (max-width: 980px) {
  .tracking-layout { grid-template-columns: 1fr; }
  .tracking-side-panel { position: static; }
  .tracking-summary { grid-template-columns: repeat(2,1fr); }
  .tracking-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .tracking-summary > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 700px) {
  .project-tracking-content { padding: 24px 14px 90px; }
  .titlebar-actions { align-items: flex-end; flex-direction: column; }
  .project-selector-card { align-items: stretch; flex-direction: column; }
  .project-selector-card select { width: 100%; min-width: 0; }
  .tracking-status { align-self: flex-start; }
  .tracking-summary { grid-template-columns: 1fr; }
  .tracking-summary > div { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .tracking-summary > div:first-child { border-top: 0; }
  .tracking-card-heading { align-items: flex-start; flex-direction: column; }
  .tracking-milestone { grid-template-columns: 36px minmax(0,1fr); }
  .view-milestone-photos { grid-column: 2; justify-self: start; }
  .photo-viewer-dialog { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .photo-viewer-image { min-height: 260px; }
  .tracking-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 980px) {
  .operations-master-layout { grid-template-columns: 1fr; }
  .master-guidance-panel { position: static; }
}

@media (max-width: 700px) {
  .operations-master-content { padding: 24px 14px 90px; }
  .location-hierarchy-flow { grid-template-columns: repeat(4,1fr); padding: 12px 8px; }
  .location-hierarchy-flow > i { display: none; }
  .location-hierarchy-flow > div { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 4px; }
  .location-hierarchy-flow small { display: none; }
  .place-cascade-grid { grid-template-columns: 1fr; }
  .cascade-arrow { height: 20px; transform: rotate(90deg); }
  .place-secondary-grid { grid-template-columns: 1fr 1fr; }
  .place-secondary-grid .primary-action { grid-column: 1 / -1; }
  .place-directory article { grid-template-columns: 35px minmax(0,1fr) auto; }
  .place-directory code { display: none; }
  .milestone-place-options { grid-template-columns: 1fr; }
  .milestone-scope-options { grid-template-columns: 1fr; }
  .operations-master-actions { align-items: stretch; flex-direction: column; }
  .operations-master-actions > p { justify-content: center; }
  .operations-master-actions > div { display: grid; grid-template-columns: 1fr; }
}

/* Customer trucking quotation */
.quotation-create-content { width: min(1260px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 116px; }
.quote-source-card { margin: 25px 0 16px; padding: 18px 20px; background: #fff; border: 1px solid #dfe7f1; border-radius: 17px; box-shadow: 0 8px 24px rgba(24,55,105,.045); }
.quote-source-heading { display: flex; align-items: center; gap: 11px; }
.quote-source-heading > span { display: grid; place-items: center; width: 39px; height: 39px; color: var(--blue-600); background: #e8f1ff; border-radius: 11px; }
.quote-source-heading svg,.rate-source-badge svg,.profile-rate-note svg,.quote-email-ready svg,.full-width-action svg,.autofill-hint svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quote-source-heading h2 { margin: 0 0 4px; color: var(--navy-950); font-size: .82rem; }
.quote-source-heading p { margin: 0; color: #929cad; font-size: .52rem; }
.quotation-mode-options { display: grid; grid-template-columns: repeat(2,minmax(0,220px)); margin: 17px 0 5px; gap: 8px; }
.quotation-mode-options label { cursor: pointer; }
.quotation-mode-options input { position: absolute; opacity: 0; }
.quotation-mode-options label > span { display: grid; grid-template-columns: 30px 1fr; align-items: center; min-height: 52px; padding: 8px 11px; color: #748096; background: #f7f9fc; border: 1px solid #e1e7ef; border-radius: 11px; column-gap: 9px; }
.quotation-mode-options svg { grid-row: 1 / 3; width: 17px; height: 17px; padding: 6px; color: #7b899e; background: #edf1f6; border-radius: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quotation-mode-options b { font-size: .55rem; }
.quotation-mode-options small { font-size: .44rem; }
.quotation-mode-options input:checked + span { color: #155fcf; background: #ebf3ff; border-color: #8fb8f8; box-shadow: inset 0 0 0 1px rgba(23,105,255,.06); }
.quotation-mode-options input:checked + span svg { color: #fff; background: var(--blue-600); }
.existing-quotation-source { display: grid; grid-template-columns: minmax(0,1.25fr) 1fr .72fr; align-items: end; margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf1f6; gap: 10px; }
.existing-quotation-source[hidden] { display: none !important; }
.existing-quotation-source .form-field label { display: block; margin-bottom: 6px; color: #46536a; font-size: .54rem; font-weight: 700; }
.existing-quotation-source select { width: 100%; height: 43px; padding: 0 34px 0 11px; color: #33435c; background: #f9fbfd; border: 1px solid #dce4ee; border-radius: 9px; outline: none; font-size: .53rem; }
.quotation-revision-status,.quotation-revision-next { display: flex; align-items: center; min-height: 43px; padding: 8px 10px; border-radius: 10px; box-sizing: border-box; }
.quotation-revision-status { color: #176e52; background: #e8f5ef; gap: 8px; }
.quotation-revision-status > span { display: grid; place-items: center; width: 27px; height: 27px; background: #d5eee3; border-radius: 8px; }
.quotation-revision-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quotation-revision-status p { display: grid; margin: 0; gap: 2px; }
.quotation-revision-status strong { font-size: .5rem; }
.quotation-revision-status small { color: #60917e; font-size: .41rem; }
.quotation-revision-next { display: grid; color: #56657c; background: #f2f5f8; gap: 2px; }
.quotation-revision-next span { color: #8b97a8; font-size: .4rem; text-transform: uppercase; }
.quotation-revision-next strong { color: #34445d; font-size: .52rem; }
.quotation-revision-next small { color: #929dac; font-size: .39rem; line-height: 1.3; }
.draft-pill.revision-mode { color: #155fcf; background: #e7f0ff; }
.quote-source-options { display: flex; margin: 17px 0 13px; gap: 8px; }
.quote-source-options label { cursor: pointer; }
.quote-source-options input { position: absolute; opacity: 0; }
.quote-source-options label > span { display: grid; min-width: 154px; padding: 9px 12px; color: #748096; background: #f6f8fb; border: 1px solid #e2e7ee; border-radius: 10px; gap: 2px; }
.quote-source-options input:checked + span { color: #155fcf; background: #ebf3ff; border-color: #94baf6; box-shadow: inset 0 0 0 1px rgba(23,105,255,.07); }
.quote-source-options b { font-size: .55rem; }
.quote-source-options small { font-size: .45rem; }
.quote-source-selectors { display: grid; grid-template-columns: 1.35fr 1fr .9fr; align-items: end; gap: 11px; }
.quote-source-selectors .form-field label { display: block; margin-bottom: 6px; color: #46536a; font-size: .54rem; font-weight: 700; }
.quote-source-selectors select { width: 100%; height: 43px; padding: 0 34px 0 11px; color: #33435c; background: #f9fbfd; border: 1px solid #dce4ee; border-radius: 9px; outline: none; font-size: .56rem; }
.quote-source-selectors .is-source-disabled { opacity: .45; }
.source-autofill-status { display: flex; align-items: center; min-height: 43px; padding: 8px 10px; color: #177353; background: #e7f5ee; border-radius: 10px; gap: 8px; }
.source-autofill-status > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.source-autofill-status span { display: grid; gap: 2px; }
.source-autofill-status strong { font-size: .51rem; }
.source-autofill-status small { color: #59907c; font-size: .43rem; line-height: 1.35; }
.quotation-workspace { display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: start; gap: 16px; }
.quotation-form-column { display: grid; min-width: 0; gap: 16px; }
.quote-numbered-card { position: relative; }
.quote-section-heading { display: flex; align-items: center; min-height: 38px; padding-bottom: 16px; border-bottom: 1px solid #edf1f6; gap: 11px; }
.quote-section-heading > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: var(--blue-600); background: #e8f1ff; border-radius: 10px; font-size: .52rem; font-weight: 850; }
.quote-section-heading > div { min-width: 0; margin-right: auto; }
.quote-section-heading h2 { margin: 0 0 3px; color: var(--navy-950); font-size: .82rem; }
.quote-section-heading p { margin: 0; color: #929cad; font-size: .5rem; line-height: 1.45; }
.quote-section-heading > b,.rate-source-mini { padding: 6px 8px; color: #5b6a81; background: #f0f3f7; border-radius: 8px; font-size: .46rem; font-weight: 750; white-space: nowrap; }
.quote-grid { margin-top: 18px; }
.validity-control { display: grid; grid-template-columns: 1fr 94px; gap: 6px; }
.validity-control select { min-width: 0; }
.segmented-choice { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.segmented-choice label { cursor: pointer; }
.segmented-choice input { position: absolute; opacity: 0; }
.segmented-choice span { display: grid; place-items: center; height: 45px; color: #7b8799; background: #f7f9fc; border: 1px solid #dfe5ed; border-radius: 9px; font-size: .55rem; font-weight: 700; }
.segmented-choice input:checked + span { color: #155fce; background: #eaf3ff; border-color: #91b9f8; }
.pricing-card { overflow: hidden; }
.rate-source-badge { display: inline-flex; align-items: center; padding: 7px 9px; color: #155fcf; background: #e8f1ff; border-radius: 8px; font-size: .46rem; font-weight: 750; gap: 5px; white-space: nowrap; }
.rate-source-badge.oman { color: #9a6513; background: #fff1d4; }
.pricing-scope-options { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 18px; gap: 8px; }
.pricing-scope-options label { cursor: pointer; }
.pricing-scope-options input { position: absolute; opacity: 0; }
.pricing-scope-options label > span { position: relative; display: grid; min-height: 67px; padding: 12px 12px 12px 39px; color: #6d798d; background: #f8fafd; border: 1px solid #dfe6ee; border-radius: 11px; gap: 4px; }
.pricing-scope-options label > span::before { position: absolute; top: 15px; left: 13px; width: 15px; height: 15px; background: #fff; border: 1.5px solid #c3cede; border-radius: 50%; content: ""; }
.pricing-scope-options input:checked + span { color: #155fcf; background: #ebf3ff; border-color: #96bbf5; }
.pricing-scope-options input:checked + span::before { border: 5px solid var(--blue-600); }
.pricing-scope-options b { font-size: .52rem; line-height: 1.35; }
.pricing-scope-options small { font-size: .43rem; }
.pricing-rate-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 16px; gap: 9px; }
.rate-input { padding: 12px; background: #f8fafd; border: 1px solid #e1e7ef; border-radius: 11px; }
.rate-input.primary-rate { background: #edf5ff; border-color: #a9c8f8; }
.rate-input > label { display: block; margin-bottom: 7px; color: #445269; font-size: .52rem; font-weight: 750; }
.rate-input > label em { color: #df4865; font-style: normal; }
.rate-input > div { display: flex; align-items: center; height: 39px; overflow: hidden; background: #fff; border: 1px solid #dce4ed; border-radius: 8px; }
.rate-input > div span { padding: 0 9px; color: #778499; font-size: .48rem; font-weight: 750; white-space: nowrap; }
.rate-input input { width: 100%; min-width: 0; height: 100%; padding: 0 9px; color: #293a54; background: transparent; border: 0; outline: none; font-size: .62rem; font-weight: 750; }
.rate-input > small { display: block; margin-top: 6px; color: #98a3b3; font-size: .43rem; }
.profile-rate-note { display: flex; align-items: center; margin-top: 12px; padding: 11px 12px; color: #3f6da9; background: #f0f6ff; border-radius: 10px; gap: 9px; }
.profile-rate-note p { display: grid; margin: 0; gap: 2px; }
.profile-rate-note strong { color: #395f91; font-size: .51rem; }
.profile-rate-note span { color: #7187a4; font-size: .45rem; }
.exclusion-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 17px; gap: 8px; }
.exclusion-charge-card { display: grid; min-width: 0; padding: 10px; color: #6f7b8f; background: #f8fafd; border: 1px solid #e1e7ef; border-radius: 11px; gap: 9px; transition: border-color 150ms ease,background 150ms ease; }
.exclusion-charge-card.is-included { color: #176d51; background: #eaf6f0; border-color: #9fd4bf; }
.charge-inclusion-toggle { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; cursor: pointer; gap: 7px; }
.charge-inclusion-toggle input { position: absolute; opacity: 0; }
.charge-inclusion-toggle > span { display: grid; place-items: center; width: 20px; height: 20px; color: transparent; background: #fff; border: 1px solid #cbd5e2; border-radius: 6px; }
.charge-inclusion-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.charge-inclusion-toggle p { display: grid; min-width: 0; margin: 0; gap: 3px; }
.charge-inclusion-toggle b { overflow: hidden; font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.charge-inclusion-toggle small { color: #a0a9b8; font-size: .41rem; }
.charge-inclusion-toggle input:checked + span { color: #fff; background: #1a9870; border-color: #1a9870; }
.exclusion-charge-card.is-included .charge-inclusion-toggle small { color: #4b9479; }
.charge-amount-editor { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; height: 36px; overflow: hidden; background: #fff; border: 1px solid #dce4ed; border-radius: 8px; }
.charge-amount-editor > span { padding: 0 8px; color: #6e7c91; font-size: .44rem; font-weight: 750; }
.charge-amount-editor input { width: 100%; min-width: 0; height: 100%; padding: 0 7px; color: #314159; background: transparent; border: 0; border-right: 1px solid #e6ebf1; border-left: 1px solid #e6ebf1; outline: none; font-size: .54rem; font-weight: 750; }
.charge-amount-editor input:disabled { color: #adb5c1; background: #f3f5f8; cursor: not-allowed; }
.charge-amount-editor small { padding: 0 7px; color: #929dad; font-size: .39rem; white-space: nowrap; }
.other-charge-name { width: 100%; height: 34px; padding: 0 9px; color: #33425a; background: #fff; border: 1px solid #dce4ed; border-radius: 8px; outline: none; font-size: .47rem; box-sizing: border-box; }
.other-charge-name:disabled { color: #aab3c0; background: #f3f5f8; cursor: not-allowed; }
.exclusion-help { margin: 10px 0 0; color: #909aac; font-size: .46rem; }
.free-time-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 17px; gap: 9px; }
.autofill-hint { display: flex !important; align-items: center; color: #3c896c !important; gap: 4px; }
.autofill-hint svg { width: 12px; height: 12px; }
.standard-terms-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; gap: 12px; }
.standard-terms-grid > div { padding: 15px; color: #657187; background: #f8fafd; border: 1px solid #e2e8f0; border-radius: 11px; }
.standard-terms-grid h3 { margin: 0 0 10px; color: #3b4961; font-size: .58rem; }
.standard-terms-grid ul { display: grid; margin: 0; padding-left: 17px; gap: 6px; }
.standard-terms-grid li,.standard-terms-grid p { margin: 0 0 7px; font-size: .48rem; line-height: 1.55; }
.standard-terms-grid a { color: var(--blue-600); font-weight: 700; }
.quotation-summary-panel { position: sticky; top: 84px; padding: 19px; background: linear-gradient(155deg,#172850,#0c1734); border-radius: 17px; box-shadow: 0 15px 38px rgba(12,26,59,.18); }
.quotation-summary-panel .page-eyebrow { color: #70a5ff; }
.quotation-summary-panel h2 { margin: 7px 0 4px; color: #fff; font-size: .95rem; }
.quotation-summary-panel > p { margin: 0; color: rgba(255,255,255,.55); font-size: .52rem; }
.quote-summary-route { display: grid; margin: 18px 0; gap: 7px; }
.quote-summary-route span { display: flex; align-items: center; color: rgba(255,255,255,.82); gap: 8px; }
.quote-summary-route i { width: 8px; height: 8px; background: #4d93ff; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 4px rgba(77,147,255,.11); }
.quote-summary-route span:last-child i { background: #20b27e; }
.quote-summary-route b { overflow: hidden; font-size: .53rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-summary-route em { width: 1px; height: 18px; margin-left: 5px; background: repeating-linear-gradient(to bottom,rgba(255,255,255,.25) 0 3px,transparent 3px 6px); }
.quote-summary-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; }
.quote-summary-stats > div { display: grid; min-width: 0; padding: 11px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); gap: 4px; }
.quote-summary-stats > div:nth-child(2n) { border-right: 0; }
.quote-summary-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.quote-summary-stats span { color: rgba(255,255,255,.38); font-size: .42rem; text-transform: uppercase; }
.quote-summary-stats strong { overflow: hidden; color: #fff; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-email-ready { display: flex; align-items: center; margin-top: 14px; padding: 11px; color: #65a1ff; background: rgba(50,128,255,.11); border-radius: 10px; gap: 8px; }
.quote-email-ready p { display: grid; margin: 0; gap: 2px; }
.quote-email-ready strong { color: #fff; font-size: .5rem; }
.quote-email-ready span { color: rgba(255,255,255,.46); font-size: .42rem; }
.copy-inbox-list { display: grid; margin: 14px 0; gap: 5px; }
.copy-inbox-list span { margin-bottom: 2px; color: rgba(255,255,255,.38); font-size: .43rem; text-transform: uppercase; }
.copy-inbox-list strong { color: rgba(255,255,255,.76); font-size: .48rem; font-weight: 600; }
.copy-inbox-list small { color: rgba(255,255,255,.36); font-size: .41rem; line-height: 1.45; }
.full-width-action { width: 100%; justify-content: center; color: #d5e5ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.quote-create-actions { margin-top: 16px; }
.pdf-preview-modal { position: fixed; z-index: 110; display: grid; place-items: center; padding: 18px; inset: 0; }
.pdf-preview-modal[hidden] { display: none !important; }
.pdf-preview-backdrop { position: absolute; background: rgba(5,12,29,.76); border: 0; inset: 0; backdrop-filter: blur(4px); }
.pdf-preview-dialog { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: min(920px,96vw); height: min(92vh,900px); overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.34); }
.pdf-preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; background: #fff; border-bottom: 1px solid #e4e9f0; gap: 14px; }
.pdf-preview-toolbar > div { display: flex; align-items: center; gap: 9px; }
.pdf-preview-toolbar > div:first-child > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue-600); background: #e7f0ff; border-radius: 9px; }
.pdf-preview-toolbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pdf-preview-toolbar p { display: grid; margin: 0; gap: 2px; }
.pdf-preview-toolbar strong { color: #35445d; font-size: .6rem; }
.pdf-preview-toolbar small { color: #929dad; font-size: .44rem; }
.pdf-preview-close { width: 34px; height: 34px; color: #738096; background: #f0f3f7; border: 0; border-radius: 9px; cursor: pointer; font-size: 1.05rem; }
.pdf-preview-canvas { overflow-y: auto; padding: 25px; background: #e9edf3; }
.pdf-sheet { width: min(680px,100%); min-height: 760px; margin: 0 auto; padding: 42px 45px 30px; color: #25334a; background: #fff; box-shadow: 0 7px 30px rgba(26,39,65,.14); box-sizing: border-box; }
.official-quote-pdf { display: grid; align-content: start; gap: 24px; }
.official-pdf-page { min-height: 900px; }
.pdf-document-header.compact { padding-bottom: 13px; }
.pdf-document-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 3px solid #1769ff; gap: 20px; }
.pdf-document-header > div { display: grid; color: #102653; }
.pdf-document-header > div strong { font-size: 1.15rem; letter-spacing: .17em; }
.pdf-document-header > div span { color: #1769ff; font-size: .44rem; font-weight: 800; letter-spacing: .22em; }
.pdf-document-header > p { display: grid; margin: 0; text-align: right; gap: 5px; }
.pdf-document-header > p b { color: #102653; font-size: .7rem; }
.pdf-document-header > p small { color: #1769ff; font-size: .5rem; font-weight: 750; }
.pdf-document-meta { display: grid; grid-template-columns: 1.35fr .65fr; margin: 18px 0; padding: 13px 15px; background: #f3f6fa; border-radius: 8px; gap: 14px; }
.pdf-document-meta.official-meta { grid-template-columns: 1.25fr .65fr .7fr; }
.pdf-document-meta > div { display: grid; gap: 3px; }
.pdf-document-meta span,.pdf-info-grid span,.pdf-route-row span,.pdf-price-primary span,.pdf-charge-lines span,.pdf-terms-section p span,.vendor-pdf-recipient-box > span { color: #8390a3; font-size: .42rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.pdf-document-meta strong { color: #314159; font-size: .56rem; }
.pdf-document-meta small { color: #8e99a9; font-size: .43rem; }
.pdf-document-section { margin-top: 17px; }
.pdf-document-section h3 { margin: 0 0 9px; padding-bottom: 6px; color: #1769ff; border-bottom: 1px solid #dfe6ef; font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.pdf-route-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 14px; background: #0f2149; border-radius: 8px; gap: 12px; }
.pdf-route-row > div { display: grid; gap: 4px; }
.pdf-route-row span { color: rgba(255,255,255,.45); }
.pdf-route-row strong { color: #fff; font-size: .52rem; line-height: 1.4; }
.pdf-route-row i { color: #6da5ff; font-style: normal; }
.pdf-info-grid { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 8px; gap: 7px; }
.pdf-info-grid.three-column { grid-template-columns: repeat(3,1fr); }
.pdf-info-grid .wide { grid-column: 1 / -1; }
.pdf-info-grid > div { display: grid; min-width: 0; padding: 9px 11px; background: #f7f9fc; border: 1px solid #e5eaf1; border-radius: 7px; gap: 4px; }
.pdf-info-grid strong { color: #3e4d64; font-size: .48rem; line-height: 1.45; }
.pdf-price-primary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: #fff; background: #1769ff; border-radius: 8px; }
.pdf-scope-banner { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; padding: 8px 11px; color: #435169; background: #edf3fb; border-radius: 7px; }
.pdf-scope-banner span { color: #7d899b; font-size: .41rem; font-weight: 750; text-transform: uppercase; }
.pdf-scope-banner strong { color: #314159; font-size: .48rem; }
.pdf-price-primary span { color: rgba(255,255,255,.65); }
.pdf-price-primary strong { font-size: .66rem; }
.pdf-charge-lines { display: grid; margin-top: 6px; }
.pdf-charge-lines p { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 8px 4px; border-bottom: 1px solid #e8edf3; }
.pdf-charge-lines b { color: #425169; font-size: .48rem; }
.pdf-base-rate-grid { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 7px; overflow: hidden; border: 1px solid #e3e8ef; border-radius: 7px; }
.pdf-base-rate-grid p { display: grid; margin: 0; padding: 8px; border-right: 1px solid #e3e8ef; gap: 4px; }
.pdf-base-rate-grid p:last-child { border-right: 0; }
.pdf-base-rate-grid span { color: #8995a6; font-size: .38rem; text-transform: uppercase; }
.pdf-base-rate-grid b { color: #405069; font-size: .43rem; line-height: 1.35; }
.pdf-small-note { margin: -2px 0 9px; color: #7f8b9d; font-size: .42rem; line-height: 1.5; }
.pdf-status-table { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid #e2e8ef; border-radius: 7px; overflow: hidden; }
.pdf-status-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 7px 9px; border-right: 1px solid #e7ebf1; border-bottom: 1px solid #e7ebf1; gap: 7px; }
.pdf-status-row:nth-child(2n) { border-right: 0; }
.pdf-status-row:nth-last-child(-n+2) { border-bottom: 0; }
.pdf-status-row > span { display: grid; min-width: 0; gap: 2px; }
.pdf-status-row b { overflow: hidden; color: #47556b; font-size: .43rem; text-overflow: ellipsis; white-space: nowrap; }
.pdf-status-row small { color: #98a2b1; font-size: .36rem; }
.pdf-status-row > strong { padding: 4px 6px; color: #7b8798; background: #edf1f5; border-radius: 5px; font-size: .38rem; white-space: nowrap; }
.pdf-status-row.included { background: #f0f8f4; }
.pdf-status-row.included > strong { color: #176d51; background: #dcefe7; }
.pdf-official-terms { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 11px 15px 11px 28px; color: #57657a; background: #f7f9fc; border-radius: 8px; font-size: .43rem; line-height: 1.55; gap: 5px 22px; }
.pdf-legal-box { padding: 11px 13px; color: #526076; background: #f1f5fb; border-left: 3px solid #1769ff; border-radius: 0 7px 7px 0; }
.pdf-legal-box p { margin: 0 0 6px; font-size: .44rem; line-height: 1.55; }
.pdf-legal-box p:last-child { margin-bottom: 0; }
.pdf-acceptance-box { display: grid; grid-template-columns: 1.35fr .65fr; gap: 7px; }
.pdf-acceptance-box p { display: grid; margin: 0; padding: 10px 11px; background: #f7f9fc; border: 1px solid #e4e9f0; border-radius: 7px; gap: 4px; }
.pdf-acceptance-box strong { color: #3f4e65; font-size: .46rem; }
.pdf-acceptance-box span { color: #778397; font-size: .41rem; line-height: 1.5; }
.pdf-document-control { display: grid; grid-template-columns: repeat(2,1fr); overflow: hidden; border: 1px solid #e2e8ef; border-radius: 7px; }
.pdf-document-control > div { display: grid; padding: 8px 10px; border-right: 1px solid #e7ebf1; border-bottom: 1px solid #e7ebf1; gap: 3px; }
.pdf-document-control > div:nth-child(2n) { border-right: 0; }
.pdf-document-control > div:nth-last-child(-n+2) { border-bottom: 0; }
.pdf-document-control span { color: #8995a6; font-size: .38rem; text-transform: uppercase; }
.pdf-document-control strong { color: #435168; font-size: .44rem; }
.pdf-terms-section > div:not(.vendor-pdf-recipient-box) { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.pdf-terms-section p { display: grid; margin: 0; padding: 9px; background: #f7f9fc; border-radius: 7px; gap: 4px; }
.pdf-terms-section p strong { color: #435168; font-size: .46rem; line-height: 1.4; }
.pdf-terms-section ul { display: grid; margin: 9px 0 0; padding-left: 17px; color: #657187; font-size: .44rem; line-height: 1.5; gap: 3px; }
.vendor-pdf-recipient-box { display: grid; margin-top: 11px; padding: 10px 12px; color: #176d51; background: #e8f5ef; border-radius: 8px; gap: 3px; }
.vendor-pdf-recipient-box strong { font-size: .52rem; }
.vendor-pdf-recipient-box small { color: #5d907d; font-size: .42rem; line-height: 1.45; }
.compact-rfq-sheet { min-height: 0; padding: 34px 38px 25px; }
.rfq-pdf-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding-bottom: 17px; border-bottom: 3px solid #1769ff; gap: 12px; }
.rfq-brand-mark { display: grid; place-items: center; width: 45px; height: 45px; color: #fff; background: #1769ff; border-radius: 11px; }
.rfq-brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rfq-pdf-header > div:nth-child(2) { display: grid; gap: 3px; }
.rfq-pdf-header > div:nth-child(2) > span { color: #1769ff; font-size: .42rem; font-weight: 800; letter-spacing: .14em; }
.rfq-pdf-header h2 { margin: 0; color: #102653; font-size: .88rem; letter-spacing: .04em; }
.rfq-pdf-header p { margin: 0; color: #8a96a7; font-size: .42rem; }
.rfq-pdf-header p strong { color: #4d5b70; }
.rfq-pdf-header aside { display: grid; justify-items: end; gap: 3px; }
.rfq-pdf-header aside b { padding: 5px 7px; color: #fff; background: #102653; border-radius: 5px; font-size: .42rem; }
.rfq-pdf-header aside small { color: #758298; font-size: .38rem; }
.rfq-numbered-section { display: grid; grid-template-columns: auto 1fr; align-items: start; margin-top: 10px; padding: 10px 11px; background: #f7f9fc; border: 1px solid #e3e9f1; border-radius: 8px; gap: 10px; }
.rfq-numbered-section > span { display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: #1769ff; border-radius: 7px; font-size: .46rem; font-weight: 800; }
.rfq-numbered-section > div { min-width: 0; }
.rfq-numbered-section h3 { margin: 2px 0 8px; color: #253b60; font-size: .5rem; }
.rfq-numbered-section h3 b { font-size: .6rem; font-weight: 400; }
.rfq-numbered-section dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; overflow: hidden; background: #fff; border: 1px solid #e1e7ef; border-radius: 6px; }
.rfq-numbered-section dl.two-column { grid-template-columns: repeat(2,1fr); }
.rfq-numbered-section dl > div { display: grid; padding: 7px 9px; border-left: 1px solid #e7ecf2; gap: 3px; }
.rfq-numbered-section dl > div:first-child { border-left: 0; }
.rfq-numbered-section dt { color: #929cab; font-size: .36rem; font-weight: 750; text-transform: uppercase; }
.rfq-numbered-section dd { margin: 0; color: #3e4d63; font-size: .44rem; font-weight: 700; }
.rfq-requirement-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 10px; gap: 8px; }
.rfq-requirement-grid .rfq-numbered-section { margin-top: 0; }
.rfq-requirement-grid .rfq-numbered-section > div > strong { display: block; color: #1769ff; font-size: .52rem; line-height: 1.4; }
.rfq-cargo-notes { display: grid; grid-template-columns: 1fr 1.35fr; margin-top: 10px; gap: 8px; }
.rfq-cargo-notes > div { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 10px 11px; background: #eef4ff; border-radius: 8px; gap: 8px; }
.rfq-cargo-notes > div > span { font-size: .75rem; }
.rfq-cargo-notes p { display: grid; margin: 0; gap: 3px; }
.rfq-cargo-notes small { color: #7890b8; font-size: .36rem; font-weight: 750; text-transform: uppercase; }
.rfq-cargo-notes strong { color: #354965; font-size: .43rem; line-height: 1.4; }
.rfq-response-bar { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; margin-top: 10px; padding: 11px 13px; color: #fff; background: #102653; border-radius: 8px; gap: 14px; }
.rfq-response-bar div { display: grid; gap: 3px; }
.rfq-response-bar small { color: #7fa9ec; font-size: .35rem; font-weight: 800; }
.rfq-response-bar strong { font-size: .48rem; }
.rfq-response-bar p { margin: 0; color: rgba(255,255,255,.67); font-size: .4rem; line-height: 1.5; }
.rfq-recipient-box { position: relative; margin-top: 10px; padding-right: 150px; }
.rfq-recipient-box em { position: absolute; top: 50%; right: 12px; padding: 5px 7px; color: #176d51; background: #fff; border-radius: 5px; font-size: .37rem; font-style: normal; font-weight: 750; transform: translateY(-50%); }
.pdf-document-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 10px; color: #929dab; border-top: 1px solid #dfe5ed; font-size: .4rem; gap: 15px; }
.pdf-document-footer p { margin: 0; }
.pdf-preview-actions { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; background: #fff; border-top: 1px solid #e4e9f0; gap: 14px; }
.pdf-preview-actions > p { display: flex; align-items: center; margin: 0; color: #176e52; gap: 8px; }
.pdf-preview-actions > p > svg { width: 15px; height: 15px; padding: 5px; color: #fff; background: #1a9870; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2; }
.pdf-preview-actions > p span { display: grid; gap: 2px; }
.pdf-preview-actions > p strong { font-size: .5rem; }
.pdf-preview-actions > p small { color: #8190a3; font-size: .42rem; }
.pdf-preview-actions > div { display: flex; gap: 8px; }
.quote-email-modal { position: fixed; z-index: 100; display: grid; place-items: center; padding: 20px; inset: 0; }
.quote-email-modal[hidden] { display: none !important; }
.quote-email-backdrop { position: absolute; background: rgba(5,12,29,.7); border: 0; inset: 0; backdrop-filter: blur(3px); }
.quote-email-dialog { position: relative; z-index: 1; width: min(650px,95vw); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.quote-email-header { display: grid; grid-template-columns: 42px 1fr auto; align-items: start; padding: 21px 22px 17px; border-bottom: 1px solid #e8edf3; gap: 11px; }
.quote-email-header > span { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--blue-600); border-radius: 11px; }
.quote-email-header svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quote-email-header small { color: var(--blue-600); font-size: .44rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.quote-email-header h2 { margin: 3px 0 4px; color: var(--navy-950); font-size: .88rem; }
.quote-email-header p { margin: 0; color: #919cac; font-size: .48rem; }
.quote-email-header > button { width: 30px; height: 30px; color: #7c8899; background: #f0f3f7; border: 0; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.quote-email-body { display: grid; padding: 19px 22px; gap: 12px; }
.quote-email-body .form-field > label { display: block; margin-bottom: 6px; color: #445269; font-size: .52rem; font-weight: 700; }
.quote-email-body input,.quote-email-body textarea { width: 100%; padding: 10px 11px; color: #33425a; background: #f9fbfd; border: 1px solid #dce4ee; border-radius: 9px; outline: none; font: inherit; font-size: .54rem; line-height: 1.5; box-sizing: border-box; }
.email-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.email-chip-row span { padding: 6px 8px; color: #426b9f; background: #eaf2ff; border-radius: 7px; font-size: .46rem; font-weight: 650; }
.email-attachment-row { display: flex; align-items: center; padding: 11px; background: #f5f8fc; border: 1px solid #e0e7ef; border-radius: 10px; gap: 9px; }
.email-attachment-row > span { display: grid; place-items: center; width: 31px; height: 31px; color: var(--blue-600); background: #e6f0ff; border-radius: 8px; }
.email-attachment-row svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.email-attachment-row p { display: grid; min-width: 0; margin: 0 auto 0 0; gap: 2px; }
.email-attachment-row strong { color: #405069; font-size: .52rem; }
.email-attachment-row small { color: #939eaf; font-size: .43rem; }
.email-attachment-row b { color: #167353; font-size: .45rem; }
.email-copy-confirm { display: flex; align-items: center; cursor: pointer; gap: 9px; }
.email-copy-confirm input { position: absolute; opacity: 0; }
.email-copy-confirm > span { display: grid; place-items: center; width: 18px; height: 18px; color: transparent; background: #fff; border: 1px solid #cbd5e2; border-radius: 5px; }
.email-copy-confirm input:checked + span { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.email-copy-confirm svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.email-copy-confirm p { display: grid; margin: 0; gap: 2px; }
.email-copy-confirm strong { color: #45536a; font-size: .51rem; }
.email-copy-confirm small { color: #939dad; font-size: .43rem; }
.quote-email-actions { display: flex; justify-content: flex-end; padding: 15px 22px 20px; border-top: 1px solid #e9edf3; gap: 8px; }

@media (max-width: 1050px) {
  .quotation-workspace { grid-template-columns: 1fr; }
  .quotation-summary-panel { position: static; }
  .quote-source-selectors { grid-template-columns: 1fr 1fr; }
  .source-autofill-status { grid-column: 1 / -1; }
  .existing-quotation-source { grid-template-columns: 1fr 1fr; }
  .existing-quotation-source .form-field { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .quotation-create-content { padding: 24px 14px 96px; }
  .quote-source-options,.quote-create-actions { align-items: stretch; flex-direction: column; }
  .quotation-mode-options,.existing-quotation-source { grid-template-columns: 1fr; }
  .existing-quotation-source .form-field { grid-column: auto; }
  .quote-source-options label > span { min-width: 0; }
  .quote-source-selectors,.pricing-scope-options,.pricing-rate-grid,.exclusion-grid,.free-time-grid,.standard-terms-grid { grid-template-columns: 1fr; }
  .quote-section-heading { align-items: flex-start; flex-wrap: wrap; }
  .quote-section-heading > b,.rate-source-badge,.rate-source-mini { margin-left: 45px; }
  .quote-create-actions > div { display: grid; grid-template-columns: 1fr; }
  .quote-email-dialog { max-height: 94vh; }
  .pdf-preview-modal { padding: 8px; }
  .pdf-preview-dialog { width: 100%; height: 96vh; }
  .pdf-preview-toolbar,.pdf-preview-actions { align-items: stretch; flex-direction: column; }
  .pdf-preview-toolbar > div:last-child,.pdf-preview-actions > div { display: grid; grid-template-columns: 1fr auto; }
  .pdf-preview-canvas { padding: 10px; }
  .pdf-sheet { min-height: 0; padding: 25px 20px; }
  .pdf-document-header,.pdf-document-footer { align-items: flex-start; flex-direction: column; }
  .pdf-document-header > p { text-align: left; }
  .pdf-document-meta,.pdf-info-grid,.pdf-terms-section > div:not(.vendor-pdf-recipient-box) { grid-template-columns: 1fr; }
  .pdf-document-meta.official-meta,.pdf-info-grid.three-column,.pdf-acceptance-box,.pdf-document-control,.pdf-status-table { grid-template-columns: 1fr; }
  .rfq-pdf-header { grid-template-columns: auto 1fr; }
  .rfq-pdf-header aside { display: none; }
  .rfq-requirement-grid,.rfq-cargo-notes { grid-template-columns: 1fr; }
  .rfq-numbered-section dl { grid-template-columns: 1fr; }
  .rfq-numbered-section dl > div { border-top: 1px solid #e7ecf2; border-left: 0; }
  .rfq-numbered-section dl > div:first-child { border-top: 0; }
  .rfq-response-bar { grid-template-columns: 1fr; }
  .rfq-recipient-box { padding-right: 12px; }
  .rfq-recipient-box em { position: static; justify-self: start; margin-top: 4px; transform: none; }
  .pdf-base-rate-grid { grid-template-columns: 1fr 1fr; }
  .pdf-base-rate-grid p { border-bottom: 1px solid #e3e8ef; }
  .pdf-official-terms { grid-template-columns: 1fr; }
}

/* Record list pages */
.record-list-content { width: min(1240px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 90px; }
.record-title-actions { display: flex; align-items: center; gap: 8px; }
.record-title-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.record-summary-strip { display: grid; grid-template-columns: repeat(4,1fr); margin: 25px 0 15px; overflow: hidden; color: #fff; background: linear-gradient(135deg,#172850,#0c1734); border-radius: 16px; box-shadow: 0 11px 30px rgba(11,26,61,.13); }
.record-summary-strip > div { display: grid; min-width: 0; padding: 16px 18px; border-left: 1px solid rgba(255,255,255,.08); gap: 4px; }
.record-summary-strip > div:first-child { border-left: 0; }
.record-summary-strip span { color: rgba(255,255,255,.42); font-size: .45rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.record-summary-strip strong { color: #fff; font-size: .8rem; }
.record-summary-strip small { color: rgba(255,255,255,.42); font-size: .43rem; }
.record-list-card { overflow: hidden; background: #fff; border: 1px solid #dfe7f1; border-radius: 17px; box-shadow: 0 8px 26px rgba(24,55,105,.05); }
.record-list-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) 190px auto; align-items: end; padding: 16px 18px; border-bottom: 1px solid #e8edf3; gap: 10px; }
.record-list-search { position: relative; display: flex; align-items: center; }
.record-list-search svg { position: absolute; left: 12px; width: 15px; height: 15px; color: #8390a3; fill: none; stroke: currentColor; stroke-width: 1.8; }
.record-list-search input,.record-status-filter select { width: 100%; height: 41px; color: #384860; background: #f8fafd; border: 1px solid #dde5ee; border-radius: 9px; outline: none; font-size: .53rem; }
.record-list-search input { padding: 0 12px 0 37px; }
.record-status-filter { display: grid; color: #7f8b9d; font-size: .43rem; font-weight: 700; gap: 5px; }
.record-status-filter select { padding: 0 30px 0 10px; }
.record-list-toolbar > span { align-self: center; color: #8b97a8; font-size: .47rem; white-space: nowrap; }
.record-list-toolbar > span b { color: #4b596f; }
.record-table-wrap { overflow-x: auto; }
.record-table { width: 100%; border-collapse: collapse; }
.record-table th { padding: 11px 13px; color: #929dac; background: #f7f9fc; border-bottom: 1px solid #e8edf3; font-size: .42rem; font-weight: 750; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.record-table td { max-width: 220px; padding: 13px; color: #69768a; border-bottom: 1px solid #edf1f5; font-size: .49rem; line-height: 1.45; }
.record-table tbody tr:last-child td { border-bottom: 0; }
.record-table tbody tr:hover { background: #fbfcfe; }
.record-table td strong { color: #34445d; font-size: .52rem; }
.record-status { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 99px; font-size: .42rem; font-weight: 750; gap: 5px; white-space: nowrap; }
.record-status i { width: 6px; height: 6px; border-radius: 50%; }
.record-status.positive { color: #176e52; background: #e4f4ec; }
.record-status.positive i { background: #1a9870; }
.record-status.attention { color: #936219; background: #fff2d7; }
.record-status.attention i { background: #daa02f; }
.record-status.progress { color: #155fcf; background: #e7f0ff; }
.record-status.progress i { background: #1769ff; }
.record-row-action { display: inline-flex; align-items: center; color: var(--blue-600); font-size: .46rem; font-weight: 750; text-decoration: none; gap: 5px; white-space: nowrap; }
.record-row-action span { font-size: .68rem; }
.record-empty-state { justify-items: center; padding: 55px 20px; color: #8b97a8; text-align: center; }
.record-empty-state[hidden] { display: none; }
.record-empty-state > span { display: grid; place-items: center; width: 44px; height: 44px; color: var(--blue-600); background: #e7f0ff; border-radius: 12px; }
.record-empty-state svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.record-empty-state strong { margin-top: 10px; color: #4b596f; font-size: .62rem; }
.record-empty-state p { margin: 5px 0 0; font-size: .48rem; }
@media (max-width: 780px) {
  .record-list-content { padding: 24px 14px 80px; }
  .record-title-actions { align-items: stretch; flex-direction: column-reverse; }
  .record-summary-strip { grid-template-columns: repeat(2,1fr); }
  .record-summary-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .record-summary-strip > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .record-list-toolbar { grid-template-columns: 1fr; }
  .record-list-toolbar > span { justify-self: end; }
}

/* Operations, reports and application settings */
.operations-hub-content { width: min(1240px,100%); margin: 0 auto; padding: 32px clamp(24px,3vw,42px) 90px; }
.operations-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); margin: 25px 0 15px; gap: 12px; }
.operations-kpi-grid > div { position: relative; display: grid; min-width: 0; overflow: hidden; padding: 17px 18px; background: #fff; border: 1px solid #dfe7f1; border-radius: 15px; box-shadow: 0 8px 24px rgba(24,55,105,.045); gap: 5px; }
.operations-kpi-grid > div::after { position: absolute; top: 0; right: 0; width: 48px; height: 4px; content: ""; background: var(--blue-600); border-radius: 0 0 0 8px; }
.operations-kpi-grid span,.report-overview span { color: #8995a8; font-size: .45rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.operations-kpi-grid strong { color: #1d2d49; font-size: 1.02rem; }
.operations-kpi-grid small,.report-overview small { color: #8d98aa; font-size: .44rem; }
.operations-list-card { overflow: hidden; background: #fff; border: 1px solid #dfe7f1; border-radius: 17px; box-shadow: 0 8px 26px rgba(24,55,105,.05); }
.operations-list-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) 210px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #e8edf3; gap: 10px; }
.operations-list-toolbar label { position: relative; display: flex; align-items: center; }
.operations-list-toolbar label svg { position: absolute; left: 12px; width: 15px; height: 15px; color: #8390a3; fill: none; stroke: currentColor; stroke-width: 1.8; }
.operations-list-toolbar input,.operations-list-toolbar select,.report-filter-card input,.report-filter-card select,.settings-grid input,.settings-grid select { width: 100%; height: 41px; color: #384860; background: #f8fafd; border: 1px solid #dde5ee; border-radius: 9px; outline: none; font: inherit; font-size: .51rem; }
.operations-list-toolbar input { padding: 0 12px 0 37px; }
.operations-list-toolbar select,.report-filter-card select,.settings-grid select { padding: 0 30px 0 10px; }
.record-row-action[type="button"] { padding: 0; background: none; border: 0; cursor: pointer; }
.rating-stars { color: #efaa28; font-size: .56rem; letter-spacing: 1px; white-space: nowrap; }
.rating-stars b { margin-left: 4px; color: #45536a; font-size: .47rem; letter-spacing: 0; }
.rating-empty { color: #9ba5b4; font-size: .46rem; font-weight: 650; }
.document-list-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 7px; color: var(--blue-600); vertical-align: middle; background: #e8f0ff; border-radius: 8px; }
.document-list-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.file-count-pill { display: inline-flex; margin-right: 5px; padding: 4px 7px; color: #2560b8; background: #e8f0ff; border-radius: 99px; font-size: .42rem; font-weight: 750; }
.report-filter-card { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); margin: 25px 0 14px; padding: 15px 17px; background: #fff; border: 1px solid #dfe7f1; border-radius: 15px; box-shadow: 0 8px 24px rgba(24,55,105,.04); gap: 10px; }
.report-filter-card > div,.settings-grid > label { display: grid; color: #68758a; font-size: .44rem; font-weight: 720; gap: 6px; }
.report-filter-card input,.settings-grid input { padding: 0 11px; }
.report-overview { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; padding: 18px; color: #fff; background: linear-gradient(135deg,#172850,#0c1734); border-radius: 17px; box-shadow: 0 11px 30px rgba(11,26,61,.13); gap: 20px; }
.report-overview > div { display: grid; min-width: 0; gap: 6px; }
.report-overview strong { color: #fff; font-size: .9rem; }
.report-overview i { display: block; width: 100%; height: 4px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 99px; }
.report-overview i::after { display: block; width: var(--report-bar); height: 100%; content: ""; background: #3e82ff; border-radius: inherit; }
.report-overview span,.report-overview small { color: rgba(255,255,255,.48); }
.report-catalog { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.report-catalog article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 18px; background: #fff; border: 1px solid #dfe7f1; border-radius: 15px; box-shadow: 0 7px 22px rgba(24,55,105,.045); gap: 13px; transition: border-color .2s,transform .2s; }
.report-catalog article:hover { border-color: #aec8f6; transform: translateY(-1px); }
.report-catalog article > span,.settings-card-heading > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue-600); background: #e8f0ff; border-radius: 10px; }
.report-catalog svg,.settings-card-heading svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.report-catalog h2,.settings-card-heading h2 { margin: 0 0 4px; color: #2d3d57; font-size: .62rem; }
.report-catalog p,.settings-card-heading p { margin: 0; color: #8995a7; font-size: .46rem; line-height: 1.5; }
.report-catalog small { display: block; margin-top: 7px; color: #a0a9b7; font-size: .42rem; }
.report-catalog button { padding: 7px 0 7px 8px; color: var(--blue-600); background: none; border: 0; cursor: pointer; font-size: .45rem; font-weight: 750; white-space: nowrap; }
.report-card-actions { display: grid; min-width: 92px; gap: 3px; }
.report-card-actions .report-pdf-button { display: inline-flex; align-items: center; justify-content: flex-end; padding: 7px 8px; color: #fff; background: var(--blue-600); border-radius: 7px; gap: 5px; }
.report-card-actions .report-pdf-button:hover { background: #0d58d1; }
.report-card-actions .report-pdf-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.report-pdf-sheet { min-height: 1060px; }
.report-pdf-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 22px 0 18px; padding: 18px; color: #fff; background: linear-gradient(135deg,#14264d,#0d1836); border-radius: 8px; gap: 20px; }
.report-pdf-heading > div:first-child { max-width: 64%; }
.report-pdf-heading span,.report-pdf-heading small { color: rgba(255,255,255,.56); font-size: .43rem; font-weight: 750; letter-spacing: .06em; }
.report-pdf-heading h2 { margin: 5px 0; color: #fff; font-size: 1rem; }
.report-pdf-heading p { margin: 0; color: rgba(255,255,255,.68); font-size: .48rem; line-height: 1.55; }
.report-pdf-heading > div:last-child { display: grid; text-align: right; gap: 5px; }
.report-pdf-heading > div:last-child strong { color: #fff; font-size: .53rem; }
.report-pdf-metrics { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 18px; border: 1px solid #dfe6ef; border-radius: 8px; }
.report-pdf-metrics > div { display: grid; padding: 13px; border-left: 1px solid #dfe6ef; gap: 4px; }
.report-pdf-metrics > div:first-child { border-left: 0; }
.report-pdf-metrics small { color: #8d98a8; font-size: .41rem; font-weight: 720; text-transform: uppercase; }
.report-pdf-metrics strong { color: #1e3761; font-size: .72rem; }
.report-pdf-table-section { margin-bottom: 18px; }
.report-pdf-table-section > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.report-pdf-table-section h3,.report-pdf-notes h3 { margin: 0; color: #263d62; font-size: .58rem; }
.report-pdf-table-section > div span { color: #718096; font-size: .43rem; }
.report-pdf-table-section table { width: 100%; border-collapse: collapse; }
.report-pdf-table-section th { padding: 8px; color: #758298; background: #eef3f9; border: 1px solid #dfe6ef; font-size: .4rem; text-align: left; text-transform: uppercase; }
.report-pdf-table-section td { padding: 9px 8px; color: #526075; border: 1px solid #e2e8f0; font-size: .43rem; }
.report-pdf-table-section tbody tr:nth-child(even) { background: #f8fafc; }
.report-pdf-notes { margin-bottom: 24px; padding: 13px; background: #f6f8fb; border-left: 3px solid var(--blue-600); }
.report-pdf-notes p { margin: 5px 0 0; color: #6f7c8f; font-size: .43rem; line-height: 1.55; }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: start; margin-top: 25px; gap: 15px; }
.settings-nav { position: sticky; top: 82px; display: grid; overflow: hidden; padding: 7px; background: #fff; border: 1px solid #dfe7f1; border-radius: 14px; box-shadow: 0 8px 24px rgba(24,55,105,.04); gap: 3px; }
.settings-nav a { padding: 10px 11px; color: #718096; border-radius: 8px; font-size: .47rem; font-weight: 700; text-decoration: none; }
.settings-nav a.active,.settings-nav a:hover { color: #145ecf; background: #eaf2ff; }
.settings-content { display: grid; gap: 12px; }
.settings-card { padding: 19px; background: #fff; border: 1px solid #dfe7f1; border-radius: 16px; box-shadow: 0 8px 24px rgba(24,55,105,.04); scroll-margin-top: 85px; }
.settings-card-heading { display: flex; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #edf1f5; gap: 11px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); padding-top: 15px; gap: 12px; }
.settings-toggle-list { display: grid; margin-top: 14px; gap: 8px; }
.settings-toggle-list > label { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 10px 11px; cursor: pointer; background: #f8fafd; border: 1px solid #e4eaf2; border-radius: 10px; column-gap: 10px; }
.settings-toggle-list input { position: absolute; opacity: 0; }
.settings-toggle-list label > span { position: relative; width: 31px; height: 18px; background: #bdc7d5; border-radius: 99px; transition: background .2s; }
.settings-toggle-list label > span::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; content: ""; background: #fff; border-radius: 50%; transition: transform .2s; }
.settings-toggle-list input:checked + span { background: var(--blue-600); }
.settings-toggle-list input:checked + span::after { transform: translateX(13px); }
.settings-toggle-list p { display: grid; margin: 0; gap: 2px; }
.settings-toggle-list strong { color: #45536a; font-size: .49rem; }
.settings-toggle-list small { color: #8d98aa; font-size: .43rem; }
.settings-inline-link { display: inline-flex; margin-top: 13px; color: var(--blue-600); font-size: .46rem; font-weight: 730; text-decoration: none; }
.master-settings-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.master-settings-card .settings-card-heading { flex: 1; padding-bottom: 0; border-bottom: 0; }
.master-settings-card .primary-action { white-space: nowrap; }
.settings-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 11px 12px; background: #f8fafd; border: 1px solid #e4eaf2; border-radius: 10px; gap: 14px; }
.settings-card-action > div { display: grid; gap: 3px; }
.settings-card-action strong { color: #45536a; font-size: .5rem; }
.settings-card-action small { color: #8d98aa; font-size: .43rem; }
.settings-card-action .secondary-action { min-height: 37px; white-space: nowrap; }

/* Web application users */
.user-management-content { position: relative; }
.user-management-content > .master-titlebar .primary-action svg,.user-drawer .primary-action svg,.settings-card-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.user-summary-strip { margin-bottom: 12px; }
.user-access-note { display: flex; align-items: center; margin-bottom: 14px; padding: 11px 14px; color: #53627a; background: #edf5ff; border: 1px solid #cfe0fb; border-radius: 12px; gap: 11px; }
.user-access-note > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: var(--blue-600); background: #fff; border-radius: 9px; }
.user-access-note svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.user-access-note strong { display: block; color: #334764; font-size: .54rem; }
.user-access-note p { margin: 3px 0 0; color: #74839a; font-size: .46rem; }
.created-user-credentials { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; margin-bottom: 14px; padding: 14px 46px 14px 14px; color: #25624e; background: #e7f6ef; border: 1px solid #b9e2d1; border-radius: 13px; gap: 11px; }
.created-user-credentials[hidden] { display: none; }
.created-user-credentials > span { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #1a9870; border-radius: 10px; }
.created-user-credentials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.created-user-credentials strong { color: #245944; font-size: .56rem; }
.created-user-credentials p { margin: 3px 0 8px; color: #5f7f71; font-size: .44rem; }
.created-user-credentials dl { display: flex; margin: 0; gap: 8px; }
.created-user-credentials dl div { min-width: 180px; padding: 7px 9px; background: rgba(255,255,255,.68); border-radius: 8px; }
.created-user-credentials dt { color: #6c8a7c; font-size: .39rem; font-weight: 700; text-transform: uppercase; }
.created-user-credentials dd { margin: 2px 0 0; color: #214f3d; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .5rem; font-weight: 750; }
.created-user-credentials > button:not(.credential-dismiss) { padding: 9px 11px; color: #176b50; background: #fff; border: 1px solid #a8d8c4; border-radius: 8px; cursor: pointer; font-size: .45rem; font-weight: 750; }
.created-user-credentials .credential-dismiss { position: absolute; top: 8px; right: 9px; color: #5e8272; background: transparent; border: 0; cursor: pointer; font-size: 1rem; }
.user-list-toolbar { grid-template-columns: minmax(240px,1fr) 155px 155px auto; }
.user-identity { display: flex; align-items: center; min-width: 190px; gap: 9px; }
.user-identity > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: #1b61c7; background: #e5efff; border-radius: 9px; font-size: .48rem; font-weight: 800; }
.user-identity > div { display: grid; min-width: 0; gap: 2px; }
.user-identity small,.table-subtext { display: block; overflow: hidden; margin-top: 3px; color: #9aa4b4; font-size: .42rem; text-overflow: ellipsis; white-space: nowrap; }
.user-role-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.user-role-tags span { padding: 4px 6px; color: #2c65b6; background: #e9f1ff; border-radius: 6px; font-size: .41rem; font-weight: 700; }
.record-status.neutral { color: #657185; background: #edf0f4; }
.record-status.neutral i { background: #8894a5; }
.user-drawer-shell { position: fixed; inset: 0; z-index: 100; }
.user-drawer-shell[hidden] { display: none; }
.user-drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(8,18,42,.48); border: 0; cursor: default; backdrop-filter: blur(2px); }
.user-drawer { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: min(610px,94vw); height: 100%; overflow: hidden; background: #f5f8fc; box-shadow: -18px 0 50px rgba(8,22,50,.18); }
.user-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 27px 20px; background: #fff; border-bottom: 1px solid #e3e9f1; gap: 20px; }
.user-drawer h2 { margin: 3px 0 5px; color: var(--navy-950); font-size: 1.25rem; }
.user-drawer header p { margin: 0; color: #8793a5; font-size: .57rem; }
.user-drawer header > button { display: grid; place-items: center; width: 34px; height: 34px; color: #6e7b90; background: #f1f4f8; border: 0; border-radius: 9px; cursor: pointer; }
.user-drawer header > button span { font-size: 1.25rem; line-height: 1; }
.user-drawer form { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; }
.user-form-section { margin: 14px 18px 0; padding: 19px; background: #fff; border: 1px solid #dfe7f1; border-radius: 14px; }
.user-form-section-title { display: flex; align-items: center; padding-bottom: 13px; border-bottom: 1px solid #edf1f5; gap: 10px; }
.user-form-section-title > span { display: grid; place-items: center; width: 29px; height: 29px; color: var(--blue-600); background: #e8f1ff; border-radius: 8px; font-size: .48rem; font-weight: 800; }
.user-form-section-title > div { display: grid; gap: 2px; }
.user-form-section-title strong { color: #37465f; font-size: .6rem; }
.user-form-section-title small { color: #96a0b0; font-size: .44rem; }
.user-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 15px; gap: 13px; }
.user-form-grid .wide { grid-column: 1 / -1; }
.user-readonly-input { position: relative; }
.user-readonly-input svg { position: absolute; top: 14px; left: 12px; width: 16px; height: 16px; color: #8290a4; fill: none; stroke: currentColor; stroke-width: 1.8; }
.user-readonly-input input { padding-left: 38px; color: #647187; background: #eef2f7; }
.temporary-password-note { display: flex; align-items: center; padding: 11px 12px; color: #53627a; background: #f4f7fb; border: 1px solid #dfe6ef; border-radius: 10px; gap: 10px; }
.temporary-password-note > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; color: var(--blue-600); background: #e5efff; border-radius: 9px; }
.temporary-password-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.temporary-password-note div { display: grid; gap: 3px; }
.temporary-password-note strong { color: #45536a; font-size: .49rem; }
.temporary-password-note small { color: #8d98aa; font-size: .42rem; line-height: 1.4; }
.user-activation-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.user-activation-options input,.user-role-picker input { position: absolute; opacity: 0; }
.user-activation-options label,.user-role-picker label { cursor: pointer; }
.user-activation-options label > span { display: grid; grid-template-columns: 29px 1fr; align-items: center; min-height: 64px; padding: 10px; background: #f8fafd; border: 1px solid #dfe6ef; border-radius: 10px; column-gap: 9px; }
.user-activation-options svg { grid-row: 1 / 3; width: 15px; height: 15px; padding: 7px; box-sizing: content-box; color: #6f7d91; background: #edf1f6; border-radius: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.user-activation-options b,.user-activation-options small { display: block; }
.user-activation-options b { color: #4a586e; font-size: .48rem; }
.user-activation-options small { color: #98a2b2; font-size: .4rem; line-height: 1.35; }
.user-activation-options input:checked + span { background: #edf5ff; border-color: #8eb8f9; box-shadow: inset 0 0 0 1px rgba(23,105,255,.08); }
.user-activation-options input:checked + span svg { color: #fff; background: var(--blue-600); }
.user-role-picker { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 15px; gap: 8px; }
.user-role-picker label > span { position: relative; display: grid; grid-template-columns: 31px 1fr; align-items: center; min-height: 58px; padding: 10px 10px 10px 42px; background: #f8fafd; border: 1px solid #dfe6ef; border-radius: 10px; }
.user-role-picker label > span::before { position: absolute; top: 20px; left: 14px; width: 16px; height: 16px; background: #fff; border: 1.5px solid #c8d2e0; border-radius: 5px; content: ""; }
.user-role-picker svg { grid-row: 1 / 3; width: 15px; height: 15px; color: #718097; fill: none; stroke: currentColor; stroke-width: 1.8; }
.user-role-picker b { color: #435169; font-size: .48rem; }
.user-role-picker small { color: #98a2b2; font-size: .4rem; }
.user-role-picker input:checked + span { background: #edf5ff; border-color: #91bafa; }
.user-role-picker input:checked + span::before { background: var(--blue-600); border-color: var(--blue-600); }
.user-role-picker input:checked + span::after { position: absolute; top: 22px; left: 20px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; content: ""; transform: rotate(45deg); }
.user-role-error { display: none; margin-top: 7px; color: #ca405a; font-size: .45rem; }
.user-role-error.show { display: block; }
.user-status-toggle { display: grid; grid-template-columns: auto 1fr; align-items: center; margin-top: 13px; padding: 10px 11px; cursor: pointer; background: #f8fafd; border: 1px solid #e4eaf2; border-radius: 10px; column-gap: 10px; }
.user-status-toggle input { position: absolute; opacity: 0; }
.user-status-toggle > span { position: relative; width: 31px; height: 18px; background: #bdc7d5; border-radius: 99px; }
.user-status-toggle > span::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; content: ""; background: #fff; border-radius: 50%; transition: transform .2s; }
.user-status-toggle input:checked + span { background: var(--blue-600); }
.user-status-toggle input:checked + span::after { transform: translateX(13px); }
.user-status-toggle div { display: grid; gap: 2px; }
.user-status-toggle strong { color: #45536a; font-size: .48rem; }
.user-status-toggle small { color: #8d98aa; font-size: .41rem; }
.user-drawer footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; margin-top: 14px; padding: 15px 18px; background: #fff; border-top: 1px solid #e1e7ef; gap: 8px; }
.user-footer-spacer { flex: 1; }
.danger-outline-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 13px; color: #b13f58; background: #fff5f7; border: 1px solid #efc6cf; border-radius: 10px; cursor: pointer; font-size: .5rem; font-weight: 750; gap: 7px; }
.danger-outline-action[hidden] { display: none; }
.danger-outline-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.danger-outline-action:disabled,.user-drawer footer button:disabled { cursor: wait; opacity: .58; }
body.user-drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  .operations-kpi-grid,.report-overview { grid-template-columns: repeat(2,1fr); }
  .report-filter-card { grid-template-columns: repeat(2,1fr); }
  .report-catalog { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .operations-hub-content { padding: 24px 14px 80px; }
  .operations-list-toolbar,.report-filter-card,.settings-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; grid-template-columns: repeat(3,1fr); }
  .master-settings-card { align-items: stretch; flex-direction: column; }
  .settings-card-action { align-items: stretch; flex-direction: column; }
  .created-user-credentials { grid-template-columns: 38px 1fr; }
  .created-user-credentials > button:not(.credential-dismiss) { grid-column: 1 / -1; }
  .created-user-credentials dl { flex-direction: column; }
  .user-form-grid,.user-role-picker,.user-activation-options { grid-template-columns: 1fr; }
  .user-form-grid .wide { grid-column: auto; }
  .user-drawer > header { padding: 20px; }
  .user-form-section { margin: 12px 12px 0; padding: 16px; }
  .report-catalog article { grid-template-columns: auto 1fr; }
  .report-card-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .report-card-actions .report-pdf-button { justify-content: center; }
  .report-pdf-heading { align-items: flex-start; flex-direction: column; }
  .report-pdf-heading > div:first-child { max-width: none; }
  .report-pdf-heading > div:last-child { text-align: left; }
  .report-pdf-metrics { grid-template-columns: repeat(2,1fr); }
  .report-pdf-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid #dfe6ef; }
  .report-pdf-metrics > div:nth-child(4) { border-top: 1px solid #dfe6ef; }
}

@media (max-width: 960px) {
  .user-list-toolbar { grid-template-columns: 1fr 1fr; }
  .user-list-toolbar .record-list-search { grid-column: 1 / -1; }
  .user-list-toolbar > span { justify-self: end; }
}

@media print {
  body:has(#reportPdfPreview:not([hidden])) > *:not(.app-shell) { display: none !important; }
  body:has(#reportPdfPreview:not([hidden])) .app-sidebar,
  body:has(#reportPdfPreview:not([hidden])) .app-header,
  body:has(#reportPdfPreview:not([hidden])) .operations-hub-content > *:not(#reportPdfPreview),
  body:has(#reportPdfPreview:not([hidden])) .pdf-preview-toolbar,
  body:has(#reportPdfPreview:not([hidden])) .pdf-preview-actions,
  body:has(#reportPdfPreview:not([hidden])) .pdf-preview-backdrop { display: none !important; }
  body:has(#reportPdfPreview:not([hidden])) .app-main { margin: 0 !important; }
  body:has(#reportPdfPreview:not([hidden])) #reportPdfPreview { position: static; display: block; padding: 0; }
  body:has(#reportPdfPreview:not([hidden])) .pdf-preview-dialog { display: block; width: auto; height: auto; overflow: visible; box-shadow: none; }
  body:has(#reportPdfPreview:not([hidden])) .pdf-preview-canvas { overflow: visible; padding: 0; background: #fff; }
  body:has(#reportPdfPreview:not([hidden])) .report-pdf-sheet { min-height: 0; margin: 0; box-shadow: none; }
}
.customer-app-access-card .app-access-toggle{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #dce6f4;border-radius:14px;background:#f8fbff;cursor:pointer}.app-access-toggle>input{position:absolute;opacity:0}.app-access-toggle>span:last-child{display:flex;flex-direction:column;gap:3px}.app-access-toggle small{color:#70809b}.app-access-switch{position:relative;flex:0 0 46px;width:46px;height:26px;border-radius:20px;background:#b8c5d8;transition:.2s}.app-access-switch:after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #20304b33;transition:.2s}.app-access-toggle input:checked+.app-access-switch{background:#2472f3}.app-access-toggle input:checked+.app-access-switch:after{transform:translateX(20px)}.customer-app-access-fields{margin-top:18px}.app-access-notice{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px;padding:13px 15px;border-radius:12px;background:#eef5ff;color:#24446f}.app-access-notice svg{width:20px;height:20px;fill:none;stroke:currentColor}.app-access-notice p{display:flex;flex-direction:column;margin:0}.app-password-field{display:flex}.app-password-field input{border-radius:10px 0 0 10px}.app-password-field button{border:1px solid #d4dfef;border-left:0;background:#fff;color:#2466d1;font-weight:700;padding:0 12px}.app-password-field button:last-child{border-radius:0 10px 10px 0}
