: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; }
.request-create-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.request-create-option { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); text-decoration: none; box-shadow: 0 10px 22px rgba(11,31,59,.05); }
.request-create-option strong { font-weight: 650; }
.request-create-option span { color: var(--gray); font-size: .88rem; font-weight: 400; }
.request-create-option.active { border-color: rgba(21,101,192,.42); background: #f4f9ff; box-shadow: 0 14px 30px rgba(21,101,192,.09); }
.draft-items { display: grid; gap: 12px; margin-top: 12px; }
.draft-item-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) 110px 130px 150px 150px minmax(160px, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.draft-item-row label { margin: 0; }
.draft-item-row .btn { min-height: 44px; }
.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-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.ops-tabs a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 650; box-shadow: 0 8px 20px rgba(11,31,59,.04); }
.ops-tabs a.active { border-color: rgba(21,101,192,.32); background: #eff6ff; color: var(--blue); }
.next-action-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(11,31,59,.05); }
.next-action-panel span { display: block; margin-bottom: 4px; color: var(--gray); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.next-action-panel strong { display: block; color: var(--navy); font-size: 1.15rem; font-weight: 650; }
.next-action-panel p { margin: 4px 0 0; color: var(--gray); font-weight: 400; }
.next-action-panel.danger { border-left-color: #dc2626; background: #fffafa; }
.next-action-panel.warn { border-left-color: var(--yellow); background: #fffdf4; }
.next-action-panel.ok { border-left-color: var(--green); background: #fbfffa; }
.dashboard-role-section { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(11,31,59,.05); }
.dashboard-role-section.buying { background: linear-gradient(180deg, #fff, #f8fbff); }
.dashboard-role-section.selling { background: linear-gradient(180deg, #fff, #fbfff8); }
.dashboard-role-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.dashboard-role-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 650; color: var(--navy); }
.dashboard-role-head p { margin: 0; color: var(--gray); font-weight: 400; }
.dashboard-role-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-role-section .ops-metric { min-height: 100px; }
.dashboard-role-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nba-section { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(11,31,59,.05); }
.nba-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.nba-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 650; color: var(--navy); }
.nba-head p { margin: 0; color: var(--gray); font-weight: 400; }
.nba-block + .nba-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.nba-block h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 650; color: var(--navy); }
.nba-list { display: grid; gap: 10px; margin-bottom: 12px; }
.nba-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 10px; background: #fbfdff; }
.nba-card.critical { border-left-color: #dc2626; background: #fffafa; }
.nba-card.warn { border-left-color: var(--yellow); background: #fffdf4; }
.nba-card.ok { border-left-color: var(--green); background: #fbfffa; }
.nba-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: #eef5ff; color: var(--navy); font-weight: 800; font-size: .82rem; }
.nba-card.critical .nba-icon { background: #fee2e2; color: #991b1b; }
.nba-card.warn .nba-icon { background: #fff4c2; color: #8a5a00; }
.nba-card.ok .nba-icon { background: #e8f8e5; color: #237914; }
.nba-card strong { display: block; color: var(--navy); font-weight: 650; }
.nba-card p { margin: 3px 0 0; color: var(--gray); font-weight: 400; }
.nba-card small { display: block; margin-top: 5px; color: var(--gray); font-weight: 650; }
.nba-empty { display: grid; gap: 4px; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; background: #f8fafc; }
.nba-empty strong { font-weight: 650; }
.nba-empty span { color: var(--gray); }
.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-kpi-panel { display: grid; gap: 14px; }
.business-kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.business-kpi-head h2 { margin-bottom: 4px; }
.kpi-period-form label { display: grid; gap: 6px; min-width: 170px; color: var(--gray); font-size: .82rem; font-weight: 650; }
.kpi-period-form select { min-height: 42px; }
.business-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.business-kpi-card { display: grid; gap: 5px; min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; color: var(--gray); }
.business-kpi-card span { color: var(--gray); font-size: .82rem; font-weight: 650; }
.business-kpi-card strong { color: var(--navy); font-size: 1.32rem; line-height: 1.15; font-weight: 700; }
.business-kpi-card small { color: var(--gray); font-weight: 500; line-height: 1.35; }
.business-kpi-card.primary { border-left: 4px solid var(--blue); }
.business-kpi-card.ok { border-left: 4px solid var(--green); }
.business-kpi-card.neutral { border-left: 4px solid #d9e2ef; }
.kpi-mini-chart { display: grid; gap: 10px; padding-top: 2px; }
.kpi-mini-chart > strong { color: var(--navy); font-weight: 650; }
.kpi-mini-chart > div { display: flex; align-items: end; gap: 10px; min-height: 98px; padding: 10px 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; overflow-x: auto; }
.kpi-mini-chart span { display: grid; justify-items: center; gap: 6px; min-width: 54px; color: var(--gray); font-size: .72rem; font-weight: 650; }
.kpi-mini-chart i { display: block; width: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--blue), var(--navy)); }
.kpi-data-note { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #f8fafc; }
.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); }
.btn.danger, button.danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.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; }
.main, .panel, .table-scroll { min-width: 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 760px; }
.opportunities-table td[data-label="Accion"] .btn { white-space: nowrap; }
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; }
.request-item-row .row-section-title { grid-column: 1 / -1; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.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 {
  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; }
.btn.danger, button.danger { background: #fff1f2; color: #b91c1c; border: 1px solid #fecdd3; }
.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 { 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; }
  .view-quote .sidebar { display: none; }
  .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, .request-create-options, .draft-item-row, .dashboard-role-metrics, .next-action-panel, .nba-card, .business-kpis { grid-template-columns: 1fr; }
  .business-kpi-head { display: grid; }
  .welcome-panel { grid-template-columns: 1fr; }
  .app-header { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .notification-bell { margin-left: 0; }
  .notification-bell > div { left: 0; right: auto; width: min(320px, calc(100vw - 40px)); }
  .user-menu div { right: 0; max-width: calc(100vw - 40px); }
  .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; max-width: 100%; overflow-x: auto; }
  .table-scroll table { display: table; }
  .opportunities-scroll { overflow-x: visible; }
  .opportunities-scroll table,
  .opportunities-table,
  .opportunities-table tbody,
  .opportunities-table tr,
  .opportunities-table td { display: block; width: 100%; min-width: 0; }
  .opportunities-table { border: 0; background: transparent; }
  .opportunities-table tr:first-child { display: none; }
  .opportunities-table tr {
    border: 1px solid var(--soft-line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    margin: 0 0 10px;
  }
  .opportunities-table td {
    border-bottom: 0;
    padding: 8px 0;
  }
  .opportunities-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--gray);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .opportunities-table td[data-label="Accion"] .btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }
}
@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; }

/* Solicitudes: badges visuales compactos */
.request-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.request-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.badge-new {
  background: #eaf3ff;
  border-color: #bfdbfe;
  color: #155ea8;
}
.badge-due-soon {
  background: #fff7d6;
  border-color: #fde68a;
  color: #8a5a00;
}
.badge-last-hours {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
.badge-extended {
  background: #e8eef7;
  border-color: #cbd5e1;
  color: #334155;
}
.badge-high {
  background: #e8f8e4;
  border-color: #bbf7d0;
  color: #1f7a2e;
}
.badge-priority-priority {
  background: #eef6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.badge-priority-urgent {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.badge-priority-critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.request-quick-filters {
  margin: 12px 0 16px;
}
td .request-badges,
h1 .request-badges,
h2 .request-badges {
  margin-top: 4px;
}

/* Request management: one compact, guided action box */
.request-manage-panel {
  display: grid;
  gap: 16px;
}
.request-manage-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.request-manage-head h2,
.request-manage-action h3 {
  margin: 0 0 6px;
  font-weight: 650;
}
.request-manage-select {
  max-width: 460px;
}
.request-manage-action {
  grid-template-columns: minmax(220px, .55fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid #e3eaf4;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}
.request-manage-form {
  display: grid;
  gap: 12px;
}
.request-manage-form label {
  min-width: 0;
}
.request-manage-form textarea {
  min-height: 96px;
}
.request-manage-form .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.request-manage-form .checkline input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.notice.compact {
  margin: 4px 0 0;
  padding: 10px 12px;
}
.offer-files-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.file-upload-label small {
  display: block;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .request-manage-head {
    display: grid;
  }
  .request-manage-action {
    grid-template-columns: 1fr;
  }
}

/* Tecnologia e Informatica: formulario avanzado */
.technology-panel .freight-section {
  overflow: visible;
}
.technology-row.request-item-row {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px 16px;
  align-items: start;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.technology-row.request-item-row:first-of-type {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.technology-row label {
  min-width: 0;
  align-self: start;
  font-weight: 650;
  color: var(--navy);
}
.technology-row input,
.technology-row select,
.technology-row textarea {
  min-width: 0;
  font-size: .9rem;
}
.technology-row textarea {
  min-height: 84px;
}
.technology-row label:has(textarea) {
  grid-column: span 2;
}
.technology-row .row-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(21,101,192,.12);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f4f9ff;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.technology-row .row-section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(11,31,59,.08);
}
.technology-row .technology-server-remote-license,
.technology-row .technology-server-manufacturer-opportunity,
.technology-row .technology-server-warranty-modality-other,
.technology-row .technology-server-hypervisor-other,
.technology-row .technology-server-rack-other,
.technology-row .technology-server-generation-other,
.technology-row .technology-server-infra-other,
.technology-row .technology-screen-other,
.technology-row .technology-color-other,
.technology-row .technology-type-other,
.technology-row .technology-brand-other,
.technology-row .technology-model-other,
.technology-row .technology-spec-other {
  background: #fbfdff;
  padding: 10px;
  border: 1px dashed rgba(21,101,192,.18);
  border-radius: 8px;
}
.technology-row .technology-server-extra[name],
.technology-row .technology-server-extra {
  min-width: 0;
}
.technology-row .remove-item {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (max-width: 1280px) {
  .technology-row.request-item-row { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}
@media (max-width: 900px) {
  .technology-row.request-item-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technology-row label:has(textarea) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .technology-row.request-item-row { grid-template-columns: 1fr; padding: 14px; }
  .technology-row label:has(textarea) { grid-column: 1; }
}

/* Ubicaciones inteligentes */
.smart-location-panel {
  border: 1px solid rgba(21,101,192,.16);
  border-radius: 10px;
  background: #f8fbff;
  padding: 16px;
  margin: 4px 0 8px;
}
.smart-location-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.smart-location-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
}
.smart-location-last {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 12px;
}
.smart-location-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(21,101,192,.28);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  line-height: 1.45;
}
.company-location-form {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.checkbox-inline input {
  width: auto;
}
.location-edit-details {
  margin-bottom: 8px;
}
.location-edit-details summary {
  cursor: pointer;
  display: inline-flex;
  list-style: none;
}
.location-edit-details summary::-webkit-details-marker {
  display: none;
}
.location-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  min-width: min(620px, 78vw);
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.location-inline-form textarea,
.location-inline-form .checkbox-inline,
.location-inline-form button {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .smart-location-head,
  .smart-location-last {
    display: grid;
  }
  .location-inline-form {
    grid-template-columns: 1fr;
  }
}
