/* Estilos propios (Filament solo compila las utilidades Tailwind que él usa). */

/* Barra superior */
.af-barra { display: flex; align-items: center; gap: .5rem; margin-inline-start: .5rem; }
.af-barra-nombre { display: none; font-size: .875rem; font-weight: 500; color: rgb(75 85 99); }
.dark .af-barra-nombre { color: rgb(209 213 219); }
@media (min-width: 640px) { .af-barra-nombre { display: inline; } }
.af-select { width: 11rem; border-radius: .5rem; border: 1px solid rgb(209 213 219); padding: .35rem 2rem .35rem .6rem; font-size: .8rem; background-color: #fff; }
@media (min-width: 640px) { .af-select { width: 18rem; } }
.dark .af-select { background-color: rgb(31 41 55); border-color: rgb(75 85 99); color: rgb(229 231 235); }

/* Tablas simples de informes */
.af-tabla-contenedor { overflow-x: auto; }
.af-tabla { width: 100%; min-width: max-content; border-collapse: collapse; font-size: .875rem; }
.af-tabla th { text-align: left; font-weight: 600; padding: .5rem; border-bottom: 1px solid rgb(229 231 235); color: rgb(75 85 99); white-space: nowrap; }
.af-tabla td { padding: .4rem .5rem; border-bottom: 1px solid rgb(243 244 246); }
.af-tabla tbody tr:hover td { background: rgb(249 250 251); }
.af-tabla tfoot td { font-weight: 600; border-top: 2px solid rgb(209 213 219); border-bottom: 0; }
.af-tabla .af-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.af-tabla .af-vacio { text-align: center; padding: 1.5rem; color: rgb(107 114 128); }
.dark .af-tabla th { color: rgb(209 213 219); border-color: rgba(255,255,255,.1); }
.dark .af-tabla td { border-color: rgba(255,255,255,.05); }
.dark .af-tabla tbody tr:hover td { background: rgba(255,255,255,.04); }
.af-nota { margin-top: .75rem; font-size: .75rem; color: rgb(107 114 128); }
.af-codigo-barras svg { height: 56px; width: auto; max-width: 100%; }
.af-baja td { color: rgb(185 28 28) !important; text-decoration: line-through; }
.af-fila-baja td { background: rgba(254, 226, 226, .45); }
.dark .af-fila-baja td { background: rgba(127, 29, 29, .25); }
.af-fila-baja td .fi-ta-text-item-label { text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .6); }

/* Calendario de mantenciones (grilla propia) */
.af-cal-barra { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.af-cal-nav { display: flex; align-items: center; gap: .5rem; }
.af-cal-titulo { font-size: 1.125rem; font-weight: 600; min-width: 10rem; text-align: center; }
.af-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid rgb(229 231 235); border-radius: .75rem; overflow: hidden; background: #fff; }
.af-cal-cargando { opacity: .6; }
.af-cal-cabecera { padding: .4rem; font-size: .75rem; font-weight: 600; text-align: center; color: rgb(75 85 99); background: rgb(249 250 251); border-bottom: 1px solid rgb(229 231 235); }
.af-cal-dia { min-height: 6.5rem; padding: .3rem; border-right: 1px solid rgb(243 244 246); border-bottom: 1px solid rgb(243 244 246); display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.af-cal-dia:nth-child(7n) { border-right: 0; }
.af-cal-fuera { background: rgb(249 250 251); }
.af-cal-fuera .af-cal-numero { color: rgb(156 163 175); }
.af-cal-numero { font-size: .75rem; font-weight: 600; color: rgb(55 65 81); }
.af-cal-hoy .af-cal-numero { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 9999px; background: rgb(79 70 229); color: #fff; }
.af-cal-evento { display: block; font-size: .7rem; line-height: 1.2; padding: .15rem .3rem; border-radius: .3rem; color: #fff; background: var(--color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-cal-evento:hover { filter: brightness(.92); }
.af-cal-proyectado { background: transparent; color: var(--color); border: 1px dashed var(--color); }
.af-cal-mas { font-size: .7rem; color: rgb(107 114 128); }
.af-cal-leyenda { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .75rem; color: rgb(75 85 99); }
.af-cal-leyenda span { display: inline-flex; align-items: center; gap: .3rem; }
.af-cal-leyenda i { width: .7rem; height: .7rem; border-radius: .2rem; display: inline-block; }
.af-cal-leyenda .af-cal-leyenda-proy { border: 1px dashed #0ea5e9; }
@media (max-width: 640px) { .af-cal-dia { min-height: 4.5rem; } .af-cal-evento { font-size: .6rem; } .af-cal-cabecera { font-size: .65rem; } }
.dark .af-cal { background: rgb(17 24 39); border-color: rgba(255,255,255,.1); }
.dark .af-cal-cabecera { background: rgba(255,255,255,.03); color: rgb(209 213 219); border-color: rgba(255,255,255,.1); }
.dark .af-cal-dia { border-color: rgba(255,255,255,.06); }
.dark .af-cal-fuera { background: rgba(255,255,255,.02); }
.dark .af-cal-numero { color: rgb(209 213 219); }
.dark .af-cal-leyenda { color: rgb(209 213 219); }

/* Tarjetas del índice de reportes */
.af-tarjetas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.af-tarjeta { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem; border-radius: .75rem; background: #fff; border: 1px solid rgb(229 231 235); transition: border-color .15s, box-shadow .15s; }
.af-tarjeta:hover { border-color: rgb(129 140 248); box-shadow: 0 1px 6px rgba(79, 70, 229, .12); }
.af-tarjeta-titulo { font-weight: 600; }
.af-tarjeta-texto { font-size: .85rem; color: rgb(75 85 99); flex: 1; }
.af-tarjeta-pie { font-size: .8rem; color: rgb(79 70 229); font-weight: 500; }
.dark .af-tarjeta { background: rgb(17 24 39); border-color: rgba(255,255,255,.1); }
.dark .af-tarjeta-texto { color: rgb(156 163 175); }
.dark .af-tarjeta-pie { color: rgb(165 180 252); }

/* Conciliación de la toma de inventario */
.af-conc-cifras { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); margin-bottom: 1rem; }
.af-conc-cifras > div { display: flex; flex-direction: column; padding: .7rem .9rem; border-radius: .6rem; background: rgb(248 250 252); border: 1px solid rgb(229 231 235); border-left-width: 4px; }
.af-conc-cifras strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.af-conc-cifras span { font-size: .75rem; color: rgb(100 116 139); }
.af-conc-cifras .af-conc-ok { border-left-color: rgb(22 163 74); }
.af-conc-cifras .af-conc-mal { border-left-color: rgb(220 38 38); }
.af-conc-cifras .af-conc-alerta { border-left-color: rgb(217 119 6); }
.af-conc-titulo { font-weight: 600; margin: 1.25rem 0 .4rem; }
.af-conc-titulo small { font-weight: 400; color: rgb(107 114 128); margin-left: .4rem; }
.af-conc-suave { color: rgb(107 114 128); font-size: .8rem; }
.dark .af-conc-cifras > div { background: rgba(255,255,255,.03); border-top-color: rgba(255,255,255,.1); border-right-color: rgba(255,255,255,.1); border-bottom-color: rgba(255,255,255,.1); }
.af-conc-listo { margin-left: .35rem; font-size: .75rem; font-weight: 600; color: rgb(22 163 74); white-space: nowrap; }
