:root{--bg:#f5f1e9;--fg:#16120e;--surface:#fffdf8;--surface2:#f9f6ef;--muted:#746d64;--line:#e5ded2;--line2:#d8d0c2;--accent:#08775d;--accent2:#079875;--accentDark:#055b49;--soft:#e4f1ec;--warn:#9b5722;--danger:#a33a2f;--shadow:0 24px 70px rgba(35,28,19,.1);--card:0 16px 34px rgba(35,28,19,.07);--radius:18px;--panel:26px}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 8% 4%,rgba(8,119,93,.12),transparent 23rem),radial-gradient(circle at 96% 8%,rgba(205,154,76,.14),transparent 24rem),linear-gradient(180deg,#f8f4ec 0%,var(--bg) 58%,#f0ebe2 100%);color:var(--fg);font-family:Aptos,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}svg{display:block;width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wrap{width:min(1220px,calc(100% - 32px));margin:auto}
.topbar{position:sticky;top:0;z-index:20;background:rgba(248,244,236,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(229,222,210,.82)}.nav{display:flex;align-items:center;gap:20px;min-height:72px}.brand{display:flex;align-items:center;gap:10px;font-weight:950;font-size:20px;letter-spacing:-.02em;min-width:max-content}.brand span:last-child{white-space:nowrap}.logo{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:var(--soft);color:var(--accent);box-shadow:inset 0 0 0 1px rgba(8,119,93,.1);flex:0 0 auto}.logo svg{width:24px;height:24px}.links{display:flex;gap:8px;flex:1;align-items:center}.links a,.pill{border-radius:999px;padding:10px 15px;font-size:14px;font-weight:850;color:#625b52;white-space:nowrap}.links a.active,.links a:hover,.pill.active{background:var(--soft);color:var(--accent)}.search{flex:0 1 340px}.field{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 14px;color:var(--fg);outline:none;min-height:46px}.field:focus{border-color:rgba(8,119,93,.55);box-shadow:0 0 0 4px rgba(8,119,93,.1)}.icon-btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:15px;background:#fffaf2;color:var(--fg);box-shadow:0 8px 20px rgba(35,28,19,.05);cursor:pointer;flex:0 0 auto}.cart-trigger span{position:absolute;right:-5px;top:-7px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--fg);color:white;font-size:12px;font-weight:900}.adminbar{border-top:1px solid var(--line);background:rgba(255,253,248,.92)}.adminbar .wrap{display:flex;gap:8px;overflow:auto;padding:10px 0}.adminbar form{margin-left:auto}.adminbar .btn{min-height:auto;padding:10px 15px}
.panel{border:1px solid var(--line);background:rgba(255,253,248,.94);border-radius:var(--panel);box-shadow:var(--shadow);padding:32px;margin:28px 0}.hero-panel{padding:38px 34px}.direct-panel{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center}.kicker{color:var(--accent);font-size:12px;font-weight:950;letter-spacing:.18em;text-transform:uppercase}.title{max-width:920px;font-size:clamp(42px,6.6vw,86px);font-weight:950;line-height:.92;letter-spacing:-.045em;margin:0 0 18px}.h2{font-size:clamp(28px,3.4vw,46px);font-weight:950;line-height:.98;letter-spacing:-.04em;margin:8px 0 20px}.hero-copy{max-width:680px;color:var(--muted);font-size:19px;line-height:1.45;margin:0 0 28px}.muted{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}
.cat-card,.card{border:1px solid var(--line);background:#fff;border-radius:var(--radius);box-shadow:var(--card)}.cat-card{padding:22px;min-height:168px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.cat-card:hover{transform:translateY(-3px);border-color:rgba(8,119,93,.28);box-shadow:0 24px 44px rgba(35,28,19,.1)}.cat-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--soft);color:var(--accent);margin-bottom:20px}.cat-card h3{font-size:20px;margin:0 0 10px;letter-spacing:-.02em}.cat-card p{margin:0;line-height:1.35}
.filters{display:grid;grid-template-columns:1fr 220px 240px auto;gap:12px;margin-bottom:14px}.catalog-meta{margin:0 0 20px;color:var(--muted);font-weight:750}.product{padding:14px;display:flex;flex-direction:column;gap:12px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.product:hover{transform:translateY(-2px);border-color:rgba(8,119,93,.24);box-shadow:0 22px 44px rgba(35,28,19,.1)}.image-button{position:relative;border:0;padding:0;background:transparent;cursor:pointer}.product-img{width:100%;aspect-ratio:1/1;border-radius:15px;background:#f2ede5;object-fit:contain;display:block}.stock-ribbon{position:absolute;right:10px;top:10px;border-radius:999px;background:#efe0d0;color:var(--warn);padding:7px 10px;font-size:12px;font-weight:900}.product h3{font-size:19px;line-height:1.16;margin:0;letter-spacing:-.025em;cursor:pointer}.product-meta{font-size:14px;line-height:1.35;margin:0}.price-row{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:auto}.price{font-size:29px;font-weight:950;letter-spacing:-.04em}.stock{font-weight:850;color:var(--muted);font-size:14px}.danger{color:var(--danger)!important}.actions{display:grid;grid-template-columns:52px 1fr;gap:10px}.btn{border:0;border-radius:999px;padding:13px 18px;font-weight:900;cursor:pointer;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-primary{background:var(--accent2);color:white;box-shadow:0 12px 26px rgba(7,152,117,.24)}.btn-primary:hover{background:var(--accent)}.btn-soft{background:#eee8df;color:var(--fg)}.btn-line{border:1px solid var(--line);background:#fffaf2;color:var(--accent)}.icon-action svg{width:22px;height:22px}.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.drawer{position:fixed;right:0;top:0;bottom:0;z-index:50;width:min(560px,100%);background:var(--surface);box-shadow:-30px 0 80px rgba(0,0,0,.18);padding:28px;transform:translateX(105%);transition:transform .22s ease;overflow:auto}.drawer.open{transform:none}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:40;display:none}.overlay.open{display:block}.drawer-close{float:right}.drawer-title{margin-top:0}.modal{position:fixed;inset:0;z-index:60;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.55)}.modal.open{display:flex}.modal-card{width:min(900px,100%);max-height:90vh;overflow:auto;background:var(--surface);border-radius:24px;padding:24px;box-shadow:0 30px 90px rgba(0,0,0,.25)}.detail{display:grid;grid-template-columns:minmax(260px,1fr) 1fr;gap:28px;align-items:start}.cart-item{display:grid;grid-template-columns:86px 1fr auto;gap:14px;align-items:start;padding:14px;margin:14px 0}.cart-item img{width:86px;height:86px;object-fit:contain;border-radius:14px;background:#f2ede5}.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:white}.qty button{border:0;background:white;padding:8px 14px;font-weight:950;cursor:pointer}.qty span{min-width:36px;text-align:center;font-weight:950}
.checkout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.summary{align-self:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.full{grid-column:1/-1}.choice{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px}.badge{display:inline-flex;border-radius:999px;background:#efe0d0;color:var(--warn);font-weight:900;padding:8px 12px}.notice{background:var(--soft);color:var(--accent);border-radius:14px;padding:12px 14px;font-weight:800;margin:14px 0}.table{width:100%;border-collapse:separate;border-spacing:0 10px}.table td,.table th{text-align:left;background:white;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px;vertical-align:top}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.table td:first-child,.table th:first-child{border-left:1px solid var(--line);border-radius:14px 0 0 14px}.table td:last-child,.table th:last-child{border-right:1px solid var(--line);border-radius:0 14px 14px 0}.thumb{width:64px;height:64px;object-fit:contain;border-radius:13px;background:#f2ede5}.admin-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.admin-title{margin:0}.admin-tools{display:flex;gap:10px;flex-wrap:wrap}.admin-form-card{padding:18px;margin-bottom:18px}.admin-product-edit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;margin-top:12px}.admin-product-edit .full{grid-column:1/-1}.file-hint{font-size:13px;color:var(--muted);font-weight:700}.mobile-row-title{font-weight:950}.pagination{display:flex;gap:8px;margin-top:18px}
@media(max-width:920px){.wrap{width:min(100% - 20px,1220px)}.nav{gap:10px;min-height:auto;padding:10px 0;flex-wrap:wrap}.brand{font-size:21px}.links{order:3;flex:0 0 100%;width:100%;overflow:auto;padding:2px 0 8px;scrollbar-width:none}.links::-webkit-scrollbar{display:none}.links a{background:rgba(255,253,248,.62);border:1px solid var(--line)}.search{order:2;flex:0 0 100%}.panel{padding:20px;margin:16px 0;border-radius:22px}.filters,.checkout,.detail,.direct-panel{grid-template-columns:1fr}.form-grid,.admin-product-edit{grid-template-columns:1fr}.title{font-size:44px}.h2{font-size:32px}.drawer{padding:20px}.hide-mobile{display:none}.table,.table tbody,.table tr,.table td{display:block;width:100%}.table thead{display:none}.table tr{background:white;border:1px solid var(--line);border-radius:16px;margin:12px 0;padding:12px}.table td{border:0!important;border-radius:0!important;padding:8px}.cart-item{grid-template-columns:72px 1fr}.cart-item>div:last-child{grid-column:1/-1;text-align:left!important}.cart-item img{width:72px;height:72px}.adminbar form{margin-left:0}.price{font-size:26px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}.manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.manual-items{display:grid;gap:12px}.manual-item{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:10px;align-items:start;border:1px solid var(--line);background:#fffaf2;border-radius:18px;padding:12px}.manual-preview{grid-column:1/-1;display:flex;align-items:center;gap:12px;color:var(--muted);font-weight:800}.manual-preview img{width:58px;height:58px;border-radius:13px;background:#f2ede5;object-fit:contain}.manual-footer,.manual-submit{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}.manual-submit{justify-content:flex-end}.order-list{display:grid;gap:18px}.order-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:18px;box-shadow:var(--card)}.order-main{display:grid;grid-template-columns:1.4fr 1fr auto;gap:18px;align-items:start;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px}.order-id{word-break:break-word}.order-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.order-box{border:1px solid var(--line);border-radius:16px;background:#fffaf2;padding:12px}.order-box p{margin:6px 0}.order-line{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:7px 0}.order-line:last-child{border-bottom:0}.order-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}.pos-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:12px}.pos-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-bottom:14px}.pos-product{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);background:#fff;border-radius:16px;padding:10px;cursor:pointer}.pos-product:hover{border-color:rgba(8,119,93,.35);box-shadow:0 10px 24px rgba(35,28,19,.08)}.pos-product img,.selected-item>img{width:54px;height:54px;border-radius:12px;background:#f2ede5;object-fit:contain}.pos-product strong,.selected-item strong{display:block}.pos-product small{display:block;color:var(--muted);font-weight:750}.selected-item{grid-template-columns:58px minmax(0,1fr) 100px auto}.selected-item p{margin:4px 0}@media(max-width:920px){.manual-grid,.order-main,.order-detail-grid,.pos-search{grid-template-columns:1fr}.manual-item{grid-template-columns:1fr 96px}.manual-remove{grid-column:1/-1}.manual-footer,.manual-submit{align-items:stretch;flex-direction:column}.manual-submit .btn{width:100%}.pos-results{grid-template-columns:1fr}.pos-product{grid-template-columns:48px 1fr}.pos-product>span:last-child{grid-column:2}.selected-item{grid-template-columns:52px 1fr}.selected-item .item-qty,.selected-item .manual-remove{grid-column:1/-1}.order-actions .btn,.order-actions form,.order-actions select{width:100%}.order-actions form{display:grid}.admin-head{align-items:start;flex-direction:column}.admin-tools .btn{width:100%}}
.pos-shell{display:grid;gap:18px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start}.pos-products,.pos-ticket,.wizard-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:18px;box-shadow:var(--card)}.pos-ticket{position:sticky;top:132px}.pos-titlebar{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:14px}.pos-titlebar h2{margin:0;font-size:24px;letter-spacing:-.03em}.pos-search-input{margin-bottom:12px}.pos-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;max-height:560px;overflow:auto;padding-right:4px}.pos-product{min-height:76px}.pos-product img{width:56px;height:56px}.pos-product span{min-width:0}.pos-product strong{font-size:14px;line-height:1.15}.pos-product small{font-size:12px}.manual-items{display:grid;gap:10px}.selected-item{display:grid;grid-template-columns:54px minmax(0,1fr) 86px auto;gap:10px;align-items:center;background:#fffaf2}.selected-item>img{width:54px;height:54px}.selected-item .field{min-height:42px;padding:8px 10px}.wizard-card{padding:0;overflow:hidden}.wizard-steps{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);background:#fffaf2}.wizard-step{border:0;border-right:1px solid var(--line);background:transparent;padding:14px;font-weight:950;color:var(--muted);cursor:pointer}.wizard-step.active{background:var(--soft);color:var(--accent)}.wizard-pane{display:none;padding:22px}.wizard-pane.active{display:block}.wizard-pane h2{font-size:30px;margin:4px 0 18px;letter-spacing:-.035em}.compact-grid{max-width:760px}.delivery-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:16px}.delivery-choice{display:grid;gap:5px;border:1px solid var(--line);border-radius:18px;background:#fffaf2;padding:14px;cursor:pointer}.delivery-choice:has(input:checked){border-color:rgba(8,119,93,.45);background:var(--soft);color:var(--accent)}.delivery-choice input{accent-color:var(--accent)}.delivery-choice span{font-weight:950}.delivery-choice small{color:var(--muted);font-weight:750}.delivery-panel{border:1px dashed var(--line2);border-radius:18px;padding:14px;margin-top:12px}.wizard-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:16px 22px;background:#fffaf2}@media(max-width:980px){.pos-layout{grid-template-columns:1fr}.pos-ticket{position:static}.wizard-steps{grid-template-columns:repeat(2,1fr)}.selected-item{grid-template-columns:52px 1fr}.selected-item .item-qty,.selected-item .manual-remove{grid-column:1/-1}.wizard-actions{display:grid;grid-template-columns:1fr}.wizard-actions .btn{width:100%}}
/* POS hard reset: compact product picker for admin order create/edit */
#order-admin-form.pos-shell{gap:16px}
#order-admin-form .pos-layout{grid-template-columns:minmax(0,1fr) minmax(320px,380px);gap:16px}
#order-admin-form .pos-products,#order-admin-form .pos-ticket{padding:16px;border-radius:18px;overflow:hidden}
#order-admin-form .pos-titlebar{margin-bottom:10px}
#order-admin-form .pos-titlebar h2{font-size:22px;line-height:1;margin:0}
#order-admin-form .pos-search-input{min-height:44px;margin:0 0 10px}
#order-admin-form .pos-filterbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
#order-admin-form .pos-filterbar .field{min-height:40px;height:40px;padding:7px 10px;border-radius:12px;font-size:14px}
#order-admin-form .pos-results{display:flex!important;flex-direction:column!important;gap:8px!important;max-height:430px;overflow:auto;padding:2px 4px 2px 0;margin:0}
#order-admin-form .pos-product{display:grid!important;grid-template-columns:50px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;width:100%;min-height:66px!important;padding:8px 10px!important;border-radius:14px;text-align:left;background:#fff;overflow:hidden}
#order-admin-form .pos-product img{width:50px!important;height:50px!important;max-width:50px!important;max-height:50px!important;aspect-ratio:1/1!important;object-fit:contain!important;border-radius:11px!important;background:#f2ede5!important;display:block!important;flex:none!important}
#order-admin-form .pos-product strong{font-size:14px!important;line-height:1.15!important;letter-spacing:-.01em;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#order-admin-form .pos-product small{font-size:12px!important;line-height:1.2!important;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
#order-admin-form .pos-product span{min-width:0!important;overflow:hidden}
#order-admin-form .pos-product span:last-child{text-align:right;min-width:88px}
#order-admin-form .manual-items{gap:8px!important}
#order-admin-form .selected-item{display:grid!important;grid-template-columns:48px minmax(0,1fr) 74px 74px!important;gap:8px!important;align-items:center!important;padding:8px!important;min-height:64px!important;overflow:hidden}
#order-admin-form .selected-item>img{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;aspect-ratio:1/1!important;object-fit:contain!important;border-radius:10px!important;display:block!important;flex:none!important}
#order-admin-form .selected-item strong{font-size:13px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#order-admin-form .selected-item p{font-size:12px!important;line-height:1.2!important;margin:2px 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#order-admin-form .selected-item .field{min-height:38px!important;height:38px!important;padding:6px 8px!important;border-radius:11px;text-align:center}
#order-admin-form .selected-item .manual-remove{min-height:38px!important;padding:6px 10px!important;border-radius:999px;font-size:12px}
#order-admin-form .wizard-card{border-radius:18px}
#order-admin-form .wizard-pane{padding:18px}
#order-admin-form .wizard-pane h2{font-size:26px;line-height:1.05}
@media(max-width:980px){
  #order-admin-form .pos-layout{grid-template-columns:1fr!important}
  #order-admin-form .pos-ticket{position:static;order:2}
  #order-admin-form .pos-products{order:1}
  #order-admin-form .pos-results{max-height:340px}
}
@media(max-width:560px){
  #order-admin-form .pos-products,#order-admin-form .pos-ticket{padding:12px;border-radius:16px}
  #order-admin-form .pos-product{grid-template-columns:42px minmax(0,1fr) 72px!important;min-height:58px!important;padding:7px!important;gap:8px!important}
  #order-admin-form .pos-product img{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important}
  #order-admin-form .pos-product strong{font-size:13px!important}
  #order-admin-form .pos-product small{font-size:11px!important}
  #order-admin-form .pos-filterbar{grid-template-columns:1fr;gap:7px}
  #order-admin-form .pos-filterbar .field{min-height:38px;height:38px;font-size:13px}
  #order-admin-form .selected-item{grid-template-columns:42px minmax(0,1fr) 64px!important;grid-template-areas:"img info qty" "remove remove remove"!important}
  #order-admin-form .selected-item>img{grid-area:img;width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important}
  #order-admin-form .selected-item>div{grid-area:info;min-width:0}
  #order-admin-form .selected-item .item-qty{grid-area:qty!important;width:64px}
  #order-admin-form .selected-item .manual-remove{grid-area:remove!important;width:100%}
  #order-admin-form .wizard-steps{grid-template-columns:repeat(2,1fr)}
  #order-admin-form .wizard-step{padding:11px 8px;font-size:13px}
  #order-admin-form .wizard-actions{grid-template-columns:1fr;display:grid}
}

/* Admin orders: compact operational workflow */
.orders-panel{--state-color:#746d64;--state-soft:#f3efe8;--state-border:#d8d0c2;padding:28px}.orders-header{align-items:center;margin-bottom:20px}.orders-header .muted{margin:8px 0 0}.orders-header-actions{align-items:center}.orders-total{display:inline-flex;align-items:center;min-height:46px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface2);font-weight:900;color:var(--muted)}
.orders-filterbar{display:flex;gap:8px;align-items:center;margin:0 0 18px;padding-bottom:4px;overflow-x:auto;scrollbar-width:none}.orders-filterbar::-webkit-scrollbar{display:none}.status-filter{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:8px 13px;border:1px solid transparent;border-radius:999px;color:var(--muted);font-size:14px;font-weight:900;white-space:nowrap;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}.status-filter:hover{transform:translateY(-1px);background:#fff;border-color:var(--line)}.status-filter strong{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:rgba(116,109,100,.1);font-size:12px}.status-filter.active{background:var(--fg);color:#fff}.status-filter--pendiente.active{background:#9a5b08}.status-filter--aprobado.active{background:#2364a8}.status-filter--entregado.active{background:var(--accent)}.status-filter--cancelado.active{background:#a43737}
.order-list{gap:14px}.order-card{--state-color:#746d64;--state-soft:#f3efe8;--state-border:#d8d0c2;padding:0;overflow:hidden;border:1px solid var(--state-border);border-left:5px solid var(--state-color);border-radius:18px;box-shadow:0 10px 28px rgba(35,28,19,.06);animation:order-enter .24s ease both;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.order-card:hover{box-shadow:0 16px 36px rgba(35,28,19,.1);transform:translateY(-1px)}.order-card[data-order-status="pendiente"]{--state-color:#b36a08;--state-soft:#fff4dc;--state-border:#ead5ad}.order-card[data-order-status="aprobado"]{--state-color:#2364a8;--state-soft:#eaf3ff;--state-border:#bfd4ee}.order-card[data-order-status="entregado"]{--state-color:#08775d;--state-soft:#e4f1ec;--state-border:#bddbd1}.order-card[data-order-status="cancelado"]{--state-color:#a43737;--state-soft:#fbeaea;--state-border:#e8bebe}.order-card-header{padding:18px 20px;background:linear-gradient(90deg,var(--state-soft),#fff 30%)}.order-summary{display:grid;grid-template-columns:1.05fr 1.15fr 1.15fr auto;gap:22px;align-items:center}.order-meta,.order-customer,.order-delivery-summary,.order-total-block{display:grid;gap:4px;min-width:0}.order-number{font-size:15px;font-weight:950;letter-spacing:.01em}.order-meta time,.order-customer span,.order-delivery-summary span{color:var(--muted);font-size:13px}.order-customer strong,.order-delivery-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-label{color:var(--muted);font-size:10px!important;font-weight:950;letter-spacing:.15em;text-transform:uppercase}.order-phone{color:var(--accent);font-size:13px;font-weight:800}.order-total-block{justify-items:end}.order-total{font-size:25px;line-height:1;font-weight:950;letter-spacing:-.035em}.status-badge{display:inline-flex;align-items:center;gap:7px;width:max-content;padding:7px 10px;border:1px solid var(--state-border);border-radius:999px;background:var(--state-soft);color:var(--state-color);font-size:12px;font-weight:950}.status-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.status-badge--pendiente{--state-color:#9a5b08;--state-soft:#fff4dc;--state-border:#ead5ad}.status-badge--aprobado{--state-color:#2364a8;--state-soft:#eaf3ff;--state-border:#bfd4ee}.status-badge--entregado{--state-color:#08775d;--state-soft:#e4f1ec;--state-border:#bddbd1}.status-badge--cancelado{--state-color:#a43737;--state-soft:#fbeaea;--state-border:#e8bebe}
.order-details{border-top:1px solid var(--line)}.order-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;cursor:pointer;font-size:13px;font-weight:900;list-style:none}.order-details>summary::-webkit-details-marker{display:none}.order-details[open] .order-details-toggle::after{content:" menos"}.order-details:not([open]) .order-details-toggle::after{content:" detalles"}.order-detail-grid{grid-template-columns:1.2fr 1fr 1fr;gap:0}.order-box{border:0;border-right:1px solid var(--line);border-radius:0;background:#fff;padding:16px 20px}.order-box:last-child{border-right:0}.order-box .kicker{margin:0 0 8px}.order-line{font-size:14px}.order-line span{min-width:0}.order-data-list{display:grid;gap:7px;margin:0}.order-data-list div{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px;font-size:13px;line-height:1.35}.order-data-list dt{color:var(--muted);font-weight:800}.order-data-list dd{margin:0;overflow-wrap:anywhere}.order-details-toggle{color:var(--state-color);font-size:12px;font-weight:900}
.order-workflow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;padding:16px 20px;border-top:1px solid var(--line);background:var(--surface2)}.order-status-control{display:grid;gap:10px}.order-action-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-action-heading>div{display:grid;gap:2px}.order-action-heading>div>strong{font-size:13px}.order-action-heading>.status-badge{display:none}.status-buttons{display:flex;gap:7px;flex-wrap:wrap}.status-option{min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--muted);font-size:13px;font-weight:900;cursor:pointer;transition:color .15s ease,background .15s ease,border-color .15s ease,transform .15s ease}.status-option:hover:not(:disabled){transform:translateY(-1px);border-color:currentColor}.status-option--pendiente{color:#8a530b}.status-option--aprobado{color:#205d9a}.status-option--entregado{color:#08775d}.status-option--cancelado{color:#9a3434}.status-option.active,.status-option:disabled{background:var(--state-soft);border-color:var(--state-border);color:var(--state-color);cursor:default;opacity:1}.order-secondary-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.order-secondary-actions .btn{min-height:40px;padding:9px 13px;font-size:13px;box-shadow:none}.status-note{align-self:center;color:var(--muted);font-size:13px;font-weight:800}.orders-empty{display:grid;gap:5px;padding:28px;border:1px dashed var(--line2);border-radius:16px;text-align:center;color:var(--muted)}.orders-empty strong{color:var(--fg)}
.status-confirm-dialog{width:min(460px,calc(100% - 28px));padding:0;border:0;border-radius:20px;background:var(--surface);box-shadow:0 30px 90px rgba(0,0,0,.28);color:var(--fg)}.status-confirm-dialog::backdrop{background:rgba(22,18,14,.58);backdrop-filter:blur(4px)}.status-confirm-dialog[open]{animation:dialog-enter .18s ease both}.status-confirm-content{padding:24px}.status-confirm-eyebrow{color:var(--danger);font-size:11px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.status-confirm-content h2{margin:8px 0 10px;font-size:27px;letter-spacing:-.035em}.status-confirm-content p{margin:0;color:var(--muted);line-height:1.5}.status-confirm-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:22px}.status-confirm-danger{background:var(--danger)!important;box-shadow:0 12px 26px rgba(163,58,47,.22)!important}
@keyframes order-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes dialog-enter{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:920px){.orders-panel{padding:16px 12px}.orders-header{gap:14px}.orders-header-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}.orders-header-actions .btn{width:auto}.orders-total{justify-content:center}.orders-filterbar{margin-inline:-12px;padding:0 12px 8px}.order-card{border-radius:17px}.order-card-header{padding:15px}.order-summary{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"meta total" "customer customer" "delivery delivery";gap:14px}.order-meta{grid-area:meta}.order-customer{grid-area:customer;padding-top:12px;border-top:1px solid rgba(116,109,100,.14)}.order-delivery-summary{grid-area:delivery;padding-top:12px;border-top:1px solid rgba(116,109,100,.14)}.order-total-block{grid-area:total}.order-total{font-size:23px}.order-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;cursor:pointer;font-size:14px;font-weight:900;list-style:none}.order-details>summary::-webkit-details-marker{display:none}.order-details[open] .order-details-toggle::after{content:" menos"}.order-details:not([open]) .order-details-toggle::after{content:" detalles"}.order-detail-grid{grid-template-columns:1fr}.order-box{border-right:0;border-bottom:1px solid var(--line);padding:15px}.order-box:last-child{border-bottom:0}.order-workflow{grid-template-columns:1fr;padding:15px;gap:14px}.order-action-heading>.status-badge{display:inline-flex}.status-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.status-option{min-height:46px}.order-secondary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.order-secondary-actions .btn{min-width:0;text-align:center;line-height:1.15;padding-inline:9px}.order-card:hover{transform:none}}
@media(max-width:560px){.orders-header-actions{grid-template-columns:1fr}.orders-header-actions .btn,.orders-total{width:100%}.order-secondary-actions{grid-template-columns:1fr}.order-secondary-actions .btn{min-height:44px}.order-data-list div{grid-template-columns:78px minmax(0,1fr)}.status-confirm-actions{grid-template-columns:1fr}.status-confirm-content{padding:21px}.status-confirm-actions .btn{width:100%}}
@media(max-width:920px){.admin-mode .nav{min-height:64px;flex-wrap:nowrap}.admin-mode .nav>.links,.admin-mode .nav>.search,.admin-mode .cart-trigger{display:none}.admin-mode .adminbar .wrap{padding-block:8px}}
