/* OPS – Estilos públicos del plugin — Alcaldía del Municipio Diego Ibarra */
/* Complementa Bootstrap Lumen 5.3 + Font Awesome 6 */

/* ── Contenedor base ─────────────────────────────────────────── */
.ops-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Full width para el mapa del municipio */
.ops-wrap:has(#ops-mapa-municipio) {
    max-width: 100%;
}

/* Full width para las estadísticas del mes */
.ops-wrap:has(#ops-stats-cards) {
    max-width: 100%;
}

/* ── Tarjetas con borde izquierdo de color (solo dirección) ──── */
.ops-panel-direccion .card {
    border-left: 4px solid #158cba !important;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.ops-panel-direccion .card:hover {
    box-shadow: 0 4px 20px rgba(21, 140, 186, 0.12);
}

/* ── Alertas por tiempo (colores consistentes) ──────────────── */
.ops-alerta-verde td {
    border-left: 3px solid #198754;
    background: #f0faf4;
}

.ops-alerta-amarillo td {
    border-left: 3px solid #ffc107;
    background: #fffdf0;
}

.ops-alerta-naranja td {
    border-left: 3px solid #fd7e14;
    background: #fff6ed;
}

.ops-alerta-rojo td {
    border-left: 3px solid #dc3545;
    background: #fff5f5;
}

/* ── APP-HEADER ──────────────────────────────────────────────── */
.ops-app-header {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #fff;
}

.ops-app-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    color: #fff;
}

.ops-app-subtitle {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 2px 0 0;
}

.ops-badge-count {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

/* ── FILTROS COMPACTOS ───────────────────────────────────────── */
.ops-filtros-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
}

.ops-filtros-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}

.ops-filtros-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.85rem;
    background: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236c757d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ops-filtros-select:focus {
    border-color: #2563A8;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.12);
    outline: none;
    background-color: #fff;
}

/* ── BOTONES GENÉRICOS APP ───────────────────────────────────── */
.ops-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 42px;
}

.ops-btn-primary {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 168, 0.25);
}

.ops-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 168, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.ops-btn-outline {
    background: transparent;
    border: 1.5px solid #dee2e6;
    color: #6c757d;
}

.ops-btn-outline:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    color: #495057;
}

/* ── CARD LIST ───────────────────────────────────────────────── */
.ops-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── APP CARDS (reemplaza tabla completamente) ──────────────── */
.ops-app-card {
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid #158cba;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ops-app-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.ops-app-card-body {
    padding: 14px 16px;
}

/* ── Card Header: número + fecha + días ─────────────────────── */
.ops-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ops-card-numero {
    font-size: 1rem;
    font-weight: 800;
    color: #1A3A5C;
    display: block;
    line-height: 1.2;
}

.ops-card-fecha {
    font-size: 0.75rem;
    color: #adb5bd;
    display: block;
    margin-top: 2px;
}

.ops-card-dias {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.ops-dias-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6c757d;
    line-height: 1;
}

.ops-dias-num.ops-alerta-activa {
    color: #dc3545;
}

.ops-dias-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    font-weight: 600;
}

/* ── VenApp inline en header ────────────────────────────────── */
.ops-venapp-inline {
    display: inline-block;
    background: linear-gradient(135deg, #d39e00 0%, #ffc107 100%);
    color: #212529;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 3px;
}

/* ── Status badge card (inline en header) ──────────────────── */
.ops-card-estatus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 4px;
}

