/* cliente/assets/cliente.css — Portal movil de clientes */

body {
    background: #f5f7fa;
    padding-bottom: 76px; /* espacio para el menu inferior fijo */
}

.cl-header {
    background: #1a1e21;
    color: #fff;
    padding: 16px 16px 20px;
}

.cl-header .cl-greeting {
    font-size: 1.1rem;
    font-weight: 700;
}

.cl-header .cl-sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
}

.cl-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 14px;
}

.cl-stat-card {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.cl-stat-card .cl-stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a1e21;
}

.cl-stat-card .cl-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #607080;
    letter-spacing: 0.05em;
}

.cl-card {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.cl-card .cl-card-title {
    font-weight: 800;
    color: #1a1e21;
}

.cl-card .cl-field-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a97a1;
    letter-spacing: 0.06em;
}

.cl-card .cl-field-value {
    font-size: 0.92rem;
    color: #1a1e21;
    margin-bottom: 8px;
}

.cl-empty {
    text-align: center;
    color: #607080;
    padding: 40px 16px;
}

.cl-denied {
    text-align: center;
    padding: 40px 16px;
    color: #dc3545;
}

.cl-denied i { font-size: 3rem; }

/* Menu inferior fijo */
.cl-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #dfe6ee;
    display: flex;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.cl-navbar a {
    flex: 1;
    text-align: center;
    padding: 8px 4px 6px;
    color: #8a97a1;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
}

.cl-navbar a i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.cl-navbar a.active {
    color: #f58634;
}

/* Flowline de tracking — mismo formato visual que pages/resumen/traking.php,
   en fila horizontal con scroll lateral (para que quepa en pantallas de
   celular sin apretar el texto ni apilar en columna). */
.cl-flowline {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
}
.cl-flow-step {
    position: relative;
    flex: 0 0 168px;
    scroll-snap-align: start;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    margin-right: 24px;
}
.cl-flow-step::after {
    content: "\2192";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #5d6875;
    font-weight: 900;
}
.cl-flow-step:last-child { margin-right: 0; }
.cl-flow-step:last-child::after { content: ""; }
.cl-flow-step.pending { opacity: .5; filter: grayscale(.7); }
.cl-flow-step.stage-listado.done { border-color: #facc15; background: #fef9c3; }
.cl-flow-step.stage-listado.done .cl-flow-dot { background: #ca8a04; }
.cl-flow-step.stage-tarado.done { border-color: #fb923c; background: #ffedd5; }
.cl-flow-step.stage-tarado.done .cl-flow-dot { background: #ea580c; }
.cl-flow-step.stage-desp_muelle.done { border-color: #93c5fd; background: #eff6ff; }
.cl-flow-step.stage-desp_muelle.done .cl-flow-dot { background: #2563eb; }
.cl-flow-step.stage-despachado.done { border-color: #86efac; background: #f0fdf4; }
.cl-flow-step.stage-despachado.done .cl-flow-dot { background: #15803d; }
.cl-flow-step.stage-cierre.done { border-color: #f87171; background: #fee2e2; }
.cl-flow-step.stage-cierre.done .cl-flow-dot { background: #dc2626; }
.cl-flow-label { display: flex; align-items: center; gap: 5px; color: #17202a; font-size: .8rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.cl-flow-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; }
.cl-flow-time { color: #0f172a; font-size: .82rem; font-weight: 600; margin-top: 5px; line-height: 1.3; word-break: break-word; }
.cl-flow-time strong { font-weight: 900; }
.cl-flow-detail { color: #3a4652; font-size: .78rem; font-weight: 600; line-height: 1.3; margin-top: 3px; word-break: break-word; }

/* Tabla compacta tipo Excel para detalle de despachos en movil: scroll
   horizontal dentro de su propio contenedor, nunca desborda la pagina. */
.cl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #dfe6ee; border-radius: 10px; background: #fff; }
.cl-table { width: 100%; border-collapse: collapse; font-size: .78rem; white-space: nowrap; }
.cl-table th {
    background: #1a1e21;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 8px 10px;
    text-align: left;
    position: sticky;
    top: 0;
}
.cl-table td { padding: 7px 10px; border-top: 1px solid #eef1f4; color: #1a1e21; }
.cl-table tbody tr:nth-child(even) { background: #f8fafc; }
.cl-table tbody tr:hover { background: #fef3e8; }
.cl-table td.cl-num, .cl-table th.cl-num { text-align: right; font-variant-numeric: tabular-nums; }
.cl-table tfoot td {
    font-weight: 900;
    border-top: 2px solid #1a1e21;
    background: #fff4e9;
    color: #1a1e21;
}
