/* WiboxInv WebAPP — mobile first, mismos colores que Wibox (cyan #17a2b8 / #0c5460). */
:root { --cyan: #17a2b8; --cyan-dark: #0c5460; --fondo: #d6eaf8; }
body { background: var(--fondo); font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 16px; min-height: 100vh; }

.topbar {
    position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--cyan-dark), var(--cyan)); color: #fff; padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.topbar-title { flex: 1; min-width: 0; line-height: 1.2; }
.topbar-title > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-btn { color: #fff; font-size: 22px; padding: 4px 8px; border-radius: 8px; text-decoration: none; background: rgba(255,255,255,.12); }
.topbar-btn:hover { color: #fff; background: rgba(255,255,255,.25); }

.contenido { max-width: 720px; margin: 0 auto; padding: 12px; }

.tarjeta { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 14px; margin-bottom: 12px; border: 1px solid rgba(23,162,184,.12); }
.tarjeta h2 { font-size: 15px; font-weight: 700; color: var(--cyan-dark); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .4px; }

.form-control, .form-select { font-size: 18px; padding: 10px 12px; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 .2rem rgba(23,162,184,.2); }
.btn { border-radius: 10px; font-weight: 600; }
.btn-lg-touch { font-size: 18px; padding: 12px; }
.btn-cyan { background: linear-gradient(135deg, var(--cyan), #20c9e3); color: #fff; border: none; }
.btn-cyan:hover, .btn-cyan:focus { background: linear-gradient(135deg, #148ea1, var(--cyan)); color: #fff; }

.ubic-activa { background: linear-gradient(135deg, var(--cyan-dark), var(--cyan)); color: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ubic-activa .codigo { font-size: 26px; font-weight: 800; letter-spacing: .5px; }

.material-info { background: #e0f7fa; border-left: 4px solid var(--cyan); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.linea { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef3f5; }
.linea:last-child { border-bottom: none; }
.linea .cant { font-size: 20px; font-weight: 800; color: var(--cyan-dark); min-width: 54px; text-align: right; }
.linea .desc { flex: 1; min-width: 0; }
.linea .desc .small { color: #6c757d; }

.lista-ubic .item { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 10px; border: 1px solid #dee2e6; background: #fff; margin-bottom: 6px; font-size: 17px; }
.lista-ubic .item.hecha { background: #e8f5e9; border-color: #a5d6a7; }

.inv-card { display: block; text-decoration: none; color: inherit; }
.inv-card:hover { color: inherit; border-color: var(--cyan); }

.toast-msg { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2000; min-width: 260px; max-width: 92vw;
             padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: none; }
.toast-msg.ok { background: #198754; }
.toast-msg.error { background: #dc3545; }
.toast-msg.info { background: var(--cyan-dark); }

#lector { width: 100%; border-radius: 10px; overflow: hidden; }
.oculto { display: none !important; }