.ops-status-badge-pendiente,
.ops-status-badge-asignado,
.ops-status-badge-en_el_sitio,
.ops-status-badge-en_camino,
.ops-status-badge-trabajando,
.ops-status-badge-resuelto,
.ops-status-badge-reabierto,
.ops-status-badge-cancelado {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.ops-status-badge-pendiente {
    background: #fef3cd;
    color: #856404;
}

.ops-status-badge-asignado {
    background: #cce5ff;
    color: #004085;
}

.ops-status-badge-en_el_sitio {
    background: #d1ecf1;
    color: #0c5460;
}

.ops-status-badge-en_camino {
    background: #d4edda;
    color: #155724;
}

.ops-status-badge-trabajando {
    background: #cce5ff;
    color: #004085;
}

.ops-status-badge-resuelto {
    background: #d4edda;
    color: #155724;
}

.ops-status-badge-reabierto {
    background: #f8d7da;
    color: #721c24;
}

.ops-status-badge-cancelado {
    background: #f8d7da;
    color: #721c24;
}

/* ── Foto thumbnail como card propia ─────────────────────────── */
.ops-mini-card-foto {
    padding: 6px;
}

.ops-mini-card-foto .ops-mini-foto-link {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s;
}

.ops-mini-card-foto .ops-mini-foto-link:hover {
    border-color: #2563A8;
}

.ops-mini-card-foto .ops-mini-foto {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* ── Estatus dentro de mini-card ────────────────────────────── */
.ops-mini-card .ops-estatus-display,
.ops-mini-card .ops-mini-value[class*="ops-status-badge-"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
}

/* ── Días dentro de mini-card ────────────────────────────────── */
.ops-mini-card .ops-alerta-activa {
    color: #dc3545;
    font-weight: 800;
}

/* ── Ver Detalle dentro de mini-card Ubicación ──────────────── */
.ops-btn-detalle-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    margin-top: 4px;
    border-radius: 8px;
    font-weight: 700;
    border: 1.5px solid #158cba;
    background: transparent;
    color: #158cba;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ops-btn-detalle-mini:hover {
    border-color: #2563A8;
    background: #f0f4ff;
    color: #2563A8;
}

/* ── Sección Estatus del Reporte ─────────────────────────────── */
.ops-estatus-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.ops-estatus-titulo {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #adb5bd;
    margin-bottom: 8px;
}

/* ── Mini-cards de información (3 por fila) ─────────────────── */
.ops-mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.ops-mini-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #f0f2f5;
    transition: box-shadow 0.2s ease;
}

.ops-mini-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ops-mini-icon {
    font-size: 1.1rem;
    color: #158cba;
    margin-bottom: 4px;
}

.ops-mini-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #158cba;
    font-weight: 700;
    margin-bottom: 2px;
}

.ops-mini-value {
    color: #495057;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.ops-mini-value a {
    color: #2563A8;
    text-decoration: none;
    font-weight: 700;
}

.ops-mini-value a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ops-mini-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ops-mini-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Textarea de observación al cambiar estatus ─────────────── */
.ops-obs-textarea {
    width: 100%;
    font-size: 0.72rem;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 8px;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8f9fa;
    color: #495057;
    font-family: inherit;
}

.ops-obs-textarea:focus {
    outline: none;
    border-color: #2563A8;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.1);
    background: #fff;
}

.ops-obs-textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* ── Card actions: foto + botones ────────────────────────────── */
.ops-card-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ops-foto-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s;
}

.ops-foto-thumb-link:hover {
    border-color: #2563A8;
}

.ops-foto-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ops-actions-right {
    flex: 1;
    min-width: 0;
}

/* ── Action buttons (estatus y secundarios) ─────────────────── */
.ops-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 36px;
    line-height: 1;
}

.ops-btn-action:hover {
    transform: translateY(-1px);
}

.ops-btn-primary {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(21, 140, 186, 0.2);
}

.ops-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(21, 140, 186, 0.3);
    color: #fff;
}

.ops-btn-success {
    background: linear-gradient(135deg, #198754 0%, #21a463 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.2);
}

.ops-btn-success:hover {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    color: #fff;
}

.ops-btn-danger {
    background: transparent;
    border: 1.5px solid #dc3545;
    color: #dc3545;
}

.ops-btn-danger:hover {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.ops-btn-ghost {
    background: transparent;
    border: 1.5px solid #dee2e6;
    color: #6c757d;
}

.ops-btn-ghost:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    color: #495057;
}

/* ── Paginación app ──────────────────────────────────────────── */
.ops-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.ops-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    border: 1.5px solid #e9ecef;
    color: #6c757d;
    transition: all 0.2s ease;
}

.ops-page-btn:hover {
    border-color: #2563A8;
    color: #2563A8;
    background: #f0f4ff;
}

.ops-page-active {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 168, 0.25);
}

.ops-page-active:hover {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%);
    color: #fff;
}

/* ── Ilustración estado vacío ────────────────────────────────── */
.ops-empty-illustration {
    text-align: center;
    padding: 40px 20px;
}

.ops-empty-illustration svg {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.ops-empty-text {
    font-size: 0.9rem;
    color: #adb5bd;
    font-style: italic;
    margin: 0;
}

/* ── Alerta duplicados ──────────────────────────────────────── */
#ops-duplicados-aviso {
    display: none;
}

#ops-duplicados-aviso.visible {
    display: block;
}

.ops-duplicados-lista {
    margin-top: 8px;
    font-size: 0.82rem;
}

.ops-duplicados-lista li {
    margin-bottom: 4px;
}

/* ── Mapa Leaflet ───────────────────────────────────────────── */
#ops-mapa-reporte,
#ops-mapa-municipio,
.ops-mapa-container {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    margin-top: 8px;
    z-index: 1;
    background: #f0f2f5;
    position: relative;
}

