@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{font-family:"DM Sans",system-ui,sans-serif;color:#132b27;background:#f2f6f3;font-synthesis:none;text-rendering:optimizeLegibility;--green:#006b50;--green-dark:#073b32;--lime:#c5f56c;--line:#dce6e2;--muted:#687c76;--surface:#fff;--shadow:0 12px 36px #103b2a0b}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #75c5a3;outline-offset:2px}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{margin:0 0 8px;color:var(--green);font-size:.72rem;font-weight:800;letter-spacing:.13em}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-lockup>span:last-child{display:grid;gap:2px}.brand-lockup strong{font:800 1.05rem Manrope,sans-serif}.brand-lockup small{color:var(--muted);font-size:.76rem}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--lime);color:var(--green-dark);font:800 1.2rem Manrope,sans-serif}.login-shell{display:grid;place-items:center;min-height:100vh;padding:24px;background:radial-gradient(ellipse at 15% 15%,#e0f5e6,transparent 40%),radial-gradient(ellipse at 90% 90%,#e7f3cf,transparent 40%),#f5f8f5}.login-card{width:min(100%,470px);padding:34px;border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:0 30px 90px #093e2a12}.login-card .brand-lockup{margin-bottom:34px}.login-card h1,.topbar h1{margin:0;font:800 clamp(1.55rem,3vw,2.2rem) Manrope,sans-serif;letter-spacing:-.04em}.login-card>p:not(.eyebrow){line-height:1.6}.login-card label{display:grid;gap:8px;margin-top:19px;font-size:.85rem;font-weight:700}.login-card input,.workspace-picker select,.filter-input,.message-composer textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:inherit}.login-foot{margin:20px 0 0;text-align:center;color:var(--muted);font-size:.75rem}.button{min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:12px;font-weight:700;transition:transform .15s,box-shadow .15s,background .15s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--green);color:white;box-shadow:0 6px 14px #006b5025}.button.soft{border-color:var(--line);background:white;color:var(--green-dark)}.button.danger{border-color:#f4caca;background:#fff5f5;color:#a63131}.button.full{width:100%;margin-top:22px}.button.small{min-height:34px;padding:7px 10px;font-size:.82rem}.error{padding:12px;border-radius:10px;background:#fff0f0;color:#9e2727;font-size:.85rem}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:10;display:flex;width:264px;flex-direction:column;padding:25px 16px 16px;border-right:1px solid var(--line);background:#fff}.sidebar>.brand-lockup{padding:0 10px 25px}.workspace-picker{display:grid;gap:8px;padding:16px 11px;border:1px solid var(--line);border-radius:16px;background:#f8faf9}.workspace-picker label{margin-top:4px;color:var(--muted);font-size:.72rem;font-weight:700}.workspace-picker select{min-height:39px;padding:8px;border-radius:9px;font-size:.84rem}.main-nav{display:grid;gap:5px;margin-top:22px}.main-nav a,.mobile-nav a{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 13px;border-radius:12px;color:#526660;font-weight:700;font-size:.9rem}.main-nav a>span{display:grid;place-items:center;width:24px;color:#6d857d;font-size:1.2rem}.main-nav a.active{background:#e7f7ed;color:var(--green-dark)}.main-nav a.active>span{color:var(--green)}.nav-badge{display:grid;place-items:center;width:20px;height:20px;margin-left:auto;border-radius:50%;background:var(--green);color:#fff;font-size:.68rem;font-style:normal}.sidebar-bottom{display:grid;gap:9px;margin-top:auto}.connection{display:flex;align-items:center;gap:8px;padding:10px 8px;font-size:.76rem}.connection .muted{margin-left:auto;font-size:.68rem}.online-dot{width:9px;height:9px;border-radius:50%;background:#2ba879;box-shadow:0 0 0 4px #def6e8}.logout-button{padding:10px;border:0;background:transparent;color:var(--muted);text-align:left}.main-area{max-width:1600px;margin-left:264px;padding:28px clamp(20px,3.4vw,56px) 80px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.topbar .eyebrow{margin-bottom:3px}.top-actions{display:flex;align-items:center;gap:10px}.user-chip{padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.8rem}.icon-button{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:1.4rem;color:var(--green)}.content{display:grid;gap:20px}.banner{margin-bottom:20px;padding:14px 18px;border:1px solid #c5e9d9;border-radius:14px;background:#edfaf3;color:#176c4f;font-size:.9rem}.banner.error{border-color:#f2d0d0;background:#fff4f4;color:#9e2727}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card,.panel,.order-card,.notice-card,.product-row,.chat-row{border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.stat-card{padding:19px}.stat-card .stat-icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:15px;border-radius:13px;background:#e9f8ef;color:var(--green);font-size:1.25rem}.stat-card strong{display:block;font:800 1.8rem Manrope,sans-serif}.stat-card small{color:var(--muted)}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-head h2,.section-title{margin:0;font:800 1.08rem Manrope,sans-serif}.section-subtitle{margin:5px 0 0;color:var(--muted);font-size:.84rem}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-input{min-height:40px;width:auto;min-width:180px}.segmented{display:flex;gap:6px;padding:4px;border-radius:12px;background:#f2f6f4}.segmented button{min-height:34px;padding:6px 11px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:.8rem;font-weight:700}.segmented button.active{background:#fff;color:var(--green);box-shadow:0 1px 5px #183d2b16}.order-list,.notice-list,.product-list,.chat-list{display:grid;gap:12px}.order-card{padding:17px}.order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-number{margin:0;font:800 1rem Manrope,sans-serif}.order-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:7px;color:var(--muted);font-size:.79rem}.status-pill,.tag{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f1f5f3;color:#40584f;font-size:.72rem;font-weight:800}.status-pill.pending{background:#fff4cf;color:#845908}.status-pill.payment_confirmed{background:#e7f0ff;color:#27549b}.status-pill.preparing{background:#efe9ff;color:#6442a6}.status-pill.ready{background:#ddf6e9;color:#1b754e}.status-pill.completed{background:#dcf6e9;color:#1b754e}.status-pill.rejected{background:#ffeded;color:#a53a3a}.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #edf1ef}.order-total{font:800 1rem Manrope,sans-serif}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.empty-state{padding:38px 18px;border:1px dashed #cfddd6;border-radius:16px;text-align:center;color:var(--muted)}.empty-state strong{display:block;margin-bottom:5px;color:#29433a}.notice-card{display:flex;align-items:flex-start;gap:13px;padding:16px}.notice-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:13px;background:#e9f8ef;color:var(--green);font-size:1.15rem}.notice-body{flex:1}.notice-body strong{display:block}.notice-body p{margin:5px 0;color:#51675f;font-size:.85rem;line-height:1.45}.notice-body small{color:var(--muted)}.notice-card.unread{border-left:4px solid #24a371}.product-row{display:flex;align-items:center;gap:13px;padding:12px}.product-thumb{width:62px;height:62px;flex:0 0 62px;border-radius:13px;background:#f2f5f3;object-fit:cover}.product-info{min-width:0;flex:1}.product-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-info small{display:block;margin-top:4px;color:var(--muted)}.product-price{font-weight:800}.toggle{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 9px;border:1px solid var(--line);border-radius:12px;background:#fff}.toggle input{width:18px;height:18px;accent-color:var(--green)}.detail-dialog{width:min(740px,calc(100% - 24px));max-height:min(90vh,900px);padding:0;border:1px solid var(--line);border-radius:22px;background:#fff;color:inherit;box-shadow:0 30px 100px #0d291a50}.detail-dialog::backdrop{background:#0d271f99;backdrop-filter:blur(4px)}.dialog-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:20px;border-bottom:1px solid var(--line);background:#fff}.dialog-head h2{margin:0;font:800 1.2rem Manrope,sans-serif}.dialog-body{display:grid;gap:18px;padding:20px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-cell{padding:13px;border-radius:13px;background:#f6f9f7}.detail-cell small{display:block;margin-bottom:5px;color:var(--muted)}.detail-cell strong{overflow-wrap:anywhere}.line-items{display:grid;gap:8px}.line-item{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #edf1ef}.courier-box{display:grid;gap:10px;padding:15px;border:1px solid #d9e8df;border-radius:15px;background:#f6faf7}.courier-box pre{max-height:220px;overflow:auto;margin:0;white-space:pre-wrap;font:inherit;font-size:.8rem}.proof-preview{display:block;max-width:100%;max-height:340px;margin:auto;border-radius:12px}.timeline{display:grid;gap:9px}.timeline-item{padding-left:14px;border-left:2px solid #b9dfcb}.timeline-item strong{font-size:.85rem}.timeline-item small{display:block;margin-top:3px;color:var(--muted)}.chat-layout{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.4fr);min-height:520px}.chat-list{align-content:start;padding-right:14px;border-right:1px solid var(--line)}.chat-row{padding:12px;text-align:left}.chat-row.active{border-color:#81c9a9;background:#f3fbf6}.chat-row strong,.chat-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-row small{margin-top:5px;color:var(--muted)}.chat-thread{display:flex;min-height:450px;flex-direction:column;padding-left:16px}.chat-messages{display:flex;flex:1;flex-direction:column;gap:10px;overflow-y:auto;padding:8px 4px}.message{max-width:82%;padding:11px 13px;border-radius:14px;background:#f1f5f3;line-height:1.45;overflow-wrap:anywhere}.message.mine{align-self:flex-end;background:#e2f5e9}.message small{display:block;margin-top:5px;color:var(--muted);font-size:.68rem}.message-composer{display:flex;align-items:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.message-composer textarea{min-height:46px;max-height:130px;resize:vertical}.mobile-nav{display:none}.toast-region{position:fixed;right:18px;bottom:18px;z-index:30;display:grid;gap:9px}.toast{max-width:min(380px,calc(100vw - 36px));padding:13px 17px;border-radius:13px;background:#103f33;color:#fff;box-shadow:0 10px 32px #0a271e44;font-size:.87rem}.toast.bad{background:#9a3030}.skeleton{min-height:110px;border-radius:16px;background:linear-gradient(100deg,#e9efeb 20%,#f6f8f6 40%,#e9efeb 60%);background-size:200% 100%;animation:shine 1.4s infinite}@keyframes shine{to{background-position:-200% 0}}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:228px}.main-area{margin-left:228px}}@media(max-width:760px){.sidebar{display:none}.main-area{margin:0;padding:20px 15px calc(94px + env(safe-area-inset-bottom))}.topbar{align-items:flex-start;margin-bottom:18px}.topbar h1{font-size:1.55rem}.user-chip{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-button{display:block}.mobile-nav{position:fixed;inset:auto 0 0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 5px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(14px)}.mobile-nav a{display:grid;justify-items:center;align-content:center;gap:2px;min-height:54px;padding:3px 0;border-radius:10px;font-size:.64rem}.mobile-nav a span{font-size:1.2rem}.mobile-nav a.active{background:#e7f7ed;color:var(--green)}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-card strong{font-size:1.5rem}.panel{padding:15px}.panel-head{align-items:flex-start}.order-card{padding:14px}.order-top{display:grid}.order-bottom{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions .button{flex:1}.filter-input{min-width:0;flex:1}.chat-layout{grid-template-columns:1fr;min-height:initial}.chat-list{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 0 12px;border:0;border-bottom:1px solid var(--line)}.chat-thread{min-height:390px;padding:12px 0 0}.detail-grid{grid-template-columns:1fr 1fr}.login-card{padding:25px 21px}.toast-region{right:12px;bottom:82px}.workspace-picker{display:none}}@media(max-width:390px){.stats-grid{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.chat-list{grid-template-columns:1fr 1fr}.top-actions{gap:6px}.user-chip{font-size:.7rem}}
/* Controles compactos para los viewports de la PWA en teléfonos. */

/* Catálogo: imágenes legibles, controles con iconos y jerarquía de estado. */
.products-panel{padding:24px}
.products-head{align-items:center;margin-bottom:20px}
.products-title{display:flex;align-items:center;gap:13px}
.products-title-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border:1px solid #ccebdd;border-radius:15px;background:linear-gradient(145deg,#effbf4,#dff5e8);color:#087653;box-shadow:inset 0 1px #fff}
.products-title-icon svg,.products-count svg,.product-toggle svg,.product-image-placeholder svg,.product-image-count svg{width:21px;height:21px}
.products-head h2{font-size:1.2rem}
.products-count{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dcebe2;border-radius:999px;background:#f7fbf8;color:#2d6550;font-size:.82rem;font-weight:800;white-space:nowrap}
.products-count svg{width:17px;height:17px;color:#16815e}
.product-list{gap:13px}
.product-row{position:relative;gap:16px;min-height:112px;padding:15px 17px;border-color:#e1ebe5;transition:border-color .18s,box-shadow .18s,transform .18s}
.product-row:hover{transform:translateY(-1px);border-color:#b8dfca;box-shadow:0 9px 24px #15442b0d}
.product-media{position:relative;display:grid;place-items:center;width:82px;height:82px;flex:0 0 82px;overflow:hidden;border:1px solid #e6eee9;border-radius:16px;background:linear-gradient(145deg,#f9fbfa,#edf4f0)}
.product-thumb{display:block;width:100%;height:100%;border-radius:15px;background:transparent;object-fit:cover}
.product-image-placeholder{display:grid;place-items:center;gap:5px;width:100%;height:100%;color:#91a69b}
.product-image-placeholder[hidden]{display:none}
.product-image-placeholder svg{width:27px;height:27px;stroke-width:1.5}
.product-image-placeholder small{font-size:.62rem;font-weight:700}
.product-image-count{position:absolute;right:5px;bottom:5px;display:inline-flex;align-items:center;gap:3px;padding:3px 6px;border:1px solid #ffffffd9;border-radius:999px;background:#153f31db;color:#fff;font-size:.65rem;font-weight:800;backdrop-filter:blur(5px)}
.product-image-count svg{width:12px;height:12px}
.product-info{display:grid;align-content:center;gap:6px}
.product-info strong{font-size:.98rem;line-height:1.35;white-space:normal}
.product-info small{margin:0;color:#70847a;font-size:.81rem}
.product-price{min-width:88px;color:#143c2d;font:800 1rem Manrope,sans-serif;text-align:right;white-space:nowrap}
.product-toggle{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid #cfe7d9;border-radius:13px;background:#f0fbf4;color:#176b4c;font-size:.82rem;font-weight:800;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.product-toggle.is-paused{border-color:#f0dfbd;background:#fff9eb;color:#8b6417}
.product-toggle:has(input:disabled){opacity:.65;cursor:wait}
.product-toggle input{position:absolute;width:1px;height:1px;opacity:0}
.product-toggle-icon{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#d8f3e3;color:#087653}
.product-toggle.is-paused .product-toggle-icon{background:#fff0ca;color:#9b701c}
.product-toggle-icon svg{width:16px;height:16px;stroke-width:2.4}
.product-toggle:focus-within{outline:3px solid #75c5a3;outline-offset:2px}
@media(max-width:760px){
  .products-panel{padding:17px}
  .products-head{align-items:flex-start}
  .products-title{gap:10px}
  .products-title-icon{width:42px;height:42px;flex-basis:42px}
  .products-head h2{font-size:1.05rem}
  .products-count{padding:7px 10px;font-size:.75rem}
  .product-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:11px 13px;min-height:0;padding:13px}
  .product-media{grid-row:1 / span 2;width:72px;height:72px;flex-basis:72px;border-radius:14px}
  .product-thumb{border-radius:13px}
  .product-info{grid-column:2 / 4;grid-row:1;align-self:center}
  .product-info strong{font-size:.91rem}
  .product-info small{font-size:.76rem}
  .product-price{grid-column:2;grid-row:2;align-self:center;min-width:0;text-align:left;font-size:.97rem}
  .product-toggle{grid-column:3;grid-row:2;justify-self:end;min-height:38px;padding:0 9px;font-size:.75rem}
}
@media(max-width:420px){
  .products-panel{padding:14px}
  .products-head{gap:8px}
  .products-title-icon{width:38px;height:38px;flex-basis:38px}
  .products-count{gap:5px;padding:7px 8px;font-size:.69rem}
  .products-count svg{width:15px;height:15px}
  .product-row{grid-template-columns:64px minmax(0,1fr) auto;gap:9px 10px;padding:11px}
  .product-media{width:64px;height:64px}
  .product-info strong{font-size:.85rem}
  .product-price{font-size:.9rem}
  .product-toggle{gap:6px;min-height:35px;padding:0 7px;font-size:.7rem}
  .product-toggle-icon{width:20px;height:20px}
}
.mobile-context{display:none}
@media(max-width:760px){.mobile-context{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:-5px 0 18px;padding:10px;border:1px solid var(--line);border-radius:15px;background:#fff}.mobile-context label{display:grid;gap:5px;min-width:0}.mobile-context label span{color:var(--muted);font-size:.66rem;font-weight:800}.mobile-context select{width:100%;min-width:0;min-height:38px;padding:7px;border:1px solid var(--line);border-radius:9px;background:#f9fbfa;color:var(--green-dark);font:700 .76rem "DM Sans",sans-serif}.mobile-nav a.active{box-shadow:inset 0 0 0 1px #d2efdd}.top-actions .user-chip{max-width:110px}}
.dashboard-welcome,.notification-intro{position:relative;display:flex;align-items:center;gap:17px;overflow:hidden;padding:22px 24px;border:1px solid #bde6d0;border-radius:20px;background:radial-gradient(circle at 95% 0,#daf6e5 0,transparent 38%),linear-gradient(120deg,#f3fcf6,#e7f7ed);box-shadow:0 12px 32px #14583a0b}
.welcome-mark,.notification-intro-icon{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border:1px solid #c5e9d7;border-radius:18px;background:#fff;color:#087653;box-shadow:0 7px 18px #14614313}
.welcome-mark svg,.notification-intro-icon svg{width:28px;height:28px;stroke-width:1.8}
.dashboard-welcome h2,.notification-intro h2{margin:0;font:800 1.25rem Manrope,sans-serif;letter-spacing:-.03em}
.dashboard-welcome p:not(.eyebrow),.notification-intro p:not(.eyebrow){margin:5px 0 0;color:#526d62;font-size:.86rem;line-height:1.5}
.dashboard-welcome .eyebrow,.notification-intro .eyebrow{margin-bottom:4px}
.welcome-live,.notification-total{display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:9px 12px;border:1px solid #b8e5ce;border-radius:999px;background:#fff;color:#146746;font-size:.76rem;font-weight:800;white-space:nowrap}
.welcome-live i{width:8px;height:8px;border-radius:50%;background:#19a76c;box-shadow:0 0 0 4px #d9f6e6}
.stats-grid{gap:16px}
.stat-card{position:relative;overflow:hidden;min-height:148px;padding:20px;border-color:#e2ebe5;transition:transform .18s,box-shadow .18s,border-color .18s}
.stat-card:hover{transform:translateY(-2px);border-color:#bfe2ce;box-shadow:0 14px 34px #12432d12}
.stat-card::after{position:absolute;right:-23px;bottom:-40px;width:112px;height:112px;border:1px solid #dcefe3;border-radius:50%;box-shadow:0 0 0 12px #edf8f1,0 0 0 24px #f5fbf6;content:""}
.stat-card .stat-icon{position:relative;z-index:1;width:44px;height:44px;margin-bottom:13px;border:1px solid #d1efdd;border-radius:15px;background:linear-gradient(145deg,#effbf4,#dcf5e6)}
.stat-icon svg{width:23px;height:23px;stroke-width:1.8}
.stat-card strong{position:relative;z-index:1;font-size:1.9rem;line-height:1.1}
.stat-card small,.stat-caption{position:relative;z-index:1;display:block}
.stat-card small{margin-top:4px;color:#365c4b;font-size:.78rem;font-weight:800}
.stat-caption{margin-top:8px;color:#82948b;font-size:.68rem}
.stat-pending .stat-icon{background:#fff7df;color:#9b6a0c;border-color:#f2e3b6}.stat-payment_confirmed .stat-icon{background:#edf4ff;color:#3765a8;border-color:#d8e5fa}.stat-preparing .stat-icon{background:#f3efff;color:#7352ad;border-color:#e5ddfa}.stat-ready .stat-icon{background:#eaf9ef;color:#168054;border-color:#d1efdc}
.dashboard-panel,.notification-panel{padding:22px}
.section-heading{display:flex;align-items:center;gap:12px}
.section-heading-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #d8ecdf;border-radius:14px;background:#f0faf4;color:#11724f}
.section-heading-icon svg{width:21px;height:21px}
.notices-heading-icon{border-color:#d9e8fb;background:#f1f6ff;color:#4b70a5}
.intake-heading-icon{border-color:#f1e4bf;background:#fff8e8;color:#976a13}
.button-with-icon{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.button-with-icon svg{width:16px;height:16px;stroke-width:2}
.intake-panel{border-color:#d7e9dd;background:linear-gradient(115deg,#fff 60%,#f5fbf6)}
.intake-toggle{border-radius:999px;background:#fff;font-weight:800}
.order-list,.notice-list{gap:13px}
.order-card{padding:16px 18px;border-color:#e3ece6;transition:transform .16s,border-color .16s,box-shadow .16s}
.order-card:hover,.notice-card:hover{transform:translateY(-1px);border-color:#bfdfcc;box-shadow:0 10px 26px #16422d10}
.order-main{display:flex;align-items:flex-start;gap:12px;min-width:0}
.order-card-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #d6ecdf;border-radius:14px;background:#f0faf4;color:#14764f}
.order-card-icon svg{width:22px;height:22px}
.order-number{margin-top:1px}
.order-customer{margin:3px 0 0;color:#526d62;font-size:.84rem;font-weight:700}
.order-meta span{display:inline-flex;align-items:center;gap:5px}
.order-meta svg{width:14px;height:14px;color:#80978c}
.order-total-label{display:grid;gap:4px;color:#71847a;font-size:.7rem;font-weight:700}
.order-total{color:#143c2d;font-size:1.06rem}
.notification-intro{border-color:#d2def0;background:radial-gradient(circle at 95% 0,#e2ecff 0,transparent 36%),linear-gradient(120deg,#f8faff,#eef4ff)}
.notification-intro-icon{border-color:#d9e3f4;color:#42689d}
.notification-total{border-color:#d8e3f4;color:#3f6494}
.notification-panel .panel-head{align-items:center}
.notice-card{align-items:center;padding:16px 17px;border-color:#e4ece7;transition:transform .16s,border-color .16s,box-shadow .16s}
.notice-card.unread{border-left:4px solid #24a371;background:linear-gradient(100deg,#f6fcf8,#fff 40%)}
.notice-icon{width:46px;height:46px;flex-basis:46px;border:1px solid #d9eddf;border-radius:15px;background:linear-gradient(145deg,#f0fbf4,#e5f6eb)}
.notice-icon svg{width:22px;height:22px;stroke-width:1.8}
.notice-body{min-width:0}
.notice-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.notice-title-line strong{font-size:.89rem}
.notice-read-label,.notice-new-label{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#f1f5f3;color:#71847a;font-size:.62rem;font-weight:800}
.notice-new-label{background:#e4f7ec;color:#16724e}
.notice-body p{max-width:760px;margin:6px 0 7px}
.notice-body small{display:inline-flex;align-items:center;gap:5px;font-size:.7rem}
.notice-body small svg{width:13px;height:13px}
.notice-card .actions{justify-content:flex-end;flex-shrink:0}
.notification-panel .empty-state{padding:48px 18px}
.main-nav a>span svg,.mobile-nav a>span svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.main-nav a>span{width:30px;height:30px;border-radius:10px;transition:background .16s,color .16s}
.main-nav a.active>span{background:#d8f3e3}
.mobile-nav a>span{display:grid;place-items:center;width:36px;height:30px;border-radius:10px;color:#6d857d}
.mobile-nav a.active>span{background:#dff5e7;color:var(--green)}
.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
  .dashboard-welcome,.notification-intro{align-items:flex-start;gap:12px;padding:17px;border-radius:17px}
  .welcome-mark,.notification-intro-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}
  .welcome-mark svg,.notification-intro-icon svg{width:23px;height:23px}
  .dashboard-welcome h2,.notification-intro h2{font-size:1.08rem}
  .dashboard-welcome p:not(.eyebrow),.notification-intro p:not(.eyebrow){font-size:.78rem}
  .welcome-live,.notification-total{position:absolute;right:13px;bottom:12px;margin:0;padding:6px 8px;font-size:.64rem}
  .dashboard-welcome>div:nth-child(2),.notification-intro>div{padding-bottom:21px}
  .stats-grid{gap:10px}
  .stat-card{min-height:130px;padding:14px}
  .stat-card .stat-icon{width:37px;height:37px;margin-bottom:9px;border-radius:12px}
  .stat-icon svg{width:20px;height:20px}
  .stat-card strong{font-size:1.55rem}
  .stat-card small{font-size:.7rem;line-height:1.35}
  .stat-caption{font-size:.62rem}
  .dashboard-panel,.notification-panel{padding:15px}
  .section-heading{gap:9px}
  .section-heading-icon{width:36px;height:36px;flex-basis:36px;border-radius:12px}
  .section-heading-icon svg{width:18px;height:18px}
  .panel-head h2,.section-title{font-size:.98rem}
  .panel-head .button{min-height:35px;padding:7px 9px;font-size:.72rem}
  .order-card{padding:13px}
  .order-main{gap:9px}
  .order-card-icon{width:35px;height:35px;flex-basis:35px;border-radius:12px}
  .order-card-icon svg{width:18px;height:18px}
  .order-top{display:flex;justify-content:space-between;gap:8px}
  .order-number{font-size:.85rem}
  .order-customer{font-size:.76rem}
  .order-meta{gap:5px 9px;font-size:.68rem}
  .order-meta svg{width:12px;height:12px}
  .order-bottom{align-items:center;flex-direction:row;margin-top:11px;padding-top:10px}
  .order-total{font-size:.95rem}
  .notice-card{align-items:flex-start;gap:10px;padding:13px}
  .notice-icon{width:37px;height:37px;flex-basis:37px;border-radius:12px}
  .notice-icon svg{width:19px;height:19px}
  .notice-title-line strong{font-size:.8rem}
  .notice-body p{font-size:.74rem}
  .notice-card .actions{width:auto;flex-wrap:wrap;justify-content:flex-start;margin-left:47px}
  .notice-card .actions .button{flex:initial}
  .intake-panel .panel-head{align-items:center}
  .intake-toggle{min-height:36px;padding:0 9px;font-size:.75rem}
}
@media(max-width:430px){
  .welcome-live,.notification-total{font-size:.58rem}
  .stat-card{min-height:124px;padding:12px}
  .stat-card small{font-size:.65rem}
  .order-top{display:grid}
  .order-top>.status-pill{justify-self:start;margin-left:44px}
  .order-bottom{align-items:flex-end}
  .order-bottom .button{white-space:nowrap}
  .notification-intro .notification-total{right:10px;bottom:9px}
  .notification-panel .panel-head{align-items:flex-start}
  .notification-panel .panel-head>.button{white-space:nowrap}
  .notice-card{display:grid;grid-template-columns:36px minmax(0,1fr);}
  .notice-icon{grid-column:1;grid-row:1;width:36px;height:36px;flex-basis:36px}
  .notice-body{grid-column:2;grid-row:1}
  .notice-card .actions{grid-column:2;margin:0}
}
/* Bandeja de consultas: lista y conversación en paneles aislados, sin desbordes. */
.chat-page-panel{padding:22px}
.chat-page-icon{border-color:#d5e7fa;background:linear-gradient(145deg,#f4f8ff,#e9f1ff);color:#426a9c}
.chat-workspace{display:grid;grid-template-columns:minmax(270px,350px) minmax(0,1fr);min-width:0;min-height:620px;overflow:hidden;border:1px solid #dce8e2;border-radius:18px;background:#fff;box-shadow:0 10px 28px #173b2908}
.chat-sidebar{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;border-right:1px solid #e4ece7;background:linear-gradient(180deg,#fbfdfb,#f7faf8)}
.chat-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 17px 13px}
.chat-sidebar-heading strong{display:block;color:#1c3830;font:800 .95rem Manrope,sans-serif}
.chat-sidebar-heading small{display:block;margin-top:4px;color:#819188;font-size:.7rem}
.chat-count{display:grid;place-items:center;min-width:29px;height:29px;padding:0 7px;border:1px solid #cfe8d9;border-radius:10px;background:#eaf8ef;color:#13744e;font-size:.72rem;font-weight:800}
.chat-search{display:flex;align-items:center;gap:9px;min-height:42px;margin:0 13px 12px;padding:0 12px;border:1px solid #dfe9e3;border-radius:12px;background:#fff;color:#6d8278;transition:border-color .16s,box-shadow .16s}
.chat-search:focus-within{border-color:#82c5a1;box-shadow:0 0 0 3px #e6f6ec}
.chat-search svg{width:17px;height:17px;flex:0 0 17px}
.chat-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#18372c;font:500 .78rem "DM Sans",sans-serif}
.chat-search input::placeholder{color:#9aa9a1}
.chat-list{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;min-width:0;min-height:0;overflow-y:auto;padding:0 9px 13px}
.chat-row{display:grid;width:100%;min-width:0;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:10px;padding:12px 10px;border:1px solid transparent;border-radius:13px;background:transparent;box-shadow:none;color:inherit;text-align:left;transition:background .16s,border-color .16s,box-shadow .16s}
.chat-row:hover{border-color:#e2eee6;background:#f2faf5}
.chat-row.active{border-color:#bce3cb;background:linear-gradient(110deg,#eaf8ef,#f6fcf8);box-shadow:inset 3px 0 #188454}
.chat-row[hidden]{display:none}
.chat-avatar{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid #cfe9d9;border-radius:14px;background:linear-gradient(145deg,#e9faef,#d8f2e1);color:#176e4b;font:800 .77rem Manrope,sans-serif;letter-spacing:.02em}
.chat-row-content{display:grid;min-width:0;gap:3px}
.chat-row-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.chat-row-top strong{overflow:hidden;color:#203a31;font-size:.79rem;text-overflow:ellipsis;white-space:nowrap}
.chat-row-top time{flex:0 0 auto;color:#87978f;font-size:.59rem}
.chat-row-subject{overflow:hidden;color:#536e60;font-size:.69rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.chat-row-preview{overflow:hidden;color:#819087;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.chat-row-branch{display:inline-flex;align-items:center;gap:4px;overflow:hidden;margin-top:2px;color:#96a59d;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}
.chat-row-branch svg{width:12px;height:12px;flex:0 0 12px}
.chat-filter-empty{margin:8px 12px 16px;padding:14px;border:1px dashed #d9e4dd;border-radius:12px;color:#778a80;font-size:.73rem;text-align:center}
.chat-thread{display:flex;min-width:0;min-height:0;height:620px;flex-direction:column;overflow:hidden;padding:0;background:#fff}
.chat-thread-head{display:flex;align-items:center;gap:11px;min-height:72px;padding:13px 19px;border-bottom:1px solid #e8efea;background:linear-gradient(100deg,#fff,#fbfdfb)}
.chat-thread-avatar{width:43px;height:43px;flex-basis:43px;border-radius:15px}
.chat-thread-head>div{display:grid;min-width:0;gap:4px}
.chat-thread-head>div strong{overflow:hidden;color:#203a31;font:800 .91rem Manrope,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.chat-thread-head>div small{overflow:hidden;color:#788a81;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.chat-status{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:7px 10px;border:1px solid #d6ecdf;border-radius:999px;background:#f3fbf6;color:#23714f;font-size:.65rem;font-weight:800;white-space:nowrap}
.chat-status i{width:7px;height:7px;border-radius:50%;background:#25a56c;box-shadow:0 0 0 3px #dcf5e6}
.chat-status.is-closed{border-color:#e7e9e8;background:#f4f5f4;color:#78847e}
.chat-status.is-closed i{background:#9aa59f;box-shadow:0 0 0 3px #e9ecea}
.chat-messages{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:20px clamp(14px,3vw,30px);background-color:#f9fbfa;background-image:radial-gradient(#dfeae3 0.65px,transparent .65px);background-size:18px 18px}
.message{display:grid;width:fit-content;max-width:min(78%,620px);gap:7px;padding:11px 14px;border:1px solid #e4ebe6;border-radius:16px 16px 16px 5px;background:#fff;box-shadow:0 5px 14px #183c2908;line-height:1.5}
.message p{margin:0;color:#314a3f;font-size:.83rem;white-space:pre-wrap}
.message small{margin:0;color:#8a9991;font-size:.62rem}
.message.mine{align-self:flex-end;border-color:#bfe4cc;border-radius:16px 16px 5px 16px;background:linear-gradient(145deg,#e5f7eb,#d8f1e1)}
.message.mine p{color:#1e573d}
.chat-empty-state,.chat-empty-thread{display:grid;justify-items:center;align-content:center;gap:9px;padding:30px;color:#809187;text-align:center}
.chat-empty-state{min-height:100%}
.chat-empty-state svg,.chat-empty-thread svg{width:38px;height:38px;color:#87b59a}
.chat-empty-state strong,.chat-empty-thread strong{color:#304a3e;font:800 1rem Manrope,sans-serif}
.chat-empty-state p,.chat-empty-thread p{max-width:300px;margin:0;font-size:.77rem;line-height:1.5}
.chat-empty-thread{width:100%;min-height:100%;flex:1}
.chat-loading{display:grid;gap:12px;padding:20px}
.message-composer{align-items:flex-end;gap:10px;padding:13px 16px;border-top:1px solid #e7eee9;background:#fff}
.message-composer textarea{min-height:45px;max-height:120px;flex:1;padding:12px 13px;border-color:#e0e9e3;border-radius:13px;background:#fbfdfc;font-size:.8rem;line-height:1.45}
.message-composer textarea:focus{border-color:#81c6a1;outline:0;box-shadow:0 0 0 3px #e6f6ec}
.message-composer .button{min-height:45px}
@media(max-width:900px){.chat-workspace{grid-template-columns:minmax(245px,300px) minmax(0,1fr)}.chat-status{padding:6px 8px;font-size:.59rem}.chat-page-panel{padding:17px}}
@media(max-width:760px){
  .chat-page-panel{padding:15px}
  .chat-workspace{grid-template-columns:minmax(0,1fr);min-height:0;overflow:visible;border-radius:15px}
  .chat-sidebar{max-height:330px;border-right:0;border-bottom:1px solid #e4ece7;border-radius:15px 15px 0 0}
  .chat-sidebar-heading{padding:14px 13px 10px}
  .chat-search{min-height:39px;margin:0 11px 9px}
  .chat-list{max-height:220px;padding:0 7px 9px}
  .chat-row{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:10px 8px}
  .chat-avatar{width:36px;height:36px;flex-basis:36px;border-radius:12px}
  .chat-thread{height:min(64vh,600px);min-height:430px;border-radius:0 0 15px 15px}
  .chat-thread-head{min-height:64px;padding:11px 13px}
  .chat-thread-avatar{width:38px;height:38px;flex-basis:38px}
  .chat-messages{padding:15px 12px}
  .message{max-width:88%;padding:10px 12px}
  .message p{font-size:.78rem}
  .message-composer{padding:10px;gap:7px}
  .message-composer .button{gap:6px;padding:8px 11px;font-size:.76rem}
  .message-composer textarea{font-size:.76rem}
}
@media(max-width:430px){
  .chat-page-panel>.panel-head{gap:8px}
  .chat-page-panel>.panel-head .button{min-height:34px;padding:7px 8px;font-size:.68rem;white-space:nowrap}
  .chat-page-panel .section-heading{gap:8px}
  .chat-page-panel .section-heading-icon{width:34px;height:34px;flex-basis:34px}
  .chat-page-panel .panel-head h2{font-size:.91rem}
  .chat-page-panel .section-subtitle{font-size:.69rem}
  .chat-thread{height:62vh;min-height:390px}
  .chat-status{font-size:0}
  .chat-status i{width:9px;height:9px}
  .chat-thread-head>div small{max-width:180px}
  .message-composer .button{width:43px;min-width:43px;overflow:hidden;gap:20px;padding:10px;color:transparent}
  .message-composer .button svg{width:20px;height:20px;flex:0 0 20px;color:white}
}
.mobile-logout{display:none}
@media(max-width:760px){.mobile-logout{display:inline-flex;align-items:center;min-height:34px;padding:6px 9px;font-size:.7rem}}

/* Detalle del pedido: bloques claros para leer, coordinar y actualizar. */
.order-detail-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;overflow:hidden;padding:26px 29px 19px;border:1px solid #0c6149;border-radius:20px;background:radial-gradient(ellipse at 88% 0%,#16805b 0,transparent 40%),linear-gradient(120deg,#073b2e,#075c45 65%,#087457);color:#fff;box-shadow:0 15px 35px #0b644019}
.order-detail-hero::after{position:absolute;right:-42px;bottom:-105px;width:240px;height:240px;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 22px #ffffff08,0 0 0 46px #ffffff06;content:"";pointer-events:none}
.order-detail-hero-main{display:flex;align-items:center;gap:16px;min-width:0}
.order-detail-mark{display:grid;width:58px;height:58px;flex:0 0 58px;place-items:center;border:1px solid #ffffff3d;border-radius:18px;background:#ffffff18;color:#d8f6a0;box-shadow:inset 0 1px #ffffff2c}
.order-detail-mark svg{width:28px;height:28px}
.order-detail-kicker{margin:0 0 5px;color:#c9ee84;font-size:.67rem;font-weight:900;letter-spacing:.14em}
.order-detail-hero h2{margin:0;font:800 clamp(1.15rem,2vw,1.65rem) Manrope,sans-serif;overflow-wrap:anywhere}
.order-detail-hero-main p:last-child{margin:6px 0 0;color:#d5e9df;font-size:.82rem}
.order-detail-hero-main p:last-child span{padding:0 4px;color:#9fceb9}
.order-detail-status{position:relative;z-index:1;align-self:start;padding:9px 13px;border:1px solid #ffffff35!important;background:#ffffff1b!important;color:#fff!important;font-size:.73rem}
.order-detail-status svg{width:15px;height:15px}
.order-detail-hero-foot{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:9px 21px;padding-top:14px;border-top:1px solid #ffffff25;color:#e0f0e8;font-size:.75rem}
.order-detail-hero-foot span{display:inline-flex;align-items:center;gap:7px}
.order-detail-hero-foot svg{width:15px;height:15px;color:#d3f292}
.order-detail-panel{padding:22px 24px}
.order-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.order-section-icon,.order-info-icon,.order-item-icon{display:grid;flex:0 0 auto;place-items:center;border-radius:13px;background:#eaf8ef;color:#087657}
.order-section-icon{width:42px;height:42px}
.order-section-icon svg{width:21px;height:21px}
.order-section-heading .section-title{font-size:1.05rem}
.order-section-heading .section-subtitle{font-size:.77rem}
.order-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.order-detail-cell{display:flex;align-items:center;gap:11px;min-width:0;padding:14px;border:1px solid #e6efea;border-radius:14px;background:linear-gradient(135deg,#fbfdfb,#f7faf8)}
.order-info-icon{width:38px;height:38px;border-radius:12px}
.order-info-icon svg{width:18px;height:18px}
.order-detail-cell>div{display:grid;min-width:0;gap:4px}
.order-detail-cell small{color:#73877d;font-size:.68rem;font-weight:700}
.order-detail-cell strong{color:#203b30;font-size:.83rem;overflow-wrap:anywhere}
.order-detail-cell a{color:#096c4f;text-decoration:none}
.order-detail-cell a:hover{text-decoration:underline}
.payment-state{width:max-content;padding:3px 8px;border-radius:999px;background:#fff3d1;color:#825e0b;font-size:.63rem;font-weight:800}
.payment-state.is-confirmed{background:#e4f7ec;color:#14774d}
.order-address-cell{grid-column:1/-1;align-items:flex-start}
.order-info-note{color:#74877e;font-size:.72rem}
.payment-extra{display:grid;gap:0;margin-top:14px;padding:14px 16px;border:1px solid #e1ece6;border-radius:14px;background:#f7faf8}
.payment-extra>strong{display:flex;align-items:center;gap:8px;padding-bottom:10px;color:#25483b;font-size:.78rem}
.payment-extra>strong svg{width:17px;height:17px;color:#087657}
.payment-destination-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #e4ece7;font-size:.73rem}
.payment-destination-row span{color:#708178;text-transform:capitalize}
.payment-destination-row strong{text-align:right;overflow-wrap:anywhere}
.items-heading-icon{background:#edf1ff;color:#5265a3}
.order-items{display:grid;gap:9px}
.order-item{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid #e8efeb;border-radius:13px;background:#fff}
.order-item-icon{width:39px;height:39px;border-radius:12px}
.order-item-icon svg{width:19px;height:19px}
.order-item-name{display:grid;flex:1;min-width:0;gap:4px}
.order-item-name strong{color:#203b30;font-size:.82rem;overflow-wrap:anywhere}
.order-item-name small{color:#74877e;font-size:.71rem}
.order-item-total{color:#164b38;font-size:.84rem;white-space:nowrap}
.order-items-empty{display:flex;align-items:center;gap:10px;padding:14px;border-radius:12px;background:#f5f8f6;color:#718178;font-size:.78rem}
.order-items-empty svg{width:20px;height:20px}
.order-totals{display:grid;gap:8px;margin-top:14px;padding:14px 15px;border-radius:14px;background:#f5f8f6}
.order-totals>div{display:flex;justify-content:space-between;gap:15px;color:#65776f;font-size:.78rem}
.order-totals .order-discount{color:#168052}
.order-totals .order-grand-total{align-items:center;margin-top:4px;padding-top:12px;border-top:1px solid #dce7e0;color:#203b30}
.order-grand-total span{font-weight:800}
.order-grand-total strong{font:800 1.25rem Manrope,sans-serif;color:#075e45}
.status-heading-icon{background:#edf1ff;color:#5368a5}
.order-status-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:15px;border:1px solid #e4ece7;border-radius:14px;background:#f8faf9}
.order-status-select-wrap{display:grid;flex:1;min-width:min(100%,270px);gap:6px;color:#65776f;font-size:.7rem;font-weight:800}
.order-status-select-wrap .filter-input{width:100%;background:#fff}
.order-status-controls .button{min-height:42px}
.courier-heading-icon{background:#fff4dd;color:#936411}
.order-courier-panel pre{padding:15px;border:1px solid #e6eee9;border-radius:13px;background:#f8faf9;color:#31473d;line-height:1.55}
.history-heading-icon{background:#edf1ff;color:#5368a5}
.order-timeline{gap:0;margin-top:3px}
.order-timeline-item{position:relative;display:flex;gap:12px;min-height:66px;padding:0 0 16px;border:0}
.order-timeline-item:not(:last-child)::after{position:absolute;top:34px;bottom:0;left:16px;width:2px;background:#dcece2;content:""}
.timeline-event-icon{position:relative;z-index:1;display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border:1px solid #cfe9d9;border-radius:12px;background:#eff9f3;color:#158051}
.timeline-event-icon svg{width:16px;height:16px}
.order-timeline-item>div{display:grid;align-content:start;gap:4px;padding-top:2px}
.order-timeline-item strong{color:#274438;font-size:.81rem}
.order-timeline-item small{color:#7a8981;font-size:.69rem}
.order-timeline-item p{margin:2px 0 0;color:#596b62;font-size:.74rem}
.order-back-link{margin:0}
.whatsapp-share-button{border-color:#16885a;background:#16885a;color:#fff}
.whatsapp-share-button:hover{border-color:#0d7048;background:#0d7048}
@media(max-width:760px){.order-detail-hero{grid-template-columns:minmax(0,1fr);gap:15px;padding:20px 18px 15px;border-radius:16px}.order-detail-hero-main{align-items:flex-start;gap:12px}.order-detail-mark{width:48px;height:48px;flex-basis:48px;border-radius:15px}.order-detail-mark svg{width:24px;height:24px}.order-detail-status{justify-self:start;margin-left:60px;margin-top:-8px}.order-detail-hero-foot{grid-column:auto;gap:9px 13px;font-size:.69rem}.order-detail-panel{padding:17px 15px}.order-detail-grid{grid-template-columns:1fr;gap:8px}.order-address-cell{grid-column:auto}.order-detail-cell{padding:11px}.order-section-heading{margin-bottom:13px}.order-section-icon{width:38px;height:38px}.order-status-controls{align-items:stretch;flex-direction:column;padding:12px}.order-status-select-wrap{min-width:0}.order-status-controls .button{width:100%}.payment-destination-row{align-items:flex-start;flex-direction:column;gap:4px}.payment-destination-row strong{text-align:left}.order-courier-panel .actions{flex-direction:column}.order-courier-panel .actions .button{width:100%}}

.persistent-alert{position:fixed;top:18px;right:20px;z-index:45;display:grid;width:min(620px,calc(100vw - 40px));grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 15px;border:1px solid #f2d493;border-left:5px solid #dc9c1b;border-radius:16px;background:linear-gradient(120deg,#fffdf7,#fff8e8);color:#273d32;box-shadow:0 16px 48px #122d1d30;animation:alert-arrive .28s ease-out}
.persistent-alert[hidden]{display:none}
.persistent-alert-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:14px;background:#fff0c5;color:#a36500;animation:alert-pulse 1.8s ease-in-out infinite}
.persistent-alert-icon svg{width:22px;height:22px}
.persistent-alert-body{display:grid;min-width:0;gap:3px}
.persistent-alert-body>small{color:#946613;font-size:.61rem;font-weight:900;letter-spacing:.1em}
.persistent-alert-body>strong{overflow:hidden;color:#203b30;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.persistent-alert-body>p{overflow:hidden;margin:0;color:#566960;font-size:.71rem;text-overflow:ellipsis;white-space:nowrap}
.persistent-alert-body>time{color:#819087;font-size:.63rem}
.persistent-alert-actions{display:flex;align-items:center;gap:7px}
.persistent-alert-actions .button{min-height:36px;padding:7px 10px;font-size:.68rem;white-space:nowrap}
@keyframes alert-pulse{0%,100%{box-shadow:0 0 0 0 #e6b74600;transform:scale(1)}50%{box-shadow:0 0 0 5px #e6b74630;transform:scale(1.04)}}
@keyframes alert-arrive{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.persistent-alert{top:auto;right:10px;bottom:calc(78px + env(safe-area-inset-bottom));left:10px;width:auto;grid-template-columns:36px minmax(0,1fr);gap:9px;padding:12px;border-radius:14px}.persistent-alert-icon{width:36px;height:36px;border-radius:12px}.persistent-alert-body>strong{font-size:.75rem}.persistent-alert-body>p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.persistent-alert-actions{grid-column:1/-1;justify-content:flex-end}.persistent-alert-actions .button{flex:1;justify-content:center}}
