/* Disposición exclusiva TikTok. Usa las superficies, tarjetas, controles y colores del proyecto. */
#tiktokWorkspace{min-width:0;color:#16304e}
#tiktokWorkspace .orders-hero{margin-bottom:18px}
#tiktokWorkspace .orders-hero h2{font-size:25px}
.tiktok-actions,.tiktok-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.tiktok-actions .btn,.tiktok-shortcuts .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.tiktok-shortcuts{margin:18px 0}
.tiktok-panel-body{padding:20px;min-width:0}
#tiktokWorkspace .panelhead{flex-wrap:wrap;gap:12px}
.tiktok-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:18px}
.tiktok-kpis .dash-v3-kpi{min-width:0;display:flex;gap:13px;align-items:center;padding:19px;background:#fff;border:1px solid #dbe5f2;border-radius:14px}
.tiktok-kpis .dash-v3-kpi-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px;background:#eaf3ff;color:#1769df;font-size:22px}
.tiktok-kpis .dash-v3-kpi-copy{display:grid;gap:6px;min-width:0}
.tiktok-kpis strong{font-size:25px;overflow-wrap:anywhere}
.tiktok-kpis span{font-size:13px;font-weight:700;color:#4d6683}
.tiktok-kpis small{font-size:12px;color:#64748b}
.tiktok-setup{display:flex;gap:14px;align-items:center;margin-bottom:18px}
.tiktok-setup>i{font-size:28px}.tiktok-setup>div{flex:1}.tiktok-setup p{margin:6px 0 0}
.tiktok-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:230px;padding:28px 20px;border:1px dashed #d5e1ef;border-radius:14px;background:#f8fbff;grid-column:1/-1;width:100%}
.tiktok-empty-icon{display:grid;place-items:center;width:62px;height:62px;background:#e7f0ff;color:#2872d8;border-radius:18px;font-size:30px;margin-bottom:13px}
.tiktok-empty h3{margin:3px 0 8px;font-size:19px}.tiktok-empty p{max-width:530px;color:#61758d;line-height:1.6;margin:0 0 17px}.tiktok-empty .tiktok-actions{justify-content:center}
.tiktok-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(4,minmax(125px,1fr));gap:12px;padding:15px;border:1px solid #dbe5f2;border-radius:12px;background:#f8fbff;margin-bottom:18px;align-items:end}
.tiktok-filters>.tiktok-actions{grid-column:1/-1;justify-content:flex-end}
#tiktokWorkspace .field,#tiktokModal .field,.tiktok-settings .field{min-width:0}
#tiktokWorkspace .field input,#tiktokWorkspace .field select,#tiktokModal .field input,#tiktokModal .field select,.tiktok-settings .field input,.tiktok-settings .field textarea{width:100%;min-width:0;box-sizing:border-box;font:inherit;background:#fff;color:#16304e}
.tiktok-product-search{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:18px}.tiktok-product-search>.field{flex:1;min-width:180px}.tiktok-product-search .inv-modes{margin-left:auto}
.tiktok-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.tiktok-sale-card{min-width:0;overflow:hidden;border:1px solid #d9e4f0;border-radius:14px;background:#fff;display:flex;flex-direction:column}
.tiktok-sale-card .productcard-media{height:155px;position:relative;background:#f1f5fa}.tiktok-sale-card .product-image{height:100%;width:100%;object-fit:contain}.tiktok-sale-card .product-thumb-fallback{display:grid;place-items:center;font-size:42px;color:#6d99ce}
.tiktok-sale-card .productcard-body{display:grid;gap:8px;padding:13px;flex:1}.tiktok-sale-card .productcard-body strong{font-size:15px}.tiktok-sale-card small{color:#708197;font-size:12px}.tiktok-sale-card .btn{width:100%;font-size:13px}.tiktok-sale-card .stock-pill{position:absolute;right:9px;top:9px;background:#d7f67b;color:#25381c;border-radius:20px;padding:5px 10px;font-size:13px;font-weight:800}
.tiktok-sale-card.is-unavailable{opacity:.7}.tiktok-price{font-size:18px;font-weight:800;color:#0668ed}.tiktok-variant{font-size:12px;color:#687d94}
#tiktokWorkspace .inv-card-content small{color:#657c95;line-height:1.5}#tiktokWorkspace .inv-card-actions .btn{width:100%}
#tiktokWorkspace .orders-table td small{display:block;margin-top:5px;color:#6a7f97;font-size:12px}#tiktokWorkspace .orders-table .tiktok-review{color:#9b6500}
#tiktokWorkspace .orders-pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px;padding-top:14px;border-top:1px solid #e2eaf4}#tiktokWorkspace .orders-pagination>div{display:flex;gap:8px}
.tiktok-package-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:13px}.tiktok-package-card{padding:17px;border:1px solid #d4e2f3;background:#f8fbff;border-radius:13px;display:flex;flex-wrap:wrap;gap:12px;align-items:start}.tiktok-package-card>div{flex:1;min-width:140px}.tiktok-package-card>.btn{width:100%}.tiktok-package-card h3{margin:9px 0 7px;font-size:17px}.tiktok-package-card p{font-size:13px;color:#58728f;margin:0 0 10px}.tiktok-package-icon{font-size:28px;color:#1d75e8}
.tiktok-live-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,355px);gap:18px;align-items:start}.tiktok-live-layout>div,.tiktok-live-layout>aside{min-width:0}.tiktok-live-layout>aside{position:sticky;top:16px;min-height:420px;display:flex;flex-direction:column}
.tiktok-cart-body{padding:12px;flex:1;min-height:210px}.tiktok-cart-body .pos-cart-empty{min-height:200px}.tiktok-cart-body .pos-cart-item{margin-bottom:10px}.tiktok-cart-body .pos-cart-item-top{display:flex;justify-content:space-between;gap:8px}.tiktok-cart-body .pos-cart-item-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.tiktok-cart-footer{padding:16px;border-top:1px solid #dfE8f3}.tiktok-cart-footer>.btn{width:100%;font-size:14px}.tiktok-cart-total{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.tiktok-cart-total strong{font-size:26px;color:#076bf0}.tiktok-help{font-size:12px;line-height:1.6;color:#61768e;margin:13px 0 0}.tiktok-mobile-order{display:none}
.tiktok-modal{width:min(1040px,calc(100vw - 32px));max-width:1040px!important;max-height:92dvh;display:flex;flex-direction:column}.tiktok-modal .modalhead,.tiktok-modal .modalfooter{flex:none}.tiktok-modal-body{overflow:auto;min-height:0;overscroll-behavior:contain}.tiktok-modal .formgrid{padding:22px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tiktok-modal .tiktok-form-section,.tiktok-modal .formgrid>p,.tiktok-modal .formgrid>h3,.tiktok-modal .market-product-tabs{grid-column:1/-1;min-width:0}.tiktok-modal .market-product-tabs{margin:-22px -22px 0}.tiktok-modal .market-product-tab{padding:0}.tiktok-modal .market-product-tabs button{display:flex;gap:8px;align-items:center}.tiktok-modal [hidden]{display:none!important}.tiktok-modal .field{font-size:14px;gap:8px}.tiktok-modal .field input,.tiktok-modal .field select{min-height:43px}.tiktok-modal label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;cursor:pointer}.tiktok-modal input[type=checkbox]{width:18px;height:18px;flex:none}.tiktok-modal [data-form-error]{padding:0 22px;color:#b42338;line-height:1.5}.tiktok-modal [data-form-error]:empty{display:none}.tiktok-modal .order-modern-modal{max-width:1040px}.tiktok-modal p{line-height:1.6;overflow-wrap:anywhere}.tiktok-modal p .btn{margin:5px;max-width:100%;white-space:normal}.tiktok-photo-placeholder{display:grid;gap:12px;justify-items:center;color:#7892ab}.tiktok-photo-placeholder i{font-size:46px}
.tiktok-picker-search{display:flex;gap:12px;align-items:end;margin-bottom:14px}.tiktok-picker-search>.field{flex:1}.tiktok-picker-status{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0}.tiktok-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:340px;overflow:auto;margin-bottom:15px}.tiktok-choice{display:flex;gap:10px;padding:12px;border:1px solid #d4e0f0;border-radius:12px;background:#fff;min-width:0}.tiktok-choice.is-selected{border-color:#2784ff;background:#f0f7ff}.tiktok-choice>span:last-child{min-width:0;display:grid;gap:5px}.tiktok-choice b,.tiktok-choice small,.tiktok-choice span{overflow-wrap:anywhere}.tiktok-choice small{color:#657f9b}.tiktok-choice-photo{width:50px;height:56px;flex:none;overflow:hidden;border-radius:8px;background:#eff4fb}.tiktok-choice-image{width:100%;height:100%;object-fit:contain;display:grid;place-items:center;color:#6e93bd;font-size:25px}
.tiktok-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tiktok-variant-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border:1px solid #d5e3f2;border-radius:12px;min-width:0}.tiktok-variant-choice>div{min-width:0}.tiktok-variant-choice p{font-size:14px;margin:5px 0}.tiktok-variant-choice small{color:#677f98}.tiktok-variant-choice>.field{width:90px;flex:none}.tiktok-package-counter{display:flex;gap:15px;justify-content:space-between;align-items:center;margin:18px 0;font-weight:700;color:#1265c6}.tiktok-package-counter progress{width:40%;height:14px;accent-color:#1d75ff}
.tiktok-client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:18px}.tiktok-client-card{padding:20px;display:grid;gap:10px;margin:0}.tiktok-client-card h3,.tiktok-client-card p{margin:0}.tiktok-client-card p{color:#627b95}.tiktok-client-card small{color:#6a7f96}.tiktok-client-avatar{font-size:26px;color:#1766c5}.tiktok-client-card[hidden]{display:none}.tiktok-client-search{max-width:460px}
.tiktok-settings{margin-bottom:20px}.tiktok-settings .tiktok-panel-body{padding:22px}.tiktok-settings textarea{border:1px solid #d3dce6;border-radius:8px;padding:12px;min-height:110px;resize:vertical}.tiktok-settings .market-product-wide{grid-column:1/-1}
@media(max-width:1100px){.tiktok-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.tiktok-live-layout{grid-template-columns:minmax(0,1fr) 310px}.tiktok-live-layout .orders-hero{display:block}.tiktok-live-layout .orders-create{margin-top:12px}}
@media(max-width:850px){.tiktok-live-layout{display:block;padding-bottom:76px}.tiktok-live-layout>aside{position:static}.tiktok-mobile-order{display:flex;gap:9px;justify-content:center;position:fixed;bottom:14px;left:76px;right:16px;z-index:30}.tiktok-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tiktok-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#tiktokWorkspace .orders-hero{display:block;padding:18px}#tiktokWorkspace .orders-hero h2{font-size:22px}#tiktokWorkspace .orders-hero p{font-size:14px}.tiktok-actions .btn{white-space:normal}.tiktok-panel-body{padding:14px}.tiktok-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tiktok-sale-card .productcard-body{padding:10px}.tiktok-sale-card .productcard-media{height:135px}.tiktok-sale-card .btn{font-size:12px;padding:10px 6px}.tiktok-product-search>.field{flex-basis:100%}.tiktok-product-search .inv-modes{margin-left:0}.tiktok-setup{align-items:flex-start;flex-wrap:wrap}.tiktok-kpis .dash-v3-kpi{padding:12px;gap:9px;align-items:start}.tiktok-kpis .dash-v3-kpi-icon{width:30px;height:30px;font-size:17px}.tiktok-kpis strong{font-size:22px}.tiktok-kpis small{font-size:11px}.tiktok-filters{padding:12px}.tiktok-filters>.field:first-child{grid-column:1/-1}.tiktok-modal{width:calc(100vw - 16px);max-height:94dvh}.tiktok-modal .formgrid{grid-template-columns:1fr;padding:16px}.tiktok-modal .market-product-tabs{margin:-16px -16px 0;overflow:auto}.tiktok-modal .modalhead h2{font-size:17px}.tiktok-modal .market-product-general,.tiktok-modal .market-product-fields,.tiktok-modal .market-product-data{grid-template-columns:1fr}.tiktok-picker-grid,.tiktok-variant-grid{grid-template-columns:1fr}.tiktok-picker-status{flex-wrap:wrap}.tiktok-picker-search{flex-wrap:wrap}.tiktok-picker-search>.field{flex-basis:100%}.tiktok-photo-placeholder i{font-size:35px}.tiktok-package-counter{font-size:14px}.tiktok-client-grid{grid-template-columns:1fr}.tiktok-modal .modalfooter{padding:12px 16px}.tiktok-modal .modalfooter .btn{min-height:42px}.tiktok-settings .market-product-fields{grid-template-columns:1fr}}
/* Mantener el encabezado azul de los modales del proyecto, con texto legible. */
.tiktok-modal .modalhead{background:linear-gradient(110deg,#173e79,#1269ff);color:#fff}
.tiktok-modal .modalhead h2,.tiktok-modal .modalhead .close{color:#fff}
#tiktokWorkspace button:disabled,#tiktokModal button:disabled{opacity:.5;cursor:not-allowed}
#tiktokWorkspace .tiktok-price{color:#0668ed}
/* The shared apparel editor keeps the project's existing controls and cards. */
.tiktok-apparel-overlay .apparel-modal{max-height:92vh;overflow:auto}
.tiktok-apparel-overlay .modalhead{background:linear-gradient(110deg,#153d7c,#1266f6);color:white}
.tiktok-apparel-overlay .modalhead h2,.tiktok-apparel-overlay .close{color:white}
.tiktok-editor-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tiktok-editor-gallery img{width:100%;height:140px;object-fit:contain}
.tiktok-apparel-overlay textarea,.tiktok-settings textarea{width:100%;padding:12px;border:1px solid #d3deec;border-radius:8px;font:inherit}
@media(max-width:600px){.tiktok-editor-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.tiktok-apparel-overlay .apparel-tabs{flex-wrap:wrap}}
.tiktok-variant-prices{border-top:1px solid #dce6f3;padding-top:12px;margin-top:12px}
.tiktok-variant-prices h4{margin:0 0 12px;color:#1756a5}
.tiktok-variant-prices small{display:block;margin-top:8px;color:#687b92}
.tiktok-package-card>.tiktok-package-actions{flex:0 0 100%;min-width:0;display:flex;gap:8px}
.tiktok-package-actions>.btn{flex:1;min-width:0}
/* Venta TikTok: detalle de pedidos compartido por catálogo y sistema. */
.tt-order-content{display:grid;gap:14px;min-width:0;color:var(--cat-text,#183450);font-size:14px;line-height:1.45}
.tt-order-content h3,.tt-order-content p{margin:0}
.tt-order-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tt-order-badge{display:inline-flex;padding:4px 9px;border-radius:8px;background:var(--cat-soft,#eaf2ff);color:var(--cat-primary,#1459ad);font-weight:700;font-size:12px}
.tt-order-section{display:grid;gap:12px;padding:16px;border:1px solid var(--cat-border,#dce5f0);border-radius:12px;background:var(--cat-card,#fff);min-width:0}
.tt-order-section h3{font-size:16px;color:inherit}.tt-order-section summary{cursor:pointer;font-weight:700}
.tt-order-section[open]>summary{margin-bottom:12px}
.tt-order-group{border:1px solid var(--cat-border,#dce5f0);border-radius:10px;overflow:hidden}
.tt-order-group>header{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--cat-soft,#f1f6fd)}
.tt-order-group>p{padding:8px 12px;font-size:12px;color:var(--cat-muted,#607b98)}
.tt-order-line{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--cat-border,#e5ecf4);min-width:0}
.tt-order-line>img,.tt-order-photo{width:58px;height:64px;object-fit:contain;background:#f4f7fb;border-radius:8px;flex-shrink:0}
.tt-order-photo{display:grid;place-items:center;color:#7792b0;font-size:28px}
.tt-order-line>div{flex:1;min-width:0;display:grid;gap:3px}.tt-order-line small{color:var(--cat-muted,#607b98)}
.tt-order-content strong,.tt-order-content dd,.tt-order-content small{overflow-wrap:anywhere}
.tt-order-totals{display:grid;gap:9px}.tt-order-totals>div{display:flex;justify-content:space-between;gap:12px}.tt-order-totals>div:first-child{font-size:17px}.tt-order-totals>div:last-child{border-top:1px solid var(--cat-border,#dce5f0);padding-top:9px;font-weight:700}
.tt-order-data{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.tt-order-data dt{font-size:12px;color:var(--cat-muted,#607b98)}.tt-order-data dd{margin:2px 0 0;font-weight:600}
.tt-order-note{padding:10px 12px;background:var(--cat-soft,#eef6ff);border-radius:8px;font-size:13px}.tt-order-instructions{white-space:pre-wrap}
.tt-order-payment{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:12px;border:1px solid var(--cat-border,#dce5f0);border-radius:9px}.tt-order-payment>small,.tt-order-payment>.tiktok-actions,.tt-order-payment>[data-proof-preview]{width:100%}
.tt-order-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:16px}.tt-order-layout>main,.tt-order-layout>aside{display:grid;align-content:start;gap:14px;min-width:0}
.tt-order-line .tt-order-pick{display:flex;align-items:center;gap:6px;font-size:12px}.tt-order-pick input{width:auto}
.tt-order-timeline{display:grid;gap:10px;border-left:2px solid #dce5f0;padding-left:12px;font-size:13px}
.tt-internal-order .formgrid{display:block}.tt-internal-order .tiktok-actions{gap:8px;flex-wrap:wrap}.tt-internal-order .tiktok-modal-body{padding:20px}
.checkout-form.tt-buyer-order{max-width:720px;gap:14px;padding:20px;align-content:start}.tt-buyer-order .tt-order-content p{margin:0}.tt-buyer-order .tt-order-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tt-order-fields h3,.tt-order-fields>small,.tt-order-fields>label:has([name=proof]){grid-column:1/-1}.tt-buyer-order .checkout-actions{position:sticky;bottom:-20px;background:#fff;padding:12px 0;margin:0}.tt-buyer-order .checkout-form__header h2{margin:0}.tt-buyer-order [data-tracking]{overflow-wrap:anywhere}.tt-order-content [hidden],.tt-buyer-order [hidden]{display:none!important}
@media(max-width:700px){.tt-order-layout{grid-template-columns:1fr}.tt-order-line{flex-wrap:wrap}.tt-order-line .tt-order-pick{width:100%;justify-content:flex-end}.tt-buyer-order .tt-order-fields{grid-template-columns:1fr}.tt-order-data{grid-template-columns:1fr 1fr}.tt-order-section{padding:12px}.tt-internal-order .tiktok-modal-body{padding:12px}.checkout-form.tt-buyer-order{padding:14px;border-radius:16px}.tt-buyer-order .checkout-actions{bottom:-14px}}
/* Colores semánticos exclusivos de los pedidos Venta TikTok. */
.tt-internal-order .tiktok-modal-body,.tt-buyer-order.checkout-form{background:#f0f5fc}
.tt-order-content .tt-order-section{border-color:#c8daef;box-shadow:0 4px 12px #163f7010;background:#fff}
.tt-order-content .tt-order-section>h3{display:flex;align-items:center;gap:8px;margin:-16px -16px 0;padding:12px 16px;border-radius:11px 11px 0 0;background:linear-gradient(115deg,#e2edff,#f1f8ff);color:#174a8a;border-bottom:1px solid #c9ddfa}
.tt-order-content .tt-order-section>h3:before{content:'▣';display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#fff9;color:#1d63bd}
.tt-order-content .tt-section-green>h3{background:linear-gradient(115deg,#d5f3e4,#effbf5);color:#106141;border-color:#b8e7d0}.tt-order-content .tt-section-green>h3:before{content:'✓';color:#12794d}
.tt-order-content .tt-section-teal>h3{background:linear-gradient(115deg,#d6f2f8,#edfaff);color:#125d76;border-color:#b5e2ee}.tt-order-content .tt-section-teal>h3:before{content:'↗';color:#087e92}
.tt-order-content .tt-order-group{border-color:#bad0f2;box-shadow:0 2px 5px #224a6f0a}.tt-order-content .tt-order-group>header{background:linear-gradient(115deg,#dce9ff,#edf5ff);color:#174788}.tt-order-content .tt-order-group>p{background:#f7faff}
.tt-order-content .tt-order-line:has([data-picked]:checked){background:#e7f7ed;box-shadow:inset 3px 0 #29a56d}.tt-order-content [data-picked]{accent-color:#15925b}
.tt-preparation-bar{width:100%;height:9px;border:0;border-radius:20px;overflow:hidden;accent-color:#1b9d77;background:#dfebf7}.tt-preparation-bar::-webkit-progress-bar{background:#dfebf7}.tt-preparation-bar::-webkit-progress-value{background:linear-gradient(90deg,#2584e8,#25b78b)}
.tt-order-totals>[data-total-kind="Total del pedido"]{padding:10px;border-radius:8px;background:#e5efff;color:#164f9a}.tt-order-totals>[data-total-kind="Pagos verificados"] strong{color:#0b7345}.tt-order-totals>[data-total-kind="En revisión"] strong{color:#966000}.tt-order-totals>[data-total-kind="Saldo pendiente"] strong{color:#a64714}
.tt-order-content .tt-order-payment[data-payment-state=CONFIRMED]{background:#edf9f2;border-color:#a9dec2}.tt-order-content .tt-order-payment[data-payment-state=REVIEW]{background:#fff8e8;border-color:#edcf8e}.tt-order-content .tt-order-payment[data-payment-state=REJECTED],.tt-order-content .tt-order-payment[data-payment-state=REFUNDED]{background:#fff1f1;border-color:#edc0c0}
.tt-order-payment[data-payment-state=CONFIRMED]>.tt-order-badge,.tt-order-content .tt-paid{background:#cfefdc;color:#12603a}.tt-order-payment[data-payment-state=REVIEW]>.tt-order-badge{background:#ffe8b3;color:#80500b}.tt-order-payment[data-payment-state=REJECTED]>.tt-order-badge,.tt-order-payment[data-payment-state=REFUNDED]>.tt-order-badge{background:#fbdada;color:#9a2930}
.tt-state[data-state=DRAFT],.tt-state[data-state=EXPIRED]{background:#fff0c7;color:#81540c}.tt-state[data-state=CONFIRMED]{background:#dcecff;color:#174f97}.tt-state[data-state=PREPARING]{background:#e2e8ff;color:#3e4ea4}.tt-state[data-state=READY]{background:#ccf1ef;color:#11645f}.tt-state[data-state=SHIPPED]{background:#eaddfb;color:#6d3f9c}.tt-state[data-state=DELIVERED]{background:#d3efdf;color:#14653d}.tt-state[data-state=CANCELLED],.tt-state[data-state=RETURNED]{background:#fce0e2;color:#9b3039}
.tt-order-content .tt-missing{color:#99630c}.tt-order-content .tt-order-note{background:#e0f2fb;border:1px solid #b9dfef;color:#24546d}.tt-order-content .tt-order-data dt{color:#3e6d86}.tt-order-content .tt-order-timeline{border-color:#99bde9}.tt-order-timeline>p{position:relative;padding:9px;background:#f0f6ff;border-radius:6px}.tt-order-timeline>p:before{content:'';position:absolute;left:-18px;top:15px;width:8px;height:8px;background:#367bcd;border:2px solid #fff;border-radius:50%}
.tt-internal-order .btn.outline,.tt-buyer-order .checkout-secondary{background:#eaf1fb;color:#244d80;border:1px solid #c4d7ee}.tt-internal-order .btn[data-proof],.tt-internal-order .btn[data-label]{background:#dbf0fa;color:#155a77;border-color:#a8d5e9}.tt-internal-order .btn[data-share],.tt-internal-order .btn[data-print]{background:#e5ecfd;color:#294c91;border-color:#bfcef1}.tt-internal-order .btn[data-pay][data-decision=CONFIRMED]{background:linear-gradient(120deg,#168454,#21a76d);color:#fff;border-color:#168454}.tt-internal-order [data-nextstep],.tt-internal-order [data-deliver]{background:linear-gradient(120deg,#148659,#21a77e);color:#fff;border-color:#138456}.tt-internal-order .btn[data-pay][data-decision=REJECTED],.tt-internal-order .btn[data-refund],.tt-internal-order .btn[data-return]{background:#fff0f0;color:#a22e3a;border-color:#e7b3ba}
.tt-internal-order button:disabled,.tt-buyer-order button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
@media(max-width:700px){.tt-order-content .tt-order-section>h3{margin:-12px -12px 0;padding:11px 12px}}
/* Paneles, indicadores y acciones de Inicio, Pedidos, Cobros y Envíos. */
#tiktokWorkspace[data-tiktok-view] .dash-v3-kpi{--tt-start:#dceaff;--tt-end:#bed7ff;--tt-accent:#205dbb;--tt-border:#b7d0fa;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,var(--tt-start),var(--tt-end));border-color:var(--tt-border);box-shadow:0 5px 13px #153b6a0c}
#tiktokWorkspace .dash-v3-kpi[data-kpi-tone=amber]{--tt-start:#fff3d5;--tt-end:#ffe0a2;--tt-accent:#86540a;--tt-border:#f0ce8b}
#tiktokWorkspace .dash-v3-kpi[data-kpi-tone=green]{--tt-start:#dcf6e7;--tt-end:#b1e7ca;--tt-accent:#11613e;--tt-border:#9edbb9}
#tiktokWorkspace .dash-v3-kpi[data-kpi-tone=teal]{--tt-start:#d6f4fb;--tt-end:#a8e2f0;--tt-accent:#125c75;--tt-border:#99d7e8}
#tiktokWorkspace .dash-v3-kpi[data-kpi-tone=violet]{--tt-start:#eee5ff;--tt-end:#d7c5f7;--tt-accent:#613a94;--tt-border:#c9b1ed}
#tiktokWorkspace .dash-v3-kpi[data-kpi-tone=orange]{--tt-start:#ffedda;--tt-end:#ffd2ab;--tt-accent:#914510;--tt-border:#efbe91}
#tiktokWorkspace .dash-v3-kpi:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(125deg,transparent 44%,#ffffff42 45%,#ffffff18 69%,transparent 70%);pointer-events:none}
#tiktokWorkspace .dash-v3-kpi .dash-v3-kpi-icon{width:52px;height:52px;background:#ffffffb5;color:var(--tt-accent);border:1px solid #ffffffb0;border-radius:16px;box-shadow:0 3px 9px #14395808}
#tiktokWorkspace .dash-v3-kpi .dash-v3-kpi-copy strong{color:#12364f}#tiktokWorkspace .dash-v3-kpi .dash-v3-kpi-copy span{color:#203e56}#tiktokWorkspace .dash-v3-kpi .dash-v3-kpi-copy small{color:#385b72}
#tiktokWorkspace .panel{border-color:#c6d9ef;box-shadow:0 5px 15px #183f6910;overflow:hidden}#tiktokWorkspace .panel>.panelhead{background:linear-gradient(110deg,#e7f0ff,#f1faff);border-bottom-color:#c9dcf2}#tiktokWorkspace .tiktok-filters{background:linear-gradient(110deg,#edf5ff,#f4fbff);border-color:#c1d8f2}
#tiktokWorkspace .orders-table thead th{background:#e6effc;color:#365b80;border-bottom-color:#c5d9ef}#tiktokWorkspace .orders-table tbody tr:hover{background:#edf6ff}#tiktokWorkspace .orders-table .tt-state{display:inline-flex;padding:5px 9px;border-radius:8px;font-weight:700}#tiktokWorkspace .tiktok-review{display:table;margin-top:6px;padding:3px 7px;background:#fff0cf;color:#87560c;border:1px solid #efd298;border-radius:6px}
#tiktokWorkspace .btn.outline{background:#eaf1fb;color:#28507e;border-color:#bed1e9}#tiktokWorkspace .btn[data-order],#tiktokWorkspace .btn[data-go=sales]{background:linear-gradient(120deg,#2160d5,#307dec);color:#fff;border-color:#1b66d7}#tiktokWorkspace .btn[data-refresh]{background:#e1f1fa;color:#235b7c;border-color:#b0d6e9}#tiktokWorkspace .btn[data-clear-orders]{background:#f0f3f7;color:#465e75;border-color:#c8d3df}
#tiktokWorkspace .tiktok-shortcuts [data-go=products]{background:#ece4fb;color:#633e91;border-color:#d2beec}#tiktokWorkspace .tiktok-shortcuts [data-go=catalog]{background:#e0f1fb;color:#1d6085;border-color:#b1d7ec}#tiktokWorkspace .tiktok-shortcuts [data-go=collections]{background:#fff0d1;color:#815009;border-color:#ebce94}#tiktokWorkspace .tiktok-shortcuts [data-go=logistics]{background:#dcf3e7;color:#1b6e48;border-color:#acdabe}
#tiktokWorkspace button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.tt-internal-order [data-next-state=READY]{background:linear-gradient(120deg,#137e91,#199eac);border-color:#137e91}.tt-order-timeline>[data-event=PAYMENT],.tt-order-timeline>[data-event=EXPIRED]{background:#fff4dc}.tt-order-timeline>[data-event=PAYMENT]:before,.tt-order-timeline>[data-event=EXPIRED]:before{background:#ca8b1d}.tt-order-timeline>[data-event=REVIEW],.tt-order-timeline>[data-event=READY],.tt-order-timeline>[data-event=DELIVER]{background:#e8f7ee}.tt-order-timeline>[data-event=REVIEW]:before,.tt-order-timeline>[data-event=READY]:before,.tt-order-timeline>[data-event=DELIVER]:before{background:#20955f}.tt-order-timeline>[data-event=CANCEL],.tt-order-timeline>[data-event=RETURN],.tt-order-timeline>[data-event=REFUND]{background:#fceced}.tt-order-timeline>[data-event=CANCEL]:before,.tt-order-timeline>[data-event=RETURN]:before,.tt-order-timeline>[data-event=REFUND]:before{background:#bd5161}

.tt-order-content .tt-order-data dt svg{width:12px;height:12px;vertical-align:-1px;stroke:currentColor;fill:none;stroke-width:1.7}.tt-internal-order .formgrid{background:transparent}

.tt-order-totals[data-settled=true]>[data-total-kind="Saldo pendiente"] strong{color:#0b7345}
/* Preparación y salida de envíos masivos: solo Venta TikTok. */
.tt-shipping-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.tt-shipping-tabs .btn{display:flex;align-items:center;gap:8px;padding:12px 16px}
.tt-bulk-intro{display:flex;align-items:center;gap:15px;padding:16px;margin-bottom:18px;background:linear-gradient(110deg,#e1f2fb,#e4f7ed);border:1px solid #b6deec;border-radius:12px}.tt-bulk-intro>i{font-size:32px;color:#157a92}.tt-bulk-intro>div{flex:1}.tt-bulk-intro p{margin:5px 0;color:#4f7185;font-size:13px}
.tt-bulk-modal .tiktok-modal-body{background:#eff5fc}.tt-bulk-body{display:grid;gap:16px;min-width:0}.tt-bulk-note{padding:14px;border:1px solid #b9dbeb;border-radius:10px;background:linear-gradient(110deg,#dff1fb,#edf9f6);color:#24556b}.tt-bulk-note p{margin:5px 0}.tt-bulk-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tt-bulk-fields .field,.tt-bulk-body>.field{display:grid;gap:6px}.tt-bulk-search{display:flex;align-items:end;gap:10px}.tt-bulk-search .field{flex:1}.tt-bulk-selected{display:grid;gap:8px}.tt-bulk-selected-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #b8dec9;border-radius:10px;background:#ebf8f1}.tt-bulk-selected-row>span{flex:1;min-width:0}.tt-bulk-selected-row small{display:block;color:#597b70}.tt-bulk-selected-row label{display:grid;gap:4px;max-width:85px;font-size:12px}.tt-bulk-selected-row input{width:100%}
.tt-bulk-candidate{display:flex;align-items:center;gap:10px;padding:13px;background:#fff;border:1px solid #cfdded;border-radius:10px;margin-bottom:8px}.tt-bulk-candidate:has(input:checked){background:#e5f3ff;border-color:#7eb6ec}.tt-bulk-candidate input,.tt-bulk-confirm input{width:18px;height:18px;accent-color:#16855b;flex-shrink:0}.tt-bulk-candidate span{display:grid;gap:5px}.tt-bulk-candidate small{color:#57728c}
.tt-bulk-order{display:grid;gap:14px;padding:16px;border:1px solid #bfd4ed;border-radius:12px;background:#fff;min-width:0}.tt-bulk-order>header{display:flex;justify-content:space-between;gap:10px;background:#e4efff;color:#194d8d;padding:12px;margin:-16px -16px 0;border-radius:11px 11px 0 0}.tt-bulk-order>p{margin:0;color:#53748d;font-size:13px}.tt-bulk-photos{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tt-bulk-photo{display:grid;align-content:start;gap:10px;padding:12px;border:1px dashed #bad0e5;border-radius:10px;background:#f6faff;font-size:13px;min-width:0}.tt-bulk-photo img{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:8px}.tt-bulk-photo input{max-width:100%;font-size:12px}.tt-bulk-photo .field{display:grid;gap:8px}.tt-bulk-confirm{display:flex;align-items:center;gap:10px;padding:13px;background:#e4f6eb;border-radius:10px;border:1px solid #add9c0}.tt-bulk-success{text-align:center;padding:20px;background:#e4f7ed;border:1px solid #b1ddc4;border-radius:12px;color:#176540}.tt-bulk-success>span{font-size:48px}.tt-bulk-modal .modalfooter{display:flex;flex-wrap:wrap;gap:10px}.tt-bulk-modal [data-bulk-error]{color:#a62e3c;overflow-wrap:anywhere}.tt-bulk-body .btn{display:inline-flex;align-items:center;gap:6px;justify-content:center}.tt-bulk-modal [hidden]{display:none!important}
@media(max-width:650px){.tt-bulk-intro{flex-wrap:wrap}.tt-bulk-intro>.btn{width:100%}.tt-bulk-fields,.tt-bulk-photos{grid-template-columns:1fr}.tt-bulk-selected-row{flex-wrap:wrap}.tt-bulk-selected-row>span{flex-basis:100%}.tt-bulk-order>header{flex-wrap:wrap}.tt-bulk-search{flex-wrap:wrap}.tt-bulk-search>.field{flex-basis:100%}.tt-bulk-modal .modalfooter>.btn{flex:1}.tt-shipping-tabs .btn{flex:1}.tt-bulk-candidate{align-items:flex-start}.tt-bulk-order{padding:12px}.tt-bulk-order>header{margin:-12px -12px 0}.tt-bulk-body{overflow-wrap:anywhere}}

.tt-bulk-modal .tiktok-modal-body{padding:20px}.tt-bulk-modal [type=submit]{background:linear-gradient(120deg,#13855b,#159bac);border-color:#168b79}.tt-bulk-modal .tt-bulk-body button:disabled{opacity:.45;cursor:wait}@media(max-width:650px){.tt-bulk-modal .tiktok-modal-body{padding:12px}}
.tt-bulk-selected-row input{box-sizing:border-box;padding:8px 10px;border:1px solid #b9d3c6;border-radius:8px;background:#fff;color:#174634;font:inherit}.tt-bulk-photo .field>input{box-sizing:border-box;width:100%;border-radius:8px}.tt-bulk-modal .tt-bulk-body>p{margin:0}
/* Envíos masivos: resumen por página y preparación del grupo. */
.tt-bulk-overview{margin:0 0 18px}.tt-bulk-scope{margin:0 0 10px;color:#486b86;font-size:13px;font-weight:600}.tt-bulk-overview .tiktok-kpis{margin-bottom:0}
.tt-bulk-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;counter-reset:bulk-step;margin:0;padding:0}.tt-bulk-steps li{counter-increment:bulk-step;display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #c9d9ea;border-radius:9px;background:#fff;color:#4d6880;font-size:12px}.tt-bulk-steps li:before{content:counter(bulk-step);display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e9f0f9;font-weight:700}.tt-bulk-steps [aria-current=step]{border-color:#8fc9df;background:#def4fa;color:#145a72}.tt-bulk-steps [aria-current=step]:before{background:#14768f;color:#fff}
.tt-bulk-selection-summary{padding:12px 14px;border:1px solid #a9d9c5;border-radius:10px;background:linear-gradient(110deg,#e3f7eb,#def4fa);color:#195b4b;font-weight:700;font-size:14px}.tt-bulk-modal [data-candidates][aria-busy=true]{opacity:.65}.tt-bulk-overview .dash-v3-kpi{min-width:0}
@media(max-width:650px){.tt-bulk-steps{gap:6px}.tt-bulk-steps li{flex:1;padding:7px;min-width:0;font-size:11px}.tt-bulk-steps li:before{flex-shrink:0;width:19px;height:19px}.tt-bulk-selection-summary{font-size:13px}}

/* Compact order workspace: status tabs replace large KPI cards. */
#tiktokWorkspace[data-tiktok-view="orders"] .tt-orders-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;gap:8px}
#tiktokWorkspace[data-tiktok-view="orders"] .tt-orders-heading h1{font-size:21px;margin:0}
.tt-order-states{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 8px}.tt-order-states .btn{padding:6px 9px;min-height:32px;font-size:12px}.tt-order-states [aria-pressed="true"]{background:#1769e8;color:white}.tt-order-states b{margin-left:4px}
.tt-orders-content{background:white;border:1px solid #dbe6f7;border-radius:10px;padding:10px}
#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr)) auto;gap:8px;padding:0 0 9px;margin:0;align-items:end}
#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters input,#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters select{min-height:34px;padding:6px 9px}#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters .tiktok-actions{margin:0;flex-wrap:nowrap}
#tiktokWorkspace[data-tiktok-view="orders"] .orders-table td{padding:7px 10px;vertical-align:middle}#tiktokWorkspace[data-tiktok-view="orders"] .orders-table th{padding:9px 10px;position:sticky;top:0;z-index:1;background:#e6effc}#tiktokWorkspace[data-tiktok-view="orders"] .tablewrap{max-height:calc(100vh - 235px);overflow:auto}.tt-order-products-summary{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tiktokWorkspace[data-tiktok-view="orders"] .orders-pagination{padding:8px 0 0;margin-top:6px}.tt-state[data-state="STORED"]{background:#fff0c7;color:#81540c}
@media(max-width:800px){#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters{grid-template-columns:1fr 1fr}#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters>.field:first-child{grid-column:1/-1}#tiktokWorkspace[data-tiktok-view="orders"] .tablewrap{max-height:65vh}.tt-order-states{flex-wrap:nowrap;overflow:auto}.tt-order-states .btn{flex-shrink:0}}

#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters>.tiktok-actions{grid-column:auto}#tiktokWorkspace[data-tiktok-view="orders"] .tt-order-states .btn[aria-pressed="true"]{background:#1769e8;color:#fff}#tiktokWorkspace[data-tiktok-view="orders"] .orders-table td small{margin-top:2px}

.tt-secondary-filters{display:contents}.tt-secondary-filters>summary{display:none}@media(max-width:800px){.tt-secondary-filters{display:block;grid-column:1/-1}.tt-secondary-filters>summary{display:list-item;cursor:pointer;padding:5px}.tt-secondary-filters[open]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tt-secondary-filters[open]>summary{grid-column:1/-1}#tiktokWorkspace[data-tiktok-view="orders"] .tiktok-filters>.tiktok-actions{grid-column:1/-1}}
.tt-secondary-filters{display:block;grid-column:span 3}.tt-secondary-filters[open]::details-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:800px){.tt-secondary-filters,.tt-secondary-filters[open]{display:block;grid-column:1/-1}.tt-secondary-filters[open]::details-content{grid-template-columns:1fr 1fr}}
/* Match the shared Inter typography without synthetic weights or faded small text. */
#tiktokWorkspace[data-tiktok-view=orders]{font-family:Inter,'Segoe UI',Arial,sans-serif;font-synthesis:none}#tiktokWorkspace[data-tiktok-view=orders] .orders-table small{color:#52647a}#tiktokWorkspace[data-tiktok-view=orders] .tiktok-filters{grid-template-columns:minmax(240px,2fr) repeat(3,minmax(145px,1fr)) auto}
#tiktokWorkspace[data-tiktok-view=orders] input,#tiktokWorkspace[data-tiktok-view=orders] select{min-height:40px}#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states .btn{min-height:38px}
.tt-daily-panel{background:#fff;border:1px solid #dce5f1;border-radius:16px;overflow:hidden;margin-top:16px}.tt-daily-panel>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #e8eef7}.tt-daily-panel h2{font-size:18px;margin:0}.tt-daily-panel header>div{display:flex;gap:8px}.tt-daily-panel>p,.tt-daily-panel>small{display:block;margin:16px;color:#52647a}.tt-daily-scroll{overflow:auto;padding:20px 16px}.tt-daily-bars{display:grid;grid-template-columns:repeat(var(--days),minmax(35px,1fr));gap:12px;min-width:calc(var(--days)*48px)}.tt-daily-column{text-align:center;color:#14355a}.tt-daily-column strong{display:block;font-size:14px;margin-bottom:8px}.tt-daily-track{height:300px;border:1px solid #d9e5f5;border-radius:12px 12px 0 0;background:repeating-linear-gradient(to top,#fff 0,#fff 74px,#e8eff9 75px);display:flex;align-items:flex-end;padding:0 12%}.tt-daily-track>span{display:block;width:100%;border-radius:12px 12px 0 0;background:linear-gradient(#afceff,#2475ff)}.tt-daily-column time{display:block;font-size:13px;margin-top:10px}
#tiktokWorkspace[data-tiktok-view=dashboard] .tt-orders-heading{display:flex;align-items:center;justify-content:space-between}#tiktokWorkspace[data-tiktok-view=dashboard] .tt-orders-heading h1{font-size:24px}#tiktokWorkspace[data-tiktok-view=dashboard] .tiktok-kpis{font-family:inherit}
@media(max-width:1000px){#tiktokWorkspace[data-tiktok-view=orders] .tiktok-filters{grid-template-columns:1fr auto}#tiktokWorkspace[data-tiktok-view=orders] .tt-secondary-filters{grid-column:1/-1}#tiktokWorkspace[data-tiktok-view=orders] .tiktok-filters>.tiktok-actions{grid-column:auto}.tt-daily-panel>header{align-items:flex-start;flex-direction:column}.tt-daily-track{height:260px}}
/* Shared Market typography: no per-element enlargement or synthetic heavy weights. */
#tiktokWorkspace,#tiktokModal,#tiktokCashModal{font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px;font-synthesis:none;color:#182f4c;line-height:1.45}
#tiktokWorkspace .tt-orders-heading h1,#tiktokWorkspace[data-tiktok-view=orders] .tt-orders-heading h1,#tiktokWorkspace[data-tiktok-view=dashboard] .tt-orders-heading h1{font-size:24px;font-weight:700;letter-spacing:-.5px}
#tiktokWorkspace .panelhead h2,#tiktokWorkspace .tt-daily-panel h2,#tiktokWorkspace .tt-cash-overview h2{font-size:17px;font-weight:700}
#tiktokWorkspace .btn,#tiktokCashModal .btn{font-family:inherit;font-size:13px;font-weight:600}
#tiktokWorkspace .field>span,#tiktokCashModal .field>span{font-size:13px;font-weight:600}#tiktokWorkspace .field input,#tiktokWorkspace .field select,#tiktokCashModal input,#tiktokCashModal select{font-family:inherit;font-size:14px;font-weight:400}
#tiktokWorkspace .orders-table td{font-size:14px}#tiktokWorkspace .orders-table th{font-size:11px;font-weight:600}#tiktokWorkspace .orders-table td b,#tiktokWorkspace .orders-table td strong{font-weight:600}#tiktokWorkspace .orders-table td small{font-size:12px;color:#62758d}
#tiktokWorkspace .tiktok-kpis .dash-v3-kpi-copy strong{font-size:26px;line-height:1.1;letter-spacing:-.8px;font-weight:700}#tiktokWorkspace .tiktok-kpis .dash-v3-kpi-copy span{font-size:13px;font-weight:600}#tiktokWorkspace .tiktok-kpis .dash-v3-kpi-copy small{font-size:12px;font-weight:400}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states{gap:7px;margin:8px 0 12px}#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states .btn{display:flex;align-items:center;gap:9px;background:white;color:#4c627c;border:1px solid #dce4ef;border-radius:10px;padding:8px 11px;min-height:38px;font-size:13px;font-weight:500;box-shadow:0 1px 2px #122d4a05}
#tiktokWorkspace .tt-order-states [data-state=CONFIRMED]{--state:#2368bd}#tiktokWorkspace .tt-order-states [data-state=PREPARING]{--state:#5b5db5}#tiktokWorkspace .tt-order-states [data-state=READY]{--state:#138780}#tiktokWorkspace .tt-order-states [data-state=STORED]{--state:#a6751c}#tiktokWorkspace .tt-order-states [data-state=SHIPPED]{--state:#8053b1}#tiktokWorkspace .tt-order-states [data-state=DELIVERED]{--state:#218553}#tiktokWorkspace .tt-order-states [data-state=EXPIRED]{--state:#8a7045}#tiktokWorkspace .tt-order-states [data-state=CANCELLED]{--state:#a85660}#tiktokWorkspace .tt-order-states [data-state=RETURNED]{--state:#826b82}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states .btn[aria-pressed=true]{background:color-mix(in srgb,var(--state) 8%,white);border-color:var(--state);color:var(--state);box-shadow:inset 0 -2px var(--state)}#tiktokWorkspace .tt-order-states b{font-size:11px;font-weight:600;margin:0;background:#edf1f6;padding:1px 7px;border-radius:20px;min-width:23px}#tiktokWorkspace .tt-order-states [aria-pressed=true] b{background:var(--state);color:white}#tiktokWorkspace .tt-order-states button:focus-visible{outline:3px solid #bdd7ff;outline-offset:2px}
.tt-dashboard-columns{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(270px,1fr);gap:18px}.tt-dashboard-columns .tt-daily-panel{min-width:0}.tt-cash-overview{border:1px solid #dce5f1;border-radius:16px;background:#fff;margin-top:16px;padding:16px}.tt-cash-overview header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e9eef6;padding-bottom:14px;margin-bottom:18px}.tt-cash-overview h2{margin:0}.tt-cash-overview>strong{font-size:26px;display:block;margin:10px 0 0}.tt-cash-overview p,.tt-cash-overview small{color:#62758d}.tt-cash-status{background:#e5f7ee;color:#087953;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:600}.tt-cash-overview dl>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e9eef6;padding:12px 0}.tt-cash-overview dd{font-weight:600;margin:0}
.tt-chart-body{display:flex;gap:10px;padding:12px 16px 0}.tt-chart-axis{display:flex;flex-direction:column;justify-content:space-between;height:300px;margin-top:28px;font-size:11px;color:#718198;min-width:38px}.tt-chart-body .tt-daily-scroll{padding:0;flex:1;min-width:0}.tt-daily-track{height:300px}.tt-chart-legend{display:flex;gap:16px;padding:12px 16px 0;color:#3273cd;font-size:12px}.tt-chart-legend span+span{color:#83a8e6}.tt-daily-panel>small{padding:12px;background:#f2f6fc;border-radius:10px;font-size:12px}.tt-daily-column strong{font-size:12px}.tt-daily-column time{font-size:11px}.tt-daily-panel>p{font-size:13px}
.tt-cash-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #dce5f1;border-radius:12px;padding:12px;margin-bottom:16px}.tt-cash-filters .field{flex:1;min-width:140px}.tt-cash-help{color:#62758d}.tt-cash-methods{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.tt-cash-methods span{background:#edf4fd;border-radius:8px;padding:8px 12px}.tt-cash-methods b{margin-left:12px}.tt-cash-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px}.tt-cash-columns .panel{min-width:0}.tt-cash-kind{font-size:11px;padding:3px 7px;border-radius:6px;background:#e5f7ee;color:#117747}.tt-cash-kind[data-kind=REFUND]{background:#fff0f1;color:#b34758}.tt-customer-modal{width:min(1000px,95vw)}.tt-customer-payment{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid #e6edf5}.tt-customer-payment small{display:block;color:#62758d}.tt-refund-form{background:#fff7f5;border:1px solid #f2d8d3;border-radius:10px;padding:16px;margin:12px 0;display:grid;gap:10px}.tt-customer-modal .tt-order-section{margin:12px 0}.tt-cash-columns small{overflow-wrap:anywhere}
@media(max-width:1000px){.tt-dashboard-columns,.tt-cash-columns{grid-template-columns:1fr}.tt-chart-axis,.tt-daily-track{height:260px}.tt-cash-overview{margin-top:0}.tt-daily-panel>header .btn{font-size:12px}}
#tiktokWorkspace[data-tiktok-view=cash] .tt-orders-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.tt-daily-bars{min-width:calc(var(--days)*var(--day-width,48px))}.tt-daily-column strong{white-space:nowrap}.tt-cash-filters input,.tt-cash-filters select{min-height:38px}
.tt-customer-link{border:0;background:transparent;color:#235f9e;font:inherit;font-weight:600;padding:0;text-align:left}.tt-customer-link:hover{text-decoration:underline}.tt-customer-link:focus-visible{outline:2px solid #76a9f2;outline-offset:3px}
#tiktokWorkspace .orders-hero h2{font-size:28px;line-height:1.15;letter-spacing:-.8px;font-weight:700}#tiktokWorkspace .orders-hero p{font-size:14px;line-height:1.5;font-weight:400}
/* Caja sections and customer history use the same compact Market hierarchy. */
.tt-cash-tabs{display:flex;gap:8px;border-bottom:1px solid #dce5ef;margin:18px 0 12px;padding-bottom:8px}.tt-cash-tabs .btn{display:flex;align-items:center;gap:9px;border:1px solid transparent;background:transparent;color:#536981;border-radius:9px;padding:9px 14px}.tt-cash-tabs [aria-pressed=true]{background:#edf4ff;color:#1a5eb3;border-color:#c5d9f4}.tt-cash-tabs span{background:#dce9fa;border-radius:20px;padding:1px 7px;font-size:11px}.tt-cash-tab-content>.panel{width:100%}.tt-cash-search{display:flex;align-items:end;gap:10px;margin-bottom:14px}.tt-cash-search .field{flex:1;max-width:520px}.tt-cash-search input{min-height:40px}.tt-cash-tabs .btn:focus-visible{outline:3px solid #a9caf6;outline-offset:2px}
#tiktokCashModal .tt-customer-modal{width:min(1080px,96vw);display:flex;flex-direction:column;background:#f7f9fc;max-height:94dvh}#tiktokCashModal .tiktok-modal-body{padding:16px;min-height:0;overflow:auto}#tiktokCashModal .modalhead{flex-shrink:0}#tiktokCashModal .tt-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}#tiktokCashModal .tt-history-toolbar label{display:flex;align-items:center;gap:8px;font-weight:500}#tiktokCashModal .tt-history-toolbar span{font-size:12px;color:#6a7e95}
.tt-history-identity{display:flex;align-items:center;gap:14px;background:linear-gradient(110deg,#edf5ff,#f4fbfa);border:1px solid #d6e5f3;border-radius:12px;padding:16px}.tt-history-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#d4e7fc;color:#245b99;font-size:23px;font-weight:600;flex-shrink:0}#tiktokCashModal .tt-history-identity h3{margin:0 0 5px;font-size:21px;color:#173b63}.tt-history-identity p{margin:0;color:#62748b;font-size:13px}.tt-history-identity p>span{margin-left:18px}.tt-history-identity b{font-weight:500;color:#294967}.tt-history-scope{font-size:12px;color:#6c7f95;margin:10px 0}.tt-history-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:18px}.tt-history-summary>div{background:#eaf2ff;border:1px solid #d6e4f8;border-radius:10px;padding:12px}.tt-history-summary [data-tone=green]{background:#e9f7ef;border-color:#c8e7d6}.tt-history-summary [data-tone=amber]{background:#fff6e5;border-color:#f0dfb7}.tt-history-summary [data-tone=slate]{background:#eef2f7;border-color:#dce3ec}.tt-history-summary span{font-size:12px;color:#5a6f86;display:block}.tt-history-summary strong{display:block;font-size:19px;font-weight:650;margin-top:4px;color:#183b61}
.tt-customer-order{--history-state:#3569a3;background:#fff;border:1px solid #d9e4ef;border-radius:12px;margin:14px 0;overflow:hidden;box-shadow:0 2px 6px #16355505}.tt-customer-order[data-state=PREPARING]{--history-state:#6460aa}.tt-customer-order[data-state=READY]{--history-state:#128077}.tt-customer-order[data-state=STORED]{--history-state:#a67c24}.tt-customer-order[data-state=SHIPPED]{--history-state:#825ab3}.tt-customer-order[data-state=DELIVERED]{--history-state:#25865c}.tt-customer-order[data-state=CANCELLED],.tt-customer-order[data-state=EXPIRED],.tt-customer-order[data-state=RETURNED]{--history-state:#9b6570}.tt-history-order-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#f9fbfe;border-top:3px solid var(--history-state);border-bottom:1px solid #e6edf6}#tiktokCashModal .tt-history-order-head h3{font-size:17px;margin:0 0 4px;color:#234468}.tt-history-order-head small{font-size:12px;color:#6a7d94}.tt-history-state{background:color-mix(in srgb,var(--history-state) 11%,white);color:var(--history-state);padding:5px 10px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}.tt-history-order-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:12px 16px;background:#fff;gap:12px;border-bottom:1px solid #edf1f6}.tt-history-order-totals span{display:block;font-size:12px;color:#718197}.tt-history-order-totals strong{display:block;margin-top:3px;font-size:16px;font-weight:600;color:#254768}.tt-history-order-totals>div:nth-child(2) strong{color:#177a53}.tt-history-order-totals>div:nth-child(3) strong{color:#a36e24}
.tt-history-section{padding:12px 16px;border-bottom:1px solid #edf1f6}#tiktokCashModal .tt-history-section h4{font-size:13px;font-weight:650;color:#526b85;margin:0 0 10px}.tt-history-products{width:100%;border-collapse:collapse;font-size:13px}.tt-history-products th{text-align:left;font-size:11px;color:#6c7e94;background:#f1f5fa;font-weight:600;padding:7px 10px}.tt-history-products td{padding:8px 10px;border-bottom:1px solid #edf1f6}.tt-history-products td:last-child,.tt-history-products th:last-child{text-align:right;white-space:nowrap}.tt-history-products td:nth-child(2),.tt-history-products th:nth-child(2){text-align:center}.tt-history-products strong{font-size:13px;font-weight:550;color:#2d4b6d}.tt-history-products small{display:block;font-size:12px;color:#748399;margin-top:2px}.tt-history-group-total{background:#f7faff;font-weight:600}.tt-history-package{font-size:12px;color:#5c6e86;margin:8px 0}.tt-history-payment{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:#f7faff;border:1px solid #e3ebf5;border-radius:9px;padding:12px;margin-bottom:8px}.tt-history-payment>div:first-child{flex:1;min-width:180px}.tt-history-payment strong{font-size:14px;font-weight:600}.tt-history-payment small{display:block;font-size:11px;color:#72839a;margin-top:4px}.tt-history-payment-state{font-size:10px;margin-left:8px;background:#e2f5e9;color:#19764b;padding:3px 6px;border-radius:5px}.tt-history-payment-state[data-status=REVIEW]{background:#fff1d6;color:#956b1d}.tt-history-payment-state[data-status=REFUNDED],.tt-history-payment-state[data-status=REJECTED]{background:#fce9e9;color:#a7545b}.tt-history-payment dl{display:flex;gap:16px;margin:0}.tt-history-payment dt{font-size:10px;color:#718197}.tt-history-payment dd{font-size:13px;font-weight:500;margin:3px 0 0;color:#2d4b6d}
#tiktokCashModal .btn.tt-refund-trigger{background:#fff1d6;border:1px solid #edcf92;color:#8b5d13;font-weight:600}#tiktokCashModal .btn.tt-refund-trigger:hover{background:#ffe7b6}#tiktokCashModal .btn.tt-refund-confirm{background:#bb3d4c;border:1px solid #a62e3e;color:white;font-weight:600}.tt-history-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 16px}.tt-history-details details{border:1px solid #e0e8f3;border-radius:8px;align-self:start}.tt-history-details summary{padding:10px;font-size:12px;font-weight:600;cursor:pointer;color:#345c8d;background:#f1f6fd}.tt-history-details summary span{float:right;background:#e2eafa;border-radius:20px;padding:0 7px;font-size:10px}.tt-history-timeline{list-style:none;margin:0;padding:12px 12px 4px}.tt-history-timeline li{border-left:2px solid #c9d9ef;padding:0 0 10px 12px;margin:0 0 4px;font-size:12px}.tt-history-timeline li[data-kind=REFUND]{border-color:#e7b8bf}.tt-history-timeline li>div{display:flex;justify-content:space-between;gap:8px}.tt-history-timeline b{font-weight:600;color:#48617e}.tt-history-timeline strong{color:#2e8060;font-size:12px}.tt-history-timeline li[data-kind=REFUND] strong{color:#b84c5c}.tt-history-timeline small{display:block;margin-top:4px;color:#7c8b9d;font-size:11px}.tt-history-timeline p{margin:4px 0 0;color:#657a92;overflow-wrap:anywhere}.tt-history-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-top:1px solid #dfe8f2;flex-shrink:0;color:#7a889b;font-size:12px}.tt-history-empty{padding:24px;text-align:center;color:#74849a}.tt-amount-negative{color:#b84c5c}
@media(max-width:700px){.tt-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-history-summary>div:last-child{grid-column:1/-1}.tt-history-identity p>span{display:block;margin:4px 0 0}.tt-history-order-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-history-details{grid-template-columns:1fr}.tt-history-payment dl{width:100%;justify-content:space-between;gap:8px}.tt-history-payment .btn{width:100%}.tt-history-order-head{align-items:flex-start}.tt-cash-tabs .btn{font-size:12px;padding:8px}.tt-cash-search{align-items:stretch;flex-direction:column}.tt-cash-search .field{max-width:none}#tiktokCashModal .tt-history-toolbar{align-items:start;flex-direction:column}.tt-history-order-head h3{white-space:nowrap}}
.tt-history-payment-state[data-partial=true]{background:#fff0d4;color:#92671d}
.tt-history-product{display:flex;align-items:center;gap:12px}.tt-history-product-copy{min-width:120px}.tt-history-product-photo{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border:1px solid #e0e8f2;border-radius:8px;background:#f6f9fd;overflow:hidden}.tt-history-product-photo img{display:block;width:100%;height:100%;object-fit:contain;padding:3px}.tt-history-product-photo img[hidden]{display:none}.tt-history-product-photo [data-history-image-fallback]{font-size:10px;line-height:1.2;color:#7b8ca1;text-align:center;padding:3px}.tt-history-product-photo [hidden]{display:none}
@media(max-width:700px){.tt-history-product{gap:8px}.tt-history-product-photo{flex-basis:44px;width:44px;height:44px}.tt-history-product-copy{min-width:110px}}
/* Orders reference design, scoped to Venta TikTok orders. */
#tiktokWorkspace[data-tiktok-view=orders]{color:#14264c;background:linear-gradient(120deg,#f4faff,#fff);font-size:13px}.tt-reference-hero{position:relative;min-height:150px;display:flex;align-items:center;padding:24px 16px 20px;overflow:hidden;border-radius:14px 14px 0 0;background:radial-gradient(ellipse at 80% 0%,#c8e8ff90,transparent 70%),linear-gradient(110deg,#eef8ff,#e8f4ff 70%,#f5faff)}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-hero h1{position:relative;z-index:1;font-size:42px;letter-spacing:-1.7px;line-height:1.1;color:#101b3c;margin:0 0 7px;font-weight:750}.tt-reference-hero p{position:relative;z-index:1;font-size:16px;color:#3b5c9d;margin:0}.tt-reference-art{position:absolute;right:100px;bottom:0;width:490px;height:150px;object-fit:contain;object-position:right bottom;pointer-events:none}.tt-reference-account{position:absolute;top:13px;right:12px;display:flex;gap:9px;align-items:center;font-size:11px;z-index:2}.tt-reference-account>span{width:32px;height:32px;background:linear-gradient(135deg,#265cb2,#16366b);display:grid;place-items:center;color:white;border-radius:50%;font-size:17px}.tt-reference-account b{font-weight:650}.tt-reference-account small{display:block;font-size:11px;color:#49679e}
.tt-reference-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:0 0 20px}.tt-reference-kpi{--ref-a:#56a9ff;--ref-b:#2476ff;--ref-text:white;display:flex;align-items:center;gap:12px;border-radius:13px;padding:15px;min-height:112px;color:var(--ref-text);background:linear-gradient(135deg,var(--ref-a),var(--ref-b));box-shadow:0 5px 13px #437cdf24;min-width:0}.tt-reference-kpi[data-tone=amber]{--ref-a:#ffe9b9;--ref-b:#ffd16c;--ref-text:#243352}.tt-reference-kpi[data-tone=green]{--ref-a:#69d9b7;--ref-b:#22b67e}.tt-reference-kpi[data-tone=violet]{--ref-a:#ae8cfd;--ref-b:#7750ec}.tt-reference-kpi[data-tone=cyan]{--ref-a:#67d5ff;--ref-b:#19afea}.tt-reference-kpi-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;background:#ffffff35;border-radius:50%;font-size:26px}.tt-reference-kpi[data-tone=amber] .tt-reference-kpi-icon{background:#fff9e9;color:#b97800}.tt-reference-kpi>div{min-width:0;flex:1}.tt-reference-kpi-label{display:block;font-size:13px;font-weight:600;margin-bottom:4px}.tt-reference-kpi-value{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.tt-reference-kpi-value strong{font-size:30px;font-weight:700;letter-spacing:-1px;line-height:1.2}.tt-reference-kpi[data-tone=cyan] strong{font-size:24px}.tt-reference-kpi small{font-size:11px;display:block;margin-top:3px;line-height:1.25}.tt-reference-delta{display:inline-block;padding:3px 6px;border-radius:20px;background:#e1ffed;color:#12814d;font-size:10px;font-weight:600;white-space:nowrap}.tt-reference-delta.is-down{background:#fff0e9;color:#bc5e32}.tt-reference-delta.is-muted{background:#ffffff45;color:inherit;font-size:9px;font-weight:400}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states{gap:7px;margin:0 0 18px}#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states .btn{padding:9px 12px;border-radius:10px;background:#fff;border:1px solid #dce9fb;color:#294c87;min-height:38px;font-size:12px;box-shadow:0 2px 6px #3b78d107}#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states .btn[aria-pressed=true]{background:linear-gradient(125deg,#2587ff,#0968fa);color:#fff;border-color:#2078fd;box-shadow:0 4px 10px #247aff25}#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states b{background:#edf4ff;color:#2862ab}#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [aria-pressed=true] b{background:white;color:#126cf0}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card{padding:11px 18px 16px;border-radius:14px;border-color:#dceafb;background:#fff;box-shadow:0 5px 17px #4183d909;margin-bottom:16px}.tt-reference-filter-toolbar{display:flex;justify-content:flex-end;margin-bottom:0}.tt-reference-filter-toolbar .btn{font-size:11px!important;min-height:30px!important;padding:5px 12px!important;background:#e8f5ff;color:#2275ef;border-color:#d5eafe}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters{background:white;border:0;padding:0;grid-template-columns:minmax(240px,1.7fr) repeat(3,minmax(125px,1fr)) auto;gap:12px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field>span{font-size:13px;color:#172748;font-weight:600}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field input,#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field select{min-height:42px;border-color:#d5e2f4;font-size:13px;font-weight:400}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions{gap:9px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions .btn{min-height:42px;font-size:13px;padding:10px 15px;white-space:nowrap}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table-card{padding:3px 4px 0;border-radius:14px;border-color:#dceafa;box-shadow:0 5px 17px #4183d909}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table-card .tablewrap{max-height:none}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table th{background:linear-gradient(110deg,#edf6fd,#eaf3fc);font-size:10px;font-weight:550;color:#355b9d;padding:14px 16px;white-space:nowrap}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td{padding:12px 16px;border-color:#e7eff9;font-size:12px;color:#365c99}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td:first-child strong{font-size:14px;color:#122b55}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td small{font-size:11px;color:#6482b1;line-height:1.45;margin-top:3px}.tt-reference-table tbody tr:hover{background:#f8fbff}.tt-reference-customer{display:flex;align-items:center;gap:12px}.tt-reference-avatar{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#e3f3ff;color:#0871ff;font-size:16px;font-weight:650}.tt-reference-avatar[data-tone="1"]{background:#eee8ff;color:#6835d4}.tt-reference-avatar[data-tone="2"]{background:#d9f7ef;color:#078f7a}.tt-reference-avatar[data-tone="3"]{background:#fbe8f1;color:#b52e7d}.tt-reference-client-copy{min-width:0}.tt-reference-client-copy>b{display:block;color:#152b52;font-size:13px;font-weight:650}.tt-reference-products{display:flex;align-items:center;gap:9px}.tt-reference-products>small{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tt-reference-thumbnails{display:flex;gap:3px;flex-shrink:0}.tt-reference-thumb{display:grid;place-items:center;width:28px;height:31px;border:1px solid #e2e8f1;border-radius:5px;background:#f5f8fc;overflow:hidden}.tt-reference-thumb img{display:block;width:100%;height:100%;object-fit:contain;padding:1px}.tt-reference-thumb [hidden]{display:none}.tt-reference-thumb [data-history-image-fallback]{color:#8aa3c4;font-size:14px}.tt-reference-more{display:grid;place-items:center;min-width:26px;border-radius:5px;background:#edf3fb;color:#466b9f;font-size:11px}.tt-reference-state,.tt-reference-review{display:flex;align-items:center;gap:6px;width:max-content;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:550;white-space:nowrap;background:#e2f3ff;color:#126ced}.tt-reference-state[data-state=PREPARING]{background:#eee7ff;color:#7649d9}.tt-reference-state[data-state=READY]{background:#ddf7f3;color:#138677}.tt-reference-state[data-state=STORED]{background:#fff1d3;color:#a77a18}.tt-reference-state[data-state=SHIPPED],.tt-reference-state[data-state=DELIVERED]{background:#e0fae9;color:#0b8a50}.tt-reference-state[data-state=CANCELLED],.tt-reference-state[data-state=RETURNED],.tt-reference-state[data-state=EXPIRED]{background:#fcebed;color:#ae5260}.tt-reference-review{background:#fff2d7;color:#b67804;margin-top:5px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-total{color:#122547;font-size:15px;font-weight:650}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-detail{background:linear-gradient(120deg,#2287ff,#0868fa);border-color:#1975fc;white-space:nowrap;font-size:12px;padding:9px 13px;display:flex;align-items:center;gap:8px;box-shadow:0 3px 8px #1d78ff18}.tt-reference-pagination{padding:10px 14px!important;margin:0!important;border-top:1px solid #eaf0f8;font-size:12px;color:#5a79a6}.tt-reference-pagination>span>i{display:inline-block;height:12px;border-left:1px solid #cddbf0;margin:0 10px}.tt-reference-current-page{padding:5px 12px;border:1px solid #247bff;background:#edf5ff;color:#1772f3;border-radius:8px}.tt-reference-pagination .btn{font-size:12px!important;min-height:32px;padding:6px 10px}
@media(max-width:1350px){.tt-reference-kpis{gap:9px}.tt-reference-kpi{padding:12px;gap:9px}.tt-reference-kpi-icon{width:38px;height:38px;flex-basis:38px;font-size:22px}.tt-reference-kpi-label{font-size:12px}.tt-reference-kpi-value strong{font-size:25px}.tt-reference-art{right:60px;width:390px;opacity:.8}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters{grid-template-columns:minmax(200px,1.5fr) repeat(3,minmax(110px,1fr)) auto}.tt-reference-products>small{max-width:180px}}
@media(max-width:1000px){.tt-reference-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.tt-reference-art{right:0;opacity:.4}.tt-reference-hero p{max-width:60%}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters{grid-template-columns:1fr auto}.tt-reference-pagination{gap:12px;flex-wrap:wrap}.tt-reference-account{display:none}}
@media(max-width:700px){.tt-reference-hero{min-height:130px;padding:20px 10px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-hero h1{font-size:32px}.tt-reference-hero p{font-size:13px;max-width:85%}.tt-reference-art{width:260px;right:-110px;opacity:.25}.tt-reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.tt-reference-kpi{min-height:104px}.tt-reference-kpi:last-child{grid-column:1/-1}.tt-reference-kpi-icon{width:35px;height:35px;flex-basis:35px}.tt-reference-kpi-value strong{font-size:25px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card{padding:10px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table{min-width:960px}.tt-reference-filter-toolbar{margin-bottom:8px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters{grid-template-columns:1fr}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions{grid-column:1/-1;justify-content:flex-end}.tt-reference-pagination>span{font-size:11px}.tt-reference-pagination>div{display:flex;align-items:center;gap:5px}}
.tt-reference-icon-field{position:relative}.tt-reference-icon-field>.bi{position:absolute;left:12px;bottom:12px;color:#24436a;font-size:15px;pointer-events:none}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-icon-field input,#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-icon-field select{padding-left:37px}
@media(min-width:1001px){.tt-reference-hero{padding-top:50px;padding-bottom:12px}.tt-reference-filter-toolbar{margin-bottom:-7px}}

/* Fixed viewport heights: tabs and actions remain visible while content scrolls. */
#tiktokModal .apparel-modal.tt-fixed-editor{height:90vh;height:90dvh;max-height:90dvh;overflow:hidden!important}
#tiktokModal .apparel-modal.tt-fixed-attributes{height:90vh;height:90dvh;max-height:90dvh;overflow:hidden!important}
#tiktokModal .tt-fixed-editor>form,#tiktokModal .tt-fixed-attributes>form{flex:1;min-height:0}
#tiktokModal .tt-fixed-editor .apparel-body,#tiktokModal .tt-fixed-attributes .apparel-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#tiktokModal .apparel-modal>form>.apparel-tabs{flex-shrink:0;padding:16px 22px;margin:0;background:#f3f6fb;border-bottom:1px solid #dbe5f2}

@media(min-width:1001px){#tiktokWorkspace[data-tiktok-view=orders] .tt-secondary-filters[open]::details-content{grid-template-columns:repeat(4,minmax(0,1fr))}}
#tiktokWorkspace .tiktok-product-search>.field{min-width:0}

.tt-history-order-disclosure>summary{cursor:pointer;list-style:none}.tt-history-order-disclosure>summary::-webkit-details-marker{display:none}.tt-history-order-disclosure>summary:focus-visible{outline:3px solid #2475ff;outline-offset:-3px}.tt-history-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}.tt-history-order-total{display:flex;flex-direction:column;gap:3px;text-align:right;color:#234468}.tt-history-order-total strong{font-size:16px;white-space:nowrap}.tt-history-order-chevron{display:inline-block;width:10px;height:10px;border-right:2px solid #42648c;border-bottom:2px solid #42648c;transform:rotate(45deg);margin:0 5px 5px;flex-shrink:0}.tt-history-order-disclosure[open]>summary .tt-history-order-chevron{transform:rotate(225deg);margin-bottom:-3px}@media(max-width:600px){.tt-history-order-disclosure>summary{flex-wrap:wrap}.tt-history-order-actions{width:100%;justify-content:space-between}.tt-history-order-total{text-align:left}.tt-history-order-disclosure>summary small{white-space:normal}}
/* Pedidos: agrupación por fecha y acciones del comprador. */
#tiktokWorkspace .tt-reference-table .tt-order-day th{position:static;background:#edf4ff;color:#244b78;font-size:14px;letter-spacing:0;text-transform:none;padding:11px 14px;border-top:1px solid #d5e3f4}
.tt-order-row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:170px}.tt-order-row-actions .btn{font-size:12px;padding:8px 10px}.btn.tt-buyer-link{background:#13864b!important;border:1px solid #0f7741!important;color:#fff!important;display:inline-flex;align-items:center;gap:7px}.btn.tt-buyer-link:hover{background:#0d713e!important}.btn.tt-buyer-link:disabled{opacity:.5;cursor:not-allowed}.tt-link-status{display:inline-block;padding:5px 9px;background:#edf1f6;color:#627187;border-radius:7px;font-size:12px;white-space:nowrap}.tt-link-status.is-sent{background:#e0f6e8;color:#116d3c}
.tt-amend-overlay .tiktok-modal{height:90dvh;max-height:90dvh;display:flex;flex-direction:column}.tt-amend-overlay .tiktok-modal-body{flex:1;overflow:auto;min-height:0}.tt-amend-overlay .modalhead,.tt-amend-overlay .modalfooter{flex-shrink:0}.tt-amend-products{display:grid;gap:10px;margin:14px 0}.tt-amend-product{display:grid;grid-template-columns:60px 1fr 110px;gap:12px;align-items:center;padding:12px;background:white;border:1px solid #d8e4f3;border-radius:12px}.tt-amend-product small{display:block;color:#62748b;margin:5px 0}.tt-amend-product input,.tt-amend-product select{width:100%;min-width:0}.tt-amend-product img{width:55px;height:65px;object-fit:contain}.tt-amend-overlay .tiktok-form-section{width:100%}
@media(min-width:1200px){#tiktokWorkspace[data-tiktok-view=orders] .tt-secondary-filters[open]::details-content{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:600px){.tt-amend-product{grid-template-columns:45px minmax(0,1fr)}.tt-amend-product>.field{grid-column:2}.tt-amend-product img{width:40px}.tt-amend-overlay .tiktok-modal{width:calc(100vw - 24px)}}
/* Additive TikTok workflow surfaces; shared navigation and other company types are unchanged. */
.tt-tracking-shared .tt-history-timeline{max-height:none}.tt-storage-deadline.is-overdue,.tt-state[data-state=FORGOTTEN]{color:#a52e40;background:#fff0f1;border:1px solid #f0c4cd;padding:5px;border-radius:6px}.tt-buyer-action .checkout-form{max-height:90dvh;overflow:auto}.tt-buyer-action label{display:flex;flex-direction:column;gap:6px}.tt-buyer-action input[type=checkbox]{width:auto}.tt-tracking-shared .tiktok-actions{flex-wrap:wrap;gap:8px}.tt-tracking-shared [data-buyer-action]{padding:10px 14px;border-radius:9px;background:#1769e8;color:white;border:1px solid #1769e8;cursor:pointer}.tt-tracking-shared section{margin:12px 0}[data-one-time-pin]{display:block;font-size:30px;letter-spacing:8px;padding:20px;background:#e8f4ff;color:#174b7a;border-radius:12px;text-align:center}#tiktokModal [data-policy-pane]{min-width:0}#tiktokModal [data-policy-pane] textarea{width:100%;min-height:90px}.tt-tracking-shared input[type=checkbox]{width:auto}

/* TikTok workflow dialogs keep header/footer visible at a fixed viewport height. */
.tt-workflow-modal .tiktok-modal{height:90vh;height:90dvh;max-height:90dvh}.tt-workflow-modal .formgrid{display:block}.tt-workflow-modal .formgrid>section{margin-top:16px}.tt-workflow-modal .field{margin:12px 0}.tt-workflow-modal .attribute-row{flex-wrap:wrap;gap:12px}.tt-workflow-modal .attribute-row span{overflow-wrap:anywhere}.tt-workflow-modal nav{display:flex;flex-wrap:wrap;gap:8px}

.tt-storage-deadline.is-warning{color:#946000;background:#fff2d2;border-radius:6px;padding:4px}

.tt-reference-state[data-state=FORGOTTEN]{background:#fce8ef;color:#9f2252}.tt-workflow-modal .selected{background:#d9f76b;color:#183400;border-color:#a4cc2d}

/* Orders: shared colors identify the main flow and storage workflow. */
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states{display:flex;flex-wrap:nowrap;gap:5px;max-width:100%;overflow-x:auto;padding:3px 1px 8px;scrollbar-width:thin}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]{--tab-ink:#1856a0;--tab-bg:#e8f2ff;--tab-border:#bfd8fb;flex:0 0 auto;white-space:nowrap;gap:5px;padding:8px 9px;background:var(--tab-bg);color:var(--tab-ink);border-color:var(--tab-border);box-shadow:none}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=storage]{--tab-ink:#805409;--tab-bg:#fff3d6;--tab-border:#eed294}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=consolidations]{--tab-ink:#6840a2;--tab-bg:#f0e8fc;--tab-border:#d8c5ef}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=expired]{--tab-ink:#9a460b;--tab-bg:#fff0e2;--tab-border:#f0c7a4}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=forgotten]{--tab-ink:#9a285b;--tab-bg:#fce8f1;--tab-border:#edbed3}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=cancelled]{--tab-ink:#a12c35;--tab-bg:#fce9eb;--tab-border:#efbfc3}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=returned]{--tab-ink:#4e5c70;--tab-bg:#edf0f4;--tab-border:#cbd3df}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=tracking]{--tab-ink:#096e73;--tab-bg:#e0f5f4;--tab-border:#acdcd9}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true]{background:color-mix(in srgb,var(--tab-bg) 80%,var(--tab-ink));color:var(--tab-ink);border-color:var(--tab-ink);box-shadow:inset 0 -3px var(--tab-ink);font-weight:700}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group] b{background:#ffffffa8;color:var(--tab-ink)}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]:hover{border-color:var(--tab-ink)}

/* Compact header actions and raised active tabs, matching the order reference. */
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading{position:relative;z-index:1;width:calc(100% - 620px);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading h1{margin:0}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading p{grid-column:1/-1;max-width:none}
.tt-reference-heading-actions .btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states{align-items:center;gap:4px;padding:7px 2px 12px}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]{min-height:42px;padding:6px;gap:3px;font-size:10.5px}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>.bi{font-size:16px;line-height:1;flex-shrink:0}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true]{min-height:50px;padding:9px;background:#fff;color:var(--tab-ink);border-color:var(--tab-ink);box-shadow:0 4px 10px color-mix(in srgb,var(--tab-ink) 20%,transparent);font-weight:700}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true] b{background:var(--tab-ink);color:#fff;min-width:25px;min-height:25px;display:grid;place-items:center;border-radius:50%;font-size:12px}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-state=CONFIRMED][aria-pressed=true]>.bi{color:#079b6a;font-size:20px}
#tiktokWorkspace .tt-reference-table .tt-day-columns th{position:static;border-bottom:1px solid #d5e3f4}
#tiktokWorkspace .tt-order-day-group+.tt-order-day-group .tt-order-day th{border-top-width:2px}
@media(max-width:1200px){#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading{width:calc(100% - 480px)}}
@media(max-width:1000px){#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading{width:100%}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading p{max-width:85%}.tt-reference-heading-actions .btn{font-size:12px;padding:8px}}
@media(max-width:400px){#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading{gap:8px}.tt-reference-heading-actions .btn{font-size:11px;gap:5px}}

@media(max-width:1000px){#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-art{display:none}}

#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]:not([aria-pressed=true]) b{min-width:18px;padding:1px 5px}

/* Orders reference: KPI rail, workflow rail and working area. Other modules keep their layout. */
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-results-title{margin:10px 10px 12px;padding:15px 16px;border-radius:8px;background:linear-gradient(110deg,#eef7ff,#e7f2ff);font-size:21px;line-height:1.3;color:#111d43}
@media(min-width:1101px){
 #tiktokWorkspace[data-tiktok-view=orders]{display:grid;grid-template-columns:clamp(180px,14.2vw,240px) clamp(178px,12.2vw,208px) minmax(0,1fr);grid-template-rows:150px auto 1fr;column-gap:14px;row-gap:12px;align-items:start;padding:16px;min-width:0}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-hero{grid-column:3;grid-row:1;min-width:0;height:150px;min-height:150px;padding:24px 18px;border-radius:14px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading{position:static;display:block;width:100%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading h1{font-size:40px;margin:0 0 8px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading p{max-width:58%;font-size:16px;line-height:1.4}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading-actions{position:absolute;right:16px;bottom:10px;z-index:3}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading-actions .btn{font-size:12px;padding:9px 12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-art{display:block;right:175px;width:430px;height:150px;opacity:.9}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-account{display:flex;top:10px;right:16px}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-kpis{grid-column:1;grid-row:1/4;display:grid;grid-template-columns:1fr;gap:18px;margin:16px 0 0;align-self:start}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi{min-height:122px;padding:18px 15px;gap:12px;border-radius:14px;align-items:center;box-shadow:0 5px 13px #1c68b71a}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-icon{width:54px;height:62px;flex:0 0 54px;font-size:31px;border-radius:20px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-label{font-size:13px;margin-bottom:5px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-value strong{font-size:32px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi[data-tone=cyan] strong{font-size:27px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi small{font-size:12px;line-height:1.35}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-order-states{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;align-items:stretch;gap:7px;overflow:visible;margin:0;padding:18px 9px;border:1px solid #e5f0fd;border-radius:14px;background:linear-gradient(100deg,#f6faff,#fff);box-shadow:0 5px 20px #3c85d208;min-width:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]{width:100%;min-height:49px;padding:10px 9px;gap:8px;font-size:11px;white-space:normal;text-align:left;justify-content:flex-start;border-radius:10px;position:relative}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=primary]{min-height:65px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>.bi{width:31px;min-width:31px;height:32px;display:grid;place-items:center;background:#ffffffa8;border-radius:9px;font-size:23px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>span{flex:1;min-width:0;line-height:1.25}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>b{margin-left:auto;flex-shrink:0;min-width:23px;min-height:25px;display:grid;place-items:center;border-radius:8px;font-size:12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true]{min-height:75px;padding:10px 9px;background:#fff;box-shadow:0 4px 12px #146dea1b}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [aria-pressed=true]::before{content:'';position:absolute;left:-1px;top:8px;bottom:8px;width:4px;background:var(--tab-ink);border-radius:3px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-order-tool=requests]{margin-top:16px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-order-tool=requests]::after{content:'';position:absolute;top:-13px;left:-9px;right:-9px;border-top:1px dashed #dce9f8}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-filter-card{grid-column:3;grid-row:2;position:relative;min-width:0;margin:0;padding:24px 22px 34px;background:#fff;border-radius:14px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters{display:grid;grid-template-columns:minmax(0,1.7fr) repeat(3,minmax(0,1fr));grid-template-areas:'term source category type' 'dates dates actions actions';gap:40px 12px;align-items:end}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-secondary-filters[open],#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-secondary-filters[open]::details-content{display:contents}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-secondary-filters>summary{display:none}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field{min-width:0;grid-column:auto}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=term]){grid-area:term}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=source]){grid-area:source}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=category]){grid-area:category}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=productType]){grid-area:type}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=from]){grid-area:from;max-width:230px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=to]){grid-area:to;max-width:230px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions{grid-area:actions;grid-column:auto;justify-content:flex-end;align-self:end}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field>span{font-size:13px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field input,#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field select{min-height:46px;width:100%;font-size:12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions .btn{padding:10px 14px;min-height:44px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-toolbar{position:absolute;bottom:83px;right:22px;margin:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-toolbar .btn{min-height:35px!important;padding:7px 12px!important;font-size:12px!important}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-table-card{grid-column:3;grid-row:3;min-width:0;width:100%;padding:4px 4px 0;margin:0;background:#fff;align-self:start}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table th{white-space:normal;padding:13px 12px;font-size:10px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td{padding:16px 12px;border-right:1px solid #edf3fb}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-products>small{max-width:150px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:220px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-customer{gap:8px}
 #tiktokWorkspace[data-tiktok-view=orders]>[data-workflow-tool]{grid-column:3;grid-row:2/4;min-width:0}
 #tiktokWorkspace[data-tiktok-view=orders]>.apparel-note,#tiktokWorkspace[data-tiktok-view=orders]>[data-live-error]{grid-column:3;min-width:0}
}
@media(min-width:1101px) and (max-width:1350px){#tiktokWorkspace[data-tiktok-view=orders]{grid-template-columns:180px 178px minmax(0,1fr);column-gap:10px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi{padding:14px 10px;gap:8px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-icon{width:40px;height:48px;flex-basis:40px;font-size:24px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-value strong{font-size:27px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-label{font-size:12px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi small{font-size:11px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-art{width:320px;right:150px;opacity:.5}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading p{max-width:65%;font-size:14px}}
@media(max-width:1100px){#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-results-title{font-size:18px;padding:12px}}

#tiktokWorkspace[data-tiktok-view=orders] .tt-order-date-fields{display:contents}
@media(min-width:1101px){
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-order-date-fields{grid-area:dates;display:flex;gap:14px;min-width:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-order-date-fields>.field{flex:1;grid-area:auto;width:100%;max-width:230px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters>.tiktok-actions{grid-area:actions;grid-column:3/5;grid-row:2;justify-content:flex-end;width:100%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table{table-layout:fixed;width:100%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(1){width:9%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(2){width:23%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(3),#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(4),#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(5){width:10%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(6){width:11%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(7){width:27%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-day th{font-size:14px;padding:12px 14px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td{overflow-wrap:anywhere}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions{min-width:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-products>small{max-width:140px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-icon{background:linear-gradient(135deg,#ffffff70,#ffffff25)}
}

@media(min-width:1101px){#tiktokWorkspace[data-tiktok-view=orders]:not(:has(>.tt-reference-hero)){display:block}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi[data-tone=amber] .tt-reference-kpi-icon{background:linear-gradient(135deg,#ffcc53,#ed9600);color:white}}
@media(min-width:1101px){
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td{white-space:normal;font-size:14px;padding:20px 12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td small{white-space:normal;font-size:12px;line-height:1.45}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-client-copy>b{font-size:14px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td:first-child strong{font-size:17px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-total{font-size:17px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions .btn{font-size:13px;padding:9px 12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-label{font-size:14px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-value strong{font-size:34px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi[data-tone=cyan] strong{font-size:30px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]{font-size:12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true]{font-size:13px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=primary]{--tab-ink:#075bc8;--tab-bg:#edf6ff}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=primary][aria-pressed=true] b{background:#086aff}
}
@media(min-width:1101px) and (max-width:1350px){#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-label{font-size:12px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-value strong{font-size:27px}#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi[data-tone=cyan] strong{font-size:24px}}

@media(min-width:1101px){
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-results-title{font-size:24px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=expired]{--tab-ink:#dc1732;--tab-bg:#fff0f2;--tab-border:#f8d0d7}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=forgotten]{--tab-ink:#e2253d;--tab-bg:#fdebef;--tab-border:#f8cbd3}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=cancelled]{--tab-ink:#e01932;--tab-bg:#ffecef;--tab-border:#f6c4cd}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=tracking]{--tab-ink:#087e64;--tab-bg:#e2f7f0;--tab-border:#ade8d9}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-state=CONFIRMED][aria-pressed=true]>.bi{color:#78be00}
}

/* Compact Orders only: narrower rails, 20% less horizontal outer space and one-line filters. */
@media(min-width:1101px){
 .content:has(>#tiktokWorkspace[data-tiktok-view=orders]){width:100%;max-width:calc(1280px + 20%);padding-left:23.2px;padding-right:23.2px}
 #tiktokWorkspace[data-tiktok-view=orders]{grid-template-columns:clamp(162px,12.78vw,216px) clamp(151.3px,10.37vw,176.8px) minmax(0,1fr);padding-left:12.8px;padding-right:12.8px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states{padding-left:7px;padding-right:7px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group],#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true]{padding-left:8px;padding-right:8px;gap:5px;font-size:11.5px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>.bi{width:26px;min-width:26px;font-size:21px}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-filter-card{padding:16px 12px;margin:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:7px;overflow-x:auto;padding:0 0 3px;scrollbar-width:thin}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-order-date-fields{display:contents}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field{flex:0 0 auto;width:var(--tt-filter-width,150px);max-width:none;grid-area:auto}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field:has([name=term]){flex:1 1 180px;width:auto;min-width:150px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-order-date-fields>.field{flex:0 0 126px;max-width:126px;width:126px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field>span{font-size:12px;white-space:nowrap}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field input,#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .field select{min-height:39px;height:39px;font-size:12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-order-date-fields>.field>.bi{display:none}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tt-order-date-fields input{padding-left:8px;padding-right:6px;min-width:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-filters>.tiktok-actions{flex:0 0 auto;display:flex;gap:5px;align-self:flex-end;width:auto;grid-area:auto;grid-column:auto;grid-row:auto}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions .btn{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:39px;min-height:39px;padding:7px;font-size:0;gap:0}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-filter-card .tiktok-actions .btn>.bi{font-size:16px;line-height:1}
}
@media(min-width:1101px) and (max-width:1350px){#tiktokWorkspace[data-tiktok-view=orders]{grid-template-columns:162px 151.3px minmax(0,1fr)}}

/* More room for orders, keeping the original rails, artwork, filters and text actions. */
@media(min-width:1101px){
 .content:has(>#tiktokWorkspace[data-tiktok-view=orders]){max-width:calc(1152px + 28%);padding-left:20.88px;padding-right:20.88px}
 #tiktokWorkspace[data-tiktok-view=orders]{grid-template-columns:fit-content(196px) fit-content(156px) minmax(0,1fr);grid-template-rows:120px auto 1fr;column-gap:10px;row-gap:8px;padding-left:11.52px;padding-right:11.52px}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-hero{height:120px;min-height:120px;padding:16px 18px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-art{height:120px;width:344px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading h1{font-size:36px;margin-bottom:6px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-heading p{font-size:14px}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-kpis{gap:12px;margin-top:8px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi{min-height:104px;padding:12px 10px;gap:8px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-icon{width:40px;height:48px;flex-basis:40px;font-size:26px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-label{font-size:13px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi-value strong{font-size:28px;overflow-wrap:anywhere}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi[data-tone=cyan] strong{font-size:25px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-kpi small{font-size:11px}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-order-states{padding:10px 6px;gap:6px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group],#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group][aria-pressed=true]{min-height:44px;padding:7px 6px;font-size:11.5px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group=primary]{min-height:50px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-order-tool=requests]{margin-top:10px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-order-tool=requests]::after{top:-9px}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-filter-card{padding-top:10px;padding-bottom:10px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-results-title{font-size:21px;margin:6px 6px 7px;padding:9px 12px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-day th{padding:7px 10px;font-size:13px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-day-columns th{padding:8px;font-size:10px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table td{padding:8px;font-size:13px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(1){width:10%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(2){width:20%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(3){width:10%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(4){width:11%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(5){width:14%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(6){width:10%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table col:nth-child(7){width:25%}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-reference-products>small{max-width:none;overflow:visible;text-overflow:clip}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-state,#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-review{max-width:100%;white-space:normal;padding:5px 6px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions{gap:5px}
 #tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions .btn{font-size:12px;line-height:1.25;padding:7px 8px;white-space:normal;max-width:100%;min-height:32px}
}

/* Order indicators live in Caja; reclaim their entire rail in Pedidos. */
@media(min-width:1101px){
 #tiktokWorkspace[data-tiktok-view=orders]{grid-template-columns:fit-content(156px) minmax(0,1fr)}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-order-states{grid-column:1}
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-hero,
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-filter-card,
 #tiktokWorkspace[data-tiktok-view=orders]>.tt-reference-table-card,
 #tiktokWorkspace[data-tiktok-view=orders]>[data-workflow-tool],
 #tiktokWorkspace[data-tiktok-view=orders]>.apparel-note,
 #tiktokWorkspace[data-tiktok-view=orders]>[data-live-error]{grid-column:2}
}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview{margin:18px 0;padding:18px;border:1px solid #dce6f4;border-radius:14px;background:#fff;min-width:0}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview h2{margin:0 0 8px;font-size:20px}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview header p{margin:5px 0;font-size:12px;line-height:1.5;color:#52647c}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview summary{cursor:pointer;color:#1856a0;padding:10px 0;font-size:13px;font-weight:600}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin:8px 0}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-filters .field{min-width:0}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-filters input,
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-filters select{width:100%;min-width:0}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-filters .tiktok-actions{grid-column:1/-1}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tt-reference-kpis{margin:12px 0 0;grid-template-columns:repeat(5,minmax(0,1fr))}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tt-reference-kpi-value strong{overflow-wrap:anywhere}
@media(max-width:1100px){#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tt-reference-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tt-reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview{padding:12px}#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tt-reference-kpis{grid-template-columns:1fr}}

/* A sent-link badge must stay inside its own column at every screen width. */
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-link-status{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Keep the order's text actions together; narrow screens scroll the table. */
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table{min-width:960px}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions{display:flex;flex-wrap:nowrap;gap:4px;min-width:max-content}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions .btn{flex:0 0 auto;white-space:nowrap;max-width:none;padding:7px 5px;gap:4px;font-size:12px;line-height:1.25}

/* Larger workflow labels/counters without changing their icons or states. */
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>span{font-size:calc(1em + 2px)}
#tiktokWorkspace[data-tiktok-view=orders] .tt-order-states [data-tab-group]>b{font-size:14px}
@media(min-width:1101px){#tiktokWorkspace[data-tiktok-view=orders]{grid-template-columns:fit-content(176px) minmax(0,1fr)}}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions .btn{flex:1 1 0;justify-content:center}
#tiktokWorkspace[data-tiktok-view=orders] .tt-reference-table .tt-order-row-actions .tt-buyer-link{flex-grow:1.5}

/* Use the same KPI component, typography and pastel glass treatment as Inicio. */
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tiktok-kpis{grid-template-columns:repeat(5,minmax(0,1fr));margin:12px 0 18px}
#tiktokWorkspace[data-tiktok-view=cash] .tt-kpi-value{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#tiktokWorkspace[data-tiktok-view=cash] .tt-kpi-value strong{margin:0}
#tiktokWorkspace[data-tiktok-view=cash] .tt-kpi-value .tt-reference-delta{font-size:10px;font-weight:400}
@media(max-width:1100px){#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tiktok-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tiktok-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview .tiktok-kpis{grid-template-columns:1fr}}

/* Monetary category bars: individual categories for one day, stacked for a range. */
.tt-category-chart .tt-category-track{position:relative;overflow:visible}
.tt-category-chart .tt-category-stack{position:absolute;inset:0 12%;display:flex;flex-direction:column-reverse;justify-content:flex-start}
.tt-category-chart .tt-category-segment{position:relative;flex:0 0 auto;width:100%;min-height:0;padding:0;border:0;border-radius:0;background:var(--category-color);cursor:help}
.tt-category-chart .tt-category-segment:last-child{border-radius:8px 8px 0 0}
.tt-category-chart .tt-category-tooltip{position:absolute;z-index:5;left:50%;bottom:100%;transform:translateX(-50%);width:max-content;max-width:220px;padding:6px 9px;border-radius:6px;background:#152e4b;color:#fff;font-size:12px;line-height:1.4;visibility:hidden;pointer-events:none}
.tt-category-chart .tt-category-segment:hover .tt-category-tooltip,.tt-category-chart .tt-category-segment:focus-visible .tt-category-tooltip{visibility:visible}
.tt-category-chart .tt-category-label{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere;padding-top:6px;color:#214b7b}
.tt-category-chart .tt-chart-legend{display:flex;flex-wrap:wrap;gap:10px 18px}
.tt-category-chart .tt-chart-legend>span{display:inline-flex;align-items:center;gap:6px}
.tt-category-chart .tt-chart-legend i{display:inline-block;width:12px;height:12px;border-radius:2px}
@media(max-width:600px){
 #tiktokWorkspace[data-tiktok-view=cash] .tt-cash-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #tiktokWorkspace[data-tiktok-view=cash] .tt-cash-filters .field{min-width:0}
 #tiktokWorkspace[data-tiktok-view=cash] .tt-cash-filters input,#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-filters select{width:100%;min-width:0}
}
/* Inicio shares the proportions and glass treatment used by the Caja cards. */
#tiktokWorkspace[data-tiktok-view=dashboard] .dash-v3-kpi{min-height:143px}
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview>.tiktok-kpis,
#tiktokWorkspace[data-tiktok-view=cash] .tt-cash-order-overview>div>.tiktok-kpis{margin-top:0}
/* TikTok client directory and complete customer record. */
#tiktokWorkspace[data-tiktok-view=clients] .tiktok-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px}
.tt-clients-filters{display:grid;grid-template-columns:minmax(240px,2fr) repeat(4,minmax(120px,1fr));gap:12px;align-items:end;margin-bottom:18px}
.tt-clients-filters .field{min-width:0}.tt-clients-filters .tiktok-actions{grid-column:1/-1;justify-content:flex-end}
.tt-clients-table .orders-table{width:100%;table-layout:auto}.tt-clients-table td{vertical-align:middle;overflow-wrap:anywhere}.tt-clients-table td:first-child{min-width:180px}
.tt-clients-table td small{display:block;margin-top:5px}.tt-client-actions,.tt-client-contact-bar{display:flex;flex-wrap:wrap;gap:8px}.tt-client-actions .btn{white-space:nowrap}
.tt-clients-modal{width:min(1120px,calc(100vw - 24px));max-height:94dvh;display:flex;flex-direction:column}.tt-clients-modal .tiktok-modal-body{overflow:auto;min-height:0;padding:20px}.tt-clients-modal .modalhead,.tt-clients-modal .modalfooter{flex:none}
.tt-client-contact-bar{margin:16px 0}.tt-client-profile{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#f3f8ff;border:1px solid #d2e1f5;border-radius:12px;padding:16px;margin:16px 0}
.tt-client-profile h3{font-size:16px;margin:0 0 12px}.tt-client-profile dl{margin:0;display:grid;gap:10px}.tt-client-profile dt{font-size:12px;color:#567293}.tt-client-profile dd{margin:3px 0 0;overflow-wrap:anywhere}.tt-client-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.tt-client-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tt-client-edit-grid .field{min-width:0}.tt-client-notes-field{grid-column:1/-1}.tt-client-edit-form textarea{width:100%;padding:10px;border:1px solid #c6d9ef;border-radius:8px;font:inherit;resize:vertical}
.tt-client-shipping{margin:0 0 18px;padding:12px;border:1px solid #d2e1f5;border-radius:10px;background:#f6faff}.tt-client-shipping summary{cursor:pointer;color:#195b9c}.tt-clients-modal [data-client-error]{color:#b02e41}
@media(max-width:1100px){.tt-clients-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-clients-filters>.field:first-child{grid-column:1/-1}#tiktokWorkspace[data-tiktok-view=clients] .tiktok-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .tt-clients-table .orders-table,.tt-clients-table tbody,.tt-clients-table tr,.tt-clients-table td{display:block;width:100%;min-width:0;box-sizing:border-box}
 .tt-clients-table thead{display:none}.tt-clients-table tr{padding:12px;border:1px solid #d2e1f5;border-radius:12px;margin-bottom:12px;background:#fff}
 .tt-clients-table td{border:0;padding:7px 0;display:grid;grid-template-columns:105px minmax(0,1fr);gap:6px}
 .tt-clients-table td:before{content:attr(data-label);font-size:12px;color:#567293}.tt-clients-table td>*{grid-column:2}.tt-clients-table td:before{grid-column:1;grid-row:1/4}
 .tt-clients-table td[colspan]{display:block}.tt-clients-table td[colspan]:before{display:none}
 .tt-client-edit-grid,.tt-client-profile{grid-template-columns:1fr}.tt-client-notes-field{grid-column:auto}.tt-clients-modal .tiktok-modal-body{padding:14px}
 #tiktokWorkspace[data-tiktok-view=dashboard] .dash-v3-kpi{min-height:125px!important}
}
/* Compact image cards only in TikTok inventory. */
#tiktokWorkspace[data-tiktok-view=products] .inv-card-media{height:96px}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-content{padding:8px 12px;gap:4px;flex:1}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-content small{min-height:0;line-height:1.35}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-content b{min-height:0;margin:2px 0}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-content .tiktok-price{font-size:19px;margin:2px 0}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-actions{padding:6px;gap:5px}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-actions .btn{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:4px;min-height:36px;padding:6px 5px;font-size:12px;line-height:1.2;flex:1;min-width:0}
.tt-preparation-overlay{z-index:1100}.tt-preparation-modal{width:min(1200px,calc(100vw - 24px));max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}
.tt-preparation-modal .modalhead,.tt-preparation-modal .modalfooter{flex:none}.tt-preparation-body{padding:16px;overflow:auto;min-height:0;background:#f2f6fb}
.tt-preparation-viewport{width:100%;overflow:hidden;position:relative}.tt-preparation-viewport iframe{display:block;width:794px;border:0;transform-origin:top left;background:#fff}
.tt-preparation-modal .modalfooter{display:flex;gap:10px;justify-content:flex-end}.tt-preparation-modal [data-preview-error]{color:#b02e41}
@media(max-width:600px){.tt-preparation-body{padding:8px}.tt-preparation-modal .modalhead h2{font-size:17px}.tt-preparation-modal .modalfooter .btn{min-height:44px}}
#tiktokWorkspace[data-tiktok-view=products] .inv-card-media img{object-fit:contain}

.tt-preparation-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0;border:1px solid #c6d9ef;border-radius:9px;padding:7px 10px;margin:0;color:#195b9c}
.tt-preparation-options legend{font-size:11px;padding:0 4px}.tt-preparation-options label{display:inline-flex!important;align-items:center;gap:5px;font-size:13px;white-space:nowrap;margin:0}.tt-preparation-options input{margin:0;width:16px;height:16px;accent-color:#1474ff}

/* Compact preparation radios override the modal's general 43px input height. */
#tiktokModal .tt-preparation-options{gap:4px 10px;padding:3px 7px;align-self:center}
#tiktokModal .tt-preparation-options label.field{display:inline-flex!important;flex-direction:row;align-items:center;gap:5px;font-size:13px}
#tiktokModal .tt-preparation-options input[type=radio]{width:20px;height:20px;min-width:20px;min-height:20px;max-height:20px;padding:0;flex:0 0 20px;margin:0}
.tt-restore-modal{width:min(850px,calc(100vw - 24px));max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}.tt-restore-body{padding:20px;overflow:auto;min-height:0}.tt-restore-modal .modalhead,.tt-restore-modal .modalfooter{flex:none}.tt-restore-confirm{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:18px}.tt-restore-confirm .field{flex:1;min-width:200px}.tt-restore-modal [data-restore-summary]{background:#eef5ff;border-radius:10px;padding:12px;margin:12px 0}.tt-restore-modal [data-restore-recovery]{display:flex;flex-wrap:wrap;gap:8px}.tt-restore-modal input{max-width:100%}.tt-restore-modal [data-restore-status]{white-space:pre-wrap;overflow-wrap:anywhere}
.tt-restore-stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.tt-restore-stats>span{display:flex;gap:10px;background:#fff;border:1px solid #d2e1f5;padding:8px 12px;border-radius:8px}