#ops-mapa-municipio {
    height: 500px;
}

/* Spinner de carga del mapa */
#ops-mapa-loading {
    background: #f8f9fa;
    border: 1.5px dashed #dee2e6;
    border-radius: 8px;
}

/* Botón centrar ubicación */
#ops-centrar-ubicacion {
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 14px;
    transition: all 0.2s ease;
}

#ops-centrar-ubicacion:hover {
    background: #158cba;
    color: #fff;
    border-color: #158cba;
}

/* ── Encuesta emojis ─────────────────────────────────────────── */
.ops-encuesta-rating {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.ops-encuesta-rating input[type="radio"] {
    display: none;
}

.ops-encuesta-rating label {
    font-size: 2.2rem;
    cursor: pointer;
    transition: transform 0.15s;
    opacity: 0.5;
}

.ops-encuesta-rating input:checked+label,
.ops-encuesta-rating label:hover {
    transform: scale(1.25);
    opacity: 1;
}

/* ── Estado vacío ───────────────────────────────────────────── */
.ops-empty {
    text-align: center;
    color: #6c757d;
    padding: 32px;
    font-style: italic;
}

/* ── Spinner ────────────────────────────────────────────────── */
.ops-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-top-color: #158cba;
    border-radius: 50%;
    animation: ops-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes ops-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Acción principal: cambio de estatus (compatibilidad con JS dinámico) ──── */
.ops-panel-division .btn-estatus,
.ops-panel-division .btn-estatus.btn-primary,
.ops-panel-division .btn-estatus.btn-success,
.ops-panel-division .btn-estatus.btn-danger {
    /* Delegado a .ops-btn-action.ops-btn-* */
}

/* Los botones generados por JS usan btn btn-sm btn-estatus btn-* */
.ops-panel-division .btn.btn-sm.btn-estatus.btn-primary,
.ops-panel-division .btn.btn-sm.btn-estatus.btn-success,
.ops-panel-division .btn.btn-sm.btn-estatus.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 36px;
    line-height: 1;
}

.ops-panel-division .btn.btn-sm.btn-estatus.btn-primary {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(21, 140, 186, 0.2);
}

.ops-panel-division .btn.btn-sm.btn-estatus.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(21, 140, 186, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.ops-panel-division .btn.btn-sm.btn-estatus.btn-success {
    background: linear-gradient(135deg, #198754 0%, #21a463 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.2);
}

.ops-panel-division .btn.btn-sm.btn-estatus.btn-success:hover {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.ops-panel-division .btn.btn-sm.btn-estatus.btn-danger {
    background: transparent;
    border: 1.5px solid #dc3545;
    color: #dc3545;
}

.ops-panel-division .btn.btn-sm.btn-estatus.btn-danger:hover {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
    transform: translateY(-1px);
}

/* ── Modal ────────────────────────────────────────────────────── */
#ops-modal-detalle .modal-header.bg-dark {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
}

#ops-modal-detalle .modal-title.text-white {
    font-weight: 700;
    letter-spacing: -0.3px;
}

#ops-modal-detalle .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#ops-modal-detalle .table-light th {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #2c3e50;
}

#ops-modal-detalle .border-start.border-4 {
    border-left-color: #158cba !important;
}

#ops-modal-detalle h6.border-bottom {
    border-bottom: 2px solid #158cba !important;
    color: #1A3A5C;
    font-weight: 700;
    font-size: 0.85rem;
    padding-bottom: 6px;
}

/* ── Formulario de reporte ciudadano ─────────────────────────── */
#ops-form-reporte .card-title {
    color: #1A3A5C;
    font-weight: 700;
}

#ops-form-reporte h6.border-bottom.text-primary {
    border-bottom: 2px solid #158cba !important;
    color: #1A3A5C !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding-bottom: 6px;
}

#ops-form-reporte .form-select:focus,
#ops-form-reporte .form-control:focus {
    border-color: #158cba;
    box-shadow: 0 0 0 3px rgba(21, 140, 186, 0.15);
}

#ops-form-reporte .btn-primary.ops-btn--submit {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(21, 140, 186, 0.3);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

#ops-form-reporte .btn-primary.ops-btn--submit:hover {
    box-shadow: 0 6px 20px rgba(21, 140, 186, 0.45);
    transform: translateY(-2px);
}

#ops-form-reporte .form-text {
    color: #6c757d;
    font-size: 0.78rem;
}

