.tc-dialog{box-sizing:border-box;width:min(1180px,96vw);max-width:96vw;max-height:92dvh;border:0;border-radius:24px;padding:28px;color:#18364b;background:#f5f9fc;box-shadow:0 30px 100px #002e4f66}.tc-dialog::backdrop{background:#082d4cbd;backdrop-filter:blur(4px)}.tc-dialog h2{font-size:clamp(24px,3vw,34px);margin:12px 0}.tc-dialog h3{font-size:24px}.tc-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.tc-context{background:#e4f0f7;padding:14px 18px;border-radius:12px;font-weight:700}.tc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin:24px 0}.tc-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:26px;text-align:left;border:2px solid #d2e2ee;border-radius:18px;background:white;color:#163c57;cursor:pointer;font:inherit;min-height:220px;transition:transform .15s,border-color .15s}.tc-tile:hover{transform:translateY(-3px);border-color:#1689b8}.tc-tile:focus-visible{outline:3px solid #0087bd;outline-offset:3px}.tc-tile strong{font-size:22px}.tc-tile>span:not(.tc-icon){color:#526b7e;line-height:1.5}.tc-icon{display:grid;place-items:center;width:64px;height:64px;background:#e1f1fb;color:#087ca9;border-radius:18px;font-size:42px;line-height:1}.tc-open{margin-top:auto;color:#006fa3}.tc-warning{padding:18px;border-left:5px solid #c27911;background:#fff3dd;border-radius:10px}.tc-success{padding:22px;background:#e2f5ec;border:1px solid #70b595;border-radius:15px;font-size:20px}.tc-dialog [hidden],.tc-reader [hidden]{display:none!important}.tc-reader{margin:18px 0;padding:18px;background:#eff7fc;border:1px solid #c4ddeb;border-radius:16px}.tc-reader textarea{min-height:90px}.tc-reading{padding:30px;text-align:center;background:#e8f5ff;border-radius:20px;margin:18px 0}.tc-reading h3{font-size:28px}.tc-spinner{width:52px;height:52px;border:6px solid #c7e5f5;border-top-color:#087dad;border-radius:50%;margin:0 auto;animation:tc-spin 1s linear infinite}.tc-results{display:grid;gap:10px}.tc-found{padding:14px;border:1px solid #b6d0df;border-radius:12px;background:white}.tc-status{padding:10px 0;white-space:pre-line}.tc-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tc-quantity{background:#e8f5ff!important}.tc-after{font-weight:700;color:#086549}.tc-dialog .receipt-scroll{max-height:55vh}.tc-dialog input[type=checkbox]{width:23px;height:23px}.cc-sheet{border:1px solid #ccdce7;border-radius:14px;padding:18px;margin:14px 0;background:#fff}.cc-sheet summary{font-size:18px;font-weight:700;cursor:pointer}.cc-form{padding:20px;background:#fff;border-radius:16px;margin:16px 0}.cc-form .receipt-field{margin:12px 0}.cc-status-pill{display:inline-block;padding:5px 10px;border-radius:16px;background:#fff0cc;font-weight:700}.tc-methods{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.tc-methods button[aria-pressed=true]{background:#087ca9;color:#fff}.tc-action-route{font-size:20px;font-weight:700;padding:16px;border-radius:12px;background:#e7f4ff}.cc-no-stock{background:#fff4df;padding:16px;border-radius:12px;border:1px solid #e1c594}.tc-read-overlay{position:fixed;inset:0;background:#123751b8;display:grid;place-items:center;z-index:20;padding:18px}.tc-read-overlay .tc-reading{max-width:650px;width:90%;box-shadow:0 20px 70px #102b4970}.tc-read-overlay[hidden]{display:none}.tc-dialog .button{white-space:normal}.tc-hub-banner{margin:18px 0}.tc-hub-banner .tc-tile{width:100%;min-height:155px}.ude-main-tabs{flex-wrap:wrap}.ude-main-tabs button{white-space:normal;flex:1 1 230px}@keyframes tc-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.tc-spinner{animation:none}.tc-tile{transition:none}}@media(max-width:620px){.tc-dialog{padding:16px;border-radius:16px;max-height:96dvh}.tc-grid{grid-template-columns:1fr}.tc-tile{min-height:180px;padding:20px}.tc-dialog .receipt-table{font-size:13px}.tc-dialog .receipt-scroll{max-height:60vh}.tc-bar .button{padding:10px}.tc-context{font-size:14px}}

.tc-package-dialog{width:min(850px,92vw);border:0;border-radius:22px;padding:28px;color:#17324a;box-shadow:0 20px 70px #0005}.tc-package-dialog::backdrop{background:#102b46b8}.tc-package-dialog h2{font-size:clamp(24px,4vw,34px);margin-top:0}.tc-package-options{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.tc-package-option{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:190px;border:2px solid #c8dbe5;border-radius:16px;background:#f1f8fc;padding:20px 10px;cursor:pointer;color:#17324a;font-size:16px}.tc-package-option:hover,.tc-package-option:focus-visible{border-color:#00845b;background:#e3f4ed}.tc-package-option strong{font-size:22px}.tc-package-icons{display:flex;gap:5px}.tc-package-device{display:grid;place-items:center;width:42px;height:60px;border:2px solid #268266;border-radius:8px;background:white;font:bold 12px monospace;animation:ic-package-arrive .7s ease both}@keyframes ic-package-arrive{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@media(max-width:580px){.tc-package-options{grid-template-columns:1fr}.tc-package-option{min-height:110px;padding:12px;gap:6px}.tc-package-device{height:38px}.tc-package-dialog{padding:20px}}@media(prefers-reduced-motion:reduce){.tc-package-device{animation:none}}

.tc-reader .tc-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.tc-reader .tc-method-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:110px;padding:16px 10px;white-space:normal;border:2px solid transparent;border-radius:16px;transition:transform .15s,border-color .15s}.tc-reader .tc-method-icon{font-size:36px;line-height:1.2}.tc-reader .tc-method-tile:hover{transform:translateY(-2px)}.tc-reader .tc-method-tile[aria-pressed=true]{border-color:#087b9d;background:#087b9d;color:#fff}.tc-reader .tc-method-tile:focus-visible{outline:3px solid #f2b544;outline-offset:3px}.tc-reader .tc-status{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.tc-reader .tc-methods{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.tc-reader .tc-method-tile{transition:none;transform:none}}
.tc-read-overlay .tc-reading{max-height:80dvh;overflow:auto;box-sizing:border-box}.tc-reading p{white-space:pre-wrap;overflow-wrap:anywhere}.tc-reader input[type=file]{max-width:100%;box-sizing:border-box}

.tc-manual-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.tc-manual-entry input{width:100%;box-sizing:border-box;min-height:50px}.tc-manual-entry input[aria-invalid=true]{outline:2px solid #b12828}@media(max-width:800px){.tc-reader .tc-methods{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tc-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:18px 0}.tc-shortcuts .tc-tile{min-height:140px;padding:18px}.tc-record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.tc-record-card{background:#fff;border:1px solid #bfd4e3;border-radius:18px;padding:20px;overflow-wrap:anywhere}.tc-record-card h3{font-size:22px}.tc-record-card .button{margin:6px 6px 6px 0}.tc-kardex-selected{background:#087d9f!important;color:white}.tc-dialog .receipt-table th{white-space:normal}

.tc-action-icon{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:100px;min-width:140px;padding:16px!important;border-radius:16px!important;white-space:normal;text-align:center}.tc-bar .tc-tile{min-height:90px;padding:14px;gap:6px;flex-direction:row;align-items:center}.tc-bar .tc-tile>span:not(.tc-icon),.tc-bar .tc-open{display:none}.tc-bar .tc-tile strong{font-size:17px}.tc-bar .tc-icon{width:44px;height:44px;font-size:30px}.receipt-final-actions{display:flex;flex-wrap:wrap;gap:12px}.receipt-review-dialog{box-sizing:border-box;max-width:96vw;max-height:92dvh;overflow:auto}.tc-action-icon:focus-visible{outline:3px solid #087ca9;outline-offset:3px}@media(max-width:600px){.tc-action-icon{min-width:120px;flex:1}.tc-bar .tc-tile{min-height:70px}}
.tc-action-icon[hidden]{display:none!important}

.tc-confirm-review{display:flex!important;align-items:center;gap:18px;padding:20px!important;background:#fff6d9;border:2px solid #d49c21;border-radius:14px;font-size:18px;font-weight:700;cursor:pointer}.tc-confirm-review input{width:30px!important;height:30px!important;flex-shrink:0}.tc-save-feedback{font-size:18px;font-weight:700;padding:16px;border-radius:12px;scroll-margin:100px}.tc-save-feedback .tc-spinner{display:inline-block;width:24px;height:24px;vertical-align:middle;margin-right:14px}.tc-route-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0 24px}.tc-route-card{border:1px solid #bbd6e8;border-radius:16px;padding:18px;background:white}.tc-route-selected{border:3px solid #16865b;background:#edf9f3}.tc-route-card h3{margin:0 0 10px}

/* Lectura en la capa modal, visible incluso dentro del inventario técnico. */
dialog.tc-read-overlay{border:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;color:#18364b}dialog.tc-read-overlay::backdrop{background:#123751b8}dialog.tc-read-overlay:not([open]){display:none}dialog.tc-read-overlay .button{margin:8px}

.cc-scan-batch{padding:14px;border:1px solid #bfd5ea;background:#f3faff;border-radius:12px;margin:15px 0}.cc-scan-batch summary{font-weight:800;cursor:pointer}.cc-scan-box button{margin:4px}.cc-scanned-list{max-height:200px;overflow:auto}

/* V55: compact delivery records; document actions appear only after opening. */
.tc-record-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.tc-record-filters>.button{min-width:0;min-height:44px;padding:8px 12px;margin:0;font-size:14px!important;border-radius:9px}.tc-record-filters>.button[aria-pressed=true]{background:#0867b6;border-color:#0867b6;color:#fff}
.tc-delivery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;min-width:0}.tc-delivery-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:12px;background:#fff;border:1px solid #bfd4e3;border-radius:11px}.tc-delivery-info{min-width:0}.tc-delivery-entry .tc-delivery-name{display:block;font-size:16px;line-height:1.3;overflow-wrap:anywhere}.tc-delivery-entry .tc-delivery-date{display:block;font-size:13px;line-height:1.4;margin:5px 0;color:#405d74}.tc-delivery-entry .tc-delivery-meta{margin:0;font-size:12px;line-height:1.35;color:#24694e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-delivery-entry[data-state=pending] .tc-delivery-meta{color:#85530c}.tc-delivery-entry .tc-delivery-owner{margin:5px 0 0;font-size:12px;line-height:1.35;color:#85530c}.tc-delivery-entry>.button{min-width:0;min-height:44px;margin:0;padding:8px 10px;border-radius:9px;font-size:14px!important;line-height:1.3;white-space:normal}.tc-delivery-entry>.button:focus-visible,.tc-record-filters>.button:focus-visible{outline:3px solid #087ca9;outline-offset:2px}
@media(max-width:650px){.tc-delivery-list{grid-template-columns:minmax(0,1fr);gap:8px}.tc-delivery-entry{padding:10px;gap:8px}.tc-delivery-entry>.button{max-width:100px}.tc-record-filters{gap:6px}.tc-record-filters>.button{flex:1 1 auto;padding:8px}}
