:root{--ink:#142c29;--muted:#6b7771;--green:#21634d;--line:#dfe6df;--paper:#f5f7f3;--lime:#c7e6a8}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.14;letter-spacing:-1.1px}h2{font-size:24px;line-height:1.25}h3{font-size:18px}button{border:1px solid var(--line);border-radius:7px;padding:10px 16px;background:white;color:var(--ink)}.primary{background:var(--green);color:white;border-color:var(--green);font-weight:600}.primary span{margin-left:30px}.muted,.small{color:var(--muted)}.small{font-size:14px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.8px;color:var(--green);margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px;letter-spacing:2px}.brand-mark{display:inline-grid;place-items:center;width:37px;height:40px;border:1px solid #688b73;border-radius:10px;color:var(--lime);font-size:29px;font-weight:850}.login-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-brand{background:var(--ink);color:#fff;padding:52px 10%;display:flex;flex-direction:column;justify-content:space-between}.login-brand h1{font-size:clamp(45px,6vw,85px);letter-spacing:-3px}.login-brand .eyebrow{color:var(--lime)}.login-brand>span{font-size:14px;color:#abc0b6}.login-panel{display:grid;place-items:center;padding:50px}.login-panel form{width:100%;max-width:380px}.login-panel .primary{width:100%;margin:16px 0}.login-panel label{margin-top:22px}.workspace{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--ink);color:#d9e5dc;padding:30px 20px 20px;display:flex;flex-direction:column;min-height:100vh}.sidebar .brand{margin:0 4px 42px}.nav-label{font-size:11px;letter-spacing:1.8px;color:#9aac9f;margin:18px 10px}.nav-item{display:flex;align-items:center;gap:12px;background:none;border:0;color:#bbcbbf;width:100%;text-align:left;margin:5px 0;padding:13px 12px;font-size:14px}.nav-item small{margin-left:auto;font-size:11px}.nav-item.active{background:var(--lime);color:var(--ink);font-weight:700}.nav-item:hover:not(.active){background:#244037}#admin-nav{margin-top:25px}.sidebar-bottom{margin-top:auto;padding:65px 10px 25px}.sidebar-bottom p{font-size:14px;margin:12px 0 2px}.sidebar-bottom small{font-size:12px;color:#9aac9f}.phase-pill{border:1px solid #476252;border-radius:4px;font-size:10px;letter-spacing:1px;padding:4px 6px;color:var(--lime)}.account{display:flex;align-items:center;gap:10px;border-top:1px solid #355043;padding-top:18px;font-size:13px}.account>span{background:#355043;border-radius:50%;padding:10px}.account strong,.account small{display:block}.account small{color:#9aac9f}.account button{padding:5px;background:none;color:white;border:0;margin-left:auto}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:white;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.topbar b{padding:0 15px;font-weight:400;color:#bcc5bc}.top-note{font-size:12px}.dot-divider{padding:0 15px}main{padding:35px 38px;min-height:calc(100vh - 130px)}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:25px}.page-heading h1{margin:0 0 9px}.page-heading p{margin:0}.logo{width:170px;height:58px;object-fit:contain;mix-blend-mode:multiply}.intro-strip{display:flex;align-items:center;gap:18px;margin-bottom:25px;background:#e9efdf;border:1px solid #dbe4cb;border-radius:10px;padding:16px 20px}.intro-strip p{font-size:14px;margin:0}.intro-strip strong{display:block;margin-bottom:3px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.metric{background:#fff;border:1px solid var(--line);padding:20px;border-radius:10px}.metric label{font-size:13px;color:var(--muted)}.metric strong{display:block;font-size:32px;letter-spacing:-1px;margin:9px 0}.metric small{font-size:12px;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.toolbar{padding:20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar h3{margin:0 auto 0 0}.toolbar input{max-width:330px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px;white-space:nowrap}th{font-size:11px;letter-spacing:.5px;color:var(--muted);font-weight:600;background:#fafbf8;padding:14px 20px;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #edf0e9}tr:last-child td{border-bottom:0}.product-name{font-weight:600;display:block}.product-code{display:block;font:12px ui-monospace,monospace;color:var(--muted);margin-top:3px}.tag{display:inline-block;font-size:12px;border-radius:5px;padding:4px 8px;background:#edf3e9;color:#426638}.tag.amber{background:#fff3dc;color:#895a18}.row-button{padding:5px 10px;font-size:13px}.empty{padding:60px 25px;text-align:center}.empty-symbol{display:inline-grid;place-items:center;background:#edf3e9;border-radius:18px;width:68px;height:68px;font-size:32px;margin-bottom:20px}.empty h3{margin-bottom:8px}.empty p{max-width:440px;margin:0 auto 22px;font-size:14px;color:var(--muted)}footer{padding:20px 38px;font-size:10px;font-weight:700;letter-spacing:1px;display:flex;justify-content:space-between;color:var(--muted)}footer span{letter-spacing:0;font-weight:400}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.channel-card{border:1px solid var(--line);border-radius:10px;padding:22px;background:white}.channel-card h3{margin:14px 0 4px}.channel-card p{font-size:14px;color:var(--muted)}.channel-card .count{font-size:26px;font-weight:700}.platform-icon{background:#edf3e9;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:10px;font-weight:800}.notice{background:#fff5e5;color:#745526;padding:14px 18px;border-radius:8px;font-size:14px;margin-bottom:20px}dialog{border:0;border-radius:16px;box-shadow:0 25px 100px #001f2440;width:min(760px,calc(100vw - 28px));padding:0;max-height:90vh;color:var(--ink)}dialog::backdrop{background:#11272588;backdrop-filter:blur(3px)}.dialog-head{padding:24px 28px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);align-items:center}.dialog-head h2{margin:0}.dialog-head .eyebrow{margin-bottom:5px}.icon-button{border:0;background:#f2f5ee;padding:8px 12px}#dialog-body{padding:24px 28px}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}label{display:block;font-size:14px;font-weight:500}input,select,textarea{display:block;width:100%;padding:10px 12px;border:1px solid #cdd8cc;border-radius:6px;background:white;color:var(--ink);min-width:0;margin-top:6px;font-size:15px}textarea{resize:vertical;min-height:88px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.error{padding:12px;background:#ffebe5;color:#9d352a;border-radius:6px;margin:16px 0;font-size:14px}.detail-hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.detail-hero p{margin:0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:25px}.detail-grid>div{background:#f4f7f0;padding:14px;border-radius:7px;font-size:12px}.detail-grid strong{display:block;font-size:20px;margin-top:5px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.section-head h3{margin:0}.link-card{border:1px solid var(--line);border-radius:8px;padding:14px;margin:10px 0;font-size:13px}.link-card strong{display:block;margin-bottom:7px}.link-card code{font-size:12px;overflow-wrap:anywhere}.link-card p{margin:5px 0}.component{display:flex;gap:10px;align-items:end;margin:10px 0}.component select{flex:1}.component input{width:90px}.component button{padding:10px}#toast{position:fixed;bottom:25px;right:25px;background:var(--ink);color:white;border-radius:8px;padding:16px 22px;z-index:10;box-shadow:0 6px 30px #0002}.checklist{max-height:200px;overflow:auto;border:1px solid var(--line);padding:10px;border-radius:6px}.checklist label{display:flex;align-items:center;gap:10px;padding:4px;font-weight:400}.checklist input{width:auto;margin:0}#preview-banner{background:#f9dda1;padding:9px;text-align:center;font-size:12px;font-weight:700}.loading{padding:40px;color:var(--muted)}[hidden]{display:none!important}@media(max-width:1100px){.workspace{grid-template-columns:215px minmax(0,1fr)}main{padding:25px}.topbar{padding:0 25px}.metrics{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.top-note{display:none}}@media(max-width:720px){.login-shell{grid-template-columns:1fr}.login-brand{min-height:280px;padding:25px}.login-brand h1{font-size:42px;letter-spacing:-1px;margin:25px 0}.login-brand>span,.login-brand .eyebrow,.login-brand>div>p:last-child{display:none}.login-panel{padding:32px 24px}.workspace{display:block}.sidebar{min-height:0;padding:15px}.sidebar .brand{margin:0 0 12px}.nav-label,.sidebar-bottom,.account,#admin-nav{display:none}#module-nav{display:flex;overflow:auto}.nav-item{white-space:nowrap;width:auto;flex:1;padding:10px;font-size:12px}.nav-item small{display:none}.topbar{height:50px;padding:0 20px}.page-heading{align-items:start;flex-direction:column;gap:16px}main{padding:22px 16px}h1{font-size:30px}.metrics{gap:10px}.metric{padding:15px}.metric strong{font-size:27px}.cards{grid-template-columns:1fr}.intro-strip{align-items:start}.logo{width:110px}.toolbar{padding:14px}.toolbar input{max-width:none}.grid-form{grid-template-columns:1fr}.full{grid-column:auto}.detail-grid{grid-template-columns:repeat(2,1fr)}#dialog-body,.dialog-head{padding:20px}.topbar:after{content:"";display:none}footer{padding:18px}footer span{display:none}.account.mobile-show{display:flex}#admin-nav.mobile-show{display:block}.component{flex-wrap:wrap}.component select{flex-basis:60%}}

/* Editable catalogue. On small screens each product becomes a compact card. */
.catalog-table{table-layout:fixed;white-space:normal;font-size:13px}.catalog-table th,.catalog-table td{padding:12px 8px;vertical-align:top}.catalog-table th:first-child{width:25%}.catalog-table th:nth-child(4){width:14%}.catalog-table th:nth-child(5){width:13%}.catalog-table th:last-child{width:11%}.catalog-table input{font-size:13px;padding:6px;margin:0;min-height:34px;background:#fff;border-color:transparent}.catalog-table input:hover,.catalog-table input:focus{border-color:#a7baad;background:#f9fcf7}.product-cell{display:flex;gap:8px;align-items:flex-start;min-width:0}.product-cell>div{min-width:0;flex:1}.product-cell input[data-inline=name]{font-weight:600}.product-photo{flex:0 0 48px;width:48px;height:54px;position:relative;background:#edf3e9;border:1px solid var(--line);border-radius:7px;overflow:hidden;display:grid;place-items:center;cursor:pointer}.product-photo img{width:100%;height:100%;object-fit:contain}.product-photo input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-empty{font-size:22px;color:#688575}.row-small{display:flex;align-items:center;font-size:10px;color:var(--muted);gap:3px;margin-top:3px}.row-small input{min-width:0;width:58px;font-size:11px}.promotion-inputs{display:flex;align-items:center;gap:2px}.promotion-inputs input{width:calc(50% - 8px);padding:4px}.catalog-table small{font-size:10px;color:var(--muted)}.net-reset{font-size:10px;border:0;padding:2px;background:none;color:var(--green);text-align:left}.save-state{display:block;font-size:11px;color:var(--green);white-space:normal;overflow-wrap:anywhere;margin-top:5px}.row-actions button{font-size:11px;padding:5px 8px}.row-retry,.row-discard{margin-top:5px}.row-actions{overflow-wrap:anywhere}.catalog-wrap{overflow:visible}
@media(max-width:1150px){.catalog-table thead{display:none}.catalog-table,.catalog-table tbody{display:block}.catalog-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px;border-bottom:1px solid var(--line)}.catalog-table td{display:block;border:0;padding:0;min-width:0}.catalog-table td:first-child{grid-column:1/-1}.catalog-table td:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.catalog-table td:first-child:before,.catalog-table .row-actions:before{display:none}.catalog-table .row-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px}.catalog-table input{border-color:var(--line)}.catalog-table .save-state{margin:0}.catalog-table .product-photo{width:56px;flex-basis:56px}}
@media(max-width:480px){.catalog-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-table .row-actions{flex-wrap:wrap}}
.catalog-help{flex-basis:100%;font-size:12px;color:var(--muted);margin:0}.row-small{white-space:nowrap}
.product-gallery-summary{display:flex;align-items:center;gap:12px;margin-bottom:18px}.product-gallery-summary>img{width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.image-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.image-gallery figure{margin:0;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0}.image-gallery img{width:100%;height:130px;object-fit:contain}.image-gallery figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}.image-gallery button{padding:6px 9px;font-size:12px}.image-gallery strong{font-size:13px;color:var(--green)}.gallery-add input{font-size:13px}#gallery-status{font-size:13px;color:var(--green);margin-top:12px}@media(max-width:600px){.image-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.image-gallery img{height:100px}}
.stock-preview{display:flex;gap:14px;align-items:center;justify-content:flex-start;padding:12px 14px;background:#f4f7f0;border-radius:8px;font-size:14px}.stock-preview strong{margin-right:auto}.movement-history{border:1px solid var(--line);border-radius:10px;overflow:hidden}.movement-head,.movement-row{display:grid;grid-template-columns:1.25fr .7fr .95fr .55fr .55fr .65fr 2fr;gap:8px;align-items:start}.movement-head{padding:11px 12px;background:#fafbf8;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.4px;color:var(--muted);font-weight:700}.movement-row{padding:12px;border-bottom:1px solid #edf0e9;font-size:13px}.movement-row:last-child{border-bottom:0}.movement-delta{font-weight:700}.movement-delta.positive{color:#21634d}.movement-delta.negative{color:#9d352a}@media(max-width:720px){.stock-preview{align-items:flex-start;flex-direction:column;gap:5px}.stock-preview strong{margin-right:0}.movement-history{border:0}.movement-head{display:none}.movement-row{display:grid;grid-template-columns:1fr 1fr;padding:13px;margin-bottom:10px;border:1px solid var(--line);border-radius:9px;gap:9px}.movement-row span{min-width:0}.movement-row span:before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.3px;color:var(--muted);margin-bottom:2px}.movement-row span:last-child{grid-column:1/-1}}

/* Lotes: tarjetas adaptables dentro de la ventana existente. */
.lot-section{margin-top:24px}.lot-card{border:1px solid var(--line,#dce5dd);border-radius:10px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.lot-card>div:first-child{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.lot-card p{margin:10px 0}.lot-card small{color:#62736b}.lot-card .form-actions{flex-wrap:wrap}.lot-section h3{margin-bottom:8px}


/* Actualización 21 · catálogo paginado y maestros */
.catalog-minimums{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.catalog-minimums label{font-size:10px;color:var(--muted,#64748b);display:flex;align-items:center;gap:4px}.catalog-minimums input{width:58px;min-width:0;padding:4px 5px;font-size:11px}
.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 8px}.catalog-pagination span{font-size:12px;color:#64748b}.catalog-pagination button{min-width:90px}
.master-product-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #e5e7eb}.master-product-row strong,.master-product-row small{display:block}.master-product-row small{margin-top:3px;color:#64748b}.master-product-row select{width:100%}
@media(max-width:760px){.master-product-row{grid-template-columns:1fr}.catalog-minimums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-minimums label{display:block}.catalog-minimums input{width:100%}}

/* U40 · SoloColagenos: unidad maestra + Club/Packs/EcoPacks */
.solo-panel{overflow:hidden}.solo-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,420px) minmax(170px,220px);gap:12px;align-items:center}.solo-toolbar h3{margin:0}.solo-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.solo-product{border:1px solid var(--line,#d9e0dc);border-radius:14px;background:#fff;margin:0 0 12px;overflow:hidden}.solo-product-main{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;background:#f8faf9}.solo-product-main h3{font-size:16px;margin:3px 0}.solo-product-main p{margin:0;color:#66736f;font-size:12px}.solo-master-values{display:flex;gap:18px;text-align:right;flex:0 0 auto}.solo-master-values span{display:grid;gap:2px}.solo-master-values small,.solo-version-grid small{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#71807b}.solo-master-values b{font-size:15px}.solo-versions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px}.solo-version{min-width:0;border:1px solid #dfe5e2;border-radius:10px;padding:9px;background:#fff}.solo-kind-club_unidad{background:#f1f8ff}.solo-kind-pack{background:#f7f7f7}.solo-kind-ecopack{background:#edf9f0}.solo-kind-club_pack{background:#fff6e9}.solo-kind-club_ecopack{background:#f6f0ff}.solo-version-head{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-bottom:7px}.solo-version-head strong{font-size:12px}.solo-map-ok,.solo-map-warn,.solo-pair{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:800;white-space:nowrap}.solo-map-ok{background:#daf4df;color:#156b2b}.solo-map-warn,.solo-pair.warn{background:#fde3df;color:#a02c1f}.solo-pair{margin-top:6px;background:#e9f0ee;color:#48605a}.solo-version-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.solo-version-grid span{min-width:0}.solo-version-grid b{display:block;font-size:12px;overflow-wrap:anywhere}.solo-version-grid span:last-child b{font-size:14px}@media(max-width:1180px){.solo-versions{grid-template-columns:repeat(3,minmax(0,1fr))}.solo-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.solo-toolbar{grid-template-columns:1fr}.solo-product-main{align-items:flex-start;flex-direction:column}.solo-master-values{width:100%;justify-content:space-between;text-align:left}.solo-versions{grid-template-columns:1fr 1fr}.solo-metrics{grid-template-columns:1fr 1fr}}@media(max-width:520px){.solo-versions{grid-template-columns:1fr}}

/* =========================================================
   TikTok Seller Center · detalle de pedido / logística
   ========================================================= */

#dialog:has(.tt-order-sheet),
dialog:has(.tt-order-sheet){
  width:min(1180px,calc(100vw - 30px));
}

.tt-order-sheet{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.tt-order-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:25px;
  padding:4px 2px 20px;
  border-bottom:1px solid var(--line);
}

.tt-order-hero h2{
  margin:2px 0 5px;
  font-size:28px;
}

.tt-order-hero p{
  margin:0;
}

.tt-order-hero-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}

.tt-order-hero-side>strong{
  font-size:30px;
  letter-spacing:-1px;
}

.tt-order-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.tt-order-card{
  border:1px solid var(--line);
  background:white;
  border-radius:12px;
  padding:20px;
  overflow:hidden;
}

.tt-order-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}

.tt-order-card-head small{
  display:block;
  color:var(--muted);
  font-size:10px;
  letter-spacing:1.2px;
  font-weight:700;
}

.tt-order-card-head h3{
  margin:4px 0 0;
  font-size:18px;
}

.tt-order-big-total{
  font-size:26px;
}

.tt-order-grid2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 30px;
}

.tt-order-grid3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0 30px;
}

.tt-order-info-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding:10px 0;
  border-bottom:1px solid #edf0e9;
}

.tt-order-info-row:last-child{
  border-bottom:0;
}

.tt-order-info-row span{
  color:var(--muted);
  font-size:13px;
}

.tt-order-info-row strong{
  text-align:right;
  font-size:14px;
  overflow-wrap:anywhere;
}

.tt-mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px!important;
}

.tt-order-money-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}

.tt-order-money-grid>div{
  background:#f6f8f4;
  border:1px solid #e7ece5;
  border-radius:9px;
  padding:13px;
}

.tt-order-money-grid small{
  display:block;
  color:var(--muted);
  min-height:34px;
  font-size:11px;
}

.tt-order-money-grid strong{
  display:block;
  margin-top:5px;
  font-size:18px;
}

.tt-order-products{
  display:flex;
  flex-direction:column;
}

.tt-order-product{
  display:grid;
  grid-template-columns:minmax(250px,2.3fr) repeat(4,minmax(90px,.7fr));
  align-items:center;
  gap:15px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.tt-order-product:last-child{
  border-bottom:0;
}

.tt-order-product-main strong,
.tt-order-product-main small{
  display:block;
}

.tt-order-product-main small{
  color:var(--muted);
  margin:3px 0;
  font-size:11px;
}

.tt-order-product>div>small{
  display:block;
  color:var(--muted);
  font-size:10px;
}

.tt-order-product>div>strong{
  display:block;
  margin-top:4px;
}

.tt-order-technical summary{
  cursor:pointer;
  font-weight:650;
}

.tt-order-technical pre{
  margin-top:18px;
}

.tiktok-json{
  overflow:auto;
  max-height:480px;
  padding:16px;
  border-radius:8px;
  background:#102421;
  color:#e7f1e9;
  font-size:11px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.tt-logistics-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
  margin-top:18px;
}

.tt-logistics-card{
  border:1px solid var(--line);
  background:white;
  border-radius:12px;
  padding:18px;
}

.tt-logistics-card .actions,
.tt-order-card .actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.tiktok-workspace .tag.green{
  background:#e4f4e8;
  color:#26653b;
}

.tiktok-workspace .tag.red{
  background:#fde8e6;
  color:#9a322c;
}

.tiktok-workspace .tag.gray{
  background:#eef1ef;
  color:#59645f;
}

@media(max-width:900px){
  .tt-order-money-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tt-order-product{
    grid-template-columns:1fr 1fr;
  }

  .tt-order-product-main{
    grid-column:1/-1;
  }

  .tt-logistics-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){
  .tt-order-hero{
    flex-direction:column;
  }

  .tt-order-hero-side{
    align-items:flex-start;
  }

  .tt-order-grid2,
  .tt-order-grid3{
    grid-template-columns:1fr;
  }

  .tt-order-money-grid{
    grid-template-columns:1fr 1fr;
  }

  .tt-order-info-row{
    flex-direction:column;
    gap:3px;
  }

  .tt-order-info-row strong{
    text-align:left;
  }
}


/* TikTok · Postventa / Analytics */

.tt-postsale-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:15px;
 margin-top:18px;
}

.tt-postsale-card{
 background:#fff;
 border:1px solid var(--line);
 border-radius:12px;
 padding:18px;
}

.tt-postsale-card .actions{
 display:flex;
 gap:8px;
 margin-top:16px;
}

.tt-analytics-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
 margin-bottom:20px;
}

.tt-analytics-grid .metric strong{
 font-size:22px;
 overflow-wrap:anywhere;
}