/* ── Login / Registro tabs ─────────────────────────────────────── */
.ops-wrap .nav-pills .nav-link {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.ops-wrap .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(21, 140, 186, 0.25);
}

.ops-wrap .nav-pills .nav-link:not(.active):hover {
    background: #e9ecef;
}

.ops-wrap .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #158cba !important;
    transition: box-shadow 0.2s ease;
}

.ops-wrap .card:hover {
    box-shadow: 0 4px 20px rgba(21, 140, 186, 0.1);
}

/* ── Exportación PDF cards ─────────────────────────────────────── */
.ops-panel-direccion .bg-light.p-3.rounded.border {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-left: 4px solid #158cba !important;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.ops-panel-direccion .bg-light.p-3.rounded.border:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ops-panel-direccion .bg-light.p-3.rounded.border h6 {
    color: #1A3A5C;
    font-weight: 700;
}

.ops-panel-direccion .btn-info.text-white {
    background: linear-gradient(135deg, #17a2b8 0%, #20c4e0 100%);
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ops-panel-direccion .btn-success {
    background: linear-gradient(135deg, #198754 0%, #21a463 100%);
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ops-panel-direccion .btn-warning.text-white {
    background: linear-gradient(135deg, #d39e00 0%, #ffc107 100%);
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ops-panel-direccion .btn-primary {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(21, 140, 186, 0.2);
    transition: all 0.2s ease;
}

.ops-panel-direccion .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(21, 140, 186, 0.35);
    transform: translateY(-1px);
}

/* ── Tarjetas de resumen (dirección) ──────────────────────────── */
.ops-panel-direccion .card .fs-2.fw-bold {
    color: #1A3A5C;
}

.ops-panel-direccion .card .fs-2.fw-bold.text-primary {
    color: #158cba !important;
}

.ops-panel-direccion .bg-light.rounded-circle.p-3 {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%) !important;
    border: 1.5px solid #dee2e6;
}

/* ── Progress bars ────────────────────────────────────────────── */
.ops-panel-direccion .progress-bar {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    border-radius: 4px;
}

.ops-panel-direccion .progress {
    background: #e9ecef;
    border-radius: 4px;
}

/* ── Nota interna input ───────────────────────────────────────── */
.ops-panel-division .ops-nota-interna-input,
.ops-panel-direccion .ops-nota-interna-input {
    font-size: 0.8rem;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.ops-panel-division .ops-nota-interna-input:focus,
.ops-panel-direccion .ops-nota-interna-input:focus {
    border-color: #158cba;
    box-shadow: 0 0 0 3px rgba(21, 140, 186, 0.15);
}

/* ── Coordenadas en el mapa ───────────────────────────────────── */
.ops-coords-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #158cba;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    margin-top: 8px;
}

/* ── Mapa municipio shortcode ──────────────────────────────────── */
.ops-wrap>.card:has(#ops-mapa-municipio) {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #158cba !important;
}

.ops-wrap>.card:has(#ops-mapa-municipio) .card-body .badge.bg-danger {
    background: linear-gradient(135deg, #bb2d3b 0%, #dc3545 100%) !important;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.ops-wrap>.card:has(#ops-mapa-municipio) .card-body .badge.bg-warning {
    background: linear-gradient(135deg, #d39e00 0%, #ffc107 100%) !important;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

/* ── Botones de filtro del mapa ────────────────────────────────── */
#ops-mapa-filtros .btn-primary {
    background: linear-gradient(135deg, #158cba 0%, #1a9fd0 100%);
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 4px 16px;
    transition: all 0.2s ease;
}

#ops-mapa-filtros .btn-outline-primary {
    border: 1.5px solid #158cba;
    color: #158cba;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 4px 16px;
    transition: all 0.2s ease;
}

#ops-mapa-filtros .btn-outline-primary:hover {
    background: #158cba;
    color: #fff;
}

/* ── Estadisticas shortcode ────────────────────────────────────── */
.ops-stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.ops-stat-card:hover {
    box-shadow: 0 4px 20px rgba(21, 140, 186, 0.12);
}

.ops-stat-card .card-title {
    color: #1A3A5C;
    font-weight: 700;
    font-size: 1rem;
}

.ops-stat-card .bg-light.rounded.p-2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.ops-stat-card .bg-success.bg-opacity-10 {
    background: linear-gradient(135deg, #d1e7dd 0%, #f0faf4 100%) !important;
}

.ops-stat-card .bg-danger.bg-opacity-10 {
    background: linear-gradient(135deg, #f8d7da 0%, #fff5f5 100%) !important;
}

/* ── Graficos de estadisticas ──────────────────────────────────── */
.ops-wrap .card:has(canvas) {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #158cba !important;
}

.ops-wrap .card:has(canvas) .card-title {
    color: #1A3A5C;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ── Tabla de alertas en estadisticas ──────────────────────────── */
#ops-stats-alertas {
    border: 2px solid #dc3545 !important;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #dc3545 !important;
}

#ops-stats-alertas .table-danger th {
    background: linear-gradient(135deg, #5c1a1a 0%, #a82525 100%) !important;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Admin: pagina PDF ─────────────────────────────────────────── */
.ops-wrap .card:has(.btn-info),
.ops-wrap .card:has(.btn-success),
.ops-wrap .card:has(.btn-warning) {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.ops-wrap .card:has(.btn-info):hover,
.ops-wrap .card:has(.btn-success):hover,
.ops-wrap .card:has(.btn-warning):hover {
    box-shadow: 0 4px 20px rgba(21, 140, 186, 0.12);
}

/* ── Modal dialog dimensiones (el modal se mueve al <body> vía JS) ── */
#ops-modal-detalle .modal-dialog {
    max-width: 900px;
    width: auto;
    min-width: 320px;
}

@media (max-width: 992px) {
    #ops-modal-detalle .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        min-width: 0;
        width: 100%;
    }
}

/* ── Modal: tablas con labels flexibles (sin width fijo) ────── */
.ops-modal-table td {
    vertical-align: top !important;
    padding: 4px 4px !important;
}

.ops-modal-label {
    white-space: nowrap;
    padding-right: 12px !important;
    color: #2c3e50;
    font-size: 0.78rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ops-app-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .ops-filtros-card .d-flex {
        flex-direction: column;
    }

    .ops-filtros-card .flex-shrink-0 {
        width: 100%;
    }

    .ops-filtros-card .flex-shrink-0 .ops-btn {
        flex: 1;
    }

    .ops-card-actions {
        flex-direction: column;
    }

    .ops-foto-thumb-link {
        width: 100%;
        height: 120px;
    }

    .ops-actions-right {
        width: 100%;
    }

    .ops-panel-direccion .row.g-3 .col-md-3 {
        margin-bottom: 12px;
    }

    #ops-mapa-reporte,
    .ops-mapa-container {
        height: 300px;
    }

    #ops-centrar-ubicacion {
        width: 100%;
        text-align: center;
    }
}

/* ── FIX #10: Toggle mostrar/ocultar contraseña ─────────────────── */
.ops-pass-wrap .btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
    background: #fff;
    padding: 0 12px;
    min-width: 42px;
}

.ops-pass-wrap .btn-outline-secondary:hover {
    background: #f8f9fa;
    color: #495057;
}

.ops-pass-wrap .form-control {
    border-right: none;
}

.ops-pass-wrap .btn-outline-secondary {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* Ocultar el ojo nativo del navegador dentro del input */
.ops-pass-wrap input[type="password"]::-ms-reveal,
.ops-pass-wrap input[type="password"]::-ms-clear {
    display: none !important;
}

.ops-pass-wrap input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
}

/* ── FIX #8/#11: Tarjetas de reporte en móvil ───────────────────── */
.ops-reporte-card.card {
    border-radius: 10px;
    transition: box-shadow 0.15s ease;
}

.ops-reporte-card.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
}

/* Colores de borde izquierdo por alerta en tarjeta móvil */
.ops-alerta-verde.card {
    border-left-color: #198754 !important;
}

.ops-alerta-amarillo.card {
    border-left-color: #ffc107 !important;
}

.ops-alerta-naranja.card {
    border-left-color: #fd7e14 !important;
}

.ops-alerta-rojo.card {
    border-left-color: #dc3545 !important;
}

/* ── FIX #11: Formulario registro — campos apilados en móvil ─────── */
@media (max-width: 575.98px) {
    .ops-wrap .row>[class*="col-md-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Botones de estatus más grandes en táctil */
    .btn-estatus {
        min-height: 40px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    /* Header responsive */
    .ops-wrap h1 {
        font-size: 1.25rem !important;
    }
}

/* ── Mejora general botones táctiles ────────────────────────────── */
@media (max-width: 991.98px) {

    .btn-estatus,
    .btn-ver-detalle,
    .ops-foto-btn,
    .ops-btn-action {
        min-height: 44px;
        padding: 8px 14px;
    }

    .ops-acciones-estatus {
        flex-direction: column;
    }

    .ops-acciones-estatus .btn,
    .ops-acciones-estatus .ops-btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* ── Estadísticas mejoradas: resumen ejecutivo ──────────────────────── */
.ops-wrap .card:has(.fa-file-lines) {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.ops-wrap .card:has(.fa-file-lines) .card-title {
    color: #1A3A5C;
    font-size: 1rem;
}

.ops-wrap .card:has(.fa-file-lines) .card-text {
    color: #2c3e50;
}

/* ── Tarjetas de métricas clave ─────────────────────────────────────── */
.ops-wrap .card:has(.text-uppercase) .card-body {
    padding: 1rem;
}

.ops-wrap .card:has(.text-uppercase) .progress {
    background: #e9ecef;
    border-radius: 4px;
}

.ops-wrap .card:has(.text-uppercase) .progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ── Barra de eficiencia en tarjetas de división ────────────────────── */
.ops-stat-card .progress {
    background: #e9ecef;
    border-radius: 4px;
}

.ops-stat-card .stat-bar {
    transition: width 0.6s ease;
}

/* ── Desglose por tipo de trabajo ──────────────────────────────────── */
.ops-wrap .table-dark th {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%) !important;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 8px;
    border-bottom: none;
}

.ops-wrap .table tbody tr:hover {
    background: #f0f7fb;
}

.ops-wrap .table tbody td {
    vertical-align: middle;
    padding: 8px;
    font-size: 0.88rem;
}

/* ── Top sectores lista ────────────────────────────────────────────── */
.ops-wrap ol li {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Donut y sector charts responsivos ──────────────────────────────── */
@media (max-width: 768px) {

    .ops-wrap .row.g-3.mb-4 .col-md-5,
    .ops-wrap .row.g-3.mb-4 .col-md-4,
    .ops-wrap .row.g-3.mb-4 .col-md-3 {
        margin-bottom: 12px;
    }
}

/* ── Tab bar for division panel header ──────────────────────────── */
.ops-tab-bar {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    flex-wrap: wrap;
}

.ops-tab-bar li {
    margin: 0;
}

.ops-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    min-height: 38px;
}

.ops-tab-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.ops-tab-active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ops-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
}

.ops-tab-active .ops-tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Tab badge for citizen pills ────────────────────────────────── */
.ops-report-tabs .nav-link {
    position: relative;
}

.ops-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #e9ecef;
    color: #6c757d;
    margin-left: 4px;
    line-height: 1;
}

.ops-report-tabs .nav-link.active .ops-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ── Responsive tab bar ────────────────────────────────────────── */
@media (max-width: 576px) {
    .ops-tab-bar {
        flex-direction: column;
        gap: 4px;
    }

    .ops-tab-link {
        justify-content: center;
    }
}

/* ── Mobile: fonts más grandes y oscuros (Jun 2026) ─────────── */
@media (max-width: 768px) {
    .ops-wrap {
        font-size: 0.9375rem;
    }

    .ops-mini-value {
        font-size: 0.875rem !important;
        color: #212529 !important;
    }

    .ops-mini-label {
        font-size: 0.7rem !important;
        color: #495057 !important;
    }

    .ops-mini-icon {
        font-size: 1.25rem !important;
    }

    .ops-card-numero {
        font-size: 1.125rem !important;
    }

    .ops-card-fecha,
    .ops-card-estatus {
        font-size: 0.8125rem !important;
    }

    .ops-filtros-select {
        font-size: 0.9375rem !important;
    }

    .ops-btn,
    .ops-btn-action,
    .ops-panel-division .btn.btn-sm.btn-estatus {
        font-size: 0.875rem !important;
    }

    .ops-tab-link {
        font-size: 0.875rem !important;
    }

    .ops-app-subtitle {
        font-size: 0.875rem !important;
    }

    .ops-estatus-titulo {
        font-size: 0.8125rem !important;
    }

    .ops-filtros-label {
        font-size: 0.75rem !important;
    }

    .ops-form-label,
    .ops-wrap label,
    .ops-wrap .form-label {
        font-size: 0.875rem !important;
        font-weight: 700 !important;
    }

    .ops-wrap .form-text,
    .ops-wrap .small.text-muted {
        font-size: 0.8125rem !important;
        color: #495057 !important;
    }
}

/* ── Info principal del reporte (nuevo card compacto) ── */
.ops-reporte-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ops-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.ops-info-codigo {
    font-size: 1rem;
    font-weight: 800;
    color: #1A3A5C;
    letter-spacing: -0.3px;
}

.ops-info-secondary {
    font-size: 0.82rem;
    color: #6c757d;
}

.ops-info-fecha,
.ops-info-dias {
    display: inline-flex;
    align-items: center;
}

.ops-info-tipo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.ops-info-sector {
    font-size: 0.78rem;
}

.ops-info-estatus {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.ops-venapp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d39e00 0%, #ffc107 100%);
    color: #212529;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.ops-info-actions {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
    justify-content: flex-start;
    gap: 10px;
}

.ops-btn-ver-detalle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1.5px solid #158cba;
    background: transparent;
    color: #158cba;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px;
    white-space: nowrap;
}

.ops-btn-ver-detalle:hover {
    background: #f0f4ff;
    border-color: #2563A8;
    color: #2563A8;
    text-decoration: none;
}

@media (max-width: 767px) {
    .ops-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ops-info-actions {
        flex-direction: row;
        align-items: center;
    }

    .ops-reporte-card .ops-app-card-body {
        padding: 0.75rem 1rem !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   DISEÑO LOGIN / REGISTRO — mobile-first compacto
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero section compacto ────────────────────────────────── */
.ops-hero {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%);
    border-radius: 14px;
    padding: 18px 16px 14px;
    margin-bottom: 12px;
    box-shadow: 0 3px 16px rgba(26, 58, 92, 0.18);
    color: #fff;
    text-align: center;
}

.ops-hero h1 {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    margin: 0 0 2px;
}

.ops-hero p {
    font-size: 0.7rem;
    opacity: 0.75;
    margin: 0;
}

/* ── Welcome card ─────────────────────────────────────────── */
.ops-welcome-card {
    background: #f0faf4;
    border: 2px solid #198754;
    border-radius: 14px;
    padding: 20px 16px;
    margin-bottom: 12px;
    text-align: center;
}

.ops-welcome-icon {
    font-size: 2rem;
    color: #198754;
    margin-bottom: 8px;
}

.ops-welcome-card h3 {
    font-size: 1.05rem;
}

/* ── Auth action buttons ──────────────────────────────────── */
.ops-auth-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.ops-auth-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ops-auth-btn.active {
    box-shadow: 0 3px 12px rgba(37, 99, 168, 0.25);
}

.ops-auth-btn i {
    font-size: 0.95rem;
}

/* ── Auth panels (show/hide) ──────────────────────────────── */
.ops-auth-panel {
    display: none;
    animation: opsFadeSlide 0.3s ease;
}

.ops-auth-panel.ops-panel-visible {
    display: block;
}

@keyframes opsFadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Auth card ────────────────────────────────────────────── */
.ops-auth-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #f0f2f5;
}

.ops-auth-card-header {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    padding: 14px 16px 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.ops-auth-card-header h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1A3A5C;
    margin: 0 0 2px;
}

.ops-auth-card-header p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.ops-auth-card-body {
    padding: 16px;
}

/* Login form overrides inside auth card */
.ops-auth-card-body #ops-loginform-ciudadano label,
.ops-auth-card-body #ops-loginform-division label {
    font-weight: 700 !important;
    font-size: 0.8rem;
    color: #1A3A5C;
    margin-bottom: 4px;
}

.ops-auth-card-body #ops-loginform-ciudadano input[type="text"],
.ops-auth-card-body #ops-loginform-ciudadano input[type="email"],
.ops-auth-card-body #ops-loginform-ciudadano input[type="password"],
.ops-auth-card-body #ops-loginform-division input[type="text"],
.ops-auth-card-body #ops-loginform-division input[type="email"],
.ops-auth-card-body #ops-loginform-division input[type="password"] {
    border-radius: 8px;
    padding: 8px 12px;
    border: 1.5px solid #dee2e6;
    width: 100%;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ops-auth-card-body #ops-loginform-ciudadano input:focus,
.ops-auth-card-body #ops-loginform-division input:focus {
    border-color: #2563A8;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.12);
    outline: none;
}

.ops-auth-card-body #ops-loginform-ciudadano .button-primary,
.ops-auth-card-body #ops-loginform-division .button-primary {
    width: 100%;
    padding: 9px 12px;
    background: linear-gradient(135deg, #1A3A5C 0%, #2563A8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 168, 0.2);
}

.ops-auth-card-body #ops-loginform-ciudadano .button-primary:hover,
.ops-auth-card-body #ops-loginform-division .button-primary:hover {
    box-shadow: 0 4px 14px rgba(37, 99, 168, 0.3);
}

.ops-auth-card-body #ops-loginform-ciudadano .forgetmenot,
.ops-auth-card-body #ops-loginform-division .forgetmenot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.ops-auth-card-body #ops-loginform-ciudadano .forgetmenot input,
.ops-auth-card-body #ops-loginform-division .forgetmenot input {
    width: auto;
}

