:root{font-family:system-ui,Arial,sans-serif;color:#203044;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}header{background:#153b63;color:white;padding:18px max(16px,calc((100vw - 940px)/2));display:flex;justify-content:space-between;align-items:center}header strong{display:block;font-size:22px}header small{opacity:.8}main{max-width:940px;margin:25px auto;padding:0 14px}.panel{background:white;padding:20px;border-radius:12px;box-shadow:0 2px 12px #142a4012;margin-bottom:16px}label{display:block;margin:12px 0;font-weight:600}input,textarea,select{width:100%;padding:11px;border:1px solid #cbd4df;border-radius:7px;margin-top:5px;font:inherit}button{background:#176ca5;color:white;border:0;border-radius:8px;padding:11px 15px;cursor:pointer;font:inherit}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#dbe7f1;color:#153b63}.actions,nav{display:flex;gap:8px;flex-wrap:wrap}nav{margin-bottom:15px}.item{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e5eaf0;padding:13px 0}.item p{margin:4px 0}.muted,small{color:#718092}#message{position:sticky;bottom:8px;background:#fff;padding:10px;border-radius:8px}h1,h2,h3{color:#153b63}nav button{flex:1}select{max-width:210px}

.link-button{background:none;color:#176ca5;text-decoration:underline;padding:6px 0}.link-button:hover{color:#153b63}

.order-card{border:1px solid #d8e2ec;border-radius:12px;padding:15px;margin:15px 0;background:#fbfdff}.order-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}.order-line{margin:7px 0;overflow-wrap:anywhere}.order-details{margin:12px 0;border-top:1px solid #e5eaf0;padding-top:12px}.order-details summary{cursor:pointer;color:#176ca5;font-weight:600}.order-details p{margin:9px 0}.order-call{display:inline-block;margin:7px 0;color:#176ca5}

.product-info{min-width:0;flex:1}.product-photo{display:block;width:100%;max-width:190px;max-height:150px;object-fit:contain;border-radius:10px;background:#f4f6f9;margin:0 0 8px}.preview-photo{margin:12px 0;max-width:240px;max-height:240px}input[type=file]{width:100%;max-width:100%}

.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.customer-price-row{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid #e5eaf0;padding:12px 0;flex-wrap:wrap}.customer-price-row select{min-width:150px}

.order-profit{margin:12px 0;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc}.order-profit p{margin:4px 0}.order-profit strong{display:block;margin:8px 0;font-size:1.05rem}

.category-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #e5eaf0;flex-wrap:wrap}.category-row input{flex:1;min-width:170px;margin:0}.category-row button{white-space:nowrap}#categoryFilter{max-width:360px}

.price-calculator{border:1px solid #cbd5e1;border-radius:10px;padding:14px;margin:14px 0;background:#f8fafc}.price-calculator h4{margin:0 0 8px}.price-calculator button{margin:6px 0}

/* V9: reportes administrativos */
.report-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.report-controls label{flex:1 1 160px}.report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:14px 0}.report-card{padding:14px;border:1px solid #c9d7e3;border-radius:10px;background:#f5f9fd}.report-card small{display:block;color:#456;margin-bottom:6px}.report-card strong{font-size:1.3rem;overflow-wrap:anywhere}.report-table{width:100%;border-collapse:collapse;margin:10px 0}.report-table th,.report-table td{padding:9px 6px;border-bottom:1px solid #d6e0e8;text-align:left}.report-table td:nth-child(n+2),.report-table th:nth-child(n+2){text-align:right}.report-warning{padding:10px;border-left:4px solid #ad7415;background:#fff8e9}.report-note{font-size:.9rem;color:#456}
