
/* Large product photography, without cropping product edges. */
#view-inventario .inventory-photo-button{flex:0 0 auto;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(145deg,#fff,#f1f5f9);padding:6px;cursor:zoom-in;box-shadow:0 4px 12px #0f172a08;transition:box-shadow .2s,transform .2s}
#view-inventario .inventory-photo-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #0f172a12}
#view-inventario .inventory-photo-button:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
#view-inventario .inventory-photo{display:block;width:112px;height:112px;object-fit:contain;border-radius:12px}
#view-inventario .inventory-photo-empty{display:grid;place-items:center;font-size:38px;color:#94a3b8}
#view-inventario .inventory-product-copy{min-width:0;max-width:320px}
#view-inventario .inventory-product-copy p{overflow-wrap:anywhere}
#view-inventario .inventory-product-copy p:nth-child(2){font-size:16px;line-height:1.4;margin:5px 0}
#view-inventario [hidden]{display:none!important}
.inventory-readonly{color:#64748b;font-size:12px}.inventory-empty{padding:36px!important;text-align:center!important;color:#64748b}
#dropzone-area{min-height:210px;display:flex;flex-direction:column;justify-content:center;align-items:center}
#dropzone-area #prod-preview{object-fit:contain;padding:10px;background:#f8fafc}
.product-photo-dialog{border:0;border-radius:24px;padding:20px;width:min(680px,92vw);max-height:88dvh;overflow:auto;background:#fff;color:#0f172a;box-shadow:0 24px 80px #0f172a40}
.product-photo-dialog::backdrop{background:#0f172ab3;backdrop-filter:blur(5px)}
.product-photo-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.product-photo-dialog h2{font-size:20px;font-weight:800}.product-photo-dialog button{font-size:30px;border-radius:12px;padding:0 12px;background:#f1f5f9}.product-photo-dialog img{width:100%;height:min(60dvh,500px);object-fit:contain;margin:16px 0;background:#f8fafc;border-radius:16px}.product-photo-dialog p{color:#64748b;font-size:13px}
@media(max-width:767px){
 #view-inventario .inventory-photo{width:116px;height:116px}
 #view-inventario tbody td:first-child{align-items:center;gap:14px}
 #view-inventario .inventory-product-copy p:nth-child(2){font-size:15px}
 #view-inventario tbody tr{gap:4px;padding:12px;border-radius:18px}
 #view-inventario tbody td:last-child button{min-height:40px}
 #view-inventario .inventory-empty{grid-column:1/-1}
}
@media(max-width:370px){#view-inventario .inventory-photo{width:90px;height:104px}#view-inventario tbody td:first-child{gap:10px}}

body[data-user-role="auditor"] button[onclick^="openLayawayCheckout"],
body[data-user-role="auditor"] button[onclick^="openModal('modal-abono"],
body[data-user-role="auditor"] button[onclick^="openModal('modal-add-client"],
body[data-user-role="auditor"] button[onclick^="openModal('modal-expense"],
body[data-user-role="auditor"] button[onclick^="openEditInvoice"],
body[data-user-role="auditor"] button[onclick^="anularFactura"],
body[data-user-role="auditor"] button[onclick^="saveSettings"],
body[data-user-role="auditor"] button[onclick^="openProductModal"],
body[data-user-role="auxiliar"] .mobile-quick-actions,
body[data-user-role="auxiliar"] #mobile-more-links [data-mobile-view],
.mobile-more [hidden]{display:none!important}

.inventory-tools-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.inventory-tools-bar button,.inventory-tools-dialog button{border:1px solid #008f9b;border-radius:8px;padding:10px 14px;background:#edf9f8;color:#123344}.inventory-tools-dialog{width:min(1100px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #dfe7f1;border-radius:16px;padding:20px}.inventory-tools-dialog header{display:flex;gap:12px;justify-content:space-between}.inventory-tools-dialog label{display:block;margin:12px 0}.inventory-tools-dialog input:not([type=checkbox]),.inventory-tools-dialog select,.inventory-tools-dialog textarea{padding:9px;border:1px solid #dfe7f1;border-radius:6px;max-width:100%;width:100%}.inventory-tools-scroll{overflow:auto;max-height:50vh}.inventory-tools-scroll th,.inventory-tools-scroll td{padding:8px;border-bottom:1px solid #dfe7f1;font-size:12px}.product-label{display:inline-block;width:300px;vertical-align:top;padding:12px;border:1px solid #dfe7f1}.product-label svg{width:100%;height:auto}.label-expired{color:#b42318}.inventory-tools-dialog :disabled{opacity:.5}@media(max-width:600px){.inventory-tools-dialog{padding:12px}.product-label{max-width:100%}}