.ops-auth-links {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.ops-link-forgot {
    color: #6c757d;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}

.ops-link-forgot:hover {
    color: #2563A8;
    text-decoration: underline;
}

/* ── Step indicator for registration ──────────────────────── */
.ops-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 14px;
}

.ops-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    transition: all 0.2s ease;
}

.ops-step.active {
    background: #f0f4ff;
    border-color: #2563A8;
    box-shadow: 0 2px 8px rgba(37, 99, 168, 0.1);
}

.ops-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
}

.ops-step.active .ops-step-num {
    background: #2563A8;
    color: #fff;
}

.ops-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.ops-step.active .ops-step-label {
    color: #1A3A5C;
}

.ops-step-line {
    width: 20px;
    height: 2px;
    background: #dee2e6;
    margin: 0 2px;
}

/* Header responsive ciudadano */
@media (max-width: 767.98px) {
    .ops-header-title {
        font-size: 1.1rem !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 480px) {
    .ops-step {
        padding: 4px 8px;
    }
    .ops-step-label {
        font-size: 0.6rem;
    }
    .ops-step-line {
        width: 12px;
    }
}

/* ── Step content fade ────────────────────────────────────── */
.ops-step-content {
    animation: opsFadeSlide 0.25s ease;
}

/* ── Input group icons ────────────────────────────────────── */
.ops-auth-card-body .input-group-text {
    background: #f8f9fa;
    border: 1.5px solid #dee2e6;
    border-right: none;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 6px 10px;
}

.ops-auth-card-body .input-group .form-control,
.ops-auth-card-body .input-group .ops-pass-wrap input {
    border-left: none;
    font-size: 0.82rem;
    padding: 6px 10px;
}

.ops-auth-card-body .input-group .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.ops-auth-card-body .input-group:focus-within .input-group-text {
    border-color: #2563A8;
    color: #2563A8;
}

.ops-auth-card-body .input-group:focus-within .form-control {
    border-color: #2563A8;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.12);
}

.ops-auth-card-body .input-group .ops-pass-wrap .btn-outline-secondary {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* ── Change password card override ────────────────────────── */
#ops-cambiar-pass-wrap .card {
    border-left-color: #ffc107 !important;
}

#ops-cambiar-pass-wrap .card-title {
    color: #1A3A5C;
    font-weight: 700;
}

