.edo-shell { max-width:1440px; margin:0 auto; }
.edo-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,380px); gap:28px; align-items:end; margin-bottom:22px; }
.edo-head h1 { margin:4px 0 5px; font-size:27px; line-height:1.15; letter-spacing:-.025em; }
.edo-head p { margin:0; color:var(--muted); max-width:680px; }
.edo-kicker { display:block; color:#9a5c11; font-size:11px; line-height:1.3; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.edo-head__note { border-left:3px solid #d97706; padding:4px 0 4px 14px; display:grid; gap:3px; color:var(--muted); font-size:12px; line-height:1.45; }
.edo-head__note b { color:var(--text); }
.edo-topline { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.edo-connection { display:flex; align-items:center; gap:8px; min-width:0; font-size:12px; color:var(--muted); }
.edo-connection strong { color:var(--text); }
.edo-connection__signal { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#98a2b3; box-shadow:0 0 0 3px #eef0f3; }
.edo-connection--ok .edo-connection__signal { background:#16855b; box-shadow:0 0 0 3px #d7f4e7; }
.edo-connection--warn .edo-connection__signal { background:#d97706; box-shadow:0 0 0 3px #ffefd5; }
.edo-connection--bad .edo-connection__signal { background:#c4322b; box-shadow:0 0 0 3px #fde3e1; }
.edo-refresh { min-height:40px; }
.edo-setup { display:grid; grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr); gap:28px; border:1px solid #efcc98; border-left:4px solid #d97706; background:#fffbf3; padding:20px 22px; margin:0 0 16px; }
.edo-setup h2 { margin:6px 0 7px; font-size:17px; }
.edo-setup p { margin:0; color:#72512b; line-height:1.55; }
.edo-setup__steps { list-style:none; counter-reset:edo-step; display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; margin:0; padding:0; }
.edo-setup__steps li { counter-increment:edo-step; display:grid; grid-template-columns:25px 1fr; column-gap:8px; align-items:start; }
.edo-setup__steps li::before { content:counter(edo-step); width:23px; height:23px; border:1px solid #dfad68; display:grid; place-items:center; color:#9a5c11; font-weight:700; font-size:11px; }
.edo-setup__steps b, .edo-setup__steps span { grid-column:2; }
.edo-setup__steps b { font-size:12px; }
.edo-setup__steps span { color:#72512b; font-size:11px; line-height:1.4; }
.edo-error { border:1px solid #f2b8b5; border-left:4px solid #c4322b; background:#fff6f5; padding:11px 14px; margin-bottom:14px; color:#85211c; font-size:12px; }
.edo-kpis { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)); gap:9px; margin-bottom:17px; }
.edo-kpi { appearance:none; min-height:85px; text-align:left; border:1px solid var(--border); border-top:3px solid #98a2b3; background:var(--panel); padding:11px 13px; cursor:pointer; color:var(--text); transition:border-color .15s ease, transform .15s ease; }
.edo-kpi:hover { border-color:#aeb5bd; transform:translateY(-1px); }
.edo-kpi:focus-visible { outline:3px solid #9dc4ee; outline-offset:2px; }
.edo-kpi span { display:block; color:var(--muted); font-size:11px; line-height:1.25; min-height:28px; }
.edo-kpi strong { display:block; margin-top:5px; font-size:23px; font-variant-numeric:tabular-nums; letter-spacing:-.025em; }
.edo-kpi--attention, .edo-kpi--overdue { border-top-color:#d97706; }
.edo-kpi--signed, .edo-kpi--today { border-top-color:#16855b; }
.edo-kpi--unmatched { border-top-color:#667085; }
.edo-controls { display:flex; justify-content:space-between; align-items:end; gap:16px; border-bottom:1px solid var(--border); padding-bottom:12px; }
.edo-segments { display:flex; flex-wrap:wrap; gap:2px; }
.edo-segments button { min-height:38px; border:0; border-bottom:2px solid transparent; background:transparent; padding:7px 10px; color:var(--muted); font-size:12px; cursor:pointer; }
.edo-segments button:hover { color:var(--text); background:var(--panel-2); }
.edo-segments button.active { color:var(--text); border-bottom-color:#d97706; font-weight:700; }
.edo-segments button:focus-visible, .edo-search input:focus-visible, .edo-days select:focus-visible { outline:3px solid #9dc4ee; outline-offset:1px; }
.edo-searchline { display:flex; align-items:end; gap:8px; }
.edo-search input { width:240px; min-height:38px; border:1px solid var(--border); background:var(--panel); padding:7px 10px; font:inherit; font-size:12px; }
.edo-days { display:grid; gap:3px; color:var(--muted); font-size:10px; }
.edo-days select { min-height:38px; border:1px solid var(--border); background:var(--panel); padding:6px 26px 6px 9px; font:inherit; font-size:12px; }
.edo-result-meta { display:flex; justify-content:space-between; gap:10px; padding:11px 1px 8px; color:var(--muted); font-size:11px; }
.edo-result-meta b { color:var(--text); }
.edo-table-wrap { border:1px solid var(--border); background:var(--panel); overflow:auto; }
.edo-table { width:100%; min-width:980px; border-collapse:collapse; }
.edo-table th { position:sticky; top:0; z-index:1; padding:9px 12px; border-bottom:1px solid var(--border); background:#f8f9fb; color:var(--muted); text-align:left; font-size:10px; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
.edo-table td { padding:12px; border-bottom:1px solid var(--border-soft); vertical-align:top; font-size:12px; }
.edo-table tr:last-child td { border-bottom:0; }
.edo-table tbody tr:hover { background:#fbfcfd; }
.edo-table td small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.edo-table td strong { font-size:12px; font-weight:650; }
.edo-client { color:var(--text); font-weight:650; text-decoration:none; }
a.edo-client:hover { color:var(--primary); text-decoration:underline; }
.edo-unmatched { color:#a15c09 !important; }
.edo-status { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:11px; font-weight:650; }
.edo-status__mark { display:inline-grid; width:19px; height:19px; place-items:center; border:1px solid currentColor; border-radius:50%; font-size:11px; line-height:1; }
.edo-status--ok { color:#10734e; }
.edo-status--wait { color:#a45b06; }
.edo-status--warn { color:#9a5200; }
.edo-status--bad { color:#b42318; }
.edo-status--quiet { color:#667085; }
.edo-age { font-variant-numeric:tabular-nums; white-space:nowrap; }
.edo-age.is-overdue { color:#b42318; font-weight:750; }
.edo-money { text-align:right !important; white-space:nowrap; font-variant-numeric:tabular-nums; }
.edo-empty, .edo-load-error { min-height:260px; border:1px solid var(--border); background:var(--panel); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:30px; }
.edo-empty > span, .edo-load-error > span { width:42px; height:42px; border:1px solid #9ebcaf; color:#10734e; display:grid; place-items:center; border-radius:50%; font-size:20px; }
.edo-load-error > span { border-color:#e6aaa6; color:#b42318; }
.edo-empty h2, .edo-load-error h2 { margin:12px 0 4px; font-size:16px; }
.edo-empty p, .edo-load-error p { margin:0 0 14px; color:var(--muted); font-size:12px; }
.edo-loading { height:250px; display:flex; align-items:center; justify-content:center; gap:7px; color:var(--muted); }
.edo-loading span { width:6px; height:6px; border-radius:50%; background:#d97706; animation:edo-pulse 1s ease-in-out infinite alternate; }
.edo-loading span:nth-child(2) { animation-delay:.15s; }
.edo-loading span:nth-child(3) { animation-delay:.3s; }
.edo-loading b { margin-left:5px; font-size:12px; font-weight:600; }
@keyframes edo-pulse { to { opacity:.25; transform:translateY(-3px); } }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

@media (max-width:1080px) {
  .edo-kpis { grid-template-columns:repeat(3,minmax(130px,1fr)); }
  .edo-controls { align-items:stretch; flex-direction:column; }
  .edo-searchline { width:100%; }
  .edo-search { flex:1; }
  .edo-search input { width:100%; }
}
@media (max-width:760px) {
  body.edo-view { max-width:100%; overflow-x:hidden; }
  body.edo-view .app { display:block; min-height:100vh; }
  body.edo-view .sidebar { position:sticky; top:0; z-index:600; width:100%; height:auto; padding:8px 10px; border-right:0; border-bottom:1px solid var(--sidebar-border); }
  body.edo-view .brand { padding:0 4px 8px; margin-bottom:6px; }
  body.edo-view .brand-mark { width:28px; height:28px; }
  body.edo-view .sidebar-nav { flex-direction:row; overflow-x:auto; overscroll-behavior-inline:contain; padding-bottom:3px; }
  body.edo-view .nav-item { flex:0 0 auto; white-space:nowrap; padding:7px 9px; }
  body.edo-view .nav-label { flex:0 0 auto; }
  body.edo-view .nav-divider, body.edo-view .sidebar-footer { display:none; }
  body.edo-view .content { padding:16px 13px 24px; }
  .edo-head { grid-template-columns:1fr; gap:12px; }
  .edo-head h1 { font-size:23px; }
  .edo-setup { grid-template-columns:1fr; padding:17px; }
  .edo-setup__steps { grid-template-columns:1fr; }
  .edo-kpis { grid-template-columns:1fr 1fr; }
  .edo-kpi { min-height:78px; }
  .edo-connection { align-items:flex-start; flex-wrap:wrap; }
  .edo-connection span:last-child { flex-basis:100%; margin-left:17px; }
  .edo-result-meta span { display:none; }
  .edo-table-wrap { border:0; background:transparent; overflow:visible; }
  .edo-table { min-width:0; display:block; }
  .edo-table thead { display:none; }
  .edo-table tbody { display:grid; gap:9px; }
  .edo-table tr { display:grid; grid-template-columns:1fr auto; gap:9px 14px; border:1px solid var(--border); background:var(--panel); padding:13px; }
  .edo-table td { display:block; border:0; padding:0; }
  .edo-table td::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:9px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
  .edo-table td:nth-child(2), .edo-table td:nth-child(3) { grid-column:1 / -1; }
  .edo-table td:nth-child(4), .edo-table td:nth-child(5) { align-self:end; }
  .edo-table td:nth-child(6) { grid-column:2; grid-row:4; align-self:end; }
  .edo-money { text-align:right !important; }
}
@media (max-width:480px) {
  .edo-kpis { grid-template-columns:1fr; }
  .edo-searchline { align-items:stretch; flex-direction:column; }
  .edo-days select { width:100%; }
  .edo-topline { align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  .edo-loading span { animation:none; }
  .edo-kpi { transition:none; }
}
