/* Shared presentation layer. No model, policy, authorization or API behavior changes. */
:root{color-scheme:light;--bg:#fff;--panel:#fff;--ink:#37352f;--muted:#787774;--line:#e9e9e7;--accent:#37352f;--ok:#28785a;--warn:#9a6700;--bad:#b4433b;--chip:#f1f1ef;--space:24px;--sidebar:226px;--radius:5px}
@media(prefers-color-scheme:dark){:root{--bg:#fff;--panel:#fff;--ink:#37352f;--muted:#787774;--line:#e9e9e7;--accent:#37352f;--ok:#28785a;--warn:#9a6700;--bad:#b4433b;--chip:#f1f1ef}}
body{font:15px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#fff;color:var(--ink);margin-left:var(--sidebar);-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:3px}a:hover{color:#191918}button,input,select,textarea{font:inherit}button{background:#37352f;color:white;padding:8px 14px;border:1px solid #37352f;border-radius:var(--radius);font-weight:550;white-space:nowrap;line-height:1.45;box-shadow:0 1px 2px #00000008}button:hover{background:#25241f}button.sec{background:#fff;border-color:#dededb;color:var(--ink)}button.sec:hover{background:#f5f5f3}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #537fad;outline-offset:3px}input,select,textarea{background:#fff;border:1px solid #dededb;border-radius:var(--radius);padding:9px 11px;min-width:0}input::placeholder,textarea::placeholder{color:#97968f}input[type=file]{font-size:13px;background:#fafaf9}input[type=file]::file-selector-button{border:1px solid #dededb;background:#fff;border-radius:4px;padding:6px 10px;margin-right:10px;color:#37352f}
header.app{height:64px;padding:10px 36px;gap:14px;background:#fff;border-bottom:1px solid var(--line);position:relative;flex-wrap:wrap}header.app h1{font-size:14px;font-weight:500;letter-spacing:0}header.app>.muted.small{display:none}header.app .small{font-size:12px}header.app button{font-size:12px;padding:5px 10px}main{padding:36px 40px 70px;max-width:1400px;margin:auto}.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#f7f7f5;border-right:1px solid #ededea;display:flex;flex-direction:column;padding:22px 12px;z-index:10}.workspace-brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:650;padding:0 9px 26px;text-decoration:none}.workspace-brand-mark{border:1.5px solid #37352f;border-radius:5px;width:26px;height:28px;display:grid;place-items:center;font-family:Georgia,serif;font-size:21px;background:white}.workspace-label{padding:0 12px;margin:4px 0 10px;color:#92918b;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.workspace-sidebar a.workspace-link{display:flex;gap:10px;align-items:center;text-decoration:none;padding:9px 11px;border-radius:5px;font-size:13px;color:#686760;margin:2px 0}.workspace-link:hover{background:#efefeb}.workspace-link[aria-current=page]{background:#eaeae6;color:#37352f;font-weight:600}.workspace-link svg{width:18px;height:18px;flex-shrink:0}.workspace-sidebar .workspace-bottom{margin-top:auto;border-top:1px solid #e7e7e3;padding-top:17px}.workspace-note{font-size:11px;color:#8a8982;padding:11px 12px 0;line-height:1.65}.workspace-hero{margin-bottom:29px}.workspace-hero .workspace-icon{display:grid;place-items:center;width:48px;height:48px;background:#f3f3f0;border:1px solid #ecece8;border-radius:8px;margin-bottom:17px}.workspace-icon svg{width:26px;height:26px}.workspace-hero h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2;margin:0 0 10px;font-weight:700}.workspace-hero p{font-size:14px;color:#787774;line-height:1.65;margin:0;max-width:760px}.gov{font-size:12px;line-height:1.8;padding:0;background:transparent;border:0}.workspace-governance{margin:0 36px;border-bottom:1px solid var(--line)}.workspace-governance summary{padding:10px 0;font-size:12px;color:#73726b;cursor:pointer}.workspace-governance summary .ok{color:var(--ok)}.workspace-governance[open]>.gov{padding:3px 0 13px;max-width:1050px}.workspace-governance summary::marker{color:#a6a59e}.grid{gap:20px;align-items:start}.g2{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.card{background:#fff;border:1px solid #e7e7e4;border-radius:6px;padding:21px 22px;box-shadow:none;min-width:0;overflow-x:auto}.card h2{font-size:15px;font-weight:650;margin:0 0 17px;letter-spacing:-.15px}.card h3{font-size:15px;letter-spacing:-.1px}.card p{line-height:1.65}.card .muted{color:#85847d}.card .small{font-size:12px;line-height:1.65}.row{gap:9px;align-items:center}table{font-size:12px;line-height:1.55}th,td{padding:10px 9px;border-bottom:1px solid #efefec}th{background:#fafaf9;font-weight:500;color:#787774;font-size:11px}tbody tr:hover td{background:#fcfcfa}.pill{padding:2px 7px;border-radius:4px;font-size:11px;background:#efefec}.msg{padding:13px 15px;border-radius:6px;margin:10px 0;max-width:96%;font-size:14px;line-height:1.65}.msg.user{background:#f1f1ee}.msg.bot{border:1px solid #e9e9e5;background:#fcfcfb}.msg .small,.msg .muted{font-size:11px;line-height:1.7;margin-top:7px}.notice{border-left:2px solid #c8b68a;background:#faf8f3;font-size:12px;padding:10px 13px;color:#796741}.scroll{max-height:440px;scrollbar-width:thin;scrollbar-color:#deded8 transparent}.scroll:empty::before{content:'La información aparecerá aquí.';color:#a09f97;font-size:13px;display:block;padding:24px 0}#chat:empty::before{content:'Escribe una consulta para comenzar.'}#qa:empty::before{content:'Las preguntas y respuestas aparecerán aquí.'}#usage{font-variant-numeric:tabular-nums}#kpis .card{background:#fafaf8;border-color:#edede8}#kpis .card b,#kpis .card strong{letter-spacing:-.8px}#ch_mes svg path,#ch_mes svg polyline{stroke:#686c72}#ch_region svg rect,#ch_producto svg rect,#ch_canal svg rect{fill:#7f8a87}#viewer img{max-width:100%;height:auto;border:1px solid #e7e7e4}#reset{color:#a14941;border-color:#ead7d4;font-size:12px}code{font-size:11px;background:#f5f5f1;padding:1px 4px;border-radius:3px;overflow-wrap:anywhere}.workspace-login main{max-width:700px;padding-top:55px}.workspace-login .workspace-hero{text-align:center}.workspace-login .workspace-hero .workspace-icon{margin:0 auto 19px}.workspace-login main>.card{max-width:420px!important;margin:28px auto!important;padding:30px}.workspace-login .card h2{font-size:20px;margin-bottom:23px}.workspace-login form button{width:100%;margin-top:6px}.workspace-login label{display:block;font-size:12px;font-weight:550;margin-bottom:6px}.workspace-login input{font-size:14px}.workspace-login .card>p:last-child{font-size:11px}.workspace-login .workspace-governance{display:none}.workspace-section-nav{display:flex;gap:6px;flex-wrap:wrap;margin-top:19px}.workspace-section-nav a{font-size:12px;text-decoration:none;color:#787774;padding:5px 10px;border:1px solid #e9e9e5;border-radius:4px}.workspace-section-nav a:hover{background:#f5f5f1}html{scroll-behavior:smooth}.card{scroll-margin-top:20px}@media(max-width:1150px){:root{--sidebar:198px}main{padding:28px 25px 60px}.g2{grid-template-columns:1fr}.workspace-hero h1{font-size:29px}.workspace-governance{margin:0 25px}.card{padding:20px}header.app{padding:10px 25px}.row{flex-wrap:wrap}.row input{flex:1 1 220px}.row select{flex:1 1 150px;width:auto}.row button{flex-shrink:0}}@media(max-width:700px){:root{--sidebar:0px}body{margin-left:0}.workspace-sidebar{position:relative;width:auto;inset:auto;padding:12px 16px;border-right:0;border-bottom:1px solid #e7e7e2;display:block}.workspace-brand{padding:0 0 10px;font-size:14px}.workspace-sidebar nav{display:flex;overflow-x:auto;gap:5px}.workspace-sidebar .workspace-link{white-space:nowrap;font-size:12px!important;padding:7px 9px!important}.workspace-sidebar .workspace-label,.workspace-bottom{display:none}.workspace-brand-mark{width:22px;height:23px;font-size:18px}.workspace-link svg{width:16px;height:16px}header.app{height:auto;min-height:57px;padding:12px 18px;gap:9px}header.app h1{font-size:12px}header.app>.small{margin-left:auto}main{padding:26px 18px 40px}.workspace-governance{margin:0 18px}.workspace-hero h1{font-size:28px}.workspace-hero p{font-size:13px}.workspace-hero{margin-bottom:23px}.card{padding:17px}.grid{gap:15px}.g3{grid-template-columns:1fr}.row{flex-wrap:wrap}#flt>*{flex:1 1 42%;width:auto}.workspace-login main{padding-top:30px}.workspace-login main>.card{padding:24px}.workspace-section-nav{gap:5px}table{font-size:11px}th,td{padding:8px 6px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
#findings{max-height:520px;overflow:auto;scrollbar-width:thin;scrollbar-color:#deded8 transparent}#findings table{min-width:520px}#reports{max-height:220px;overflow:auto;padding-top:12px}#orders table{min-width:530px}#orders td:first-child,#refunds td:first-child{white-space:nowrap}#hist table{min-width:550px}#viewer{max-height:760px;overflow:auto}#ch_mes svg circle{fill:#686c72}
#findings table{min-width:420px;table-layout:fixed}#findings td:first-child{width:29%}#findings td:nth-child(2){width:31%}#findings td:nth-child(3){width:17%;overflow-wrap:anywhere}#findings td:last-child{width:23%}#findings td:last-child button{display:block;font-size:11px;padding:5px 6px;margin:3px 0;width:100%;white-space:normal}
