:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#eef3f8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:0;border-radius:8px;background:#0b55a4;color:#fff;padding:9px 14px;cursor:pointer;font-weight:700}button:hover{filter:brightness(1.05)}button:disabled{opacity:.45;cursor:not-allowed}input,select{width:100%;padding:10px 12px;border:1px solid #d8e2ee;border-radius:8px;background:#fff;color:#132033}code{background:#f0f4f8;border-radius:6px;padding:3px 7px;color:#4b5870;font-size:12px}small{display:block;color:#7c8aa0;margin-top:3px}.shell{display:flex;height:100vh;overflow:hidden}aside{width:226px;background:#0b4f98;color:#fff;display:flex;flex-direction:column;gap:6px;box-shadow:1px 0 #0c4a8c2e}aside button{width:100%;background:transparent;color:#ffffff94;text-align:left;font-weight:600;border-radius:0;padding:14px 18px;display:flex;align-items:center;gap:10px}aside button span{width:18px;text-align:center}aside button.active,aside button:hover{background:#ffffff24;color:#fff;filter:none}main{flex:1;overflow:auto;padding:28px 30px 48px;background:#eef3f8}.logo{font-size:20px;font-weight:900;padding:28px 18px 30px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}.logo small{color:#ffffff6b;text-transform:uppercase;font-size:11px;letter-spacing:.08em;font-weight:500}.export-btn{margin:auto 8px 14px;width:calc(100% - 16px);justify-content:center;border-radius:8px;background:#ffffff1f;color:#fff;border:1px solid rgba(255,255,255,.16)}.profile{border-top:1px solid rgba(255,255,255,.1);padding:14px 12px 18px;display:grid;grid-template-columns:34px 1fr 28px;gap:10px;align-items:center}.profile b{display:block;font-size:13px}.profile small{color:#ffffff9e;font-size:12px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:#ffffff2e;font-weight:800}.profile .logout-btn{padding:0;height:28px;justify-content:center;border-radius:50%;color:#ffffffa6}.header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px;gap:20px}.header h1{margin:0;font-size:25px;letter-spacing:-.03em}.header p{margin:4px 0 0;color:#66768c}.primary-action{min-width:140px;justify-content:center;padding:11px 18px;box-shadow:0 1px 2px #0b55a41f}.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.tabs button{width:auto;background:#f3f7fb;color:#637188;border:1px solid #dbe5ef;padding:10px 18px;font-weight:700}.tabs button.active{background:#0b55a4;border-color:#0b55a4;color:#fff}.welcome{margin-bottom:28px}.welcome h1{margin:0;font-size:25px;letter-spacing:-.03em;color:#172033}.welcome p{margin:8px 0 0;color:#637188;font-size:14px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{min-height:154px;background:#fff;color:#172033;text-align:left;box-shadow:0 2px 8px #0f172a14;border:1px solid #dde7f2;border-top:4px solid #0b55a4;padding:22px;display:block}.stat span{display:block;color:#5e6d84;font-size:14px;font-weight:500}.stat .stat-icon{margin-bottom:12px;font-size:20px}.stat strong{display:block;margin:0 0 4px;font-size:36px;line-height:1;color:#0b4f98;letter-spacing:-.03em}.stat.violet{border-top-color:#7c3aed}.stat.violet strong{color:#7c3aed}.stat.red{border-top-color:#ef4444}.stat.red strong{color:#ef4444}.stat.amber{border-top-color:#f59e0b}.stat.amber strong{color:#f59e0b}.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dashboard-grid{margin-bottom:16px}.panel{background:#fff;border:1px solid #dde7f2;border-radius:11px;box-shadow:0 2px 8px #0f172a14;padding:26px}.panel h3{margin:0;font-size:16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.ghost-btn{width:auto;background:#fff;color:#0b55a4;border:1px solid #0b55a4;padding:7px 13px;font-size:13px;border-radius:9px}.row{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid #edf2f7;gap:16px}.row:last-child{border-bottom:0}.muted{color:#7c8aa0}.danger{color:#dc2626}.strong{font-weight:800}.danger-btn{background:#fee2e2;color:#b91c1c}.table-wrap{padding:26px;overflow:auto}table{width:100%;min-width:680px;border-collapse:collapse}th,td{text-align:left;padding:16px;border-bottom:1px solid #eef3f8;vertical-align:middle}th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#66768c;background:transparent;font-weight:800}th:last-child{text-align:right}td{color:#334158}tbody tr:last-child td{border-bottom:0}.compact-table th{background:transparent;padding:12px 16px}.compact-table td{padding:13px 16px;color:#344158}.compact-table tr:last-child td{border-bottom:0}.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.actions button{padding:8px 14px;font-size:14px;background:#fff;color:#0b55a4;border:1px solid #0b55a4}.actions .danger-btn{background:#fff;color:#ef4444;border-color:#fca5a5}.badge{display:inline-block;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#e2e8f0;color:#475569}.badge.ok,.badge.OK,.badge.completado{background:#dcfce7;color:#15803d}.badge.bajo,.badge.stock.bajo,.badge.cancelado{background:#fee2e2;color:#dc2626}.badge.pendiente{background:#fef3c7;color:#a16207}.badge.admin{background:#ede9fe;color:#6d28d9}.badge.operador{background:#dbeafe;color:#1d4ed8}.stock-stepper{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}.stock-stepper button{width:28px;height:28px;display:grid;place-items:center;padding:0;background:#fff;color:#475569;border:1px solid #d8e2ee;border-radius:7px;font-size:17px;line-height:1}.stock-stepper b{min-width:26px;text-align:center}.stock-stepper span{color:#7c8aa0;font-size:12px}.client-stock h3{margin-bottom:18px}.client-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.client-card{min-height:106px;background:#f8fafc;color:#172033;text-align:left;border:1px solid #e2eaf3;box-shadow:none;padding:18px 16px;display:block}.client-card b{display:block;margin-bottom:8px}.client-card span{display:block;color:#5e6d84;font-weight:500}.client-card small{color:#ef4444;margin-top:8px}.bundle-grid{display:grid;grid-template-columns:repeat(5,minmax(260px,1fr));gap:16px;align-items:start}.bundle-card{background:#fff;border:1px solid #dde7f2;border-radius:11px;box-shadow:0 2px 8px #0f172a14;padding:26px;min-height:360px;display:flex;flex-direction:column}.bundle-card h3{margin:0 0 8px;font-size:16px;line-height:1.35;text-transform:uppercase}.bundle-card a{color:#0b55a4;font-weight:800;font-size:13px;margin-bottom:8px;text-decoration:none}.bundle-card p{margin:0 0 14px;color:#66768c;text-transform:uppercase}.bundle-items{background:#f7f9fc;border:1px solid #edf2f7;border-radius:9px;overflow:hidden;margin-bottom:16px}.bundle-items div{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 12px;border-bottom:1px solid #e9eef5;color:#43516a}.bundle-items div:last-child{border-bottom:0}.bundle-items b{color:#0b4f98;white-space:nowrap}.bundle-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:auto}.bundle-actions button{background:#fff;color:#0b55a4;border:1px solid #0b55a4;padding:10px 14px}.bundle-actions .danger-btn{color:#ef4444;border-color:#fca5a5}.modal-bg{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:26px;background:#141c2880;z-index:20}.modal{width:min(828px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;box-shadow:0 30px 80px #0f172a47;padding:52px}.modal.wide{width:min(1116px,96vw)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:44px}.modal-head h2{margin:0;font-size:29px;line-height:1;letter-spacing:-.03em}.icon{width:38px;height:38px;display:grid;place-items:center;padding:0;background:transparent;color:#8794a8;font-size:34px;line-height:1;font-weight:400}.field{display:block;margin-bottom:13px}.field span{display:block;font-size:21px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#66768c;margin-bottom:11px}.field input,.field select{min-height:68px;border-radius:13px;padding:15px 22px;border-color:#dbe4ee;color:#172033;font-size:26px;box-shadow:inset 0 0 0 1px #dbe4ee66}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.form-grid button{grid-column:1 / -1}.product-form{display:grid;gap:18px}.product-form .field{margin-bottom:0}.product-form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.modal-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:42px}.modal-actions button{min-width:150px;min-height:68px;padding:14px 24px;border-radius:13px;font-size:24px}.secondary-btn{background:#fff;color:#0b55a4;border:2px solid #0b55a4}.bundle-form{display:grid;gap:18px}.bundle-form .field{margin-bottom:0}.bundle-products{margin-top:8px;padding-top:28px;border-top:1px solid #edf2f7}.bundle-products h3{margin:0 0 18px;font-size:21px;text-transform:uppercase;letter-spacing:.08em;color:#66768c}.bundle-add-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 130px;gap:14px;margin-bottom:16px}.bundle-add-row select,.bundle-add-row input{min-height:74px;border-radius:13px;padding:15px 22px;border-color:#dbe4ee;color:#172033;font-size:26px}.bundle-add-row button{min-height:74px;border-radius:13px;font-size:24px}.order-form{display:grid;gap:18px}.order-form .field{margin-bottom:0}.order-add-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 74px;gap:14px;margin-bottom:16px}.order-add-row select,.order-add-row input{min-height:74px;border-radius:13px;padding:15px 22px;border-color:#dbe4ee;color:#172033;font-size:26px}.order-add-row button{min-height:74px;border-radius:13px;font-size:30px}.order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.order-actions button{min-width:40px;height:34px;padding:0 12px;border-radius:8px;background:#fff;border:1px solid #0b55a4;color:#0b55a4}.order-actions .complete-btn{min-width:34px;background:#16a34a;border-color:#16a34a;color:#fff}.order-actions .cancel-btn{width:auto;color:#ef4444;border-color:#fca5a5;font-size:14px}.order-actions .delete-order-btn{min-width:24px;border:0;background:transparent;color:#8fa0b6;font-size:22px;font-weight:400}.bundle-edit-list{border:1px solid #e3ebf4;border-radius:12px;overflow:hidden;background:#f8fafc}.bundle-edit-list div{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;gap:16px;align-items:center;padding:20px 24px;border-bottom:1px solid #e3ebf4;font-size:25px;color:#334158}.bundle-edit-list div:last-child{border-bottom:0}.bundle-edit-list b{color:#0b4f98;font-size:29px;white-space:nowrap}.bundle-edit-list button{padding:0;background:transparent;color:#ef4444;font-size:32px;font-weight:400}.empty-products{margin:0;color:#91a0b4;font-size:24px}.mini-list{display:grid;gap:8px;margin:8px 0 16px}.mini-list>div{display:grid;grid-template-columns:1fr 88px 38px;align-items:center;gap:8px;padding:8px;background:#f8fafc;border:1px solid #edf2f7;border-radius:8px}.mini-list button{padding:8px;background:#fee2e2;color:#b91c1c}.login{min-height:100vh;display:grid;place-items:center;padding:18px;background:linear-gradient(135deg,#054798,#092653)}.login-card{width:min(390px,100%);background:#fff;border-radius:18px;padding:30px;box-shadow:0 35px 90px #00000059}.login-card h1{margin:10px 0 2px;text-align:center}.login-card p{margin:0 0 22px;text-align:center;color:#66768c}.brand-icon{width:54px;height:54px;display:grid;place-items:center;margin:0 auto;border-radius:14px;background:#054798;color:#fff;font-weight:900}.error{padding:10px 12px;background:#fee2e2;color:#b91c1c;border-radius:8px;margin-bottom:12px}.loading{height:100vh;display:grid;place-items:center;color:#054798;font-weight:900}@media(max-width:900px){.shell{display:block;height:auto}aside{width:auto;min-height:auto}aside button{border-radius:0}main{padding:18px}.stats,.grid.two,.client-cards,.bundle-grid{grid-template-columns:1fr}.stat{min-height:auto}.form-grid{grid-template-columns:1fr}.modal{padding:28px;border-radius:20px}.modal-head{margin-bottom:26px}.modal-head h2{font-size:24px}.field span{font-size:14px}.field input,.field select{min-height:52px;font-size:18px}.product-form-row,.bundle-add-row,.order-add-row{grid-template-columns:1fr}.bundle-add-row select,.bundle-add-row input,.bundle-add-row button,.order-add-row select,.order-add-row input,.order-add-row button{min-height:52px;font-size:18px}.bundle-edit-list div{font-size:18px;padding:14px 16px}.bundle-edit-list b{font-size:20px}.modal-actions{margin-top:24px}.modal-actions button{min-width:0;min-height:52px;font-size:18px}.profile{grid-template-columns:34px 1fr 28px}}
