/* Camp F5 laundry (plan 2026-10-12-camp-f4-f7-execution.md). Prefijo unico `.lb-` (WARNINGS 69). */
/* Pages/CampServices/CampLaundry.razor + Laundry/*, Pages/MyCamp/MyCampLaundry.razor (+ banner in MyCamp.razor). */

/* ── page shell ─────────────────────────────────────────────────────────────────────────── */
.lb-page { display: flex; flex-direction: column; gap: .75rem; padding: var(--dacs-page-pad); }
.lb-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.lb-tabs { display: flex; gap: .25rem; background: var(--dacs-gray-100, #f3f4f6); border-radius: .5rem; padding: .2rem; }
.lb-tab { border: 0; background: transparent; border-radius: .375rem; padding: .35rem .8rem; font-size: .85rem; font-weight: 600;
    color: var(--dacs-gray-600, #4b5563); display: inline-flex; align-items: center; gap: .35rem; }
.lb-tab:hover { color: var(--dacs-gray-900, #111827); }
.lb-tab.is-on { background: #fff; color: var(--dacs-primary, #2563eb); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.lb-body { display: flex; flex-direction: column; gap: .75rem; }
.lb-card { margin: 0; }
.lb-card .dash-card-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.lb-count { margin-left: .4rem; min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; background: var(--dacs-gray-100, #f3f4f6);
    color: var(--dacs-gray-700, #374151); font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.4rem; }
.lb-hidden { display: none !important; }
.lb-muted { color: var(--dacs-gray-500, #6b7280); font-size: .8rem; margin: 0; }
.lb-req { color: #d64545; }

/* ── fields / buttons ───────────────────────────────────────────────────────────────────── */
.lb-field { display: flex; flex-direction: column; gap: .2rem; margin: 0; min-width: 8.5rem; }
.lb-field > span { font-size: .75rem; font-weight: 600; color: var(--dacs-gray-600, #4b5563); }
.lb-field-inline { flex-direction: row; align-items: center; gap: .4rem; min-width: 0; }
.lb-field-inline > span { white-space: nowrap; }
.lb-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; padding: .75rem; }
.lb-btn-primary { background: var(--dacs-primary, #2563eb); border-color: var(--dacs-primary, #2563eb); color: #fff; }
.lb-btn-primary:hover:not(:disabled) { filter: brightness(.95); color: #fff; }
.lb-btn-danger { background: #d64545; border-color: #d64545; color: #fff; }
.lb-btn-danger:hover:not(:disabled) { filter: brightness(.95); color: #fff; }
.lb-icon-btn { border: 0; background: transparent; color: var(--dacs-gray-500, #6b7280); padding: 0 .3rem; line-height: 1; }
.lb-bag { display: inline-block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; font-size: .85em;
    padding: .05rem .4rem; border-radius: .3rem; background: var(--dacs-gray-100, #f3f4f6); color: var(--dacs-gray-800, #1f2937); }
.lb-notice { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; margin: 0 .75rem .75rem; border-radius: .375rem;
    background: #e6eefb; color: #1f4f9b; font-size: .85rem; }
.lb-desk-body .lb-notice { margin: 0; }
.lb-notice-ok { background: #e5f4ea; color: #1e6b3f; }
.lb-notice > span { flex: 1 1 auto; }
.lb-alert { display: flex; gap: .4rem; align-items: flex-start; padding: .5rem .65rem; border-radius: .375rem; background: #fdeaea; color: #9b2c2c; font-size: .85rem; }

/* ── desk ───────────────────────────────────────────────────────────────────────────────── */
.lb-desk { display: flex; flex-direction: column; gap: .75rem; }
.lb-desk-body { display: flex; flex-direction: column; gap: .75rem; padding: .75rem; }
.lb-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.lb-mode { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .6rem .8rem; border-radius: .5rem;
    border: 2px solid var(--dacs-gray-200, #e5e7eb); background: #fff; text-align: left; color: var(--dacs-gray-700, #374151); }
.lb-mode > i { font-size: 1.4rem; }
.lb-mode-label { font-size: 1rem; font-weight: 700; }
.lb-mode > small { color: var(--dacs-gray-500, #6b7280); font-size: .75rem; }
.lb-mode:hover { border-color: var(--dacs-gray-300, #d1d5db); }
.lb-mode-drop.is-on { border-color: #3b7dd8; background: #eaf2fc; color: #1f5fbf; }
.lb-mode-ready.is-on { border-color: #2e9e5b; background: #e8f6ee; color: #1e7a46; }
.lb-mode-collect.is-on { border-color: #7c3aed; background: #f2ecfe; color: #5b21b6; }
.lb-reader-row { display: flex; gap: .5rem; align-items: stretch; }
.lb-reader { position: relative; flex: 1 1 auto; margin: 0; }
.lb-reader > i:first-child { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--dacs-gray-400, #9ca3af); pointer-events: none; }
.lb-reader > input { width: 100%; height: 2.75rem; padding: 0 2.5rem 0 2.6rem; font-size: 1.05rem; border-radius: .5rem;
    border: 2px dashed var(--dacs-gray-300, #d1d5db); background: var(--dacs-gray-50, #f9fafb); }
.lb-reader > input:focus { outline: 0; border-style: solid; border-color: var(--dacs-primary, #2563eb); background: #fff; }
.lb-reader-busy { position: absolute; right: .8rem; top: 50%; margin-top: -.5rem; color: var(--dacs-primary, #2563eb); }
.lb-step { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: .5rem; background: #fdf1d8; color: #7a4f00;
    border: 1px solid #f1d38f; }
.lb-step > i { font-size: 1.6rem; }
.lb-step > div { display: flex; flex-direction: column; flex: 1 1 auto; font-size: .85rem; }

/* Big result banner */
.lb-result { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.1rem; border-radius: .6rem;
    border: 1px solid transparent; animation: lb-in .18s ease-out; }
.lb-result-ok { background: #e5f4ea; border-color: #9fd6b3; color: #145a33; }
.lb-result-denied { background: #fbe6e6; border-color: #eaa9a9; color: #8f1d1d; }
.lb-result-warn { background: #fdf1d8; border-color: #f1d38f; color: #7a4f00; }
.lb-result-icon { font-size: 2.6rem; }
.lb-result-main { flex: 1 1 14rem; min-width: 0; }
.lb-result-title { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.lb-result-msg { font-size: .9rem; margin-top: .15rem; }
.lb-result-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-top: .35rem; color: var(--dacs-gray-800, #1f2937); }
.lb-result-who small { color: var(--dacs-gray-500, #6b7280); }
.lb-result-time { position: absolute; top: .45rem; right: .7rem; font-size: .7rem; opacity: .7; }
.lb-quotas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lb-quotas li { display: flex; flex-direction: column; align-items: center; min-width: 6.5rem; padding: .35rem .6rem; border-radius: .45rem;
    background: rgba(255, 255, 255, .7); color: var(--dacs-gray-700, #374151); font-size: .75rem; }
.lb-quotas li strong { font-size: 1.4rem; line-height: 1.1; color: #1e7a46; }
.lb-quotas li.is-empty strong { color: #b42323; }
@keyframes lb-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Open drops lists */
.lb-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 1100px) { .lb-lists { grid-template-columns: minmax(0, 1fr); } }
.lb-dt { border: 0; }
.lb-dt-bag { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; }
.lb-tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.lb-tag-dropped { background: #eaf2fc; color: #1f5fbf; }
.lb-tag-ready { background: #e8f6ee; color: #1e7a46; }
.lb-tag-active { background: #e8f6ee; color: #1e7a46; }
.lb-tag-inactive { background: #eceff3; color: #5b6474; }

/* Camera overlay */
.lb-camera { position: fixed; inset: 0; z-index: 1060; background: rgba(15, 23, 42, .92); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem; padding: 1rem; }
.lb-video { width: min(36rem, 100%); max-height: 70vh; border-radius: .6rem; background: #000; }
.lb-camera-hint { color: #fff; font-size: 1rem; text-align: center; }
.lb-camera-cancel { background: #fff; }

/* ── dialogs ────────────────────────────────────────────────────────────────────────────── */
.lb-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1050; }
.lb-modal:not(.lb-camera) { position: fixed; z-index: 1051; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(32rem, calc(100vw - 2rem)); max-height: calc(100vh - 32px); overflow: auto; }
.lb-modal .dash-card { margin: 0; box-shadow: 0 20px 48px rgba(15, 23, 42, .28); }
.lb-modal .dash-card-head { border-radius: .5rem .5rem 0 0; }
.lb-form { display: flex; flex-direction: column; gap: .75rem; padding: .75rem; }
.lb-form .lb-field { min-width: 0; }
.lb-modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .625rem .75rem; border-top: 1px solid var(--dacs-gray-100, #f3f4f6); }
.lb-summary { margin: 0; font-size: .9rem; }
.lb-segment { display: inline-flex; align-self: flex-start; border: 1px solid var(--dacs-gray-200, #e5e7eb); border-radius: .4rem; overflow: hidden; }
.lb-segment > button { border: 0; background: #fff; padding: .3rem .8rem; font-size: .8rem; font-weight: 600; color: var(--dacs-gray-600, #4b5563); }
.lb-segment > button + button { border-left: 1px solid var(--dacs-gray-200, #e5e7eb); }
.lb-segment > button.is-on { background: var(--dacs-primary, #2563eb); color: #fff; }

/* ── QR sheet (print only) ──────────────────────────────────────────────────────────────── */
.lb-print-sheet { display: none; }
@media print {
    body:has(.lb-print-sheet.is-printing) * { visibility: hidden; }
    body:has(.lb-print-sheet.is-printing) .lb-print-sheet,
    body:has(.lb-print-sheet.is-printing) .lb-print-sheet * { visibility: visible; }
    .lb-print-sheet.is-printing { display: block; position: absolute; left: 0; top: 0; width: 100%; background: #fff; color: #000; }
    .lb-print-title { font-size: 14px; font-weight: 600; padding: 0 0 8px; }
    .lb-print-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6mm; }
    .lb-print-cell { display: flex; flex-direction: column; align-items: center; padding: 4mm; border: 1px dashed #999; break-inside: avoid; page-break-inside: avoid; }
    .lb-print-qr img, .lb-print-qr canvas { width: 38mm !important; height: 38mm !important; }
    .lb-print-code { margin-top: 2mm; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700; }
    .lb-print-label { font-size: 10px; color: #333; text-align: center; }
}

/* ── my-camp (resident, mobile-first) ───────────────────────────────────────────────────── */
.lb-my-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-my-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--mc-line, #dfe3ea); }
.lb-my-ready { border-color: #9fd6b3; background: var(--mc-ok-bg, #e5f4ea); }
.lb-my-icon { font-size: 1.5rem; color: var(--mc-muted, #5b6474); }
.lb-my-ready .lb-my-icon { color: var(--mc-ok, #1e7a46); }
.lb-my-main { flex: 1 1 auto; min-width: 0; }
.lb-my-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 14px 16px; border: 0; border-radius: 14px;
    background: var(--mc-ok, #1e7a46); color: #fff; text-align: left; font-size: 1rem; box-shadow: 0 4px 14px rgba(30, 122, 70, .25); }
.lb-my-banner > i:first-child { font-size: 1.8rem; }
.lb-my-banner > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.lb-my-banner small { opacity: .9; font-size: .85rem; }

@media (max-width: 640px) {
    .lb-modes { grid-template-columns: minmax(0, 1fr); }
    .lb-mode { flex-direction: row; align-items: center; gap: .5rem; }
    .lb-mode > small { display: none; }
    .lb-result-title { font-size: 1.15rem; }
}