@media(max-width:900px){
 .tt-postsale-grid{
  grid-template-columns:1fr;
 }

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

@media(max-width:550px){
 .tt-analytics-grid{
  grid-template-columns:1fr;
 }
}


/* TikTok · Webhooks / Finance / Affiliate */

.tt-webhook-summary{
 display:flex;
 flex-wrap:wrap;
 gap:7px;
 margin:15px 0 20px;
}

.tiktok-workspace section.tt-order-card + section.tt-order-card{
 margin-top:15px;
}

.tiktok-workspace .tiktok-kpis{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:12px;
 margin-bottom:18px;
}

.tiktok-workspace .metric{
 min-width:0;
}

.tiktok-workspace .metric strong.tt-mono{
 font-size:14px!important;
 overflow-wrap:anywhere;
}

@media(max-width:900px){
 .tiktok-workspace .tiktok-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

@media(max-width:550px){
 .tiktok-workspace .tiktok-kpis{
  grid-template-columns:1fr;
 }
}


/* TikTok · Promociones */

.tt-promo-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:15px;
 margin-top:18px;
}

@media(max-width:800px){
 .tt-promo-grid{
  grid-template-columns:1fr;
 }
}


/* ========================================================================
   LA BESTIA · TIKTOK SHOP
   Seller Center visual layer
   2026-10-11
   ======================================================================== */

/* ------------------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------------------ */

.tiktok-workspace{
  --tt-black:#161823;
  --tt-black-2:#252733;
  --tt-text:#161823;
  --tt-muted:#6b6f76;
  --tt-soft:#f8f8f9;
  --tt-soft-2:#f2f2f3;
  --tt-line:#e6e6e8;
  --tt-line-dark:#d9d9dc;
  --tt-red:#fe2c55;
  --tt-red-hover:#e9274d;
  --tt-cyan:#25f4ee;
  --tt-green:#0f9f6e;
  --tt-green-bg:#e8f8f2;
  --tt-amber:#b76e00;
  --tt-amber-bg:#fff4dc;
  --tt-danger:#d92828;
  --tt-danger-bg:#fff0f0;
  --tt-blue:#2563eb;
  --tt-shadow:0 1px 2px rgba(22,24,35,.05),
              0 8px 30px rgba(22,24,35,.04);

  color:var(--tt-text);
  background:#f7f7f8;
  min-height:100%;
  border-radius:16px;
  overflow:hidden;
}


/* ------------------------------------------------------------------------
   CABECERA CUENTA
   ------------------------------------------------------------------------ */

.tiktok-workspace .miravia-shell-head{
  position:relative;
  overflow:hidden;
  min-height:128px;
  padding:27px 30px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.1);
  border-radius:0;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,244,238,.23),transparent 22%),
    radial-gradient(circle at 78% 110%,rgba(254,44,85,.28),transparent 30%),
    linear-gradient(115deg,#111318 0%,#191b25 57%,#242631 100%);
  color:white;
  box-shadow:none;
}

.tiktok-workspace .miravia-shell-head:before{
  content:"";
  position:absolute;
  width:68px;
  height:68px;
  right:105px;
  top:26px;
  border-radius:20px;
  transform:rotate(10deg);
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}

.tiktok-workspace .miravia-shell-head > *{
  position:relative;
  z-index:1;
}

.tiktok-workspace .miravia-shell-head .eyebrow{
  margin:0 0 5px;
  color:var(--tt-cyan);
  font-size:10px;
  font-weight:800;
  letter-spacing:1.5px;
}

.tiktok-workspace .miravia-shell-head h1{
  margin:0;
  color:#fff;
  font-size:27px;
  line-height:1.15;
  letter-spacing:-.5px;
}

.tiktok-workspace .miravia-shell-head p:not(.eyebrow){
  margin:7px 0 0;
  color:#c8c9cd;
}

.tiktok-workspace .miravia-shell-head p strong{
  color:#fff;
}

.tiktok-workspace .miravia-shell-head > button{
  min-height:38px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:7px;
  background:rgba(255,255,255,.08);
  color:white;
  font-weight:650;
}

.tiktok-workspace .miravia-shell-head > button:hover{
  background:rgba(255,255,255,.15);
}


/* ------------------------------------------------------------------------
   NAVEGACION SELLER CENTER
   ------------------------------------------------------------------------ */

.tiktok-workspace .tiktok-tabs{
  position:relative;
  display:flex;
  gap:0;
  padding:0 20px;
  overflow-x:auto;
  border-bottom:1px solid var(--tt-line);
  background:white;
  scrollbar-width:thin;
}

.tiktok-workspace .tiktok-tabs button{
  position:relative;
  flex:0 0 auto;
  min-height:54px;
  padding:0 15px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#666970;
  font-size:13px;
  font-weight:600;
  box-shadow:none;
}

.tiktok-workspace .tiktok-tabs button:hover{
  color:var(--tt-black);
  background:#fafafa;
}

.tiktok-workspace .tiktok-tabs button.active{
  color:var(--tt-black);
  background:white;
  font-weight:750;
}

.tiktok-workspace .tiktok-tabs button.active:after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--tt-red);
}


/* ------------------------------------------------------------------------
   CONTENEDOR GENERAL
   ------------------------------------------------------------------------ */

.tiktok-workspace .miravia-tab-content{
  padding:22px;
  background:#f7f7f8;
}

.tiktok-workspace .panel{
  border:1px solid var(--tt-line);
  border-radius:10px;
  background:#fff;
  box-shadow:none;
}

.tiktok-workspace > .miravia-tab-content > .panel{
  padding:20px;
}

.tiktok-workspace .section-head{
  gap:20px;
  margin-bottom:18px;
}

.tiktok-workspace .section-head h3{
  margin:0;
  color:var(--tt-text);
  font-size:18px;
  font-weight:720;
  letter-spacing:-.2px;
}

.tiktok-workspace .section-head p{
  margin-top:4px;
}

.tiktok-workspace .muted,
.tiktok-workspace .small.muted{
  color:var(--tt-muted);
}


/* ------------------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------------------ */

.tiktok-workspace button{
  min-height:34px;
  border:1px solid #d8d8dc;
  border-radius:6px;
  background:white;
  color:#303238;
  font-weight:600;
  transition:
    background .14s ease,
    border-color .14s ease,
    color .14s ease,
    box-shadow .14s ease,
    transform .08s ease;
}

.tiktok-workspace button:hover:not(:disabled){
  border-color:#bfc0c5;
  background:#f6f6f7;
}

.tiktok-workspace button:active:not(:disabled){
  transform:translateY(1px);
}

.tiktok-workspace button.primary,
.tiktok-workspace .primary{
  border-color:var(--tt-red);
  background:var(--tt-red);
  color:white;
}

.tiktok-workspace button.primary:hover:not(:disabled),
.tiktok-workspace .primary:hover:not(:disabled){
  border-color:var(--tt-red-hover);
  background:var(--tt-red-hover);
}

.tiktok-workspace button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.tiktok-workspace .link-button,
.tiktok-workspace button.link-button{
  min-height:auto;
  padding:0;
  border:0;
  background:none;
  color:var(--tt-text);
  text-align:left;
}

.tiktok-workspace .link-button:hover{
  color:var(--tt-red);
  background:none;
}


/* ------------------------------------------------------------------------
   FORMULARIOS / BUSQUEDA / FILTROS
   ------------------------------------------------------------------------ */

.tiktok-workspace input,
.tiktok-workspace select,
.tiktok-workspace textarea{
  min-height:38px;
  border:1px solid #d9d9dc;
  border-radius:6px;
  background:#fff;
  color:var(--tt-text);
  font-size:13px;
}

.tiktok-workspace input:focus,
.tiktok-workspace select:focus,
.tiktok-workspace textarea:focus{
  outline:0;
  border-color:#8e8f95;
  box-shadow:0 0 0 2px rgba(22,24,35,.05);
}

.tiktok-workspace .toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px;
  margin:0 0 16px;
  border:1px solid var(--tt-line);
  border-radius:8px;
  background:#fafafa;
}

.tiktok-workspace .toolbar input[type="search"],
.tiktok-workspace .toolbar input:not([type]){
  flex:1 1 320px;
  min-width:200px;
}

.tiktok-workspace .toolbar select{
  flex:0 1 230px;
}


/* ------------------------------------------------------------------------
   KPIS
   ------------------------------------------------------------------------ */

.tiktok-workspace .tiktok-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}

.tiktok-workspace .metric{
  position:relative;
  min-width:0;
  padding:17px 18px 16px;
  border:1px solid var(--tt-line);
  border-radius:9px;
  background:white;
  box-shadow:none;
}

.tiktok-workspace .metric:before{
  content:"";
  position:absolute;
  top:-1px;
  left:17px;
  width:30px;
  height:2px;
  background:var(--tt-red);
}

.tiktok-workspace .metric:nth-child(2n):before{
  background:var(--tt-cyan);
}

.tiktok-workspace .metric label{
  display:block;
  margin-bottom:7px;
  color:#777980;
  font-size:11px;
  font-weight:650;
}

.tiktok-workspace .metric strong{
  display:block;
  color:var(--tt-black);
  font-size:22px;
  line-height:1.15;
  font-weight:750;
  overflow-wrap:anywhere;
}

.tiktok-workspace .metric small{
  display:block;
  margin-top:6px;
  color:#85878c;
  line-height:1.35;
}


/* ------------------------------------------------------------------------
   AVISOS
   ------------------------------------------------------------------------ */

.tiktok-workspace .notice{
  padding:13px 15px;
  border:1px solid #dedfe2;
  border-left:3px solid var(--tt-black);
  border-radius:7px;
  background:#fafafa;
  color:#45474d;
}

.tiktok-workspace .error{
  padding:13px 15px;
  border:1px solid #f2c3c3;
  border-left:3px solid var(--tt-danger);
  border-radius:7px;
  background:var(--tt-danger-bg);
  color:#8f2525;
}


/* ------------------------------------------------------------------------
   BADGES / ESTADOS
   ------------------------------------------------------------------------ */

.tiktok-workspace .tag,
.tt-order-sheet .tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 9px;
  border-radius:5px;
  font-size:11px;
  line-height:1.2;
  font-weight:700;
  white-space:nowrap;
}

.tiktok-workspace .tag.green,
.tt-order-sheet .tag.green{
  background:var(--tt-green-bg,#e8f8f2);
  color:#087852;
}

.tiktok-workspace .tag.red,
.tt-order-sheet .tag.red{
  background:#ffeded;
  color:#c02727;
}

.tiktok-workspace .tag.amber,
.tt-order-sheet .tag.amber{
  background:#fff2d8;
  color:#9a6000;
}

.tiktok-workspace .tag.gray,
.tt-order-sheet .tag.gray{
  background:#efeff1;
  color:#62646b;
}


/* ------------------------------------------------------------------------
   TABLAS SELLER CENTER
   ------------------------------------------------------------------------ */

.tiktok-workspace .table-wrap,
.tiktok-workspace .tiktok-miravia-table-wrap{
  overflow:auto;
  border:1px solid var(--tt-line);
  border-radius:8px;
  background:white;
}

.tiktok-workspace table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:white;
  font-size:12.5px;
}

.tiktok-workspace table thead th{
  position:sticky;
  top:0;
  z-index:1;
  height:42px;
  padding:10px 13px;
  border-bottom:1px solid var(--tt-line);
  background:#f7f7f8;
  color:#6c6e74;
  font-size:10.5px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:.35px;
  text-align:left;
  white-space:nowrap;
}

.tiktok-workspace table tbody td{
  padding:13px;
  border-bottom:1px solid #ededee;
  color:#383a40;
  vertical-align:middle;
}

.tiktok-workspace table tbody tr:last-child td{
  border-bottom:0;
}

.tiktok-workspace table tbody tr{
  transition:background .12s ease;
}

.tiktok-workspace table tbody tr:hover{
  background:#fafafb;
}

.tiktok-workspace table td > small,
.tiktok-workspace .product-code{
  display:block;
  margin-top:4px;
  color:#8a8c92;
  font-size:10.5px;
}

.tiktok-workspace table td strong{
  color:var(--tt-black);
}

.tiktok-workspace table td:last-child button{
  white-space:nowrap;
}


/* ------------------------------------------------------------------------
   PAGINACION
   ------------------------------------------------------------------------ */

.tiktok-workspace .catalog-pagination{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid #eeeeef;
}

.tiktok-workspace .catalog-pagination span{
  color:#74767c;
  font-size:12px;
}


/* ========================================================================
   CATALOGO
   ======================================================================== */

.tiktok-workspace #tiktok-listings .table-wrap{
  max-height:calc(100vh - 335px);
}

.tiktok-workspace #tiktok-listings table tbody td:first-child{
  min-width:250px;
}

.tiktok-workspace #tiktok-listings table tbody tr td:first-child strong{
  font-weight:680;
}

.tiktok-workspace #tiktok-listings .actions,
.tiktok-workspace #tiktok-listings td > div:last-child{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}


/* ========================================================================
   PEDIDOS
   ======================================================================== */

.tiktok-workspace #tiktok-orders .tiktok-order-link strong{
  color:#171820;
  font-weight:720;
}

.tiktok-workspace #tiktok-orders tbody tr{
  cursor:default;
}

.tiktok-workspace #tiktok-orders tbody td:nth-last-child(2) strong{
  font-size:14px;
}


/* ========================================================================
   DETALLE PEDIDO · MODAL SELLER CENTER
   ======================================================================== */

#dialog:has(.tt-order-sheet),
dialog:has(.tt-order-sheet){
  width:min(1220px,calc(100vw - 26px));
  max-width:1220px;
}

.tt-order-sheet{
  --tt-text:#161823;
  --tt-muted:#74767c;
  --tt-line:#e7e7e9;
  --tt-red:#fe2c55;
  display:flex;
  flex-direction:column;
  gap:14px;
  color:var(--tt-text);
}

.tt-order-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:6px 4px 19px;
  border-bottom:1px solid var(--tt-line);
}

.tt-order-hero .eyebrow{
  margin:0 0 5px;
  color:#909197;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.25px;
}

.tt-order-hero h2{
  margin:0;
  color:#161823;
  font-size:25px;
  line-height:1.2;
  font-weight:760;
}

.tt-order-hero p{
  margin:6px 0 0;
  color:#777980;
}

.tt-order-hero-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.tt-order-hero-side > strong,
.tt-order-big-total{
  color:#161823;
  font-size:27px;
  line-height:1;
  font-weight:760;
}

.tt-order-card,
.tt-postsale-card{
  border:1px solid var(--tt-line);
  border-radius:9px;
  background:white;
  padding:18px;
  box-shadow:none;
}

.tt-order-card + .tt-order-card{
  margin-top:0;
}

.tt-order-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:15px;
}

.tt-order-card-head small{
  display:block;
  color:#8a8c92;
  font-size:9.5px;
  line-height:1.3;
  letter-spacing:1px;
  font-weight:750;
}

.tt-order-card-head h3{
  margin:4px 0 0;
  color:#161823;
  font-size:17px;
  line-height:1.25;
}

.tt-order-grid2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 30px;
}

.tt-order-grid3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0 25px;
}

.tt-order-info-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  min-height:38px;
  padding:9px 0;
  border-bottom:1px solid #eeeeef;
}

.tt-order-info-row:last-child{
  border-bottom:0;
}

.tt-order-info-row span{
  color:#777980;
  font-size:12px;
}

.tt-order-info-row strong{
  max-width:65%;
  color:#2d2f35;
  font-size:12.5px;
  font-weight:650;
  text-align:right;
  overflow-wrap:anywhere;
}

.tt-order-money-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.tt-order-money-grid > div{
  min-width:0;
  padding:12px;
  border:1px solid #e9e9eb;
  border-radius:7px;
  background:#fafafa;
}

.tt-order-money-grid small{
  display:block;
  min-height:28px;
  color:#7b7d83;
  font-size:10.5px;
}

.tt-order-money-grid strong{
  display:block;
  margin-top:4px;
  color:#161823;
  font-size:15px;
}

.tt-order-product{
  display:grid;
  grid-template-columns:minmax(280px,2fr) repeat(4,minmax(90px,.7fr));
  gap:14px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid #eeeeef;
}

.tt-order-product:last-child{
  border-bottom:0;
}

.tt-order-product-main strong{
  display:block;
  margin-bottom:4px;
  color:#161823;
}

.tt-order-product small{
  color:#85878c;
  font-size:10.5px;
}

.tt-order-actions,
.tt-order-card .actions,
.tt-postsale-card .actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}

.tt-order-actions button,
.tt-order-card button,
.tt-postsale-card button{
  min-height:34px;
  border:1px solid #d8d8db;
  border-radius:6px;
  background:white;
  color:#303238;
  font-weight:600;
}

.tt-order-actions button.primary,
.tt-order-card button.primary{
  border-color:#fe2c55;
  background:#fe2c55;
  color:white;
}

.tt-mono{
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing:-.15px;
}

.tiktok-json{
  max-height:520px;
  overflow:auto;
  padding:16px;
  border:1px solid #292b33;
  border-radius:7px;
  background:#161823;
  color:#f4f4f5;
  font-size:11px;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}


/* ========================================================================
   FULFILLMENT / LOGISTICA
   ======================================================================== */

.tiktok-workspace #tiktok-logistics > .notice{
  margin-bottom:15px;
}

.tiktok-workspace #tiktok-logistics table td:first-child strong{
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size:11.5px;
}

.tiktok-workspace #tiktok-logistics table td:nth-child(3),
.tiktok-workspace #tiktok-logistics table td:nth-child(4){
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size:11px;
}

.tt-logistics-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.tt-logistics-card{
  padding:17px;
  border:1px solid #e5e5e7;
  border-radius:9px;
  background:white;
}


/* ========================================================================
   POSTVENTA
   ======================================================================== */

.tiktok-workspace .tt-postsale-grid,
.tiktok-workspace .tiktok-post-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.tiktok-workspace .tt-postsale-card,
.tiktok-workspace .tiktok-post-card{
  min-width:0;
  padding:17px;
  border:1px solid var(--tt-line);
  border-radius:9px;
  background:#fff;
}

.tiktok-workspace .tiktok-post-card .tiktok-card-head,
.tiktok-workspace .tt-postsale-card .tt-order-card-head{
  padding-bottom:11px;
  border-bottom:1px solid #eeeeef;
}

.tiktok-workspace .tiktok-id-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:12px 0;
}

.tiktok-workspace .tiktok-id-grid > span{
  padding:10px;
  border-radius:6px;
  background:#f7f7f8;
}

.tiktok-workspace .tiktok-id-grid small{
  display:block;
  color:#85878c;
  font-size:10px;
}

.tiktok-workspace .tiktok-id-grid b{
  display:block;
  margin-top:4px;
  font-size:12px;
  overflow-wrap:anywhere;
}


/* ========================================================================
   CALIDAD / COMPLIANCE
   ======================================================================== */

.tiktok-workspace .tiktok-quality-progress{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.tiktok-workspace .tiktok-quality-progress > div{
  padding:15px;
  border:1px solid var(--tt-line);
  border-radius:8px;
  background:#fafafa;
}

.tiktok-workspace .tiktok-quality-progress small,
.tiktok-workspace .tiktok-quality-progress span{
  display:block;
  color:#777980;
}

.tiktok-workspace .tiktok-quality-progress strong{
  display:block;
  margin:5px 0;
  color:#161823;
  font-size:20px;
}

.tiktok-workspace .tiktok-quality-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.tiktok-workspace .tiktok-quality-card{
  min-width:0;
  padding:17px;
  border:1px solid var(--tt-line);
  border-radius:9px;
  background:#fff;
}

.tiktok-workspace .tiktok-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.tiktok-workspace .tiktok-card-head small{
  display:block;
  color:#85878c;
  font-size:10px;
}

.tiktok-workspace .tiktok-card-head h4{
  margin:4px 0;
  color:#161823;
  font-size:15px;
}

.tiktok-workspace .tiktok-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin:12px 0;
}

.tiktok-workspace .tiktok-detail-grid > div{
  padding:10px;
  border-radius:6px;
  background:#f7f7f8;
}

.tiktok-workspace .tiktok-detail-grid small{
  display:block;
  color:#8a8c92;
  font-size:9.5px;
}

.tiktok-workspace .tiktok-detail-grid strong{
  display:block;
  margin-top:4px;
  font-size:12px;
  overflow-wrap:anywhere;
}

.tiktok-workspace .tiktok-quality-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:12px;
}

.tiktok-workspace .tiktok-card-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}


/* ========================================================================
   AFFILIATE / CREADORES
   ======================================================================== */

.tiktok-workspace #tiktok-affiliate > .tiktok-kpis{
  margin-bottom:15px;
}

.tiktok-workspace #tiktok-affiliate .tt-order-card{
  margin-top:12px;
}

.tiktok-workspace #tiktok-affiliate table td:first-child{
  max-width:260px;
}

.tiktok-workspace #tiktok-affiliate table td:nth-child(2){
  font-weight:650;
}

.tiktok-workspace #tiktok-affiliate section.tt-order-card:before{
  content:"";
  display:block;
  width:38px;
  height:3px;
  margin:-18px 0 15px -18px;
  background:linear-gradient(90deg,#25f4ee 0 50%,#fe2c55 50%);
}


/* ========================================================================
   PROMOCIONES
   ======================================================================== */

.tiktok-workspace .tt-promo-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.tiktok-workspace .tt-promo-grid .tt-order-card{
  position:relative;
  overflow:hidden;
}

.tiktok-workspace .tt-promo-grid .tt-order-card:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:4px;
  height:100%;
  background:var(--tt-red);
}


/* ========================================================================
   FINANZAS
   ======================================================================== */

.tiktok-workspace #tiktok-finance-advanced .table-wrap{
  margin-top:14px;
}

.tiktok-workspace #tiktok-finance-advanced table td:first-child strong{
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size:11px;
}

.tiktok-finance-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:14px;
}

.tiktok-finance-row{
  display:grid;
  grid-template-columns:minmax(200px,1.6fr) repeat(4,minmax(100px,1fr));
  gap:10px;
  padding:12px;
  border:1px solid #e6e6e8;
  border-radius:7px;
  background:#fafafa;
}

.tiktok-finance-row small{
  display:block;
  color:#83858b;
  font-size:10px;
}

.tiktok-finance-row b{
  display:block;
  margin-top:3px;
  color:#161823;
  font-size:12px;
}


/* ========================================================================
   MENSAJES
   ======================================================================== */

.tiktok-workspace .tiktok-chat,
.tiktok-chat{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:520px;
  overflow:auto;
  padding:15px;
  border:1px solid #e7e7e9;
  border-radius:8px;
  background:#f7f7f8;
}

.tiktok-chat-msg{
  max-width:72%;
  padding:10px 12px;
  border-radius:10px;
  background:white;
  border:1px solid #e4e4e6;
}

.tiktok-chat-msg p{
  margin:0;
  white-space:pre-wrap;
}

.tiktok-chat-msg small{
  display:block;
  margin-top:5px;
  color:#85878c;
  font-size:9.5px;
}

