/* MADE OS · visual refresh. Presentation only; no workflow or permission changes. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29262e;background:#f5f5f7;--wine:#a34570;--pink:#f7ecf2;--line:#e7e5eb;--muted:#706a78;font-synthesis:none}
body{background:#f5f5f7;color:#29262e;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}button{border-color:var(--line);border-radius:10px;padding:10px 15px;min-height:42px;font-size:13px;font-weight:550;transition:background-color .15s,border-color .15s,box-shadow .15s}button:hover{background:#f9f5f8;border-color:#cdb8c6}button:disabled{cursor:not-allowed}.primary{background:var(--wine);border-color:var(--wine);color:white;box-shadow:0 2px 5px #a3457014}.primary:hover{background:#8d3b60;border-color:#8d3b60;color:white}.quiet{background:transparent;box-shadow:none}.danger,.danger-text{color:#a82343}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a3457080;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #a3457055;outline-offset:2px}
.app{grid-template-columns:220px minmax(0,1fr)}.sidebar{background:#faf9fb;border-color:var(--line);padding:30px 18px 20px}.brand{gap:10px;padding:0 10px;color:#2c2832;font-size:20px;font-weight:650;letter-spacing:-.7px}.brand img{width:44px;height:44px;background:#fff;border:1px solid #eee4e8;object-fit:contain}.brand-copy{line-height:1.2}.brand small{font-size:9px;letter-spacing:1.35px;font-weight:500;color:#7e7480;margin-top:7px}.sidebar nav{margin-top:34px;gap:5px}.sidebar nav button{font-size:13px;font-weight:500;border-radius:11px;padding:11px 12px;min-height:43px;gap:11px;background:transparent;color:#6d6674}.sidebar nav button:hover{background:#efedf2}.sidebar nav button.active{background:var(--pink);color:#963e65;box-shadow:none;font-weight:600}.nav-icon{width:19px;flex:0 0 19px;font-size:17px;font-weight:400;color:inherit}.account{margin-top:auto;padding:18px 10px 0;border-color:var(--line);font-size:12px}.account strong{font-weight:600}.account small{font-size:11px}.account button{font-size:12px;padding:9px 0;min-height:38px}
.topbar{background:#fbfafc;border-color:var(--line);padding:16px 36px;min-height:72px}.topbar span{font-size:12px}.topbar button{font-size:12px;min-height:36px;padding:8px 12px}.status-online{background:#edf5f0;color:#327050;font-size:11px!important;border-radius:8px;padding:6px 9px}.status-offline{background:#fff3dd;color:#886021}.banner{background:#f1eaf0;border-color:#e4d8e1;color:#75536a;padding:8px 24px;font-size:12px}.page{max-width:1440px;padding:36px 38px 55px}.heading{gap:20px;margin-bottom:28px}.heading p{font-size:13px;line-height:1.6}.heading .actions{margin-top:0}h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2;font-weight:650;margin-bottom:9px}h2{font-size:19px;letter-spacing:-.4px;font-weight:620;margin-bottom:17px}h3{font-size:16px;letter-spacing:-.2px;font-weight:600}.sales-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:650}
.panel,.metric{border:1px solid #eae8ee;background:white;border-radius:19px;box-shadow:0 3px 18px #29203503;padding:25px}.metrics{gap:18px;margin-bottom:28px}.metric:first-child{background:white;border-color:#eae8ee;color:#29262e}.metric .value{font-size:30px;font-weight:600;letter-spacing:-.9px}.metric small{font-size:12px;color:var(--muted)}.metric:first-child .value{color:var(--wine)}.bar{background:#eeebf1;height:8px}.bar i{background:var(--wine)}.block{border-color:var(--line)}.block small,.hint{font-size:12px;color:var(--muted);line-height:1.6}.grid2{gap:24px}.toolbar{gap:14px;align-items:end}.toolbar label{font-size:12px;font-weight:500}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:9px;background:white;color:#38323e;padding:10px 12px;min-height:42px}
.table-wrap{border-radius:16px;border:1px solid var(--line);background:white}th{font-size:11px;letter-spacing:.15px;font-weight:500;background:#faf9fc;color:#756e7d;padding:15px 17px;border-bottom:1px solid var(--line)}td{font-size:13px;padding:18px 17px;border-color:#f0edf3;line-height:1.5}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfbfc}td .sub{font-size:12px;color:#776e7f;margin-top:4px}td strong{font-weight:600}td button{font-size:12px;min-height:38px;padding:8px 12px}.pill{font-size:11px;line-height:1.4;padding:5px 8px;font-weight:550;border-radius:7px;background:#efedf3;color:#6b6374}.pill.en_produccion,.pill.en_proceso{background:#fbf1df;color:#875e20}.pill.listo_ensamble,.pill.listo_envio{background:#ebf1fa;color:#426894}.pill.entregado,.pill.listo{background:#eaf5ee;color:#2c714c}.pill.cancelado,.pill.no_entregado,.changed{background:#fbe9ed;color:#9e2f4a}.changed{font-size:11px;font-weight:600;padding:5px 8px}.late{background:#fff7f8;border-left:3px solid #c84d68}
.field{font-size:13px;font-weight:500;color:#67606e;margin-bottom:17px}.field input,.field select,.field textarea{font-size:14px;background:#faf9fc;color:#332e3a;border:1px solid #e3dfe8;border-radius:10px;padding:11px 12px;min-height:44px;margin-top:7px}.field input::placeholder,.field textarea::placeholder{color:#817889}.field textarea{min-height:90px}.field input[type=file]{background:white}.field:has(input[type=checkbox]){font-size:14px;color:#514b59;line-height:1.5}.field input[type=checkbox]{width:20px;min-height:20px;flex-shrink:0}.form-grid{gap:20px}.total{font-size:27px;color:#332b39;font-weight:600;letter-spacing:-.6px}.alert{border-radius:11px;background:#fcf3e2;color:#866127;font-size:13px;line-height:1.6;padding:14px 17px}.alert.error{background:#fcecef;color:#a32343}.alert.success,.success{background:#edf7f0;color:#2e6d48}.form-foot{gap:18px}
.tabs{gap:6px}.tabs button{font-size:12px;min-height:40px}.tabs button.active{background:var(--pink);color:#974267;border-color:#dfc4d2}.board{gap:18px}.lane{background:#eeedf2;border-radius:17px;padding:15px}.lane h2{font-size:16px;align-items:center}.card{background:white;border:1px solid #e6e2eb;border-radius:15px;padding:21px;box-shadow:0 2px 9px #30203503}.card .folio{font-size:16px;font-weight:650;color:var(--wine)}.card .meta,.command-names{font-size:12px;line-height:1.6}.card p{font-size:14px;line-height:1.6}.card footer button{font-size:12px;padding:10px;min-height:42px}.operation-card .delivery-time{font-size:24px;font-weight:550;color:#37303f;letter-spacing:-.5px}.operation-card footer{border-color:var(--line)}.area-progress{gap:7px}.area-progress span{background:#f4f2f7;font-size:11px;padding:5px 8px;border-radius:6px}.delivery-grid,.operation-grid{gap:20px}.delivery-card h2{font-size:20px}.delivery-result{border-color:var(--line)}.row-operations .actions{gap:7px}.row-operations .field{font-size:12px}
.modal{background:#2c243d4d;backdrop-filter:blur(5px)}.sheet{box-shadow:-12px 0 60px #21152c16;padding:30px;background:#fff}.sheet-head{border-color:var(--line);background:#fff}.sheet-head h2{font-size:23px;font-weight:600}.sheet .section{border-color:var(--line)}.details{font-size:14px;gap:20px}.details dt,.timeline small{font-size:12px}.timeline li{border-color:#ddc9d5}.preview-image,.reference-photo{border-radius:13px}.data-list{border-color:var(--line);font-size:14px}.data-list small{font-size:12px}#toast{background:#322b3b;border-radius:12px;font-size:13px;line-height:1.5;box-shadow:0 8px 30px #21152c22}
.login{max-width:430px;margin:7vh auto;padding:34px;background:white;border:1px solid var(--line);border-radius:24px;box-shadow:0 15px 65px #30203507}.login .brand{padding:0;gap:16px}.login .brand img{width:94px;height:94px}.login .brand-copy{font-size:24px;font-weight:650;color:#332b39}.login h1{font-size:24px;color:#322b38;font-weight:600}.login>p.muted{font-size:13px;line-height:1.6}.login .field{font-size:12px}.login .hint{font-size:12px}.login button{min-height:44px}
/* Sales workspace: same data/actions, quieter surfaces and a compact step control. */
.sales-detail-layout{grid-template-columns:minmax(0,1fr) 285px;gap:27px}.sales-side{position:sticky;top:20px;padding:24px}.sales-side h2{font-size:16px;letter-spacing:-.25px}.sales-side p{font-size:13px}.sales-side .hint{font-size:11px;line-height:1.65}.sales-side .field{font-size:12px}.sales-side>button{font-size:12px}.sales-side hr{margin:21px 0;border-color:var(--line)}.sales-missing{font-size:12px;line-height:1.8;max-height:220px;padding-left:18px}.sales-main>.tabs.sales-capture-nav{background:#eae7ef;padding:4px;border-radius:12px;gap:4px!important;margin-bottom:24px}.sales-capture-nav button{border:0!important;border-radius:9px;color:#776e81;background:transparent;font-size:12px!important;min-height:38px;box-shadow:none}.sales-capture-nav button.active{background:white;color:#633b56;box-shadow:0 1px 5px #32243e09}.sales-guide{border:0;background:#f0eaf0;color:#79536d;padding:12px 17px;border-radius:12px;gap:15px;margin:12px 0 24px}.sales-guide strong{font-size:12px;font-weight:550}.sales-guide button{background:#ffffffa0;border-color:transparent;padding:8px 12px;min-height:36px;font-size:11px}.sales-line{padding:25px;margin-top:18px}.sales-line h2{font-size:18px}.sales-component{background:white;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0 0;margin-top:22px}.sales-component>summary{color:#38303f;font-size:14px;gap:10px!important}.sales-component>summary small{font-size:11px;color:#79707f;line-height:1.7}.sales-component>summary::before{color:#97899e}.sales-component>summary .sales-area{font-size:10px;font-weight:550;color:#995079;background:#f8eef4;padding:4px 8px;border-radius:6px}.sales-component .form-grid{gap:18px}.sales-component .field{font-size:12px}.sales-component .field textarea{min-height:74px}.sales-component summary{color:#8b5073;font-size:12px}.sales-add-pieces{background:#f6f3f8;border-radius:12px;padding:16px}.sales-step-footer{background:#f5f5f7eF;border:0;border-radius:10px;padding:12px 0;backdrop-filter:blur(12px)}.sales-step-footer button{width:auto;min-width:230px;display:block;margin-left:auto}.sales-list-tabs{gap:5px;background:#eae7ef;padding:4px;border-radius:12px;width:fit-content;max-width:100%;margin:24px 0}.sales-list-tabs button{border:0;background:transparent;min-height:38px;font-size:12px;padding:9px 15px;color:#786e82;border-radius:9px;gap:9px}.sales-list-tabs button.active{background:white;color:#51384c;box-shadow:0 1px 5px #2b1e3509}.sales-list-tabs span{background:transparent;padding:0;font-size:11px;color:inherit;opacity:.7}.sales-list-tabs button:last-child{margin-left:0}.sales-register .table-wrap{border-radius:17px}.sales-register td{vertical-align:middle}.sales-search{gap:15px}.sales-search .field{margin-bottom:0}.sales-search input{min-width:240px}.sales-search button{font-size:12px}.sales-kpis{gap:17px}.sales-kpis>div{border-color:var(--line);border-radius:17px;padding:21px;background:white}.sales-kpis strong{font-weight:600;font-size:28px;color:#403347}.sales-kpis span{font-size:12px}.sales-next{background:#f6f3f8;border-radius:10px}.sales-product{border-radius:12px;padding:17px;background:white}.sales-product small{font-size:12px}.sales-product-grid{gap:12px}.sales-narrow{max-width:800px}.sales-main form{border-color:var(--line)}.sales-cobro-record{border-color:var(--line);border-radius:13px;padding:19px}.sales-cobro-record small{font-size:12px}.sales-document-preview{background:#faf7fb;border-color:#e6d9e5;border-radius:15px;padding:20px}.sales-document-frame,.sales-proof-frame{border-color:var(--line)}
.agreement-intro{background:white;border-color:var(--line)}.agreement-intro h2{font-size:26px}.agreement-status>div{border-color:var(--line);border-radius:12px;background:#faf9fc}.agreement-status strong{font-weight:600}.agreement-pending{background:#fcf5e9;border-color:#f0e2c8;border-radius:13px}.agreement-pending li{font-size:13px}.agreement-piece{background:white;border-color:var(--line);border-radius:13px;padding:21px}.agreement-critical{background:#f8edf3;color:#834665;border-radius:8px}.agreement-warning{background:#fcf3df;border-radius:9px}.sales-price-breakdown>div{font-size:13px;border-color:var(--line)}.sales-price-final{color:#3a2f43}.catalog-fields{border-color:var(--wine);background:#faf8fb;border-radius:8px}.catalog-line{border-color:var(--line)}
@media(min-width:1500px){.page{padding-top:42px}.sales-detail-layout{gap:30px;grid-template-columns:minmax(0,1fr) 295px}}
@media(max-width:1200px){.app{grid-template-columns:195px minmax(0,1fr)}.page{padding:29px 25px 45px}.topbar{padding:16px 25px}.sidebar{padding:27px 12px 20px}.brand{font-size:18px;padding:0 6px}.brand img{width:39px;height:39px}.sidebar nav button{font-size:12px;padding:10px}.sales-detail-layout{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.sales-side{padding:20px}.sales-component .form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:1000px){.sales-detail-layout{grid-template-columns:1fr}.sales-side{position:static}.sales-missing{max-height:none}.sales-main .tabs{overflow:auto}.sales-guide{align-items:flex-start}.grid2{grid-template-columns:1fr}.sales-component .form-grid{grid-template-columns:1fr 1fr}.agreement-pieces{grid-template-columns:1fr}}
@media(max-width:760px){.app{display:block}.sidebar{position:static;height:auto;background:#faf9fb;padding:14px 15px 10px;border-bottom:1px solid var(--line)}.sidebar .brand{justify-content:flex-start;font-size:18px;gap:9px}.sidebar .brand img{width:36px;height:36px}.sidebar nav{display:flex;overflow:auto;gap:5px;margin-top:14px;padding-bottom:3px}.sidebar nav button{font-size:12px;min-height:44px;padding:10px 12px;gap:8px;flex-shrink:0;white-space:nowrap}.nav-icon{width:17px;flex-basis:17px}.account{display:none}.topbar{padding:12px 16px;min-height:54px;gap:8px}.topbar>span{font-size:11px}.topbar button{padding:8px;min-height:38px}.status-online{font-size:10px!important}.page{padding:25px 16px 35px}.heading{align-items:flex-start;gap:15px;margin-bottom:22px}h1{font-size:28px;letter-spacing:-.8px}.heading p{font-size:12px}.heading .actions{gap:7px}.heading .actions button{font-size:12px;min-height:44px}.panel{padding:20px;border-radius:16px}.metrics{gap:12px}.metric{padding:18px 15px;border-radius:16px}.metric .value{font-size:26px}.metric small{font-size:11px}.field input,.field select,.field textarea{font-size:16px}.field{font-size:12px}.form-grid,.sales-component .form-grid,.details,.grid2.equal{grid-template-columns:1fr}.sales-main>.tabs.sales-capture-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px!important;padding:4px;overflow:visible}.sales-capture-nav button{font-size:11px!important;padding:9px 3px!important;min-height:44px;min-width:0;line-height:1.4}.sales-guide{padding:13px 15px;gap:9px}.sales-guide button{min-height:40px}.sales-step-footer{position:static;background:transparent;padding:12px 0}.sales-step-footer button{width:100%;min-height:46px;min-width:0}.sales-side{padding:21px}.sales-line{padding:20px}.sales-component{padding:17px 0 0}.sales-list-tabs{width:100%;flex-wrap:wrap;gap:3px}.sales-list-tabs button{flex:1;font-size:11px;padding:8px 7px;min-height:44px;gap:5px}.sales-list-tabs button:last-child{margin-left:0}.sales-search input{min-width:0}.toolbar{gap:11px}.toolbar label{min-width:120px}.board{gap:12px}.lane{min-width:86vw;padding:13px;border-radius:15px}.card{padding:18px;border-radius:13px}.card footer button{min-height:44px}.login{margin:25px 16px;padding:28px 24px;max-width:none}.login .brand img{width:88px;height:88px}.sheet{padding:23px}.sheet-head{top:-23px}.modal{backdrop-filter:blur(3px)}.banner{padding:8px 16px;font-size:11px}.sales-product-grid{grid-template-columns:1fr}.sales-side>button{min-height:44px}.operation-grid,.delivery-grid{gap:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Consistent line icons; navigation labels remain accessible text. */
@supports (mask-image:url("data:image/svg+xml,%3Csvg/%3E")){
.sidebar button[data-view="sales"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="sales"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%207h14l1%2014H4L5%207Z%20M9%207V5a3%203%200%200%201%206%200v2%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="sale"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="sale"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%207h14l1%2014H4L5%207Z%20M9%207V5a3%203%200%200%201%206%200v2%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="dashboard"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="dashboard"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h7v7H3z%20M14%203h7v7h-7z%20M3%2014h7v7H3z%20M14%2014h7v7h-7z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="orders"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="orders"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204h14a2%202%200%200%201%202%202v14H3V6a2%202%200%200%201%202-2%20M3%209h18%20M8%202v5%20M16%202v5%20M7%2013h3%20M14%2013h3%20M7%2017h3%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="assembly"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="assembly"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-5%209%205-9%205-9-5Z%20M3%207v10l9%205%209-5V7%20M12%2012v10%20M7%204.8l10%205.5%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="deliveries"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="deliveries"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%205h12v12H2z%20M14%209h4l4%204v4h-8%20M7%2019a2%202%200%201%200%200-4%202%202%200%200%200%200%204%20M18%2019a2%202%200%201%200%200-4%202%202%200%200%200%200%204%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="commands"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="commands"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-5%209%205-9%205-9-5%20M3%2012l9%205%209-5%20M3%2017l9%205%209-5%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="dates"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="dates"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204h14a2%202%200%200%201%202%202v14H3V6a2%202%200%200%201%202-2%20M3%209h18%20M8%202v5%20M16%202v5%20M7%2013h3%20M14%2013h3%20M7%2017h3%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="history"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="history"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18%20M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="catalog-sale"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="catalog-sale"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%202.5%207.5L22%2012l-7.5%202.5L12%2022l-2.5-7.5L2%2012l7.5-2.5L12%202Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.sidebar button[data-view="catalogs"] .nav-icon{font-size:0;display:inline-flex;height:19px;align-items:center}.sidebar button[data-view="catalogs"] .nav-icon::before{content:"";display:block;width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204v16%20M12%204v16%20M20%204v16%20M1%208h6%20M9%2015h6%20M17%2010h6%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
}

.sale-confirmation{display:grid;gap:6px}.sale-confirmation .folio{font-size:24px;font-weight:650}

/* Production queues keep completed work in a separate history. */
.command-board{grid-template-columns:repeat(2,minmax(0,1fr))}.command-history{display:block}.command-history .lane{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.command-history .lane>h2,.command-history .lane>.empty{grid-column:1/-1}.command-history .card{margin:0}.command-change{margin:12px 0}.modification-fields{font-size:13px;line-height:1.6}.modification-fields>div{margin:12px 0}.modification-fields dt{font-weight:600}.modification-fields dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.edit-policy{max-width:65ch}
@media(max-width:760px){.command-history .lane{min-width:0;grid-template-columns:1fr}.command-history{overflow:visible}.command-board:not(.command-history){grid-template-columns:none}}

/* Estado de pedidos (Ventas) */
.status-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.status-card{background:#fff;border:1px solid #e6e2eb;border-radius:15px;padding:18px;display:grid;gap:10px}
.status-card header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.status-card header strong{color:var(--wine);font-size:16px}
.status-next{margin:0;font-weight:600;font-size:14px}
.status-card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:13px}
.status-card dt{color:var(--muted)}
.status-card dd{margin:0;overflow-wrap:anywhere}
.status-areas{display:flex;flex-wrap:wrap;gap:6px}
.area-chip{font-size:12px;padding:4px 9px;border-radius:999px;background:#f1eff4;color:#4a4450}
.area-chip.listo{background:#e6f4ea;color:#256a3f}
.area-chip.en_proceso{background:#fff4dc;color:#8a5a00}
