:root {
  --ink: #07131f;
  --ink-soft: #0c1d2b;
  --panel: #102532;
  --panel-2: #142d3a;
  --line: #24424d;
  --text: #edf7f2;
  --muted: #8eaaa4;
  --green: #38e79a;
  --green-deep: #0cae6a;
  --lime: #c9f658;
  --amber: #ffbd59;
  --red: #ff6e67;
  --cyan: #63d9e6;
  --radius: 22px;
}

.cadesp-status.info{color:#ffbd68}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 8%, rgba(56,231,154,.09), transparent 24rem),
    linear-gradient(145deg, #06111c 0%, #091925 60%, #07131f 100%);
  font-family: Bahnschrift, "Franklin Gothic Medium", "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { color: var(--green); font-size: .72rem; letter-spacing: .18em; font-weight: 800; margin: 0 0 .55rem; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.35fr .65fr; }
.login-art {
  padding: clamp(3rem, 8vw, 8rem);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7,19,31,.65), rgba(7,19,31,.95)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(99,217,230,.06) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(99,217,230,.05) 80px);
}
.login-art::after {
  content: ""; position: absolute; width: 32rem; height: 32rem; right: -12rem; bottom: -14rem;
  border: 4rem solid rgba(56,231,154,.08); border-radius: 50%;
}
.brand-mark {
  width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px;
  color: var(--ink); background: var(--green); font-size: 1.25rem; font-weight: 900;
  box-shadow: 0 0 36px rgba(56,231,154,.28); margin-bottom: 2rem;
}
.brand-mark.small { width: 42px; height: 42px; border-radius: 13px; font-size: .9rem; margin: 0; }
.login-art h1 { font-size: clamp(3.6rem, 8vw, 7.5rem); line-height: .86; margin: .8rem 0 2rem; letter-spacing: -.07em; }
.login-art h1 span { color: var(--green); display: block; }
.login-copy { max-width: 34rem; color: var(--muted); font-size: 1.18rem; line-height: 1.6; }
.route-line { display: flex; align-items: center; width: min(30rem, 80%); margin: 3rem 0; }
.route-line::before { content: ""; height: 2px; background: linear-gradient(90deg, var(--green), rgba(56,231,154,.1)); flex: 1; order: 2; }
.route-line i { width: 10px; height: 10px; border: 2px solid var(--green); border-radius: 50%; margin-right: 4rem; order: 1; box-shadow: 0 0 12px var(--green); }
.source-note { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); }
.source-note b { color: var(--text); }
.login-card {
  background: #eff6f0; color: #0c1d2b; padding: clamp(2rem, 6vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.login-card h2 { font-size: 2.3rem; margin: .5rem 0; letter-spacing: -.04em; }
.login-card > p:not(.eyebrow) { color: #61736e; margin-bottom: 2.5rem; }
label { display: grid; gap: .5rem; font-size: .82rem; font-weight: 700; margin-bottom: 1.1rem; }
input, select {
  width: 100%; color: var(--text); background: #07131f; border: 1px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem; outline: none;
}
.login-card input { color: #102532; background: #fff; border-color: #cad8d0; padding: 1rem; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,231,154,.12); }
.primary, .secondary, .ghost-button {
  border: 0; border-radius: 12px; padding: .9rem 1.15rem; font-weight: 800;
}
.primary { color: var(--ink); background: var(--green); }
.primary:hover { background: var(--lime); }
.secondary { color: var(--green); background: rgba(56,231,154,.1); border: 1px solid rgba(56,231,154,.35); }
.ghost-button { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.form-error { color: #d64a43; min-height: 1.3rem; margin-top: 1rem; font-size: .85rem; }

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 1.5rem 1rem; border-right: 1px solid var(--line);
  background: rgba(6,17,28,.96); display: flex; flex-direction: column;
}
.brand { color: var(--text); display: flex; align-items: center; gap: .8rem; padding: 0 .55rem; text-decoration: none; font-size: 1.2rem; }
.brand b { color: var(--green); }
.scope-chip { margin: 2rem .4rem; padding: .7rem .8rem; border-radius: 10px; background: rgba(56,231,154,.08); color: var(--muted); font-size: .76rem; }
.scope-chip i, .source-health i { display: inline-block; width: 8px; height: 8px; margin-right: .5rem; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
nav { display: grid; gap: .35rem; }
.nav-item {
  width: 100%; text-align: left; color: var(--muted); border: 0; background: transparent;
  padding: .85rem 1rem; border-radius: 12px; display: flex; align-items: center; gap: .8rem;
}
.nav-item span { color: var(--cyan); font-size: 1.2rem; }
.nav-item:hover, .nav-item.active { color: var(--text); background: var(--panel); }
.sidebar-footer { margin-top: auto; display: grid; gap: 1rem; }
.source-health { display: flex; align-items: center; padding: .8rem; color: var(--muted); }
.source-health span { display: grid; min-width: 0; }
.source-health b { max-width: 150px; overflow: hidden; color: var(--text); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.source-health small { margin-top: .2rem; }

.content { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  min-height: 92px; display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); background: rgba(7,19,31,.78); backdrop-filter: blur(18px);
  position: relative; z-index: 200; overflow: visible;
}
.topbar h2 { margin: 0; font-size: 1.35rem; }
.user-box { display: flex; align-items: center; gap: .7rem; }
.user-box > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 14px; font-weight: 900; }
.user-box div { display: grid; }
.user-box small { color: var(--muted); margin-top: .2rem; }
.account-menu { position: relative; z-index: 210; justify-content: flex-end; }
.account-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.account-toolbar-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #65c8ff;
  background: transparent;
  filter: drop-shadow(0 0 7px rgba(71, 184, 255, .32));
  transition: color .2s ease, filter .2s ease, transform .2s ease;
}
.account-toolbar-button:hover,
.account-toolbar-button[aria-expanded="true"] {
  color: #b9ebff;
  background: transparent;
  filter: drop-shadow(0 0 11px rgba(92, 206, 255, .72));
  transform: translateY(-1px) scale(1.08);
}
.account-toolbar-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-notification-dot { display: none; }
.account-flyout {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  z-index: 220;
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid #2a405c;
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(155deg, rgba(15, 31, 49, .99), rgba(6, 17, 29, .99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}
.account-flyout::before {
  content: "";
  position: absolute;
  right: 18px;
  top: -7px;
  width: 13px;
  height: 13px;
  border-top: 1px solid #2a405c;
  border-left: 1px solid #2a405c;
  background: #0f1f31;
  transform: rotate(45deg);
}
.account-flyout-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.account-flyout-heading > div { display: grid; gap: 3px; }
.account-flyout-heading strong { font-size: .93rem; }
.account-flyout-heading small { color: var(--muted); font-size: .71rem; }
.account-flyout-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  color: #072035;
  background: linear-gradient(145deg, #8fd0f4, #4ea5dd);
  font-size: 1rem;
}
.account-coming-soon {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed rgba(121, 189, 240, .35);
  border-radius: 16px;
  background: rgba(76, 154, 208, .08);
  text-align: center;
}
.account-coming-soon b { color: #84c9f2; font-size: .86rem; }
.account-coming-soon p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.account-identity-card,
.account-profile-panel .user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}
.account-identity-card > span,
.account-profile-panel .user-box > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  color: #07131f;
  background: linear-gradient(145deg, #ffcb77, #f58b2d);
  font-weight: 900;
}
.account-identity-card > div,
.account-profile-panel .user-box > div { display: grid; min-width: 0; gap: 2px; }
.account-identity-card small,
.account-profile-panel .user-box small { color: var(--muted); font-size: .72rem; }
.account-identity-card em,
.account-profile-panel .user-box em { overflow: hidden; color: #78bce8; font-size: .7rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.account-password-form { display: grid; gap: 10px; margin-top: 14px; }
.account-password-form label { gap: 5px; margin: 0; color: var(--muted); font-size: .72rem; }
.account-password-form input { padding: .72rem .82rem; border-radius: 10px; }
.account-password-form .form-error { min-height: 0; margin: 0; }
.account-password-form .primary { margin-top: 2px; }
.account-display-options { display: grid; gap: 9px; margin-top: 12px; }
.account-display-options .display-control {
  width: 100%;
  justify-content: flex-start;
  min-height: 58px;
  text-align: left;
}
.account-display-options .display-control > span:last-child { display: grid; gap: 3px; }
.account-display-options .display-control b { color: var(--text); font-size: .78rem; }
.account-display-options .display-control small { color: var(--muted); font-size: .68rem; font-weight: 500; }
.account-logout-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: .7rem .9rem;
  border: 1px solid rgba(251, 113, 133, .38);
  border-radius: 12px;
  color: #ff9aac;
  background: rgba(132, 25, 49, .12);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.account-logout-button:hover {
  transform: translateY(-1px);
  border-color: #fb7185;
  background: rgba(190, 38, 70, .2);
}
.account-logout-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-logout-button span { display: grid; gap: 3px; }
.account-logout-button b { color: currentColor; font-size: .78rem; }
.account-logout-button small { color: var(--muted); font-size: .68rem; font-weight: 500; }

html[data-theme="light"] .account-toolbar {
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="light"] .account-toolbar-button { color: #268fd2; filter: drop-shadow(0 0 6px rgba(38, 143, 210, .25)); }
html[data-theme="light"] .account-toolbar-button:hover,
html[data-theme="light"] .account-toolbar-button[aria-expanded="true"] { color: #066da9; background: transparent; filter: drop-shadow(0 0 9px rgba(38, 143, 210, .48)); }
html[data-theme="light"] .account-flyout { color: #17293a; border-color: #c8d5dd; background: linear-gradient(155deg, #fff, #edf3f6); }
html[data-theme="light"] .account-flyout::before { border-color: #c8d5dd; background: #f8fbfc; }
html[data-theme="light"] .account-identity-card,
html[data-theme="light"] .account-profile-panel .user-box { background: rgba(255, 255, 255, .72); }
html[data-theme="light"] .account-display-options .display-control b { color: #17293a; }
html[data-theme="light"] .account-logout-button { color: #a91f3a; background: rgba(207, 54, 82, .07); }

@media (max-width: 620px) {
  .account-toolbar { gap: 8px; }
  .account-toolbar-button { width: 40px; height: 40px; }
  .account-toolbar-button svg { width: 25px; height: 25px; }
  .account-flyout { position: fixed; top: 76px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 88px); overflow-y: auto; }
  .account-flyout::before { display: none; }
}
.access-head-actions,
.maintenance-control { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.maintenance-control {
  min-height: 46px; padding: .35rem .4rem .35rem .85rem; border: 1px solid #28415d;
  border-radius: 14px; background: rgba(8, 21, 35, .74);
}
.maintenance-control.active { border-color: #e24b63; background: rgba(96, 22, 38, .24); }
.maintenance-status { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.maintenance-control.active .maintenance-status { color: #ff9aac; }
.maintenance-toggle {
  min-height: 36px; padding: .55rem .85rem; border: 1px solid #2b9f78; border-radius: 10px;
  color: #82f1ca; background: rgba(20, 116, 84, .18); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.maintenance-toggle.danger { border-color: #c63b54; color: #ff9aac; background: rgba(132, 25, 49, .2); }
.maintenance-toggle:disabled { opacity: .55; cursor: wait; }
.page { display: none; padding: clamp(1.2rem, 4vw, 3.5rem); animation: rise .4s ease both; }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.hero-panel {
  min-height: 260px; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 28px;
  display: flex; justify-content: space-between; align-items: flex-end; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(56,231,154,.18), transparent 22rem),
    linear-gradient(120deg, #102a35, #0b1d29);
}
.hero-panel::after { content: "SP"; position: absolute; right: 4%; top: -28%; font-size: 22rem; font-weight: 900; color: rgba(255,255,255,.025); }
.hero-panel h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: .98; margin: .8rem 0 1rem; }
.hero-panel h1 span { color: var(--green); }
.hero-panel p:not(.eyebrow) { max-width: 45rem; color: var(--muted); line-height: 1.55; }
.hero-panel button { z-index: 1; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 1rem 0; }
.metric {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem;
  min-height: 125px; display: flex; flex-direction: column; justify-content: space-between;
}
.metric small { color: var(--muted); }
.metric strong { font-size: 2rem; letter-spacing: -.04em; }
.metric em { color: var(--green); font-style: normal; font-size: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1rem; }
.panel, .table-panel {
  background: rgba(16,37,50,.82); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.panel { padding: 1.4rem; min-height: 300px; }
.panel.wide { min-height: 340px; }
.panel-heading { display: flex; justify-content: space-between; padding: 1.25rem; }
.panel .panel-heading { padding: 0 0 1.2rem; }
.panel-heading h3 { margin: 0; font-size: 1.15rem; }
.bar-chart { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 1rem; font-size: .78rem; }
.bar-row span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.bar-track { height: 12px; border-radius: 10px; background: #07131f; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.donut-wrap { min-height: 220px; display: grid; place-items: center; grid-template-columns: 1fr; }
.donut { --value: 50; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--green) calc(var(--value) * 1%), var(--amber) 0); }
.donut::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--panel); }
.donut strong { position: relative; font-size: 2rem; }
.donut-legend { display: flex; gap: 1.2rem; color: var(--muted); font-size: .76rem; }
.rank-list { display: grid; gap: .7rem; }
.rank-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: .72rem; border-bottom: 1px solid rgba(36,66,77,.65); }
.rank-item span:first-child { color: var(--green); }
.rank-item small { color: var(--muted); }
.rank-item.rank-station { cursor: pointer; gap: .45rem; }
.rank-item.rank-station:hover { background: rgba(61, 197, 255, .06); }
.rank-item.rank-station b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table { display: grid; }
.mini-row { display: grid; grid-template-columns: 1.6fr .7fr .7fr .7fr; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.mini-row.header { color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; }

.section-head { margin-bottom: 1.5rem; }
.section-head h1 { font-size: 2.4rem; margin: .35rem 0; letter-spacing: -.04em; }
.section-head > div > p:last-child { color: var(--muted); }
.action-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.filter-bar { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
#page-stations .filter-bar { grid-template-columns:minmax(280px,1.6fr) repeat(4,minmax(145px,.8fr)); }
.sync-state-action { display:flex; align-items:center; gap:.65rem; }
.sync-state-action select { min-width:86px; }
.search-field { margin: 0; display: flex; align-items: center; gap: .5rem; color: var(--cyan); background: #07131f; border: 1px solid var(--line); border-radius: 12px; padding-left: 1rem; }
.search-field input { border: 0; padding-left: 0; box-shadow: none; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th { color: #6f9699; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; text-align: left; padding: 1rem 1.2rem; background: #0a1825; }
td { padding: 1rem 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
td b { color: var(--text); display: block; margin-bottom: .3rem; }
td small { color: #6f9699; }
.badge { display: inline-flex; padding: .35rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: var(--green); background: rgba(56,231,154,.1); }
.badge.attention { color: var(--amber); background: rgba(255,189,89,.1); }
.row-action { color: var(--cyan); background: transparent; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .7rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.pagination div { display: flex; align-items: center; gap: .8rem; }
.pagination button { color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: .5rem .8rem; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.policy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.policy-card { padding: 1.2rem; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; }
.policy-card strong { display: block; margin-bottom: .35rem; color: var(--green); }
.policy-card small { color: var(--muted); }
.access-console-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 1.55rem; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:rgba(12,23,42,.96); box-shadow:0 14px 36px rgba(0,0,0,.14); }
.access-console-nav > button { position:relative; display:flex; align-items:center; gap:.8rem; min-height:70px; margin:0; padding:.85rem 1rem; border:0; border-right:1px solid var(--line); border-radius:0; color:#8e9db5; background:transparent; box-shadow:none; cursor:pointer; text-align:left; }
.access-console-nav > button:last-child { border-right:0; }
.access-console-nav > button::after { content:""; position:absolute; right:0; bottom:0; left:0; height:2px; background:transparent; }
.access-console-nav > button:hover { color:#dbe8f7; background:rgba(45,76,114,.14); }
.access-console-nav > button.active { color:#f5f9ff; background:linear-gradient(180deg,rgba(35,76,111,.18),rgba(15,29,49,.04)); }
.access-console-nav > button.active::after { background:#ff8b1f; box-shadow:0 0 16px rgba(255,139,31,.5); }
.access-console-nav > button.active .access-console-icon { color:#ffad5c; }
.access-console-nav button > span:not(.access-console-icon) { display:grid; gap:.22rem; min-width:0; }
.access-console-nav strong { color:inherit; font-size:.78rem; line-height:1.2; }
.access-console-nav small { overflow:hidden; color:#65758f; text-overflow:ellipsis; white-space:nowrap; font-size:.64rem; font-weight:600; }
.access-console-icon { display:grid; flex:0 0 25px; width:25px; height:25px; place-items:center; color:#697993; }
.access-console-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.access-console-panel { animation:access-panel-in .18s ease; }
.access-console-panel[hidden] { display:none!important; }
.access-console-section-head { margin-top:.3rem; }
.access-overview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; }
.access-overview-grid button { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.85rem; min-height:104px; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:16px; color:var(--text); background:linear-gradient(145deg,rgba(18,35,57,.96),rgba(9,21,37,.96)); box-shadow:none; cursor:pointer; text-align:left; }
.access-overview-grid button:hover { border-color:rgba(88,217,255,.5); transform:translateY(-1px); }
.access-overview-grid button > span { display:grid; width:34px; height:34px; place-items:center; border:1px solid rgba(255,139,31,.45); border-radius:10px; color:#ffb666; background:rgba(255,139,31,.09); font-size:.68rem; font-weight:900; }
.access-overview-grid button > div { display:grid; gap:.3rem; }
.access-overview-grid strong { font-size:.86rem; }
.access-overview-grid small { color:var(--muted); font-size:.68rem; line-height:1.4; }
.access-overview-grid b { color:#61ddff; font-size:1rem; }
.platform-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem; }
.platform-health-grid article { display:flex; gap:.85rem; min-height:145px; padding:1.15rem; border:1px solid var(--line); border-radius:17px; background:linear-gradient(145deg,rgba(17,37,59,.96),rgba(8,22,38,.96)); }
.platform-health-grid article > div { display:grid; align-content:start; gap:.35rem; }
.platform-health-grid small { color:#6c829c; font-size:.62rem; font-weight:900; letter-spacing:.12em; }
.platform-health-grid strong { color:var(--text); font-size:1.05rem; }
.platform-health-grid p,.platform-health-note p,.access-audit-launch p { margin:0; color:var(--muted); font-size:.72rem; line-height:1.5; }
.health-status-dot { flex:0 0 10px; width:10px; height:10px; margin-top:.2rem; border-radius:50%; background:#7d8999; }
.health-status-dot.active { background:#59d99b; box-shadow:0 0 0 5px rgba(89,217,155,.1),0 0 14px rgba(89,217,155,.4); }
.platform-health-note,.access-audit-launch { display:flex; align-items:center; gap:1rem; margin-top:1rem; padding:1rem 1.15rem; border:1px solid rgba(88,217,255,.24); border-radius:15px; background:rgba(28,92,127,.08); }
.platform-health-note > span { display:grid; flex:0 0 34px; width:34px; height:34px; place-items:center; border:1px solid rgba(89,217,155,.35); border-radius:10px; color:#70e5aa; background:rgba(89,217,155,.09); font-weight:900; }
.platform-health-note strong,.access-audit-launch strong { display:block; margin-bottom:.2rem; }
.access-audit-launch > .access-console-icon { width:42px; height:42px; color:#62ddff; border:1px solid rgba(88,217,255,.3); border-radius:12px; background:rgba(88,217,255,.08); }
.access-audit-launch > div { flex:1; }
.access-audit-launch > button { width:auto; padding:.7rem .9rem; border:1px solid rgba(255,139,31,.46); border-radius:10px; color:#ffb96b; background:rgba(255,139,31,.09); cursor:pointer; font-weight:850; }
@keyframes access-panel-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.users-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.users-summary article { display: flex; align-items: center; gap: .85rem; min-height: 88px; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(19,36,59,.96), rgba(10,23,39,.96)); }
.users-summary strong { display: block; color: var(--text); font-size: 1.35rem; line-height: 1; }
.users-summary small { display: block; margin-top: .35rem; color: var(--muted); font-size: .72rem; }
.user-stat-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--cyan); border: 1px solid rgba(39,207,239,.28); border-radius: 13px; background: rgba(39,207,239,.08); font-size: 1.1rem; }
.user-stat-icon.active { color: var(--green); border-color: rgba(56,231,154,.28); background: rgba(56,231,154,.08); }
.user-stat-icon.privileged { color: var(--amber); border-color: rgba(255,189,89,.28); background: rgba(255,189,89,.08); }
.user-stat-icon.regional { color: #a68cff; border-color: rgba(166,140,255,.28); background: rgba(166,140,255,.08); }
.users-workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.users-toolbar { display: grid; grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(150px, .7fr)) auto; gap: .65rem; align-items: center; padding: .85rem; border-bottom: 1px solid var(--line); background: rgba(7,19,31,.66); }
.users-toolbar select, .users-search { min-height: 42px; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--ink); color: var(--text); }
.users-toolbar select { padding: 0 .75rem; }
.users-search { display: flex; align-items: center; gap: .55rem; padding: 0 .8rem; color: var(--cyan); }
.users-search input { width: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; }
.users-result-count { min-width: 60px; color: var(--muted); font-size: .75rem; font-weight: 800; text-align: center; }
.users-table-scroll { max-height: min(66vh, 720px); overflow: auto; }
.users-table { min-width: 1120px; }
.users-table thead { position: sticky; top: 0; z-index: 3; }
.users-table th { padding: .85rem 1rem; }
.users-table td { padding: .9rem 1rem; vertical-align: middle; }
.users-table tbody .user-row:hover { background: rgba(39,207,239,.035); }
.user-identity { display: flex; align-items: center; gap: .7rem; min-width: 210px; }
.user-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #05101c; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), var(--green)); font-size: .7rem; font-weight: 900; }
.user-identity b { margin: 0 0 .18rem; color: var(--text); font-size: .82rem; }
.user-identity small, .last-login { display: block; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.role-pill, .status-pill, .permission-pills span { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; white-space: nowrap; font-size: .66rem; font-weight: 800; }
.role-pill { padding: .38rem .62rem; color: #bfd2e6; border: 1px solid #2b4260; background: rgba(31,55,83,.45); }
.role-pill.role-admin { color: #ffc36d; border-color: rgba(255,189,89,.32); background: rgba(255,189,89,.08); }
.role-pill.role-manager { color: #71e6fa; border-color: rgba(39,207,239,.3); background: rgba(39,207,239,.08); }
.region-cell { color: var(--text); font-size: .76rem; font-weight: 700; }
.permission-pills { display: flex; gap: .35rem; max-width: 240px; overflow: hidden; }
.permission-pills span { padding: .3rem .52rem; color: #95aac1; background: rgba(103,130,160,.1); }
.permission-pills span.more { color: var(--amber); background: rgba(255,189,89,.09); }
.status-pill { gap: .4rem; padding: .35rem .55rem; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.active { color: var(--green); background: rgba(56,231,154,.08); }
.status-pill.active i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-pill.inactive { color: #ff9aac; background: rgba(226,75,99,.1); }
.status-pill.inactive i { background: #e24b63; }
.users-action-head, .users-actions { text-align: right; }
.user-edit-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 35px; padding: .45rem .72rem; color: var(--cyan); border: 1px solid #294563; border-radius: 999px; background: rgba(39,207,239,.05); font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.user-edit-toggle span { font-size: 1rem; transition: transform .2s ease; }
.user-edit-toggle[aria-expanded="true"] { color: var(--amber); border-color: rgba(255,189,89,.45); background: rgba(255,189,89,.08); }
.user-edit-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.user-editor-row td { padding: 0; border-top: 0; background: #091626; }
.user-editor-row[hidden] { display: none; }
.user-editor { margin: 0 .8rem .9rem; padding: 1.1rem; border: 1px solid #294563; border-radius: 15px; background: linear-gradient(145deg, rgba(17,35,57,.98), rgba(8,20,34,.98)); box-shadow: inset 3px 0 0 var(--cyan); }
.user-editor-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.user-editor-heading strong { display: block; color: var(--text); }
.user-editor-heading small { display: block; margin-top: .2rem; color: var(--muted); }
.user-editor-close { width: 34px; height: 34px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: var(--ink); font-size: 1.15rem; cursor: pointer; }
.user-editor-fields { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: .75rem; }
.user-editor-actions { display: flex; justify-content: flex-end; align-items: center; gap: .65rem; }
.user-editor-actions button { width: auto; margin: 0; }
.user-delete { margin-right: auto !important; padding: .7rem .9rem; color: #ff8ca0; border: 1px solid rgba(226,75,99,.45); border-radius: 10px; background: rgba(132,25,49,.14); font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.user-delete:hover { color: #ffd3da; border-color: #e24b63; background: rgba(173,35,61,.25); }
.delete-user-dialog { width: min(520px,94vw); }
.delete-user-dialog h2 { margin: .35rem 0 .7rem; }
.delete-user-warning { color: var(--muted); line-height: 1.55; }
.delete-user-target { display: grid; gap: .3rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid rgba(226,75,99,.32); border-radius: 12px; background: rgba(132,25,49,.1); }
.delete-user-target strong { color: var(--text); }
.delete-user-target span { color: var(--muted); font-size: .78rem; }
.delete-user-actions { display: flex; justify-content: flex-end; gap: .7rem; }
.danger-button { padding: .85rem 1rem; color: #fff; border: 1px solid #c52f4a; border-radius: 11px; background: linear-gradient(135deg,#c92f4b,#8f1730); font: inherit; font-weight: 900; cursor: pointer; }
.danger-button:hover { background: linear-gradient(135deg,#e0445f,#a81d38); }
.danger-button:disabled { opacity: .55; cursor: wait; }
.users-empty { display: grid; place-items: center; gap: .35rem; min-height: 240px; color: var(--muted); }
.users-empty strong { color: var(--text); }
.user-edit-field { display: grid; gap: .35rem; margin-top: .9rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.user-edit-field input,
.user-edit-field select { margin-top: 0; }

dialog { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 100px #000a; }
dialog::backdrop { background: rgba(2,8,13,.78); backdrop-filter: blur(8px); }
.detail-dialog { width: min(1050px, 94vw); max-height: 90vh; padding: 0; }
.form-dialog { width: min(480px, 94vw); padding: 2rem; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; font-size: 1.25rem; z-index: 2; }
.detail-hero { padding: 2rem; background: linear-gradient(130deg, #153544, #0b1d29); }
.detail-hero h2 { font-size: 2rem; max-width: 80%; margin: .5rem 0; }
.detail-hero p { color: var(--muted); }
.detail-grid { padding: 1.5rem 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-item { min-height: 76px; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.detail-item small { color: #6f9699; display: block; margin-bottom: .4rem; text-transform: uppercase; font-size: .63rem; letter-spacing: .08em; }
.detail-products { padding: 0 2rem 2rem; }
.detail-products-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.65rem; }
.detail-products-heading .eyebrow { margin:0; }
.detail-products-heading > span { padding:.35rem .6rem; border:1px solid rgba(72,190,230,.28); border-radius:999px; color:#8cdcf7; background:rgba(33,148,190,.08); font-size:.66rem; font-weight:850; }
.product-structure-table { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:rgba(3,12,24,.48); }
.product-structure-table .mini-row { grid-template-columns:minmax(260px,2.4fr) minmax(110px,.75fr) minmax(90px,.55fr) minmax(120px,.7fr); align-items:center; gap:1rem; padding:.8rem 1rem; }
.product-structure-table .mini-row:last-child { border-bottom:0; }
.product-structure-table .mini-row.header { color:#7fa8b6; background:rgba(54,102,134,.12); font-size:.64rem; font-weight:850; }
.product-structure-table .mini-row:not(.header):hover { background:rgba(57,170,216,.055); }
.product-structure-table .mini-row b { color:#f4f7ff; line-height:1.35; }
.product-structure-table .mini-row > span { color:#d9e7f2; }
.product-structure-table .product-value-muted { color:var(--muted); }
@media (max-width:700px) {
  .detail-products { padding:0 1rem 1.25rem; }
  .product-structure-table { border:0; background:transparent; }
  .product-structure-table .mini-row.header { display:none; }
  .product-structure-table .mini-row { grid-template-columns:1fr 1fr; gap:.55rem 1rem; margin-bottom:.65rem; padding:.85rem; border:1px solid var(--line); border-radius:12px; background:rgba(3,12,24,.48); }
  .product-structure-table .mini-row b { grid-column:1 / -1; padding-bottom:.55rem; border-bottom:1px solid var(--line); }
  .product-structure-table .mini-row > span::before { content:attr(data-label); display:block; margin-bottom:.18rem; color:#7194a3; font-size:.58rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
}
.station-visits-section { margin:0 2rem 2rem; padding:1.25rem; border:1px solid var(--line); border-radius:16px; background:linear-gradient(145deg,rgba(11,25,45,.94),rgba(5,13,26,.96)); }
.station-visits-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.station-visits-heading h3 { margin:.2rem 0 .25rem; }
.station-visits-heading p:last-child { max-width:720px; margin:0; color:var(--muted); font-size:.82rem; line-height:1.45; }
.station-visits-heading > span { flex:none; padding:.4rem .65rem; border:1px solid rgba(87,190,235,.28); border-radius:999px; color:#8bd8f8; background:rgba(33,149,199,.09); font-size:.7rem; font-weight:850; }
.station-visit-form { display:grid; gap:.55rem; margin-bottom:1rem; padding:1rem; border:1px solid rgba(255,139,31,.28); border-radius:13px; background:rgba(255,139,31,.045); }
.station-visit-form > label { color:#f1ae72; font-size:.72rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.station-visit-form textarea { width:100%; min-height:98px; resize:vertical; color:var(--text); border:1px solid var(--line); border-radius:10px; background:var(--ink); line-height:1.5; }
.station-visit-form > div { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.station-visit-form small { color:var(--muted); }
.station-visits-list { display:grid; gap:.65rem; }
.station-visit-card { padding:.9rem 1rem; border:1px solid var(--line); border-radius:12px; background:var(--ink); }
.station-visit-meta { display:flex; align-items:center; gap:.65rem; }
.station-visit-avatar { display:grid; width:32px; height:32px; flex:none; place-items:center; border-radius:9px; color:#06111e; background:linear-gradient(135deg,#ff9a38,#ffbf65); font-size:.75rem; font-weight:950; }
.station-visit-meta > div { display:grid; gap:.08rem; }
.station-visit-meta strong { font-size:.82rem; }
.station-visit-meta small { color:var(--muted); font-size:.68rem; }
.station-visit-delete { margin-left:auto; padding:.42rem .6rem; color:#ff9b9b; border:1px solid rgba(255,94,94,.28); border-radius:8px; background:rgba(180,35,45,.08); box-shadow:none; cursor:pointer; font-size:.68rem; font-weight:800; }
.station-visit-delete:hover { color:#fff; border-color:#e65b62; background:#9d2730; }
.station-visit-card > p { margin:.75rem 0 0; color:#dce8f7; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.82rem; line-height:1.55; }
.station-visits-empty { padding:1.15rem; color:var(--muted); border:1px dashed var(--line); border-radius:11px; text-align:center; font-size:.78rem; }
html[data-theme="light"] .station-visits-section { background:#fff; box-shadow:0 10px 28px rgba(31,52,78,.06); }
html[data-theme="light"] .station-visit-form { background:#fff8f1; }
html[data-theme="light"] .station-visit-form textarea,html[data-theme="light"] .station-visit-card { color:#172337; background:#f8fafc; }
html[data-theme="light"] .station-visit-card > p { color:#30445d; }
.cof-visits-section { margin-top:1.25rem; }
.map-link { display:inline-flex; align-items:center; gap:.55rem; color:var(--ink); background:var(--green); padding:.58rem .9rem .58rem .62rem; border:1px solid rgba(255,255,255,.15); border-radius:11px; box-shadow:0 8px 18px rgba(0,0,0,.16); text-decoration:none; font-weight:850; margin-top:.5rem; }
.map-link img{display:block;width:29px;height:29px;flex:0 0 29px;border-radius:7px;object-fit:cover;box-shadow:0 2px 7px rgba(0,0,0,.2)}
.map-link.map-link-icon{display:inline-grid;width:64px;height:64px;place-items:center;flex:0 0 64px;margin-top:.5rem;padding:5px;border:1px solid rgba(91,190,132,.58);border-radius:15px;background:linear-gradient(145deg,#14384a,#0a1c2d);box-shadow:0 0 0 4px rgba(55,174,112,.06),0 0 24px rgba(50,174,111,.2),inset 0 0 18px rgba(48,153,140,.14)}
.map-link.map-link-icon:hover{border-color:rgba(116,221,160,.78);background:linear-gradient(145deg,#184353,#0b2234);box-shadow:0 0 0 5px rgba(55,174,112,.09),0 0 28px rgba(50,174,111,.3),inset 0 0 20px rgba(48,153,140,.2);transform:translateY(-1px)}
.map-link.map-link-icon img{width:52px;height:52px;flex-basis:52px;border-radius:11px;box-shadow:0 5px 13px rgba(0,0,0,.28)}
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; max-width: 380px; padding: 1rem 1.2rem; color: var(--text); background: #173b36; border: 1px solid var(--green); border-radius: 12px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(calc(100% + 3rem)); transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; z-index: 20; }
.toast.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.toast.error { background: #3b1d22; border-color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 3rem !important; }

@media (max-width: 1150px) {
  .access-console-nav { grid-auto-columns:minmax(220px,1fr); grid-template-columns:none; grid-auto-flow:column; overflow-x:auto; }
  .access-overview-grid,.platform-health-grid { grid-template-columns:1fr; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .users-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-search { grid-column: 1 / -1; }
  .users-result-count { text-align: left; }
}
@media (max-width: 700px) {
  .access-console-nav { margin-right:-.5rem; margin-left:-.5rem; border-radius:12px; }
  .access-console-nav > button { min-height:64px; padding:.75rem .8rem; }
  .access-audit-launch { align-items:flex-start; flex-wrap:wrap; }
  .access-audit-launch > button { width:100%; }
}
@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }
  .login-art { min-height: 45vh; padding: 2rem; }
  .login-art h1 { font-size: 4rem; }
  .route-line, .source-note { display: none; }
  .login-card { min-height: 55vh; }
  .app-shell { display: block; }
  .sidebar { position: sticky; z-index: 10; width: 100%; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: .7rem; }
  .sidebar .brand span:last-child, .scope-chip, .sidebar-footer { display: none; }
  .sidebar nav { display: flex; }
  .nav-item { white-space: nowrap; width: auto; }
  .topbar { padding: 1rem; }
  .page { padding: 1rem; }
  .hero-panel { align-items: start; flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .action-head { align-items: start; flex-direction: column; }
  .policy-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .users-summary { grid-template-columns: 1fr 1fr; }
  .user-editor-fields { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .users-summary, .users-toolbar { grid-template-columns: 1fr; }
  .users-search { grid-column: auto; }
  .users-summary article { min-height: 76px; }
  .user-editor-actions { align-items: stretch; flex-direction: column; }
  .user-editor-actions button { width: 100%; }
  .station-visits-section { margin:0 1rem 1.5rem; padding:1rem; }
  .station-visits-heading,.station-visit-form > div { align-items:stretch; flex-direction:column; }
  .station-visit-form button { width:100%; }
}

/* PetroExpress Operations UI */
:root {
  --ink: #050b16;
  --ink-soft: #091426;
  --panel: #0d1a2f;
  --panel-2: #12223b;
  --line: #203654;
  --text: #f4f8ff;
  --muted: #8ba1c0;
  --green: #22d3ee;
  --green-deep: #0284c7;
  --lime: #60a5fa;
  --amber: #fbbf24;
  --red: #fb7185;
  --cyan: #38bdf8;
}

[hidden] { display: none !important; }

body {
  background:
    radial-gradient(circle at 76% -10%, rgba(14, 165, 233, .12), transparent 32rem),
    linear-gradient(145deg, #030712 0%, #07111f 48%, #050b16 100%);
  font-family: Bahnschrift, "Aptos Display", "Segoe UI", sans-serif;
}

.login-view {
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .72fr);
  background: #050b16;
}

.login-art {
  min-height: 100vh;
  padding: clamp(3rem, 7vw, 7rem);
  background:
    linear-gradient(120deg, rgba(3, 7, 18, .48), rgba(3, 7, 18, .94)),
    radial-gradient(circle at 75% 30%, rgba(34, 211, 238, .18), transparent 19rem),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(56, 189, 248, .045) 96px),
    repeating-linear-gradient(0deg, transparent 0 95px, rgba(56, 189, 248, .045) 96px);
}

.login-art::before {
  content: "";
  position: absolute;
  width: 38rem;
  height: 15rem;
  right: -7rem;
  bottom: 7rem;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow:
    0 0 0 45px rgba(34, 211, 238, .025),
    0 0 0 90px rgba(34, 211, 238, .018);
}

.login-art::after {
  width: 22rem;
  height: 22rem;
  right: 6rem;
  bottom: -14rem;
  border-width: 1px;
  border-color: rgba(96, 165, 250, .18);
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px 16px 16px 5px;
  color: #03101d;
  background: linear-gradient(145deg, #67e8f9, #0ea5e9);
  box-shadow: 0 14px 40px rgba(14, 165, 233, .25);
  letter-spacing: -.08em;
}

.login-art h1 {
  max-width: 750px;
  font-size: clamp(3.5rem, 6.5vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.075em;
  margin: 1rem 0 1.5rem;
}

.login-art h1 span {
  color: #38bdf8;
}

.login-copy {
  max-width: 39rem;
  font-size: 1.08rem;
}

.route-line {
  margin: 2.5rem 0;
}

.route-line::before {
  background: linear-gradient(90deg, #22d3ee, rgba(34, 211, 238, .04));
}

.route-line i {
  border-color: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, .65);
}

.login-card {
  position: relative;
  color: #eaf2ff;
  background:
    linear-gradient(180deg, rgba(13, 26, 47, .98), rgba(7, 17, 31, .98));
  border-left: 1px solid #203654;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.login-card h2 {
  color: #f8fbff;
  font-size: 2.15rem;
}

.login-card > p:not(.eyebrow) {
  color: #8ba1c0;
}

.login-card input {
  color: #f4f8ff;
  background: #07111f;
  border-color: #294462;
}

.app-shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  padding: 1.35rem 1rem;
  border-right-color: #1b304b;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, .99), rgba(5, 11, 22, .99));
}

.brand {
  padding: 0 .65rem;
  font-size: 1.14rem;
  letter-spacing: -.03em;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 12px 12px 12px 4px;
}

.scope-chip {
  margin: 1.7rem .4rem 1.25rem;
  color: #a2b7d2;
  background: rgba(14, 165, 233, .08);
  border: 1px solid rgba(56, 189, 248, .12);
}

.nav-item {
  min-height: 46px;
  color: #8da5c4;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #eef7ff;
  background: rgba(18, 34, 59, .8);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(14, 165, 233, .2), rgba(14, 165, 233, .05));
  border-color: rgba(56, 189, 248, .18);
  box-shadow: inset 3px 0 #22d3ee;
}

.nav-icon {
  width: 22px;
  color: #38bdf8 !important;
  text-align: center;
  font-size: 1rem !important;
}

.topbar {
  min-height: 84px;
  border-bottom-color: #1b304b;
  background: rgba(5, 11, 22, .84);
}

.topbar h2 {
  font-size: 1.28rem;
}

.user-box > span {
  color: #03101d;
  background: linear-gradient(145deg, #67e8f9, #38bdf8);
  border-radius: 12px;
}

.page {
  max-width: 1720px;
  margin: 0 auto;
}

.hero-panel {
  min-height: 225px;
  padding: clamp(2rem, 4vw, 3.2rem);
  border-color: #24415e;
  border-radius: 22px;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(9, 20, 38, .98), rgba(10, 35, 57, .9)),
    radial-gradient(circle at 82% 40%, rgba(34, 211, 238, .18), transparent 24rem);
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: 8%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(56, 189, 248, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(56, 189, 248, .025);
}

.hero-panel::after {
  top: -58%;
  right: 3%;
  font-size: 19rem;
  color: rgba(255, 255, 255, .018);
}

.hero-panel h1 {
  max-width: 850px;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.hero-panel h1 span {
  color: #38bdf8;
}

.summary-grid {
  gap: .8rem;
  margin: .8rem 0;
}

.metric {
  min-height: 112px;
  padding: 1.1rem;
  border-radius: 15px;
  border-color: #203854;
  background: linear-gradient(145deg, rgba(13, 26, 47, .96), rgba(9, 20, 38, .96));
}

.metric strong {
  font-size: 1.8rem;
}

.metric em,
.eyebrow {
  color: #22d3ee;
}

.dashboard-grid {
  grid-template-columns: 1.35fr .75fr;
  gap: .8rem;
}

.panel,
.table-panel {
  border-color: #203854;
  background: linear-gradient(150deg, rgba(13, 26, 47, .94), rgba(7, 17, 31, .96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.panel {
  min-height: 280px;
  border-radius: 18px;
}

.panel.wide {
  min-height: 310px;
}

.primary {
  color: #03101d;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 10px 28px rgba(14, 165, 233, .18);
}

.primary:hover {
  background: linear-gradient(135deg, #a5f3fc, #60a5fa);
}

.secondary {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, .32);
  background: rgba(14, 165, 233, .1);
}

.bar-track {
  background: #050b16;
}

.bar-track i {
  background: linear-gradient(90deg, #0284c7, #22d3ee);
}

.donut {
  background: conic-gradient(#22d3ee calc(var(--value) * 1%), #f59e0b 0);
}

.detail-hero {
  background: linear-gradient(130deg, #0c2943, #07111f);
}

@media (max-width: 820px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-art {
    min-height: 38vh;
    padding: 2.2rem;
  }

  .login-art h1 {
    font-size: 3.6rem;
  }

  .login-copy {
    margin-bottom: 0;
  }

  .login-card {
    min-height: 62vh;
    border-left: 0;
    border-top: 1px solid #203654;
  }

  .app-shell {
    display: block;
  }

  .hero-panel::before {
    display: none;
  }
}

/* 20260808-theme-clarity-final
   Deve permanecer no fim do arquivo: neutraliza os remendos claros legados. */
html[data-theme="light"] {
  --ink: #eef3f8;
  --ink-soft: #e7edf4;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: #d5dee9;
  --text: #172337;
  --muted: #53657b;
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .content {
  color: #172337;
  background: radial-gradient(circle at 92% 2%, rgba(35,143,194,.08), transparent 28rem), linear-gradient(145deg,#edf3f8 0%,#f7f9fc 58%,#eef2f7 100%);
}

html[data-theme="light"] .sidebar {
  border-color: #d5dee9;
  background: linear-gradient(180deg,rgba(255,255,255,.99),rgba(243,247,251,.99));
  box-shadow: 12px 0 36px rgba(31,52,78,.055);
}

html[data-theme="light"] .scope-chip { color:#465a72; border-color:#d8e1eb; background:#edf3f8; }
html[data-theme="light"] .organized-nav .nav-group-toggle { color:#51657d; border-color:transparent; background:transparent; box-shadow:none; }
html[data-theme="light"] .organized-nav .nav-section-icon { color:#4b6179; border-color:#d3dde8; background:#edf2f7; }
html[data-theme="light"] .organized-nav .nav-group-toggle:hover,
html[data-theme="light"] .organized-nav .nav-group.has-active:not(.open) .nav-group-toggle { color:#18283e; border-color:#d9e2ec; background:#f4f7fa; }
html[data-theme="light"] .organized-nav .nav-group.open .nav-group-toggle { color:#1c2d43; border-color:#d3dde8; background:linear-gradient(135deg,#edf3f8,#f8fafc); box-shadow:0 7px 18px rgba(34,55,82,.07); }
html[data-theme="light"] .organized-nav .nav-group.open .nav-section-icon { color:#c85308; border-color:#efbe98; background:#fff2e7; }
html[data-theme="light"] .organized-nav .nav-item { color:#42566e; border-color:transparent; background:transparent; box-shadow:none; }
html[data-theme="light"] .organized-nav .nav-item .nav-icon { color:#18799e; }
html[data-theme="light"] .organized-nav .nav-item:hover { color:#18283e; border-color:#d7e2ec; background:#f1f6fa; }
html[data-theme="light"] .organized-nav .nav-item.active { color:#17263c; border-color:#c8d9e7; background:linear-gradient(90deg,#e4eef7,#f4f8fb); box-shadow:inset 3px 0 0 #e26b17,0 6px 16px rgba(29,74,108,.07); }
html[data-theme="light"] .organized-nav .nav-item.active .nav-icon { color:#c85308; }

html[data-theme="light"] .topbar { border-color:#cbd7e3; background:rgba(249,251,253,.9); box-shadow:0 8px 28px rgba(31,52,78,.055); }
html[data-theme="light"] :is(.panel,.metric,.table-panel,.policy-card,.users-workspace,.users-summary article,.enrichment-control-panel,.cof-anp-automation,.cof-import-panel,.seller-access-policy,.audit-category-strip,.sync-created-card,.sync-updated-card,.regulatory-status-card,.regulatory-rank-item,.regulatory-detail-card,.regulatory-detail-section) { color:#172337; border-color:#d5dee9; background:#fff; box-shadow:0 12px 32px rgba(31,52,78,.075); }
html[data-theme="light"] :is(.users-toolbar,.filter-bar) { border-color:#d5dee9; background:#edf3f8; box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }

html[data-theme="light"] :is(input,select,textarea,.users-search,.seller-policy-ips textarea) { color:#1c2c42; border-color:#c9d5e2; background:#fff; box-shadow:inset 0 1px 2px rgba(30,51,77,.035); }
html[data-theme="light"] :is(input,textarea)::placeholder { color:#718198; opacity:1; }
html[data-theme="light"] :is(input,select,textarea):focus,
html[data-theme="light"] .users-search:focus-within { border-color:#1584b1; box-shadow:0 0 0 3px rgba(21,132,177,.14); }

html[data-theme="light"] thead,
html[data-theme="light"] thead tr,
html[data-theme="light"] thead th,
html[data-theme="light"] .users-table th { color:#40546c !important; border-color:#d4dee8; background:#eaf0f6 !important; }
html[data-theme="light"] tbody tr { background:#fff; }
html[data-theme="light"] tbody tr:nth-child(even) { background:#f8fafc; }
html[data-theme="light"] tbody tr:hover { background:#edf5fa; }
html[data-theme="light"] tbody td { color:#465970 !important; border-color:#e0e7ef; }
html[data-theme="light"] tbody td :is(b,strong),
html[data-theme="light"] :is(.user-identity b,.region-cell,.rank-item b,.mini-row b) { color:#172337 !important; }

html[data-theme="light"] .primary { color:#fff; border-color:#a83c00; background:linear-gradient(135deg,#c24e04,#9e3700); box-shadow:0 9px 22px rgba(158,55,0,.22); }
html[data-theme="light"] .primary:hover { color:#fff; border-color:#873000; background:linear-gradient(135deg,#b84403,#873000); }
html[data-theme="light"] :is(button:not(.primary),.secondary,.ghost-button,.row-action,.user-edit-toggle,.password-reset-open) { color:#126f98; border-color:#b9d1df; background:#f6fafc; box-shadow:none; }
html[data-theme="light"] :is(button:not(.primary),.secondary,.ghost-button,.row-action,.user-edit-toggle,.password-reset-open):hover { color:#a94406; border-color:#e1a577; background:#fff5ed; }

html[data-theme="light"] :is(.account-flyout,dialog,.detail-dialog,.form-dialog) { color:#172337; border-color:#cdd8e4; background:linear-gradient(155deg,#fff,#f4f7fa); box-shadow:0 28px 80px rgba(25,44,69,.2); }
html[data-theme="light"] :is(.display-control,.maintenance-control,.seller-policy-toggle,.seller-policy-days span,.user-editor-row td,.user-editor,.detail-item,.sync-field-change) { color:#24364d; border-color:#d4dee8; background:#f7f9fc; }

/* Configuração individual dos cards de detalhes do posto */
.user-editor-tabs { display:flex; gap:.35rem; margin:0 0 1rem; padding:.3rem; width:max-content; max-width:100%; border:1px solid var(--line); border-radius:12px; background:rgba(2,12,24,.58); }
.user-editor-tabs button { width:auto; margin:0; padding:.68rem .9rem; border:0; border-radius:9px; color:var(--muted); background:transparent; cursor:pointer; font-weight:800; }
.user-editor-tabs button.active { color:#06101c; background:var(--cyan); box-shadow:0 5px 18px rgba(34,199,232,.2); }
.user-editor-tabs button:disabled { opacity:.38; cursor:not-allowed; }
.user-editor-panel { display:none; }
.user-editor-panel.active { display:block; }
.station-detail-configurator { padding:.2rem 0 .8rem; }
.station-config-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.station-config-heading strong { display:block; color:var(--text); font-size:1rem; }
.station-config-heading small { display:block; max-width:760px; margin-top:.25rem; color:var(--muted); line-height:1.45; }
.station-config-count { flex:0 0 auto; padding:.42rem .65rem; border:1px solid rgba(34,199,232,.35); border-radius:999px; color:var(--cyan); background:rgba(34,199,232,.08); font-size:.72rem; font-weight:900; }
.station-config-toolbar { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:.55rem; }
.station-config-toolbar button { width:auto; margin:0; padding:.48rem .7rem; border:1px solid var(--line); border-radius:8px; color:var(--muted); background:var(--ink); cursor:pointer; font-weight:800; }
.station-config-toolbar button:hover { color:var(--text); border-color:var(--cyan); }
.station-config-note { margin-bottom:.8rem; color:#80a1bb; font-size:.76rem; }
.station-config-fixed { display:flex; align-items:center; gap:.65rem; margin:0 0 .9rem; padding:.7rem .8rem; border:1px solid rgba(255,138,31,.32); border-radius:10px; background:rgba(255,138,31,.07); }
.station-config-fixed b { color:#ff9b42; font-size:.76rem; }
.station-config-fixed span { color:var(--muted); font-size:.72rem; }
.station-config-group { margin-top:1rem; padding-top:.9rem; border-top:1px solid var(--line); }
.station-config-group-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:.65rem; }
.station-config-group-heading strong { color:var(--text); font-size:.86rem; }
.station-config-group-heading small { color:var(--muted); font-size:.7rem; text-align:right; }
.station-config-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; counter-reset:station-position; }
.station-config-card { position:relative; min-width:0; min-height:118px; padding:.75rem .8rem .8rem; border:1px solid #2c4a68; border-radius:12px; background:#06101f; cursor:grab; transition:border-color .16s ease,opacity .16s ease,transform .16s ease; }
.station-config-card:hover { border-color:var(--cyan); transform:translateY(-1px); }
.station-config-card.is-hidden { opacity:.52; border-style:dashed; }
.station-config-card.is-dragging { opacity:.28; transform:scale(.98); }
.station-config-card-top { display:flex; align-items:center; gap:.45rem; margin-bottom:.65rem; }
.station-config-drag { color:#64839d; letter-spacing:-.22rem; font-size:1rem; }
.station-config-card-top label { display:flex; align-items:center; gap:.35rem; margin:0 auto 0 0; color:#8fb2c9; font-size:.68rem; font-weight:800; cursor:pointer; }
.station-config-card-top input { width:15px; height:15px; margin:0; accent-color:var(--cyan); }
.station-config-position { display:grid; place-items:center; width:24px; height:24px; border-radius:7px; color:var(--cyan); background:rgba(34,199,232,.09); font-size:.68rem; }
.station-config-card > small { display:block; overflow:hidden; color:#6f9699; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; font-size:.61rem; letter-spacing:.08em; }
.station-config-card > strong { display:block; overflow:hidden; margin-top:.35rem; color:var(--text); text-overflow:ellipsis; white-space:nowrap; font-size:.82rem; }
.station-config-move { position:absolute; right:.55rem; bottom:.45rem; display:flex; gap:.25rem; }
.station-config-move button { display:grid; place-items:center; width:25px; height:22px; margin:0; padding:0; border:1px solid var(--line); border-radius:6px; color:var(--muted); background:#0c1a2a; cursor:pointer; }
.station-config-move button:hover { color:var(--cyan); border-color:var(--cyan); }
.station-detail-configurator.is-unavailable { opacity:.55; }
html[data-theme="light"] .user-editor-tabs { border-color:#ccd9e5; background:#edf3f8; }
html[data-theme="light"] .access-console-nav { border-color:#cfdbe7; background:#f5f8fb; box-shadow:0 10px 28px rgba(31,52,78,.08); }
html[data-theme="light"] .access-console-nav > button { color:#64758b; border-color:#d7e1ea; }
html[data-theme="light"] .access-console-nav > button:hover { color:#273a52; background:#edf5f9; }
html[data-theme="light"] .access-console-nav > button.active { color:#172337; background:#fff; }
html[data-theme="light"] .access-overview-grid button,html[data-theme="light"] .platform-health-grid article { color:#172337; border-color:#d5dee9; background:#fff; box-shadow:0 12px 30px rgba(31,52,78,.065); }
html[data-theme="light"] .platform-health-note,html[data-theme="light"] .access-audit-launch { border-color:#bfdae7; background:#f1f9fc; }
html[data-theme="light"] .user-editor-tabs button.active { color:#fff; background:#1684b1; }
html[data-theme="light"] .station-config-card { border-color:#cbd9e5; background:#fff; }
html[data-theme="light"] .station-config-card > strong,html[data-theme="light"] .station-config-heading strong { color:#24364d; }
.group-station-policy { margin-top:1rem; padding:1.35rem; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,rgba(10,24,43,.96),rgba(7,16,30,.96)); box-shadow:0 18px 48px rgba(0,0,0,.16); }
.group-station-policy-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.group-station-policy-heading h2 { margin:.2rem 0 .3rem; }
.group-station-policy-heading p:last-child { margin:0; color:var(--muted); }
.group-station-policy-controls { display:flex; align-items:center; justify-content:flex-end; gap:.65rem; flex:0 0 auto; }
.group-station-policy-toggle { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-width:106px; padding:.55rem .75rem; border:1px solid rgba(100,203,240,.32); border-radius:10px; color:#86dfff; background:rgba(10,32,52,.72); box-shadow:none; cursor:pointer; font-weight:800; }
.group-station-policy-toggle:hover { color:#fff; border-color:rgba(255,139,31,.55); background:rgba(255,139,31,.12); }
.group-station-policy-toggle svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s ease; }
.group-station-policy:not(.is-collapsed) .group-station-policy-toggle svg { transform:rotate(180deg); }
.group-station-policy.is-collapsed { padding-top:1rem; padding-bottom:1rem; }
.group-station-policy.is-collapsed .group-station-policy-heading { align-items:center; margin-bottom:0; }
.group-station-policy.is-collapsed .group-station-policy-heading > div:first-child > p:last-child { display:none; }
.group-station-policy.is-collapsed .group-station-policy-content { display:none; }
.group-station-policy-tabs { display:flex; gap:.5rem; margin-bottom:1rem; padding:.35rem; border:1px solid var(--line); border-radius:12px; background:rgba(4,12,24,.55); }
.group-station-policy-tabs button { flex:1; padding:.7rem 1rem; border:1px solid transparent; border-radius:9px; color:var(--muted); background:transparent; box-shadow:none; cursor:pointer; font-weight:850; }
.group-station-policy-tabs button.active { color:#fff; border-color:rgba(255,139,31,.42); background:linear-gradient(135deg,rgba(255,139,31,.24),rgba(205,83,8,.16)); }
.group-station-policy-panel { display:none; }
.group-station-policy-panel.active { display:block; }
.group-detail-policy-module { margin-top:1rem; padding:1rem; border:1px solid var(--line); border-radius:15px; background:rgba(4,12,24,.38); }
.group-detail-policy-module + .group-detail-policy-module { margin-top:1.25rem; }
.group-detail-policy-module-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.9rem; }
.group-detail-policy-module-heading h3 { margin:.15rem 0 0; }
.group-detail-policy-module-heading > span { padding:.35rem .6rem; border:1px solid rgba(87,190,235,.25); border-radius:999px; color:#8bd8f8; font-size:.68rem; font-weight:850; }
.group-station-policy-actions { display:flex; align-items:center; justify-content:flex-end; gap:1rem; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--line); }
.group-station-policy-actions span { color:var(--muted); font-size:.76rem; }
html[data-theme="light"] .group-station-policy { background:#fff; box-shadow:0 12px 32px rgba(31,52,78,.075); }
html[data-theme="light"] .group-station-policy-tabs { background:#edf3f8; }
html[data-theme="light"] .group-detail-policy-module { background:#f8fafc; }
html[data-theme="light"] .group-station-policy-tabs button.active { color:#9c3d06; border-color:#e7b38d; background:#fff3e9; }
html[data-theme="light"] .group-station-policy-toggle { color:#126f98; border-color:#b9d1df; background:#f6fafc; }
html[data-theme="light"] .group-station-policy-toggle:hover { color:#a94406; border-color:#e1a577; background:#fff5ed; }
.report-config-trigger { display:inline-flex; align-items:center; gap:.5rem; width:auto; min-width:142px; padding:.68rem .9rem; border:1px solid rgba(255,139,31,.55); border-radius:11px; color:#ffc078; background:linear-gradient(135deg,rgba(255,139,31,.16),rgba(255,139,31,.06)); box-shadow:0 8px 24px rgba(0,0,0,.13); cursor:pointer; font-weight:900; }
.report-config-trigger:hover { color:#fff; border-color:#ff9b40; background:rgba(255,139,31,.24); }
.report-config-trigger span { font-size:1rem; }
.report-config-dialog { width:min(1180px,calc(100vw - 32px)); max-width:1180px; max-height:calc(100vh - 32px); overflow:hidden; }
.report-config-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:1.2rem; padding:1.4rem 4.5rem 1.2rem 1.5rem; border-bottom:1px solid var(--line); background:linear-gradient(135deg,rgba(255,139,31,.12),rgba(15,35,57,.18)); }
.report-config-dialog-head h2 { margin:.25rem 0 .35rem; }
.report-config-dialog-head p:last-child { margin:0; color:var(--muted); }
.report-config-dialog-head > span { flex:0 0 auto; padding:.42rem .7rem; border:1px solid rgba(88,214,141,.36); border-radius:999px; color:#77e2a4; background:rgba(88,214,141,.08); font-size:.68rem; font-weight:900; }
.report-config-dialog-content { max-height:calc(100vh - 150px); padding:1.25rem 1.5rem 1.5rem; overflow:auto; }
.report-config-dialog-content .group-detail-policy-module { margin-top:0; }
.report-config-loading,.report-config-error { display:grid; min-height:220px; place-items:center; color:var(--muted); font-weight:800; }
.report-config-error { color:#ff8390; }
html[data-theme="light"] .report-config-trigger { color:#a94406; border-color:#e1a577; background:#fff5ed; }
html[data-theme="light"] .report-config-dialog-head { background:linear-gradient(135deg,#fff3e8,#f6f9fc); }
html[data-theme="light"] .report-config-dialog-head > span { color:#187448; border-color:#add9bf; background:#effaf4; }
@media (max-width:700px) { .group-station-policy-heading { align-items:stretch; flex-direction:column; } .group-station-policy-controls { justify-content:space-between; } .group-station-policy-toggle { min-width:0; } }
@media (max-width:700px) { .report-config-trigger { min-width:0; } .report-config-dialog-head { align-items:flex-start; flex-direction:column; padding-right:4rem; } .report-config-dialog-content { padding:1rem; } }
html[data-theme="light"] .station-config-group-heading strong { color:#24364d; }
html[data-theme="light"] .station-config-fixed { border-color:#efc39f; background:#fff7ef; }
html[data-theme="light"] .station-config-toolbar button,html[data-theme="light"] .station-config-move button { color:#40546c; border-color:#cbd9e5; background:#f4f7fa; }
.detail-hero-actions { display:flex; align-items:stretch; justify-content:space-between; gap:1rem; margin-top:1.2rem; }
.detail-hero-actions .map-link { display:inline-flex; align-items:center; margin:0; }
.detail-hero .detail-hero-cnpj { display:flex; align-items:center; gap:.75rem; min-width:480px; margin:0; padding:.65rem .7rem .65rem 1rem; border:1px solid rgba(255,151,62,.62); border-radius:12px; color:#fff; background:linear-gradient(135deg,rgba(255,122,20,.2),rgba(255,151,62,.08)); box-shadow:0 10px 28px rgba(255,112,12,.13),inset 3px 0 0 #ff8a1f; }
.detail-hero .detail-hero-cnpj > span { color:#ffad62; font-size:.68rem; font-weight:900; letter-spacing:.13em; }
.detail-hero .detail-hero-cnpj > strong { color:#fff; font-size:1.15rem; font-weight:950; letter-spacing:.035em; white-space:nowrap; }
.cof-detail-button { padding:.5rem .72rem; color:#ffbd72; border:1px solid rgba(255,151,62,.35); border-radius:9px; background:rgba(255,139,31,.08); box-shadow:none; cursor:pointer; font-size:.72rem; font-weight:850; white-space:nowrap; }
.cof-detail-button:hover { color:#fff; border-color:#ff8a1f; background:rgba(255,139,31,.2); }
.known-phones-button { display:inline-flex; align-items:center; gap:.45rem; width:auto; margin:0 0 0 auto; padding:.55rem .7rem; border:1px solid rgba(111,196,255,.45); border-radius:9px; color:#9fd8ff; background:rgba(24,129,196,.13); box-shadow:none; cursor:pointer; font-size:.7rem; font-weight:900; white-space:nowrap; }
.known-phones-button:hover { color:#fff; border-color:#72c9ff; background:rgba(24,129,196,.26); }
.known-phones-button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.known-phones-button span { color:inherit; font-size:inherit; letter-spacing:0; }
html[data-theme="light"] .detail-hero .detail-hero-cnpj { color:#783006; border-color:#e5a574; background:linear-gradient(135deg,#fff0e4,#fff9f4); box-shadow:0 10px 25px rgba(158,65,8,.1),inset 3px 0 0 #d95d0b; }
html[data-theme="light"] .detail-hero .detail-hero-cnpj > span { color:#a44208; }
html[data-theme="light"] .detail-hero .detail-hero-cnpj > strong { color:#5f2707; }
html[data-theme="light"] .known-phones-button { color:#126f98; border-color:#acd0e3; background:#edf7fb; }
.known-phones-dialog { width:min(680px,calc(100vw - 2rem)); max-width:680px; padding:0; overflow:hidden; }
.known-phones-dialog .dialog-close { z-index:2; }
#known-phones-content { min-height:260px; }
.known-phones-head { padding:1.5rem 1.6rem 1.1rem; border-bottom:1px solid var(--line); background:linear-gradient(135deg,rgba(255,127,20,.09),rgba(15,35,57,.15)); }
.known-phones-head h2 { margin:.42rem 0 .35rem; font-size:clamp(1.25rem,3vw,1.75rem); line-height:1.2; }
.known-phones-head > p:last-child { margin:0; color:var(--muted); }
.known-phone-add-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.8fr); align-items:end; gap:1rem; margin:0 1.4rem 1.2rem; padding:.85rem 1rem; border:1px solid rgba(255,151,62,.32); border-radius:12px; background:linear-gradient(135deg,rgba(255,139,31,.09),rgba(21,73,107,.08)); }
.known-phone-add-copy label { display:block; color:var(--text); font-size:.8rem; font-weight:900; }
.known-phone-add-copy span { display:block; margin-top:.25rem; color:var(--muted); font-size:.68rem; }
.known-phone-add-copy strong { color:#59c9fa; }
.known-phone-add-control { display:flex; gap:.5rem; }
.known-phone-add-control input { min-width:0; height:39px; margin:0; padding:.6rem .72rem; border:1px solid var(--line); border-radius:9px; color:var(--text); background:var(--ink); }
.known-phone-add-control button { width:auto; min-width:92px; height:39px; margin:0; padding:.55rem .78rem; border:1px solid #f49a46; border-radius:9px; color:#07111f; background:linear-gradient(135deg,#ffc069,#ff8b27); font-size:.72rem; font-weight:950; cursor:pointer; }
.known-phone-add-control button:disabled { cursor:wait; opacity:.62; }
.known-phones-list { display:grid; gap:.65rem; padding:1rem 1.4rem; }
.known-phone-card { display:flex; align-items:center; gap:.8rem; padding:.85rem; border:1px solid var(--line); border-radius:12px; background:var(--ink); }
.known-phone-icon { display:grid; flex:0 0 40px; place-items:center; width:40px; height:40px; border:1px solid rgba(50,184,235,.35); border-radius:10px; color:#77d5ff; background:rgba(32,156,211,.1); font-size:1.15rem; }
.known-phone-card > div:nth-child(2) { min-width:0; margin-right:auto; }
.known-phone-card strong { display:block; color:var(--text); font-size:1.08rem; }
.known-phone-card small { display:block; margin-top:.2rem; color:var(--muted); font-size:.7rem; }
.known-phone-card .known-phone-source-label { color:#55bfff; font-weight:850; letter-spacing:.02em; }
.known-phone-actions { display:flex; gap:.35rem; }
.known-phone-actions :is(a,button) { width:auto; margin:0; padding:.48rem .62rem; border:1px solid var(--line); border-radius:8px; color:#8bd7ff; background:rgba(38,144,194,.08); font-size:.7rem; font-weight:900; text-decoration:none; }
.known-phone-actions .known-phone-delete { color:#ff9aa5; border-color:rgba(255,103,119,.32); background:rgba(255,77,96,.08); }
.known-phone-actions .known-phone-delete:hover { color:#fff; border-color:#ff6878; background:rgba(255,77,96,.22); }
.known-phone-actions .known-phone-delete:disabled { cursor:wait; opacity:.6; }
.known-phones-source { display:flex; justify-content:space-between; gap:1rem; margin:0 1.4rem 1.2rem; padding:.75rem .85rem; border:1px solid rgba(42,190,134,.26); border-radius:10px; color:#7ee0b6; background:rgba(42,190,134,.07); font-size:.72rem; }
.known-phones-source span { color:var(--muted); text-align:right; }
.known-phones-source.attention { color:#ffc078; border-color:rgba(255,153,62,.3); background:rgba(255,139,31,.07); }
.known-phones-loading,.known-phones-empty { display:grid; min-height:260px; place-content:center; gap:.65rem; padding:2rem; color:var(--muted); text-align:center; }
.known-phones-loading span { width:34px; height:34px; margin:auto; border:3px solid rgba(92,193,240,.2); border-top-color:#63c9f7; border-radius:50%; animation:spin .8s linear infinite; }
.known-phones-empty strong { color:var(--text); font-size:1.05rem; }
@keyframes spin { to { transform:rotate(360deg); } }
html[data-theme="light"] .known-phone-card { border-color:#d3dfe9; background:#fff; }
html[data-theme="light"] .known-phone-card strong,html[data-theme="light"] .known-phones-empty strong { color:#23354b; }
html[data-theme="light"] .known-phone-add-form { border-color:#e5b58d; background:#fff7ef; }
html[data-theme="light"] .known-phone-add-control input { border-color:#cbd9e5; background:#fff; }
html[data-theme="light"] .known-phone-actions .known-phone-delete { color:#b5263a; border-color:#e9b4ba; background:#fff1f3; }
@media (max-width:850px) { .detail-hero-actions { align-items:stretch; flex-direction:column; }.detail-hero .detail-hero-cnpj { min-width:0; }.detail-hero-actions .map-link { justify-content:center; } }
@media (max-width:560px) { .detail-hero .detail-hero-cnpj { align-items:flex-start; flex-wrap:wrap; }.known-phones-button { width:100%; margin:.2rem 0 0; justify-content:center; }.known-phone-add-form { grid-template-columns:1fr; }.known-phone-add-control { flex-direction:column; }.known-phone-add-control button { width:100%; }.known-phone-card { align-items:flex-start; flex-wrap:wrap; }.known-phone-actions { width:100%; }.known-phone-actions :is(a,button) { flex:1; text-align:center; }.known-phones-source { flex-direction:column; }.known-phones-source span { text-align:left; } }

.detail-hero-customer { display:flex; align-items:center; gap:1rem; margin-top:.45rem; }
.detail-hero-customer > div { min-width:0; }
.detail-hero-customer > div:not(.detail-hero-shortcuts) { flex:1 1 auto; }
.detail-hero-customer h2 { width:100%; max-width:none; margin:0 0 .35rem; }
.detail-hero-customer p { margin:0; }
.detail-hero-shortcuts { display:flex; align-items:center; flex:0 0 auto; gap:.65rem; min-width:0; }
.detail-hero-shortcuts :is(button,a) { position:relative; }
.detail-hero-shortcuts :is(button,a)::after { position:absolute; left:50%; top:calc(100% + 10px); z-index:20; padding:.5rem .68rem; border:1px solid rgba(255,160,64,.48); border-radius:8px; color:#fff; background:rgba(5,16,29,.96); box-shadow:0 10px 28px rgba(0,0,0,.38); content:attr(data-tooltip); font-size:.7rem; font-weight:950; letter-spacing:.055em; line-height:1; opacity:0; pointer-events:none; transform:translate(-50%,5px); transition:opacity .16s,transform .16s; white-space:nowrap; }
.detail-hero-shortcuts :is(button,a):is(:hover,:focus-visible)::after { opacity:1; transform:translate(-50%,0); }
.detail-hero-shortcuts .map-link.map-link-icon{display:inline-grid;margin:0}
.detail-hero-shortcuts .last-purchase-button { flex:none; }
.last-purchase-button { display:grid; flex:0 0 64px; width:64px; height:64px; padding:0; place-items:center; border:1px solid rgba(255,171,66,.78); border-radius:15px; color:#ffaf43; background:linear-gradient(145deg,#163561,#0b1930); box-shadow:0 0 0 4px rgba(255,139,31,.08),0 0 25px rgba(255,139,31,.42),inset 0 0 18px rgba(56,126,255,.2); cursor:pointer; }
.last-purchase-button:hover { color:#ffd087; border-color:#ffc16a; transform:translateY(-1px); box-shadow:0 0 0 5px rgba(255,139,31,.11),0 0 30px rgba(255,139,31,.55),inset 0 0 20px rgba(56,126,255,.28); }
.last-purchase-button svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 5px rgba(255,164,49,.5)); }
.last-purchase-button.is-petro-customer { color:#59e0a5; border-color:rgba(73,220,155,.94); box-shadow:0 0 0 4px rgba(45,205,139,.09),0 0 27px rgba(45,205,139,.44),inset 0 0 18px rgba(41,182,139,.2); }
.last-purchase-button.is-petro-customer:hover { color:#9af3ca; border-color:#78ebb8; box-shadow:0 0 0 5px rgba(45,205,139,.12),0 0 32px rgba(45,205,139,.58),inset 0 0 21px rgba(41,182,139,.27); }
.last-purchase-button.is-petro-customer svg { filter:drop-shadow(0 0 6px rgba(73,220,155,.55)); }
.detail-hero-customer h2.is-petro-customer { color:#59e0a5 !important; text-shadow:0 0 20px rgba(45,205,139,.2); }
.client-name-has-sale { color:#59e0a5 !important; text-shadow:0 0 14px rgba(45,205,139,.18); }
.station-dossier-button { display:grid; width:64px; height:64px; padding:0; place-items:center; border:1px solid rgba(77,198,238,.62); border-radius:15px; color:#67d2ef; background:linear-gradient(145deg,#123251,#091a30); box-shadow:0 0 0 4px rgba(54,188,229,.07),0 0 24px rgba(45,177,221,.24),inset 0 0 18px rgba(42,131,206,.16); cursor:pointer; }
.station-dossier-button:hover { color:#a2e8fa; border-color:#6bd9f6; transform:translateY(-1px); box-shadow:0 0 0 5px rgba(54,188,229,.1),0 0 28px rgba(45,177,221,.38),inset 0 0 20px rgba(42,131,206,.22); }
.station-dossier-button svg { width:37px; height:37px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 5px rgba(73,205,239,.35)); }
.station-dossier-button svg circle,.station-dossier-button svg path:last-child { stroke:#ffae4c; }
.last-purchase-dialog { width:min(880px,calc(100vw - 2rem)); max-width:880px; padding:0; overflow:hidden; border-color:rgba(255,148,43,.52); box-shadow:0 28px 90px #000c,0 0 0 1px rgba(255,152,52,.08); }
.last-purchase-head { padding:1.55rem 1.65rem 1.15rem; border-bottom:1px solid rgba(255,146,38,.3); background:radial-gradient(circle at 95% 0,rgba(255,139,31,.17),transparent 18rem),linear-gradient(145deg,#111d30,#0b1423); }
.last-purchase-head h2 { margin:.35rem 0 .4rem; font-size:1.55rem; }
.last-purchase-head > p:last-child { margin:0; color:var(--muted); }
.last-purchase-summary-grid { display:grid; grid-template-columns:185px minmax(300px,1fr) 185px; gap:.85rem; padding:1.25rem 1.45rem; background:linear-gradient(180deg,rgba(8,18,32,.82),rgba(10,20,34,.98)); }
.last-purchase-summary-grid > article { min-width:0; padding:1rem .9rem; border:1px solid #264460; border-radius:12px; background:linear-gradient(145deg,rgba(12,29,49,.94),rgba(7,17,31,.96)); box-shadow:inset 0 1px rgba(255,255,255,.025); }
.last-purchase-summary-grid article > small { display:block; margin-bottom:.85rem; color:#55d6ed; font-size:.68rem; font-weight:950; letter-spacing:.13em; }
.last-purchase-card-title { display:flex!important; align-items:center!important; justify-content:space-between; min-height:24px!important; margin-bottom:.65rem; }
.last-purchase-card-title small { color:#55d6ed; font-size:.68rem; font-weight:950; letter-spacing:.13em; }
.purchase-history-button { display:grid; width:30px; height:30px; padding:0; place-items:center; border:1px solid rgba(255,164,55,.6); border-radius:8px; color:#ffad4c; background:rgba(255,143,31,.08); cursor:pointer; transition:.18s ease; }
.purchase-history-button:hover { border-color:#ffb55c; color:#ffd18e; background:rgba(255,143,31,.18); transform:translateY(-1px); }
.purchase-history-button svg { width:17px!important; height:17px!important; stroke:currentColor!important; stroke-width:1.8!important; }
.last-purchase-summary-grid article > div { display:flex; align-items:center; gap:.6rem; min-height:32px; }
.last-purchase-summary-grid article > div + div { margin-top:.75rem; padding-top:.75rem; border-top:1px solid rgba(91,139,174,.2); }
.last-purchase-summary-grid svg { flex:0 0 25px; width:25px; height:25px; fill:none; stroke:#8cc9ff; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.last-purchase-summary-grid strong { color:#f7fbff; font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
.last-purchase-summary-grid > article:first-child strong { white-space:nowrap; }
.last-purchase-quantities strong { font-size:1.2rem; white-space:nowrap; }
.last-purchase-source { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1.45rem 1.1rem; border-top:1px solid rgba(255,145,38,.24); color:#8fa6bd; background:#091421; font-size:.72rem; }
.last-purchase-source small { color:#ffae57; white-space:nowrap; }
.last-purchase-loading,.last-purchase-empty { display:grid; min-height:300px; place-content:center; gap:.7rem; padding:2rem; color:var(--muted); text-align:center; }
.last-purchase-loading span { width:38px; height:38px; margin:auto; border:3px solid rgba(92,193,240,.2); border-top-color:#ff982f; border-radius:50%; animation:spin .8s linear infinite; }
.last-purchase-empty strong { color:var(--text); font-size:1.1rem; }
.purchase-history-dialog { width:min(1080px,calc(100vw - 2rem)); max-width:1080px; padding:0; overflow:hidden; border-color:rgba(255,148,43,.55); box-shadow:0 32px 100px #000d,0 0 0 1px rgba(255,152,52,.1); }
.purchase-history-head { padding:1.45rem 1.6rem 1.15rem; border-bottom:1px solid rgba(255,146,38,.3); background:radial-gradient(circle at 96% 0,rgba(255,139,31,.18),transparent 22rem),linear-gradient(145deg,#111d30,#0b1423); }
.purchase-history-head h2 { margin:.32rem 0 .4rem; font-size:1.55rem; }
.purchase-history-head p:last-child { margin:0; color:var(--muted); }
.purchase-history-head p:last-child strong { color:var(--text); }
.purchase-history-table-wrap { max-height:min(58vh,520px); overflow:auto; padding:1rem 1.25rem; background:linear-gradient(180deg,rgba(8,18,32,.84),rgba(10,20,34,.98)); }
.purchase-history-table { width:100%; border-spacing:0; border-collapse:separate; border:1px solid #24415d; border-radius:12px; overflow:hidden; background:#091522; }
.purchase-history-table th { position:sticky; top:0; z-index:1; padding:.78rem .85rem; color:#72d9ec; background:#102238; font-size:.65rem; font-weight:950; letter-spacing:.1em; text-align:left; white-space:nowrap; }
.purchase-history-table td { padding:.8rem .85rem; border-top:1px solid rgba(74,112,145,.28); color:#d9e5ef; font-size:.82rem; line-height:1.35; vertical-align:middle; }
.purchase-history-table tbody tr:hover td { background:rgba(54,114,158,.1); }
.purchase-history-table td:nth-child(1),.purchase-history-table td:nth-child(2),.purchase-history-table td:nth-child(4),.purchase-history-table td:nth-child(5) { white-space:nowrap; }
.purchase-history-repeat { color:#607a91; }
.purchase-term { display:inline-flex; padding:.3rem .55rem; border:1px solid #39556d; border-radius:999px; color:#b9c9d7; background:#0d1c2b; font-size:.72rem; font-weight:850; }
.purchase-term.is-known { border-color:rgba(65,211,148,.42); color:#67e3ae; background:rgba(34,159,109,.1); }
.purchase-history-foot { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1.35rem 1rem; border-top:1px solid rgba(255,145,38,.22); color:#91a7ba; background:#091421; font-size:.72rem; }
.purchase-history-foot small { color:#ffb05a; text-align:right; }
.purchase-history-empty { display:grid; min-height:260px; place-content:center; gap:.5rem; padding:2rem; color:var(--muted); text-align:center; }
.purchase-history-empty strong { color:var(--text); font-size:1.05rem; }
html[data-theme="light"] .last-purchase-button { color:#c75a05; border-color:#e89a54; background:linear-gradient(145deg,#fff7ef,#eaf3fb); }
html[data-theme="light"] .last-purchase-button.is-petro-customer { color:#087c52; border-color:#43b989; background:linear-gradient(145deg,#effcf6,#e7f5f1); box-shadow:0 0 0 4px rgba(31,156,105,.08),0 0 22px rgba(31,156,105,.22); }
html[data-theme="light"] .detail-hero-customer h2.is-petro-customer { color:#087c52 !important; text-shadow:none; }
html[data-theme="light"] .client-name-has-sale { color:#087c52 !important; text-shadow:none; }
html[data-theme="light"] .station-dossier-button { color:#14789d; border-color:#9dcfe0; background:linear-gradient(145deg,#effaff,#e8f2f8); }
html[data-theme="light"] .detail-hero-shortcuts :is(button,a)::after { color:#24364b; border-color:#e4ad7d; background:rgba(255,255,255,.98); }
html[data-theme="light"] .last-purchase-head { background:linear-gradient(145deg,#fff8f1,#eef5fb); }
html[data-theme="light"] .last-purchase-summary-grid { background:#f4f8fc; }
html[data-theme="light"] .last-purchase-summary-grid > article { border-color:#c7d8e5; background:#fff; }
html[data-theme="light"] .last-purchase-summary-grid strong { color:#172d42; }
html[data-theme="light"] .last-purchase-source { color:#5f7488; background:#edf4f9; }
html[data-theme="light"] .purchase-history-head { background:linear-gradient(145deg,#fff8f1,#eef5fb); }
html[data-theme="light"] .purchase-history-table-wrap { background:#f4f8fc; }
html[data-theme="light"] .purchase-history-table { border-color:#c7d8e5; background:#fff; }
html[data-theme="light"] .purchase-history-table th { color:#22718c; background:#e8f2f8; }
html[data-theme="light"] .purchase-history-table td { color:#253d52; border-top-color:#d5e2eb; }
html[data-theme="light"] .purchase-history-foot { color:#60778b; background:#edf4f9; }
@media (max-width:780px) { .last-purchase-summary-grid { grid-template-columns:1fr; }.last-purchase-summary-grid > article:first-child strong { white-space:normal; }.last-purchase-source { align-items:flex-start; flex-direction:column; }.detail-hero-customer { align-items:flex-start; }.last-purchase-button { flex-basis:54px; width:54px; height:54px; }.last-purchase-button svg { width:31px; height:31px; } }
@media (max-width:780px) { .purchase-history-foot { align-items:flex-start; flex-direction:column; }.purchase-history-foot small { text-align:left; }.purchase-history-table-wrap { padding:.75rem; }.purchase-history-table { min-width:820px; } }
@media (max-width:1050px) { .station-config-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .user-editor-tabs { width:100%; }.user-editor-tabs button { flex:1; }.station-config-grid { grid-template-columns:1fr; }.station-config-heading { flex-direction:column; } }
html[data-theme="light"] .seller-policy-icon { color:#0b749c; border-color:#bcd5e2; background:#eaf5fa; }
html[data-theme="light"] .seller-policy-days input:checked + span { color:#fff; border-color:#087aa5; background:#087aa5; }
html[data-theme="light"] .seller-policy-status { color:#53657b; border-color:#d0dbe6; background:#f4f7fa; }
html[data-theme="light"] .seller-policy-status.active { color:#086247; border-color:#9dcab9; background:#e9f6f1; }
html[data-theme="light"] .regulatory-map { border-color:#d4dee8; background:radial-gradient(circle at 35% 35%,rgba(16,132,175,.08),transparent 18rem),linear-gradient(145deg,#fff,#edf3f8); }
html[data-theme="light"] .powered-footer { border-color:#cbd8e4; background:linear-gradient(135deg,#e8eff6,#f8fafc); box-shadow:0 12px 30px rgba(31,52,78,.06); }
html[data-theme="light"] .user-editor-tabs button.active { color:#fff; border-color:#1684b1; background:#1684b1; }
html[data-theme="light"] .station-config-toolbar button,html[data-theme="light"] .station-config-move button { color:#40546c; border-color:#cbd9e5; background:#f4f7fa; }

/* 20260808-theme-clarity-hml-v2
   Acabamento unificado: tipografia contemporanea no escuro e tema claro de alto contraste. */
body {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-variation-settings: "wght" 440;
  letter-spacing: -.006em;
}

.organized-nav .nav-group-toggle,
.organized-nav .nav-item,
.topbar,
.panel,
.metric,
.table-panel,
.users-workspace,
.account-flyout {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.organized-nav .nav-item > span:last-child {
  font-size: .79rem;
  font-weight: 680;
  letter-spacing: .006em;
}

.organized-nav .nav-group-toggle > span:nth-child(2) {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .055em;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #eef3f8;
  --ink-soft: #e7edf4;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: #d5dee9;
  --text: #172337;
  --muted: #53657b;
  --green: #08785a;
  --green-deep: #06654c;
  --lime: #bde65a;
  --amber: #c75b0b;
  --red: #b92f49;
  --cyan: #086f9b;
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .content {
  color: var(--text);
  background:
    radial-gradient(circle at 92% 2%, rgba(35, 143, 194, .08), transparent 28rem),
    linear-gradient(145deg, #edf3f8 0%, #f7f9fc 58%, #eef2f7 100%);
}

html[data-theme="light"] .sidebar {
  border-color: #d5dee9;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,247,251,.98));
  box-shadow: 12px 0 36px rgba(31, 52, 78, .055);
}

html[data-theme="light"] .brand { color: #142239; }
html[data-theme="light"] .brand b { color: #d96513; }
html[data-theme="light"] .brand-mark.small { color: #fff; background: linear-gradient(145deg, #ff9847, #d95d0c); box-shadow: 0 8px 20px rgba(210,91,13,.22); }

html[data-theme="light"] .scope-chip {
  color: #465a72;
  border: 1px solid #d8e1eb;
  background: #edf3f8;
  box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="light"] .scope-chip i,
html[data-theme="light"] .source-health i {
  background: #0a8a65;
  box-shadow: 0 0 0 3px rgba(10,138,101,.12);
}

html[data-theme="light"] .organized-nav .nav-group-toggle {
  color: #51657d;
  border: 1px solid transparent;
  background: transparent;
}

html[data-theme="light"] .organized-nav .nav-section-icon {
  color: #4b6179;
  border-color: #d3dde8;
  background: #edf2f7;
}

html[data-theme="light"] .organized-nav .nav-group-toggle:hover,
html[data-theme="light"] .organized-nav .nav-group.has-active:not(.open) .nav-group-toggle {
  color: #18283e;
  border-color: #d9e2ec;
  background: #f4f7fa;
}

html[data-theme="light"] .organized-nav .nav-group.open .nav-group-toggle {
  color: #1c2d43;
  border-color: #d3dde8;
  background: linear-gradient(135deg, #edf3f8, #f8fafc);
  box-shadow: 0 7px 18px rgba(34,55,82,.07);
}

html[data-theme="light"] .organized-nav .nav-group.open .nav-section-icon {
  color: #c85308;
  border-color: #efbe98;
  background: #fff2e7;
}

html[data-theme="light"] .organized-nav .nav-item {
  color: #42566e;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .organized-nav .nav-item .nav-icon { color: #18799e; }
html[data-theme="light"] .organized-nav .nav-item:hover { color: #18283e; border-color: #d7e2ec; background: #f1f6fa; transform: translateX(2px); }
html[data-theme="light"] .organized-nav .nav-item.active {
  color: #17263c;
  border-color: #c8d9e7;
  background: linear-gradient(90deg, #e4eef7, #f4f8fb);
  box-shadow: inset 3px 0 0 #e26b17, 0 6px 16px rgba(29,74,108,.07);
}
html[data-theme="light"] .organized-nav .nav-item.active .nav-icon { color: #c85308; }

html[data-theme="light"] .source-health,
html[data-theme="light"] .source-health small { color: #607187; }
html[data-theme="light"] .source-health b { color: #203149; }

html[data-theme="light"] .topbar {
  border-color: rgba(203,215,227,.92);
  background: rgba(249,251,253,.88);
  box-shadow: 0 8px 28px rgba(31,52,78,.055);
}
html[data-theme="light"] .topbar h2 { color: #172337; }
html[data-theme="light"] .account-toolbar-button { color: #147ba8; filter: none; }
html[data-theme="light"] .account-toolbar-button:hover,
html[data-theme="light"] .account-toolbar-button[aria-expanded="true"] { color: #c75409; filter: none; background: #edf3f8; border-radius: 12px; }

html[data-theme="light"] .page { color: var(--text); }
html[data-theme="light"] .section-head h1,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .panel-heading h3 { color: #172337; }
html[data-theme="light"] .eyebrow { color: #08769c; }
html[data-theme="light"] .section-head > div > p:last-child { color: #5a6c81; }

html[data-theme="light"] :is(.panel,.metric,.table-panel,.policy-card,.users-workspace,.users-summary article,.enrichment-control-panel,.cof-anp-automation,.cof-import-panel,.seller-access-policy,.audit-category-strip,.sync-created-card,.sync-updated-card) {
  color: #172337;
  border-color: #d5dee9;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(31,52,78,.075);
}

html[data-theme="light"] .metric { background: linear-gradient(145deg, #fff, #f7f9fc); }
html[data-theme="light"] .metric small { color: #5b6c81; }
html[data-theme="light"] .metric strong { color: #172337; }
html[data-theme="light"] .metric em { color: #08785a; font-weight: 700; }

html[data-theme="light"] :is(.users-toolbar,.filter-bar) {
  border-color: #d5dee9;
  background: #edf3f8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

html[data-theme="light"] :is(input,select,textarea,.users-search,.seller-policy-ips textarea) {
  color: #1c2c42;
  border-color: #c9d5e2;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(30,51,77,.035);
}
html[data-theme="light"] :is(input,textarea)::placeholder { color: #718198; opacity: 1; }
html[data-theme="light"] :is(input,select,textarea):focus,
html[data-theme="light"] .users-search:focus-within { border-color: #1584b1; box-shadow: 0 0 0 3px rgba(21,132,177,.14); }
html[data-theme="light"] .search-field { color: #0b769e; border-color: #c9d5e2; background: #fff; }

html[data-theme="light"] thead,
html[data-theme="light"] thead tr,
html[data-theme="light"] thead th,
html[data-theme="light"] .users-table th {
  color: #40546c !important;
  border-color: #d4dee8;
  background: #eaf0f6 !important;
}
html[data-theme="light"] tbody tr { background: #fff; }
html[data-theme="light"] tbody tr:nth-child(even) { background: #f8fafc; }
html[data-theme="light"] tbody tr:hover { background: #edf5fa; }
html[data-theme="light"] tbody td { color: #465970 !important; border-color: #e0e7ef; }
html[data-theme="light"] tbody td :is(b,strong),
html[data-theme="light"] :is(.user-identity b,.region-cell,.rank-item b,.mini-row b) { color: #172337 !important; }
html[data-theme="light"] tbody td small { color: #667990; }

html[data-theme="light"] .pagination { color: #596b80; border-color: #d9e2eb; background: #f4f7fa; }
html[data-theme="light"] .pagination button { color: #24364d; border-color: #cbd7e3; background: #fff; }

html[data-theme="light"] .primary { color: #fff; border-color: #c65209; background: linear-gradient(135deg, #f58a35, #d65d0c); box-shadow: 0 9px 22px rgba(207,86,9,.2); }
html[data-theme="light"] .primary:hover { color: #fff; border-color: #a94406; background: linear-gradient(135deg, #ff9b4e, #c95308); }
html[data-theme="light"] :is(.secondary,.ghost-button,.row-action,.user-edit-toggle,.password-reset-open) { color: #126f98; border-color: #b9d1df; background: #f6fafc; box-shadow: none; }
html[data-theme="light"] :is(.secondary,.ghost-button,.row-action,.user-edit-toggle,.password-reset-open):hover { color: #a94406; border-color: #e1a577; background: #fff5ed; }

html[data-theme="light"] .account-flyout,
html[data-theme="light"] dialog,
html[data-theme="light"] .detail-dialog,
html[data-theme="light"] .form-dialog {
  color: #172337;
  border-color: #cdd8e4;
  background: linear-gradient(155deg, #fff, #f4f7fa);
  box-shadow: 0 28px 80px rgba(25,44,69,.2);
}
html[data-theme="light"] .account-flyout::before { border-color: #cdd8e4; background: #f8fafc; }
html[data-theme="light"] .account-identity-card,
html[data-theme="light"] .account-profile-panel .user-box,
html[data-theme="light"] .display-control { border-color: #d5dee9; background: #f7f9fc; }

html[data-theme="light"] :is(.user-editor-row td,.user-editor,.detail-item,.sync-created-card,.sync-updated-card,.sync-field-change,.regulatory-status-card,.regulatory-rank-item,.regulatory-detail-card,.regulatory-detail-section,.seller-policy-toggle,.seller-policy-days span) {
  color: #24364d;
  border-color: #d4dee8;
  background: #f7f9fc;
}

html[data-theme="light"] .user-editor { box-shadow: inset 3px 0 0 #1684b1; }
html[data-theme="light"] .seller-policy-icon { color: #0b749c; border-color: #bcd5e2; background: #eaf5fa; }
html[data-theme="light"] .seller-policy-status { color: #53657b; border-color: #d0dbe6; background: #f4f7fa; }
html[data-theme="light"] .seller-policy-status.active { color: #086247; border-color: #9dcab9; background: #e9f6f1; }
html[data-theme="light"] .seller-policy-days input:checked + span { color: #fff; border-color: #087aa5; background: #087aa5; }

html[data-theme="light"] .regulatory-map { border-color: #d4dee8; background: radial-gradient(circle at 35% 35%,rgba(16,132,175,.08),transparent 18rem),linear-gradient(145deg,#fff,#edf3f8); }
html[data-theme="light"] .regulatory-status-card strong,
html[data-theme="light"] .regulatory-rank-item b,
html[data-theme="light"] .regulatory-detail-card strong,
html[data-theme="light"] .regulatory-detail-section h3 { color: #172337; }

html[data-theme="light"] .badge { color: #086247; background: #e8f5ef; }
html[data-theme="light"] .badge.attention { color: #9a4307; background: #fff1e5; }
html[data-theme="light"] .role-pill { color: #344960; border-color: #c9d5e2; background: #edf3f8; }
html[data-theme="light"] .role-pill.role-admin { color: #914006; border-color: #edbc96; background: #fff1e5; }
html[data-theme="light"] .role-pill.role-manager { color: #075d7b; border-color: #aad0df; background: #eaf6fa; }
html[data-theme="light"] .status-pill.active { color: #086247; background: #e8f5ef; }

html[data-theme="light"] .powered-footer {
  border-color: #cbd8e4;
  background: linear-gradient(135deg, #e8eff6, #f8fafc);
  box-shadow: 0 12px 30px rgba(31,52,78,.06);
}

@media (prefers-reduced-motion: reduce) {
  .organized-nav .nav-group-toggle,
  .organized-nav .nav-item,
  .panel,
  .metric { transition: none; }
}

.summary-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

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

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

/* Identidade, temas e exibicao em monitor */
.brand {
  min-height: 104px;
  padding: 1rem 1.25rem;
  justify-content: center;
}

.brand img {
  display: block;
  width: min(190px, 100%);
  height: 74px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .24));
}

.topbar {
  min-height: 86px;
  gap: 1.5rem;
}

.topbar-actions,
.display-control {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: .75rem;
}

.display-control {
  gap: .65rem;
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid #2d405d;
  border-radius: 12px;
  background: rgba(10, 22, 39, .72);
  color: #d7e3f4;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.display-control:hover {
  transform: translateY(-1px);
  border-color: #f28a2e;
  background: rgba(242, 138, 46, .1);
}

.control-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.theme-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px -3px 0 0 #f28a2e;
}

.monitor-icon {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.monitor-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -5px;
  height: 2px;
  background: currentColor;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  min-height: 330px;
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 48%, rgba(242, 138, 46, .2), transparent 18rem),
    linear-gradient(118deg, #0c1728 0%, #111823 54%, #20170f 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: 1.5%;
  top: 50%;
  translate: 0 -50%;
  border: 1px solid rgba(242, 138, 46, .22);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(242, 138, 46, .025),
    0 0 0 104px rgba(242, 138, 46, .018);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: clamp(2rem, 6vw, 7rem);
  top: 50%;
  width: min(300px, 25vw);
  height: 150px;
  translate: 0 -55%;
  background: url("/petro-express-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, .38));
  pointer-events: none;
}

.hero-panel > div {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 850px;
}

.hero-panel h1 {
  max-width: 850px;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-panel > div > p:last-child {
  max-width: 680px;
  margin-top: 1.7rem;
  line-height: 1.75;
}

.hero-panel #hero-sync {
  position: absolute;
  z-index: 3;
  right: clamp(2rem, 6vw, 7rem);
  bottom: 2.4rem;
  min-width: 230px;
}

html[data-theme="light"] {
  color-scheme: light;
  --muted: #5e6b7b;
}

html[data-theme="light"] body,
html[data-theme="light"] .content {
  background: #f5f1ea;
  color: #172233;
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #fffdf9, #eee7dc);
  border-color: #d8cfc1;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .panel,
html[data-theme="light"] .metric,
html[data-theme="light"] .table-panel,
html[data-theme="light"] .filter-bar,
html[data-theme="light"] .policy-grid > *,
html[data-theme="light"] .users-workspace,
html[data-theme="light"] .users-summary article {
  background: rgba(255, 253, 249, .96);
  border-color: #ddd3c5;
  color: #172233;
  box-shadow: 0 12px 34px rgba(59, 45, 27, .07);
}

html[data-theme="light"] .users-toolbar,
html[data-theme="light"] .user-editor-row td,
html[data-theme="light"] .user-editor {
  background: #fffaf3;
  border-color: #ddd3c5;
}

html[data-theme="light"] .users-summary article {
  background: linear-gradient(145deg, #fffdf9, #f5eee4);
}

html[data-theme="light"] .users-table th {
  background: #eee6db;
  color: #6e655b;
}

html[data-theme="light"] .user-identity b,
html[data-theme="light"] .region-cell,
html[data-theme="light"] .users-summary strong,
html[data-theme="light"] .user-editor-heading strong {
  color: #172233;
}

html[data-theme="light"] .display-control,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] button:not(.primary) {
  background-color: #fffaf3;
  border-color: #d6cab9;
  color: #263447;
}

html[data-theme="light"] .nav-item {
  color: #48576b;
}

html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .nav-item.active {
  color: #161f2d;
  background: rgba(242, 138, 46, .12);
}

html[data-theme="light"] .hero-panel {
  color: #172233;
  border-color: #d7cab7;
  background:
    radial-gradient(circle at 84% 48%, rgba(242, 138, 46, .2), transparent 18rem),
    linear-gradient(118deg, #fffdfa 0%, #f4eee5 54%, #ecdac8 100%);
  box-shadow: 0 18px 55px rgba(83, 55, 27, .08);
}

html[data-theme="light"] .hero-panel h1 {
  color: #172233;
}

html[data-theme="light"] .hero-panel h1 span {
  color: #d96713;
}

html[data-theme="light"] table,
html[data-theme="light"] tbody,
html[data-theme="light"] tr,
html[data-theme="light"] td,
html[data-theme="light"] th {
  border-color: #ded5c8;
  color: #28374a;
}

body.monitor-mode {
  overflow-x: hidden;
}

body.monitor-mode .app-shell {
  display: block;
}

body.monitor-mode .sidebar {
  display: none;
}

body.monitor-mode .sidebar-toggle {
  display: none;
}

.monitor-exit-button {
  display: none;
}

body.monitor-mode .monitor-exit-button {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.8rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(34, 199, 232, .55);
  border-radius: .85rem;
  color: #e8fbff;
  background: rgba(5, 18, 31, .94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
  cursor: pointer;
}

body.monitor-mode .monitor-exit-button:hover {
  border-color: #22c7e8;
  color: #22c7e8;
}

body.monitor-mode .content {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.monitor-mode .topbar {
  min-height: 62px;
  padding-top: .6rem;
  padding-bottom: .6rem;
}

body.monitor-mode .topbar-copy,
body.monitor-mode .user-box {
  display: none;
}

body.monitor-mode .topbar-actions {
  width: 100%;
  justify-content: flex-end;
}

body.monitor-mode .page.active {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 62px);
  margin: 0;
  padding: clamp(1rem, 2vw, 2rem);
}

body.monitor-mode .table-panel,
body.monitor-mode .table-shell {
  max-width: none;
}

body.monitor-mode .hero-panel {
  min-height: 250px;
}

body.monitor-mode .summary-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .topbar-copy {
    display: none;
  }

  .topbar {
    justify-content: flex-end;
  }

  .control-label {
    display: none;
  }

  .display-control {
    width: 42px;
    justify-content: center;
    padding: .65rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 430px;
  }

  .hero-panel::after {
    right: auto;
    left: clamp(2rem, 4vw, 3.5rem);
    top: auto;
    bottom: 3rem;
    width: 210px;
    height: 100px;
    translate: 0;
  }

  .hero-panel #hero-sync {
    right: clamp(2rem, 4vw, 3.5rem);
    bottom: 3.7rem;
  }
}

@media (max-width: 620px) {
  .user-box > div {
    display: none;
  }

  .hero-panel {
    min-height: 520px;
  }

  .hero-panel h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-panel::after {
    bottom: 7rem;
  }

  .hero-panel #hero-sync {
    left: clamp(2rem, 4vw, 3.5rem);
    right: auto;
    width: calc(100% - clamp(4rem, 8vw, 7rem));
    bottom: 2rem;
  }
}

/* Leitura do grafico de vinculo de bandeira */
#flag-chart strong,
#flag-chart .donut-center strong,
#flag-chart .donut-value {
  color: #f58220 !important;
  text-shadow: 0 4px 18px rgba(245, 130, 32, .22);
}

#flag-chart strong {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -.04em;
}

#flag-chart small,
#flag-chart .donut-center span {
  color: #aebbd0;
  font-weight: 700;
}

#flag-chart .legend,
#flag-chart .donut-legend {
  color: #aebbd0;
  font-weight: 700;
}

html[data-theme="light"] #flag-chart strong,
html[data-theme="light"] #flag-chart .donut-center strong,
html[data-theme="light"] #flag-chart .donut-value {
  color: #df690f !important;
  text-shadow: 0 4px 16px rgba(223, 105, 15, .18);
}

html[data-theme="light"] #flag-chart small,
html[data-theme="light"] #flag-chart .donut-center span,
html[data-theme="light"] #flag-chart .legend,
html[data-theme="light"] #flag-chart .donut-legend {
  color: #536174;
}

/* Acabamento completo do tema claro */
html[data-theme="light"] .filter-bar {
  background: #eee5d9;
  border: 1px solid #ddd0bf;
  box-shadow: 0 10px 28px rgba(76, 56, 33, .06);
}

html[data-theme="light"] .search-field {
  background: #fffaf3;
  border: 1px solid #d6c7b4;
  color: #df690f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

html[data-theme="light"] .search-field:focus-within {
  border-color: #e97821;
  box-shadow: 0 0 0 3px rgba(233, 120, 33, .13);
}

html[data-theme="light"] .search-field input {
  background: transparent !important;
  border: 0 !important;
  color: #253247;
  box-shadow: none !important;
}

html[data-theme="light"] .search-field input::placeholder {
  color: #7b8490;
  opacity: 1;
}

html[data-theme="light"] .filter-bar select {
  background-color: #fffaf3;
  border-color: #d6c7b4;
  color: #344157;
}

html[data-theme="light"] .table-panel {
  overflow: hidden;
  background: #fffdf9;
}

html[data-theme="light"] .table-scroll {
  background: #fffdf9;
}

html[data-theme="light"] thead,
html[data-theme="light"] thead tr,
html[data-theme="light"] thead th {
  background: #eee5d9 !important;
}

html[data-theme="light"] thead th {
  color: #6e5945 !important;
  border-bottom: 1px solid #d8c9b7;
  font-weight: 900;
  letter-spacing: .08em;
}

html[data-theme="light"] tbody tr,
html[data-theme="light"] .mini-table > div,
html[data-theme="light"] .rank-list > div {
  background: #fffdf9;
}

html[data-theme="light"] tbody tr:nth-child(even) {
  background: #faf5ed;
}

html[data-theme="light"] tbody tr:hover {
  background: #fff0df;
}

html[data-theme="light"] tbody td {
  color: #344157 !important;
  border-bottom-color: #e7ded2;
}

html[data-theme="light"] tbody td strong,
html[data-theme="light"] .mini-table strong,
html[data-theme="light"] .rank-list strong {
  color: #172233;
}

html[data-theme="light"] .pagination {
  background: #f8f1e8;
  border-top-color: #ded1c1;
  color: #647083;
}

html[data-theme="light"] .pagination button {
  background: #fffaf3;
  border-color: #d6c7b4;
  color: #354359;
}

html[data-theme="light"] dialog,
html[data-theme="light"] .detail-dialog,
html[data-theme="light"] .form-dialog {
  background: #fffdf9;
  border-color: #d8c9b7;
  color: #172233;
  box-shadow: 0 30px 90px rgba(59, 43, 25, .22);
}

html[data-theme="light"] dialog::backdrop {
  background: rgba(39, 31, 23, .42);
  backdrop-filter: blur(5px);
}

html[data-theme="light"] .detail-grid > div,
html[data-theme="light"] .enrichment-section,
html[data-theme="light"] .partners,
html[data-theme="light"] .enrichment-empty {
  background: #faf5ed;
  border-color: #ded1c1;
  color: #344157;
}

html[data-theme="light"] .toast {
  background: #fffaf3;
  border-color: #d9c9b5;
  color: #263449;
  box-shadow: 0 16px 45px rgba(56, 40, 23, .2);
}

/* Contraste da marca original no tema escuro */
html:not([data-theme="light"]) .brand img {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, .92))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, .92))
    drop-shadow(0 1px 0 rgba(255, 255, 255, .92))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, .92))
    drop-shadow(0 12px 24px rgba(0, 0, 0, .38));
}

html:not([data-theme="light"]) .hero-panel::after {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
  box-shadow: none;
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, .94))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, .94))
    drop-shadow(0 1px 0 rgba(255, 255, 255, .94))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, .94))
    drop-shadow(0 22px 35px rgba(0, 0, 0, .42));
}

/* Contraste dos dados principais da lista no tema claro */
html[data-theme="light"] #stations-body td strong,
html[data-theme="light"] #stations-body td b,
html[data-theme="light"] #stations-body td a,
html[data-theme="light"] #stations-body .station-name,
html[data-theme="light"] #stations-body .station-main,
html[data-theme="light"] #stations-body .station-city,
html[data-theme="light"] #stations-body .product-count {
  color: #172233 !important;
  text-shadow: none !important;
}

html[data-theme="light"] #stations-body td:first-child strong,
html[data-theme="light"] #stations-body td:first-child b,
html[data-theme="light"] #stations-body td:first-child a {
  color: #c95e10 !important;
}

html[data-theme="light"] #stations-body small,
html[data-theme="light"] #stations-body .muted {
  color: #557885 !important;
}

/* Cabecalho e navegacao do detalhe no tema claro */
html[data-theme="light"] #station-detail .detail-hero h1,
html[data-theme="light"] #station-detail .detail-hero h2,
html[data-theme="light"] #station-detail .detail-header h1,
html[data-theme="light"] #station-detail .detail-header h2,
html[data-theme="light"] #station-detail .station-hero h1,
html[data-theme="light"] #station-detail .station-hero h2 {
  color: #ff942f !important;
  text-shadow: 0 5px 22px rgba(0, 0, 0, .28);
}

html[data-theme="light"] #stations-body td:first-child .client-name-has-sale,
html[data-theme="light"] #cof-body .client-name-has-sale,
html[data-theme="light"] #station-detail .detail-hero h2.is-petro-customer {
  color: #087c52 !important;
  text-shadow: none !important;
}

html[data-theme="light"] #station-detail .detail-hero p,
html[data-theme="light"] #station-detail .detail-hero small,
html[data-theme="light"] #station-detail .detail-header p,
html[data-theme="light"] #station-detail .detail-header small,
html[data-theme="light"] #station-detail .station-hero p,
html[data-theme="light"] #station-detail .station-hero small {
  color: #c4d2e4 !important;
}

html[data-theme="light"] #station-detail .detail-hero .eyebrow,
html[data-theme="light"] #station-detail .detail-header .eyebrow,
html[data-theme="light"] #station-detail .station-hero .eyebrow {
  color: #66d9f2 !important;
}

html[data-theme="light"] #station-detail .detail-tabs,
html[data-theme="light"] #station-detail .tab-list {
  background: #eee5d9;
  border-color: #d8c9b7;
}

html[data-theme="light"] #station-detail .detail-tabs button,
html[data-theme="light"] #station-detail .tab-list button {
  color: #49576a;
}

html[data-theme="light"] #station-detail .detail-tabs button.active,
html[data-theme="light"] #station-detail .tab-list button.active {
  color: #b94f08;
  background: #fffaf3;
  border-color: #e8a266;
}

html[data-theme="light"] #station-detail > header h1,
html[data-theme="light"] #station-detail > header h2,
html[data-theme="light"] #station-detail > div:first-child > h1,
html[data-theme="light"] #station-detail > div:first-child > h2 {
  color: #ff942f !important;
}

html[data-theme="light"] #station-detail > header p,
html[data-theme="light"] #station-detail > div:first-child > p {
  color: #c4d2e4 !important;
}

/* Cartoes do enriquecimento cadastral no tema claro */
html[data-theme="light"] .enrichment-grid > *,
html[data-theme="light"] .enrichment-card,
html[data-theme="light"] .enrichment-item {
  background: linear-gradient(145deg, #fffdf9, #f7efe4) !important;
  border: 1px solid #dfcfbc !important;
  color: #263449 !important;
  box-shadow: 0 8px 22px rgba(70, 49, 26, .06);
}

html[data-theme="light"] .enrichment-grid > *:hover,
html[data-theme="light"] .enrichment-card:hover,
html[data-theme="light"] .enrichment-item:hover {
  border-color: #e99550 !important;
  box-shadow: 0 12px 28px rgba(190, 91, 18, .1);
}

html[data-theme="light"] .enrichment-grid small,
html[data-theme="light"] .enrichment-grid label,
html[data-theme="light"] .enrichment-card small,
html[data-theme="light"] .enrichment-item small {
  color: #718095 !important;
}

html[data-theme="light"] .enrichment-grid strong,
html[data-theme="light"] .enrichment-grid b,
html[data-theme="light"] .enrichment-card strong,
html[data-theme="light"] .enrichment-item strong {
  color: #243248 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .enrichment-grid > *:first-child strong,
html[data-theme="light"] .enrichment-grid > *:first-child b {
  color: #bf570d !important;
}

html[data-theme="light"] .enrichment-meta,
html[data-theme="light"] .enrichment-source {
  background: #fff3e5;
  border-color: #f0c89f;
  color: #56657a;
}

/* Datas do historico de sincronizacao no tema claro */
html[data-theme="light"] #sync-body td:first-child,
html[data-theme="light"] #sync-body td:first-child > :first-child,
html[data-theme="light"] #sync-body td:first-child strong,
html[data-theme="light"] #sync-body td:first-child b,
html[data-theme="light"] #sync-body td:first-child time {
  color: #263449 !important;
  text-shadow: none !important;
}

html[data-theme="light"] #sync-body td:first-child small,
html[data-theme="light"] #sync-body td:first-child .muted {
  color: #5d7b86 !important;
}

/* Controle da sincronizacao de enriquecimento */
.enrichment-control-panel {
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid #263d5d;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(242, 138, 46, .09), transparent 22rem),
    #0c1729;
}

.enrichment-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid #203451;
}

.enrichment-control-head h3,
.enrichment-control-head p {
  margin: 0;
}

.enrichment-control-head h3 {
  margin-top: .25rem;
}

.enrichment-control-head > div > p:last-child {
  margin-top: .45rem;
  color: var(--muted);
}

.enrichment-control-content {
  padding: 1.4rem 1.5rem 1.5rem;
}

.enrichment-control-loading,
.enrichment-control-error {
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.enrichment-control-error {
  color: #ff9b72;
}

.enrichment-control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
}

.enrichment-control-metric {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #233a59;
  border-radius: 13px;
  background: rgba(5, 13, 26, .62);
}

.enrichment-control-metric small {
  display: block;
  margin-bottom: .4rem;
  color: #7f93b1;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.enrichment-control-metric strong {
  display: block;
  overflow: hidden;
  color: #f6f8fc;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enrichment-control-metric em {
  display: block;
  margin-top: .35rem;
  color: #5fd8ee;
  font-size: .7rem;
  font-style: normal;
}

.enrichment-progress {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #233a59;
  border-radius: 13px;
  background: rgba(5, 13, 26, .46);
}

.enrichment-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
  color: #a9b7cc;
  font-size: .76rem;
}

.enrichment-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #1a2a42;
}

.enrichment-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #df690f, #ff9a3d);
  box-shadow: 0 0 18px rgba(242, 138, 46, .34);
}

.enrichment-status-running {
  color: #56d9ee !important;
}

.enrichment-status-success {
  color: #54d99b !important;
}

.enrichment-status-failed,
.enrichment-status-blocked {
  color: #ff806f !important;
}

html[data-theme="light"] .enrichment-control-panel {
  border-color: #dbcbb8;
  background:
    radial-gradient(circle at 90% 0, rgba(242, 138, 46, .12), transparent 22rem),
    #fffdf9;
  box-shadow: 0 12px 32px rgba(67, 47, 25, .07);
}

html[data-theme="light"] .enrichment-control-head {
  border-color: #e2d7c9;
}

html[data-theme="light"] .enrichment-control-metric,
html[data-theme="light"] .enrichment-progress {
  border-color: #dfd2c2;
  background: #faf5ed;
}

html[data-theme="light"] .enrichment-control-metric small,
html[data-theme="light"] .enrichment-progress-row {
  color: #69778a;
}

html[data-theme="light"] .enrichment-control-metric strong {
  color: #1d2a3e;
}

html[data-theme="light"] .enrichment-control-metric em {
  color: #b6510a;
}

html[data-theme="light"] .enrichment-progress-track {
  background: #e7ded2;
}

@media (max-width: 1100px) {
  .enrichment-control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .enrichment-control-head {
    align-items: stretch;
    flex-direction: column;
  }

  .enrichment-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enrichment-control-head button {
    width: 100%;
  }
}

/* Destaques PetroExpress em laranja */
:root {
  --green: #ff8a1f;
  --green-deep: #e65f00;
  --lime: #ffb347;
  --cyan: #ffc16b;
}

.login-view {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 138, 31, .13), transparent 28rem),
    linear-gradient(145deg, #030712, #07111f 55%, #050b16);
}

.brand-mark,
.user-box > span {
  background: linear-gradient(145deg, #ffd199, #ff8a1f);
  box-shadow: 0 14px 40px rgba(255, 138, 31, .22);
}

.scope-chip {
  background: rgba(255, 138, 31, .08);
  border-color: rgba(255, 179, 71, .16);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 138, 31, .19), rgba(255, 138, 31, .04));
  border-color: rgba(255, 179, 71, .2);
  box-shadow: inset 3px 0 #ff8a1f;
}

.nav-icon,
.hero-panel h1 span {
  color: #ff9b3d !important;
}

.hero-panel {
  background:
    linear-gradient(100deg, rgba(9, 20, 38, .98), rgba(40, 25, 12, .9)),
    radial-gradient(circle at 82% 40%, rgba(255, 138, 31, .17), transparent 24rem);
}

.hero-panel::before {
  border-color: rgba(255, 179, 71, .15);
  box-shadow: 0 0 0 35px rgba(255, 138, 31, .025);
}

.primary {
  background: linear-gradient(135deg, #ffbd66, #ff8a1f);
  box-shadow: 0 10px 28px rgba(255, 111, 0, .18);
}

.primary:hover {
  background: linear-gradient(135deg, #ffd199, #ff9b3d);
}

.secondary {
  color: #ffbd66;
  border-color: rgba(255, 138, 31, .34);
  background: rgba(255, 138, 31, .1);
}

.bar-track i {
  background: linear-gradient(90deg, #e65f00, #ff9b3d);
}

.donut {
  background: conic-gradient(#ff8a1f calc(var(--value) * 1%), #ffd199 0);
}

.detail-hero {
  background: linear-gradient(130deg, #3a210e, #07111f);
}

.enrichment-section {
  margin: 0 2rem 2rem;
  padding: 1.5rem;
  border: 1px solid #3b4150;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(27, 24, 24, .96), rgba(7, 17, 31, .96));
}

.enrichment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.enrichment-heading h3 {
  margin: .2rem 0;
}

.enrichment-heading p:last-child {
  color: var(--muted);
  margin: .35rem 0 0;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 138, 31, .2);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 138, 31, .05);
  font-size: .76rem;
}

.source-strip a,
.validation-links a {
  color: #ffad5c;
}

.confidence {
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 800;
}

.confidence.medium {
  color: #ffc16b;
  background: rgba(255, 138, 31, .13);
}

.enrichment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.enrichment-field {
  min-height: 90px;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 11, 22, .75);
}

.enrichment-field small {
  display: block;
  color: #8298b6;
  margin-bottom: .45rem;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.enrichment-field b {
  display: block;
  line-height: 1.35;
}

.enrichment-field span {
  display: block;
  color: #657b97;
  margin-top: .55rem;
  font-size: .65rem;
}

.partners {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.partners h4 {
  margin: 0 0 .75rem;
}

.partners > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-top: 1px solid rgba(32, 54, 84, .65);
}

.partners span {
  color: var(--muted);
}

.enrichment-empty {
  padding: 1.5rem;
  border: 1px dashed #3d4d62;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.validation-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 820px) {
  .enrichment-section {
    margin: 0 1rem 1rem;
    padding: 1rem;
  }

  .enrichment-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .enrichment-grid {
    grid-template-columns: 1fr;
  }

  .partners > div {
    flex-direction: column;
    gap: .3rem;
  }
}

/* Login direto, sem painel promocional */
.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(14, 165, 233, .12), transparent 28rem),
    linear-gradient(145deg, #030712, #07111f 55%, #050b16);
}

.login-art {
  display: none;
}

.login-card {
  width: min(560px, 100%);
  min-height: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid #203654;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(13, 26, 47, .98), rgba(7, 17, 31, .98));
  box-shadow: 0 35px 100px rgba(0, 0, 0, .42);
}

.login-card::before {
  top: 1.5rem;
  right: 1.7rem;
}

@media (max-width: 820px) {
  .login-view {
    min-height: 100vh;
    padding: 1rem;
  }

  .login-card {
    min-height: auto;
    border: 1px solid #203654;
    padding: 2rem 1.25rem;
  }

  .login-card::before {
    display: none;
  }
}

/* Painel regulatorio ANP Com Vc */
.regulatory-status { min-height: 48px; margin-bottom: 1rem; }
.regulatory-status-card { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; border:1px solid #263c59; border-radius:12px; background:#0c1728; color:#93a5bf; font-size:.76rem; }
.regulatory-status-card strong { color:#f6f8fc; }
.regulatory-filters { grid-template-columns:150px minmax(240px,.7fr) minmax(320px,1.3fr); }
.regulatory-summary { margin:1rem 0; }
.regulatory-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,.7fr); gap:1rem; margin:1rem 0; }
.regulatory-map-panel,.regulatory-ranking-panel { min-height:500px; }
.regulatory-map { position:relative; min-height:400px; overflow:hidden; border:1px solid #203551; border-radius:14px; background:radial-gradient(circle at 35% 35%,rgba(33,205,225,.07),transparent 18rem),linear-gradient(145deg,#071120,#0b1728); }
.regulatory-map svg { display:block; width:100%; min-height:400px; }
.regulatory-map-grid { stroke:rgba(103,133,169,.12); stroke-width:1; }
.regulatory-map-point { cursor:pointer; transition:r .2s ease,opacity .2s ease; }
.regulatory-map-point:hover { r:7; }
.regulatory-map-point.ok { fill:#3bd49a; }
.regulatory-map-point.warning { fill:#ffbf4a; }
.regulatory-map-point.critical { fill:#ff685e; }
.regulatory-map-legend { display:flex; flex-wrap:wrap; gap:.75rem; color:#8295b1; font-size:.7rem; }
.regulatory-map-legend span::before { content:""; display:inline-block; width:7px; height:7px; margin-right:.35rem; border-radius:50%; }
.regulatory-map-legend .ok::before { background:#3bd49a; }
.regulatory-map-legend .warning::before { background:#ffbf4a; }
.regulatory-map-legend .critical::before { background:#ff685e; }
.regulatory-ranking { display:grid; gap:.65rem; }
.regulatory-rank-item { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:.7rem; padding:.8rem; border:1px solid #223855; border-radius:11px; background:rgba(4,12,24,.52); cursor:pointer; }
.regulatory-rank-item>span { display:grid; width:34px; height:34px; place-items:center; border-radius:9px; background:rgba(255,104,94,.12); color:#ff8178; font-weight:900; }
.regulatory-rank-item b,.regulatory-rank-item small { display:block; }
.regulatory-rank-item small { margin-top:.25rem; color:#8092ad; }
.regulatory-risk { display:inline-flex; align-items:center; padding:.35rem .55rem; border-radius:99px; font-size:.68rem; font-weight:900; }
.regulatory-risk.ok { background:rgba(59,212,154,.12); color:#4bdd9f; }
.regulatory-risk.warning { background:rgba(255,191,74,.12); color:#ffbf4a; }
.regulatory-risk.critical { background:rgba(255,104,94,.12); color:#ff8178; }
.regulatory-detail-hero { padding:2rem; background:radial-gradient(circle at 90% 20%,rgba(242,138,46,.18),transparent 18rem),linear-gradient(135deg,#071120,#18140f); }
.regulatory-detail-hero h2 { margin:.35rem 0; color:#fff; }
.regulatory-detail-hero p { margin:0; color:#91a4c0; }
.regulatory-detail-body { padding:1.4rem; }
.regulatory-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.regulatory-detail-card { padding:1rem; border:1px solid #253a57; border-radius:12px; background:#0c1728; }
.regulatory-detail-card small,.regulatory-detail-card strong { display:block; }
.regulatory-detail-card small { margin-bottom:.4rem; color:#7f93b0; font-size:.67rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.regulatory-detail-card strong { color:#f5f7fb; }
.regulatory-detail-section { margin-top:1rem; padding:1.2rem; border:1px solid #253a57; border-radius:13px; background:rgba(8,18,33,.72); }
.regulatory-detail-section h3 { margin-top:0; }
.regulatory-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.65rem; }
html[data-theme="light"] .regulatory-status-card,html[data-theme="light"] .regulatory-map,html[data-theme="light"] .regulatory-rank-item,html[data-theme="light"] .regulatory-detail-card,html[data-theme="light"] .regulatory-detail-section { border-color:#ddcfbd; background:#fffaf3; color:#516075; }
html[data-theme="light"] .regulatory-status-card strong,html[data-theme="light"] .regulatory-rank-item b,html[data-theme="light"] .regulatory-detail-card strong,html[data-theme="light"] .regulatory-detail-section h3 { color:#1d2a3e; }
html[data-theme="light"] .regulatory-map { background:radial-gradient(circle at 35% 35%,rgba(27,168,190,.08),transparent 18rem),linear-gradient(145deg,#fffdf9,#eee6da); }
html[data-theme="light"] .regulatory-map-grid { stroke:rgba(67,83,102,.13); }
@media (max-width:1100px) { .regulatory-layout{grid-template-columns:1fr}.regulatory-detail-grid,.regulatory-metrics{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:700px) { .regulatory-filters{grid-template-columns:1fr}.regulatory-detail-grid,.regulatory-metrics{grid-template-columns:repeat(2,minmax(0,1fr))} }

.regulatory-state-shape {
  fill:rgba(20,93,135,.18);
  stroke:#38bde2;
  stroke-width:1.8;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .2));
}

.regulatory-state-label {
  fill:#9bdcf0;
  stroke:#071120;
  stroke-width:3px;
  paint-order:stroke fill;
  font-size:13px;
  font-weight:950;
  letter-spacing:.08em;
  pointer-events:none;
  text-anchor:middle;
}

.regulatory-map-empty {
  fill:#758ba7;
  font-size:11px;
  font-weight:700;
  text-anchor:middle;
}

.regulatory-map-point {
  stroke:#081322;
  stroke-width:1.3;
  paint-order:stroke fill;
  filter:drop-shadow(0 0 4px currentColor);
}

[data-theme="light"] .regulatory-state-shape {
  fill:rgba(36,151,190,.1);
  stroke:#168cb5;
}

[data-theme="light"] .regulatory-state-label {fill:#126c8d;stroke:#f8fbfd}

.app-shell {
  transition: grid-template-columns .28s ease;
}

.app-shell .sidebar {
  transition: transform .28s ease, opacity .2s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) !important;
}

.app-shell.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.sidebar-toggle {
  position: fixed;
  z-index: 260;
  top: 1.2rem;
  left: calc(var(--sidebar-width, 265px) - 1.25rem);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: left .28s ease, color .2s ease, border-color .2s ease;
}

.sidebar-toggle > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font: 900 1.4rem/1 Arial, sans-serif;
}

.sidebar-toggle .sidebar-collapse-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.sidebar-collapsed .sidebar-toggle {
  left: 1rem;
  width: 2.5rem;
  padding: 0;
}

.sidebar-toggle b {
  display: none;
  font-size: .78rem;
  white-space: nowrap;
}

.sidebar-collapsed .topbar {
  padding-left: 9rem;
}

.donut {
  background: conic-gradient(#ff8a1f calc(var(--value) * 1%), #22c7e8 0);
}

.donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}

.donut-legend i {
  width: .62rem;
  height: .62rem;
  flex: 0 0 .62rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.donut-legend .legend-linked i {
  background: #ff8a1f;
}

.donut-legend .legend-white i {
  background: #22c7e8;
}

[data-theme="light"] .donut-legend .legend-white i {
  background: #087ea4;
}

@media (max-width: 900px) {
  .sidebar-toggle {
    left: 1rem;
  }
}

.powered-footer {
  position: relative;
  order: 9999;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: auto clamp(1rem, 4vw, 3.5rem) 2rem;
  padding: 1.6rem 1.8rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 72%, #0ea5e9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(14, 165, 233, .13), transparent 32%),
    linear-gradient(135deg, rgba(10, 24, 40, .98), rgba(7, 15, 27, .98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.powered-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, #ff8a1f, #0ea5e9, transparent);
}

.powered-footer-copy {
  display: grid;
  gap: .32rem;
}

.powered-footer-copy span,
.powered-footer-brand small {
  color: #38bdf8;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .17em;
}

.powered-footer-copy strong {
  color: #f8fafc;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  letter-spacing: -.02em;
}

.powered-footer-copy p {
  margin: 0;
  color: #91a4bc;
  font-size: .78rem;
}

.powered-footer-brand {
  min-width: 250px;
  display: grid;
  justify-items: center;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.powered-footer-brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 34px;
  object-fit: contain;
}

[data-theme="light"] .powered-footer {
  border-color: #d6e1ec;
  background:
    radial-gradient(circle at 82% 10%, rgba(14, 165, 233, .13), transparent 32%),
    linear-gradient(135deg, #f8fbff, #eef4fa);
  box-shadow: 0 18px 44px rgba(45, 67, 91, .1);
}

[data-theme="light"] .powered-footer-copy strong {
  color: #172337;
}

[data-theme="light"] .powered-footer-copy p {
  color: #627086;
}

@media (max-width: 720px) {
  .powered-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .powered-footer-brand {
    min-width: 0;
  }
}

.fuel-origin-section {
  margin: 0 2rem 2rem;
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--line) 78%, #ff8a1f);
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 94%, #ff8a1f), var(--panel));
}

.fuel-origin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
}

.fuel-origin-heading h3 {
  margin: .25rem 0;
}

.fuel-origin-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.fuel-origin-content {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.fuel-origin-chart {
  width: 210px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--origin-segments));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.fuel-origin-chart::before {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.fuel-origin-chart > div {
  z-index: 1;
  display: grid;
  justify-items: center;
}

.fuel-origin-chart strong {
  color: #ff8a1f;
  font-size: 2.4rem;
  line-height: 1;
}

.fuel-origin-chart span {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.fuel-origin-list {
  display: grid;
  gap: .65rem;
}

.fuel-origin-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.fuel-origin-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--origin-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--origin-color) 16%, transparent);
}

.fuel-origin-row div {
  display: grid;
  gap: .2rem;
}

.fuel-origin-row b {
  font-size: .8rem;
}

.fuel-origin-row small,
.fuel-origin-updated {
  color: var(--muted);
  font-size: .68rem;
}

.fuel-origin-row > strong {
  color: #ff8a1f;
  font-size: 1.05rem;
}

.fuel-origin-empty {
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

[data-theme="light"] .fuel-origin-section {
  background: linear-gradient(145deg, #fffaf4, #f8fbff);
}

html[data-theme="light"] .fuel-origin-row {
  border-color: #31445f;
  background: #1d2a40;
}

html[data-theme="light"] .fuel-origin-row b {
  color: #f7faff;
}

html[data-theme="light"] .fuel-origin-row small {
  color: #aebed4;
}

@media (max-width: 720px) {
  .fuel-origin-section {
    margin-inline: 1rem;
  }

  .fuel-origin-heading,
  .fuel-origin-content {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .fuel-origin-heading button {
    width: 100%;
  }
}
.fuel-origin-sync-panel {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    var(--panel);
}

.fuel-sync-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.fuel-sync-heading h3 {
  margin: 4px 0 5px;
}

.fuel-sync-heading p {
  margin: 0;
  color: var(--muted);
}

.fuel-sync-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fuel-sync-metrics article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel) 88%, var(--background));
}

.fuel-sync-metrics small,
.fuel-sync-metrics em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.fuel-sync-metrics strong {
  display: block;
  margin: 7px 0;
  color: var(--text);
  font-size: 1.25rem;
}

html[data-theme="light"] .fuel-sync-metrics strong {
  color: #16324f;
  text-shadow: none;
}

.fuel-sync-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 42%, var(--border));
  border-radius: 12px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
}

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

@media (max-width: 640px) {
  .fuel-sync-heading {
    flex-direction: column;
  }

  .fuel-sync-metrics {
    grid-template-columns: 1fr;
  }
}
.regulatory-cell-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.regulatory-cell-stack strong,
.regulatory-cell-stack small {
  display: block;
  max-width: 100%;
}

.regulatory-cell-stack strong {
  color: var(--text);
  line-height: 1.35;
}

.regulatory-cell-stack small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}
.audit-error-detail {
  display: flex;
  max-width: 620px;
  flex-direction: column;
  gap: 6px;
}

.audit-error-detail small {
  display: block;
  color: var(--warning);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.audit-submenu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.55rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 23, 42, .96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
.audit-submenu-item {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-height: 70px;
  margin: 0;
  padding: .85rem 1rem;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: #8e9db5;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition: color .2s ease, background .2s ease;
}
.audit-submenu-item:last-child { border-right: 0; }
.audit-submenu-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  transform: none;
  pointer-events: none;
}
.audit-submenu-item:hover { color: #dbe8f7; background: rgba(45, 76, 114, .14); }
.audit-submenu-item.active {
  color: #f5f9ff;
  background: linear-gradient(180deg, rgba(35, 76, 111, .18), rgba(15, 29, 49, .04));
  box-shadow: none;
}
.audit-submenu-item.active::after { background:#ff8b1f; box-shadow:0 0 16px rgba(255,139,31,.5); }
.audit-submenu-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 0;
  color: #697993;
  background: transparent;
}
.audit-submenu-item.active .audit-submenu-icon { color:#ffad5c; background:transparent; }
.audit-submenu-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.audit-submenu-item > span:nth-child(2) { display:grid; min-width:0; gap:.22rem; }
.audit-submenu-item strong { color:inherit; font-size:.78rem; line-height:1.2; }
.audit-submenu-item small { overflow:hidden; color:#65758f; font-size:.64rem; font-weight:600; opacity:1; text-overflow:ellipsis; white-space:nowrap; }
.audit-submenu-item > b {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 20px;
  color: #aebbcf;
  background: rgba(0, 0, 0, .2);
  font-size: .68rem;
  text-align: center;
}
.audit-submenu-item.active > b { color:#ffc078; background:rgba(255,139,31,.1); }
.audit-category-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}
.audit-category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  color: var(--ink);
  background: var(--cyan);
  font-size: 1.15rem;
  font-weight: 900;
}
.audit-category-strip > div { display: grid; gap: 3px; }
.audit-category-strip strong { color: var(--text); font-size: .88rem; }
.audit-category-strip small { color: var(--muted); font-size: .72rem; }
.audit-result-count {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--cyan);
  background: rgba(99, 217, 230, .07);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.audit-table-panel { min-height: 280px; }

html[data-theme="light"] .audit-submenu {
  border-color:#cfdbe7;
  background:#f5f8fb;
  box-shadow:0 10px 28px rgba(31,52,78,.08);
}
html[data-theme="light"] .audit-submenu-item { color:#617189; background:transparent; border-color:#d8e1ea; }
html[data-theme="light"] .audit-submenu-item:hover { color:#26384f; background:#edf3f8; }
html[data-theme="light"] .audit-submenu-item.active { color:#1d3048; background:linear-gradient(180deg,rgba(255,139,31,.08),rgba(255,255,255,.2)); }
html[data-theme="light"] .audit-submenu-icon { color:#718299; background:transparent; }
html[data-theme="light"] .audit-submenu-item.active .audit-submenu-icon { color:#d86611; background:transparent; }
html[data-theme="light"] .audit-submenu-item > b { color:#52657d; background:rgba(34,55,80,.07); }
html[data-theme="light"] .audit-submenu-item.active > b { color:#a64a08; background:rgba(255,139,31,.1); }
html[data-theme="light"] .audit-category-strip { background: linear-gradient(90deg, #fff, #f2f6f8); }

@media (max-width: 1100px) {
  .audit-submenu { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  .audit-submenu-item { min-width:240px; scroll-snap-align:start; }
}
@media (max-width: 640px) {
  .audit-submenu-item { min-width: 225px; scroll-snap-align: start; }
  .audit-category-strip { align-items: flex-start; flex-wrap: wrap; }
  .audit-result-count { margin-left: 50px; }
}
.user-menu-access {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, var(--background));
}

.user-menu-access small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.user-menu-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.user-menu-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.user-menu-options input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.user-menu-options label:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.user-menu-options label:has(input:disabled) {
  cursor: default;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .user-menu-options {
    grid-template-columns: 1fr;
  }
}

/* Keep audit user names legible on the light theme. */
html[data-theme="light"] #audit-body td b {
  color: #263449 !important;
}

/* Keep modal close actions visible while the panel content scrolls. */
dialog[open] .dialog-close {
  position: sticky;
  top: 1rem;
  left: calc(100% - 52px);
  margin-left: auto;
  display: grid;
  z-index: 60;
}

.cof-import-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 28px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--green) 38%, var(--line));
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 8%, var(--panel)), var(--panel));
}
.cof-update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}
.cof-update-grid > article { min-width: 0; height: 100%; margin-bottom: 0; box-sizing: border-box; }
.cof-update-grid .cof-import-panel.cof-import-simple { grid-template-columns: 48px minmax(0, 1fr); align-content: center; }
.cof-update-grid .cof-import-simple .cof-import-actions { grid-column: 1 / -1; justify-content: start; margin-top: 4px; }
.cof-update-grid .cof-import-simple #cof-file-name,
.cof-update-grid .cof-import-simple .cof-import-status { justify-self: start; }
.cof-update-grid .cof-anp-start,
.cof-update-grid .cof-anp-workspace,
.cof-update-grid .cof-anp-automation > .cof-import-status { margin-left: 0; }
.cof-update-grid .cof-anp-workspace { grid-template-columns: minmax(190px, 1fr) minmax(170px, 1fr); }
.cof-update-grid #cof-anp-submit { grid-column: 2; }
.cof-import-panel.cof-import-simple {
  grid-template-columns: 48px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border-color: color-mix(in srgb, #38bdf8 42%, var(--line));
  border-radius: 16px;
  background: radial-gradient(circle at 3% 50%, rgba(56, 189, 248, .1), transparent 13rem), linear-gradient(135deg, color-mix(in srgb, var(--panel) 96%, #0ea5e9), var(--panel));
}
.cof-import-emblem { width: 44px; height: 44px; display: grid; place-items: center; color: #38bdf8; border: 1px solid rgba(56, 189, 248, .34); border-radius: 13px; background: rgba(14, 165, 233, .08); box-shadow: inset 0 0 20px rgba(56, 189, 248, .04), 0 8px 24px rgba(0, 0, 0, .12); }
.cof-import-emblem svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cof-import-simple .cof-import-copy h3 { margin: 2px 0 4px; font-size: 1rem; }
.cof-import-simple .cof-import-copy p:last-child { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.cof-import-copy h3 { margin: 4px 0 12px; }
.cof-import-copy ol { margin: 0; padding-left: 22px; color: var(--text); line-height: 1.7; }
.cof-import-copy li::marker { color: var(--green); font-weight: 800; }
.cof-safety-note { margin: 14px 0 0; color: var(--muted); font-size: 0.84rem; }
.cof-import-actions { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 7px 9px; }
.cof-import-actions .primary,
.cof-import-actions .secondary { width: auto; min-height: 38px; padding: .62rem .9rem; text-align: center; box-sizing: border-box; }
.cof-file-button,
#cof-import-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.cof-file-button { min-height: 38px; padding: .58rem .9rem; cursor: pointer; color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .38); background: rgba(14, 165, 233, .08); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.cof-file-button:hover { transform: translateY(-1px); border-color: #38bdf8; background: rgba(14, 165, 233, .14); }
.cof-file-button svg,
#cof-import-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#cof-import-button { box-shadow: 0 8px 20px rgba(255, 138, 31, .16); }
#cof-import-button:disabled { opacity: .42; box-shadow: none; }
#cof-file-name { grid-column: 1 / -1; justify-self: end; max-width: 310px; color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cof-import-status { grid-column: 1 / -1; justify-self: end; min-height: 0; font-size: 0.76rem; font-weight: 700; }
.cof-import-status.loading { color: var(--amber); }
.cof-import-status.success { color: var(--green); }
.cof-import-status.error { color: var(--red); }
.cof-anp-automation { margin-bottom: 14px; padding: 18px 20px; border: 1px solid rgba(56, 189, 248, .38); border-radius: 18px; background: radial-gradient(circle at 2% 20%, rgba(56, 189, 248, .12), transparent 15rem), linear-gradient(135deg, color-mix(in srgb, var(--panel) 95%, #0ea5e9), var(--panel)); box-shadow: 0 16px 42px rgba(0, 0, 0, .12); }
.cof-anp-head { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 15px; }
.cof-anp-head h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.cof-anp-head p:last-child { margin: 0; color: var(--muted); font-size: .82rem; }
.cof-anp-orbit { position: relative; width: 46px; height: 46px; display: grid; place-items: center; color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .4); border-radius: 50%; background: rgba(14, 165, 233, .08); font-size: .65rem; font-weight: 950; letter-spacing: .08em; }
.cof-anp-orbit i { position: absolute; inset: -5px; border: 1px dashed rgba(56, 189, 248, .3); border-radius: 50%; animation: cofOrbit 12s linear infinite; }
@keyframes cofOrbit { to { transform: rotate(360deg); } }
.cof-anp-scope { padding: .42rem .7rem; color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .3); border-radius: 999px; background: rgba(14, 165, 233, .07); font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.cof-anp-start { display: flex; align-items: center; flex-wrap:wrap; gap: 12px; margin: 15px 0 0 65px; }
.cof-anp-start select { width:90px; }
.cof-anp-start small { color: var(--muted); font-size: .72rem; }
.cof-tech-button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: .58rem .9rem; color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .38); border-radius: 999px; background: rgba(14, 165, 233, .09); font: inherit; font-size: .78rem; font-weight: 850; cursor: pointer; }
.cof-tech-button:disabled { opacity: .5; cursor: wait; }
.cof-tech-dot { width: 7px; height: 7px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 12px #38bdf8; }
.cof-anp-workspace { display: grid; grid-template-columns: minmax(220px, 320px) minmax(200px, 1fr) auto; align-items: end; gap: 12px; margin: 16px 0 0 65px; padding-top: 15px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, #38bdf8); }
.cof-captcha-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; }
.cof-captcha-card > span,.cof-captcha-input > span { color: var(--muted); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.cof-captcha-card img { grid-column: 1 / -1; width: 100%; max-width: 300px; min-height: 48px; padding: 5px 10px; border: 1px solid rgba(56, 189, 248, .25); border-radius: 10px; background: #fff; object-fit: contain; }
.cof-captcha-card button { grid-column: 2; grid-row: 1; padding: 0; color: #7dd3fc; border: 0; background: transparent; font: inherit; font-size: .68rem; cursor: pointer; }
.cof-captcha-input { display: grid; gap: 7px; }
.cof-captcha-input input { min-height: 42px; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
#cof-anp-submit { min-height: 42px; padding: .7rem 1rem; border-radius: 999px; white-space: nowrap; }
.cof-anp-automation > .cof-import-status { display: block; margin: 9px 0 0 65px; }
html[data-theme="light"] .cof-anp-automation { border-color: #b7d8eb; background: radial-gradient(circle at 2% 20%, rgba(14, 165, 233, .1), transparent 15rem), linear-gradient(135deg, #fbfdff, #f3f7fb); }
html[data-theme="light"] .cof-anp-orbit,html[data-theme="light"] .cof-anp-scope,html[data-theme="light"] .cof-tech-button,html[data-theme="light"] .cof-captcha-card button { color: #086c9f; }
html[data-theme="light"] .cof-import-panel.cof-import-simple { border-color: #b9d7ea; background: radial-gradient(circle at 3% 50%, rgba(14, 165, 233, .09), transparent 13rem), linear-gradient(135deg, #fbfdff, #f3f7fb); }
html[data-theme="light"] .cof-import-emblem { color: #0879b5; border-color: #a9d2e9; background: #edf8fe; box-shadow: 0 8px 20px rgba(40, 83, 115, .09); }
html[data-theme="light"] .cof-file-button { color: #075f91; border-color: #9acbe5; background: #f2faff; }
html[data-theme="light"] .cof-file-button:hover { border-color: #168dcc; background: #e9f7ff; }
#origin-report-export { display: none !important; }
#page-stations.regional-station-view thead th:nth-child(3) { display: none; }
.cof-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cof-access-scope{display:inline-flex;align-items:center;min-height:34px;margin-left:auto;padding:7px 11px;border:1px solid rgba(247,151,53,.3);border-radius:999px;color:#ffad5c;background:rgba(247,151,53,.08);font-size:.65rem;font-weight:850;white-space:nowrap}.cof-access-scope[hidden]{display:none!important}.cof-access-scope+.report-config-trigger{margin-left:8px}
.cof-filters { grid-template-columns: minmax(260px, 1.3fr) 120px minmax(180px, 0.7fr) minmax(180px, 0.7fr); }
.cof-table-panel .table-scroll { overflow-x: auto; }
.cof-table { min-width: 1280px; table-layout: auto; }
.cof-table th { padding:.72rem .8rem; white-space:nowrap; font-size:.57rem; }
.cof-table td { max-width:none; padding:.68rem .8rem; vertical-align:middle; font-size:.7rem; line-height:1.25; white-space:nowrap; }
.cof-table td:nth-child(1) { width:220px; min-width:220px; white-space:normal; }
.cof-table td:nth-child(1) strong { display:-webkit-box; margin:0; overflow:hidden; color:var(--text); font-size:.7rem; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.cof-table td:nth-child(2) { min-width:138px; }
.cof-table td:nth-child(3) { width:190px; min-width:190px; overflow:hidden; text-overflow:ellipsis; }
.cof-table td:nth-child(4) { min-width:110px; }
.cof-table td:nth-child(6) { min-width:115px; }
.cof-table td:nth-child(9) { width:104px; min-width:104px; }
.cof-table td:nth-child(10) { min-width:190px; }
.cof-table th:last-child,.cof-table td:last-child{position:sticky;right:0;width:104px;min-width:104px;text-align:right;background:var(--panel);box-shadow:-12px 0 18px rgba(3,11,21,.2)}.cof-table th:last-child{z-index:3}.cof-table td:last-child{z-index:2}.cof-table tbody tr:hover td:last-child{background:color-mix(in srgb,var(--panel) 92%,#f79735)}
.cof-fuel-chip { display:inline-flex; padding:4px 8px; border-radius:999px; background:color-mix(in srgb,var(--green) 12%,var(--panel)); color:var(--green); font-size:.59rem; font-weight:800; line-height:1; letter-spacing:.005em; white-space:nowrap; }
.cof-tankage { text-align:right; font-variant-numeric:tabular-nums; font-weight:800; }
.cof-table .cof-detail-button { padding:.42rem .66rem; font-size:.66rem; }

@media (max-width: 1180px) {
  .cof-update-grid { grid-template-columns: 1fr; }
  .cof-update-grid .cof-anp-workspace { grid-template-columns: 1fr 1fr auto; }
  .cof-update-grid #cof-anp-submit { grid-column: auto; }
}

@media (max-width: 980px) {
  .cof-anp-workspace { grid-template-columns: 1fr 1fr; }
  #cof-anp-submit { grid-column: 2; }
  .cof-import-panel.cof-import-simple { grid-template-columns: 48px minmax(0, 1fr); }
  .cof-import-simple .cof-import-actions { grid-column: 1 / -1; justify-content: start; }
  .cof-import-simple #cof-file-name,
  .cof-import-simple .cof-import-status { justify-self: start; }
  .cof-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cof-filters { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cof-update-grid .cof-anp-workspace { grid-template-columns: 1fr; }
  .cof-update-grid #cof-anp-submit { grid-column: 1; }
  .cof-anp-head { grid-template-columns: 46px 1fr; }
  .cof-anp-scope { grid-column: 1 / -1; justify-self: start; }
  .cof-anp-start,.cof-anp-workspace,.cof-anp-automation > .cof-import-status { margin-left: 0; }
  .cof-anp-start { align-items: flex-start; flex-direction: column; }
  .cof-anp-workspace { grid-template-columns: 1fr; }
  #cof-anp-submit { grid-column: 1; width: 100%; }
  .cof-import-panel.cof-import-simple { grid-template-columns: 1fr; padding: 16px; }
  .cof-import-emblem { display: none; }
  .cof-import-simple .cof-import-actions { grid-template-columns: 1fr; width: 100%; }
  .cof-import-simple .cof-file-button,
  .cof-import-simple #cof-import-button { width: 100%; }
  .cof-import-simple #cof-file-name,
  .cof-import-simple .cof-import-status { grid-column: 1; max-width: 100%; }
  .cof-summary { grid-template-columns: 1fr; }
}

.sync-details-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 13px;
  border: 1px solid rgba(255, 189, 89, 0.38);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 189, 89, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sync-details-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 189, 89, 0.15);
  box-shadow: 0 8px 22px rgba(255, 156, 55, 0.14);
}

.sync-details-pill b,
.sync-tab-pill b {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--amber);
  font-size: 0.7rem;
}

.sync-no-changes { color: var(--muted); font-size: 0.78rem; }
.sync-changes-dialog { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; }
.sync-changes-dialog .dialog-close { margin: 16px 16px -52px auto; }

/* Tema claro: contraste operacional e identidade visual */
html[data-theme="light"] {
  --text: #172337;
  --muted: #526176;
  --line: #cbbdab;
}

html[data-theme="light"] .brand img {
  filter:
    contrast(1.14)
    saturate(1.12)
    drop-shadow(0 2px 0 rgba(255,255,255,.95))
    drop-shadow(0 9px 15px rgba(57,38,20,.24));
}

html[data-theme="light"] .powered-footer-brand img {
  filter: contrast(1.28) saturate(1.18) drop-shadow(0 5px 9px rgba(17,45,72,.2));
}

html[data-theme="light"] .nav-group-toggle {
  color: #3b4b60;
}

html[data-theme="light"] .nav-section-icon {
  color: #40536d;
  border-color: #b8c3d0;
  background: #e2e8f0;
}

html[data-theme="light"] .nav-group-toggle:hover,
html[data-theme="light"] .nav-group.has-active:not(.open) .nav-group-toggle {
  color: #172337;
  background: #f1e8dc;
}

html[data-theme="light"] .nav-group.open .nav-group-toggle {
  color: #f8fafc;
  border-color: #253654;
  background: #1c2942;
  box-shadow: 0 8px 18px rgba(32,45,65,.18);
}

html[data-theme="light"] .nav-group.open .nav-section-icon {
  color: #ffb15f;
  border-color: #d87620;
  background: rgba(255,138,31,.13);
}

html[data-theme="light"] .organized-nav .nav-item {
  color: #34465d;
  border: 1px solid transparent;
}

html[data-theme="light"] .organized-nav .nav-item > span:last-child {
  color: inherit;
}

html[data-theme="light"] .organized-nav .nav-item .nav-icon {
  color: #9c4f13;
}

html[data-theme="light"] .organized-nav .nav-item:hover {
  color: #172337;
  border-color: #d8b795;
  background: #fff3e6;
}

html[data-theme="light"] .organized-nav .nav-item.active {
  color: #7c3300;
  border-color: #d79a60;
  background: #f7e3cf;
  box-shadow: inset 3px 0 0 #d96713;
}

html[data-theme="light"] button:not(.primary),
html[data-theme="light"] .ghost-button,
html[data-theme="light"] .row-action,
html[data-theme="light"] .user-edit-toggle,
html[data-theme="light"] .password-reset-open {
  color: #26384f;
  border-color: #b9a996;
  background: #fffdf9;
  box-shadow: 0 3px 10px rgba(55,40,24,.08);
}

html[data-theme="light"] button:not(.primary):hover,
html[data-theme="light"] .ghost-button:hover,
html[data-theme="light"] .row-action:hover,
html[data-theme="light"] .user-edit-toggle:hover,
html[data-theme="light"] .password-reset-open:hover {
  color: #762f00;
  border-color: #cf7a32;
  background: #fff0df;
}

html[data-theme="light"] .primary {
  color: #231307;
  border: 1px solid #d56c12;
  background: linear-gradient(135deg, #ffc46f, #ff8a1f);
  box-shadow: 0 9px 22px rgba(196,84,0,.2);
}

html[data-theme="light"] .primary:hover {
  color: #140b04;
  border-color: #b95200;
  background: linear-gradient(135deg, #ffd49a, #ff9c42);
}

html[data-theme="light"] .display-control,
html[data-theme="light"] .maintenance-control {
  border-color: #af9f8c;
  background: #fffdf9;
  box-shadow: 0 4px 14px rgba(55,40,24,.08);
}

html[data-theme="light"] .maintenance-status {
  color: #3f4f64;
}

html[data-theme="light"] .maintenance-toggle {
  color: #8a1431;
  border-color: #b72e4d;
  background: #fff0f3;
  box-shadow: none;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] .users-search,
html[data-theme="light"] .users-toolbar select {
  color: #1f3046;
  border-color: #bcae9d;
  background: #fffdf9;
}

html[data-theme="light"] input::placeholder {
  color: #687589;
  opacity: 1;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] .users-search:focus-within {
  border-color: #c85c0b;
  box-shadow: 0 0 0 3px rgba(200,92,11,.16);
}

html[data-theme="light"] .role-pill,
html[data-theme="light"] .permission-pills span {
  color: #30445d;
  border-color: #b9c4d0;
  background: #eaf0f6;
}

html[data-theme="light"] .role-pill.role-admin,
html[data-theme="light"] .permission-pills span.more {
  color: #7a3500;
  border-color: #dfa56e;
  background: #fff0df;
}

html[data-theme="light"] .role-pill.role-manager {
  color: #07566b;
  border-color: #77b8c7;
  background: #e4f5f8;
}

html[data-theme="light"] .status-pill.active {
  color: #08613f;
  background: #e3f6ed;
}

html[data-theme="light"] .user-avatar {
  color: #192435;
  border: 1px solid #d56c12;
  background: linear-gradient(135deg, #ffd18d, #ff9130);
}

html[data-theme="light"] .dialog-close,
html[data-theme="light"] .user-editor-close {
  color: #172337;
  border-color: #a99a88;
  background: #f4eadf;
}

html[data-theme="light"] .scope-chip {
  color: #46566b;
  border: 1px solid #d6c1aa;
  background: #f5e8d9;
}

html[data-theme="light"] .source-health,
html[data-theme="light"] .source-health small {
  color: #526176;
}

html[data-theme="light"] .source-health b {
  color: #1d2c40;
}

html[data-theme="light"] .danger-button,
html[data-theme="light"] .user-delete {
  color: #fff;
  border-color: #a91f3a;
  background: linear-gradient(135deg,#cf3652,#8f1730);
  box-shadow: 0 6px 16px rgba(143,23,48,.18);
}

html[data-theme="light"] .danger-button:hover,
html[data-theme="light"] .user-delete:hover {
  color: #fff;
  border-color: #86142c;
  background: linear-gradient(135deg,#df4963,#a51d38);
}
#sync-changes-content { max-height: calc(100vh - 32px); overflow-y: auto; padding: 34px; }
.sync-changes-head h2 { margin: 5px 0 6px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.sync-changes-head > p:last-child { margin: 0; color: var(--muted); }
.sync-change-tabs { display: flex; gap: 10px; margin: 25px 0 18px; }
.sync-tab-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--ink-soft); font-weight: 800; }
.sync-tab-pill.active { color: var(--text); border-color: rgba(255, 189, 89, 0.55); background: rgba(255, 189, 89, 0.1); }
.sync-change-panel { display: none; }
.sync-change-panel.active { display: block; }
.sync-created-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sync-created-card,
.sync-updated-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 19, 31, 0.42); }
.sync-created-card { padding: 18px; }
.sync-created-card h4 { margin: 12px 0 5px; color: var(--text); font-size: 1rem; }
.sync-created-card p,
.sync-created-card small { margin: 0; color: var(--muted); }
.sync-created-card small { display: block; margin-top: 5px; }
.sync-created-card-footer { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:7px; }
.sync-created-card-footer small { flex:1; margin:0; }
.sync-phone-button { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:7px 10px; border:1px solid rgba(71,198,255,.34); border-radius:9px; color:var(--cyan); background:rgba(71,198,255,.08); font:inherit; font-size:.68rem; font-weight:850; white-space:nowrap; cursor:pointer; }
.sync-phone-button:hover { color:#fff; border-color:rgba(71,198,255,.68); background:rgba(71,198,255,.18); }
.sync-phone-button svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sync-change-kind { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.sync-change-kind.created { color: var(--green); background: rgba(56, 231, 154, 0.1); }
.sync-change-kind.updated { color: var(--amber); background: rgba(255, 189, 89, 0.1); }
.sync-updated-list { display: grid; gap: 10px; }
.sync-updated-card { overflow: hidden; }
.sync-updated-card summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px 18px; cursor: pointer; list-style: none; }
.sync-updated-card summary::-webkit-details-marker { display: none; }
.sync-updated-card summary b,
.sync-updated-card summary small { display: block; }
.sync-updated-card summary small { margin-top: 4px; color: var(--muted); }
.sync-updated-card summary em { color: var(--amber); font-size: 0.76rem; font-style: normal; font-weight: 800; }
.sync-updated-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.sync-updated-actions em { min-width:68px; text-align:right; }
.sync-field-list { display: grid; gap: 1px; padding: 1px; border-top: 1px solid var(--line); background: var(--line); }
.sync-field-change { display: grid; grid-template-columns: minmax(135px, 0.45fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; background: var(--panel); }
.sync-field-change > strong { color: var(--cyan); font-size: 0.78rem; }
.sync-field-change > div { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.sync-field-change > div > small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.65rem; font-weight: 900; text-transform: uppercase; }
.sync-field-change > i { color: var(--amber); font-style: normal; }
.sync-product-value { display: block; margin-bottom: 5px; }
.sync-product-value b,
.sync-product-value small { display: block; }
.sync-product-value small,
.sync-json-value { color: var(--muted); font-size: 0.72rem; }
.sync-empty-value { color: var(--muted); font-style: italic; }
.sync-history-note { margin: 16px 0; padding: 12px 14px; border: 1px solid rgba(255, 189, 89, 0.3); border-radius: 12px; color: var(--amber); background: rgba(255, 189, 89, 0.07); }
.sync-changes-empty,
.sync-changes-loading { padding: 42px 20px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  #sync-changes-content { padding: 26px 18px; }
  .sync-created-grid { grid-template-columns: 1fr; }
  .sync-field-change { grid-template-columns: 1fr; gap: 8px; }
  .sync-field-change > i { transform: rotate(90deg); }
  .sync-updated-card summary { grid-template-columns: auto 1fr; }
  .sync-updated-card summary em { grid-column: 2; }
  .sync-created-card-footer { align-items:flex-start; flex-direction:column; }
  .sync-updated-actions { grid-column:2; justify-content:flex-start; flex-wrap:wrap; }
  .sync-updated-actions em { min-width:0; text-align:left; }
}

.seller-access-policy { margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(71,198,255,.28); border-radius: 18px; background: linear-gradient(145deg, rgba(12,33,53,.98), rgba(9,22,39,.98)); box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.seller-access-policy-last { margin-top: 1rem; margin-bottom: 0; }
.seller-policy-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.seller-policy-heading h2 { margin: .12rem 0 .25rem; color: var(--text); font-size: 1.05rem; }
.seller-policy-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.seller-policy-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(71,198,255,.3); border-radius: 13px; color: var(--cyan); background: rgba(71,198,255,.09); }
.seller-policy-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seller-policy-status { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(6,17,30,.7); font-size: .68rem; font-weight: 900; white-space: nowrap; }
.seller-policy-status.active { color: var(--green); border-color: rgba(56,231,154,.35); background: rgba(56,231,154,.09); }
.seller-policy-form { display: grid; grid-template-columns: minmax(360px,.85fr) minmax(360px,1.15fr); gap: 1rem; padding: 1.1rem 1.2rem 1.2rem; }
.seller-policy-toggle { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,18,32,.55); cursor: pointer; }
.seller-policy-toggle input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--cyan); }
.seller-policy-toggle span { min-width: 0; }
.seller-policy-toggle strong, .seller-policy-toggle small { display: block; }
.seller-policy-toggle strong { color: var(--text); font-size: .78rem; }
.seller-policy-toggle small { margin-top: .25rem; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.seller-policy-ips { display: grid; min-width: 0; gap: .45rem; grid-column: 2; grid-row: 1; align-content: start; color: var(--muted); font-size: .72rem; font-weight: 800; }
.seller-policy-ips textarea { width: 100%; min-height: 92px; resize: vertical; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(4,13,25,.82); font: 700 .78rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.seller-policy-ips textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(71,198,255,.12); }
.seller-policy-ips small { color: var(--muted); font-weight: 500; }
.seller-policy-ips button { padding: 0; border: 0; color: var(--cyan); background: transparent; box-shadow: none; font: inherit; cursor: pointer; }
.seller-policy-ips button b { color: inherit; }
.seller-policy-alert-emails { display: grid; min-width: 0; gap: .45rem; grid-column: 2; grid-row: 2; align-content: start; padding: .85rem; border: 1px solid rgba(255,189,89,.28); border-radius: 14px; color: var(--muted); background: rgba(255,189,89,.055); }
.seller-policy-alert-emails-title b, .seller-policy-alert-emails-title small { display: block; }
.seller-policy-alert-emails-title b { color: var(--amber); font-size: .78rem; }
.seller-policy-alert-emails-title small, .seller-policy-alert-emails > small { margin-top: .22rem; color: var(--muted); font-size: .67rem; font-weight: 500; line-height: 1.4; }
.seller-policy-alert-emails textarea { width: 100%; min-height: 92px; resize: vertical; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(4,13,25,.82); font: 700 .78rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.seller-policy-alert-emails textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,189,89,.12); }
.seller-policy-hours { display: grid; min-width: 0; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.seller-policy-hours > label:not(.seller-policy-toggle) { display: grid; gap: .4rem; color: var(--muted); font-size: .69rem; font-weight: 800; }
.seller-policy-hours input[type="time"] { min-height: 44px; }
.seller-policy-days { grid-column: 1/-1; min-width: 0; margin: 0; padding: .72rem; border: 1px solid var(--line); border-radius: 13px; }
.seller-policy-days legend { padding: 0 .35rem; color: var(--muted); font-size: .69rem; font-weight: 800; }
.seller-policy-days > div { display: grid; grid-template-columns: repeat(7, minmax(42px,1fr)); gap: .4rem; }
.seller-policy-days label { position: relative; display: grid; place-items: center; min-height: 38px; cursor: pointer; }
.seller-policy-days input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seller-policy-days span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(4,13,25,.6); font-size: .68rem; font-weight: 900; transition: .16s ease; }
.seller-policy-days input:checked + span { color: #05101c; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 2px rgba(71,198,255,.12); }
.seller-policy-days input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.seller-policy-toggle.compact { grid-column: 1 / -1; padding: .7rem; }
.seller-policy-footer { grid-column: 1/-1; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding-top: .15rem; }
.seller-policy-footer span { flex: 1; color: var(--muted); font-size: .72rem; }
.seller-policy-footer .primary { min-width: 220px; }

html[data-theme="light"] .seller-access-policy { border-color: #ccb59d; background: linear-gradient(145deg,#fffdf9,#f7eee4); box-shadow: 0 12px 30px rgba(64,42,20,.09); }
html[data-theme="light"] .seller-policy-icon { color: #a24708; border-color: #dfb182; background: #fff0df; }
html[data-theme="light"] .seller-policy-toggle { border-color: #c9b8a5; background: rgba(255,255,255,.72); }
html[data-theme="light"] .seller-policy-ips textarea { color: #1f3046; border-color: #bcae9d; background: #fffdf9; }
html[data-theme="light"] .seller-policy-alert-emails { border-color: #dfb182; background: #fff8ef; }
html[data-theme="light"] .seller-policy-alert-emails textarea { color: #1f3046; border-color: #bcae9d; background: #fffdf9; }
html[data-theme="light"] .seller-policy-days { border-color: #c9b8a5; }
html[data-theme="light"] .seller-policy-days span { color: #59687a; border-color: #c9b8a5; background: #fffdf9; }
html[data-theme="light"] .seller-policy-days input:checked + span { color: #fff; border-color: #168dcc; background: #168dcc; }
html[data-theme="light"] .seller-policy-status { color: #59687a; border-color: #c9b8a5; background: #fffdf9; }
html[data-theme="light"] .seller-policy-status.active { color: #08613f; border-color: #79b99c; background: #e3f6ed; }

@media (max-width: 980px) {
  .seller-policy-form { grid-template-columns: 1fr; }
  .seller-policy-ips { grid-column: auto; grid-row: auto; }
  .seller-policy-alert-emails { grid-column: auto; grid-row: auto; }
  .seller-policy-hours { grid-column: auto; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .seller-policy-toggle.compact { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .seller-policy-heading { grid-template-columns: auto 1fr; }
  .seller-policy-status { grid-column: 1/-1; justify-self: start; }
  .seller-policy-hours { grid-template-columns: 1fr; }
  .seller-policy-days > div { grid-template-columns: repeat(4, minmax(48px,1fr)); }
  .seller-policy-toggle.compact { grid-column: auto; }
  .seller-policy-footer { align-items: stretch; flex-direction: column; }
  .seller-policy-footer .primary { width: 100%; min-width: 0; }
}

/* Hero comercial PetroExpress */
.hero-panel.hero-commercial,
html[data-theme="light"] .hero-panel.hero-commercial {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(250px, 20vw, 310px);
  padding: clamp(1.65rem, 3.5vw, 3.6rem);
  overflow: hidden;
  border: 1px solid rgba(255, 166, 70, .38);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(3, 10, 23, .98) 0%, rgba(5, 15, 29, .93) 30%, rgba(8, 18, 30, .64) 52%, rgba(12, 14, 18, .22) 76%, rgba(18, 10, 5, .13) 100%),
    linear-gradient(180deg, rgba(3, 10, 21, .42) 0%, transparent 42%, rgba(2, 7, 15, .72) 100%),
    url("/petroexpress-tanks-hero-wide.jpg") right center / auto 100% no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -90px 130px rgba(2,7,15,.2),
    0 24px 70px rgba(0,0,0,.28),
    0 0 55px rgba(255,126,24,.06);
}

.hero-panel.hero-commercial::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  translate: none;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 70% 45%, rgba(255, 157, 61, .18), transparent 28%),
    linear-gradient(118deg, transparent 0 43%, rgba(255,255,255,.04) 43.15%, transparent 43.3% 100%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.018) 120px);
  box-shadow: inset 0 0 0 1px rgba(112,205,255,.08);
  pointer-events: none;
}

.hero-panel.hero-commercial::after {
  display: none;
}

.hero-panel.hero-commercial > div {
  position: relative;
  z-index: 2;
  width: min(780px, 63%);
  max-width: none;
  padding: .65rem 0 1.15rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.52);
}

.hero-panel.hero-commercial .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .48rem .78rem;
  border: 1px solid rgba(106,213,255,.38);
  border-radius: 999px;
  color: #82dcff;
  background: rgba(5,19,34,.58);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.hero-panel.hero-commercial .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9a3d;
  box-shadow: 0 0 13px rgba(255,154,61,.95);
}

.hero-panel.hero-commercial h1,
html[data-theme="light"] .hero-panel.hero-commercial h1 {
  max-width: 780px;
  margin: 0 0 .7rem;
  color: #f8fbff;
  font-size: clamp(2.15rem, 3.65vw, 4rem);
  line-height: .92;
  letter-spacing: -.064em;
  text-wrap: balance;
}

.hero-panel.hero-commercial h1 span,
html[data-theme="light"] .hero-panel.hero-commercial h1 span {
  color: transparent !important;
  background: linear-gradient(90deg, #ff7a18 0%, #ffb454 46%, #fff0cf 80%, #85dfff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 7px 22px rgba(255,113,20,.2));
}

.hero-panel.hero-commercial .hero-commercial-copy,
html[data-theme="light"] .hero-panel.hero-commercial .hero-commercial-copy {
  max-width: 660px;
  margin: .9rem 0 0;
  color: rgba(230,239,250,.83);
  font-size: clamp(.86rem, 1.15vw, 1.04rem);
  line-height: 1.7;
  letter-spacing: .005em;
}

.hero-commercial-signature {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: clamp(1.35rem, 2.5vw, 2.5rem);
}

.hero-commercial-signature > span {
  display: block;
  width: clamp(120px, 14vw, 192px);
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a18, #ffbd66 62%, rgba(99,210,255,.92));
  filter: drop-shadow(0 0 12px rgba(255,132,31,.68));
}

@media (max-width: 900px) {
  .hero-panel.hero-commercial,
  html[data-theme="light"] .hero-panel.hero-commercial {
    min-height: 305px;
    background:
      linear-gradient(90deg, rgba(3,10,23,.97) 0%, rgba(5,15,29,.88) 48%, rgba(7,16,26,.42) 100%),
      linear-gradient(180deg, rgba(3,10,21,.25), rgba(2,7,15,.72)),
      url("/petroexpress-tanks-hero-wide.jpg") right center / auto 100% no-repeat;
  }
  .hero-panel.hero-commercial > div { width: min(680px, 78%); }
}

@media (max-width: 620px) {
  .hero-panel.hero-commercial,
  html[data-theme="light"] .hero-panel.hero-commercial {
    min-height: 350px;
    padding: 1.6rem 1.35rem 2.8rem;
    border-radius: 20px;
    background:
      linear-gradient(90deg, rgba(3,10,23,.96), rgba(5,15,29,.74)),
      linear-gradient(180deg, rgba(3,10,21,.25) 0%, rgba(2,7,15,.86) 100%),
      url("/petroexpress-tanks-hero-wide.jpg") 66% center / auto 100% no-repeat;
  }
  .hero-panel.hero-commercial > div { width: 100%; align-self: end; padding: 0; }
  .hero-panel.hero-commercial h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .hero-commercial-signature { gap: .7rem; margin-top: 1.5rem; }
  .hero-commercial-signature > span { width: clamp(72px, 22vw, 118px); }
  .hero-panel.hero-commercial .hero-commercial-signature .eyebrow {
    padding: .42rem .62rem;
    font-size: .67rem;
    letter-spacing: .14em;
  }
}

/* 20260808-theme-clarity-tail — precedencia final do tema claro moderno. */

/* Cabeçalho dos detalhes — mesma identidade visual do banner da Visão Geral. */
.detail-hero,
html[data-theme="light"] .detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20,9,3,.97) 0%, rgba(8,13,22,.93) 45%, rgba(6,14,25,.78) 68%, rgba(5,12,22,.62) 100%),
    linear-gradient(180deg, rgba(3,9,18,.18), rgba(3,8,15,.72)),
    url("/petroexpress-tanks-hero-wide.jpg") center center / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(255,151,62,.18), inset 0 1px 0 rgba(255,255,255,.035);
}
.detail-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 42%, rgba(255,145,42,.13), transparent 29%),
    linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.025) 55.1%, transparent 55.3%);
  pointer-events: none;
}
@media (max-width: 780px) {
  .detail-hero,
  html[data-theme="light"] .detail-hero {
    background:
      linear-gradient(90deg, rgba(14,8,4,.97), rgba(5,12,22,.82)),
      linear-gradient(180deg, rgba(3,9,18,.12), rgba(3,8,15,.78)),
      url("/petroexpress-tanks-hero-wide.jpg") 68% center / cover no-repeat;
  }
}

/* Cartão de identificação fiscal nos detalhes de Postos e COF. */
.detail-hero .detail-hero-cnpj,
html[data-theme="light"] .detail-hero .detail-hero-cnpj {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: .14rem;
  min-width: 500px;
  min-height: 74px;
  margin: 0;
  padding: .72rem .72rem .72rem 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(255,161,67,.48);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 4% 50%, rgba(255,139,31,.16), transparent 28%),
    linear-gradient(135deg, rgba(31,25,24,.93), rgba(7,18,31,.91));
  box-shadow:
    0 15px 36px rgba(0,0,0,.28),
    0 0 26px rgba(255,128,24,.055),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 4px 0 0 #ff8a1f;
  backdrop-filter: blur(9px);
}
.detail-hero .detail-hero-cnpj::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,169,82,.8) 36%, rgba(91,207,236,.72) 72%, transparent);
}
.detail-hero .detail-hero-cnpj::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -38px;
  right: 22%;
  width: 150px;
  height: 80px;
  border-radius: 50%;
  background: rgba(75,199,231,.07);
  filter: blur(25px);
  pointer-events: none;
}
.detail-hero .detail-hero-cnpj > span,
html[data-theme="light"] .detail-hero .detail-hero-cnpj > span {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #ffac5d;
  font-size: .61rem;
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1;
}
.detail-hero .detail-hero-cnpj > span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff941f;
  box-shadow: 0 0 10px rgba(255,148,31,.78);
}
.detail-hero .detail-hero-cnpj > strong,
html[data-theme="light"] .detail-hero .detail-hero-cnpj > strong {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  color: #fff;
  font-size: 1.14rem;
  font-weight: 950;
  letter-spacing: .045em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  white-space: nowrap;
}
.detail-hero .detail-hero-cnpj .known-phones-button {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  min-height: 48px;
  border-color: rgba(99,199,231,.4);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(15,43,65,.72), rgba(8,25,43,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.detail-hero .detail-hero-cnpj .known-phones-button:hover {
  border-color: rgba(105,213,242,.74);
  background: linear-gradient(145deg, rgba(20,67,91,.88), rgba(11,37,59,.9));
  box-shadow: 0 8px 22px rgba(40,174,211,.13), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(-1px);
}
@media (max-width: 850px) {
  .detail-hero .detail-hero-cnpj,
  html[data-theme="light"] .detail-hero .detail-hero-cnpj { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .detail-hero .detail-hero-cnpj,
  html[data-theme="light"] .detail-hero .detail-hero-cnpj {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: .85rem;
  }
  .detail-hero .detail-hero-cnpj .known-phones-button {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    min-height: 42px;
    margin-top: .55rem;
  }
}
html[data-theme="light"] { --line:#d5dee9; --text:#172337; --muted:#53657b; }
html[data-theme="light"],html[data-theme="light"] body,html[data-theme="light"] .content { color:#172337; background:radial-gradient(circle at 92% 2%,rgba(35,143,194,.08),transparent 28rem),linear-gradient(145deg,#edf3f8 0%,#f7f9fc 58%,#eef2f7 100%); }
html[data-theme="light"] .sidebar { border-color:#d5dee9; background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(243,247,251,.99)); box-shadow:12px 0 36px rgba(31,52,78,.055); }
html[data-theme="light"] .scope-chip { color:#465a72; border-color:#d8e1eb; background:#edf3f8; }
html[data-theme="light"] .organized-nav .nav-group-toggle { color:#51657d; border-color:transparent; background:transparent; box-shadow:none; }
html[data-theme="light"] .organized-nav .nav-section-icon { color:#4b6179; border-color:#d3dde8; background:#edf2f7; }
html[data-theme="light"] .organized-nav .nav-group-toggle:hover,html[data-theme="light"] .organized-nav .nav-group.has-active:not(.open) .nav-group-toggle { color:#18283e; border-color:#d9e2ec; background:#f4f7fa; }
html[data-theme="light"] .organized-nav .nav-group.open .nav-group-toggle { color:#1c2d43; border-color:#d3dde8; background:linear-gradient(135deg,#edf3f8,#f8fafc); box-shadow:0 7px 18px rgba(34,55,82,.07); }
html[data-theme="light"] .organized-nav .nav-group.open .nav-section-icon { color:#c85308; border-color:#efbe98; background:#fff2e7; }
html[data-theme="light"] .organized-nav .nav-item { color:#42566e; border-color:transparent; background:transparent; box-shadow:none; }
html[data-theme="light"] .organized-nav .nav-item .nav-icon { color:#18799e; }
html[data-theme="light"] .organized-nav .nav-item:hover { color:#18283e; border-color:#d7e2ec; background:#f1f6fa; }
html[data-theme="light"] .organized-nav .nav-item.active { color:#17263c; border-color:#c8d9e7; background:linear-gradient(90deg,#e4eef7,#f4f8fb); box-shadow:inset 3px 0 0 #e26b17,0 6px 16px rgba(29,74,108,.07); }
html[data-theme="light"] .organized-nav .nav-item.active .nav-icon { color:#c85308; }
html[data-theme="light"] .topbar { border-color:#cbd7e3; background:rgba(249,251,253,.9); box-shadow:0 8px 28px rgba(31,52,78,.055); }
html[data-theme="light"] :is(.panel,.metric,.table-panel,.policy-card,.users-workspace,.users-summary article,.enrichment-control-panel,.cof-anp-automation,.cof-import-panel,.seller-access-policy,.audit-category-strip,.sync-created-card,.sync-updated-card,.regulatory-status-card,.regulatory-rank-item,.regulatory-detail-card,.regulatory-detail-section) { color:#172337; border-color:#d5dee9; background:#fff; box-shadow:0 12px 32px rgba(31,52,78,.075); }
html[data-theme="light"] :is(.users-toolbar,.filter-bar) { border-color:#d5dee9; background:#edf3f8; box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }
html[data-theme="light"] :is(input,select,textarea,.users-search,.seller-policy-ips textarea) { color:#1c2c42; border-color:#c9d5e2; background:#fff; box-shadow:inset 0 1px 2px rgba(30,51,77,.035); }
html[data-theme="light"] :is(input,textarea)::placeholder { color:#718198; opacity:1; }
html[data-theme="light"] :is(input,select,textarea):focus,html[data-theme="light"] .users-search:focus-within { border-color:#1584b1; box-shadow:0 0 0 3px rgba(21,132,177,.14); }

/* Central de integracoes: conectores mantidos visual e operacionalmente separados. */
.integration-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.integration-environment{padding:8px 12px;border:1px solid rgba(247,154,66,.35);border-radius:999px;color:#ffad62;background:rgba(247,154,66,.09);font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}.integration-separation-note{display:flex;align-items:center;gap:15px;margin:18px 0;padding:16px 18px;border:1px solid rgba(65,187,224,.22);border-radius:14px;background:linear-gradient(135deg,rgba(20,52,79,.42),rgba(8,22,40,.38))}.integration-separation-note>span{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(65,187,224,.35);border-radius:12px;color:#51c8ea;font-size:1.3rem}.integration-separation-note strong{display:block;color:#eaf4ff}.integration-separation-note p{margin:3px 0 0;color:var(--muted);font-size:.78rem}.integration-connectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.integration-card{position:relative;overflow:hidden;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(17,31,53,.97),rgba(8,18,34,.98));box-shadow:0 18px 42px rgba(0,0,0,.16)}.integration-card::before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:3px;background:linear-gradient(90deg,#4dc9e9,#2c78bd,transparent)}.integration-card.viasoft::before{background:linear-gradient(90deg,#f28b2e,#f4ba64,transparent)}.integration-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.integration-brand{display:flex;align-items:center;gap:12px}.integration-brand>span{display:grid;place-items:center;width:47px;height:47px;border:1px solid rgba(77,201,233,.38);border-radius:14px;color:#57cee9;background:rgba(36,137,184,.12);font-size:.78rem;font-weight:900;letter-spacing:.08em}.viasoft .integration-brand>span{color:#ffab5f;border-color:rgba(247,154,66,.38);background:rgba(247,154,66,.11)}.integration-brand p{margin:0;color:#55c9e8;font-size:.62rem;font-weight:900;letter-spacing:.14em}.viasoft .integration-brand p{color:#f3a15a}.integration-brand h2{margin:3px 0 0;color:#f4f8ff;font-size:1.25rem}.integration-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(133,151,178,.22);border-radius:999px;color:#9badc2;background:rgba(133,151,178,.08);font-size:.65rem;font-weight:800;white-space:nowrap}.integration-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.integration-status.success{color:#5bd49c;border-color:rgba(61,201,139,.3);background:rgba(61,201,139,.09)}.integration-status.running{color:#ffb35d;border-color:rgba(247,154,66,.35);background:rgba(247,154,66,.1)}.integration-status.failed{color:#ff7f8a;border-color:rgba(245,82,96,.34);background:rgba(245,82,96,.08)}.integration-endpoint{display:grid;gap:5px;margin:18px 0;padding:13px 15px;border:1px solid rgba(112,142,180,.17);border-radius:12px;background:rgba(4,12,25,.42)}.integration-endpoint small,.integration-definition-grid small,.integration-card-footer small,.integration-metrics small{color:#7088a5;font-size:.59rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.integration-endpoint strong{overflow:hidden;color:#dce9f8;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.integration-definition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.integration-definition-grid>div{display:grid;gap:5px;padding:11px 12px;border:1px solid rgba(112,142,180,.13);border-radius:11px;background:rgba(10,22,40,.52)}.integration-definition-grid strong{color:#cbd9e9;font-size:.72rem}.integration-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:14px}.integration-metrics>div{display:grid;gap:4px;padding:11px 8px;border:1px solid rgba(77,201,233,.14);border-radius:10px;background:rgba(31,107,145,.07);text-align:center}.integration-metrics strong{color:#fff;font-size:1.05rem}.integration-awaiting{display:flex;align-items:center;gap:13px;margin-top:14px;padding:14px;border:1px dashed rgba(247,154,66,.28);border-radius:12px;background:rgba(247,154,66,.05)}.integration-awaiting>span{color:rgba(247,154,66,.38);font-size:1.8rem;font-weight:900}.integration-awaiting strong{color:#e8d7c6;font-size:.76rem}.integration-awaiting p{margin:4px 0 0;color:#8f9db0;font-size:.69rem;line-height:1.45}.integration-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-top:17px;padding-top:15px;border-top:1px solid rgba(112,142,180,.14)}.integration-card-footer>div{display:grid;gap:3px}.integration-card-footer>div strong{color:#fff;font-size:1.2rem}.integration-card-footer button{min-width:190px}.integration-card-footer button:disabled{cursor:not-allowed;opacity:.58}.integration-error,.integration-loading{padding:14px;border:1px solid rgba(245,82,96,.25);border-radius:11px;color:#ff929a;background:rgba(245,82,96,.07);font-size:.75rem}.integration-loading{grid-column:1/-1;color:var(--muted);border-color:var(--line);background:var(--panel)}
html[data-theme="light"] .integration-card{border-color:#d3dee9;background:linear-gradient(145deg,#fff,#f5f8fb);box-shadow:0 14px 34px rgba(31,52,78,.08)}html[data-theme="light"] .integration-brand h2,html[data-theme="light"] .integration-separation-note strong,html[data-theme="light"] .integration-metrics strong,html[data-theme="light"] .integration-card-footer>div strong{color:#172337}html[data-theme="light"] .integration-endpoint,html[data-theme="light"] .integration-definition-grid>div{background:#f7f9fc;border-color:#dbe4ed}html[data-theme="light"] .integration-endpoint strong,html[data-theme="light"] .integration-definition-grid strong{color:#30445d}
@media(max-width:1100px){.integration-connectors{grid-template-columns:1fr}}@media(max-width:680px){.integration-page-head,.integration-card-head,.integration-card-footer{align-items:stretch;flex-direction:column}.integration-environment{align-self:flex-start}.integration-definition-grid{grid-template-columns:1fr}.integration-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-card-footer button{width:100%;min-width:0}}

/* Relatorio exploratorio das integracoes - homologacao */
.integration-report{margin-top:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,rgba(12,26,46,.98),rgba(6,15,29,.98));overflow:hidden}.integration-report-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid var(--line)}.integration-report-head h2{margin:4px 0;color:#f4f8ff;font-size:1.45rem}.integration-report-head>div>p:last-child{margin:3px 0 0;color:var(--muted);font-size:.78rem}.integration-provider-tabs{display:flex;gap:8px}.integration-provider-tabs button{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 12px;border:1px solid rgba(111,142,179,.25);border-radius:11px;color:#9db0c8;background:rgba(7,18,34,.7);font:inherit;font-size:.72rem;font-weight:800;cursor:pointer}.integration-provider-tabs button>span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;color:#54cbe9;background:rgba(59,173,215,.12);font-size:.58rem}.integration-provider-tabs button small{padding:3px 6px;border-radius:999px;color:#8499b4;background:rgba(126,151,181,.1)}.integration-provider-tabs button.active{color:#fff;border-color:rgba(247,154,66,.55);background:rgba(247,154,66,.12);box-shadow:inset 0 -2px #f39a42}.integration-provider-tabs button.active>span{color:#ffad61;background:rgba(247,154,66,.15)}.integration-report-empty{margin:22px;padding:26px;border:1px dashed rgba(116,144,178,.28);border-radius:14px;text-align:center;color:var(--muted)}.integration-report-empty strong{display:block;color:#e7eef8}.integration-report-empty p{margin:7px 0 0;font-size:.76rem}.integration-report-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:680px}.integration-report-workspace>aside{padding:18px 12px;border-right:1px solid var(--line);background:rgba(4,12,24,.32)}.integration-entity-caption{padding:0 10px 10px;color:#6f87a4;font-size:.57rem;font-weight:900;letter-spacing:.12em}.integration-entity-list{display:grid;gap:5px}.integration-entity-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:11px 10px;border:1px solid transparent;border-radius:10px;color:#a9bad0;background:transparent;font:inherit;text-align:left;cursor:pointer}.integration-entity-list button span{display:grid;gap:3px;min-width:0}.integration-entity-list button b{overflow:hidden;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}.integration-entity-list button small{color:#657e9b;font-size:.58rem}.integration-entity-list button>strong{min-width:38px;padding:4px 6px;border-radius:8px;color:#8da5c1;background:rgba(102,130,165,.1);font-size:.65rem;text-align:center}.integration-entity-list button.active{color:#fff;border-color:rgba(64,190,225,.3);background:linear-gradient(135deg,rgba(38,139,185,.17),rgba(20,70,110,.12));box-shadow:inset 3px 0 #43c4e4}.integration-entity-list button.active>strong{color:#56d0ec;background:rgba(50,175,213,.13)}.integration-report-main{min-width:0;padding:22px}.integration-dataset-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.integration-dataset-head h3{margin:3px 0;color:#fff;font-size:1.25rem}.integration-dataset-head p:last-child{margin:5px 0 0;color:var(--muted);font-size:.73rem}.integration-dataset-head>strong{padding:8px 11px;border:1px solid rgba(64,190,225,.25);border-radius:10px;color:#57cce9;background:rgba(41,145,187,.09);font-size:.72rem;white-space:nowrap}.integration-fields-panel{margin-top:17px;padding:14px;border:1px solid rgba(111,142,179,.18);border-radius:13px;background:rgba(5,15,29,.42)}.integration-fields-panel>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;color:#d7e3f1;font-size:.67rem;font-weight:800}.integration-fields-panel>div:first-child small{color:#7089a7}.integration-field-chips{display:flex;gap:6px;max-height:112px;overflow:auto;flex-wrap:wrap}.integration-field-chips>span{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid rgba(79,177,211,.18);border-radius:7px;color:#aad8e6;background:rgba(41,137,175,.07);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.61rem}.integration-field-chips small{color:#657f99;font-family:inherit;font-size:.52rem}.integration-record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:15px 0 10px}.integration-record-toolbar label{display:flex;align-items:center;gap:8px;width:min(440px,100%);padding:0 11px;border:1px solid var(--line);border-radius:10px;background:rgba(5,15,28,.62)}.integration-record-toolbar label span{color:#f3a04f}.integration-record-toolbar input{width:100%;min-height:40px;padding:0;border:0;background:transparent}.integration-record-toolbar>span{color:#7f95b0;font-size:.67rem}.integration-record-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.8fr);gap:12px;align-items:start}.integration-record-table{border:1px solid var(--line);border-radius:12px;background:rgba(4,12,24,.28)}.integration-record-table table{min-width:780px}.integration-record-table th{position:sticky;top:0;z-index:1;padding:10px;color:#7690ad;background:#0b192b;font-size:.56rem}.integration-record-table td{max-width:210px;padding:10px;color:#aabbd0;font-size:.65rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.integration-record-table tbody tr{cursor:pointer}.integration-record-table tbody tr:hover,.integration-record-table tbody tr.selected{background:rgba(49,158,199,.1)}.integration-record-table tbody tr.selected{box-shadow:inset 3px 0 #45c5e4}.integration-record-table td b{color:#e7f1fc}.integration-record-pagination{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:10px;border-top:1px solid var(--line)}.integration-record-pagination button{padding:6px 9px;border:1px solid var(--line);border-radius:7px;color:#b7c6d8;background:#0a182a;font:inherit;font-size:.62rem;cursor:pointer}.integration-record-pagination button:disabled{opacity:.4;cursor:not-allowed}.integration-record-pagination span{color:#7d94af;font-size:.61rem}.integration-record-detail{position:sticky;top:14px;max-height:610px;overflow:auto;border:1px solid rgba(111,142,179,.2);border-radius:12px;background:rgba(5,14,27,.65)}.integration-detail-placeholder{padding:32px 22px;text-align:center;color:#738ba8}.integration-detail-placeholder strong{color:#c7d5e5;font-size:.76rem}.integration-detail-placeholder p{margin:7px 0 0;font-size:.65rem;line-height:1.5}.integration-record-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--line);background:rgba(32,98,133,.08)}.integration-record-detail header div{display:grid;gap:3px}.integration-record-detail header small{color:#6f89a7;font-size:.53rem;font-weight:900;letter-spacing:.09em}.integration-record-detail header strong{color:#fff;font-size:.78rem}.integration-record-detail header>span{color:#7189a5;font-size:.57rem;text-align:right}.integration-detail-fields{display:grid}.integration-detail-fields>div{display:grid;gap:5px;padding:10px 13px;border-bottom:1px solid rgba(109,138,171,.1)}.integration-detail-fields>div>span{color:#58bdd8;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.58rem}.integration-detail-fields strong{color:#cbd8e7;font-size:.67rem;line-height:1.4;overflow-wrap:anywhere}.integration-detail-fields pre{max-height:240px;margin:0;padding:9px;border-radius:7px;color:#adbed2;background:#07111f;font-size:.58rem;line-height:1.5;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-theme="light"] .integration-report{border-color:#d4dfe9;background:#fff}html[data-theme="light"] .integration-report-head h2,html[data-theme="light"] .integration-dataset-head h3{color:#17263a}html[data-theme="light"] .integration-report-workspace>aside,html[data-theme="light"] .integration-fields-panel,html[data-theme="light"] .integration-record-table,html[data-theme="light"] .integration-record-detail{background:#f8fafc}html[data-theme="light"] .integration-record-table th{background:#eef3f7}html[data-theme="light"] .integration-detail-fields pre{color:#30455f;background:#eef3f7}
@media(max-width:1150px){.integration-record-layout{grid-template-columns:1fr}.integration-record-detail{position:static;max-height:480px}}@media(max-width:820px){.integration-report-head{align-items:stretch;flex-direction:column}.integration-provider-tabs{overflow-x:auto}.integration-report-workspace{grid-template-columns:1fr}.integration-report-workspace>aside{border-right:0;border-bottom:1px solid var(--line)}.integration-entity-list{display:flex;overflow-x:auto}.integration-entity-list button{min-width:180px}.integration-report-main{padding:16px}}@media(max-width:560px){.integration-dataset-head,.integration-record-toolbar{align-items:stretch;flex-direction:column}.integration-dataset-head>strong{align-self:flex-start}.integration-field-chips{max-height:145px}.integration-record-layout{display:block}.integration-record-detail{margin-top:12px}}

.integration-automation{display:grid;gap:12px;margin-top:16px;padding:14px;border:1px solid rgba(111,142,179,.17);border-radius:12px;background:rgba(5,14,27,.4)}.integration-automation-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.integration-automation-head>div{display:grid;gap:3px}.integration-automation-head small{color:#6d86a3;font-size:.55rem;font-weight:900;letter-spacing:.11em}.integration-automation-head strong{color:#dce8f5;font-size:.74rem}.integration-auto-switch{position:relative;width:42px;height:23px;cursor:pointer}.integration-auto-switch input{position:absolute;opacity:0;pointer-events:none}.integration-auto-switch span{position:absolute;inset:0;border:1px solid rgba(113,139,171,.3);border-radius:999px;background:#101e31;transition:.2s}.integration-auto-switch span::after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:#7288a2;transition:.2s}.integration-auto-switch input:checked+span{border-color:rgba(61,201,139,.4);background:rgba(61,201,139,.16)}.integration-auto-switch input:checked+span::after{left:22px;background:#54d39b;box-shadow:0 0 10px rgba(61,201,139,.5)}.integration-automation-controls{display:flex;align-items:flex-end;gap:9px}.integration-automation-controls label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 7px;min-width:150px}.integration-automation-controls label span{grid-column:1/-1;color:#7189a6;font-size:.58rem}.integration-automation-controls input{width:92px;min-height:36px;padding:7px 9px}.integration-automation-controls label b{color:#8196af;font-size:.62rem}.integration-fixed-schedule{display:grid;gap:4px;min-width:190px;padding:7px 11px;border:1px solid rgba(111,142,179,.22);border-radius:8px;background:rgba(7,19,34,.58)}.integration-fixed-schedule span{color:#7189a6;font-size:.55rem;font-weight:900;letter-spacing:.08em}.integration-fixed-schedule strong{color:#dce8f5;font-size:.72rem;letter-spacing:.04em}.integration-automation-controls button{min-height:36px;padding:7px 11px;border:1px solid rgba(65,190,225,.3);border-radius:8px;color:#6cd1eb;background:rgba(44,142,181,.1);font:inherit;font-size:.64rem;font-weight:800;cursor:pointer}.integration-automation-controls button:disabled{opacity:.5}.integration-automation>p{margin:0;padding-top:9px;border-top:1px solid rgba(111,142,179,.12);font-size:.62rem}.integration-automation>p.ready{color:#5bcf9b}.integration-automation>p.pending{color:#e9a45f}html[data-theme="light"] .integration-automation{background:#f7f9fc;border-color:#dbe4ed}html[data-theme="light"] .integration-automation-head strong,html[data-theme="light"] .integration-fixed-schedule strong{color:#2b3e55}html[data-theme="light"] .integration-fixed-schedule{background:#fff;border-color:#dbe4ed}@media(max-width:470px){.integration-automation-controls{align-items:stretch;flex-direction:column}.integration-automation-controls label{width:100%}.integration-fixed-schedule{width:100%}.integration-automation-controls button{width:100%}}
html[data-theme="light"] thead,html[data-theme="light"] thead tr,html[data-theme="light"] thead th,html[data-theme="light"] .users-table th { color:#40546c !important; border-color:#d4dee8; background:#eaf0f6 !important; }
html[data-theme="light"] tbody tr { background:#fff; }
html[data-theme="light"] tbody tr:nth-child(even) { background:#f8fafc; }
html[data-theme="light"] tbody tr:hover { background:#edf5fa; }
html[data-theme="light"] tbody td { color:#465970 !important; border-color:#e0e7ef; }
html[data-theme="light"] tbody td :is(b,strong),html[data-theme="light"] :is(.user-identity b,.region-cell,.rank-item b,.mini-row b) { color:#172337 !important; }
html[data-theme="light"] .primary { color:#fff; border-color:#a83c00; background:linear-gradient(135deg,#c24e04,#9e3700); box-shadow:0 9px 22px rgba(158,55,0,.22); }
html[data-theme="light"] .primary:hover { color:#fff; border-color:#873000; background:linear-gradient(135deg,#b84403,#873000); }
html[data-theme="light"] :is(button:not(.primary),.secondary,.ghost-button,.row-action,.user-edit-toggle,.password-reset-open) { color:#126f98; border-color:#b9d1df; background:#f6fafc; box-shadow:none; }
html[data-theme="light"] :is(button:not(.primary),.secondary,.ghost-button,.row-action,.user-edit-toggle,.password-reset-open):hover { color:#a94406; border-color:#e1a577; background:#fff5ed; }
html[data-theme="light"] :is(.account-flyout,dialog,.detail-dialog,.form-dialog) { color:#172337; border-color:#cdd8e4; background:linear-gradient(155deg,#fff,#f4f7fa); box-shadow:0 28px 80px rgba(25,44,69,.2); }
html[data-theme="light"] :is(.display-control,.maintenance-control,.seller-policy-toggle,.seller-policy-days span,.user-editor-row td,.user-editor,.detail-item,.sync-field-change) { color:#24364d; border-color:#d4dee8; background:#f7f9fc; }
html[data-theme="light"] .seller-policy-icon { color:#0b749c; border-color:#bcd5e2; background:#eaf5fa; }
html[data-theme="light"] .seller-policy-days input:checked + span { color:#fff; border-color:#087aa5; background:#087aa5; }
html[data-theme="light"] .seller-policy-status { color:#53657b; border-color:#d0dbe6; background:#f4f7fa; }
html[data-theme="light"] .seller-policy-status.active { color:#086247; border-color:#9dcab9; background:#e9f6f1; }
html[data-theme="light"] .regulatory-map { border-color:#d4dee8; background:radial-gradient(circle at 35% 35%,rgba(16,132,175,.08),transparent 18rem),linear-gradient(145deg,#fff,#edf3f8); }
html[data-theme="light"] .powered-footer { border-color:#cbd8e4; background:linear-gradient(135deg,#e8eff6,#f8fafc); box-shadow:0 12px 30px rgba(31,52,78,.06); }
.multi-uf-marker{display:none}
@media (max-width:1150px){#page-stations .filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){#page-stations .filter-bar,.regulatory-filters,.cof-filters{grid-template-columns:1fr}.sync-state-action{width:100%;}.sync-state-action button{flex:1}}

/* Escopo estadual persistente por usuario */
.state-scope{display:grid;margin:14px 3px 10px;border:1px solid rgba(247,154,66,.2);border-radius:11px;background:rgba(13,27,47,.58);overflow:hidden;transition:.2s}.state-scope.open{border-color:rgba(247,154,66,.5);box-shadow:0 10px 28px rgba(0,0,0,.18),inset 0 0 0 1px rgba(247,154,66,.06)}.state-scope-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:9px 11px;border:0;color:#e9eef6;background:transparent;font:inherit;cursor:pointer}.state-scope-toggle>span{display:flex;align-items:center;gap:8px;font-size:.63rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.state-scope-toggle i{width:7px;height:7px;border-radius:50%;background:#f79a42;box-shadow:0 0 10px rgba(247,154,66,.85)}.state-scope-toggle b{width:7px;height:7px;border-right:1.5px solid #9baabe;border-bottom:1.5px solid #9baabe;transform:rotate(45deg);transition:.2s}.state-scope.open .state-scope-toggle b{transform:rotate(225deg)}.state-scope-options{display:grid;gap:2px;padding:4px 8px 9px;border-top:1px solid rgba(247,154,66,.12)}.state-scope-options label{display:flex;align-items:center;gap:9px;min-height:34px;padding:5px 3px;color:#b6c2d2;font-size:.64rem;font-weight:750;line-height:1.2;cursor:pointer}.state-scope-options label:hover{color:#fff}.state-scope-options input{appearance:none;width:15px;height:15px;min-width:15px;margin:0;border:1px solid #6f8198;border-radius:2px;background:#0b1728;cursor:pointer}.state-scope-options input:checked{border-color:#ff9a31;background:#ff901f;box-shadow:0 0 8px rgba(255,144,31,.3)}.state-scope-options input:checked::after{content:"✓";display:grid;place-items:center;color:#18202a;font-size:11px;font-weight:950;line-height:13px}.state-scope>p{display:none;margin:0;padding:0 10px 8px;color:#788da7;font-size:.55rem;line-height:1.4}.state-scope>p.visible{display:block}.state-scope>p.saving{color:#e7a15e}.state-scope>p.empty{color:#ff8992}html[data-theme="light"] .state-scope{border-color:#d8c4b2;background:#fff8f1}html[data-theme="light"] .state-scope.open{border-color:#dd8b46}html[data-theme="light"] .state-scope-toggle{color:#25364b}html[data-theme="light"] .state-scope-options{border-color:#ead7c5}html[data-theme="light"] .state-scope-options label{color:#43566e}html[data-theme="light"] .state-scope-options input{border-color:#9aa9ba;background:#fff}
@media(max-width:900px){.state-scope{position:relative;min-width:175px;margin:0 5px;overflow:visible}.state-scope-options{position:absolute;z-index:300;top:calc(100% + 5px);left:0;width:220px;border:1px solid rgba(247,154,66,.45);border-radius:10px;background:#0c192b;box-shadow:0 16px 35px rgba(0,0,0,.35)}html[data-theme="light"] .state-scope-options{background:#fff}.state-scope>p{position:absolute;top:calc(100% + 5px);left:225px;width:170px;padding:8px;border-radius:8px;background:#0c192b}}

/* Os relatórios usam exclusivamente o escopo estadual definido no menu lateral. */
#page-stations .filter-bar{grid-template-columns:minmax(280px,1.6fr) repeat(3,minmax(145px,.8fr))}
.cof-filters{grid-template-columns:minmax(260px,1.3fr) repeat(2,minmax(180px,.7fr))}
.regulatory-filters{grid-template-columns:minmax(240px,.7fr) minmax(320px,1.3fr)}
@media(max-width:1150px){#page-stations .filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#page-stations .filter-bar,.regulatory-filters,.cof-filters{grid-template-columns:1fr}}

/* Seletor estadual compacto */
.state-scope{
  display:block;
  margin:14px 3px 12px;
  border-color:rgba(94,127,166,.26);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(14,30,52,.9),rgba(9,20,36,.78));
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.state-scope.open{
  border-color:rgba(247,154,66,.45);
  box-shadow:0 14px 30px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);
}
.state-scope-toggle{
  min-height:58px;
  padding:9px 12px;
  text-align:left;
}
.state-scope-leading{
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
}
.state-scope-toggle .state-scope-leading>i{
  width:8px;
  height:8px;
  flex:0 0 8px;
  background:#71849b;
  box-shadow:0 0 0 4px rgba(113,132,155,.09);
}
.state-scope.has-selection .state-scope-toggle .state-scope-leading>i{
  background:#ff962f;
  box-shadow:0 0 0 4px rgba(255,150,47,.1),0 0 12px rgba(255,150,47,.55);
}
.state-scope-leading>span{
  display:grid;
  min-width:0;
  gap:3px;
}
.state-scope-leading strong{
  color:#edf3fb;
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.09em;
  line-height:1;
  text-transform:uppercase;
}
.state-scope-leading small{
  overflow:hidden;
  max-width:140px;
  color:#788ba3;
  font-size:.57rem;
  font-weight:650;
  letter-spacing:0;
  line-height:1.2;
  text-overflow:ellipsis;
  text-transform:none;
  white-space:nowrap;
}
.state-scope.has-selection .state-scope-leading small{color:#e3a461}
.state-scope-toggle>b{
  width:8px;
  height:8px;
  flex:0 0 8px;
}
.state-scope-options[hidden]{display:none!important}
.state-scope-options{
  display:grid;
  gap:3px;
  padding:9px 9px 10px;
  border-top:1px solid rgba(111,142,179,.16);
  background:rgba(4,13,25,.2);
}
.state-scope-options-head{
  display:grid;
  gap:3px;
  padding:1px 3px 7px;
}
.state-scope-options-head strong{
  color:#dfe8f3;
  font-size:.61rem;
  letter-spacing:.02em;
}
.state-scope-options-head small{
  color:#6f829a;
  font-size:.54rem;
}
.state-scope-options label{
  min-height:32px;
  padding:5px 7px;
  border:1px solid transparent;
  border-radius:7px;
  transition:background .15s,border-color .15s,color .15s;
}
.state-scope-options label:hover{
  border-color:rgba(111,142,179,.2);
  background:rgba(68,96,130,.13);
}
.state-scope-options label:has(input:checked){
  border-color:rgba(247,154,66,.22);
  color:#f4f7fb;
  background:rgba(247,154,66,.08);
}
.state-scope-options input{
  width:16px;
  height:16px;
  min-width:16px;
  border-radius:4px;
}
.state-scope>p{display:none!important}
html[data-theme="light"] .state-scope{
  border-color:#d7e0e9;
  background:linear-gradient(145deg,#fff,#f3f7fa);
  box-shadow:0 5px 14px rgba(35,57,82,.05);
}
html[data-theme="light"] .state-scope-leading strong{color:#26394f}
html[data-theme="light"] .state-scope-leading small{color:#708198}
html[data-theme="light"] .state-scope.has-selection .state-scope-leading small{color:#b86927}
html[data-theme="light"] .state-scope-options{border-color:#dce5ed;background:#f7fafc}
html[data-theme="light"] .state-scope-options-head strong{color:#34485f}
html[data-theme="light"] .state-scope-options-head small{color:#7b8b9e}
html[data-theme="light"] .state-scope-options label:has(input:checked){color:#293d54;background:#fff2e5}
@media(max-width:900px){
  .state-scope{min-width:190px;margin:0 5px;overflow:visible}
  .state-scope-options{top:calc(100% + 7px);width:230px;padding:10px;border-radius:12px;background:#0a1728}
  .state-scope>p{display:none!important}
}

/* Direcao visual premium do seletor territorial */
.state-scope{
  border:1px solid rgba(53,91,130,.48);
  border-radius:14px;
  background:linear-gradient(150deg,rgba(16,34,58,.98),rgba(7,18,33,.96));
  box-shadow:0 12px 30px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.035);
}
.state-scope.open{border-color:rgba(247,154,66,.68);box-shadow:0 16px 38px rgba(0,0,0,.26),0 0 0 1px rgba(247,154,66,.06)}
.state-scope-toggle{min-height:64px;padding:10px 12px}
.state-scope-leading{gap:10px}
.state-scope-symbol{
  display:grid!important;
  width:32px;
  height:32px;
  flex:0 0 32px;
  place-items:center;
  border:1px solid rgba(91,135,178,.3);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(29,67,104,.62),rgba(12,31,53,.72));
  color:#7f9dbb;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.state-scope-symbol svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.state-scope.has-selection .state-scope-symbol{border-color:rgba(247,154,66,.42);color:#ff9a3d;background:linear-gradient(145deg,rgba(247,154,66,.18),rgba(84,49,22,.18));box-shadow:0 0 18px rgba(247,154,66,.1),inset 0 1px 0 rgba(255,255,255,.06)}
.state-scope-leading>span:last-child{gap:4px}
.state-scope-leading strong{font-size:.66rem;letter-spacing:.11em}
.state-scope-leading small{max-width:105px;color:#70849c;font-size:.55rem}
.state-scope-meta{display:flex!important;align-items:center;gap:10px}
.state-scope-meta em{
  display:grid;
  min-width:22px;
  height:22px;
  padding:0 5px;
  place-items:center;
  border:1px solid rgba(107,137,171,.25);
  border-radius:7px;
  background:rgba(1,10,21,.34);
  color:#70849b;
  font-size:.59rem;
  font-style:normal;
  font-weight:900;
}
.state-scope.has-selection .state-scope-meta em{border-color:rgba(247,154,66,.32);background:rgba(247,154,66,.1);color:#ffab58}
.state-scope-meta b{width:7px;height:7px;border-right:1.5px solid #71849c;border-bottom:1.5px solid #71849c;transform:rotate(45deg);transition:.2s}
.state-scope.open .state-scope-meta b{transform:rotate(225deg)}
.state-scope-options{gap:5px;padding:10px;border-top-color:rgba(70,107,145,.26);background:linear-gradient(180deg,rgba(5,16,30,.36),rgba(3,12,24,.58))}
.state-scope-options-head{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:2px 2px 8px}
.state-scope-options-head>span:first-child{display:grid;gap:3px;min-width:0}
.state-scope-options-head strong{font-size:.58rem;letter-spacing:.03em}
.state-scope-options-head small{font-size:.5rem}
.state-scope-actions{display:flex;gap:3px}
.state-scope-actions button{
  min-height:0;
  padding:4px 6px;
  border:1px solid rgba(92,127,163,.27);
  border-radius:6px;
  background:rgba(18,43,69,.6);
  color:#8da3bb;
  font-size:.48rem;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}
.state-scope-actions button:hover{border-color:rgba(247,154,66,.38);color:#ffae5e;background:rgba(247,154,66,.08)}
.state-scope-options label{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 18px;
  min-height:38px;
  gap:8px;
  padding:5px 7px 5px 5px;
  border:1px solid rgba(63,97,132,.16);
  border-radius:9px;
  background:rgba(12,30,50,.38);
}
.state-scope-options label:hover{transform:translateX(2px);border-color:rgba(92,134,176,.34);background:rgba(24,51,79,.5)}
.state-code{
  display:grid;
  width:28px;
  height:26px;
  place-items:center;
  border:1px solid rgba(91,130,169,.3);
  border-radius:7px;
  background:rgba(4,15,29,.5);
  color:#7f96af;
  font-size:.53rem;
  font-weight:950;
  letter-spacing:.04em;
}
.state-name{overflow:hidden;color:#aebdcd;font-size:.57rem;font-weight:800;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.state-scope-options label:has(input:checked){border-color:rgba(247,154,66,.38);background:linear-gradient(90deg,rgba(247,154,66,.13),rgba(247,154,66,.035));box-shadow:inset 3px 0 0 #f79435}
.state-scope-options label:has(input:checked) .state-code{border-color:rgba(247,154,66,.48);background:rgba(247,154,66,.14);color:#ffad5e}
.state-scope-options label:has(input:checked) .state-name{color:#f0f4f8}
.state-scope-options input{
  width:16px;
  height:16px;
  min-width:16px;
  align-self:center;
  border:1px solid #657b94;
  border-radius:50%;
  background:#071424;
}
.state-scope-options input:checked{border:4px solid #f89a3c;background:#fff;box-shadow:0 0 0 3px rgba(248,154,60,.1)}
.state-scope-options input:checked::after{content:none}
html[data-theme="light"] .state-scope{border-color:#d3dee9;background:linear-gradient(145deg,#fff,#f3f7fa)}
html[data-theme="light"] .state-scope-symbol{border-color:#d1dde8;background:#edf4f8;color:#66809a}
html[data-theme="light"] .state-scope-options{background:#f5f9fc}
html[data-theme="light"] .state-scope-options label{border-color:#dce6ee;background:#fff}
html[data-theme="light"] .state-name{color:#4d6177}
html[data-theme="light"] .state-code{border-color:#d2dde7;background:#f3f7fa;color:#61778e}
html[data-theme="light"] .state-scope-options label:has(input:checked){background:#fff5eb}
@media(max-width:900px){.state-scope-options{width:250px}}

/* Versao compacta: mesma estrutura simples da navegacao */
.state-scope{
  margin:12px 3px 10px;
  border:1px solid rgba(247,154,66,.34);
  border-radius:11px;
  background:rgba(10,24,42,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.state-scope.open{border-color:rgba(247,154,66,.52);box-shadow:0 10px 24px rgba(0,0,0,.18)}
.state-scope-toggle{min-height:46px;padding:7px 10px}
.state-scope-leading{gap:8px}
.state-scope-leading>i{
  display:block;
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#71849a;
  box-shadow:0 0 0 3px rgba(113,132,154,.08);
}
.state-scope.has-selection .state-scope-leading>i{background:#f79538;box-shadow:0 0 9px rgba(247,149,56,.5)}
.state-scope-leading>span{display:grid;gap:2px;min-width:0}
.state-scope-leading strong{
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.055em;
}
.state-scope-leading small{max-width:130px;color:#75879d;font-size:.49rem}
.state-scope.has-selection .state-scope-leading small{color:#d99451}
.state-scope-toggle>b{
  display:block;
  width:7px;
  height:7px;
  border-right:1.5px solid #76899f;
  border-bottom:1.5px solid #76899f;
  transform:rotate(45deg);
  transition:.2s;
}
.state-scope.open .state-scope-toggle>b{transform:rotate(225deg)}
.state-scope-options{
  display:grid;
  gap:0;
  padding:4px 7px 6px;
  border-top:1px solid rgba(247,154,66,.12);
  background:rgba(3,12,23,.22);
}
.state-scope-options-head{
  display:grid;
  justify-content:initial;
  gap:1px;
  padding:2px 4px 4px;
}
.state-scope-options-head strong{color:#9dafc2;font-size:.58rem;letter-spacing:.04em;text-transform:uppercase}
.state-scope-options-head small{color:#61768e;font-size:.53rem}
.state-scope-options label{
  display:flex;
  min-height:25px;
  grid-template-columns:none;
  gap:8px;
  padding:2px 5px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#aebdcd;
  font-size:.66rem;
  font-weight:800;
  line-height:1.1;
  transform:none;
  box-shadow:none;
}
.state-scope-options label:hover{border:0;background:rgba(64,96,130,.13);transform:none}
.state-scope-options label:has(input:checked){border:0;background:rgba(247,154,66,.075);box-shadow:none;color:#f1f4f8}
.state-scope-options input{
  box-sizing:border-box;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
  margin:0;
  padding:0!important;
  border:1px solid #6f8298;
  border-radius:3px;
  background:#081625;
  box-shadow:none;
}
.state-scope-options input:checked{border:1px solid #f79435;background:#f79435;box-shadow:0 0 7px rgba(247,148,53,.25)}
.state-scope-options input:checked::after{content:"\2713";display:grid;width:12px;height:12px;place-items:center;color:#17202a;font-size:9px;font-weight:950;line-height:1}
html[data-theme="light"] .state-scope{border-color:#dfc3a8;background:#fffaf5}
html[data-theme="light"] .state-scope-options{background:#fff;border-color:#ecd8c6}
html[data-theme="light"] .state-scope-options label{background:transparent;color:#52667d}
html[data-theme="light"] .state-scope-options label:has(input:checked){background:#fff2e5;color:#293d54}
@media(max-width:900px){.state-scope{min-width:180px}.state-scope-options{width:215px}}

/* Dossie cadastral do posto - primeira etapa HML */
.station-dossier-dialog{width:min(1180px,calc(100vw - 32px));max-width:1180px;max-height:calc(100vh - 32px);padding:0;overflow:auto;border-color:rgba(76,188,224,.38);background:#071321;box-shadow:0 30px 100px rgba(0,0,0,.76),0 0 0 1px rgba(71,194,230,.08)}
.station-dossier-dialog .dialog-close{position:sticky;top:10px;float:right;z-index:8;margin:10px 10px -52px 0;background:rgba(7,19,33,.92);backdrop-filter:blur(8px)}
.station-dossier-dialog .station-dossier-section{margin:0;padding:1.5rem 1.6rem 1.6rem;border:0;border-radius:0;background:radial-gradient(circle at 88% 0,rgba(48,177,217,.1),transparent 24rem),linear-gradient(145deg,rgba(10,25,45,.99),rgba(5,14,27,.99));box-shadow:none}
.station-dossier-section{margin:0 2rem 2rem;padding:1.25rem;border:1px solid rgba(62,171,213,.24);border-radius:18px;background:radial-gradient(circle at 88% 0,rgba(48,177,217,.08),transparent 22rem),linear-gradient(145deg,rgba(10,25,45,.97),rgba(5,14,27,.98));box-shadow:0 18px 42px rgba(0,0,0,.16)}
.station-dossier-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1rem}.station-dossier-heading h3{margin:.2rem 0 .3rem;color:#f4f7fb;font-size:1.15rem}.station-dossier-heading>div:first-child>p:last-child{max-width:650px;margin:0;color:#8396b0;font-size:.76rem;line-height:1.45}.station-dossier-progress{display:grid;min-width:170px;gap:5px}.station-dossier-progress>span{color:#9db0c7;font-size:.65rem;text-align:right}.station-dossier-progress>span b{color:#52cce9;font-size:.9rem}.station-dossier-progress>div{height:5px;overflow:hidden;border-radius:999px;background:#172941}.station-dossier-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f79335,#48c6e6);box-shadow:0 0 12px rgba(65,194,226,.35)}.station-dossier-progress small{color:#657c98;font-size:.54rem;text-align:right}.station-dossier-reference{display:grid;grid-template-columns:auto auto auto minmax(0,1fr);align-items:center;gap:10px;margin-bottom:12px;padding:10px 12px;border:1px solid rgba(247,151,53,.2);border-radius:11px;background:rgba(247,151,53,.055)}.station-dossier-reference>span{color:#ce8744;font-size:.52rem;font-weight:900;letter-spacing:.1em}.station-dossier-reference>strong{color:#fff;font-size:.76rem}.station-dossier-reference>button{min-height:0;padding:5px 8px;border:1px solid rgba(247,151,53,.28);border-radius:7px;color:#ffad5c;background:rgba(247,151,53,.08);font:inherit;font-size:.55rem;font-weight:800;cursor:pointer}.station-dossier-reference>button:hover{background:rgba(247,151,53,.16)}.station-dossier-reference>small{overflow:hidden;color:#7087a1;font-size:.59rem;text-align:right;text-overflow:ellipsis;white-space:nowrap}.station-dossier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.station-dossier-card{display:grid;min-width:0;padding:13px;border:1px solid #203751;border-radius:13px;background:linear-gradient(145deg,rgba(9,23,41,.92),rgba(5,15,28,.94));transition:border-color .18s,transform .18s,box-shadow .18s}.station-dossier-card:hover{transform:translateY(-2px);border-color:#315273;box-shadow:0 13px 25px rgba(0,0,0,.15)}.station-dossier-card.is-ready{border-color:rgba(56,202,145,.27)}.station-dossier-card.is-assisted{border-color:rgba(247,151,53,.28)}.station-dossier-card.is-unavailable{opacity:.72}.station-dossier-card>header{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px}.station-dossier-source{display:grid;width:36px;height:36px;place-items:center;border:1px solid rgba(94,131,169,.28);border-radius:10px;color:#8da6c0;background:#10243a;font-size:.55rem;font-weight:950;letter-spacing:.04em}.station-dossier-source.federal{color:#65d8a4;background:rgba(49,191,128,.1)}.station-dossier-source.state{color:#ffad5c;background:rgba(247,151,53,.1)}.station-dossier-source.environment{color:#8edc87;background:rgba(78,179,92,.1)}.station-dossier-source.anp{color:#5cd2ee;background:rgba(55,183,217,.1)}.station-dossier-card header div{min-width:0}.station-dossier-card header small{display:block;color:#647e9b;font-size:.48rem;font-weight:900;letter-spacing:.09em}.station-dossier-card h4{overflow:hidden;margin:3px 0 0;color:#eef4fb;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.station-dossier-card header em{padding:4px 7px;border-radius:999px;color:#8297b0;background:rgba(110,137,168,.1);font-size:.49rem;font-style:normal;font-weight:850;white-space:nowrap}.station-dossier-card.is-ready header em{color:#57d39b;background:rgba(56,202,145,.1)}.station-dossier-card.is-assisted header em{color:#ffad5c;background:rgba(247,151,53,.1)}.station-dossier-card>p{min-height:35px;margin:11px 0 9px;color:#8194ad;font-size:.62rem;line-height:1.45}.station-dossier-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.station-dossier-facts>span{display:grid;gap:3px;min-width:0;padding:7px 8px;border:1px solid rgba(100,133,170,.12);border-radius:8px;background:rgba(3,12,23,.34)}.station-dossier-facts small{color:#5e7590;font-size:.48rem}.station-dossier-facts b{overflow:hidden;color:#c9d6e5;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.station-dossier-card>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:9px;border-top:1px solid rgba(97,128,163,.12)}.station-dossier-card>footer>span{color:#617991;font-size:.52rem;line-height:1.35}.station-dossier-card footer a,.station-dossier-card footer button{min-height:0;padding:6px 8px;border:1px solid rgba(72,190,224,.24);border-radius:7px;color:#63cfe9;background:rgba(49,168,204,.07);font:inherit;font-size:.53rem;font-weight:850;text-decoration:none;white-space:nowrap}.station-dossier-card footer button:disabled{color:#63778e;border-color:rgba(101,125,151,.16);background:rgba(101,125,151,.05)}.station-dossier-card footer>div{display:flex;gap:5px}.station-dossier-note{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px 11px;border:1px dashed rgba(89,138,177,.25);border-radius:10px;background:rgba(31,90,123,.06)}.station-dossier-note span{flex:none;padding:4px 6px;border-radius:6px;color:#f6a657;background:rgba(247,151,53,.1);font-size:.51rem;font-weight:900;text-transform:uppercase}.station-dossier-note p{margin:0;color:#748ba4;font-size:.58rem;line-height:1.4}
.station-dossier-heading-actions{display:flex;align-items:center;gap:12px}.station-dossier-generate{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(247,151,53,.38);border-radius:10px;color:#fff;background:linear-gradient(135deg,rgba(247,151,53,.19),rgba(247,151,53,.07));text-decoration:none;transition:.18s}.station-dossier-generate:hover{transform:translateY(-1px);border-color:#f79a42;background:rgba(247,151,53,.2)}.station-dossier-generate>span{display:grid;width:31px;height:31px;place-items:center;border-radius:8px;color:#08131f;background:#f79a42;font-size:.53rem;font-weight:950}.station-dossier-generate>div{display:grid;gap:2px}.station-dossier-generate b{font-size:.65rem;white-space:nowrap}.station-dossier-generate small{color:#a8896e;font-size:.5rem;white-space:nowrap}
html[data-theme="light"] .station-dossier-section{border-color:#cadde7;background:linear-gradient(145deg,#fff,#f1f6f9);box-shadow:0 15px 36px rgba(34,56,82,.07)}html[data-theme="light"] .station-dossier-heading h3{color:#1b2b40}html[data-theme="light"] .station-dossier-card{border-color:#d8e3eb;background:#fff}html[data-theme="light"] .station-dossier-card h4,html[data-theme="light"] .station-dossier-reference>strong{color:#24374d}html[data-theme="light"] .station-dossier-facts>span{background:#f6f9fb}html[data-theme="light"] .station-dossier-facts b{color:#40546a}html[data-theme="light"] .station-dossier-reference{background:#fff7ef}
html[data-theme="light"] .station-dossier-dialog{border-color:#bfd7e3;background:#f4f8fb}html[data-theme="light"] .station-dossier-dialog .station-dossier-section{background:linear-gradient(145deg,#fff,#f1f6f9)}html[data-theme="light"] .station-dossier-dialog .dialog-close{background:rgba(255,255,255,.92)}
html[data-theme="light"] .station-dossier-generate{color:#25384d;background:#fff7ef}
@media(max-width:760px){.station-dossier-section{margin:0 1rem 1.5rem;padding:1rem}.station-dossier-dialog .station-dossier-section{margin:0;padding:1rem}.station-dossier-heading{flex-direction:column}.station-dossier-heading-actions{width:100%;align-items:stretch;flex-direction:column}.station-dossier-generate{justify-content:center}.station-dossier-progress{width:100%}.station-dossier-progress>span,.station-dossier-progress small{text-align:left}.station-dossier-reference{grid-template-columns:1fr auto}.station-dossier-reference>span,.station-dossier-reference>small{grid-column:1/-1;text-align:left}.station-dossier-grid{grid-template-columns:1fr}.station-dossier-card>footer{align-items:flex-start;flex-direction:column}.station-dossier-note{align-items:flex-start;flex-direction:column}}

/* Consulta assistida e arquivo de comprovantes CADESP */
.station-cadesp-card{grid-column:1/-1}.cadesp-captcha-panel[hidden]{display:none}.cadesp-captcha-panel{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:12px;margin-top:12px;padding:12px;border:1px solid rgba(247,151,53,.24);border-radius:11px;background:linear-gradient(135deg,rgba(247,151,53,.075),rgba(27,115,153,.07))}.cadesp-captcha-copy{display:flex;flex-direction:column;justify-content:center;gap:4px}.cadesp-captcha-copy strong{color:#f3f7fb;font-size:.7rem}.cadesp-captcha-copy span{color:#8197b0;font-size:.56rem;line-height:1.45}.cadesp-captcha-form{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:end;gap:9px}.cadesp-captcha-image{display:grid;gap:4px}.cadesp-captcha-image>span,.cadesp-captcha-form label>span{display:block;color:#728aa5;font-size:.47rem;font-weight:900;letter-spacing:.07em}.cadesp-captcha-image img{display:block;width:112px;height:50px;border:4px solid #fff;border-radius:7px;background:#fff;object-fit:contain}.cadesp-captcha-form label{display:grid;gap:4px}.cadesp-captcha-form input{width:100%;height:38px;padding:0 10px;border:1px solid #2c4968;border-radius:8px;color:#f4f7fb;background:#071423;font:inherit;font-size:.68rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;outline:none}.cadesp-captcha-form input:focus{border-color:#f39a43;box-shadow:0 0 0 3px rgba(247,151,53,.1)}.cadesp-captcha-form button{min-height:38px;padding:0 12px;font-size:.57rem;white-space:nowrap}.cadesp-status{grid-column:1/-1;padding-top:8px;border-top:1px solid rgba(105,137,170,.14);color:#7188a2;font-size:.52rem}.cadesp-status.loading{color:#60cae5}.cadesp-status.success{color:#5dd89f}.cadesp-status.error{color:#ff8d9b}.cadesp-document-history{display:grid;grid-template-columns:minmax(160px,.55fr) minmax(0,1.45fr);align-items:start;gap:12px;margin-top:11px;padding-top:10px;border-top:1px solid rgba(96,129,164,.12)}.cadesp-document-history>div:first-child{display:grid;gap:3px}.cadesp-document-history>div:first-child strong{color:#cbd8e6;font-size:.61rem}.cadesp-document-history>div:first-child span{color:#647b95;font-size:.5rem;line-height:1.4}.cadesp-document-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.cadesp-document-list>a{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 8px;border:1px solid rgba(75,181,213,.16);border-radius:8px;color:inherit;background:rgba(14,48,69,.18);text-decoration:none}.cadesp-document-list>a:hover{border-color:rgba(247,151,53,.34);background:rgba(247,151,53,.07)}.cadesp-document-list>a>span{display:grid;width:30px;height:30px;place-items:center;border-radius:7px;color:#ffad5c;background:rgba(247,151,53,.12);font-size:.48rem;font-weight:950}.cadesp-document-list>a>div{display:grid;min-width:0;gap:2px}.cadesp-document-list b{overflow:hidden;color:#d4deea;font-size:.55rem;text-overflow:ellipsis;white-space:nowrap}.cadesp-document-list small{overflow:hidden;color:#607792;font-size:.46rem;text-overflow:ellipsis;white-space:nowrap}.cadesp-document-list em{color:#62cce6;font-size:.48rem;font-style:normal}.cadesp-document-empty{align-self:center;color:#657d97;font-size:.54rem}
.pr-sintegra-captcha-panel{margin:12px 0 0}.pr-sintegra-captcha-panel .cadesp-captcha-image img{width:190px;height:72px;image-rendering:auto}.pr-sintegra-captcha-panel .cadesp-captcha-copy strong{color:#ffb15f}.pr-sintegra-captcha-panel .cadesp-captcha-form input{height:46px;font-size:.82rem;text-transform:none}
.station-cetesb-card{grid-column:1/-1}.station-cetesb-card>.cadesp-status{margin-top:10px}.cetesb-processes{display:grid;grid-template-columns:minmax(160px,.55fr) minmax(0,1.45fr);align-items:start;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(96,129,164,.12)}.cetesb-processes>div:first-child{display:grid;gap:3px}.cetesb-processes>div:first-child strong{color:#cbd8e6;font-size:.61rem}.cetesb-processes>div:first-child span{color:#647b95;font-size:.5rem}.cetesb-process-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.cetesb-process-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:7px 8px;border:1px solid rgba(75,181,213,.13);border-radius:8px;background:rgba(14,48,69,.15)}.cetesb-process-list article>div{display:grid;min-width:0;gap:2px}.cetesb-process-list strong{overflow:hidden;color:#cad7e5;font-size:.52rem;text-overflow:ellipsis;white-space:nowrap}.cetesb-process-list small{color:#627b96;font-size:.45rem}.cetesb-process-list article>span{color:#62cce6;font-size:.49rem;font-weight:850}.cetesb-process-list em{grid-column:1/-1;color:#8ba0b7;font-size:.45rem;font-style:normal}
.cadesp-document-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border:1px solid rgba(75,181,213,.16);border-radius:8px;background:rgba(14,48,69,.18);overflow:hidden}.cadesp-document-list>article:hover{border-color:rgba(247,151,53,.34);background:rgba(247,151,53,.07)}.cadesp-document-list>article>a{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:7px 8px;color:inherit;text-decoration:none}.cadesp-document-list>article>a>span{display:grid;width:30px;height:30px;place-items:center;border-radius:7px;color:#ffad5c;background:rgba(247,151,53,.12);font-size:.48rem;font-weight:950}.cadesp-document-list>article>a>div{display:grid;min-width:0;gap:2px}.cadesp-document-list>article>button{min-height:0;padding:0 9px;border:0;border-left:1px solid rgba(255,112,131,.16);border-radius:0;color:#ff8d9b;background:rgba(255,94,117,.06);font:inherit;font-size:.48rem;font-weight:850;cursor:pointer}.cadesp-document-list>article>button:hover{color:#fff;background:rgba(255,94,117,.22)}.cadesp-document-list>article>button:disabled{opacity:.6;cursor:wait}
html[data-theme="light"] .cadesp-captcha-panel{border-color:#efcfad;background:linear-gradient(135deg,#fff8f0,#f4fbfd)}html[data-theme="light"] .cadesp-captcha-copy strong{color:#26394d}html[data-theme="light"] .cadesp-captcha-form input{color:#24374d;border-color:#c9d7e3;background:#fff}html[data-theme="light"] .cadesp-document-history>div:first-child strong,html[data-theme="light"] .cadesp-document-list b{color:#30455b}html[data-theme="light"] .cadesp-document-list>a{border-color:#dbe5ec;background:#f7fafc}
html[data-theme="light"] .cadesp-document-list>article{border-color:#dbe5ec;background:#f7fafc}
@media(max-width:900px){.cadesp-captcha-panel,.cadesp-document-history{grid-template-columns:1fr}.cadesp-captcha-form{grid-template-columns:auto minmax(120px,1fr)}.cadesp-captcha-form button{grid-column:1/-1}.cadesp-document-list{grid-template-columns:1fr}}@media(max-width:520px){.cadesp-captcha-form{grid-template-columns:1fr}.cadesp-captcha-image img{width:140px;height:62px}.cadesp-document-list{grid-template-columns:1fr}}

/* CADESP: CAPTCHA ampliado para leitura e digitação confortáveis. */
.cadesp-captcha-image img{width:220px;height:96px;border-width:6px;border-radius:10px;object-fit:fill;filter:contrast(1.12) saturate(1.08);box-shadow:0 7px 20px rgba(0,0,0,.3)}
.cadesp-captcha-form input{height:50px;padding-inline:13px;border-radius:9px;font-size:.88rem;font-weight:900;letter-spacing:.18em}
.cadesp-captcha-form button{min-height:50px;padding-inline:15px;font-size:.62rem}
@media(max-width:520px){.cadesp-captcha-image img{width:min(100%,240px);height:104px}}

/* CADESP: fluxo oficial assistido, sem tentativa de automação bloqueada pelo portal. */
.cadesp-assisted-status{margin-top:10px;padding:10px 12px;border:1px solid rgba(79,191,222,.2);border-radius:9px;color:#91a8bf;background:rgba(48,154,187,.055);font-size:.57rem;line-height:1.5}
.cadesp-assisted-status.success{color:#69d7a3;border-color:rgba(73,204,145,.25);background:rgba(45,176,119,.07)}
.cadesp-connector-detection{display:block;margin-top:7px;color:#ff8d9b;font-size:.58rem;font-weight:800;letter-spacing:.02em}
.cadesp-connector-detection.is-ready{color:#63dca5}
@media(max-width:900px){.cetesb-processes{grid-template-columns:1fr}.cetesb-process-list{grid-template-columns:1fr}}

/* Workspace unificado do dossie: Postos Autorizados e COF */
.guided-dossier-flow {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 145, 41, .42);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 137, 31, .09), rgba(20, 196, 231, .045) 55%, rgba(4, 15, 29, .28));
}
.guided-dossier-flow > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.guided-dossier-flow > header span {
  color: #ff9a38;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.guided-dossier-flow > header h4 { margin: 3px 0; color: #f5f8ff; font-size: 16px; }
.guided-dossier-flow > header p { margin: 0; color: #92a6c3; font-size: 12px; }
.guided-dossier-flow > header button {
  flex: none;
  min-width: 140px;
  padding: 11px 16px;
  border: 1px solid #ff922f;
  border-radius: 10px;
  color: #07111f;
  background: linear-gradient(135deg, #ffc16c, #ff8c28);
  font-weight: 900;
  cursor: pointer;
}
.guided-dossier-flow > header button:disabled { cursor: wait; opacity: .72; }
.guided-dossier-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.guided-dossier-steps article {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #233b59;
  border-radius: 10px;
  background: rgba(5, 17, 32, .72);
}
.guided-dossier-steps article > b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #ffab4c;
  background: rgba(255, 143, 31, .12);
}
.guided-dossier-steps article strong,
.guided-dossier-steps article small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guided-dossier-steps article strong { color: #eaf1fb; font-size: 11px; }
.guided-dossier-steps article small { margin-top: 2px; color: #7f93af; font-size: 9px; }
.guided-dossier-steps article em { color: #f1a44d; font-size: 9px; font-style: normal; font-weight: 800; }
.guided-dossier-steps article.is-done { border-color: rgba(66, 205, 154, .36); }
.guided-dossier-steps article.is-done > b { color: #62dfad; background: rgba(54, 199, 143, .12); }
.guided-dossier-steps article.is-done em { color: #62dfad; }
.guided-dossier-steps article.is-inapt{position:relative;overflow:hidden;border-color:rgba(244,79,94,.72);box-shadow:inset 0 0 0 1px rgba(244,79,94,.16)}
.guided-dossier-steps article.is-inapt:before{position:absolute;inset:0 0 auto;height:4px;background:#ef4659;content:""}
.guided-dossier-steps article.is-inapt>b{color:#fff;background:#d93549}.guided-dossier-steps article.is-inapt em{color:#ff7e8c}
.guided-dossier-feedback {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #9fb2cc;
  background: rgba(4, 14, 27, .58);
  font-size: 11px;
}
.guided-dossier-feedback i { width: 7px; height: 7px; border-radius: 50%; background: #6f829d; }
.guided-dossier-feedback.is-loading i { background: #ff982f; box-shadow: 0 0 0 5px rgba(255, 152, 47, .12); animation: guided-flow-pulse 1s infinite; }
.guided-dossier-feedback.is-waiting { color: #ffd08a; }
.guided-dossier-feedback.is-waiting i { background: #ffac45; }
.guided-dossier-feedback.is-complete { color: #65dbad; }
.guided-dossier-feedback.is-complete i { background: #47d49b; }
.guided-dossier-feedback.is-error { color: #ff8f9d; }
.guided-dossier-feedback.is-error i { background: #ff6f80; }
@keyframes guided-flow-pulse { 50% { opacity: .35; transform: scale(.72); } }
@media (max-width: 1050px) { .guided-dossier-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .guided-dossier-flow > header { align-items: stretch; flex-direction: column; }
  .guided-dossier-flow > header button { width: 100%; }
  .guided-dossier-steps { grid-template-columns: 1fr; }
}
.station-dossier-dialog{width:min(1240px,calc(100vw - 28px));max-width:1240px}
.station-dossier-dialog .station-dossier-section.is-workspace{min-height:0;padding:28px 30px 24px;background:radial-gradient(circle at 88% -10%,rgba(49,188,229,.16),transparent 31rem),radial-gradient(circle at 5% 10%,rgba(247,151,53,.1),transparent 23rem),linear-gradient(145deg,#0a1a2e,#050e1b 70%)}
.station-dossier-dialog .station-dossier-section.is-license-center{min-height:570px;padding:34px 34px 28px}
.station-dossier-section.is-license-center .guided-dossier-flow{gap:22px;margin:28px 0 20px;padding:28px 24px;border-radius:20px}
.station-dossier-section.is-license-center .guided-dossier-flow>header h4{margin:7px 0 4px;font-size:1.35rem}
.station-dossier-section.is-license-center .guided-dossier-flow>header p{font-size:.78rem}
.station-dossier-section.is-license-center .guided-dossier-flow>header button{min-width:170px;padding:16px 22px;border-radius:13px;font-size:.88rem}
.station-dossier-section.is-license-center .guided-dossier-steps{gap:10px}
.station-dossier-section.is-license-center .guided-dossier-steps article{grid-template-columns:44px minmax(0,1fr) auto;min-height:76px;padding:13px 14px;border-radius:13px}
.station-dossier-section.is-license-center .guided-dossier-steps article>b{width:42px;height:42px;border-radius:10px;font-size:1rem}
.station-dossier-section.is-license-center .guided-dossier-steps article strong{font-size:.72rem}.station-dossier-section.is-license-center .guided-dossier-steps article small{font-size:.57rem}.station-dossier-section.is-license-center .guided-dossier-steps article em{font-size:.56rem}
.station-dossier-section.is-license-center .guided-dossier-feedback{min-height:42px;padding:11px 14px;border-radius:11px;font-size:.68rem}
.station-dossier-section.is-license-center>.station-dossier-grid,.station-dossier-section.is-license-center>.station-dossier-note{display:none!important}
.station-dossier-generate.is-disabled.is-inapt{border-color:rgba(239,70,89,.55);color:#ff8995;background:rgba(190,46,62,.12)}.station-dossier-generate.is-disabled.is-inapt>span{color:#fff;background:#c73547}
.license-collector-card{border-color:rgba(55,199,219,.3)!important;background:radial-gradient(circle at 100% 0,rgba(55,199,219,.12),transparent 18rem),var(--panel)!important}.license-collector-card .integration-brand>span{font-size:.62rem}.license-collector-downloads{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.license-collector-downloads a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border-radius:9px;font-size:.62rem;font-weight:850;text-decoration:none}.license-collector-downloads a.secondary{border:1px solid rgba(94,183,211,.32);color:#6bd4ef;background:rgba(51,161,192,.08)}.license-collector-downloads a.primary{color:#07131f;background:#f79735}@media(max-width:650px){.license-collector-downloads{width:100%}.license-collector-downloads a{flex:1 1 100%}}
.station-dossier-section.is-workspace .station-dossier-heading{align-items:center;margin:0 0 18px;padding:0 52px 0 2px}
.station-dossier-section.is-workspace .station-dossier-heading .eyebrow{margin-bottom:7px;font-size:.62rem;letter-spacing:.19em}
.station-dossier-section.is-workspace .station-dossier-heading h3{margin:0 0 5px;font-size:1.55rem;letter-spacing:-.025em}
.station-dossier-section.is-workspace .station-dossier-heading>div:first-child>p:last-child{max-width:720px;font-size:.78rem;line-height:1.5}
.station-dossier-section.is-workspace .station-dossier-heading-actions{padding:8px;border:1px solid rgba(92,128,166,.18);border-radius:15px;background:rgba(4,13,25,.42)}
.station-dossier-section.is-workspace .station-dossier-generate{min-height:46px;padding:7px 12px;border-radius:11px}
.station-dossier-section.is-workspace .station-dossier-generate>span{width:34px;height:34px}
.station-dossier-section.is-workspace .station-dossier-generate b{font-size:.7rem}
.station-dossier-section.is-workspace .station-dossier-progress{min-width:185px;padding:0 6px}
.station-dossier-section.is-workspace .station-dossier-progress>span{font-size:.67rem}
.station-dossier-section.is-workspace .station-dossier-progress>span b{font-size:1rem}
.station-dossier-section.is-workspace .station-dossier-progress>div{height:7px}
.station-dossier-section.is-workspace .station-dossier-progress small{font-size:.55rem}
.station-dossier-section.is-workspace .station-dossier-reference{grid-template-columns:auto auto auto minmax(0,1fr);gap:12px;margin:0 0 16px;padding:13px 15px;border-color:rgba(247,151,53,.3);border-radius:14px;background:linear-gradient(90deg,rgba(247,151,53,.13),rgba(247,151,53,.035));box-shadow:inset 3px 0 0 #f79735}
.station-dossier-section.is-workspace .station-dossier-reference>span{font-size:.56rem}
.station-dossier-section.is-workspace .station-dossier-reference>strong{font-size:.88rem;letter-spacing:.035em}
.station-dossier-section.is-workspace .station-dossier-reference>button{padding:7px 10px;font-size:.58rem}
.station-dossier-section.is-workspace .station-dossier-reference>small{font-size:.61rem}
.station-dossier-section.is-workspace .station-dossier-reference>small{color:#dce6f1;font-size:.72rem;font-weight:850;letter-spacing:.015em}
.station-dossier-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px;padding:7px;border:1px solid rgba(80,119,157,.2);border-radius:17px;background:rgba(3,11,22,.46);box-shadow:0 14px 34px rgba(0,0,0,.16)}
.station-dossier-tab{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 10px;min-width:0;padding:11px 12px;border:1px solid transparent;border-radius:12px;color:#91a4ba;background:transparent;font:inherit;text-align:left;cursor:pointer;transition:transform .16s,border-color .16s,background .16s,box-shadow .16s}
.station-dossier-tab:hover{border-color:rgba(83,181,214,.28);background:rgba(26,70,100,.18);transform:translateY(-1px)}
.station-dossier-tab>span{display:grid;grid-row:1/3;width:42px;height:42px;place-items:center;border:1px solid rgba(96,139,177,.3);border-radius:11px;color:#8fa8c0;background:#10243a;font-size:.61rem;font-weight:950;letter-spacing:.04em}
.station-dossier-tab>div{min-width:0}
.station-dossier-tab small{display:block;overflow:hidden;color:#607b98;font-size:.49rem;font-weight:900;letter-spacing:.1em;text-overflow:ellipsis;white-space:nowrap}
.station-dossier-tab strong{display:block;overflow:hidden;margin-top:3px;color:#cbd7e4;font-size:.71rem;text-overflow:ellipsis;white-space:nowrap}
.station-dossier-tab>em{grid-column:2;color:#71869d;font-size:.51rem;font-style:normal;font-weight:800;white-space:nowrap}
.station-dossier-tab.is-ready>span{color:#5bd69c;border-color:rgba(73,207,150,.3);background:rgba(48,176,120,.1)}
.station-dossier-tab.is-assisted>span,.station-dossier-tab.is-pending>span{color:#ffad5c;border-color:rgba(247,151,53,.34);background:rgba(247,151,53,.1)}
.station-dossier-tab.is-ready>em{color:#52c994}.station-dossier-tab.is-assisted>em,.station-dossier-tab.is-pending>em{color:#e89b50}
.station-dossier-tab.active{border-color:rgba(247,151,53,.58);background:linear-gradient(145deg,rgba(247,151,53,.17),rgba(31,100,134,.13));box-shadow:0 10px 24px rgba(0,0,0,.2),inset 0 -2px 0 #f79735}
.station-dossier-tab.active strong{color:#fff}.station-dossier-tab.active>span{box-shadow:0 0 18px rgba(247,151,53,.13)}
.station-dossier-grid.is-tabbed{display:block}
.station-dossier-grid.is-tabbed>.station-dossier-card[hidden]{display:none!important}
.station-dossier-grid.is-tabbed>.station-dossier-card.is-active-panel{display:grid;grid-column:1/-1;min-height:280px;padding:21px 22px;border-color:rgba(69,151,190,.32);border-radius:17px;background:radial-gradient(circle at 96% 0,rgba(47,161,202,.1),transparent 22rem),linear-gradient(145deg,rgba(9,25,44,.98),rgba(5,15,28,.98));box-shadow:0 18px 42px rgba(0,0,0,.18);animation:dossierPanelIn .18s ease-out}
@keyframes dossierPanelIn{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
.station-dossier-grid.is-tabbed>.station-dossier-card.is-active-panel:hover{transform:none}
.station-dossier-grid.is-tabbed .station-dossier-card>header{grid-template-columns:48px minmax(0,1fr) auto;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(91,125,159,.14)}
.station-dossier-grid.is-tabbed .station-dossier-source{width:48px;height:48px;border-radius:13px;font-size:.66rem}
.station-dossier-grid.is-tabbed .station-dossier-card header small{font-size:.54rem}
.station-dossier-grid.is-tabbed .station-dossier-card h4{margin-top:4px;font-size:1rem}
.station-dossier-grid.is-tabbed .station-dossier-card header em{padding:6px 9px;font-size:.56rem}
.station-dossier-grid.is-tabbed .station-dossier-card>p{min-height:0;margin:15px 0 13px;font-size:.72rem;line-height:1.55}
.station-dossier-grid.is-tabbed .station-dossier-facts{gap:9px}
.station-dossier-grid.is-tabbed .station-dossier-facts>span{padding:11px 12px;border-radius:10px;background:rgba(3,12,23,.5)}
.station-dossier-grid.is-tabbed .station-dossier-facts small{font-size:.55rem}
.station-dossier-grid.is-tabbed .station-dossier-facts b{font-size:.68rem}
.station-dossier-grid.is-tabbed .station-dossier-card>footer{margin-top:14px;padding-top:13px}
.station-dossier-grid.is-tabbed .station-dossier-card>footer>span{font-size:.6rem}
.station-dossier-grid.is-tabbed .station-dossier-card footer a,.station-dossier-grid.is-tabbed .station-dossier-card footer button{padding:8px 10px;border-radius:8px;font-size:.59rem;cursor:pointer}
.station-dossier-section.is-workspace>.station-dossier-note{margin-top:13px;padding:10px 12px}
.station-dossier-section.is-workspace>.station-dossier-note p{font-size:.61rem}
.station-dossier-grid.is-tabbed .cadesp-status{font-size:.59rem}
.station-dossier-grid.is-tabbed .cadesp-document-history>div:first-child strong,.station-dossier-grid.is-tabbed .cetesb-processes>div:first-child strong{font-size:.68rem}
.station-dossier-grid.is-tabbed .cadesp-document-history>div:first-child span,.station-dossier-grid.is-tabbed .cetesb-processes>div:first-child span{font-size:.56rem}
.station-dossier-grid.is-tabbed .cadesp-document-list b{font-size:.61rem}.station-dossier-grid.is-tabbed .cadesp-document-list small{font-size:.52rem}
html[data-theme="light"] .station-dossier-tabs{border-color:#d8e4eb;background:#edf3f6}
html[data-theme="light"] .station-dossier-tab{color:#536b82}
html[data-theme="light"] .station-dossier-tab strong{color:#30465c}
html[data-theme="light"] .station-dossier-tab.active{border-color:#e29450;background:linear-gradient(145deg,#fff3e7,#edf8fb)}
html[data-theme="light"] .station-dossier-tab.active strong{color:#1e344a}
html[data-theme="light"] .station-dossier-grid.is-tabbed>.station-dossier-card.is-active-panel{border-color:#cddfe8;background:#fff;box-shadow:0 16px 34px rgba(30,55,78,.08)}
@media(max-width:900px){.station-dossier-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.station-dossier-section.is-workspace .station-dossier-heading{align-items:stretch;flex-direction:column;padding-right:42px}.station-dossier-section.is-workspace .station-dossier-heading-actions{align-self:stretch;justify-content:space-between}.station-dossier-section.is-workspace .station-dossier-reference{grid-template-columns:auto 1fr auto}.station-dossier-section.is-workspace .station-dossier-reference>small{grid-column:1/-1;text-align:left}}
@media(max-width:600px){.station-dossier-dialog .station-dossier-section.is-workspace{padding:20px 15px}.station-dossier-tabs{display:flex;overflow-x:auto;padding:6px;scroll-snap-type:x mandatory}.station-dossier-tab{min-width:210px;scroll-snap-align:start}.station-dossier-section.is-workspace .station-dossier-heading-actions{flex-direction:column}.station-dossier-section.is-workspace .station-dossier-reference{grid-template-columns:1fr auto}.station-dossier-section.is-workspace .station-dossier-reference>span,.station-dossier-section.is-workspace .station-dossier-reference>small{grid-column:1/-1}.station-dossier-grid.is-tabbed>.station-dossier-card.is-active-panel{padding:17px 15px}.station-dossier-grid.is-tabbed .station-dossier-card>header{grid-template-columns:42px minmax(0,1fr)}.station-dossier-grid.is-tabbed .station-dossier-card header em{grid-column:2;justify-self:start}.station-dossier-grid.is-tabbed .station-dossier-facts{grid-template-columns:1fr}}

.station-dossier-history{margin-top:15px;padding-top:15px;border-top:1px solid rgba(82,123,161,.18)}
.station-dossier-history>header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:10px;padding:0 2px}
.station-dossier-history>header .eyebrow{margin:0 0 4px;font-size:.52rem;letter-spacing:.16em}
.station-dossier-history>header h4{margin:0;color:#edf4fb;font-size:1rem}
.station-dossier-history>header span{display:block;margin-top:4px;color:#7188a1;font-size:.59rem}
.station-dossier-history>header>b{padding:6px 9px;border:1px solid rgba(73,191,224,.25);border-radius:999px;color:#67cee8;background:rgba(49,168,204,.08);font-size:.58rem;white-space:nowrap}
.station-dossier-history-list{display:grid;gap:6px}
.station-dossier-history-item{overflow:hidden;border:1px solid rgba(86,122,159,.17);border-radius:11px;background:rgba(4,14,26,.38)}
.station-dossier-history-item[open]{border-color:rgba(247,151,53,.27);background:rgba(7,20,35,.74)}
.station-dossier-history-item>summary{display:grid;grid-template-columns:70px minmax(0,1fr) auto 22px;align-items:center;gap:11px;padding:10px 12px;cursor:pointer;list-style:none}
.station-dossier-history-item>summary::-webkit-details-marker{display:none}
.station-dossier-history-marker{display:inline-flex;justify-content:center;padding:5px 7px;border:1px solid rgba(87,130,169,.26);border-radius:7px;color:#8fa8c0;background:#10243a;font-size:.49rem;font-weight:900;text-transform:uppercase}
.station-dossier-history-marker.federal{color:#56d09a;border-color:rgba(74,203,148,.26);background:rgba(53,178,124,.09)}
.station-dossier-history-marker.state{color:#ffad5c;border-color:rgba(247,151,53,.28);background:rgba(247,151,53,.09)}
.station-dossier-history-marker.environment{color:#91dd88;border-color:rgba(91,191,104,.25);background:rgba(78,179,92,.08)}
.station-dossier-history-marker.anp{color:#63d2ec;border-color:rgba(69,188,222,.25);background:rgba(55,183,217,.08)}
.station-dossier-history-item summary>div{min-width:0}
.station-dossier-history-item summary strong{display:block;overflow:hidden;color:#d5e0eb;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}
.station-dossier-history-item summary small{display:block;overflow:hidden;margin-top:3px;color:#647b94;font-size:.52rem;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}
.station-dossier-history-item summary time{color:#8196ad;font-size:.55rem;white-space:nowrap}
.station-dossier-history-item summary>i{position:relative;width:20px;height:20px;border:1px solid rgba(94,130,167,.2);border-radius:6px}
.station-dossier-history-item summary>i:after{position:absolute;left:6px;top:5px;width:6px;height:6px;border-right:2px solid #6f8ba6;border-bottom:2px solid #6f8ba6;content:"";transform:rotate(45deg);transition:transform .16s}
.station-dossier-history-item[open] summary>i:after{top:8px;transform:rotate(225deg)}
.station-dossier-history-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(83,120,157,.14)}
.station-dossier-history-pagination button{min-height:0;padding:7px 10px;border:1px solid rgba(74,184,216,.25);border-radius:8px;color:#69cfe8;background:rgba(42,149,181,.07);font:inherit;font-size:.54rem;font-weight:850;cursor:pointer}
.station-dossier-history-pagination button:hover:not(:disabled){border-color:rgba(247,151,53,.45);color:#ffad5c;background:rgba(247,151,53,.08)}
.station-dossier-history-pagination button:disabled{opacity:.42;cursor:not-allowed}
.station-dossier-history-pagination span{min-width:150px;color:#8298b0;font-size:.54rem;font-weight:750;text-align:center}
.station-dossier-history-payload{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px;padding:12px;border-top:1px solid rgba(90,125,161,.14);background:rgba(2,9,17,.32)}
.station-dossier-history-payload>div{display:grid;align-content:start;gap:4px;padding:5px 2px}
.station-dossier-history-payload b{color:#cbd8e5;font-size:.62rem}
.station-dossier-history-payload span{color:#667d96;font-size:.53rem;line-height:1.45}
.station-dossier-history-payload pre{max-height:260px;margin:0;padding:11px 12px;overflow:auto;border:1px solid rgba(75,117,155,.18);border-radius:9px;color:#9fc0d7;background:#030c16;font:500 .56rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.station-dossier-history-empty{padding:24px;border:1px dashed rgba(83,122,158,.22);border-radius:11px;color:#6e849c;text-align:center;font-size:.64rem}
.station-dossier-component-history{align-self:end;margin-top:17px;padding-top:16px}
.station-dossier-history-information{padding:12px;border-top:1px solid rgba(90,125,161,.14);background:rgba(2,9,17,.32)}
.station-dossier-history-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.station-dossier-history-fact{display:grid;align-content:start;gap:4px;min-width:0;padding:9px 10px;border:1px solid rgba(76,118,155,.16);border-radius:9px;background:rgba(6,19,33,.58)}
.station-dossier-history-fact small{overflow:hidden;color:#637d97;font-size:.5rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}
.station-dossier-history-fact b{color:#c9d8e6;font-size:.6rem;line-height:1.4;overflow-wrap:anywhere}
.station-dossier-history-pdf{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:9px;padding:9px 11px;border:1px solid rgba(247,151,53,.27);border-radius:10px;color:inherit;background:linear-gradient(90deg,rgba(247,151,53,.1),rgba(247,151,53,.025));text-decoration:none}
.station-dossier-history-pdf:hover{border-color:rgba(247,151,53,.58);background:rgba(247,151,53,.14)}
.station-dossier-history-pdf>span{display:grid;width:38px;height:38px;place-items:center;border-radius:9px;color:#071321;background:#f79a42;font-size:.55rem;font-weight:950}
.station-dossier-history-pdf>div{display:grid;gap:3px;min-width:0}
.station-dossier-history-pdf b{color:#e7eef5;font-size:.63rem}
.station-dossier-history-pdf small{overflow:hidden;color:#8b755e;font-size:.52rem;text-overflow:ellipsis;white-space:nowrap}
.station-dossier-history-pdf em{color:#ffad5c;font-size:.8rem;font-style:normal}
html[data-theme="light"] .station-dossier-history-information{background:#f4f8fa}
html[data-theme="light"] .station-dossier-history-fact{border-color:#dde7ed;background:#fff}
html[data-theme="light"] .station-dossier-history-fact b,html[data-theme="light"] .station-dossier-history-pdf b{color:#344a60}
html[data-theme="light"] .station-dossier-history-pdf{background:#fff7ee}
html[data-theme="light"] .station-dossier-history{border-color:#dbe6ed}
html[data-theme="light"] .station-dossier-history>header h4{color:#263b50}
html[data-theme="light"] .station-dossier-history-item{border-color:#dce6ed;background:#f8fafc}
html[data-theme="light"] .station-dossier-history-item[open]{border-color:#e7b47e;background:#fff}
html[data-theme="light"] .station-dossier-history-item summary strong{color:#31475d}
html[data-theme="light"] .station-dossier-history-payload{background:#f4f8fa}
html[data-theme="light"] .station-dossier-history-payload b{color:#344a60}
html[data-theme="light"] .station-dossier-history-payload pre{color:#36546a;border-color:#d9e4eb;background:#fff}
@media(max-width:720px){.station-dossier-history-item>summary{grid-template-columns:62px minmax(0,1fr) 22px}.station-dossier-history-item summary time{grid-column:2;grid-row:2}.station-dossier-history-item summary>i{grid-column:3;grid-row:1/3}.station-dossier-history-payload{grid-template-columns:1fr}.station-dossier-history>header{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.station-dossier-history-pagination{justify-content:space-between}.station-dossier-history-pagination span{min-width:0}.station-dossier-history-pagination button{padding-inline:8px}}
@media(max-width:900px){.station-dossier-history-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.station-dossier-history-facts{grid-template-columns:1fr}.station-dossier-history-marker{font-size:.44rem}}
.station-dossier-generate.is-disabled{border-color:rgba(123,142,163,.22);color:#7f91a5;background:rgba(78,96,116,.08);cursor:not-allowed;box-shadow:none}.station-dossier-generate.is-disabled>span{color:#7e8d9c;background:#26384a}.commercial-dossier-history-button{display:grid;flex:0 0 48px;width:48px;height:48px;place-items:center;padding:0;border:1px solid rgba(80,198,230,.35);border-radius:12px;color:#62cce8;background:linear-gradient(145deg,rgba(45,155,190,.16),rgba(13,37,58,.7));cursor:pointer;transition:.18s}.commercial-dossier-history-button:hover{transform:translateY(-1px);border-color:#f79a42;color:#ffad5c;background:rgba(247,151,53,.11)}.commercial-dossier-history-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.commercial-dossier-history-dialog{width:min(760px,calc(100vw - 28px));max-width:760px}.commercial-dossier-history-head{padding:4px 6px 18px;border-bottom:1px solid rgba(85,123,160,.2)}.commercial-dossier-history-head .eyebrow{margin:0 0 7px}.commercial-dossier-history-head h2{margin:0 0 8px;color:#f1f6fb;font-size:1.55rem}.commercial-dossier-history-head strong{display:block;color:#dce8f3;font-size:.82rem}.commercial-dossier-history-head span{display:block;margin-top:5px;color:#768da5;font-size:.66rem}.commercial-dossier-history-list{display:grid;gap:9px;margin-top:15px}.commercial-dossier-history-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid rgba(83,125,165,.2);border-radius:12px;background:rgba(5,17,31,.58)}.commercial-dossier-history-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:10px;color:#08131f;background:#f79a42;font-size:.57rem;font-weight:950}.commercial-dossier-history-card>div{display:grid;min-width:0;gap:3px}.commercial-dossier-history-card b{color:#edf4fa;font-size:.75rem}.commercial-dossier-history-card strong{color:#87a1b9;font-size:.62rem}.commercial-dossier-history-card small{color:#617b94;font-size:.56rem}.commercial-dossier-history-card>a{padding:8px 10px;border:1px solid rgba(75,189,220,.28);border-radius:8px;color:#68cee8;background:rgba(52,166,198,.07);font-size:.59rem;font-weight:850;text-decoration:none;white-space:nowrap}.commercial-dossier-history-card>a:hover{border-color:#f79a42;color:#ffad5c}.commercial-dossier-history-empty{display:grid;gap:7px;margin-top:15px;padding:28px;border:1px dashed rgba(82,124,162,.28);border-radius:12px;color:#71889f;text-align:center}.commercial-dossier-history-empty strong{color:#d6e2ec}.commercial-dossier-history-empty span{font-size:.68rem}html[data-theme="light"] .commercial-dossier-history-head h2,html[data-theme="light"] .commercial-dossier-history-card b{color:#2c4258}html[data-theme="light"] .commercial-dossier-history-card{border-color:#dbe6ed;background:#fff}@media(max-width:600px){.commercial-dossier-history-button{width:100%;height:44px;flex-basis:44px}.commercial-dossier-history-card{grid-template-columns:40px minmax(0,1fr)}.commercial-dossier-history-icon{width:40px;height:40px}.commercial-dossier-history-card>a{grid-column:1/-1;text-align:center}}

.environmental-license-panel{grid-template-columns:190px minmax(0,1fr)}
.environmental-license-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.environmental-license-card{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:12px!important;border-color:rgba(77,182,129,.2)!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(8,27,38,.88),rgba(5,17,29,.92))!important}
.environmental-license-card[hidden]{display:none!important}
.environmental-license-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.environmental-license-card>header>div{display:grid;min-width:0;gap:3px}
.environmental-license-card>header span{color:#58d49b;font-size:.5rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}
.environmental-license-card>header strong{overflow:hidden;color:#eef6fb;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.environmental-license-card>header small{color:#7189a1;font-size:.51rem}
.environmental-license-card>header em{flex:0 0 auto;max-width:45%;padding:5px 7px;border:1px solid rgba(111,143,172,.25);border-radius:999px;color:#91a5b8;background:rgba(94,118,142,.09);font-size:.47rem;font-style:normal;font-weight:900;text-align:center;text-transform:uppercase}
.environmental-license-card>header em.is-valid{color:#62d9a0;border-color:rgba(79,204,145,.3);background:rgba(56,178,119,.1)}
.environmental-license-card>header em.is-invalid{color:#ff8e9a;border-color:rgba(236,91,108,.3);background:rgba(207,62,79,.1)}
.environmental-license-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.environmental-license-facts>span{display:grid;align-content:start;gap:3px;min-width:0;padding:7px 8px;border:1px solid rgba(82,122,157,.14);border-radius:8px;background:rgba(2,11,20,.36)}
.environmental-license-facts small{color:#647f98;font-size:.47rem}
.environmental-license-facts b{color:#cbd9e5;font-size:.55rem;line-height:1.4;overflow-wrap:anywhere}
.environmental-license-card>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;border-top:1px solid rgba(83,124,158,.13)}
.environmental-license-card>footer small{color:#657d94;font-size:.47rem;text-transform:capitalize}
.environmental-license-card>footer a{color:#65cde6;font-size:.51rem;font-weight:850;text-decoration:none;white-space:nowrap}
.environmental-license-card>footer a:hover{color:#ffad5c}
.environmental-license-pagination{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:2px;padding-top:9px;border-top:1px solid rgba(83,120,157,.14)}
.environmental-license-pagination button{padding:7px 10px;border:1px solid rgba(74,184,216,.25);border-radius:8px;color:#69cfe8;background:rgba(42,149,181,.07);font:inherit;font-size:.54rem;font-weight:850;cursor:pointer}
.environmental-license-pagination button:disabled{opacity:.42;cursor:not-allowed}
.environmental-license-pagination span{min-width:170px;color:#8298b0;font-size:.54rem;text-align:center}
html[data-theme="light"] .environmental-license-card{border-color:#d8e8df!important;background:#fff!important}
html[data-theme="light"] .environmental-license-card>header strong,html[data-theme="light"] .environmental-license-facts b{color:#30475a}
html[data-theme="light"] .environmental-license-facts>span{border-color:#e0e8ed;background:#f8fafb}
@media(max-width:1000px){.environmental-license-panel{grid-template-columns:1fr}.environmental-license-list{grid-template-columns:1fr}}
@media(max-width:560px){.environmental-license-facts{grid-template-columns:1fr}.environmental-license-card>header{flex-direction:column}.environmental-license-card>header em{max-width:100%}.environmental-license-pagination{justify-content:space-between}.environmental-license-pagination span{min-width:0}}

.integration-run-progress{display:grid;gap:.25rem;margin-top:1rem;padding:.75rem .9rem;border:1px solid rgba(72,188,225,.24);border-radius:12px;background:rgba(11,36,57,.48)}
.integration-run-progress strong{color:#eaf7ff;font-size:.82rem}
.integration-run-progress span{color:#94acbe;font-size:.72rem;line-height:1.4}
.integration-run-progress.running{border-color:rgba(255,159,55,.4);background:rgba(255,145,43,.07)}
.integration-run-progress.running strong{color:#ffb65e}
.integration-run-progress.success{border-color:rgba(79,211,157,.32);background:rgba(48,179,128,.07)}
.integration-run-progress.success strong{color:#71dcae}
html[data-theme="light"] .integration-run-progress{background:#f6fafc}