/* ── Responsive tweaks for auth ───────────────────────────── */
@media (max-width: 576px) {
    .ops-auth-actions {
        flex-direction: column;
    }
    .ops-auth-card-body .row .col-md-6 {
        margin-bottom: 0;
    }
    .ops-auth-card-body .form-label {
        font-size: 0.78rem;
    }
    .ops-auth-card-body .form-text {
        font-size: 0.68rem;
    }
    .ops-auth-card-body .step-content .mb-3 {
        margin-bottom: 8px;
    }
}

/* ── Sección foto del incidente ── */
.ops-foto-zona {
    border: 1.5px dashed #c8d6e8;
    border-radius: 10px;
    padding: 14px 14px 10px;
    background: #f8fafd;
}

.ops-foto-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.ops-foto-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1.5px solid #2563A8;
    background: #fff;
    color: #2563A8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ops-foto-btn-item i {
    font-size: 1.3rem;
}

.ops-foto-btn-item:hover,
.ops-foto-btn-item:focus {
    background: #2563A8;
    color: #fff;
    outline: none;
}

.ops-foto-hint {
    font-size: 0.78rem;
    color: #6b7a8d;
    margin: 0;
    line-height: 1.4;
}

.ops-foto-hint i {
    color: #2563A8;
}

/* ── Historial acordeón ── */
.ops-hist-item {
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    margin-bottom: 8px;
    overflow: hidden;
}

.ops-hist-item .accordion-button {
    padding: 10px 14px;
    font-size: 0.875rem;
    background: #f8fafd;
}

.ops-hist-item .accordion-button:not(.collapsed) {
    background: #eef4ff;
    color: #1A3A5C;
    box-shadow: none;
}

.ops-hist-resumen {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ops-hist-fecha {
    color: #6b7a8d;
    font-size: 0.8rem;
    white-space: nowrap;
}

.ops-hist-badge {
    background: #2563A8;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ops-hist-body {
    padding: 10px 14px;
    font-size: 0.875rem;
}

.ops-hist-fila {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ops-hist-fila:last-child {
    border-bottom: none;
}

.ops-hist-label {
    font-weight: 600;
    color: #6b7a8d;
    min-width: 85px;
    flex-shrink: 0;
}