:root{--pink:#ff09ad;--ink:#111;--muted:#6d6d73;--line:#e8e8ec;--bg:#f6f6f8;--white:#fff;--ok:#21a366;--bad:#d93838;--warn:#c98200;--radius:18px;--shadow:0 12px 30px rgba(0,0,0,.06)}*{box-sizing:border-box}html{font-family:Inter,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}body{margin:0;min-height:100vh}.topbar{height:72px;background:#000;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:30;border-bottom:3px solid var(--pink)}.brand{display:flex;align-items:center;gap:12px}.brand__mark{width:40px;height:40px;border-radius:12px;background:var(--pink);display:grid;place-items:center;font-size:24px;font-weight:900;font-style:italic}.brand strong,.brand span{display:block}.brand strong{font-size:17px}.brand span{font-size:11px;color:#aaa;letter-spacing:.12em;text-transform:uppercase;margin-top:2px}.topbar__right{display:flex;align-items:center;gap:12px}.environment{font-size:12px;color:#bbb}.icon-button{width:38px;height:38px;border-radius:10px;border:1px solid #333;background:#151515;color:#fff;font-size:22px;cursor:pointer}.shell{max-width:1440px;margin:0 auto;padding:34px}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;margin-bottom:24px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--pink);margin:0 0 7px;text-transform:uppercase}.hero h1{font-size:38px;line-height:1;margin:0 0 12px;letter-spacing:-.03em}.hero p:not(.eyebrow){margin:0;max-width:760px;color:var(--muted);line-height:1.55}.hero code{font-size:.92em;background:#eeeef2;padding:2px 6px;border-radius:5px}.hero__badge{background:#fff;border:1px solid var(--line);padding:9px 12px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:22px}.status-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px 16px;display:flex;align-items:center;gap:11px;box-shadow:0 4px 16px rgba(0,0,0,.025)}.status-card b,.status-card small{display:block}.status-card b{font-size:13px}.status-card small{margin-top:4px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.status-dot{width:10px;height:10px;border-radius:50%;background:#bbb;box-shadow:0 0 0 5px #f1f1f2;flex:0 0 auto}.status-card.ok .status-dot{background:var(--ok);box-shadow:0 0 0 5px rgba(33,163,102,.12)}.status-card.bad .status-dot{background:var(--bad);box-shadow:0 0 0 5px rgba(217,56,56,.12)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.search-panel{padding:22px;margin-bottom:22px}.panel__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:17px}.panel__head h2,.panel__head h3{margin:0}.panel__head h2{font-size:23px}.panel__head h3{font-size:17px}.panel__head.small{align-items:center;margin-bottom:14px}.hint{font-size:12px;color:var(--muted)}.search-form{display:grid;grid-template-columns:minmax(320px,1fr) 180px auto 120px;gap:12px;align-items:end}.search-box{height:48px;border:1px solid #d9d9df;border-radius:12px;display:flex;align-items:center;padding:0 14px;background:#fff}.search-box:focus-within{border-color:var(--pink);box-shadow:0 0 0 3px rgba(255,9,173,.08)}.search-icon{font-size:25px;color:#777;margin-right:8px}.search-box input,.field input,.endpoint-form input{border:0;outline:0;width:100%;font:inherit;background:transparent}.field{display:flex;flex-direction:column;gap:6px}.field span{font-size:10px;font-weight:800;color:#777;letter-spacing:.08em}.field input{height:48px;border:1px solid #d9d9df;border-radius:12px;padding:0 12px}.toggle{height:48px;display:flex;align-items:center;gap:8px;font-size:12px;color:#555;white-space:nowrap}.toggle input{position:absolute;opacity:0}.toggle span{width:34px;height:20px;border-radius:999px;background:#c9c9cf;position:relative;transition:.2s}.toggle span:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;top:3px;left:3px;transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.2)}.toggle input:checked+span{background:var(--pink)}.toggle input:checked+span:after{left:17px}.primary-button,.secondary-button{border:0;border-radius:11px;height:46px;padding:0 18px;font-weight:800;cursor:pointer}.primary-button{background:#000;color:#fff}.primary-button:hover{background:var(--pink)}.secondary-button{background:#f2f2f4;color:#111;border:1px solid #dedee3}.secondary-button:hover{border-color:#aaa}.search-meta{margin-top:13px;font-size:12px;color:var(--muted)}.layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:22px;align-items:start}.main-column{min-width:0}.side-column{display:grid;gap:22px;position:sticky;top:94px}.compact-panel{padding:18px}.text-button{border:0;background:none;padding:3px 0;color:var(--pink);font-weight:800;font-size:11px;cursor:pointer}.group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.group-card{background:#111;color:#fff;border-radius:15px;padding:17px;position:relative;overflow:hidden}.group-card:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;background:var(--pink);opacity:.12;right:-30px;top:-30px}.group-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.group-card b{font-size:18px}.group-card small{display:block;color:#aaa;margin-top:4px}.group-card p{font-size:12px;line-height:1.45;color:#d2d2d2;margin:12px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.badge{font-size:10px;padding:5px 7px;border-radius:999px;background:#252525;color:#ddd}.result-list{display:grid;gap:12px}.product-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 5px 18px rgba(0,0,0,.025)}.product-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.product-title{min-width:0}.product-title .sku{font-size:11px;font-weight:900;color:var(--pink);letter-spacing:.06em}.product-title h3{font-size:17px;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price{font-size:18px;font-weight:900;white-space:nowrap}.description{font-size:13px;line-height:1.55;color:#555;margin:14px 0}.description.empty{color:#999;font-style:italic}.facts{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.fact{background:#f5f5f7;border-radius:8px;padding:6px 8px;font-size:10px;color:#555}.card-actions{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:12px;border-top:1px solid #eee}.card-actions small{color:#888}.raw-json{margin-top:12px;background:#0d0d0f;color:#dedee3;border-radius:10px;padding:13px;max-height:310px;overflow:auto;font-size:11px;line-height:1.5}.hidden{display:none!important}.structure-summary{display:grid;gap:8px}.structure-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;border-bottom:1px solid #eee;padding:8px 0}.structure-row span{color:#777}.structure-row b{text-align:right}.structure-row .good{color:var(--ok)}.structure-row .warn{color:var(--warn)}.details-block{margin-top:13px;border-top:1px solid #eee;padding-top:13px}.details-block summary{cursor:pointer;font-size:11px;font-weight:800;color:#555}.columns-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;max-height:180px;overflow:auto}.column-chip{font-size:9px;border:1px solid #ddd;padding:4px 6px;border-radius:6px;background:#fafafa}.endpoint-presets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.endpoint-presets button{border:1px solid #ddd;background:#fafafa;border-radius:8px;padding:6px 8px;font-size:10px;cursor:pointer}.endpoint-form{display:grid;grid-template-columns:1fr auto;gap:8px}.endpoint-form input{height:42px;border:1px solid #ddd;border-radius:9px;padding:0 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.endpoint-form .secondary-button{height:42px;padding:0 12px}.json-toolbar{display:flex;align-items:center;justify-content:space-between;margin:11px 0 7px;font-size:10px;color:#777}.json-output{margin:0;background:#0c0c0e;color:#e9e9ed;border-radius:11px;padding:12px;min-height:180px;max-height:360px;overflow:auto;font-size:10px;line-height:1.5}.skeleton{background:linear-gradient(90deg,#eee,#f7f7f7,#eee);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:7px}.skeleton.line{height:30px}.skeleton.short{width:70%}@keyframes shimmer{to{background-position:-200% 0}}.toast{position:fixed;right:24px;bottom:24px;background:#111;color:#fff;border-radius:12px;padding:12px 16px;font-size:12px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:50}.toast.show{opacity:1;transform:none}.empty-state{background:#fff;border:1px dashed #ccc;border-radius:16px;padding:34px;text-align:center;color:#777}.empty-state b{display:block;color:#111;margin-bottom:6px}.loading{opacity:.55;pointer-events:none}@media(max-width:1050px){.layout{grid-template-columns:1fr}.side-column{position:static;grid-template-columns:1fr 1fr}.status-grid{grid-template-columns:repeat(2,1fr)}.search-form{grid-template-columns:1fr 160px}.toggle,.primary-button{grid-row:2}}@media(max-width:720px){.topbar{padding:0 16px;height:64px}.environment{display:none}.shell{padding:20px 14px}.hero{display:block}.hero h1{font-size:30px}.hero__badge{display:inline-block;margin-top:14px}.status-grid{grid-template-columns:1fr 1fr;gap:9px}.status-card{padding:12px}.status-card small{max-width:120px}.search-panel{padding:16px}.panel__head{align-items:flex-start}.hint{display:none}.search-form{grid-template-columns:1fr}.toggle,.primary-button{grid-row:auto}.field.compact{display:none}.layout{display:block}.side-column{display:grid;grid-template-columns:1fr;margin-top:18px}.group-list{grid-template-columns:1fr}.product-card{padding:15px}.product-card__head{display:block}.price{margin-top:9px}.product-title h3{white-space:normal}.json-output{max-height:280px}}

.status-card--price-list.ok{border-color:rgba(33,163,102,.28);background:linear-gradient(180deg,#fff,#f8fffb)}
.status-card--price-list.bad{border-color:rgba(217,56,56,.25);background:linear-gradient(180deg,#fff,#fff9f9)}
@media(max-width:1250px){.status-grid{grid-template-columns:repeat(3,1fr)}}

.status-card--address.ok{border-color:rgba(33,163,102,.28);background:linear-gradient(180deg,#fff,#f8fffb)}
.status-card--address.bad{border-color:rgba(217,56,56,.25);background:linear-gradient(180deg,#fff,#fff9f9)}
.order-address-panel{margin-bottom:22px}
.order-address-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}
.order-address-grid>div{border:1px solid #e9e9ed;border-radius:12px;padding:14px;background:#fafafa;min-width:0}
.order-address-grid span{display:block;font-size:11px;color:#777;margin-bottom:7px}
.order-address-grid b{display:block;font-size:14px;color:#111;overflow-wrap:anywhere;min-height:18px}
.order-address-grid code{display:inline-block;margin-top:8px;font-size:10px;color:#ff0a91;background:#fff;padding:3px 6px;border-radius:5px}
.order-address-result{margin-top:14px;padding:11px 14px;border-radius:10px;font-size:12px;font-weight:700}
.order-address-result.ok{background:#eefaf4;color:#16784a;border:1px solid #cdebdc}
.order-address-result.bad{background:#fff2f2;color:#a02d2d;border:1px solid #f2d0d0}
@media(max-width:1050px){.order-address-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.order-address-grid{grid-template-columns:1fr}}

.order-search-panel{padding:22px;margin-bottom:22px}
.order-search-form{display:grid;grid-template-columns:minmax(320px,1fr) 150px;gap:12px;align-items:end}
.order-result-list{display:grid;gap:12px;margin-top:16px}
.order-card{border:1px solid var(--line);border-radius:15px;padding:17px;background:#fff}
.order-card__head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.order-card__head .sku{font-size:10px;font-weight:900;color:var(--pink);letter-spacing:.08em}
.order-card__head h3{margin:4px 0 2px;font-size:20px}
.order-card__head small{color:#888}
.order-card__total{font-size:19px;font-weight:900;white-space:nowrap}
.order-statuses{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}
.order-check{font-size:10px;font-weight:800;padding:6px 8px;border-radius:999px}
.order-check.ok{background:#eefaf4;color:#16784a}
.order-check.bad{background:#fff2f2;color:#a02d2d}
.order-customer{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:12px}
.order-customer>div{background:#fafafa;border:1px solid #eee;border-radius:10px;padding:10px 12px}
.order-customer span,.order-notes span{display:block;font-size:10px;color:#777;margin-bottom:5px}
.order-customer b{font-size:12px;overflow-wrap:anywhere}
.order-address-grid--search{grid-template-columns:2fr 1fr 1fr 1fr}
.order-notes{margin-top:12px;padding-top:12px;border-top:1px solid #eee}
.order-notes p{margin:0;font-size:11px;line-height:1.5;color:#555}
@media(max-width:850px){
  .order-search-form{grid-template-columns:1fr}
  .order-customer{grid-template-columns:1fr}
  .order-address-grid--search{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .order-address-grid--search{grid-template-columns:1fr}
}

.order-card__money{text-align:right}
.order-card__money small{display:block;margin-top:4px;color:#777;font-size:10px;font-weight:700}


/* V1.9 · Simulación de reporte ERP */
.erp-report-simulator,.db-audit{margin-top:16px;border:1px solid #e4e4e8;border-radius:14px;background:#fff;overflow:hidden}
.erp-report-simulator>summary,.db-audit>summary{list-style:none;cursor:pointer;padding:14px 16px;display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px;font-weight:900}
.erp-report-simulator>summary::-webkit-details-marker,.db-audit>summary::-webkit-details-marker{display:none}
.erp-report-simulator>summary:after,.db-audit>summary:after{content:"+";font-size:18px;font-weight:500}
.erp-report-simulator[open]>summary:after,.db-audit[open]>summary:after{content:"−"}
.erp-report-simulator>summary small,.db-audit>summary small{font-size:10px;color:#888;font-weight:600;margin-left:auto}
.erp-report-paper{margin:0 14px 16px;background:#fff;border:1px solid #bfc0c5;padding:22px;color:#111;font-family:Arial,Helvetica,sans-serif;box-shadow:0 7px 22px rgba(0,0,0,.04)}
.erp-report-header{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px;font-size:10px}
.erp-report-header b,.erp-report-header span{display:block}
.erp-report-top{display:grid;grid-template-columns:3fr 1fr;border:1px solid #777;margin-bottom:4px}
.erp-report-box{padding:7px 9px;border-right:1px solid #777}
.erp-report-box--side{border-right:0}
.erp-report-box p{display:grid;grid-template-columns:82px 1fr;gap:7px;margin:3px 0;font-size:10px}
.erp-report-box p span{color:#444}
.erp-report-box p b{font-weight:700;overflow-wrap:anywhere}
.erp-report-table-wrap{overflow:auto}
.erp-report-table{width:100%;border-collapse:collapse;font-size:9px;min-width:650px}
.erp-report-table th,.erp-report-table td{border:1px solid #777;padding:6px 7px;text-align:left}
.erp-report-table th{background:#f4f4f4;font-weight:800}
.erp-report-table .num{text-align:right;white-space:nowrap}
.erp-report-freight-row{background:#fff9d8}
.erp-report-empty{text-align:center!important;color:#888;padding:18px!important}
.erp-report-shipping{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #777;border-top:0}
.erp-report-shipping>div{padding:7px 9px;border-right:1px solid #777;font-size:9px}
.erp-report-shipping>div:last-child{border-right:0}
.erp-report-shipping span{display:block;color:#555;margin-bottom:3px}
.erp-report-shipping b{font-size:10px}
.erp-report-foot{border:1px solid #777;border-top:0;padding:9px;font-size:9px;line-height:1.55}
.erp-report-foot p{margin:2px 0}
.good-text{color:#16784a}
.bad-text{color:#a02d2d}

/* V1.9 · Auditoría de tablas */
.db-audit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 14px 14px}
.db-audit-grid section{border:1px solid #ececf0;border-radius:12px;padding:12px;background:#fafafa}
.db-audit-grid h4{margin:0 0 9px;font-size:12px}
.db-audit-row{display:grid;grid-template-columns:112px 1fr minmax(90px,1fr);gap:8px;align-items:center;padding:8px 0;border-top:1px solid #ececf0;font-size:10px}
.db-audit-row:first-of-type{border-top:0}
.db-audit-row code{font-size:9px;color:#777;background:#fff;border-radius:5px;padding:4px 5px;overflow-wrap:anywhere}
.db-audit-row span{color:#555}
.db-audit-row b{overflow-wrap:anywhere}
.db-audit-row small{grid-column:2/-1;color:#888}
.db-audit-row.ok b{color:#16784a}
.db-audit-row.bad b{color:#a02d2d}

@media(max-width:850px){
  .erp-report-top{grid-template-columns:1fr}
  .erp-report-box{border-right:0;border-bottom:1px solid #777}
  .erp-report-box--side{border-bottom:0}
  .erp-report-shipping{grid-template-columns:1fr 1fr}
  .erp-report-shipping>div:nth-child(2){border-right:0}
  .erp-report-shipping>div:nth-child(-n+2){border-bottom:1px solid #777}
  .db-audit-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .erp-report-paper{margin:0 8px 10px;padding:10px}
  .erp-report-simulator>summary,.db-audit>summary{align-items:flex-start;flex-direction:column}
  .erp-report-simulator>summary small,.db-audit>summary small{margin-left:0}
  .erp-report-box p{grid-template-columns:72px 1fr}
  .erp-report-shipping{grid-template-columns:1fr}
  .erp-report-shipping>div{border-right:0;border-bottom:1px solid #777}
  .erp-report-shipping>div:last-child{border-bottom:0}
  .db-audit-row{grid-template-columns:1fr}
  .db-audit-row small{grid-column:auto}
}
