/*
 * WISPA · panel del técnico (celular). Sus colores van como variables; el ingreso usa ingreso.css.
 * Nota: almacén (warehouse.css) repite esta misma estructura (tarjetas, barra inferior, sección):
 * ver docs/CSS_AUDITORIA_2026-10-25.md, punto 5.
 */
:root {
    --tech-ink: #10243d;
    --tech-brand: #0b78d0;
    --tech-bg: #eef3f7;
    --tech-nav-height: 68px;
    --tech-muted: #657589;
    --tech-line: #e0e7ee;         /* borde de tarjeta */
    --tech-line-hover: #aac7df;
    --tech-line-dashed: #b8c7d5;
    --tech-line-nav: #d8e0e8;     /* borde de la barra inferior */
    --tech-shadow: 21 48 77;      /* RGB de las sombras */
}

html { min-height: 100%; }
body {
    min-height: 100%;
    background: var(--tech-bg);
    color: var(--tech-ink);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}
.tech-shell {
    width: min(100%, 1180px);
    margin-inline: auto;
    padding-inline: clamp(.75rem, 2.5vw, 1.5rem);
}
.tech-main { padding-top: .85rem; padding-bottom: calc(var(--tech-nav-height) + 1.25rem + env(safe-area-inset-bottom)); }

.work-card { border: 0; border-radius: .85rem; box-shadow: 0 2px 10px rgb(var(--tech-shadow) / 8%); }
.tech-stat-card {
    border: 1px solid var(--tech-line);
    border-radius: .85rem;
    box-shadow: 0 2px 8px rgb(var(--tech-shadow) / 7%);
    transition: border-color .15s ease, transform .15s ease;
}
.tech-stat-card:active { transform: scale(.98); }
.tech-stat-card:hover { border-color: var(--tech-line-hover); }
.tech-stat-icon,
.tech-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: .7rem;
    font-size: 1.2rem;
}
.tech-empty-action { border: 1px dashed var(--tech-line-dashed); border-radius: .85rem; background: var(--bs-white); }
.priority-urgente { border-left: 4px solid var(--bs-danger); }
.priority-alta { border-left: 4px solid var(--bs-orange); }
.tech-main .btn,
.tech-main .form-control,
.tech-main .form-select { min-height: 48px; }
.tech-main textarea.form-control { min-height: 92px; }
.tech-main .nav-link { min-height: 46px; display: grid; place-items: center; font-weight: 600; }
.tech-main input[type="file"] { padding-block: .65rem; }
.tech-main a,
.tech-main button { touch-action: manipulation; }

.tech-bottom {
    position: fixed;
    z-index: 1030;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--tech-line-nav);
    background: var(--bs-white);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgb(var(--tech-shadow) / 10%);
}
.tech-bottom-inner {
    width: min(100%, 760px);
    min-height: var(--tech-nav-height);
    margin-inline: auto;
    display: grid;
    /* Siempre UNA fila, tenga 4 o 5 destinos: a 360 px «Cuenta» ya no baja ni tapa contenido. */
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}
.tech-bottom-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--tech-muted);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
    touch-action: manipulation;
}
.tech-bottom-link i { font-size: 1.35rem; line-height: 1; }
.tech-bottom-link span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tech-bottom-link.active { color: var(--tech-brand); }
.tech-bottom-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 38px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--tech-brand);
}
@media (max-width: 575.98px) {
    .tech-main { padding-top: .65rem; }
    .tech-main .card-body { padding: .9rem; }
    .tech-stat-card .card-body { padding: .8rem; }
    .tech-stat-icon { width: 38px; height: 38px; }
}

@media (min-width: 768px) {
    .tech-main { padding-top: 1.25rem; }
    .tech-bottom-link { font-size: .78rem; }
}

/* Cola sin señal: franja fija sobre la barra inferior. */
.tech-offline {
    position: fixed;
    z-index: 1029;
    left: 0;
    right: 0;
    bottom: calc(var(--tech-nav-height) + env(safe-area-inset-bottom));
    padding: .45rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
}
body.tech-has-offline .tech-main { padding-bottom: calc(var(--tech-nav-height) + 3.5rem + env(safe-area-inset-bottom)); }

/* Un solo botón grande con el siguiente paso. */
.tech-step-btn { min-height: 64px !important; font-size: 1.2rem; font-weight: 700; }
.tech-photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: .5rem; }
@media (max-width: 380px) {
    .tech-bottom-link { font-size: .66rem; }
}