.tiktok-chat-msg.seller{
  align-self:flex-end;
  border-color:#ffd2dc;
  background:#fff2f5;
}

.tiktok-chat-msg.buyer{
  align-self:flex-start;
}

.tiktok-message-form{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:8px;
  margin-top:12px;
}

.tiktok-message-form textarea{
  min-height:80px;
  resize:vertical;
}


/* ========================================================================
   WEBHOOKS
   ======================================================================== */

.tiktok-workspace .tt-webhook-summary{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:13px 0 17px;
}

.tiktok-workspace #tiktok-webhooks code{
  display:block;
  max-width:100%;
  margin-top:7px;
  padding:8px 10px;
  overflow-wrap:anywhere;
  border-radius:6px;
  background:#161823;
  color:#f3f3f4;
  font-size:10.5px;
}


/* ========================================================================
   ANALYTICS
   ======================================================================== */

.tiktok-workspace #tiktok-analytics > .small{
  margin-bottom:12px;
  padding:8px 11px;
  border-radius:6px;
  background:#f2f2f3;
}


/* ========================================================================
   API / TOKENS
   ======================================================================== */

.tiktok-workspace #tiktok-integration .tiktok-kpis .metric strong{
  font-size:13px;
}

.tiktok-workspace #tiktok-integration table td:nth-child(2){
  max-width:480px;
}


/* ========================================================================
   ACTIVIDAD
   ======================================================================== */

.tiktok-workspace .tiktok-activity-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.tiktok-workspace .tiktok-activity-grid > section{
  padding:17px;
  border:1px solid var(--tt-line);
  border-radius:9px;
  background:white;
}

.tiktok-workspace .tiktok-activity-grid > section > h3{
  margin:0 0 13px;
  font-size:15px;
}

.tiktok-workspace .tiktok-log-row{
  display:grid;
  grid-template-columns:minmax(150px,1.5fr) minmax(110px,.8fr) auto;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid #eeeeef;
}

.tiktok-workspace .tiktok-log-row:last-child{
  border-bottom:0;
}

.tiktok-workspace .tiktok-log-row b{
  display:block;
  font-size:12px;
}

.tiktok-workspace .tiktok-log-row small{
  color:#85878c;
  font-size:9.5px;
}

.tiktok-workspace .tiktok-log-row span{
  color:#53555b;
  font-size:11px;
}


/* ========================================================================
   CONFIGURACION
   ======================================================================== */

.tiktok-workspace .tiktok-settings{
  overflow:hidden;
}

.tiktok-workspace .tiktok-settings > summary{
  padding:15px 18px;
  border-bottom:1px solid var(--tt-line);
  background:#fafafa;
  color:#161823;
  cursor:pointer;
  font-weight:700;
}

.tiktok-workspace .tiktok-settings form{
  padding:18px;
}

.tiktok-workspace .tiktok-permissions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:17px 0;
}

.tiktok-workspace .tiktok-permissions label{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid #e6e6e8;
  border-radius:6px;
  background:#fafafa;
  font-size:11.5px;
}


/* ------------------------------------------------------------------------
   EMPTY / LOADING
   ------------------------------------------------------------------------ */

.tiktok-workspace .loading{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777980;
}

.tiktok-workspace .empty,
.tiktok-workspace .empty-state{
  padding:36px 20px;
  text-align:center;
  color:#777980;
}


/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media(max-width:1100px){

  .tiktok-workspace .tiktok-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tiktok-workspace .tiktok-quality-grid,
  .tiktok-workspace .tt-postsale-grid,
  .tiktok-workspace .tiktok-post-grid,
  .tiktok-workspace .tt-promo-grid{
    grid-template-columns:1fr;
  }

  .tt-order-money-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tiktok-finance-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tiktok-finance-row > div:first-child{
    grid-column:1/-1;
  }

  .tiktok-workspace .tiktok-permissions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


@media(max-width:850px){

  .tiktok-workspace .miravia-shell-head{
    padding:22px;
  }

  .tiktok-workspace .miravia-tab-content{
    padding:15px;
  }

  .tiktok-workspace .toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .tiktok-workspace .toolbar input,
  .tiktok-workspace .toolbar select{
    width:100%;
    flex-basis:auto;
  }

  .tiktok-workspace .tiktok-quality-progress,
  .tiktok-workspace .tiktok-activity-grid,
  .tt-logistics-grid{
    grid-template-columns:1fr;
  }

  .tt-order-grid3{
    grid-template-columns:1fr 1fr;
  }

  .tt-order-product{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tt-order-product-main{
    grid-column:1/-1;
  }
}


@media(max-width:600px){

  .tiktok-workspace{
    border-radius:0;
  }

  .tiktok-workspace .miravia-shell-head{
    min-height:0;
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
  }

  .tiktok-workspace .miravia-shell-head h1{
    font-size:23px;
  }

  .tiktok-workspace .tiktok-tabs{
    padding:0 8px;
  }

  .tiktok-workspace .tiktok-tabs button{
    min-height:48px;
    padding:0 11px;
    font-size:11.5px;
  }

  .tiktok-workspace .miravia-tab-content{
    padding:10px;
  }

  .tiktok-workspace > .miravia-tab-content > .panel{
    padding:13px;
  }

  .tiktok-workspace .tiktok-kpis{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .tiktok-workspace .metric{
    padding:13px;
  }

  .tiktok-workspace .metric strong{
    font-size:18px;
  }

  .tiktok-workspace .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .tiktok-workspace .catalog-pagination{
    justify-content:space-between;
  }

  .tiktok-workspace .catalog-pagination span{
    display:none;
  }

  .tt-order-hero{
    flex-direction:column;
  }

  .tt-order-hero-side{
    align-items:flex-start;
  }

  .tt-order-grid2,
  .tt-order-grid3,
  .tt-order-money-grid{
    grid-template-columns:1fr;
  }

  .tt-order-info-row{
    flex-direction:column;
    gap:3px;
  }

  .tt-order-info-row strong{
    max-width:100%;
    text-align:left;
  }

  .tiktok-chat-msg{
    max-width:90%;
  }

  .tiktok-message-form{
    grid-template-columns:1fr;
  }

  .tiktok-workspace .tiktok-permissions{
    grid-template-columns:1fr;
  }

  .tiktok-workspace .tiktok-detail-grid{
    grid-template-columns:1fr;
  }

  .tiktok-finance-row{
    grid-template-columns:1fr;
  }

  .tiktok-finance-row > div:first-child{
    grid-column:auto;
  }
}


/* ============================================================
   LA BESTIA TIKTOK SELLER CENTER FULL 2026-10-11
   Capa visual completa TikTok Shop / Seller Center
   ============================================================ */

.tiktok-workspace{
 --tt-bg:#f5f5f7;
 --tt-card:#fff;
 --tt-card-2:#fafafa;
 --tt-line:#e5e5e8;
 --tt-line-strong:#d6d6da;
 --tt-text:#161823;
 --tt-muted:#6b6b73;
 --tt-soft:#8a8b91;
 --tt-black:#161823;
 --tt-red:#fe2c55;
 --tt-cyan:#25f4ee;
 --tt-green:#00a56a;
 --tt-amber:#b76e00;
 --tt-danger:#d92d20;
 --tt-radius:10px;
 --tt-shadow:0 1px 2px rgba(0,0,0,.04);
 color:var(--tt-text);
}

/* CONTENEDOR GENERAL */

.tiktok-workspace{
 background:var(--tt-bg);
 border-radius:14px;
 padding:20px;
}

.tiktok-workspace *,
.tiktok-workspace *::before,
.tiktok-workspace *::after{
 box-sizing:border-box;
}

.tiktok-workspace h1,
.tiktok-workspace h2,
.tiktok-workspace h3,
.tiktok-workspace h4{
 color:var(--tt-text);
 letter-spacing:-.015em;
}

.tiktok-workspace h2{
 font-size:23px;
 line-height:1.25;
 margin:0 0 6px;
}

.tiktok-workspace h3{
 font-size:16px;
 line-height:1.35;
 margin:0 0 12px;
}

.tiktok-workspace p{
 line-height:1.5;
}

.tiktok-workspace .muted,
.tiktok-workspace .small.muted{
 color:var(--tt-muted)!important;
}

.tiktok-workspace .tt-mono{
 font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,
 "Liberation Mono","Courier New",monospace;
}

/* CABECERA CUENTA */

.tiktok-workspace > .section-head,
.tiktok-workspace .tiktok-head,
.tiktok-workspace .tiktok-account-head{
 background:var(--tt-card);
 border:1px solid var(--tt-line);
 border-radius:var(--tt-radius);
 padding:18px 20px;
 margin-bottom:14px;
 box-shadow:var(--tt-shadow);
}

.tiktok-workspace .section-head{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:18px;
}

.tiktok-workspace .section-head > div:first-child{
 min-width:0;
}

.tiktok-workspace .section-head p{
 margin:4px 0 0;
}

/* TABS SELLER CENTER */

.tiktok-workspace .tabs,
.tiktok-workspace .tiktok-tabs{
 display:flex;
 align-items:center;
 gap:2px;
 overflow-x:auto;
 scrollbar-width:thin;
 background:var(--tt-card);
 border:1px solid var(--tt-line);
 border-radius:var(--tt-radius);
 padding:0 10px;
 margin:0 0 16px;
 box-shadow:var(--tt-shadow);
}

.tiktok-workspace .tabs button,
.tiktok-workspace .tiktok-tabs button{
 position:relative;
 flex:0 0 auto;
 min-height:48px;
 padding:0 13px;
 border:0;
 border-radius:0;
 background:transparent;
 color:#5c5d64;
 font-size:13px;
 font-weight:600;
 box-shadow:none;
}

.tiktok-workspace .tabs button:hover,
.tiktok-workspace .tiktok-tabs button:hover{
 color:var(--tt-text);
 background:#fafafa;
}

.tiktok-workspace .tabs button.active,
.tiktok-workspace .tiktok-tabs button.active,
.tiktok-workspace .tabs button[aria-selected="true"],
.tiktok-workspace .tiktok-tabs button[aria-selected="true"]{
 color:var(--tt-text);
 background:transparent;
}

.tiktok-workspace .tabs button.active::after,
.tiktok-workspace .tiktok-tabs button.active::after,
.tiktok-workspace .tabs button[aria-selected="true"]::after,
.tiktok-workspace .tiktok-tabs button[aria-selected="true"]::after{
 content:"";
 position:absolute;
 left:10px;
 right:10px;
 bottom:0;
 height:3px;
 border-radius:3px 3px 0 0;
 background:var(--tt-black);
}

/* PANELES */

.tiktok-workspace .panel,
.tiktok-workspace section{
 background:var(--tt-card);
 border:1px solid var(--tt-line);
 border-radius:var(--tt-radius);
 box-shadow:var(--tt-shadow);
}

.tiktok-workspace .panel{
 padding:18px;
 margin-bottom:15px;
}

.tiktok-workspace section{
 padding:18px;
 margin:0 0 15px;
}

.tiktok-workspace section > h3{
 display:flex;
 align-items:center;
 justify-content:space-between;
 min-height:24px;
 padding-bottom:12px;
 margin-bottom:14px;
 border-bottom:1px solid #eeeeef;
}

/* KPI */

.tiktok-workspace .tiktok-kpis{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:12px;
 margin:0 0 16px;
}

.tiktok-workspace .metric{
 position:relative;
 min-width:0;
 min-height:104px;
 display:flex;
 flex-direction:column;
 justify-content:center;
 background:var(--tt-card);
 border:1px solid var(--tt-line);
 border-radius:var(--tt-radius);
 padding:16px 17px;
 box-shadow:var(--tt-shadow);
 overflow:hidden;
}

.tiktok-workspace .metric::before{
 content:"";
 position:absolute;
 left:0;
 top:0;
 bottom:0;
 width:3px;
 background:#d8d8dc;
}

.tiktok-workspace .metric label{
 display:block;
 margin-bottom:8px;
 color:var(--tt-muted);
 font-size:12px;
 font-weight:600;
 text-transform:none;
}

.tiktok-workspace .metric strong{
 display:block;
 color:var(--tt-text);
 font-size:25px;
 font-weight:700;
 line-height:1.1;
 overflow-wrap:anywhere;
}

.tiktok-workspace .metric small{
 display:block;
 margin-top:7px;
 color:var(--tt-muted);
 font-size:11px;
 line-height:1.35;
}

/* BOTONES */

.tiktok-workspace button,
.tiktok-workspace .button{
 min-height:34px;
 border:1px solid var(--tt-line-strong);
 border-radius:6px;
 padding:7px 13px;
 background:#fff;
 color:var(--tt-text);
 font-size:12px;
 font-weight:600;
 line-height:1.2;
 cursor:pointer;
 box-shadow:none;
 transition:
   background .12s ease,
   border-color .12s ease,
   opacity .12s ease;
}

.tiktok-workspace button:hover:not(:disabled),
.tiktok-workspace .button:hover:not(:disabled){
 background:#f6f6f7;
 border-color:#bfc0c5;
}

.tiktok-workspace button.primary,
.tiktok-workspace .button.primary{
 background:var(--tt-black);
 border-color:var(--tt-black);
 color:#fff;
}

.tiktok-workspace button.primary:hover:not(:disabled),
.tiktok-workspace .button.primary:hover:not(:disabled){
 background:#2b2d36;
 border-color:#2b2d36;
}

.tiktok-workspace button.danger{
 color:#fff;
 background:var(--tt-danger);
 border-color:var(--tt-danger);
}

.tiktok-workspace button:disabled{
 opacity:.45;
 cursor:not-allowed;
}

.tiktok-workspace .actions{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:8px;
}

/* FORMULARIOS */

.tiktok-workspace input,
.tiktok-workspace select,
.tiktok-workspace textarea{
 width:100%;
 min-height:36px;
 border:1px solid var(--tt-line-strong);
 border-radius:6px;
 background:#fff;
 color:var(--tt-text);
 padding:8px 10px;
 font:inherit;
 outline:none;
 box-shadow:none;
}

.tiktok-workspace textarea{
 min-height:82px;
 resize:vertical;
}

.tiktok-workspace input:focus,
.tiktok-workspace select:focus,
.tiktok-workspace textarea:focus{
 border-color:#777982;
 box-shadow:0 0 0 2px rgba(22,24,35,.07);
}

.tiktok-workspace label{
 color:#44454c;
 font-size:12px;
 font-weight:600;
}

.tiktok-workspace .form-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:13px;
}

.tiktok-workspace .tiktok-permissions{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:8px;
 margin:15px 0;
}

.tiktok-workspace .tiktok-permissions label{
 min-height:39px;
 display:flex;
 align-items:center;
 gap:8px;
 padding:8px 10px;
 border:1px solid var(--tt-line);
 border-radius:6px;
 background:#fafafa;
 font-weight:500;
}

.tiktok-workspace .tiktok-permissions input[type="checkbox"]{
 width:16px;
 min-height:auto;
 height:16px;
 margin:0;
}

/* AVISOS */

.tiktok-workspace .notice,
.tiktok-workspace .error,
.tiktok-workspace .success{
 border-radius:7px;
 padding:11px 13px;
 margin:10px 0 14px;
 font-size:12px;
 line-height:1.5;
}

.tiktok-workspace .notice{
 border:1px solid #dedee2;
 background:#f8f8f9;
 color:#4f5057;
}

.tiktok-workspace .error{
 border:1px solid #fac5c2;
 background:#fff5f4;
 color:#a62921;
}

.tiktok-workspace .success{
 border:1px solid #b8e6d3;
 background:#f2fbf7;
 color:#087a50;
}

/* TAGS / ESTADOS */

.tiktok-workspace .tag,
.tiktok-workspace .sales-badge,
.tiktok-workspace [class*="status-"]{
 display:inline-flex;
 align-items:center;
 gap:5px;
 width:max-content;
 max-width:100%;
 min-height:23px;
 padding:3px 8px;
 border-radius:999px;
 border:1px solid #dddde0;
 background:#f7f7f8;
 color:#515259;
 font-size:11px;
 font-weight:600;
 line-height:1.2;
 white-space:nowrap;
}

.tiktok-workspace .tag.green,
.tiktok-workspace .status-paid,
.tiktok-workspace .status-delivered{
 background:#effaf5;
 border-color:#bce9d4;
 color:#087a50;
}

.tiktok-workspace .tag.amber,
.tiktok-workspace .status-pending,
.tiktok-workspace .status-work{
 background:#fff8e8;
 border-color:#f1d79c;
 color:#8b5b00;
}

.tiktok-workspace .status-bad,
.tiktok-workspace .status-deleted,
.tiktok-workspace .status-soldout{
 background:#fff1f0;
 border-color:#f4c3bf;
 color:#b42318;
}

/* TABLAS */

.tiktok-workspace .table-wrap{
 width:100%;
 overflow:auto;
 border:1px solid var(--tt-line);
 border-radius:8px;
 background:#fff;
}

.tiktok-workspace table{
 width:100%;
 border-collapse:separate;
 border-spacing:0;
 background:#fff;
 font-size:12px;
}

.tiktok-workspace thead th{
 position:sticky;
 top:0;
 z-index:1;
 height:39px;
 padding:10px 11px;
 border-bottom:1px solid var(--tt-line);
 background:#fafafa;
 color:#66676d;
 font-size:10px;
 font-weight:700;
 letter-spacing:.035em;
 text-align:left;
 white-space:nowrap;
}

.tiktok-workspace tbody td{
 padding:11px;
 border-bottom:1px solid #eeeeef;
 color:#33343b;
 vertical-align:top;
}

.tiktok-workspace tbody tr:last-child td{
 border-bottom:0;
}

.tiktok-workspace tbody tr:hover td{
 background:#fafafa;
}

.tiktok-workspace td strong{
 display:block;
 color:#202129;
 font-weight:650;
}

.tiktok-workspace td small{
 display:block;
 margin-top:3px;
 color:var(--tt-muted);
 line-height:1.35;
}

.tiktok-workspace td button{
 min-height:29px;
 padding:5px 9px;
}

/* EMPTY / LOADING */

.tiktok-workspace .loading{
 padding:28px 16px;
 margin:0;
 text-align:center;
 color:var(--tt-muted);
}

.tiktok-workspace .empty,
.tiktok-workspace .empty-state{
 padding:34px 20px;
 text-align:center;
 color:var(--tt-muted);
 border:1px dashed var(--tt-line-strong);
 border-radius:8px;
 background:#fafafa;
}

/* CATÁLOGO */

.tiktok-workspace .tiktok-listing,
.tiktok-workspace .tiktok-product-card{
 border:1px solid var(--tt-line);
 border-radius:8px;
 background:#fff;
}

.tiktok-workspace .tiktok-product-image{
 width:56px;
 height:56px;
 border-radius:6px;
 object-fit:cover;
 border:1px solid var(--tt-line);
 background:#fafafa;
}

/* PEDIDOS */

.tiktok-workspace .tt-order-card{
 padding:0;
 overflow:hidden;
}

.tiktok-workspace .tt-order-card + .tt-order-card{
 margin-top:14px;
}

.tiktok-workspace .tt-order-head,
.tiktok-workspace .tt-card-head{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 padding:13px 16px;
 border-bottom:1px solid var(--tt-line);
 background:#fafafa;
}

.tiktok-workspace .tt-order-body{
 padding:16px;
}

.tiktok-workspace .tt-order-grid,
.tiktok-workspace .tiktok-detail-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:10px;
}

.tiktok-workspace .tt-order-grid > div,
.tiktok-workspace .tiktok-detail-grid > div{
 padding:10px 12px;
 border:1px solid var(--tt-line);
 border-radius:7px;
 background:#fff;
}

.tiktok-workspace .tt-order-grid small,
.tiktok-workspace .tiktok-detail-grid small{
 display:block;
 margin-bottom:4px;
 color:var(--tt-muted);
 font-size:10px;
}

.tiktok-workspace .tt-order-line,
.tiktok-workspace .tiktok-order-line{
 display:grid;
 grid-template-columns:minmax(220px,1fr) auto auto;
 align-items:center;
 gap:14px;
 padding:12px 0;
 border-bottom:1px solid var(--tt-line);
}

.tiktok-workspace .tt-order-line:last-child,
.tiktok-workspace .tiktok-order-line:last-child{
 border-bottom:0;
}

/* FINANZAS */

.tiktok-workspace .tiktok-finance-list{
 display:grid;
 gap:8px;
}

.tiktok-workspace .tiktok-finance-row{
 display:grid;
 grid-template-columns:minmax(180px,1.4fr) repeat(4,minmax(90px,1fr));
 gap:10px;
 align-items:center;
 padding:11px 12px;
 border:1px solid var(--tt-line);
 border-radius:7px;
 background:#fff;
}

.tiktok-workspace .tiktok-finance-row small{
 display:block;
 color:var(--tt-muted);
 font-size:10px;
}

.tiktok-workspace .tiktok-finance-row b{
 display:block;
 margin-top:3px;
 font-size:12px;
}

/* MENSAJES */

.tiktok-chat{
 display:flex;
 flex-direction:column;
 gap:9px;
 max-height:520px;
 overflow:auto;
 padding:14px;
 background:#f6f6f7;
 border:1px solid var(--tt-line);
 border-radius:9px;
}

.tiktok-chat-msg{
 max-width:76%;
 padding:9px 11px;
 border-radius:9px;
 border:1px solid var(--tt-line);
 background:#fff;
}

.tiktok-chat-msg p{
 margin:0;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
}

.tiktok-chat-msg small{
 display:block;
 margin-top:5px;
 color:var(--tt-muted);
 font-size:10px;
}

.tiktok-chat-msg.buyer{
 align-self:flex-start;
 border-bottom-left-radius:3px;
}

.tiktok-chat-msg.seller{
 align-self:flex-end;
 color:#fff;
 background:var(--tt-black);
 border-color:var(--tt-black);
 border-bottom-right-radius:3px;
}

.tiktok-chat-msg.seller small{
 color:#d8d8dc;
}

.tiktok-message-form{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 gap:9px;
 align-items:end;
 margin-top:11px;
}

/* LOGÍSTICA / FULFILLMENT */

.tiktok-workspace .tiktok-logistics-card,
.tiktok-workspace .tt-fulfillment-card{
 border:1px solid var(--tt-line);
 border-radius:8px;
 padding:14px;
 background:#fff;
}

.tiktok-workspace .tiktok-logistics-card + .tiktok-logistics-card,
.tiktok-workspace .tt-fulfillment-card + .tt-fulfillment-card{
 margin-top:10px;
}

/* POSTVENTA */

.tiktok-workspace .tiktok-postsale-card,
.tiktok-workspace .tiktok-post-card{
 border:1px solid var(--tt-line);
 border-radius:8px;
 padding:14px;
 background:#fff;
}

.tiktok-workspace .tiktok-postsale-card + .tiktok-postsale-card,
.tiktok-workspace .tiktok-post-card + .tiktok-post-card{
 margin-top:10px;
}

/* AFFILIATE */

.tiktok-workspace #tiktok-affiliate section{
 overflow:hidden;
}

