/* Inventario de trabajadores · 2026-09-29 */
.inventory-page{max-width:1500px}
.inventory-page .page-heading{margin-bottom:18px}
.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:2px;border-radius:999px;background:#fff;color:#005ea8;font-size:10px;font-weight:800;box-shadow:0 0 0 2px #ffffff35}
.inventory-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.inventory-kpis article{background:#fff;border:1px solid #c5d5e0;border-top:4px solid #0067b9;border-radius:10px;padding:15px 16px;box-shadow:0 3px 14px #153c5b0d}
.inventory-kpis article.warning{border-top-color:#d48a00;background:#fffaf0}
.inventory-kpis span{display:block;color:var(--muted);font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.45px}
.inventory-kpis strong{display:block;color:#123b58;font-size:28px;line-height:1;margin-top:8px}
.inventory-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}
.inventory-toolbar h2{margin:0 0 3px}
.inventory-worker-filter{width:min(360px,100%)}
.inventory-table{min-width:980px}
.inventory-table td{vertical-align:top}
.inventory-table td>small,.inventory-table td strong+small{display:block;color:var(--muted);margin-top:3px}
.inventory-item-main{min-width:220px;max-width:410px}
.inventory-item-main>strong{font-size:13px}
.inventory-item-main p{margin:8px 0 0;color:#47657a;font-size:11px;white-space:pre-wrap}
.inventory-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px;color:#506d80;font-size:10px}
.inventory-meta span{white-space:nowrap}
.inventory-qty{text-align:center;font-weight:750;font-size:14px;color:#123b58}
.condition-chip,.request-status{display:inline-flex;align-items:center;width:max-content;border:1px solid #8fc8a9;background:#e4f7ec;color:#08783e;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.condition-chip.regular{border-color:#e0bc66;background:#fff4d6;color:#7a4b00}
.condition-chip.damaged{border-color:#dfa09a;background:#fff0ef;color:#a61b12}
.request-status.pending{border-color:#e0bc66;background:#fff4d6;color:#7a4b00}
.request-status.approved{border-color:#8fc8a9;background:#e4f7ec;color:#08783e}
.request-status.rejected{border-color:#dfa09a;background:#fff0ef;color:#a61b12}
.request-status+small{display:block;max-width:210px;margin-top:6px;color:var(--muted);line-height:1.35}
.inventory-photo-control{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:132px}
.inventory-photo-link{display:flex;align-items:center;gap:7px;font-size:10px;text-decoration:none}
.inventory-photo-link img{width:72px;height:54px;object-fit:cover;border:1px solid #b8ccd9;border-radius:6px;background:#edf3f7}
.inventory-no-photo{color:var(--muted);font-size:10px}
.file-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid #3781b5;border-radius:7px;background:#fff;color:#005ea8;font-size:11px;font-weight:650;cursor:pointer}
.file-button:hover{background:#e8f2fa}
.file-button .icon{width:15px;height:15px}
.inventory-editor{border-left:4px solid #0067b9;box-shadow:0 4px 18px #153c5b12}
.inventory-editor textarea{min-height:82px}
.inventory-requests{border-left:4px solid #d48a00}
.request-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border-radius:999px;background:#fff0c7;color:#7a4b00;font-weight:800}
.request-bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border:1px solid #c9dbe8;border-radius:9px;background:#f5f9fc}
.request-bulk-toolbar .primary{margin-left:auto}
.request-select-all,.request-select{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#29485f;cursor:pointer}
.request-select input,.request-select-all input{width:17px;height:17px;accent-color:#0067b9}
.request-select{margin-bottom:10px}
.request-decision-fields{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:9px;margin-top:11px;padding-top:10px;border-top:1px solid #eadcb9}
.request-decision-fields .field{margin:0}
.request-decision-fields textarea{min-height:58px;resize:vertical}
.request-decision-fields select{min-height:38px}
.request-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.request-card{border:1px solid #d9c493;border-radius:9px;background:#fffaf0;padding:14px;transition:border-color .15s,box-shadow .15s,transform .15s}
.request-card.selected{border-color:#3c8fc6;box-shadow:0 0 0 2px #3c8fc626;transform:translateY(-1px)}
.request-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.request-card-head strong,.request-card-head span{display:block}
.request-card-head div>span{margin-top:2px;color:#516b7c;font-size:11px}
.request-card p{margin:11px 0 7px;white-space:pre-wrap;font-size:12px;color:#29485f}
.request-card>small{display:block;margin-top:8px;color:var(--muted)}
.request-evidence-preview{display:flex;align-items:center;gap:10px;width:100%;margin:10px 0 4px;padding:8px;border:1px solid #c9dbe8;border-radius:8px;background:#fff;color:#123b58;text-align:left;cursor:pointer}
.request-evidence-preview:hover{border-color:#3c8fc6;background:#f5f9fc}
.request-evidence-preview img{width:112px;height:82px;flex:0 0 112px;object-fit:cover;border-radius:6px;border:1px solid #b8ccd9;background:#edf3f7}
.request-evidence-preview span{display:flex;flex-direction:column;gap:4px;min-width:0}
.request-evidence-preview strong{font-size:11px}
.request-evidence-preview small{color:var(--muted);font-size:10px}
.request-evidence-empty{display:flex;align-items:center;gap:7px;margin:10px 0 4px;padding:9px;border:1px dashed #c7d2da;border-radius:8px;color:var(--muted);font-size:10px;background:#ffffff99}
.request-evidence-empty .icon{width:15px;height:15px}
.request-card .actions{margin-top:12px}
.inventory-history{margin-top:14px}
.inventory-photo-modal-open{overflow:hidden}
.inventory-photo-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:#07131fdd;backdrop-filter:blur(3px)}
.inventory-photo-modal-panel{position:relative;display:flex;flex-direction:column;align-items:center;max-width:94vw;max-height:92vh;padding:14px;border-radius:12px;background:#fff;box-shadow:0 24px 70px #0008}
.inventory-photo-modal-panel>img{display:block;max-width:90vw;max-height:78vh;width:auto;height:auto;object-fit:contain;border-radius:8px;background:#eef3f6}
.inventory-photo-modal-close{position:absolute;right:8px;top:8px;z-index:2;display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:999px;background:#fff;color:#123b58;box-shadow:0 2px 12px #0004;cursor:pointer}
.inventory-photo-modal-close .icon{width:20px;height:20px}
.inventory-photo-modal-caption{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;padding:10px 4px 0;color:#29485f}
.inventory-photo-modal-caption span{color:var(--muted);font-size:12px}

@media(max-width:1050px){
  .inventory-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .request-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .inventory-page{padding:18px 10px}
  .inventory-page .page-heading{align-items:flex-start}
  .inventory-page .page-heading>.actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .inventory-toolbar{align-items:stretch;flex-direction:column}
  .inventory-worker-filter{width:100%}
  .inventory-table{min-width:880px}
  .request-grid{grid-template-columns:1fr}
  .request-bulk-toolbar{align-items:stretch;flex-direction:column}
  .request-bulk-toolbar .primary{margin-left:0;width:100%}
  .request-decision-fields{grid-template-columns:1fr}
  .request-evidence-preview img{width:96px;height:72px;flex-basis:96px}
  .inventory-photo-modal{padding:10px}
  .inventory-photo-modal-panel{padding:10px;max-width:98vw}
  .inventory-photo-modal-panel>img{max-width:94vw;max-height:80vh}
}
@media(max-width:480px){
  .inventory-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .inventory-kpis article{padding:12px}
  .inventory-kpis strong{font-size:22px}
  .nav-badge{position:absolute;right:2px;top:2px;min-width:17px;height:17px;padding:0 4px;font-size:9px}
  .topnav button{position:relative}
}
