@media screen{
.erp-density .erp-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:nowrap}
.erp-density .erp-row-actions>a{display:inline-flex;min-height:44px;align-items:center;padding:6px 8px;white-space:nowrap}
.erp-density .erp-row-actions>details{flex:none}
.erp-density{min-width:0}
.erp-density h1{font-size:24px;line-height:1.25}
.erp-density .mb-5,.erp-density .mb-6{margin-bottom:12px}
.erp-density .note .card{padding:14px;margin:12px 0;border-radius:10px}
.erp-density .note h2{font-size:16px;margin-bottom:10px}
.erp-density .note .muted{font-size:13px;line-height:1.4}
.erp-density .note .grid{gap:10px 14px}
.erp-density .note .actions{gap:6px}
.erp-density .note .btn{min-height:44px;padding:8px 12px;font-size:13px}
.erp-density .note .line{padding-top:8px;padding-bottom:8px}
.erp-density .note .summary p{padding:4px 0}
.erp-density .note .total{font-size:24px}
.erp-density table{font-size:13px;line-height:1.35}
.erp-density table th{padding:8px 10px}
.erp-density table td{padding:6px 10px;vertical-align:middle}
.erp-density table td a,.erp-density table td button{min-height:44px;align-items:center}
.erp-density table td>a{display:inline-flex;padding:6px 8px}
.erp-density table td.text-right{white-space:normal}
.erp-density table .space-y-2>:not([hidden])~:not([hidden]){margin-top:2px}
.erp-density .collection-toggle>summary,.erp-density .customer-more>summary{display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;border:1px solid #cbd5e1;border-radius:7px;cursor:pointer;font-size:13px;font-weight:600;white-space:nowrap}
.erp-density .collection-toggle>summary{background:#047857;color:white;border-color:#047857}
.erp-density .collection-toggle[open]>summary{margin-bottom:6px}
.erp-density .collection-toggle form.collection-form{min-width:260px!important;max-width:340px}
.erp-density .customer-more{min-width:100px;max-width:360px;white-space:normal}
.erp-density .customer-more dl{min-width:220px;padding:8px 0;text-align:left}
.erp-density .customer-more dt{font-size:12px;font-weight:600;margin-top:6px}
.erp-density .customer-more dd{margin:0;overflow-wrap:anywhere}
.erp-density .field-help{margin:4px 0}
.erp-density .field-help summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;font-size:12px;color:#475569;text-decoration:underline}
.dark .erp-density .field-help summary{color:#cbd5e1}
.erp-density .field-help p{margin:4px 0;font-size:12px;line-height:1.4}
.erp-density .production-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.erp-density .production-task-grid>a{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:72px;padding:10px 12px!important;margin:0!important}
.erp-density .production-task-grid h2{font-size:14px;line-height:1.3;margin:0}
.erp-density .production-task-grid p{font-size:12px;line-height:1.35;margin:4px 0 0}
.erp-density .production-task-grid>a{position:relative}
.erp-density .production-task-grid>a>p{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
.erp-density .guided .card{padding:12px}
.erp-density .preparation-order{margin:10px 0}
.erp-density .preparation-order>p:empty{display:none}
.erp-density .preparation-order .actions{margin-top:8px}
.erp-density input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.erp-density select{min-height:44px}
.erp-density button,.erp-density summary{min-height:44px}
@media(min-width:1024px){.erp-density .production-task-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767px){
.erp-density .note .card{padding:12px;margin:10px 0}
.erp-density input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.erp-density select,.erp-density textarea{font-size:16px}
.erp-density .note .grid{grid-template-columns:minmax(0,1fr)}
.erp-density .collection-toggle form.collection-form{min-width:230px!important}
.erp-density .note .actions>.btn,.erp-density .note .actions>form{flex:1 1 140px}
.erp-density .note .actions>form>.btn{width:100%}
}
}

@media screen{
[data-menu-source] .task-menu-group{margin-top:4px!important}
[data-menu-source] .secondary-menu{margin-top:2px}
[data-menu-source] .secondary-menu>summary{display:flex;align-items:center;min-height:44px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;border-radius:7px;color:#475569}
[data-menu-source] .secondary-menu>div{padding-left:8px;border-left:1px solid #cbd5e1}
[data-menu-source] .secondary-menu a{font-size:12px;line-height:1.35;min-height:44px}
.dark [data-menu-source] .secondary-menu>summary{color:#cbd5e1}
.erp-density .erp-filterbar{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:8px 12px!important;margin:10px 0!important}
.erp-density .erp-filterbar>div,.erp-density .erp-filterbar>label{flex:1 1 135px;min-width:0;max-width:230px}
.erp-density .erp-filterbar>label{display:flex;flex-direction:column;gap:4px;font-size:12px}
.erp-density .erp-filterbar>button,.erp-density .erp-filterbar>a{flex:0 0 auto;min-height:44px;display:inline-flex;align-items:center}
.erp-density .order-lines-toggle{margin:8px 0}
.erp-density .order-lines-toggle>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:44px;padding:8px 10px;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:7px;cursor:pointer;font-size:13px}
.erp-density .order-lines-toggle>summary::after{content:'Ver / ocultar productos';font-size:12px;text-decoration:underline;margin-left:auto}
.dark .erp-density .order-lines-toggle>summary{background:#17253a;border-color:#42516a}
.erp-density .order-lines-toggle .order-shortage{font-weight:700;color:#b45309}
.dark .erp-density .order-lines-toggle .order-shortage{color:#fbbf24}
@media(max-width:767px){.erp-density .erp-filterbar>div,.erp-density .erp-filterbar>label{flex:1 1 130px;max-width:none}.erp-density .order-lines-toggle>summary::after{margin-left:0;width:100%}}
}

@media screen{
.erp-density .erp-row-actions{flex-wrap:wrap;justify-content:flex-start;min-width:180px;max-width:360px;gap:6px}
.erp-density .erp-row-actions>a,.erp-density .erp-row-actions>form{flex-shrink:0}
.erp-density .erp-row-actions>details{flex:0 0 auto}
.erp-density .erp-row-actions:has(.collection-toggle[open]){min-width:340px}
.erp-density .erp-row-actions>.collection-toggle[open]{flex:0 0 340px;width:340px;max-width:340px}
.erp-density .collection-toggle[open] form.collection-form{width:100%;min-width:0!important;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.erp-density .collection-toggle form.collection-form>*{min-width:0}
.erp-density td:has(>.customer-more[open]){min-width:300px}
.erp-density .customer-more[open]{width:280px;min-width:280px;max-width:280px}
.erp-density .customer-more[open] dl{min-width:0;width:100%;max-width:100%}
.erp-density .customer-more summary{flex-shrink:0;white-space:nowrap}
.erp-density .collection-toggle form button{white-space:normal;overflow-wrap:normal}
}