.tiktok-workspace #tiktok-affiliate .metric::before{
 background:#7b61ff;
}

/* PROMOCIONES */

.tiktok-workspace #tiktok-promotions .metric::before{
 background:var(--tt-red);
}

/* ANALYTICS */

.tiktok-workspace #tiktok-analytics .metric::before{
 background:#3478f6;
}

/* WEBHOOKS */

.tt-webhook-summary{
 display:flex;
 flex-wrap:wrap;
 gap:7px;
 margin:10px 0 16px;
}

.tt-webhook-summary .tag{
 font-size:10px;
}

/* API / TOKENS */

.tiktok-workspace details{
 margin:0 0 10px;
 border:1px solid var(--tt-line);
 border-radius:8px;
 background:#fff;
 overflow:hidden;
}

.tiktok-workspace details summary{
 cursor:pointer;
 padding:12px 14px;
 font-size:13px;
 font-weight:650;
 background:#fafafa;
 border-bottom:1px solid transparent;
}

.tiktok-workspace details[open] summary{
 border-bottom-color:var(--tt-line);
}

.tiktok-workspace details > :not(summary){
 margin-left:14px;
 margin-right:14px;
}

.tiktok-workspace details > :last-child{
 margin-bottom:14px;
}

/* JSON / DIAGNÓSTICO */

.tiktok-workspace .tiktok-json,
.tiktok-json{
 max-height:460px;
 overflow:auto;
 margin:10px 0;
 padding:13px;
 border-radius:7px;
 background:#1d1f24;
 color:#e8e8ea;
 font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,
 "Liberation Mono","Courier New",monospace;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
}

/* PAGINACIÓN */

.tiktok-workspace .pagination{
 display:flex;
 justify-content:flex-end;
 align-items:center;
 gap:6px;
 margin-top:12px;
}

/* SCROLL */

.tiktok-workspace ::-webkit-scrollbar{
 width:8px;
 height:8px;
}

.tiktok-workspace ::-webkit-scrollbar-thumb{
 background:#cfd0d4;
 border-radius:999px;
}

.tiktok-workspace ::-webkit-scrollbar-track{
 background:transparent;
}

