:root { --ink: #142b35; --muted: #6b7d84; --line: #dce7e8; --paper: #f5f8f7; --card: #ffffff; --teal: #0f766e; --teal-dark: #0b4f4a; --orange: #f97316; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; } button { cursor: pointer; }
.dashboard-shell { max-width: 1540px; margin: 0 auto; padding: 26px 34px 44px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 48px; }.brand-lockup { display: flex; align-items: center; gap: 13px; }.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 8px 18px #0f766e24; }.eyebrow, .section-kicker { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; } h1, h2, h3, h4, p { margin: 0; }.topbar h1 { font-size: 16px; margin-top: 3px; letter-spacing: -.02em; }.topbar-actions { display: flex; gap: 14px; align-items: center; }.data-status { color: var(--muted); font-size: 12px; }.data-status i { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #22c55e; }.ghost-button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; padding: 9px 13px; font-size: 12px; font-weight: 700; }.ghost-button:hover { border-color: var(--teal); color: var(--teal); }.nav-link { display: inline-flex; align-items: center; text-decoration: none; }
.intro-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }.intro-row h2 { max-width: 700px; margin: 10px 0 9px; font-size: clamp(27px, 4vw, 44px); line-height: 1.05; letter-spacing: -.055em; }.intro-row p { max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.7; }.intro-note { display: flex; align-items: center; gap: 12px; min-width: 285px; padding: 15px 18px; border: 1px solid #d8ebe6; border-radius: 14px; background: #ebf7f3; color: var(--teal-dark); font-size: 12px; line-height: 1.65; }.intro-note strong { font-size: 13px; }.note-icon { font-size: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }.stat-card { position: relative; min-height: 127px; padding: 19px 21px 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 5px 18px #183d4310; }.stat-accent { position: absolute; inset: 0 auto 0 0; width: 4px; }.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; }.stat-value { margin-top: 11px; color: var(--ink); font-size: 29px; font-weight: 800; letter-spacing: -.05em; }.stat-hint { margin-top: 7px; color: #8a9a9f; font-size: 11px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, .72fr); gap: 18px; align-items: stretch; }.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 6px 22px #183d430b; }.map-panel { padding: 22px 24px 15px; }.panel-heading, .customer-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.panel-heading h3, .customer-heading h3, .detail-title h3 { margin-top: 6px; font-size: 20px; letter-spacing: -.035em; }.map-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; }.map-legend span { display: inline-flex; align-items: center; gap: 5px; }.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 2px; }.legend-dot.low { background: #8cc7bc; }.legend-dot.mid { background: #3b8d89; }.legend-dot.high { background: #0f766e; }.map-stage { min-height: 470px; display: grid; place-items: center; padding: 21px 4px 2px; overflow: hidden; }.map-stage svg { width: 100%; max-height: 535px; height: auto; display: block; }.map-stage .province { stroke: #fff; stroke-width: .55; stroke-linejoin: round; transition: fill .18s ease, opacity .18s ease; cursor: pointer; }.map-stage .province:hover { fill: var(--orange) !important; opacity: 1 !important; }.map-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 11px; }.map-footer strong { color: var(--orange); }.map-hint { color: #a2afb2; }
.detail-panel { padding: 24px; min-height: 575px; }.detail-panel h3 { margin-top: 12px; font-size: 26px; }.detail-title p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }.detail-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0; }.detail-kpis div { padding: 12px 10px; border-radius: 10px; background: #f1f7f6; text-align: center; }.detail-kpis strong { display: block; color: var(--teal); font-size: 20px; }.detail-kpis span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.detail-block { border-top: 1px solid var(--line); padding: 17px 0; }.detail-block label { display: block; margin-bottom: 10px; color: #85969b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.pill-list, .card-pills { display: flex; flex-wrap: wrap; gap: 5px; }.pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 8px; background: #eef3f3; color: #587076; font-size: 10px; font-weight: 700; }.pill-blue { background: #e9f1ff; color: #2563eb; }.pill-green { background: #e8f5f0; color: #0f766e; }.pill-amber { background: #fff2e7; color: #c65b12; }.pill-slate { background: #eef1f3; color: #66757a; }.detail-lines { display: grid; gap: 8px; color: #425a62; font-size: 12px; line-height: 1.4; }.role-list { display: grid; gap: 7px; color: #425a62; font-size: 11px; line-height: 1.45; }.muted { color: var(--muted); font-size: 12px; line-height: 1.65; }.primary-button { margin-top: 14px; border: 0; border-radius: 9px; padding: 10px 13px; background: var(--teal); color: white; font-size: 11px; font-weight: 800; }.primary-button:hover { background: var(--teal-dark); }.back-link { border: 0; padding: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 800; }.empty-detail { display: grid; align-content: center; justify-items: start; min-height: 520px; }.empty-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 12px; background: #e8f5f0; color: var(--teal); font-size: 22px; }.empty-detail h3 { font-size: 22px; }.empty-detail p { max-width: 250px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.customer-section, .relations-panel { margin-top: 18px; padding: 24px; }.customer-heading { align-items: end; }.customer-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; }.filter-row { display: flex; gap: 7px; }.filter-row input, .filter-row select { min-height: 37px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; color: var(--ink); padding: 0 11px; font-size: 11px; outline: none; }.filter-row input { min-width: 270px; }.filter-row input:focus, .filter-row select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0f766e14; }.customer-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }.customer-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfefe; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; cursor: pointer; }.customer-card:hover, .customer-card.is-focused { border-color: #9bcfc5; box-shadow: 0 7px 18px #0f766e12; transform: translateY(-1px); }.customer-card-top { display: flex; justify-content: space-between; gap: 10px; }.customer-id { color: #9aa9ad; font-size: 10px; font-weight: 800; letter-spacing: .08em; }.customer-card h4 { max-width: 300px; margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 1.3; }.aliases { max-width: 300px; overflow: hidden; margin-top: 5px; color: #829298; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }.open-card { border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 800; white-space: nowrap; }.card-pills { margin-top: 14px; min-height: 24px; }.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; border-top: 1px solid #edf2f2; padding-top: 10px; color: var(--muted); font-size: 10px; }.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.card-meta strong { margin-left: auto; color: var(--teal); white-space: nowrap; }.list-empty { display: grid; justify-items: start; gap: 7px; margin-top: 20px; padding: 34px 20px; border: 1px dashed #cbdcdc; border-radius: 12px; background: #fbfdfc; color: var(--muted); font-size: 12px; }.list-empty .empty-icon { margin: 0 0 2px; }.list-empty strong { color: var(--ink); }.list-more { margin-top: 15px; color: var(--muted); font-size: 11px; text-align: center; }.relation-table-wrap { overflow-x: auto; margin-top: 18px; }table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 11px; }th { background: #f0f6f5; color: #587076; font-size: 10px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }th, td { border-bottom: 1px solid var(--line); padding: 11px 10px; vertical-align: top; }td { color: #425a62; line-height: 1.45; }td small { display: block; margin-top: 4px; color: var(--muted); }td a { color: var(--teal); font-weight: 800; text-decoration: none; }.footer { margin-top: 22px; color: #98a7aa; font-size: 10px; text-align: center; }.error-toast { position: fixed; right: 20px; bottom: 20px; z-index: 3; padding: 13px 15px; border-radius: 10px; background: #8a241c; color: white; font-size: 12px; }
@media (max-width: 1100px) { .main-grid { grid-template-columns: 1fr; }.detail-panel { min-height: auto; }.empty-detail { min-height: auto; }.customer-list { grid-template-columns: repeat(2, 1fr); }.filter-row { flex-wrap: wrap; }.filter-row input { flex: 1; min-width: 220px; } }
@media (max-width: 720px) { .dashboard-shell { padding: 18px 14px 30px; }.topbar, .intro-row, .customer-heading { align-items: start; flex-direction: column; }.topbar { margin-bottom: 32px; }.topbar-actions { width: 100%; justify-content: space-between; }.intro-note { width: 100%; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.stat-card { min-height: 112px; padding: 14px; }.stat-value { font-size: 24px; }.map-panel, .detail-panel, .customer-section, .relations-panel { padding: 17px; }.map-stage { min-height: 290px; }.map-legend { gap: 6px; }.customer-list { grid-template-columns: 1fr; }.filter-row { width: 100%; }.filter-row input, .filter-row select { width: 100%; min-width: 0; }.panel-heading { flex-direction: column; }.card-meta { display: block; }.card-meta span, .card-meta strong { display: block; margin: 4px 0; } }
.orange { background: var(--orange); }.teal { background: var(--teal); }.blue { background: #2563eb; }.purple { background: #8b5cf6; }
