:root {
  --navy: #0B1F3B;
  --blue: #1565C0;
  --green: #49C628;
  --yellow: #F4C21D;
  --gray: #6B7280;
  --line: rgba(11, 31, 59, 0.12);
  --bg: #f6f8fb;
  --white: #fff;
  font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--navy); }
a { color: var(--blue); text-decoration: none; font-weight: 800; }
.auth-help { margin: 16px 0 0; text-align: center; }
.auth-help a { color: var(--blue); font-weight: 900; }
.auth-help a:hover { text-decoration: underline; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: var(--navy); color: #fff; padding: 24px; position: sticky; top: 0; height: 100vh; }
.brand img { width: 172px; max-width: 100%; margin-bottom: 24px; }
.sidebar a { display: block; color: #dce9ff; padding: 10px 0; }
.sidebar a:hover { color: #fff; }
.nav-section { display: block; margin: 18px 0 5px; color: #8fb3e8; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.sidebar .user { display: none; }
.user-card { display: grid; gap: 7px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: #dce9ff; font-size: .9rem; }
.user-card strong { color: #fff; font-size: 1rem; }
.user-card span { color: #dce9ff; }
.user-card a { padding: 5px 0; }
.main { padding: 28px clamp(18px, 4vw, 48px); }
.app-header { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-greeting { display: flex; align-items: baseline; gap: 6px; color: var(--gray); font-weight: 800; }
.app-greeting strong { color: var(--navy); font-size: 1.05rem; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); padding: 9px 12px; font-weight: 900; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; display: grid; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 42px rgba(11,31,59,.12); }
.user-menu a { padding: 9px 10px; border-radius: 7px; color: var(--navy); }
.user-menu a:hover { background: #eef5ff; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: clamp(1.9rem, 3vw, 3rem); }
.welcome-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 18px; align-items: center; margin-bottom: 22px; padding: 22px; border: 1px solid rgba(21, 101, 192, .16); border-radius: 12px; background: linear-gradient(135deg, #fff, #f4f9ff); box-shadow: 0 14px 32px rgba(11,31,59,.07); }
.welcome-panel h2 { margin: 4px 0 8px; font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.welcome-panel p { margin: 0; color: var(--gray); font-weight: 700; }
.account-summary { display: grid; gap: 10px; }
.account-summary span { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; }
.account-summary strong { color: var(--gray); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.role-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.role-pill { margin: 0 4px 4px 0; }
.ops-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 24px; border: 1px solid rgba(21,101,192,.16); border-radius: 12px; background: linear-gradient(135deg, #fff, #f4f9ff); box-shadow: 0 16px 38px rgba(11,31,59,.07); }
.ops-hero h2 { margin: 5px 0 12px; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.ops-badges, .ops-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.role-badge, .status-dot, .supplier-score { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 10px; border-radius: 999px; font-weight: 900; font-size: .84rem; }
.role-badge.client { background: #e8f1ff; color: var(--blue); }
.role-badge.supplier { background: #ecfdf3; color: #228313; }
.status-dot { background: #e8f8e5; color: #237914; }
.supplier-score { background: #fff8dc; color: #8b6500; }
.ops-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ops-metric { display: grid; gap: 8px; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); box-shadow: 0 12px 28px rgba(11,31,59,.05); }
.ops-metric span { color: var(--gray); font-size: .82rem; }
.ops-metric strong { align-self: end; font-size: 2rem; }
.ops-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; }
.alert-list { display: grid; gap: 10px; }
.alert-item { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 9px; background: #fff; color: var(--navy); }
.alert-item span { color: var(--gray); font-weight: 700; }
.alert-item.danger { border-left-color: #dc2626; }
.alert-item.warn { border-left-color: var(--yellow); }
.alert-item.ok { border-left-color: var(--green); }
.business-kpis { display: grid; gap: 10px; }
.business-kpis span { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; color: var(--gray); font-weight: 800; }
.business-kpis strong { color: var(--navy); font-size: 1.25rem; }
.process-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.process-links a { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; color: var(--navy); }
.process-links span { color: var(--gray); font-weight: 700; font-size: .85rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { padding: 7px 10px; border-radius: 999px; background: #eef5ff; color: var(--navy); font-weight: 900; font-size: .84rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.detail-grid span { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; color: var(--navy); font-weight: 800; }
.detail-grid strong { color: var(--gray); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #fff, #eef5ff); }
.auth-card { width: min(760px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow: 0 22px 55px rgba(11,31,59,.1); }
.auth-card h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.4rem); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.access-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.card, .panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 12px 28px rgba(11,31,59,.06); }
.card strong { display: block; font-size: 2rem; margin-top: 6px; }
.panel { margin-bottom: 18px; }
.panel h2, .card h3 { margin: 0 0 12px; }
label { display: grid; gap: 6px; font-weight: 800; font-size: .9rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; color: var(--navy); background: #fff; }
select[multiple] { min-height: 170px; padding: 8px; }
textarea { min-height: 112px; resize: vertical; }
.full { grid-column: 1 / -1; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 15px; background: var(--navy); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.btn.secondary, button.secondary { background: #eef5ff; color: var(--navy); }
.btn.green { background: var(--green); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 18px; font-weight: 800; }
.notice.ok { background: #ecfdf3; color: #1d7f14; }
.notice.err { background: #fff1f0; color: #b42318; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
th { background: #f2f6fb; color: var(--navy); }
.pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eef5ff; color: var(--navy); font-weight: 900; font-size: .78rem; }
.pill.status-green { background: #e8f8e5; color: #237914; border: 1px solid rgba(73,198,40,.28); }
.pill.status-yellow { background: #fff8dc; color: #8b6500; border: 1px solid rgba(244,194,29,.42); }
.pill.status-blue { background: #e8f1ff; color: #155bb0; border: 1px solid rgba(21,101,192,.22); }
.pill.status-red { background: #fff1f0; color: #b42318; border: 1px solid rgba(180,35,24,.18); }
.pill.status-gray { background: #f3f4f6; color: #4b5563; border: 1px solid rgba(107,114,128,.18); }
.legal-box { border-left: 5px solid var(--yellow); background: #fffaf0; padding: 14px; border-radius: 8px; line-height: 1.55; font-size: .92rem; }
.checks { display: grid; gap: 10px; margin-top: 14px; }
.checks label { grid-template-columns: auto 1fr; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbff; font-weight: 700; }
.admin-role-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.checks input { width: auto; margin-top: 3px; }
.company-category-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.company-category-layout section,
.category-manage-form { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; }
.company-category-layout h3 { margin: 0 0 10px; color: var(--navy); }
.detail-grid.compact { grid-template-columns: 1fr; margin-top: 12px; }
.category-chip-list,
.category-status-list { display: grid; gap: 8px; }
.category-chip,
.category-status-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; }
.category-status-list .pill.status-blue { background: #eafbe7; color: #258313; border-color: rgba(73,198,40,.28); }
.category-manage-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.category-manage-form small { display: block; color: var(--gray); margin-top: 8px; font-weight: 700; }
.inline-admin-form input { min-width: 220px; }
.actions.compact { gap: 6px; }
.actions.compact .btn { min-height: 38px; padding: 8px 10px; font-size: .82rem; }
.request-items { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbff; }
.request-items h3 { margin: 0 0 4px; }
.request-item-row { display: grid; grid-template-columns: 86px minmax(180px, 1.25fr) minmax(118px, .62fr) minmax(130px, .62fr) minmax(118px, .62fr) minmax(140px, .68fr) minmax(130px, .65fr) minmax(130px, .65fr) auto; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.request-item-row:first-of-type { border-top: 0; padding-top: 6px; }
.remove-item { min-height: 44px; }
.brand-suggest,
.custom-brand,
.custom-unit { display: none; }
.conditional-fields { padding: 14px; border: 1px solid rgba(21, 101, 192, .18); border-radius: 10px; background: #f7fbff; }
.freight-panel { background: linear-gradient(135deg, #fff, #f7fbff); }
.freight-section { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.82); }
.freight-section h4 { margin: 0 0 12px; color: var(--navy); }
.freight-distance-status { padding: 10px 12px; border-radius: 8px; background: #eef7ff; border: 1px solid #d7e8ff; }
.security-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.security-checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; }
.security-checks input { width: auto; margin: 0; }
.cleaning-equipment-box { margin-top: 12px; }
.professional-specialty { margin-top: 12px; padding-top: 4px; }
.freight-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.freight-point { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.freight-point h4 { margin: 0; color: var(--navy); }
.freight-map { min-height: 260px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #eef5ff; }
.freight-results { display: grid; gap: 7px; }
.freight-result { justify-content: flex-start; width: 100%; padding: 9px 10px; border: 1px solid var(--line); background: #f8fbff; color: var(--navy); text-align: left; font-size: .84rem; font-weight: 800; }
.freight-manual-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.freight-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; }
.freight-detail-grid section { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; }
.freight-detail-grid h4 { margin: 0 0 8px; color: var(--navy); }
.uniform-panel { background: linear-gradient(135deg, #fff, #f7fbff); }
.uniform-size-box { grid-column: 1 / -1; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.uniform-size-box h4, .uniform-epp-fields h4 { margin: 0 0 6px; color: var(--navy); }
.uniform-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.uniform-sizes label { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbff; }
.uniform-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.uniform-detail-grid div { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; }
.uniform-detail-grid span { display: block; color: var(--gray); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.uniform-detail-grid strong { color: var(--navy); }
.supplier-quote { overflow: hidden; }
.quote-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.quote-head h2 { margin: 0 0 8px; }
.quote-status { display: grid; gap: 6px; min-width: 150px; }
.quote-rules { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.quote-rules span { padding: 7px 10px; border-radius: 999px; background: #eef5ff; color: var(--navy); font-weight: 800; font-size: .84rem; }
.quote-table { display: grid; gap: 8px; overflow-x: auto; }
.quote-row { display: grid; grid-template-columns: 44px minmax(150px, 1.2fr) 70px 90px 120px minmax(130px, .8fr) 110px 110px 82px 110px 110px minmax(120px, .8fr); gap: 8px; align-items: center; min-width: 1180px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.quote-row-security { grid-template-columns: 44px minmax(220px, 1.35fr) 80px 110px 120px 120px 82px 120px 120px minmax(130px, .8fr); min-width: 980px; }
.quote-row-head { background: #f2f6fb; color: var(--gray); font-weight: 900; font-size: .78rem; text-transform: uppercase; }
.quote-row input, .quote-row select { padding: 8px; border-radius: 7px; }
.quote-total { background: #f7fbff; font-weight: 900; }
.quote-general { margin-top: 16px; }
.offer-acceptance {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(21, 101, 192, .16);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--navy);
  font-weight: 900;
}
.offer-acceptance input {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}
.notification-bell { position: relative; margin-left: auto; }
.notification-bell summary { list-style: none; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 900; }
.notification-bell summary::-webkit-details-marker { display: none; }
.notification-bell summary span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #b42318; color: #fff; font-size: .76rem; }
.notification-bell > div { position: absolute; top: 48px; right: 0; z-index: 20; width: min(360px, 88vw); padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 48px rgba(11,31,59,.16); }
.notification-bell a { display: grid; gap: 4px; padding: 10px; border-radius: 8px; color: var(--navy); text-decoration: none; }
.notification-bell a:hover { background: #f8fbff; }
.notification-bell small { color: var(--gray); line-height: 1.35; }
.notification-bell .all-notifications { margin-top: 6px; border-top: 1px solid var(--line); font-weight: 900; }
.approval-actions { display: grid; gap: 8px; min-width: 280px; }
.invite-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.invite-user-form > label,
.invite-user-form .invite-role {
  align-self: start;
}
.invite-user-form .invite-role select {
  min-height: 48px;
}
.invite-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.invite-selects label {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.invite-selects select[multiple] {
  min-height: 150px;
  max-height: 190px;
  overflow: auto;
  line-height: 1.35;
}
.doc-toolbar { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 16px; }
.pdf-doc { max-width: 1080px; margin: 0 auto; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 46px rgba(11,31,59,.08); color: #13233a; }
.pdf-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 18px; border-bottom: 3px solid var(--navy); margin-bottom: 20px; }
.pdf-head img { width: 220px; max-width: 38%; }
.pdf-head h1 { margin: 0 0 10px; font-size: clamp(1.35rem, 2vw, 2rem); color: var(--navy); }
.pdf-doc h2 { margin: 22px 0 10px; font-size: 1.08rem; color: var(--navy); }
.pdf-doc p, .pdf-doc li { line-height: 1.5; color: #26364d; }
.pdf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pdf-doc section { break-inside: avoid; }
.pdf-doc table { font-size: .82rem; margin: 8px 0 14px; }
.pdf-doc th, .pdf-doc td { padding: 8px; }
.pdf-disclaimer { margin-top: 24px; padding: 14px; border-left: 5px solid var(--yellow); background: #fffaf0; font-weight: 700; line-height: 1.5; }
.bot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Modern SaaS visual refinement */
:root {
  --ink: #111827;
  --muted: #64748b;
  --soft-line: #e5eaf2;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
}
body { color: var(--ink); font-weight: 400; line-height: 1.45; }
a { font-weight: 600; }
.sidebar { padding: 22px 20px; background: #0b1f3b; }
.sidebar a { padding: 8px 10px; border-radius: 8px; color: #c9d8ee; font-weight: 500; font-size: .93rem; }
.sidebar a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-section { margin: 20px 10px 7px; color: #93acd3; font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.user-card { margin: 20px 10px 0; padding-top: 16px; font-size: .86rem; color: #c9d8ee; }
.user-card strong { font-weight: 600; color: #fff; }
.main { background: var(--surface-soft); }
.app-header { margin-bottom: 22px; }
.app-greeting { font-weight: 400; }
.app-greeting strong { font-weight: 600; color: var(--ink); }
.topbar h1 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); font-weight: 650; letter-spacing: 0; color: var(--ink); }
.panel, .card, .auth-card, .ops-hero, .welcome-panel, .ops-metric {
  border-color: var(--soft-line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}
.panel, .card { padding: 20px; }
.panel h2, .card h3, .company-category-layout h3, .request-items h3, .freight-section h4, .freight-point h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0;
}
.panel h2 { font-size: 1.12rem; }
.card h3 { font-size: .92rem; color: var(--muted); font-weight: 500; }
.card strong, .ops-metric strong { color: var(--ink); font-weight: 650; }
.muted, .panel p, .welcome-panel p, .process-links span, .alert-item span { color: var(--muted); font-weight: 400; }
.account-summary span, .detail-grid span, .business-kpis span {
  border-color: var(--soft-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
.account-summary strong, .detail-grid strong, .uniform-detail-grid span {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .03em;
}
label { color: var(--ink); font-weight: 600; }
input, select, textarea {
  border-color: #d8dee8;
  border-radius: 10px;
  font-weight: 400;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(21, 101, 192, .12);
  border-color: rgba(21, 101, 192, .55);
}
.btn, button { border-radius: 10px; font-weight: 650; box-shadow: none; }
.btn.secondary, button.secondary { background: #f3f7fc; color: #1f3658; border: 1px solid var(--soft-line); }
.btn.green { background: #3fc321; color: #0b1f3b; }
.notice { font-weight: 500; border: 1px solid var(--soft-line); }
table {
  border-color: var(--soft-line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}
th, td { padding: 13px 14px; color: var(--ink); font-weight: 400; }
th { background: #f8fafc; color: var(--muted); font-weight: 650; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: #fbfdff; }
.pill, .role-badge, .status-dot, .supplier-score {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .76rem;
  border: 1px solid transparent;
}
.pill.status-green, .status-dot, .role-badge.supplier { background: #ecfdf3; color: #167a2f; border-color: #bcebc8; }
.pill.status-yellow, .supplier-score { background: #fff8e1; color: #9a6700; border-color: #f6dc8f; }
.pill.status-blue, .role-badge.client { background: #eff6ff; color: #1d5fb8; border-color: #c9ddff; }
.pill.status-red { background: #fff1f2; color: #b42318; border-color: #ffc8c2; }
.pill.status-gray { background: #f1f5f9; color: #526174; border-color: #dbe3ec; }
.tag-list span, .category-chip, .category-status-list > div, .quote-rules span {
  border: 1px solid #dce7f5;
  background: #f8fbff;
  color: #1f3658;
  border-radius: 999px;
  font-weight: 500;
}
.category-status-list > div {
  border-radius: 12px;
  background: #fff;
}
.process-links a, .alert-item, .invite-selects label, .company-category-layout section, .category-manage-form, .request-items, .conditional-fields {
  border-color: var(--soft-line);
  border-radius: 12px;
  background: #fff;
}
.alert-item strong, .process-links strong { font-weight: 650; color: var(--ink); }
.notification-bell summary, .user-menu summary {
  border-color: var(--soft-line);
  border-radius: 10px;
  font-weight: 600;
}
.quote-row, .quote-row-head { border-color: var(--soft-line); }
.quote-row-head { background: #f8fafc; font-weight: 650; }
.quote-total, .business-kpis span { background: #f8fafc; }
.offer-acceptance { font-weight: 500; border-color: var(--soft-line); }
.auth-card h1, .ops-hero h2, .welcome-panel h2 { color: var(--ink); font-weight: 650; }
.role-tabs .btn { padding: 9px 12px; }
.muted { color: var(--gray); }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .cards, .grid, .uniform-sizes, .uniform-detail-grid, .freight-points, .freight-detail-grid, .freight-manual-fields, .security-checks, .ops-hero, .ops-kpis, .ops-grid, .process-links, .detail-grid, .company-category-layout, .category-manage-form, .invite-user-form, .invite-selects { grid-template-columns: 1fr; }
  .welcome-panel { grid-template-columns: 1fr; }
  .app-header { justify-content: space-between; }
  .request-item-row { grid-template-columns: 1fr; }
  .quote-head { display: grid; }
  .quote-row, .quote-row-head { min-width: 0; grid-template-columns: 1fr; }
  .quote-row-head { display: none; }
  .quote-row span { display: grid; gap: 4px; }
  .quote-row span::before { content: attr(data-label); color: var(--gray); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
  .pdf-head, .pdf-grid { grid-template-columns: 1fr; display: grid; }
  .pdf-head img { max-width: 220px; width: 70%; }
  .main { padding: 20px; }
  table { display: block; overflow-x: auto; }
}
@media print {
  body { background: #fff; }
  .sidebar, .app-header, .doc-toolbar, .topbar, .notice { display: none !important; }
  .shell { display: block; min-height: 0; }
  .main { padding: 0; }
  .pdf-doc { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .pdf-doc table { display: table; overflow: visible; page-break-inside: auto; }
  .pdf-doc tr { page-break-inside: avoid; }
}

/* Supplier quote simplification */
.offer-compliance {
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 12px;
}
.offer-compliance h3,
.uniform-offer-calc h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 650;
}
.offer-compliance > .grid {
    gap: 10px;
}
.condition-card {
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    align-items: center;
    min-height: 84px;
}
.condition-card > span {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: .78rem;
    font-weight: 500;
}
.condition-card > strong {
    grid-column: 1 / -1;
    color: #0B1F3B;
    font-size: .98rem;
    font-weight: 650;
}
.condition-card label {
    margin: 0;
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.2;
    min-width: 0;
}
.condition-card label:nth-of-type(1),
.condition-card label:nth-of-type(2) {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: normal;
}
.condition-card label:nth-of-type(1) {
    grid-column: 1;
}
.condition-card label:nth-of-type(2) {
    grid-column: 2;
}
.condition-card .conditional-alt-payment,
.condition-card .conditional-custom-payment,
.condition-card .conditional-proposed-date {
    grid-column: 1 / -1;
    margin-top: 4px;
}
.condition-card input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}
.uniform-offer-calc {
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 12px;
    padding: 16px;
}

@media (max-width: 760px) {
  .condition-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .condition-card > span,
  .condition-card > strong,
  .condition-card label:nth-of-type(1),
  .condition-card label:nth-of-type(2) {
    grid-column: 1;
    grid-row: auto;
  }
  .condition-card label:nth-of-type(1),
  .condition-card label:nth-of-type(2) {
    white-space: normal;
  }
}
/* Balanced category management form */
.category-manage-form {
  align-items: start;
}
.category-manage-form label {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
  min-width: 0;
}
.category-manage-form select[multiple] {
  min-height: 220px;
  height: 220px;
  max-height: 220px;
  overflow: auto;
  line-height: 1.45;
  padding: 10px 14px;
}
.category-manage-form small {
  min-height: 20px;
  margin-top: 0;
  color: #64748b;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.35;
}
.category-manage-form > .actions {
  grid-column: 1 / -1;
  margin-top: 8px;
  align-items: center;
}
.category-manage-form > .actions .btn,
.category-manage-form > .actions button {
  min-width: 170px;
}
/* Dynamic request panels start hidden; JavaScript reveals only the selected flow. */
[data-general-items], .conditional-fields, .office-specific { display: none; }