/* RESPONSIVE */

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

 .tiktok-workspace .tiktok-permissions{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tiktok-workspace .tt-order-grid,
 .tiktok-workspace .tiktok-detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tiktok-workspace .tiktok-finance-row{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

@media(max-width:760px){
 .tiktok-workspace{
  padding:10px;
  border-radius:8px;
 }

 .tiktok-workspace .section-head{
  flex-direction:column;
 }

 .tiktok-workspace .section-head .actions{
  width:100%;
 }

 .tiktok-workspace .form-grid,
 .tiktok-workspace .tiktok-permissions,
 .tiktok-workspace .tt-order-grid,
 .tiktok-workspace .tiktok-detail-grid{
  grid-template-columns:1fr;
 }

 .tiktok-workspace .tt-order-line,
 .tiktok-workspace .tiktok-order-line{
  grid-template-columns:1fr;
 }

 .tiktok-workspace .tiktok-finance-row{
  grid-template-columns:1fr 1fr;
 }

 .tiktok-message-form{
  grid-template-columns:1fr;
 }

 .tiktok-message-form button{
  width:100%;
 }

 .tiktok-chat-msg{
  max-width:90%;
 }
}

@media(max-width:520px){
 .tiktok-workspace .tiktok-kpis{
  grid-template-columns:1fr;
 }

 .tiktok-workspace .metric{
  min-height:88px;
 }

 .tiktok-workspace .actions{
  flex-direction:column;
  align-items:stretch;
  width:100%;
 }

 .tiktok-workspace .actions button{
  width:100%;
 }

 .tiktok-workspace .tiktok-finance-row{
  grid-template-columns:1fr;
 }
}

/* FIN LA BESTIA TIKTOK SELLER CENTER FULL 2026-10-11 */


/* ============================================================
   TIKTOK SELLER CENTER · AJUSTE VISUAL 2026-10-11
   ============================================================ */

/* KPIs: impedir tarjetas gigantes */
.tiktok-workspace .tiktok-kpis{
 align-items:start!important;
 grid-auto-rows:auto!important;
}

.tiktok-workspace .tiktok-kpis > .metric{
 height:auto!important;
 min-height:105px!important;
 max-height:125px!important;
 align-self:start!important;
 justify-content:center!important;
}

/* Menos espacio interior en Inicio */
.tiktok-workspace .tiktok-kpis + .panel{
 margin-top:2px!important;
}

/* Cabecera TikTok: más contraste */
.tiktok-workspace .platform-hero,
.tiktok-workspace .platform-header,
.tiktok-workspace .tiktok-hero{
 color:#201c29!important;
}

.tiktok-workspace .platform-hero h1,
.tiktok-workspace .platform-header h1,
.tiktok-workspace .tiktok-hero h1{
 color:#201c29!important;
 opacity:1!important;
}

.tiktok-workspace .platform-hero p,
.tiktok-workspace .platform-header p,
.tiktok-workspace .tiktok-hero p{
 color:#68616f!important;
 opacity:1!important;
}

/* Seller Center algo más compacto */
.tiktok-workspace .panel{
 padding:16px!important;
}

.tiktok-workspace section{
 padding:16px!important;
}

.tiktok-workspace tbody td{
 padding-top:10px!important;
 padding-bottom:10px!important;
}

/* Gestión de catálogo */
.tiktok-workspace td .actions{
 gap:5px!important;
}

.tiktok-workspace td .actions button{
 min-height:28px!important;
 padding:4px 8px!important;
 font-size:11px!important;
}

/* Filtros superiores */
.tiktok-workspace .filters,
.tiktok-workspace .toolbar{
 gap:8px!important;
}

/* Modal TikTok */
.tiktok-workspace dialog,
.tiktok-workspace .dialog,
.tiktok-workspace .modal{
 border-radius:12px!important;
}

/* FIN TIKTOK SELLER CENTER · AJUSTE VISUAL 2026-10-11 */

/* ============================================================
   TIKTOK SELLER CENTER · CONTRASTE EJECUTIVO 2026-10-11
   ============================================================ */

.tiktok-workspace{
 --tt-bg:#f1f2f4!important;
 --tt-card:#ffffff!important;
 --tt-line:#d8d9de!important;
 --tt-line-strong:#c8c9cf!important;
 --tt-text:#161823!important;
 --tt-muted:#64666d!important;
 --tt-black:#161823!important;

 background:#f1f2f4!important;
 color:#161823!important;
}

/* Cabecera del canal */
.tiktok-workspace .platform-hero,
.tiktok-workspace .platform-header,
.tiktok-workspace .tiktok-hero{
 background:linear-gradient(135deg,#17131f 0%,#2b2337 65%,#443450 100%)!important;
 border:0!important;
 border-top:4px solid #25f4ee!important;
 color:#fff!important;
 box-shadow:0 8px 24px rgba(22,24,35,.12)!important;
}

.tiktok-workspace .platform-hero h1,
.tiktok-workspace .platform-header h1,
.tiktok-workspace .tiktok-hero h1{
 color:#fff!important;
 opacity:1!important;
}

.tiktok-workspace .platform-hero p,
.tiktok-workspace .platform-header p,
.tiktok-workspace .tiktok-hero p{
 color:#d8d3df!important;
 opacity:1!important;
}

.tiktok-workspace .platform-hero small,
.tiktok-workspace .platform-header small,
.tiktok-workspace .tiktok-hero small{
 color:#25f4ee!important;
}

/* Tabs */
.tiktok-workspace .tabs,
.tiktok-workspace .tiktok-tabs{
 border:1px solid #d4d5da!important;
 box-shadow:0 2px 8px rgba(22,24,35,.05)!important;
}

.tiktok-workspace .tabs button,
.tiktok-workspace .tiktok-tabs button{
 color:#4d4f57!important;
}

.tiktok-workspace .tabs button:hover,
.tiktok-workspace .tiktok-tabs button:hover{
 background:#f0f1f3!important;
 color:#161823!important;
}

.tiktok-workspace .tabs button.active,
.tiktok-workspace .tiktok-tabs button.active{
 background:#ece9f3!important;
 color:#3d3153!important;
 font-weight:700!important;
}

.tiktok-workspace .tabs button.active::after,
.tiktok-workspace .tiktok-tabs button.active::after{
 background:#161823!important;
 height:3px!important;
}

/* Paneles */
.tiktok-workspace .panel,
.tiktok-workspace section{
 border:1px solid #d6d7dc!important;
 box-shadow:0 2px 8px rgba(22,24,35,.045)!important;
}

/* Títulos de bloque */
.tiktok-workspace .section-head{
 border-bottom:1px solid #e1e2e5!important;
 padding-bottom:14px!important;
 margin-bottom:14px!important;
}

/* KPIs */
.tiktok-workspace .metric{
 border:1px solid #d5d6da!important;
 background:#fff!important;
 box-shadow:0 3px 10px rgba(22,24,35,.05)!important;
}

.tiktok-workspace .metric::before{
 width:4px!important;
 background:#161823!important;
}

.tiktok-workspace .metric label{
 color:#5d6067!important;
 font-size:11px!important;
 text-transform:uppercase!important;
 letter-spacing:.035em!important;
}

.tiktok-workspace .metric strong{
 color:#161823!important;
 font-size:27px!important;
}

/* Botones: que se diferencien */
.tiktok-workspace button,
.tiktok-workspace .button{
 border:1px solid #bfc1c7!important;
 background:#fff!important;
 color:#202129!important;
}

.tiktok-workspace button:hover:not(:disabled),
.tiktok-workspace .button:hover:not(:disabled){
 background:#eceef1!important;
 border-color:#979aa2!important;
}

.tiktok-workspace button.primary,
.tiktok-workspace .button.primary{
 background:#161823!important;
 border-color:#161823!important;
 color:#fff!important;
}

.tiktok-workspace button.primary:hover:not(:disabled){
 background:#2b2d35!important;
}

/* Catálogo */
.tiktok-workspace .toolbar{
 background:#eceef1!important;
 border:1px solid #d3d4d9!important;
 border-radius:8px!important;
 padding:10px!important;
 margin-bottom:12px!important;
}

.tiktok-workspace input,
.tiktok-workspace select{
 background:#fff!important;
 border-color:#c6c8cd!important;
}

.tiktok-workspace thead th{
 background:#e7e8eb!important;
 color:#45474e!important;
 border-bottom:1px solid #cfd1d5!important;
}

.tiktok-workspace tbody td{
 border-bottom:1px solid #e0e1e4!important;
}

.tiktok-workspace tbody tr:nth-child(even) td{
 background:#fafafa!important;
}

.tiktok-workspace tbody tr:hover td{
 background:#f1f3f5!important;
}

/* Estados */
.tiktok-workspace .tag.green{
 background:#e6f7ef!important;
 color:#05734a!important;
 border-color:#9edbc0!important;
}

.tiktok-workspace .tag.amber{
 background:#fff3d9!important;
 color:#805400!important;
 border-color:#e9ca82!important;
}

/* Acciones de catálogo */
.tiktok-workspace td .actions button,
.tiktok-workspace td button{
 background:#f7f7f8!important;
 border-color:#c7c8cd!important;
}

.tiktok-workspace td button:hover{
 background:#e6e7ea!important;
}

/* FIN CONTRASTE EJECUTIVO */

/* ============================================================
   LA BESTIA · BOKOSIA
   Identidad visual final TikTok Farmaviva
   ============================================================ */

.tiktok-workspace{
 --bk-ink:#182321;
 --bk-ink-soft:#31413e;
 --bk-muted:#71807a;
 --bk-paper:#f4f6f2;
 --bk-surface:#ffffff;
 --bk-surface-soft:#f8f9f6;
 --bk-line:#e3e8e2;

 --bk-purple:#66517b;
 --bk-purple-dark:#4f3c64;
 --bk-purple-soft:#eee8f4;
 --bk-purple-pale:#f7f3fa;

 --bk-green:#21634d;
 --bk-lime:#c7e6a8;

 background:var(--bk-paper)!important;
 color:var(--bk-ink)!important;
 padding:0!important;
 border-radius:0!important;
}

/* ------------------------------------------------------------
   CABECERA BOKOSIA
   ------------------------------------------------------------ */

.tiktok-workspace .miravia-shell-head{
 position:relative;
 overflow:hidden;
 min-height:150px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 padding:28px 30px!important;
 margin-bottom:24px!important;

 background:
  radial-gradient(circle at 88% 18%,rgba(255,255,255,.10),transparent 25%),
  linear-gradient(125deg,#4c3a60 0%,#67517d 58%,#7b678e 100%)!important;

 border:0!important;
 border-radius:16px!important;
 box-shadow:0 16px 40px rgba(57,42,72,.14)!important;
 color:#fff!important;
}

.tiktok-workspace .miravia-shell-head::after{
 content:"";
 position:absolute;
 width:250px;
 height:250px;
 right:-75px;
 bottom:-135px;
 border:1px solid rgba(255,255,255,.13);
 border-radius:50%;
}

.tiktok-workspace .miravia-shell-head .eyebrow{
 color:#d7f5c3!important;
 letter-spacing:2px!important;
 font-size:11px!important;
 font-weight:750!important;
 margin-bottom:9px!important;
}

.tiktok-workspace .miravia-shell-head h1{
 color:#fff!important;
 font-size:30px!important;
 letter-spacing:-1px!important;
 margin:0 0 6px!important;
}

.tiktok-workspace .miravia-shell-head p:not(.eyebrow){
 color:rgba(255,255,255,.72)!important;
 margin:0!important;
 font-size:14px!important;
}

.tiktok-workspace .miravia-shell-head strong{
 color:#fff!important;
}

.tiktok-workspace .miravia-shell-head button{
 position:relative;
 z-index:2;
 background:rgba(255,255,255,.10)!important;
 border:1px solid rgba(255,255,255,.25)!important;
 color:#fff!important;
 border-radius:9px!important;
 padding:9px 14px!important;
 backdrop-filter:blur(8px);
}

.tiktok-workspace .miravia-shell-head button:hover{
 background:rgba(255,255,255,.18)!important;
}

/* ------------------------------------------------------------
   NAVEGACIÓN
   ------------------------------------------------------------ */

.tiktok-workspace .tiktok-tabs{
 gap:4px!important;
 padding:6px!important;
 margin-bottom:20px!important;
 border:0!important;
 border-radius:13px!important;
 background:#fff!important;
 box-shadow:0 5px 20px rgba(31,48,43,.055)!important;
}

.tiktok-workspace .tiktok-tabs button{
 min-height:38px!important;
 padding:0 13px!important;
 border:0!important;
 border-radius:8px!important;
 background:transparent!important;
 color:#626f6b!important;
 font-size:12px!important;
 font-weight:620!important;
}

.tiktok-workspace .tiktok-tabs button:hover{
 background:#f4f5f2!important;
 color:var(--bk-ink)!important;
}

.tiktok-workspace .tiktok-tabs button.active{
 background:var(--bk-purple-pale)!important;
 color:var(--bk-purple-dark)!important;
}

.tiktok-workspace .tiktok-tabs button.active::after{
 display:none!important;
}

/* ------------------------------------------------------------
   CONTENIDO
   ------------------------------------------------------------ */

.tiktok-workspace .miravia-tab-content{
 padding:0!important;
}

.tiktok-workspace .panel,
.tiktok-workspace section{
 background:#fff!important;
 border:0!important;
 border-radius:14px!important;
 box-shadow:0 7px 25px rgba(31,48,43,.055)!important;
}

.tiktok-workspace .panel{
 padding:22px!important;
}

.tiktok-workspace section{
 padding:22px!important;
}

.tiktok-workspace .section-head{
 padding:0 0 16px!important;
 margin:0 0 16px!important;
 border-bottom:1px solid var(--bk-line)!important;
}

.tiktok-workspace .section-head h3{
 font-size:18px!important;
 color:var(--bk-ink)!important;
 letter-spacing:-.25px!important;
}

.tiktok-workspace .muted,
.tiktok-workspace .small.muted{
 color:var(--bk-muted)!important;
}

/* ------------------------------------------------------------
   KPIS
   ------------------------------------------------------------ */

.tiktok-workspace .tiktok-kpis{
 gap:14px!important;
 margin-bottom:18px!important;
}

.tiktok-workspace .metric{
 position:relative;
 min-height:108px!important;
 max-height:none!important;
 padding:17px 18px!important;

 background:#fff!important;
 border:0!important;
 border-radius:13px!important;
 box-shadow:0 7px 22px rgba(31,48,43,.055)!important;
}

.tiktok-workspace .metric::before{
 content:"";
 position:absolute;
 left:18px!important;
 top:auto!important;
 bottom:13px!important;
 width:28px!important;
 height:3px!important;
 border-radius:3px!important;
 background:var(--bk-purple)!important;
}

.tiktok-workspace .metric label{
 color:#7a8581!important;
 font-size:10px!important;
 font-weight:750!important;
 letter-spacing:1px!important;
 text-transform:uppercase!important;
}

.tiktok-workspace .metric strong{
 color:var(--bk-ink)!important;
 font-size:29px!important;
 letter-spacing:-.7px!important;
}

.tiktok-workspace .metric small{
 color:var(--bk-muted)!important;
}

/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */

.tiktok-workspace button,
.tiktok-workspace .button{
 min-height:34px!important;
 padding:7px 12px!important;
 border:0!important;
 border-radius:8px!important;
 background:#edf0ec!important;
 color:#34433f!important;
 font-size:11px!important;
 font-weight:650!important;
 box-shadow:none!important;
}

.tiktok-workspace button:hover:not(:disabled),
.tiktok-workspace .button:hover:not(:disabled){
 background:#e4e8e2!important;
 color:#1e2e2a!important;
}

.tiktok-workspace button.primary,
.tiktok-workspace .button.primary{
 background:var(--bk-purple)!important;
 color:#fff!important;
 border:0!important;
}

.tiktok-workspace button.primary:hover:not(:disabled){
 background:var(--bk-purple-dark)!important;
}

/* botones dentro de tablas más discretos */

.tiktok-workspace td button{
 background:transparent!important;
 color:#4f5d59!important;
 border:1px solid #e0e5df!important;
}

.tiktok-workspace td button:hover{
 background:#f3f5f1!important;
}

/* ------------------------------------------------------------
   FILTROS
   ------------------------------------------------------------ */

.tiktok-workspace .toolbar{
 padding:8px!important;
 gap:8px!important;
 background:#f5f6f3!important;
 border:0!important;
 border-radius:11px!important;
 margin-bottom:14px!important;
}

.tiktok-workspace input,
.tiktok-workspace select,
.tiktok-workspace textarea{
 border:1px solid #dfe5df!important;
 border-radius:8px!important;
 background:#fff!important;
 color:var(--bk-ink)!important;
}

.tiktok-workspace input:focus,
.tiktok-workspace select:focus,
.tiktok-workspace textarea:focus{
 border-color:#a997ba!important;
 box-shadow:0 0 0 3px rgba(102,81,123,.08)!important;
}

/* ------------------------------------------------------------
   TABLAS
   ------------------------------------------------------------ */

.tiktok-workspace .table-wrap{
 border:0!important;
 border-radius:12px!important;
 box-shadow:inset 0 0 0 1px #e6eae5!important;
 overflow:hidden!important;
}

.tiktok-workspace table{
 background:#fff!important;
}

.tiktok-workspace thead th{
 position:static!important;
 background:#f5f6f3!important;
 color:#73807c!important;
 border-bottom:1px solid #e4e8e3!important;
 font-size:9px!important;
 font-weight:760!important;
 letter-spacing:.8px!important;
 padding:11px 12px!important;
}

.tiktok-workspace tbody td{
 padding:13px 12px!important;
 background:#fff!important;
 border-bottom:1px solid #edf0ec!important;
}

.tiktok-workspace tbody tr:nth-child(even) td{
 background:#fbfcfa!important;
}

.tiktok-workspace tbody tr:hover td{
 background:#f7f8f5!important;
}

/* ------------------------------------------------------------
   ESTADOS
   ------------------------------------------------------------ */

.tiktok-workspace .tag,
.tiktok-workspace .sales-badge,
.tiktok-workspace [class*="status-"]{
 border:0!important;
 border-radius:999px!important;
 padding:4px 8px!important;
 font-size:10px!important;
 font-weight:700!important;
}

.tiktok-workspace .tag.green,
.tiktok-workspace .status-paid,
.tiktok-workspace .status-delivered{
 background:#e8f5ed!important;
 color:#21634d!important;
}

.tiktok-workspace .tag.amber,
.tiktok-workspace .status-pending,
.tiktok-workspace .status-work{
 background:#fff5dc!important;
 color:#8b6516!important;
}

.tiktok-workspace .status-bad,
.tiktok-workspace .status-deleted,
.tiktok-workspace .status-soldout{
 background:#fdebea!important;
 color:#a64139!important;
}

/* ------------------------------------------------------------
   PERMISOS / CONFIGURACIÓN
   ------------------------------------------------------------ */

.tiktok-workspace .tiktok-permissions label{
 border:0!important;
 background:#f6f7f4!important;
 border-radius:9px!important;
}

.tiktok-workspace details{
 border:0!important;
 border-radius:11px!important;
 box-shadow:0 5px 18px rgba(31,48,43,.045)!important;
}

.tiktok-workspace details summary{
 background:#f7f8f5!important;
}

/* ------------------------------------------------------------
   FINANZAS / MENSAJES / LOGÍSTICA
   ------------------------------------------------------------ */

.tiktok-workspace .tiktok-finance-row,
.tiktok-workspace .tiktok-logistics-card,
.tiktok-workspace .tt-fulfillment-card,
.tiktok-workspace .tiktok-postsale-card,
.tiktok-workspace .tiktok-post-card{
 border:0!important;
 border-radius:11px!important;
 background:#f8f9f6!important;
 box-shadow:inset 0 0 0 1px #e7ebe6!important;
}

.tiktok-chat{
 background:#f3f5f1!important;
 border:0!important;
}

.tiktok-chat-msg{
 border:0!important;
 box-shadow:0 3px 12px rgba(31,48,43,.06)!important;
}

.tiktok-chat-msg.seller{
 background:var(--bk-purple)!important;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media(max-width:760px){
 .tiktok-workspace .miravia-shell-head{
  padding:22px!important;
  min-height:135px;
 }

 .tiktok-workspace .miravia-shell-head h1{
  font-size:25px!important;
 }

 .tiktok-workspace .tiktok-tabs{
  border-radius:10px!important;
 }
}

/* FIN LA BESTIA · BOKOSIA */

/* ============================================================
   BOKOSIA · ACCIONES CATÁLOGO
   ============================================================ */

.tiktok-workspace td button{
 font-weight:650!important;
 transition:
   transform .12s ease,
   background .12s ease,
   box-shadow .12s ease!important;
}

.tiktok-workspace td button:hover{
 transform:translateY(-1px);
}

/* Detalle · neutro */
.tiktok-workspace td button[data-tiktok-listing-detail]{
 background:#f2f4f1!important;
 color:#42504c!important;
 border:0!important;
}

/* Abrir ALFA · naranja elegante */
.tiktok-workspace td button[data-product]{
 background:#fff1e5!important;
 color:#a65216!important;
 border:0!important;
 box-shadow:inset 0 0 0 1px rgba(218,125,55,.16)!important;
}

.tiktok-workspace td button[data-product]:hover{
 background:#ffe8d4!important;
 color:#8c4211!important;
}

/* Stock · verde suave */
.tiktok-workspace td button[data-tiktok-stock]{
 background:#e9f4ed!important;
 color:#21634d!important;
 border:0!important;
}

.tiktok-workspace td button[data-tiktok-stock]:hover{
 background:#dcecdf!important;
}

/* Precio · morado Bokosia */
.tiktok-workspace td button[data-tiktok-price]{
 background:#f0ebf5!important;
 color:#5c4670!important;
 border:0!important;
}

.tiktok-workspace td button[data-tiktok-price]:hover{
 background:#e7dfee!important;
}

/* Activar / desactivar */
.tiktok-workspace td button[data-tiktok-state]{
 background:#f6eded!important;
 color:#9a504a!important;
 border:0!important;
}

.tiktok-workspace td button[data-tiktok-state]:hover{
 background:#f0e1e0!important;
}

/* Agrupación de acciones */
.tiktok-workspace td .actions{
 display:flex!important;
 flex-wrap:wrap!important;
 gap:6px!important;
}

.tiktok-workspace td .actions button{
 min-height:30px!important;
 padding:6px 10px!important;
 border-radius:7px!important;
}

/* FIN BOKOSIA · ACCIONES CATÁLOGO */

/* ============================================================
   LA BESTIA · BOKOSIA · DASHBOARD DIRECCIÓN
   ============================================================ */

.tt-exec-intro{
 display:flex!important;
 justify-content:space-between;
 align-items:flex-end;
 gap:24px;
 margin-bottom:16px!important;
 padding:6px 2px 12px!important;
 background:transparent!important;
 box-shadow:none!important;
}

.tt-exec-intro h2{
 margin:2px 0 5px!important;
 font-size:27px!important;
 letter-spacing:-.8px!important;
}

.tt-exec-intro p{
 margin:0;
 color:#71807a;
}

.tt-exec-eyebrow{
 margin:0 0 5px!important;
 color:#735b88!important;
 font-size:10px!important;
 font-weight:800!important;
 letter-spacing:1.5px!important;
}

.tt-exec-intro-actions{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:flex-end;
 gap:8px;
}

.tt-exec-live,
.tt-exec-alert,
.tt-exec-warn{
 display:inline-flex;
 align-items:center;
 gap:7px;
 min-height:31px;
 padding:6px 10px;
 border-radius:999px;
 font-size:10px;
 font-weight:750;
}

.tt-exec-live{
 background:#e8f5ed;
 color:#21634d;
}

.tt-exec-live::before{
 content:"";
 width:7px;
 height:7px;
 border-radius:50%;
 background:#3c9b70;
}

.tt-exec-alert{
 background:#fdebea;
 color:#a64139;
}

.tt-exec-warn{
 background:#fff4dc;
 color:#8b6516;
}

/* KPIs PRINCIPALES */

.tt-exec-main-kpis{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
 margin-bottom:16px;
}

.tt-exec-kpi{
 position:relative;
 min-height:138px;
 overflow:hidden;
 padding:20px;
 border-radius:15px;
 background:#fff;
 box-shadow:0 8px 27px rgba(31,48,43,.06);
}

.tt-exec-kpi::after{
 content:"";
 position:absolute;
 width:74px;
 height:74px;
 right:-20px;
 top:-20px;
 border-radius:50%;
 opacity:.08;
 background:currentColor;
}

.tt-exec-kpi span{
 display:block;
 margin-bottom:13px;
 color:#74817d;
 font-size:10px;
 font-weight:800;
 letter-spacing:1px;
 text-transform:uppercase;
}

.tt-exec-kpi strong{
 display:block;
 color:#182321;
 font-size:30px;
 line-height:1.05;
 letter-spacing:-1px;
}

.tt-exec-kpi small{
 display:block;
 margin-top:10px;
 color:#7c8884;
}

.tt-exec-kpi-purple{
 box-shadow:
  inset 0 3px 0 #735b88,
  0 8px 27px rgba(31,48,43,.06);
 color:#735b88;
}

.tt-exec-kpi-orange{
 box-shadow:
  inset 0 3px 0 #d9894b,
  0 8px 27px rgba(31,48,43,.06);
 color:#d9894b;
}

.tt-exec-kpi-green{
 box-shadow:
  inset 0 3px 0 #4b8b70,
  0 8px 27px rgba(31,48,43,.06);
 color:#4b8b70;
}

.tt-exec-kpi-dark{
 box-shadow:
  inset 0 3px 0 #34433f,
  0 8px 27px rgba(31,48,43,.06);
 color:#34433f;
}

/* BLOQUES DIRECCIÓN */

.tt-exec-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:14px;
 margin-bottom:14px;
}

.tiktok-workspace .tt-exec-card{
 padding:20px!important;
 margin:0!important;
}

.tt-exec-card-head{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px;
 padding-bottom:14px;
 margin-bottom:12px;
 border-bottom:1px solid #e9ede8;
}

.tt-exec-card-head h3{
 margin:0!important;
 font-size:17px!important;
}

.tt-exec-card-head button{
 flex:0 0 auto;
 background:transparent!important;
 color:#66517b!important;
}

/* OPERATIVA */

.tt-exec-stat-list{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:2px 22px;
}

.tt-exec-stat-list > div{
 display:flex;
 justify-content:space-between;
 align-items:center;
 min-height:42px;
 border-bottom:1px solid #f0f2ef;
}

.tt-exec-stat-list span{
 color:#687672;
 font-size:12px;
}

.tt-exec-stat-list strong{
 color:#182321;
 font-size:17px;
}

.tt-exec-stat-list strong.warn{
 color:#b56b31;
}

.tt-exec-stat-list strong.danger{
 color:#a64139;
}

/* CATÁLOGO */

.tt-exec-catalog{
 display:grid;
 grid-template-columns:125px 1fr;
 gap:22px;
 align-items:center;
 min-height:130px;
}

.tt-exec-catalog-score{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 width:116px;
 height:116px;
 border-radius:50%;
 background:#f3eef6;
}

.tt-exec-catalog-score strong{
 color:#5e4872;
 font-size:28px;
 letter-spacing:-1px;
}

.tt-exec-catalog-score span{
 margin-top:1px;
 color:#897b94;
 font-size:10px;
}

.tt-exec-catalog-bars > div:not(.bar){
 display:flex;
 justify-content:space-between;
 margin:8px 0;
 color:#687672;
 font-size:12px;
}

.tt-exec-catalog-bars strong{
 color:#263532;
}

.tt-exec-catalog-bars .bar{
 height:6px;
 overflow:hidden;
 border-radius:999px;
 background:#ecefe9;
}

.tt-exec-catalog-bars .bar i{
 display:block;
 height:100%;
 border-radius:999px;
 background:linear-gradient(90deg,#66517b,#947ba9);
}

/* FINANZAS */

.tt-exec-finance{
 display:grid;
 grid-template-columns:repeat(3,1fr);
 gap:8px;
}

.tt-exec-finance > div{
 padding:13px;
 border-radius:10px;
 background:#f7f8f5;
}

.tt-exec-finance span{
 display:block;
 color:#7a8581;
 font-size:10px;
}

.tt-exec-finance strong{
 display:block;
 margin-top:5px;
 color:#182321;
 font-size:16px;
}

.tt-exec-finance p{
 grid-column:1/-1;
 margin:8px 0 0;
 color:#89938f;
 font-size:10px;
 line-height:1.5;
}

/* PEDIDOS RECIENTES */

.tiktok-workspace .tt-exec-orders{
 padding:20px!important;
 margin-bottom:14px!important;
}

.tt-exec-order-list{
 display:grid;
}

.tiktok-workspace button.tt-exec-order{
 display:grid!important;
 grid-template-columns:minmax(200px,1fr) 150px 130px 28px;
 gap:14px;
 align-items:center;
 width:100%;
 min-height:58px!important;
 padding:8px 4px!important;
 border-bottom:1px solid #edf0ec!important;
 border-radius:0!important;
 background:transparent!important;
 text-align:left;
}

.tiktok-workspace button.tt-exec-order:last-child{
 border-bottom:0!important;
}

.tiktok-workspace button.tt-exec-order:hover{
 background:#fafbf8!important;
 transform:none!important;
}

.tt-exec-order-main strong{
 display:block;
 color:#263532;
 font-size:12px;
}

.tt-exec-order-main small{
 display:block;
 margin-top:2px;
 color:#89938f;
}

.tt-exec-order-money{
 color:#263532;
 font-weight:750;
 text-align:right;
}

.tt-exec-arrow{
 color:#a1aaa6;
 font-size:18px;
 text-align:right;
}

/* ESTADO INFERIOR */

.tiktok-workspace .tt-exec-system{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:20px;
 padding:14px 18px!important;
 margin-bottom:0!important;
 background:#eef1ec!important;
 box-shadow:none!important;
}

.tt-exec-system > div:first-child{
 display:flex;
 flex-direction:column;
}

.tt-exec-system > div:first-child strong{
 color:#34433f;
}

.tt-exec-system > div:first-child span{
 color:#7a8581;
 font-size:10px;
}

.tt-exec-system-tags{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
}

@media(max-width:1050px){
 .tt-exec-main-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-exec-grid{
  grid-template-columns:1fr;
 }
}

@media(max-width:700px){
 .tt-exec-intro{
  align-items:flex-start;
  flex-direction:column;
 }

 .tt-exec-main-kpis{
  grid-template-columns:1fr;
 }

 .tt-exec-stat-list{
  grid-template-columns:1fr;
 }

 .tt-exec-catalog{
  grid-template-columns:1fr;
 }

 .tt-exec-finance{
  grid-template-columns:1fr;
 }

 .tt-exec-finance p{
  grid-column:auto;
 }

 .tiktok-workspace button.tt-exec-order{
  grid-template-columns:1fr auto;
 }

 .tiktok-workspace button.tt-exec-order > span:nth-child(2){
  display:none;
 }

 .tt-exec-order-money{
  display:none;
 }

 .tt-exec-system{
  align-items:flex-start!important;
  flex-direction:column;
 }
}

/* FIN DASHBOARD DIRECCIÓN */

/* ============================================================
   LA BESTIA · BOKOSIA · INICIO FINAL
   ============================================================ */

/* ALERTAS */

.tt-home-alerts{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:10px;
 margin-bottom:16px;
}

.tiktok-workspace button.tt-home-alert{
 display:grid!important;
 grid-template-columns:8px minmax(0,1fr) auto;
 align-items:center;
 gap:11px;
 min-height:70px!important;
 padding:12px 14px!important;
 background:#fff!important;
 border-radius:12px!important;
 text-align:left;
 box-shadow:0 6px 20px rgba(31,48,43,.045)!important;
}

.tt-home-alert-dot{
 width:7px;
 height:7px;
 border-radius:50%;
 background:#84728e;
}

.tt-home-alert strong{
 display:block;
 color:#263532;
 font-size:11px;
}

.tt-home-alert small{
 display:block;
 margin-top:3px;
 color:#82908b;
 font-size:9px;
 line-height:1.35;
}

.tt-home-alert b{
 color:#a0aaa6;
}

.tt-home-alert.orange .tt-home-alert-dot{
 background:#da8747;
}

.tt-home-alert.red .tt-home-alert-dot{
 background:#b6534b;
}

.tt-home-alert.purple .tt-home-alert-dot{
 background:#735b88;
}

.tt-home-alert.soft .tt-home-alert-dot{
 background:#789186;
}

.tt-home-ok{
 display:flex;
 align-items:center;
 gap:12px;
 padding:12px 15px;
 margin-bottom:16px;
 border-radius:12px;
 background:#edf6f0;
 color:#21634d;
}

.tt-home-ok > span{
 display:grid;
 place-items:center;
 width:28px;
 height:28px;
 border-radius:50%;
 background:#d8ecdf;
 font-weight:800;
}

.tt-home-ok strong,
.tt-home-ok small{
 display:block;
}

.tt-home-ok small{
 margin-top:2px;
 opacity:.7;
}

/* PEDIDOS PARA OPERAR */

.tiktok-workspace .tt-home-operation{
 padding:20px!important;
 margin-bottom:14px!important;
}

.tt-home-action-orders{
 display:grid;
}

.tt-home-action-order{
 display:grid;
 grid-template-columns:minmax(180px,1.25fr) 180px minmax(180px,1fr) auto;
 gap:18px;
 align-items:center;
 min-height:76px;
 padding:11px 4px;
 border-bottom:1px solid #edf0ec;
}

.tt-home-action-order:last-child{
 border-bottom:0;
}

.tt-home-action-main small,
.tt-home-action-shipping small{
 display:block;
 color:#929b97;
 font-size:8px;
 font-weight:800;
 letter-spacing:1px;
}

.tt-home-action-main strong{
 display:block;
 margin:2px 0;
 color:#263532;
 font-size:12px;
}

.tt-home-action-main span,
.tt-home-action-shipping span{
 display:block;
 color:#8b9692;
 font-size:9px;
}

.tt-home-action-status small{
 display:block;
 margin-top:4px;
 color:#8b9692;
 font-size:9px;
}

.tt-home-action-shipping strong{
 display:block;
 margin:2px 0;
 color:#42514d;
 font-size:11px;
}

.tt-home-action-buttons{
 display:flex;
 justify-content:flex-end;
 gap:6px;
}

.tiktok-workspace .tt-label-button{
 background:#fff0e4!important;
 color:#a3541c!important;
}

.tiktok-workspace .tt-label-button:hover{
 background:#ffe5d0!important;
}

.tt-home-empty-operation{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 min-height:100px;
 color:#83908c;
 text-align:center;
}

.tt-home-empty-operation strong{
 color:#52605c;
}

.tt-home-empty-operation span{
 margin-top:4px;
 font-size:10px;
}

/* CATÁLOGO */

.tt-home-catalog-layout{
 display:grid;
 grid-template-columns:130px 1fr;
 gap:24px;
 align-items:center;
}

.tt-home-catalog-stats{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:0 25px;
}

.tt-home-catalog-stats > div{
 display:flex;
 align-items:center;
 justify-content:space-between;
 min-height:36px;
 border-bottom:1px solid #eff1ee;
}

.tt-home-catalog-stats span{
 color:#71807b;
 font-size:11px;
}

.tt-home-catalog-stats strong{
 color:#293834;
 font-size:14px;
}

.tt-home-catalog-stats strong.warn{
 color:#b36a32;
}

/* ACCESOS RÁPIDOS */

.tiktok-workspace .tt-home-shortcuts{
 padding:20px!important;
 margin-bottom:14px!important;
}

.tt-home-shortcut-grid{
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:9px;
}

.tiktok-workspace .tt-home-shortcut-grid button{
 position:relative;
 display:flex!important;
 flex-direction:column;
 align-items:flex-start;
 min-height:82px!important;
 padding:13px!important;
 background:#f7f8f5!important;
 text-align:left;
 border-radius:11px!important;
}

.tiktok-workspace .tt-home-shortcut-grid button:hover{
 background:#f0ebf5!important;
}

.tt-home-shortcut-grid b{
 color:#34433f;
 font-size:11px;
}

.tt-home-shortcut-grid span{
 margin-top:4px;
 padding-right:16px;
 color:#84908c;
 font-size:9px;
 line-height:1.35;
}

.tt-home-shortcut-grid i{
 position:absolute;
 right:12px;
 bottom:10px;
 color:#735b88;
 font-style:normal;
}

/* ÚLTIMAS SINCRONIZACIONES */

.tt-home-sync{
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-end;
 gap:7px 16px;
 margin-left:auto;
}

.tt-home-sync span{
 display:flex;
 flex-direction:column;
 color:#8a9691;
 font-size:8px;
}

.tt-home-sync b{
 color:#586762;
 font-size:9px;
}

/* RESPONSIVE */

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

 .tt-home-action-order{
  grid-template-columns:1fr 1fr;
 }

 .tt-home-action-buttons{
  justify-content:flex-start;
 }

 .tt-home-shortcut-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}

@media(max-width:700px){
 .tt-home-alerts{
  grid-template-columns:1fr;
 }

 .tt-home-action-order{
  grid-template-columns:1fr;
 }

 .tt-home-catalog-layout{
  grid-template-columns:1fr;
 }

 .tt-home-catalog-stats{
  grid-template-columns:1fr;
 }

 .tt-home-shortcut-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-home-sync{
  justify-content:flex-start;
  margin-left:0;
 }
}

/* FIN INICIO FINAL */

/* ============================================================
   LA BESTIA · BOKOSIA · PEDIDOS
   ============================================================ */

.tt-orders-toolbar{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:24px;
 padding:2px 0 18px;
}

.tt-orders-toolbar h3{
 margin:2px 0 4px!important;
 font-size:18px!important;
}

.tt-orders-toolbar p{
 margin-bottom:0;
}

.tt-orders-filters{
 display:grid;
 grid-template-columns:minmax(260px,420px) 220px;
 gap:8px;
}

/* RESUMEN */

.tt-orders-summary{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:10px;
 margin-bottom:14px;
}

.tt-orders-summary > div{
 position:relative;
 min-height:92px;
 padding:14px 15px;
 overflow:hidden;
 border-radius:12px;
 background:#f7f8f5;
}

.tt-orders-summary > div::after{
 content:"";
 position:absolute;
 right:-20px;
 top:-25px;
 width:65px;
 height:65px;
 border-radius:50%;
 background:#4f625c;
 opacity:.045;
}

.tt-orders-summary span{
 display:block;
 color:#7c8984;
 font-size:9px;
 font-weight:800;
 letter-spacing:.7px;
 text-transform:uppercase;
}

.tt-orders-summary strong{
 display:block;
 margin-top:6px;
 color:#263532;
 font-size:21px;
 letter-spacing:-.5px;
}

.tt-orders-summary small{
 display:block;
 margin-top:3px;
 color:#919b97;
 font-size:8px;
}

.tt-orders-summary .orange{
 background:#fff5eb;
}

.tt-orders-summary .orange strong{
 color:#a65b26;
}

.tt-orders-summary .green{
 background:#edf6f0;
}

.tt-orders-summary .green strong{
 color:#21634d;
}

.tt-orders-summary .purple{
 background:#f3eef6;
}

.tt-orders-summary .purple strong{
 color:#604975;
}

.tt-orders-summary .danger{
 background:#fbedeb;
}

.tt-orders-summary .danger strong{
 color:#a64139;
}

/* LISTADO */

.tt-orders-list{
 overflow:hidden;
 border-radius:13px;
 background:#fff;
 box-shadow:inset 0 0 0 1px #e7ebe6;
}

.tt-order-row{
 display:grid;
 grid-template-columns:minmax(310px,1.45fr) 190px minmax(190px,1fr) 115px auto;
 align-items:center;
 gap:18px;
 min-height:86px;
 padding:10px 14px;
 border-bottom:1px solid #edf0ec;
 transition:background .12s ease;
}

.tt-order-row:last-child{
 border-bottom:0;
}

.tt-order-row:hover{
 background:#fafbf8;
}

.tt-order-row.is-hold{
 background:#fff9f8;
 box-shadow:inset 3px 0 #b6534b;
}

/* botón principal de la fila */

.tiktok-workspace button.tt-order-row-main{
 display:grid!important;
 grid-template-columns:minmax(175px,1fr) minmax(120px,.8fr);
 gap:18px;
 align-items:center;
 width:100%;
 padding:5px 2px!important;
 background:transparent!important;
 text-align:left;
}

.tiktok-workspace button.tt-order-row-main:hover{
 background:transparent!important;
}

.tt-order-row small{
 display:block;
 margin-bottom:3px;
 color:#929c98;
 font-size:8px;
 font-weight:800;
 letter-spacing:.8px;
}

.tt-order-row-id strong{
 display:block;
 color:#293834;
 font-size:12px;
}

.tt-order-row-id > span{
 display:block;
 margin-top:3px;
 color:#8b9692;
 font-size:9px;
}

.tt-order-row-customer strong{
 color:#586661;
 font-size:11px;
 font-weight:650;
}

/* Estado */

.tt-order-row-status{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
}

.tt-order-package{
 margin-top:5px;
 color:#8b9692;
 font-size:9px;
}

/* Logística */

.tt-order-row-logistics strong{
 display:block;
 color:#45544f;
 font-size:10px;
}

.tt-order-row-logistics span{
 display:block;
 max-width:200px;
 margin-top:3px;
 color:#88938f;
 font-size:9px;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}

/* Total */

.tt-order-row-total{
 text-align:right;
}

.tt-order-row-total strong{
 display:block;
 color:#263532;
 font-size:16px;
}

/* Acciones */

.tt-order-row-actions{
 display:flex;
 justify-content:flex-end;
 gap:6px;
}

.tiktok-workspace .tt-order-row-actions button{
 min-height:31px!important;
 padding:6px 10px!important;
}

.tiktok-workspace .tt-order-label-action{
 background:#fff0e4!important;
 color:#a3541c!important;
}

.tiktok-workspace .tt-order-label-action:hover{
 background:#ffe3cc!important;
}

/* Paginación */

.tt-orders-pagination{
 padding-top:13px;
}

/* responsive */

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

 .tt-order-row{
  grid-template-columns:minmax(280px,1.4fr) 160px 110px auto;
 }

 .tt-order-row-logistics{
  display:none;
 }
}

@media(max-width:850px){
 .tt-orders-toolbar{
  align-items:stretch;
  flex-direction:column;
 }

 .tt-orders-filters{
  grid-template-columns:1fr;
 }

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

 .tt-order-row{
  grid-template-columns:1fr auto;
  gap:10px;
 }

 .tt-order-row-status,
 .tt-order-row-total{
  grid-column:1;
 }

 .tt-order-row-actions{
  grid-column:2;
  grid-row:1/4;
  flex-direction:column;
 }

 .tiktok-workspace button.tt-order-row-main{
  grid-template-columns:1fr;
 }
}

@media(max-width:520px){
 .tt-orders-summary{
  grid-template-columns:1fr;
 }
}

/* FIN PEDIDOS */

/* ============================================================
   LA BESTIA · BOKOSIA · PEDIDOS
   ============================================================ */

.tt-orders-toolbar{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:24px;
 padding:2px 0 18px;
}

.tt-orders-toolbar h3{
 margin:2px 0 4px!important;
 font-size:18px!important;
}

.tt-orders-toolbar p{
 margin-bottom:0;
}

.tt-orders-filters{
 display:grid;
 grid-template-columns:minmax(260px,420px) 220px;
 gap:8px;
}

/* RESUMEN */

.tt-orders-summary{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:10px;
 margin-bottom:14px;
}

.tt-orders-summary > div{
 position:relative;
 min-height:92px;
 padding:14px 15px;
 overflow:hidden;
 border-radius:12px;
 background:#f7f8f5;
}

.tt-orders-summary > div::after{
 content:"";
 position:absolute;
 right:-20px;
 top:-25px;
 width:65px;
 height:65px;
 border-radius:50%;
 background:#4f625c;
 opacity:.045;
}

.tt-orders-summary span{
 display:block;
 color:#7c8984;
 font-size:9px;
 font-weight:800;
 letter-spacing:.7px;
 text-transform:uppercase;
}

.tt-orders-summary strong{
 display:block;
 margin-top:6px;
 color:#263532;
 font-size:21px;
 letter-spacing:-.5px;
}

.tt-orders-summary small{
 display:block;
 margin-top:3px;
 color:#919b97;
 font-size:8px;
}

.tt-orders-summary .orange{
 background:#fff5eb;
}

.tt-orders-summary .orange strong{
 color:#a65b26;
}

.tt-orders-summary .green{
 background:#edf6f0;
}

.tt-orders-summary .green strong{
 color:#21634d;
}

.tt-orders-summary .purple{
 background:#f3eef6;
}

.tt-orders-summary .purple strong{
 color:#604975;
}

.tt-orders-summary .danger{
 background:#fbedeb;
}

.tt-orders-summary .danger strong{
 color:#a64139;
}

/* LISTADO */

.tt-orders-list{
 overflow:hidden;
 border-radius:13px;
 background:#fff;
 box-shadow:inset 0 0 0 1px #e7ebe6;
}

.tt-order-row{
 display:grid;
 grid-template-columns:minmax(310px,1.45fr) 190px minmax(190px,1fr) 115px auto;
 align-items:center;
 gap:18px;
 min-height:86px;
 padding:10px 14px;
 border-bottom:1px solid #edf0ec;
 transition:background .12s ease;
}

.tt-order-row:last-child{
 border-bottom:0;
}

.tt-order-row:hover{
 background:#fafbf8;
}

.tt-order-row.is-hold{
 background:#fff9f8;
 box-shadow:inset 3px 0 #b6534b;
}

/* botón principal de la fila */

.tiktok-workspace button.tt-order-row-main{
 display:grid!important;
 grid-template-columns:minmax(175px,1fr) minmax(120px,.8fr);
 gap:18px;
 align-items:center;
 width:100%;
 padding:5px 2px!important;
 background:transparent!important;
 text-align:left;
}

.tiktok-workspace button.tt-order-row-main:hover{
 background:transparent!important;
}

.tt-order-row small{
 display:block;
 margin-bottom:3px;
 color:#929c98;
 font-size:8px;
 font-weight:800;
 letter-spacing:.8px;
}

.tt-order-row-id strong{
 display:block;
 color:#293834;
 font-size:12px;
}

.tt-order-row-id > span{
 display:block;
 margin-top:3px;
 color:#8b9692;
 font-size:9px;
}

.tt-order-row-customer strong{
 color:#586661;
 font-size:11px;
 font-weight:650;
}

/* Estado */

.tt-order-row-status{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
}

.tt-order-package{
 margin-top:5px;
 color:#8b9692;
 font-size:9px;
}

/* Logística */

.tt-order-row-logistics strong{
 display:block;
 color:#45544f;
 font-size:10px;
}

.tt-order-row-logistics span{
 display:block;
 max-width:200px;
 margin-top:3px;
 color:#88938f;
 font-size:9px;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}

/* Total */

.tt-order-row-total{
 text-align:right;
}

.tt-order-row-total strong{
 display:block;
 color:#263532;
 font-size:16px;
}

/* Acciones */

.tt-order-row-actions{
 display:flex;
 justify-content:flex-end;
 gap:6px;
}

.tiktok-workspace .tt-order-row-actions button{
 min-height:31px!important;
 padding:6px 10px!important;
}

.tiktok-workspace .tt-order-label-action{
 background:#fff0e4!important;
 color:#a3541c!important;
}

.tiktok-workspace .tt-order-label-action:hover{
 background:#ffe3cc!important;
}

/* Paginación */

.tt-orders-pagination{
 padding-top:13px;
}

/* responsive */

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

 .tt-order-row{
  grid-template-columns:minmax(280px,1.4fr) 160px 110px auto;
 }

 .tt-order-row-logistics{
  display:none;
 }
}

@media(max-width:850px){
 .tt-orders-toolbar{
  align-items:stretch;
  flex-direction:column;
 }

 .tt-orders-filters{
  grid-template-columns:1fr;
 }

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

 .tt-order-row{
  grid-template-columns:1fr auto;
  gap:10px;
 }

 .tt-order-row-status,
 .tt-order-row-total{
  grid-column:1;
 }

 .tt-order-row-actions{
  grid-column:2;
  grid-row:1/4;
  flex-direction:column;
 }

 .tiktok-workspace button.tt-order-row-main{
  grid-template-columns:1fr;
 }
}

@media(max-width:520px){
 .tt-orders-summary{
  grid-template-columns:1fr;
 }
}

/* FIN PEDIDOS */

/* ============================================================
   LA BESTIA · BOKOSIA · ACCIONES CATÁLOGO
   ============================================================ */

.tiktok-workspace td .actions{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 gap:6px!important;
}

.tiktok-workspace td .actions button{
 min-height:29px!important;
 padding:6px 10px!important;
 border:0!important;
 border-radius:8px!important;
 font-size:10px!important;
 font-weight:700!important;
 line-height:1!important;
 box-shadow:none!important;
 transition:
  background .12s ease,
  color .12s ease,
  transform .12s ease,
  box-shadow .12s ease!important;
}

.tiktok-workspace td .actions button:hover:not(:disabled){
 transform:translateY(-1px);
}

/* DETALLE · neutro elegante */

.tiktok-workspace button[data-tiktok-listing-detail]{
 background:#f0f2ef!important;
 color:#4d5b56!important;
}

.tiktok-workspace button[data-tiktok-listing-detail]:hover{
 background:#e6eae5!important;
 color:#263532!important;
}

/* ABRIR ALFA · naranja */

.tiktok-workspace button[data-product]{
 background:#fff0e3!important;
 color:#a6541d!important;
 box-shadow:
  inset 0 0 0 1px rgba(213,124,59,.12)!important;
}

.tiktok-workspace button[data-product]:hover{
 background:#ffe4cd!important;
 color:#8f4313!important;
}

/* STOCK · verde La Bestia */

.tiktok-workspace button[data-tiktok-stock]{
 background:#e8f4ed!important;
 color:#21634d!important;
}

.tiktok-workspace button[data-tiktok-stock]:hover{
 background:#d9ebdf!important;
 color:#174c3a!important;
}

/* PRECIO · morado Bokosia */

.tiktok-workspace button[data-tiktok-price]{
 background:#f0eaf5!important;
 color:#624b76!important;
}

.tiktok-workspace button[data-tiktok-price]:hover{
 background:#e5daed!important;
 color:#4e3a61!important;
}

/* ACTIVAR / DESACTIVAR */

.tiktok-workspace button[data-tiktok-state]{
 background:#f8eded!important;
 color:#99534d!important;
}

.tiktok-workspace button[data-tiktok-state]:hover{
 background:#f1dddd!important;
 color:#7e3f39!important;
}

/* Botones deshabilitados */

.tiktok-workspace td .actions button:disabled{
 background:#f1f2f0!important;
 color:#a4aaa7!important;
 opacity:1!important;
 cursor:not-allowed!important;
}

/* Acción principal de sincronizar catálogo */

.tiktok-workspace button[data-tiktok-sync-products],
.tiktok-workspace button[data-tiktok-sync-catalog]{
 background:#66517b!important;
 color:#fff!important;
}

.tiktok-workspace button[data-tiktok-sync-products]:hover,
.tiktok-workspace button[data-tiktok-sync-catalog]:hover{
 background:#503c64!important;
}

/* Separación visual de la columna gestión */

.tiktok-workspace td:last-child{
 min-width:210px;
}

/* FIN ACCIONES CATÁLOGO */

/* ============================================================
   TIKTOK · PEDIDO · PRODUCTOS COMPACTOS
   Corrige imágenes gigantes y ordena las líneas
   ============================================================ */

.tt-order-sheet .tt-order-products{
 display:grid!important;
 gap:10px!important;
}

/* Cada producto = una fila compacta */
.tt-order-sheet .tt-order-product{
 display:grid!important;
 grid-template-columns:
  82px
  minmax(280px,1fr)
  100px
  100px
  80px
  105px!important;

 align-items:center!important;
 gap:14px!important;

 min-height:106px!important;
 height:auto!important;

 padding:12px 14px!important;
 margin:0!important;

 overflow:hidden!important;

 border:1px solid #eaecf0!important;
 border-radius:14px!important;
 background:#fff!important;

 box-shadow:
  0 5px 18px rgba(31,48,43,.035)!important;
}

/* CONTENEDOR DE IMAGEN */
.tt-order-sheet .tt-order-product-media{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;

 width:82px!important;
 min-width:82px!important;
 max-width:82px!important;

 height:82px!important;
 min-height:82px!important;
 max-height:82px!important;

 overflow:hidden!important;

 border-radius:12px!important;
 background:#f8f9f7!important;
}

/* IMAGEN - FUERZA TAMAÑO AUNQUE HAYA CSS GLOBAL */
.tt-order-sheet .tt-order-product-media img{
 display:block!important;

 width:72px!important;
 min-width:72px!important;
 max-width:72px!important;

 height:72px!important;
 min-height:72px!important;
 max-height:72px!important;

 padding:4px!important;
 margin:0!important;

 object-fit:contain!important;
 object-position:center!important;

 border:0!important;
 border-radius:9px!important;

 background:#fff!important;

 transform:none!important;
}

/* Si no hay imagen */
.tt-order-sheet .tt-order-product-placeholder{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;

 width:72px!important;
 height:72px!important;

 padding:6px!important;

 border:1px dashed #d8ddd8!important;
 border-radius:9px!important;

 background:#fff!important;
 color:#909995!important;

 font-size:9px!important;
 font-weight:650!important;
 text-align:center!important;
}

/* INFORMACIÓN PRODUCTO */
.tt-order-sheet .tt-order-product-main{
 min-width:0!important;
 overflow:hidden!important;
}

.tt-order-sheet .tt-order-product-main > strong{
 display:block!important;

 margin:0 0 5px!important;

 color:#263532!important;
 font-size:13px!important;
 font-weight:750!important;
 line-height:1.3!important;

 white-space:normal!important;
 overflow-wrap:anywhere!important;
}

.tt-order-sheet .tt-order-product-main > small{
 display:block!important;

 margin:2px 0!important;

 color:#86918d!important;
 font-size:9px!important;
 line-height:1.35!important;

 white-space:normal!important;
 overflow-wrap:anywhere!important;
}

/* ALFA */
.tt-order-sheet .tt-order-product-main button[data-product]{
 display:inline-flex!important;
 margin-top:7px!important;

 min-height:27px!important;
 padding:5px 9px!important;

 background:#fff0e3!important;
 color:#a6541d!important;

 border:0!important;
 border-radius:7px!important;

 font-size:9px!important;
 font-weight:750!important;
}

/* SIN VINCULAR */
.tt-order-sheet .tt-order-product-main .tag{
 margin-top:7px!important;
}

/* IMPORTES */
.tt-order-sheet .tt-order-product-stat{
 min-width:0!important;
 padding-left:2px!important;
}

.tt-order-sheet .tt-order-product-stat small{
 display:block!important;

 margin-bottom:5px!important;

 color:#8a9591!important;
 font-size:8px!important;
 font-weight:750!important;
 letter-spacing:.7px!important;
 text-transform:uppercase!important;
}

.tt-order-sheet .tt-order-product-stat strong{
 display:block!important;

 color:#24332f!important;
 font-size:13px!important;
 font-weight:750!important;

 white-space:nowrap!important;
}

/* Total línea algo más destacado */
.tt-order-sheet .tt-order-product-stat:last-child strong{
 color:#66517b!important;
 font-size:14px!important;
}

/* Evita cualquier imagen heredada enorme dentro de productos */
.tt-order-sheet .tt-order-product img{
 max-width:72px!important;
 max-height:72px!important;
}

/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media(max-width:1000px){

 .tt-order-sheet .tt-order-product{
  grid-template-columns:
   82px
   minmax(220px,1fr)
   repeat(2,minmax(85px,1fr))!important;
 }

 .tt-order-sheet .tt-order-product-stat:nth-of-type(4),
 .tt-order-sheet .tt-order-product-stat:nth-of-type(5){
  grid-column:auto!important;
 }

}

/* ------------------------------------------------------------
   MÓVIL
   ------------------------------------------------------------ */

@media(max-width:700px){

 .tt-order-sheet .tt-order-product{
  grid-template-columns:72px 1fr!important;
  align-items:start!important;
 }

 .tt-order-sheet .tt-order-product-media{
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
 }

 .tt-order-sheet .tt-order-product-media img{
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  height:64px!important;
  min-height:64px!important;
  max-height:64px!important;
 }

 .tt-order-sheet .tt-order-product-stat{
  grid-column:2!important;

  display:flex!important;
  justify-content:space-between!important;
  gap:15px!important;

  padding:5px 0!important;
  border-top:1px solid #f0f2ef!important;
 }

}

/* FIN PRODUCTOS COMPACTOS */

/* ============================================================
   LA BESTIA · BOKOSIA · MENSAJES TIKTOK
   ============================================================ */

.tt-msg-head{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:24px;
 margin-bottom:14px;
 padding:2px 0 14px;
}

.tt-msg-head h3{
 margin:2px 0 4px!important;
 font-size:19px!important;
 color:#293733;
}

.tt-msg-head p{
 margin:0;
 color:#7c8782;
 font-size:11px;
}

.tt-msg-head-stats{
 display:flex;
 gap:8px;
}

.tt-msg-head-stats > div{
 min-width:105px;
 padding:10px 13px;
 border-radius:11px;
 background:#f4f5f3;
}

.tt-msg-head-stats small{
 display:block;
 color:#929b97;
 font-size:8px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-msg-head-stats strong{
 display:block;
 margin-top:3px;
 color:#31403b;
 font-size:20px;
}

.tt-msg-head-stats .has-unread{
 background:#f2ecf6;
}

.tt-msg-head-stats .has-unread strong{
 color:#66517b;
}

/* lista */

.tt-msg-list{
 overflow:hidden;
 border-radius:14px;
 background:#fff;
 box-shadow:
  inset 0 0 0 1px #e7ebe7,
  0 9px 25px rgba(29,46,41,.035);
}

.tiktok-workspace button.tt-msg-row{
 display:grid!important;
 grid-template-columns:42px minmax(0,1fr) auto;
 align-items:center;
 gap:12px;
 width:100%;
 min-height:72px;
 padding:11px 14px!important;

 border:0!important;
 border-bottom:1px solid #edf0ed!important;
 border-radius:0!important;

 background:#fff!important;
 color:inherit!important;

 text-align:left!important;
 box-shadow:none!important;
}

.tiktok-workspace button.tt-msg-row:last-child{
 border-bottom:0!important;
}

.tiktok-workspace button.tt-msg-row:hover{
 background:#fafbf9!important;
}

.tiktok-workspace button.tt-msg-row.is-unread{
 background:#fbf8fd!important;
}

.tt-msg-avatar{
 display:flex;
 align-items:center;
 justify-content:center;

 width:40px;
 height:40px;

 border-radius:50%;

 background:#eee9f2;
 color:#66517b;

 font-size:12px;
 font-weight:800;
 letter-spacing:.3px;
}

.tt-msg-row.is-unread .tt-msg-avatar{
 background:#66517b;
 color:#fff;
}

.tt-msg-body{
 min-width:0;
}

.tt-msg-name{
 display:block;
 margin-bottom:4px;

 color:#2c3935;
 font-size:12px;
 font-weight:750;
}

.tt-msg-preview{
 display:block;

 max-width:700px;

 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;

 color:#7b8681;
 font-size:10px;
}

.tt-msg-row.is-unread .tt-msg-preview{
 color:#555e5a;
 font-weight:600;
}

.tt-msg-meta{
 display:flex;
 flex-direction:column;
 align-items:flex-end;
 gap:6px;
}

.tt-msg-meta small{
 color:#979f9c;
 font-size:8px;
 white-space:nowrap;
}

.tt-msg-meta b{
 display:flex;
 align-items:center;
 justify-content:center;

 min-width:20px;
 height:20px;
 padding:0 5px;

 border-radius:10px;

 background:#66517b;
 color:#fff;

 font-size:9px;
}

.tt-msg-read{
 color:#88a097;
 font-size:11px;
}

.tt-msg-more{
 padding:11px 14px;
 margin-top:9px;

 border-radius:10px;
 background:#f6f7f5;

 color:#7d8783;
 font-size:10px;
}

/* diálogo */

#dialog:has(.tt-chat-sheet),
dialog:has(.tt-chat-sheet){
 width:min(850px,94vw)!important;
 max-width:850px!important;
}

.tt-chat-sheet{
 min-width:0;
}

.tt-chat-hero{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:20px;

 padding:17px 18px;
 margin-bottom:12px;

 border-radius:15px;
 background:
  radial-gradient(
   circle at top right,
   rgba(102,81,123,.12) 0,
   rgba(102,81,123,.12) 65px,
   transparent 66px
  ),
  linear-gradient(135deg,#faf8fc,#f5f1f8);
}

.tt-chat-hero h2{
 margin:2px 0 3px!important;
 color:#302d3b;
 font-size:19px!important;
}

.tt-chat-id{
 margin:0!important;
 color:#898391!important;
 font-size:9px!important;
}

/* conversación */

.tt-chat{
 display:flex;
 flex-direction:column;
 gap:8px;

 max-height:52vh;
 min-height:220px;

 overflow:auto;

 padding:14px;

 border:1px solid #eaede9;
 border-radius:14px;

 background:#f7f8f6;
}

.tt-chat-line{
 display:flex;
 width:100%;
}

.tt-chat-line.buyer{
 justify-content:flex-start;
}

.tt-chat-line.seller{
 justify-content:flex-end;
}

.tt-chat-bubble{
 max-width:72%;

 padding:9px 12px;

 border-radius:13px;

 box-shadow:
  0 3px 10px rgba(35,49,45,.035);
}

.tt-chat-line.buyer .tt-chat-bubble{
 border-bottom-left-radius:4px;
 background:#fff;
}

.tt-chat-line.seller .tt-chat-bubble{
 border-bottom-right-radius:4px;
 background:#eee8f3;
}

.tt-chat-bubble p{
 margin:0!important;

 color:#303b37;
 font-size:11px;
 line-height:1.5;

 white-space:pre-wrap;
 overflow-wrap:anywhere;
}

.tt-chat-bubble small{
 display:block;
 margin-top:5px;

 color:#909894;
 font-size:8px;
}

.tt-chat-line.seller .tt-chat-bubble small{
 color:#7c7087;
}

.tt-chat-empty{
 display:flex;
 align-items:center;
 justify-content:center;
 flex:1;

 color:#929a96;
 font-size:11px;
}

/* compositor */

.tt-chat-composer{
 margin-top:12px;

 padding:13px;

 border:1px solid #e6e9e5;
 border-radius:14px;

 background:#fff;
}

.tt-chat-composer-head{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;

 margin-bottom:9px;
}

.tt-chat-composer-head strong{
 display:block;
 color:#303d39;
 font-size:12px;
}

.tt-chat-composer-head small{
 display:block;
 margin-top:2px;
 color:#8b9490;
 font-size:9px;
}

.tt-chat-composer textarea{
 width:100%;
 min-height:88px;

 resize:vertical;

 border:1px solid #dde3de!important;
 border-radius:10px!important;

 background:#fafbf9!important;

 font-size:11px!important;
 line-height:1.45!important;
}

.tt-chat-composer textarea:focus{
 border-color:#b5a6c1!important;
 box-shadow:
  0 0 0 3px rgba(102,81,123,.07)!important;
}

.tt-chat-composer-actions{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;

 margin-top:8px;
}

.tt-chat-composer-actions small{
 color:#929b97;
 font-size:8px;
}

.tt-chat-composer-actions .primary{
 background:#66517b!important;
 color:#fff!important;
}

.tt-chat-composer-actions .primary:hover{
 background:#503c64!important;
}

.tt-chat-composer-actions .primary:disabled{
 background:#e8e9e7!important;
 color:#9da3a0!important;
}

.tt-msg-loading{
 padding:30px;
 text-align:center;
 color:#818b87;
 font-size:11px;
}

@media(max-width:650px){

 .tt-msg-head{
  flex-direction:column;
  align-items:stretch;
 }

 .tt-msg-head-stats{
  width:100%;
 }

 .tt-msg-head-stats > div{
  flex:1;
 }

 .tiktok-workspace button.tt-msg-row{
  grid-template-columns:38px minmax(0,1fr);
 }

 .tt-msg-meta{
  grid-column:2;
  flex-direction:row;
  justify-content:flex-start;
  align-items:center;
 }

 .tt-msg-avatar{
  width:36px;
  height:36px;
 }

 .tt-chat-bubble{
  max-width:88%;
 }

}

/* FIN MENSAJES TIKTOK */

/* ============================================================
   LA BESTIA · BOKOSIA · FINANZAS TIKTOK
   ============================================================ */

.tt-finance-head{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:20px;
 margin-bottom:14px;
}

.tt-finance-head h3{
 margin:2px 0 4px!important;
 color:#293733;
 font-size:19px!important;
}

.tt-finance-head p{
 max-width:680px;
 margin:0;
 color:#7d8883;
 font-size:10px;
 line-height:1.45;
}

.tt-finance-head .primary{
 background:#66517b!important;
 color:#fff!important;
}

.tt-finance-head .primary:hover{
 background:#503c64!important;
}

/* KPIs */

.tt-finance-metrics{
 display:grid;
 grid-template-columns:repeat(
  auto-fit,
  minmax(145px,1fr)
 );
 gap:10px;
 margin-bottom:12px;
}

.tt-finance-metric{
 min-height:88px;
 padding:13px 14px;

 border-radius:13px;

 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e8ece8,
  0 7px 18px rgba(28,46,40,.03);
}

.tt-finance-metric small{
 display:block;
 color:#8d9793;
 font-size:8px;
 font-weight:800;
 letter-spacing:.75px;
}

.tt-finance-metric strong{
 display:block;
 margin:5px 0 3px;

 color:#2b3934;
 font-size:22px;
 line-height:1;
}

.tt-finance-metric span{
 color:#929a97;
 font-size:8px;
}

.tt-finance-metric.tt-finance-paid{
 background:
  linear-gradient(
   135deg,
   #f6f2f8 0%,
   #fbf9fc 100%
  );
}

.tt-finance-metric.tt-finance-paid strong{
 color:#66517b;
}

/* advertencia */

.tt-finance-notice{
 display:flex;
 align-items:flex-start;
 gap:12px;

 padding:11px 13px;
 margin-bottom:12px;

 border-radius:11px;

 background:#f5f7f4;
}

.tt-finance-notice strong{
 min-width:145px;

 color:#40524c;
 font-size:9px;
}

.tt-finance-notice span{
 color:#77837e;
 font-size:9px;
 line-height:1.45;
}

/* tabla */

.tt-finance-table-wrap{
 overflow:auto;

 border-radius:13px;

 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e8ece8;
}

.tt-finance-table{
 width:100%;
 border-collapse:collapse;
}

.tt-finance-table thead th{
 padding:10px 12px;

 background:#f7f8f6;

 color:#89938f;
 font-size:8px;
 font-weight:800;
 letter-spacing:.65px;

 text-align:left;
 white-space:nowrap;
}

.tt-finance-table tbody td{
 padding:11px 12px;

 border-top:1px solid #edf0ed;

 color:#4c5954;
 font-size:10px;
 vertical-align:middle;
}

.tt-finance-table tbody tr:hover{
 background:#fbfcfa;
}

.tt-finance-table td:first-child strong{
 color:#303c38;
 font-size:10px;
}

.tt-finance-amount strong{
 color:#21634d;
 font-size:11px;
 white-space:nowrap;
}

.tt-finance-currency{
 display:inline-flex;
 align-items:center;
 justify-content:center;

 min-width:35px;
 padding:4px 7px;

 border-radius:7px;

 background:#f0edf3;
 color:#66517b;

 font-size:8px;
 font-weight:800;
}

.tt-finance-empty{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;

 min-height:170px;

 border-radius:13px;

 background:#f8f9f7;
}

.tt-finance-empty strong{
 color:#475650;
 font-size:12px;
}

.tt-finance-empty span{
 margin-top:5px;
 color:#8a9490;
 font-size:9px;
}

.tt-finance-loading{
 padding:30px;
 text-align:center;
 color:#818b87;
 font-size:11px;
}

@media(max-width:700px){

 .tt-finance-head{
  flex-direction:column;
  align-items:stretch;
 }

 .tt-finance-notice{
  flex-direction:column;
 }

 .tt-finance-notice strong{
  min-width:0;
 }

}

/* FIN FINANZAS TIKTOK */

/* ============================================================
   LA BESTIA · BOKOSIA · ANALYTICS TIKTOK
   ============================================================ */

.tt-analytics-head{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:20px;
 margin-bottom:14px;
}

.tt-analytics-head h3{
 margin:2px 0 4px!important;
 color:#293733;
 font-size:19px!important;
}

.tt-analytics-head p{
 margin:0;
 color:#7d8883;
 font-size:10px;
}

.tt-analytics-kpis{
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:9px;
 margin-bottom:12px;
}

.tt-analytics-kpi{
 min-height:95px;
 padding:13px 14px;

 border-radius:13px;

 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e7ece8,
  0 7px 20px rgba(31,48,43,.03);
}

.tt-analytics-kpi.primary{
 background:
  linear-gradient(
   135deg,
   #f4eff7 0%,
   #fbf9fc 100%
  );
}

.tt-analytics-kpi small{
 display:block;

 color:#89948f;
 font-size:8px;
 font-weight:800;
 letter-spacing:.75px;
}

.tt-analytics-kpi strong{
 display:block;

 margin:6px 0 5px;

 color:#293934;
 font-size:21px;
 line-height:1;
}

.tt-analytics-kpi.primary strong{
 color:#66517b;
}

.tt-analytics-kpi span{
 display:block;

 color:#929b97;
 font-size:8px;
 line-height:1.35;
}

/* bloques */

.tt-analytics-grid{
 display:grid;
 grid-template-columns:1.15fr 1fr .9fr;
 gap:10px;
}

.tt-analytics-card{
 padding:15px;

 border-radius:14px;

 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e7ece8,
  0 8px 22px rgba(31,48,43,.025);
}

.tt-analytics-card-head{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:16px;

 margin-bottom:13px;
}

.tt-analytics-card-head small{
 display:block;

 color:#929b97;
 font-size:8px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-analytics-card-head h4{
 margin:3px 0 0;

 color:#33423d;
 font-size:13px;
}

.tt-analytics-card-head > strong{
 color:#66517b;
 font-size:15px;
 white-space:nowrap;
}

/* GMV por canal */

.tt-analytics-breakdowns{
 display:grid;
 gap:7px;
}

.tt-analytics-breakdown{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;

 padding:9px 10px;

 border-radius:9px;

 background:#f7f8f6;
}

.tt-analytics-breakdown span{
 color:#697671;
 font-size:9px;
}

.tt-analytics-breakdown strong{
 color:#35443f;
 font-size:10px;
}

/* adquisición */

.tt-analytics-acquisition{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:8px;
}

.tt-analytics-acquisition > div{
 padding:12px;

 border-radius:10px;

 background:#f4f1f6;
}

.tt-analytics-acquisition span{
 display:block;

 color:#84798d;
 font-size:9px;
}

.tt-analytics-acquisition strong{
 display:block;

 margin-top:5px;

 color:#66517b;
 font-size:18px;
}

.tt-analytics-note{
 margin:11px 0 0!important;

 color:#8c9591!important;
 font-size:8px!important;
 line-height:1.45!important;
}

/* operativa */

.tt-analytics-operations{
 display:grid;
 gap:8px;
}

.tt-analytics-operations > div{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px;

 padding:9px 10px;

 border-radius:9px;

 background:#f7f8f6;
}

.tt-analytics-operations small{
 color:#7f8a85;
 font-size:9px;
}

.tt-analytics-operations strong{
 color:#35443f;
 font-size:11px;
}

/* vacío / loading */

.tt-analytics-empty,
.tt-analytics-loading{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;

 min-height:180px;

 border-radius:13px;

 background:#f8f9f7;

 color:#87918d;
 font-size:10px;
}

.tt-analytics-empty strong{
 color:#4a5954;
 font-size:12px;
}

.tt-analytics-empty span{
 margin-top:5px;
}

@media(max-width:1150px){

 .tt-analytics-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }

 .tt-analytics-grid{
  grid-template-columns:1fr 1fr;
 }

}

@media(max-width:700px){

 .tt-analytics-head{
  flex-direction:column;
  align-items:stretch;
 }

 .tt-analytics-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-analytics-grid{
  grid-template-columns:1fr;
 }

}

/* FIN ANALYTICS TIKTOK */

/* ============================================================
   LA BESTIA · BOKOSIA · LOGISTICA TIKTOK FINAL
   ============================================================ */

.tt-logistics-head{
 display:flex;
 justify-content:space-between;
 align-items:flex-end;
 gap:20px;
 margin-bottom:14px;
}

.tt-logistics-head h3{
 margin:2px 0 4px!important;
 color:#293733;
 font-size:19px!important;
}

.tt-logistics-head p{
 margin:0;
 color:#7d8883;
 font-size:10px;
}

/* métricas */

.tt-logistics-metrics{
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:9px;
 margin-bottom:12px;
}

.tt-logistics-metric{
 min-height:86px;
 padding:13px 14px;

 border-radius:13px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e8ece8,
  0 7px 18px rgba(31,48,43,.025);
}

.tt-logistics-metric small{
 display:block;

 color:#909995;
 font-size:8px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-logistics-metric strong{
 display:block;
 margin:5px 0 3px;

 color:#31403b;
 font-size:22px;
}

.tt-logistics-metric span{
 color:#949c99;
 font-size:8px;
}

.tt-logistics-metric.prepare{
 background:#fbf7f1;
}

.tt-logistics-metric.prepare strong{
 color:#a3662e;
}

.tt-logistics-metric.collection{
 background:#f3f0f6;
}

.tt-logistics-metric.collection strong{
 color:#66517b;
}

.tt-logistics-metric.transit{
 background:#f0f6f3;
}

.tt-logistics-metric.transit strong{
 color:#21634d;
}

.tt-logistics-metric.hold,
.tt-logistics-metric.warning{
 background:#fbf1f1;
}

.tt-logistics-metric.hold strong,
.tt-logistics-metric.warning strong{
 color:#a34d4d;
}

/* alerta */

.tt-logistics-alert{
 display:flex;
 gap:14px;
 align-items:center;

 padding:11px 13px;
 margin-bottom:12px;

 border-radius:11px;
 background:#fbf1f1;
}

.tt-logistics-alert strong{
 color:#963f3f;
 font-size:10px;
 white-space:nowrap;
}

.tt-logistics-alert span{
 color:#876c6c;
 font-size:9px;
}

/* grid */

.tt-logistics-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:11px;
}

.tt-logistics-card{
 position:relative;
 overflow:hidden;

 padding:15px;

 border-radius:14px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e7ebe7,
  0 8px 22px rgba(31,48,43,.03);
}

.tt-logistics-card:before{
 content:"";
 position:absolute;
 top:0;
 left:0;
 width:3px;
 height:100%;
 background:#cdd4d0;
}

.tt-logistics-card.prepare:before{
 background:#c58a50;
}

.tt-logistics-card.collection:before{
 background:#735b88;
}

.tt-logistics-card.transit:before{
 background:#34735f;
}

.tt-logistics-card.hold:before{
 background:#ae5656;
}

/* cabecera */

.tt-logistics-card-head{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:15px;

 padding-left:3px;
 margin-bottom:13px;
}

.tt-logistics-card-head small{
 display:block;

 color:#939b98;
 font-size:7px;
 font-weight:800;
 letter-spacing:.75px;
}

.tt-logistics-card-head h4{
 margin:3px 0 2px;

 color:#303e39;
 font-size:12px;
 font-weight:750;
}

.tt-logistics-card-head > div > span{
 color:#979f9b;
 font-size:8px;
}

/* estados */

.tt-logistics-state{
 display:inline-flex;
 align-items:center;

 padding:5px 8px;

 border-radius:8px;

 background:#f0f2ef;
 color:#65716d;

 font-size:8px;
 font-weight:800;
}

.tt-logistics-state.prepare{
 background:#f8eee4;
 color:#995f2d;
}

.tt-logistics-state.collection{
 background:#eee8f2;
 color:#66517b;
}

.tt-logistics-state.transit{
 background:#e9f3ee;
 color:#21634d;
}

.tt-logistics-state.hold{
 background:#f8e8e8;
 color:#9d4545;
}

/* transportista */

.tt-logistics-route{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:8px;
 margin-bottom:9px;
}

.tt-logistics-route > div{
 padding:9px 10px;

 border-radius:9px;
 background:#f7f8f6;
}

.tt-logistics-route small{
 display:block;

 color:#929b97;
 font-size:7px;
 font-weight:800;
 letter-spacing:.6px;
}

.tt-logistics-route strong{
 display:block;
 margin-top:4px;

 color:#46534f;
 font-size:9px;
}

/* datos */

.tt-logistics-data{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:0;

 border:1px solid #edf0ed;
 border-radius:10px;

 overflow:hidden;
}

.tt-logistics-data > div{
 min-width:0;

 padding:9px 10px;

 border-bottom:1px solid #edf0ed;
}

.tt-logistics-data > div:nth-child(odd){
 border-right:1px solid #edf0ed;
}

.tt-logistics-data > div:nth-last-child(-n+2){
 border-bottom:0;
}

.tt-logistics-data span{
 display:block;

 margin-bottom:3px;

 color:#929a97;
 font-size:7px;
}

.tt-logistics-data strong{
 display:block;

 overflow:hidden;
 text-overflow:ellipsis;

 color:#46534f;
 font-size:9px;
 white-space:nowrap;
}

.tt-logistics-data strong.missing{
 color:#a65b5b;
}

/* footer */

.tt-logistics-card-footer{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;

 margin-top:11px;
}

.tt-logistics-permission{
 font-size:8px;
 font-weight:750;
 white-space:nowrap;
}

.tt-logistics-permission.ok{
 color:#34735f;
}

.tt-logistics-permission.blocked{
 color:#a04d4d;
}

.tt-logistics-card-footer .actions{
 display:flex;
 justify-content:flex-end;
 gap:6px;
 flex-wrap:wrap;
}

.tt-logistics-card-footer button{
 min-height:28px!important;
 padding:5px 9px!important;
 font-size:8px!important;
}

.tt-logistics-card-footer button.primary{
 background:#66517b!important;
 color:#fff!important;
}

.tt-logistics-card-footer button.primary:hover{
 background:#503c64!important;
}

/* vacio */

.tt-logistics-empty,
.tt-logistics-loading{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;

 min-height:170px;

 border-radius:13px;
 background:#f8f9f7;

 color:#8a9490;
 font-size:10px;
}

.tt-logistics-empty strong{
 color:#475650;
 font-size:12px;
}

.tt-logistics-empty span{
 margin-top:5px;
}

/* responsive */

@media(max-width:1150px){

 .tt-logistics-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }

}

@media(max-width:850px){

 .tt-logistics-grid{
  grid-template-columns:1fr;
 }

}

@media(max-width:650px){

 .tt-logistics-head{
  flex-direction:column;
  align-items:stretch;
 }

 .tt-logistics-metrics{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-logistics-route,
 .tt-logistics-data{
  grid-template-columns:1fr;
 }

 .tt-logistics-data > div{
  border-right:0!important;
  border-bottom:1px solid #edf0ed!important;
 }

 .tt-logistics-data > div:last-child{
  border-bottom:0!important;
 }

 .tt-logistics-card-footer{
  flex-direction:column;
  align-items:flex-start;
 }

}

/* FIN LOGISTICA TIKTOK FINAL */

/* ============================================================
   LA BESTIA · BOKOSIA · AFFILIATE TIKTOK FINAL
   ============================================================ */

.tt-affiliate-head{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:20px;
 margin-bottom:14px;
}

.tt-affiliate-head h3{
 margin:2px 0 4px!important;
 color:#293733;
 font-size:19px!important;
}

.tt-affiliate-head p{
 margin:0;
 color:#7d8883;
 font-size:10px;
}

/* métricas */

.tt-affiliate-metrics{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:9px;
 margin-bottom:12px;
}

.tt-affiliate-metric{
 min-height:88px;
 padding:13px 14px;

 border-radius:13px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e8ece8,
  0 7px 18px rgba(31,48,43,.025);
}

.tt-affiliate-metric.primary{
 background:linear-gradient(
  135deg,
  #f3eef6,
  #fbf9fc
 );
}

.tt-affiliate-metric small{
 display:block;

 color:#909995;
 font-size:8px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-affiliate-metric strong{
 display:block;

 margin:5px 0 3px;

 color:#31403b;
 font-size:22px;
}

.tt-affiliate-metric.primary strong{
 color:#66517b;
}

.tt-affiliate-metric span{
 color:#949c99;
 font-size:8px;
}

/* region */

.tt-affiliate-region{
 display:flex;
 align-items:center;
 gap:14px;

 padding:11px 13px;
 margin-bottom:12px;

 border-radius:11px;

 background:#f7f5f8;
}

.tt-affiliate-region strong{
 color:#66517b;
 font-size:9px;
 white-space:nowrap;
}

.tt-affiliate-region span{
 color:#82798a;
 font-size:9px;
}

/* tarjetas */

.tt-affiliate-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:11px;
}

.tt-affiliate-card{
 position:relative;
 overflow:hidden;

 padding:14px;

 border-radius:14px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e7ebe7,
  0 8px 22px rgba(31,48,43,.03);
}

.tt-affiliate-card:before{
 content:"";
 position:absolute;
 top:0;
 left:0;

 width:3px;
 height:100%;

 background:#cfd5d1;
}

.tt-affiliate-card.pending:before{
 background:#735b88;
}

.tt-affiliate-card.approved:before{
 background:#34735f;
}

.tt-affiliate-card.expired:before{
 background:#a7aaa8;
}

.tt-affiliate-card.rejected:before{
 background:#ad5656;
}

/* creador */

.tt-affiliate-card-top{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:12px;

 margin-bottom:12px;
}

.tt-affiliate-creator{
 display:flex;
 align-items:center;
 gap:10px;

 min-width:0;
}

.tt-affiliate-creator img,
.tt-affiliate-avatar{
 flex:0 0 auto;

 width:42px;
 height:42px;

 border-radius:50%;
 object-fit:cover;
}

.tt-affiliate-avatar{
 display:flex;
 align-items:center;
 justify-content:center;

 background:#eee9f2;
 color:#66517b;

 font-size:13px;
 font-weight:800;
}

.tt-affiliate-creator > div{
 min-width:0;
}

.tt-affiliate-creator strong{
 display:block;

 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;

 color:#34423e;
 font-size:11px;
}

.tt-affiliate-creator span{
 display:block;

 margin-top:2px;

 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;

 color:#8c9591;
 font-size:8px;
}

.tt-affiliate-status{
 flex:0 0 auto;

 padding:5px 8px;

 border-radius:8px;

 background:#f0f2ef;
 color:#737c78;

 font-size:8px;
 font-weight:800;
}

.tt-affiliate-status.pending{
 background:#eee8f2;
 color:#66517b;
}

.tt-affiliate-status.approved{
 background:#eaf3ee;
 color:#21634d;
}

.tt-affiliate-status.expired{
 background:#f0f1ef;
 color:#777f7b;
}

.tt-affiliate-status.rejected{
 background:#f8eaea;
 color:#a04c4c;
}

/* estadísticas */

.tt-affiliate-creator-stats{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));

 border:1px solid #edf0ed;
 border-radius:10px;

 overflow:hidden;

 margin-bottom:10px;
}

.tt-affiliate-creator-stats > div{
 padding:8px 9px;
 border-right:1px solid #edf0ed;
}

.tt-affiliate-creator-stats > div:last-child{
 border-right:0;
}

.tt-affiliate-creator-stats small{
 display:block;

 color:#949c99;
 font-size:7px;
 font-weight:750;
}

.tt-affiliate-creator-stats strong{
 display:block;

 margin-top:4px;

 color:#44524d;
 font-size:9px;
}

/* producto */

.tt-affiliate-product{
 display:grid;
 grid-template-columns:56px minmax(0,1fr);
 gap:10px;

 align-items:center;

 padding:9px;
 margin-bottom:9px;

 border-radius:10px;

 background:#f7f8f6;
}

.tt-affiliate-product-img{
 display:flex;
 align-items:center;
 justify-content:center;

 width:56px;
 height:56px;

 border-radius:8px;

 background:#fff;

 overflow:hidden;
}

.tt-affiliate-product-img img{
 width:100%;
 height:100%;
 object-fit:contain;
}

.tt-affiliate-product-main{
 min-width:0;
}

.tt-affiliate-product-main small{
 display:block;

 margin-bottom:3px;

 color:#949c99;
 font-size:7px;
 font-weight:800;
 letter-spacing:.6px;
}

.tt-affiliate-product-main strong{
 display:block;

 color:#3a4843;
 font-size:10px;
 line-height:1.35;
}

.tt-affiliate-product-main span{
 display:block;

 margin-top:3px;

 color:#8a9490;
 font-size:8px;
}

/* acuerdo */

.tt-affiliate-deal{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:7px;
}

.tt-affiliate-deal > div{
 padding:8px 9px;

 border-radius:9px;

 background:#fafafa;
}

.tt-affiliate-deal small{
 display:block;

 color:#949c99;
 font-size:7px;
 font-weight:750;
}

.tt-affiliate-deal strong{
 display:block;

 margin-top:4px;

 color:#66517b;
 font-size:11px;
}

/* footer */

.tt-affiliate-footer{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;

 margin-top:10px;
}

.tt-affiliate-footer > span:first-child{
 color:#9ba19f;
 font-size:7px;
}

.tag.purple{
 background:#eee8f2;
 color:#66517b;
}

/* vacio */

.tt-affiliate-loading,
.tt-affiliate-empty{
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;

 min-height:170px;

 border-radius:13px;

 background:#f8f9f7;

 color:#8a9490;
 font-size:10px;
}

.tt-affiliate-empty strong{
 color:#475650;
 font-size:12px;
}

.tt-affiliate-empty span{
 margin-top:5px;
}

@media(max-width:1000px){

 .tt-affiliate-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }

 .tt-affiliate-grid{
  grid-template-columns:1fr;
 }

}

@media(max-width:650px){

 .tt-affiliate-head{
  flex-direction:column;
  align-items:stretch;
 }

 .tt-affiliate-metrics{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-affiliate-creator-stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-affiliate-creator-stats > div{
  border-bottom:1px solid #edf0ed;
 }

 .tt-affiliate-region{
  flex-direction:column;
  align-items:flex-start;
 }

}

/* FIN AFFILIATE TIKTOK FINAL */

/* ============================================================
   LA BESTIA · BOKOSIA · AFFILIATE API CONSOLE
   ============================================================ */

.tt-affiliate-console{
 margin-bottom:12px;
 padding:15px;

 border-radius:14px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e7ebe7,
  0 8px 22px rgba(31,48,43,.025);
}

.tt-affiliate-console-head{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:16px;

 margin-bottom:12px;
}

.tt-affiliate-console-head small{
 display:block;

 color:#929b97;
 font-size:7px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-affiliate-console-head h4{
 margin:3px 0 2px;

 color:#33413d;
 font-size:13px;
}

.tt-affiliate-console-head p{
 margin:0!important;

 color:#929b97!important;
 font-size:8px!important;
}

/* permisos */

.tt-affiliate-permissions{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));

 border:1px solid #edf0ed;
 border-radius:10px;

 overflow:hidden;
}

.tt-affiliate-permissions > div{
 padding:10px 11px;

 border-right:1px solid #edf0ed;
}

.tt-affiliate-permissions > div:last-child{
 border-right:0;
}

.tt-affiliate-permissions span{
 display:block;

 color:#8e9893;
 font-size:8px;
}

.tt-affiliate-permissions strong{
 display:block;

 margin-top:4px;

 font-size:9px;
}

.tt-affiliate-permissions strong.ok{
 color:#21634d;
}

.tt-affiliate-permissions strong.off{
 color:#a35050;
}

/* outreach */

.tt-affiliate-outreach{
 display:grid;
 grid-template-columns:1.4fr repeat(3,1fr);
 gap:8px;

 margin-top:10px;
}

.tt-affiliate-outreach > div{
 padding:10px 11px;

 border-radius:10px;

 background:#f7f8f6;
}

.tt-affiliate-outreach-main{
 background:
  linear-gradient(
   135deg,
   #f1edf4,
   #faf8fb
  )!important;
}

.tt-affiliate-outreach small{
 display:block;

 color:#929b97;
 font-size:7px;
 font-weight:800;
 letter-spacing:.6px;
}

.tt-affiliate-outreach strong{
 display:block;

 margin-top:4px;

 color:#43514c;
 font-size:15px;
}

.tt-affiliate-outreach-main strong{
 color:#66517b;
 font-size:20px;
}

.tt-affiliate-outreach span{
 display:block;

 margin-top:2px;

 color:#8c9591;
 font-size:7px;
}

.tt-affiliate-api-warning{
 margin-top:10px;
 padding:9px 10px;

 border-radius:9px;

 background:#fbf1f1;
 color:#984d4d;

 font-size:8px;
}

@media(max-width:900px){

 .tt-affiliate-permissions{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-affiliate-outreach{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

}

@media(max-width:600px){

 .tt-affiliate-permissions,
 .tt-affiliate-outreach{
  grid-template-columns:1fr;
 }

}

/* FIN AFFILIATE API CONSOLE */

/* ============================================================
   LA BESTIA · BOKOSIA · PROMOCIONES TIKTOK FINAL
   ============================================================ */

.tt-promo-head{
 display:flex;
 justify-content:space-between;
 align-items:flex-end;
 gap:20px;
 margin-bottom:14px;
}

.tt-promo-head h3{
 margin:2px 0 4px!important;
 color:#293733;
 font-size:19px!important;
}

.tt-promo-head p{
 margin:0;
 color:#7d8883;
 font-size:10px;
}

.tt-promo-metrics{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:9px;
 margin-bottom:12px;
}

.tt-promo-metric{
 min-height:88px;
 padding:13px 14px;
 border-radius:13px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e8ece8,
  0 7px 18px rgba(31,48,43,.025);
}

.tt-promo-metric.primary{
 background:linear-gradient(
  135deg,
  #f3eef6,
  #fbf9fc
 );
}

.tt-promo-metric small{
 display:block;
 color:#909995;
 font-size:8px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-promo-metric strong{
 display:block;
 margin:5px 0 3px;
 color:#31403b;
 font-size:22px;
}

.tt-promo-metric.primary strong{
 color:#66517b;
}

.tt-promo-metric span{
 color:#949c99;
 font-size:8px;
}

.tt-promo-section{
 margin-top:12px;
}

.tt-promo-section-head{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin-bottom:8px;
}

.tt-promo-section-head small{
 color:#949c99;
 font-size:7px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-promo-section-head h4{
 margin:2px 0 0;
 color:#3b4944;
 font-size:12px;
}

.tt-promo-section-head>span{
 color:#66517b;
 font-size:10px;
 font-weight:800;
}

.tt-promo-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
}

.tt-promo-card{
 padding:14px;

 border-radius:13px;
 background:#fff;

 box-shadow:
  inset 0 0 0 1px #e7ebe7,
  0 8px 20px rgba(31,48,43,.025);
}

.tt-promo-card-head{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:10px;
 margin-bottom:10px;
}

.tt-promo-card-head small{
 display:block;
 color:#969e9a;
 font-size:7px;
 font-weight:800;
}

.tt-promo-card-head h4{
 margin:3px 0 0;
 color:#3b4944;
 font-size:11px;
}

.tt-promo-state{
 padding:5px 8px;
 border-radius:8px;
 background:#f0f2ef;
 color:#6c7772;
 font-size:8px;
 font-weight:800;
}

.tt-promo-state.ongoing{
 background:#eaf3ee;
 color:#21634d;
}

.tt-promo-state.not_start{
 background:#eee8f2;
 color:#66517b;
}

.tt-promo-state.expired,
.tt-promo-state.deactivated{
 background:#f0f1ef;
 color:#777f7b;
}

.tt-promo-data{
 display:grid;
 grid-template-columns:1fr 1fr;

 border:1px solid #edf0ed;
 border-radius:9px;
 overflow:hidden;
}

.tt-promo-data>div{
 padding:8px 9px;
 border-bottom:1px solid #edf0ed;
}

.tt-promo-data>div:nth-child(odd){
 border-right:1px solid #edf0ed;
}

.tt-promo-data>div:nth-last-child(-n+2){
 border-bottom:0;
}

.tt-promo-data span{
 display:block;
 color:#929a97;
 font-size:7px;
}

.tt-promo-data strong{
 display:block;
 margin-top:3px;

 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;

 color:#46534f;
 font-size:8px;
}

.tt-promo-empty,
.tt-promo-loading{
 min-height:120px;

 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;

 border-radius:12px;
 background:#f8f9f7;

 color:#8a9490;
 font-size:9px;
}

.tt-promo-empty strong{
 color:#475650;
 font-size:11px;
}

.tt-promo-empty span{
 margin-top:4px;
}

.tt-promo-warning{
 margin:8px 0;
 padding:9px 10px;

 border-radius:9px;
 background:#fbf1f1;

 color:#995050;
 font-size:8px;
}

@media(max-width:900px){

 .tt-promo-metrics{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-promo-grid{
  grid-template-columns:1fr;
 }

}

@media(max-width:600px){

 .tt-promo-head{
  flex-direction:column;
  align-items:stretch;
 }

 .tt-promo-data{
  grid-template-columns:1fr;
 }

 .tt-promo-data>div{
  border-right:0!important;
  border-bottom:1px solid #edf0ed!important;
 }

 .tt-promo-data>div:last-child{
  border-bottom:0!important;
 }

}

/* FIN PROMOCIONES TIKTOK FINAL */

/* ============================================================
   LA BESTIA · BOKOSIA · TIKTOK API TOKENS
   ============================================================ */

.tt-api-console{
 display:block;
}

.tt-api-head{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:18px;
 margin-bottom:12px;
}

.tt-api-head small,
.tt-api-box-head small{
 color:#929b97;
 font-size:7px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-api-head h3{
 margin:3px 0 3px;
 color:#303f3a;
 font-size:17px;
}

.tt-api-head p{
 margin:0;
 color:#89938e;
 font-size:9px;
}

.tt-api-metrics{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:9px;
 margin-bottom:11px;
}

.tt-api-metric{
 min-height:92px;
 padding:13px 14px;
 border-radius:13px;
 background:#fff;
 box-shadow:
  inset 0 0 0 1px #e8ece8,
  0 8px 20px rgba(31,48,43,.025);
}

.tt-api-metric.primary{
 background:linear-gradient(
  135deg,
  #f1edf4,
  #fbf9fc
 );
}

.tt-api-metric small{
 display:block;
 color:#929b97;
 font-size:7px;
 font-weight:800;
 letter-spacing:.7px;
}

.tt-api-metric strong{
 display:block;
 margin:6px 0 3px;
 color:#35443f;
 font-size:18px;
}

.tt-api-metric.primary strong{
 color:#66517b;
 font-size:23px;
}

.tt-api-metric strong.green{
 color:#21634d;
}

.tt-api-metric strong.amber{
 color:#a07036;
}

.tt-api-metric strong.red{
 color:#a34c4c;
}

.tt-api-metric span{
 display:block;
 color:#929b97;
 font-size:7px;
}

.tt-api-grid{
 display:grid;
 grid-template-columns:1.15fr .85fr;
 gap:10px;
}

.tt-api-box{
 padding:14px;
 border-radius:13px;
 background:#fff;
 box-shadow:
  inset 0 0 0 1px #e7ebe7,
  0 8px 20px rgba(31,48,43,.025);
}

.tt-api-box-head{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 gap:10px;
 margin-bottom:10px;
}

.tt-api-box-head h4{
 margin:3px 0 0;
 color:#3a4944;
 font-size:11px;
}

.tt-api-box-head>span{
 color:#969e9a;
 font-size:7px;
}

.tt-api-capabilities{
 border:1px solid #edf0ed;
 border-radius:9px;
 overflow:hidden;
}

.tt-api-cap-row{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:9px 10px;
 border-bottom:1px solid #edf0ed;
}

.tt-api-cap-row:last-child{
 border-bottom:0;
}

.tt-api-cap-row strong{
 display:block;
 color:#43514c;
 font-size:9px;
 text-transform:capitalize;
}

.tt-api-cap-row small{
 display:block;
 margin-top:2px;
 color:#939c98;
 font-size:7px;
}

.tt-api-info{
 display:grid;
 grid-template-columns:1fr 1fr;
 border:1px solid #edf0ed;
 border-radius:9px;
 overflow:hidden;
}

.tt-api-info>div{
 padding:9px 10px;
 border-bottom:1px solid #edf0ed;
}

.tt-api-info>div:nth-child(odd){
 border-right:1px solid #edf0ed;
}

.tt-api-info>div:nth-last-child(-n+2){
 border-bottom:0;
}

.tt-api-info span{
 display:block;
 color:#949c98;
 font-size:7px;
}

.tt-api-info strong{
 display:block;
 margin-top:3px;
 color:#44524d;
 font-size:8px;
}

.tt-api-actions{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin-top:10px;
}

.tt-api-actions button{
 font-size:8px;
}

.tt-api-scopes-box{
 margin-top:10px;
}

.tt-api-scopes{
 display:flex;
 flex-wrap:wrap;
 gap:5px;
}

.tt-api-scope{
 display:inline-flex;
 padding:5px 7px;
 border-radius:7px;
 background:#f3f0f5;
 color:#66517b;
 font-size:7px;
 font-weight:700;
}

.tt-api-loading{
 min-height:130px;
 display:flex;
 align-items:center;
 justify-content:center;
 border-radius:12px;
 background:#f8f9f7;
 color:#8b9590;
 font-size:9px;
}

@media(max-width:900px){

 .tt-api-metrics{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }

 .tt-api-grid{
  grid-template-columns:1fr;
 }

}

@media(max-width:600px){

 .tt-api-metrics,
 .tt-api-info{
  grid-template-columns:1fr;
 }

 .tt-api-info>div{
  border-right:0!important;
  border-bottom:1px solid #edf0ed!important;
 }

 .tt-api-info>div:last-child{
  border-bottom:0!important;
 }

}

/* FIN TIKTOK API TOKENS */

/* ============================================================
   LA BESTIA · BOKOSIA · CONFIGURACION TIKTOK
   ============================================================ */

.tt-config-head{
 display:flex;
 align-items:flex-start;
 justify-content:space-between;
 gap:18px;
 margin-bottom:12px;
}

.tt-config-head h3{
 margin:3px 0;
 font-size:18px;
 color:#30403b;
}

.tt-config-head p{
 margin:0;
 color:#87928d;
 font-size:9px;
}

.tt-config-grid{
 display:grid;
 grid-template-columns:1.1fr .9fr;
 gap:10px;
}

.tt-config-card{
 padding:15px;
 border-radius:14px;
 background:#fff;
 box-shadow:
  inset 0 0 0 1px #e7ece7,
  0 8px 24px rgba(25,45,39,.025);
}

.tt-config-write{
 grid-column:1/-1;
}

.tt-config-title small{
 color:#66517b;
 font-size:7px;
 font-weight:800;
 letter-spacing:.8px;
}

.tt-config-title h4{
 margin:3px 0 10px;
 color:#3b4a45;
 font-size:12px;
}

.tt-config-status{
 display:grid;
 grid-template-columns:repeat(3,1fr);
 border:1px solid #edf0ed;
 border-radius:10px;
 overflow:hidden;
 margin-bottom:12px;
}

.tt-config-status>div{
 padding:9px 10px;
 border-right:1px solid #edf0ed;
 border-bottom:1px solid #edf0ed;
}

.tt-config-status>div:nth-child(3n){
 border-right:0;
}

.tt-config-status>div:nth-last-child(-n+3){
 border-bottom:0;
}

.tt-config-status span{
 display:block;
 color:#929b97;
 font-size:7px;
}

.tt-config-status strong{
 display:block;
 margin-top:3px;
 color:#40504a;
 font-size:8px;
}

.tt-config-fields{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:8px;
}

.tt-config-fields label span{
 display:block;
 margin-bottom:4px;
 color:#6f7a75;
 font-size:7px;
 font-weight:700;
}

.tt-config-fields input{
 width:100%;
 min-height:34px;
 border:1px solid #dde5df;
 border-radius:8px;
 background:#fafbf9;
 font-size:8px;
}

.tt-config-switches{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:7px;
}

.tt-config-switches label{
 display:flex;
 align-items:flex-start;
 gap:8px;
 padding:9px;
 border:1px solid #edf0ed;
 border-radius:9px;
 background:#fafbf9;
 cursor:pointer;
}

.tt-config-switches input{
 margin-top:2px;
}

.tt-config-switches b{
 display:block;
 color:#42514c;
 font-size:8px;
}

.tt-config-switches small{
 display:block;
 margin-top:2px;
 color:#929b97;
 font-size:7px;
 line-height:1.35;
}

.tt-config-warning{
 margin-top:10px;
 padding:10px 12px;
 border-radius:9px;
 background:#fff8ef;
 border:1px solid #f0dfc8;
}

.tt-config-warning strong{
 color:#9a6836;
 font-size:8px;
}

.tt-config-warning p{
 margin:3px 0 0;
 color:#8d7862;
 font-size:7px;
}

.tt-config-actions{
 display:flex;
 flex-wrap:wrap;
 gap:7px;
 margin-top:12px;
}

@media(max-width:900px){
 .tt-config-grid{
  grid-template-columns:1fr;
 }
 .tt-config-write{
  grid-column:auto;
 }
}

@media(max-width:600px){
 .tt-config-status,
 .tt-config-fields,
 .tt-config-switches{
  grid-template-columns:1fr;
 }
 .tt-config-status>div{
  border-right:0!important;
  border-bottom:1px solid #edf0ed!important;
 }
 .tt-config-status>div:last-child{
  border-bottom:0!important;
 }
}

/* FIN CONFIGURACION TIKTOK */

/* ============================================================
   TIKTOK CONFIG · CHECKBOXES COMPACTOS
   ============================================================ */

.tt-config-switches label{
 align-items:center;
}

.tt-config-switches input[type="checkbox"]{
 width:16px;
 height:16px;
 min-width:16px;
 margin:0;
 accent-color:#66517b;
}

.tt-config-switches span{
 flex:1;
}

.tt-config-switches b{
 font-size:8px;
 line-height:1.2;
}

.tt-config-switches small{
 font-size:7px;
 line-height:1.25;
}

.tt-config-switches label{
 min-height:48px;
 padding:9px 11px;
}

@media(max-width:600px){
 .tt-config-switches input[type="checkbox"]{
  width:18px;
  height:18px;
  min-width:18px;
 }
}

/* FIN TIKTOK CONFIG · CHECKBOXES COMPACTOS */

/* ============================================================
   LA BESTIA · BOKOSIA · ACTIVIDAD TIKTOK
   ============================================================ */

.tt-activity-head{
 margin-bottom:12px;
}

.tt-activity-head h3{
 margin:3px 0;
 font-size:18px;
 color:#30403b;
}

.tt-activity-head p{
 margin:0;
 color:#87928d;
 font-size:9px;
}

.tt-activity-kpis{
 display:grid;
 grid-template-columns:repeat(4,1fr);
 gap:8px;
 margin-bottom:10px;
}

.tt-activity-kpis>div{
 padding:12px;
 border-radius:12px;
 background:#fff;
 box-shadow:inset 0 0 0 1px #e7ece7;
}

.tt-activity-kpis small{
 display:block;
 color:#66517b;
 font-size:7px;
 font-weight:800;
 letter-spacing:.6px;
}

.tt-activity-kpis strong{
 display:block;
 margin-top:4px;
 color:#34443e;
 font-size:14px;
}

.tt-activity-kpis span{
 display:block;
 margin-top:3px;
 color:#8b9691;
 font-size:7px;
}

.tt-activity-grid-final{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:10px;
}

.tt-activity-card{
 background:#fff;
 border-radius:14px;
 padding:14px;
 box-shadow:
  inset 0 0 0 1px #e7ece7,
  0 8px 24px rgba(25,45,39,.025);
}

.tt-activity-card-head{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin-bottom:10px;
}

.tt-activity-card-head small{
 color:#66517b;
 font-size:7px;
 font-weight:800;
 letter-spacing:.6px;
}

.tt-activity-card-head h4{
 margin:2px 0 0;
 color:#40504a;
 font-size:11px;
}

.tt-activity-card-head>span{
 min-width:25px;
 padding:4px 7px;
 border-radius:999px;
 background:#f1eef4;
 color:#66517b;
 text-align:center;
 font-size:8px;
 font-weight:800;
}

.tt-activity-list{
 display:flex;
 flex-direction:column;
 gap:6px;
}

.tt-activity-row{
 display:grid;
 grid-template-columns:1.2fr 1fr auto;
 align-items:center;
 gap:10px;
 padding:9px 10px;
 border-radius:9px;
 border:1px solid #edf0ed;
 background:#fafbf9;
}

.tt-activity-main{
 display:flex;
 align-items:center;
 gap:8px;
 min-width:0;
}

.tt-activity-main strong{
 display:block;
 color:#3f504a;
 font-size:8px;
}

.tt-activity-main small{
 display:block;
 margin-top:2px;
 color:#929b97;
 font-size:7px;
}

.tt-activity-dot{
 width:7px;
 height:7px;
 min-width:7px;
 border-radius:50%;
 background:#c8d0cc;
}

.tt-activity-dot.ok{
 background:#4e8d72;
}

.tt-activity-dot.bad{
 background:#b96c6c;
}

.tt-activity-dot.warn{
 background:#bf9361;
}

.tt-activity-change{
 display:flex;
 flex-wrap:wrap;
 gap:5px;
 align-items:center;
 color:#69766f;
 font-size:7px;
}

.tt-activity-change span{
 padding:3px 5px;
 border-radius:5px;
 background:#f1f4f1;
}

.tt-activity-date{
 color:#969f9b;
 font-size:7px;
 white-space:nowrap;
}

.tt-activity-empty{
 padding:20px;
 text-align:center;
 color:#9aa39f;
 font-size:8px;
}

@media(max-width:1000px){
 .tt-activity-kpis{
  grid-template-columns:repeat(2,1fr);
 }

 .tt-activity-grid-final{
  grid-template-columns:1fr;
 }
}

@media(max-width:650px){
 .tt-activity-kpis{
  grid-template-columns:1fr;
 }

 .tt-activity-row{
  grid-template-columns:1fr;
 }

 .tt-activity-date{
  white-space:normal;
 }
}

/* FIN ACTIVIDAD TIKTOK */


/* ============================================================
   TIKTOK · TARGET COLLABORATION · SELECTOR PRODUCTOS
   Modal ancho real
   ============================================================ */

#editor:has(.tt-target-products-modal){
    width:96vw !important;
    max-width:1600px !important;
    height:92vh !important;
    max-height:92vh !important;
    padding:0 !important;
    overflow:hidden !important;
}

#editor:has(.tt-target-products-modal) .tt-target-products-modal{
    width:100% !important;
    max-width:none !important;
    height:100% !important;
    max-height:none !important;
    margin:0 !important;
    padding:20px 24px !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}

#editor:has(.tt-target-products-modal) .tt-affiliate-deal{
    flex:0 0 auto !important;
}

#editor:has(.tt-target-products-modal) .tiktok-miravia-table-wrap{
    flex:1 1 auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:auto !important;
    margin-top:10px !important;
}

#editor:has(.tt-target-products-modal) .tiktok-miravia-table{
    width:100% !important;
    min-width:1100px !important;
}

#editor:has(.tt-target-products-modal) .tiktok-miravia-table thead{
    position:sticky !important;
    top:0 !important;
    z-index:5 !important;
}

#editor:has(.tt-target-products-modal) .tiktok-miravia-table th{
    background:#fafbf8 !important;
    box-shadow:0 1px 0 #dfe6df;
}

#editor:has(.tt-target-products-modal) .toolbar{
    flex:0 0 auto !important;
    padding:10px 0 !important;
    border-bottom:0 !important;
}

#editor:has(.tt-target-products-modal) .section-head{
    flex:0 0 auto !important;
    margin:0 0 8px !important;
}

#editor:has(.tt-target-products-modal) .actions{
    flex:0 0 auto !important;
    margin-top:10px !important;
    padding-top:12px !important;
    background:#fff !important;
}

