/* Design system SICOF - estilo moderno tipo app móvil */

:root {
    --sicof-primary: #010206;
    --sicof-primary-soft: #0102061a;
    --sicof-primary-strong: #ed1c24; /* Rojo COLINS */
    --sicof-bg: #f3f4f6;
    --sicof-surface: #ffffff;
    --sicof-text-main: #0f172a;
    --sicof-text-muted: #6b7280;
    --sicof-border-soft: #e5e7eb;
    --sicof-radius-lg: 18px;
    --sicof-radius-xl: 26px;
    --sicof-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Tipografía general */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Inter", "Roboto", system-ui, sans-serif !important;
    background-color: var(--sicof-bg) !important;
    color: var(--sicof-text-main);
}

/* Quitar el fondo negro del login antiguo */
body.bg-black {
    background-color: var(--sicof-bg) !important;
}

/* ===========================
   LOGIN
   =========================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--sicof-surface);
    border-radius: var(--sicof-radius-xl);
    box-shadow: var(--sicof-shadow-soft);
    padding: 24px 22px 26px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Logo login */
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}

.auth-logo img {
    max-width: 160px;
    height: auto;
}

.auth-logo-title {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sicof-text-main);
}

/* Textos login */
.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--sicof-text-main);
}

.auth-subtitle {
    font-size: 13px;
    color: var(--sicof-text-muted);
    margin-bottom: 16px;
}

/* Inputs login */
.auth-field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--sicof-text-muted);
    margin-bottom: 4px;
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border-radius: 999px;
    border: 1px solid var(--sicof-border-soft);
    padding: 8px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
                background-color 0.18s ease;
}

.auth-input-wrapper:focus-within {
    border-color: var(--sicof-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
    background-color: #ecfeff;
}

.auth-input-icon {
    font-size: 16px;
    color: var(--sicof-primary-strong);
}

/* Input limpio */
.auth-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--sicof-text-main) !important;
    font-size: 14px !important;
}

.auth-input:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.auth-input::placeholder {
    color: #9ca3af;
}

/* Botón login */
.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--sicof-primary);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.60);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                background-color 0.12s ease;
}

.auth-button:hover {
    background: var(--sicof-primary-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.40);
}

/* Texto ayuda login */
.auth-footer-text {
    margin-top: 12px;
    font-size: 12px;
    color: var(--sicof-text-muted);
    text-align: center;
}

/* Para que el viejo .form-box no rompa el nuevo layout */
.form-box#login-box {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Responsive login */
@media (min-width: 768px) {
    .auth-card {
        padding: 28px 28px 30px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
    }
}

/* ===========================
   LAYOUT PRINCIPAL (WRAPPER)
   =========================== */

.wrapper,
body .wrapper {
    /*max-width: 1360px;*/
    margin: 16px auto;
    background: #f3f4f6;
    border-radius: 26px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 991px) {
    .wrapper {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

/* ===========================
   HEADER
   =========================== */

.navbar.app-header {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
}

/* quitar logo viejo */
.navbar .logo {
    display: none !important;
}

/* quitar estilos viejos del toggle */
.navbar.app-header .sidebar-toggle {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* lado izquierdo */
.app-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* botón hamburguesa */
.app-icon-button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    outline: none;
    background: #ccfbf1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease,
                box-shadow 0.15s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.app-icon-button i {
    color: #606061;
    font-size: 17px;
}

.app-icon-button:hover {
    background: #a5f3fc;
    transform: translateY(-1px);
}

.app-icon-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(34, 197, 168, 0.45);
}

/* marca header */
.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-brand-logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.app-brand-text {
    display: flex;
    flex-direction: column;
}

.app-brand-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
}

.app-brand-subtitle {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* usuario en header */
.app-header-right {
    display: flex;
    align-items: center;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* círculo visible del usuario */
.app-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f766e;
    cursor: pointer;
    border: none;
}

.app-user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
    border: none;
    background: transparent;
}

.app-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.app-user-role {
    font-size: 11px;
    color: #6b7280;
}

/* ===========================
   SIDEBAR ROJO COLINS
   =========================== */

.leftmenu.app-sidebar {
    /*background: linear-gradient(180deg, #ed1c24 0%, #7a0e15 50%, #000000 100%);*/
    background: #ffffff;
    width: 220px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    color: #000000;
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.4);
}

.leftmenu.app-sidebar .sidebar {
    padding: 14px 12px 18px;
    height: 100%;
    overflow-y: auto !important;    /* << permite scrollear solo el menú */
    overflow-x: hidden;
}

/* header del sidebar */
.app-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.app-sidebar-header img {
    height: 36px;
    width: auto;
    border-radius: 12px;
    /*background: rgba(15, 23, 42, 0.65);*/
    padding: 4px 6px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.55);
}

.app-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-sidebar-subtitle {
    font-size: 11px;
    color: #9ca3af;
}

/* menú */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu > li.header {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 10px 18px 6px;
}

.sidebar-menu > li > a {
    border-radius: 999px;
    margin: 4px 6px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e7eb;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.08s ease,
                box-shadow 0.15s ease;
    border: 1px solid transparent;
}

.sidebar-menu > li > a > i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* hover */
.sidebar-menu > li > a:hover {
    background: rgba(178, 15, 36, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.5);
}

/* activo */
.sidebar-menu > li.active > a {
    background: #f9fafb;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
}

.sidebar-menu > li.active > a > i {
    color: #ed1c24;
}

/* footer sidebar */
.app-sidebar-footer {
    margin-top: 18px;
    padding: 10px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 11px;
    color: #9ca3af;
}

/* ===========================
   CONTENIDO
   =========================== */

.right-side {
    margin-left: 220px;
    margin-top: 0;
    background: #f3f4f6;
    min-height: 100vh;
    padding: 16px 18px 22px;
}

/* Card genérica */
.app-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    margin-bottom: 16px;
}

/* ===========================
   MENÚ DE USUARIO (dropdown)
   =========================== */

.app-user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* tarjeta dropdown */
.user-menu-card {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-radius: 16px;
    width: 230px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* encabezado tarjeta */
.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f9fafb;
}

.user-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    object-fit: contain;
    border: 1px solid #e2e8f0;
}

.user-card-text {
    display: flex;
    flex-direction: column;
}

.user-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.user-card-role {
    font-size: 11px;
    color: #64748b;
}

/* cuerpo tarjeta */
.user-card-body {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: background .2s ease;
}

.user-btn i {
    font-size: 14px;
}

/* botón perfil */
.user-btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.user-btn-secondary:hover {
    background: #e2e8f0;
}

/* botón cerrar sesión */
.user-btn-danger {
    background: #ed1c24;
    color: #ffffff;
}

.user-btn-danger:hover {
    background: #7a0e15;
}
/* =======================================================
   FIX HEADER: avatar visible + dropdown perfil/cerrar sesión
   ======================================================= */

/* Asegurar que el header tenga el layout correcto */
.navbar.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
}

/* Lado derecho bien pegado a la derecha */
.app-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Contenedor del menú de usuario */
.app-user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Avatar redondo visible */
.app-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ccfbf1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0f766e;
    border: none;
    padding: 0;
}

/* Nombre y rol clicable */
.app-user-meta {
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
}

.app-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.app-user-role {
    font-size: 11px;
    color: #6b7280;
}

/* Tarjeta desplegable */
.user-menu-card {
    right: 0;
    left: auto;
    margin-top: 8px;
    width: 230px;
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

/* Encabezado de la tarjeta */
.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.user-card-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ffffff;
    object-fit: contain;
    border: 1px solid #e2e8f0;
}

.user-card-text {
    display: flex;
    flex-direction: column;
}

.user-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.user-card-role {
    font-size: 11px;
    color: #64748b;
}

/* Botones Perfil / Cerrar sesión */
.user-card-body {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
    background: #ffffff;
}

.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.user-btn i {
    font-size: 14px;
}

/* Perfil */
.user-btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.user-btn-secondary:hover {
    background: #e2e8f0;
}

/* Cerrar sesión */
.user-btn-danger {
    background: #ed1c24;
    color: #ffffff;
}

.user-btn-danger:hover {
    background: #7a0e15;
}
/* ==========================================
   FIX: Treeview limpio sin fondo negro feo
   ========================================== */

/* Quita el fondo negro que AdminLTE agrega */
.sidebar-menu .treeview-menu {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 26px !important;
    margin: 4px 0 !important;
}

/* Hacer las opciones internas limpias y bonitas */
.sidebar-menu .treeview-menu > li > a {
    color: #606061 !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 4px !important;
    font-size: 13px !important;
    transition: color .15s ease;
}

/* Hover elegante */
.sidebar-menu .treeview-menu > li > a:hover {
    color: #ff0000 !important;
    font-weight: 500 !important;
}

/* Íconos internos */
.sidebar-menu .treeview-menu > li > a > i {
    color: #d1d5db !important;
    margin-right: 6px;
}

/* ==========================================
   OCULTAR SCROLL DEL SIDEBAR (SCROLL INVISIBLE)
   ========================================== */

/* Chrome, Edge, Opera */
.leftmenu.app-sidebar .sidebar::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
}

/* Firefox */
.leftmenu.app-sidebar .sidebar {
    scrollbar-width: none !important; /* Oculta barra */
}

/* Safari */
.leftmenu.app-sidebar .sidebar::-webkit-scrollbar-thumb {
    background: transparent !important;
}

/* ==========================================
   CARDS GLOBALES (panel / box -> tarjeta)
   ========================================== */

.box,
.panel {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}

.box-header,
.panel-heading {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: #f9fafb;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 10px 16px;
}

.box-title,
.panel-title,
.panel-heading {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.box-body,
.panel-body {
    padding: 14px 16px 16px 16px;
}

/* ==========================================
   TABLAS GLOBALES
   ========================================== */

.table {
    background: #ffffff;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    font-size: 13px;
}

.table > thead > tr {
    background: #f9fafb;
}

.table > thead > tr > th {
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    padding: 8px 10px;
    vertical-align: middle;
}

.table > tbody > tr > td {
    border-top: 1px solid #f1f5f9;
    padding: 7px 10px;
    vertical-align: middle;
}

/* Striped + hover más suaves */
.table.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9fafb;
}

.table.table-hover > tbody > tr:hover {
    background-color: #e5f3ff;
}

/* Alinear acciones a la derecha si usas botones */
.table td .btn,
.table td .btn-accion {
    margin-left: 2px;
    margin-right: 2px;
}

/* ==========================================
   BOTONES GLOBALES BOOTSTRAP
   ========================================== */

/* BOTONES GLOBALES BOOTSTRAP */
.btn {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-width: 1px;
    transition: background-color .12s ease, color .12s ease,
                box-shadow .12s ease, transform .08s ease;
}

.btn-primary,
.btn-info,
.btn-success {
    background-color: #ed1c24 !important;    /* <--- OJO: solo background-color */
    border-color: #ed1c24 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(178, 15, 36, 0.45) !important;
}


.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
    background-color: #7a0e15 !important;
    border-color: #7a0e15 !important;
    box-shadow: 0 0 26px rgba(0,0,0,0.30) !important; /* halo gris más fuerte */
    transform: translateY(-1px);
}

/* Secundario / default */
.btn-default,
.btn-info {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.btn-default:hover,
.btn-info:hover {
    background: #f3f4f6;
}

/* Peligro (eliminar, etc.) */
.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.45);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* Botones XS / SM más compactos */
.btn-xs, .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ==========================================
   INPUTS GLOBALES
   ========================================== */

.form-control {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    font-size: 13px;
    padding: 6px 12px;
    height: 32px;
}

.form-control:focus {
    border-color: #ed1c24;
    outline: none;
    box-shadow: 0 0 0 1px rgba(178, 15, 36, 0.35);
}

/* Textarea */
textarea.form-control {
    border-radius: 14px;
    min-height: 70px;
}

/* Selects */
select.form-control {
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
                      linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: calc(100% - 14px) 10px, calc(100% - 9px) 10px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    appearance: none;
}

/* ==========================================
   CONTENT HEADER GLOBAL
   ========================================== */

.content-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.content-header h1 small {
    font-size: 12px;
    color: #6b7280;
}

/* ==========================================
   FONDO DEL CONTENEDOR (right-side)
   QUITAR EL FONDO GRIS
   ========================================== */

.right-side,
section.content {
    background: #ffffff !important;
}

/* Eliminar el “área gris” superior de las cards */
.app-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08) !important;
}

/* ==========================================
   BOTONES DE ACCIONES DENTRO DE TABLAS
   ========================================== */

/* Cualquier botón dentro de celdas de tabla */
/* FIX definitivo para que se vea el ícono (background-image) */

.table td .btn,
.table td button {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    min-width: auto !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}


/* Las imágenes dentro de esos botones (tus íconos PNG) */
.table td .btn img,
.table td button img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Efecto hover suave para que se note que son clicables */
.table td .btn:hover,
.table td button:hover {
    background-color: #f3f4f6 !important;  /* halo gris claro SIN borrar la imagen */
}

/* Si tus íconos están directos en la celda sin button/a */
.table td img {
    vertical-align: middle;
}

/* ==========================================
   FIX: botones / iconos dentro de las tablas
   ========================================== */

/* Botones dentro de celdas: sin fondo rojo pero visibles */

/* Imágenes dentro de esos botones (tus PNG) */
.table td .btn img,
.table td button img {
    display: inline-block !important;
    max-width: 24px;
    max-height: 24px;
    opacity: 1 !important;
}

/* Por si en alguna tabla los íconos están directos en la celda */
.table td img {
    display: inline-block !important;
    opacity: 1 !important;
}

/* BOTONES DE ACCIÓN EN TABLAS (EDITAR / ELIMINAR, ETC) */
.table td .btn-success {
    background-color: transparent !important;  /* deja ver la imagen */
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    min-width: auto !important;
}

/* Efecto hover sin matar el icono */
.table td .btn-success:hover {
    background-color: #f3f4f6 !important;      /* halo gris */
}

/* ==========================================
   FIX: que los botones NO se vuelvan azules
   al tener foco / active (usar rojo COLINS)
   ========================================== */

.btn-primary,
.btn-info,
.btn-success {
    background-color: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(178, 15, 36, 0.45) !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
    background-color: #7a0e15 !important;
    border-color: #7a0e15 !important;
}

/* Foco y active con el mismo rojo, sin azul Bootstrap */
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus,
.btn-info:focus,
.btn-info:active,
.btn-info:active:focus,
.btn-success:focus,
.btn-success:active,
.btn-success:active:focus {
    background-color: #7a0e15 !important;
    border-color: #7a0e15 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(178, 15, 36, 0.35) !important; /* aro suave rojo */
}

/* ==========================================
   BOTONES DE ACCIÓN EN TABLAS (EDITAR / ELIMINAR…)
   ========================================== */

/* Estilo base para los botones de acción dentro de las tablas */
.table td .btn-success,
.table td .btn-danger {
    background-color: #ffffff !important;      /* pastilla blanca */
    border-color: #e5e7eb !important;
    border-radius: 999px !important;
    padding: 4px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;

    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12) !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

/* Hover: un poco más de sombra y gris suave */
.table td .btn-success:hover,
.table td .btn-danger:hover {
    background-color: #f3f4f6 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
}

/* Quitar el texto/colores internos; sólo nos interesa el icono */
.table td .btn-success span,
.table td .btn-danger span {
    display: none;
}
/* ==========================================
   BOTONES DE ACCIÓN EN TABLAS (EDITAR / ELIMINAR…)
   CON BORDE ROJO COLINS
   ========================================== */

.table td .btn-success,
.table td .btn-danger,
.table td .btn-warning,
.table td .btn-info {
    background-color: #ffffff !important;      /* pastilla blanca */
    border: 2px solid #ed1c24 !important;      /* borde rojo COLINS */
    border-radius: 999px !important;
    padding: 4px !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12) !important;

    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;

    transition: 0.15s ease-in-out;
}

/* Hover más profesional */
.table td .btn-success:hover,
.table td .btn-danger:hover,
.table td .btn-warning:hover,
.table td .btn-info:hover {
    background-color: #ffecee !important;      /* rosado muy leve */
    border-color: #7a0e15 !important;          /* borde rojo más oscuro */
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) !important;
    transform: translateY(-1px);
}

/* EDITAR: borde gris, acción neutra */
.table td .btn-success {
    border-color: #d1d5db !important;
}

/* ELIMINAR: borde rojo, acción peligrosa */
.table td .btn-danger {
    border-color: #ed1c24 !important;
}

/* Encabezado fijo en tablas largas */
.table-responsive {
    max-height: 60vh;        /* ajusta al gusto */
    overflow-y: auto;
}

.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f9fafb;
}

/* Chips de estatus */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.badge-status.activo {
    background: #ecfdf5;
    color: #15803d;
}

.badge-status.inactivo {
    background: #fef2f2;
    color: #b91c1c;
}


.content-header {
    margin-bottom: 4px;
}

.content-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.content-header h1 small {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    color: #9ca3af;
}


.table.table-hover > tbody > tr:hover {
    background-color: #f3f4ff;      /* un gris muy claro azulado */
    box-shadow: inset 2px 0 0 #ed1c24;  /* línea roja a la izquierda */
}


.clientes-filter-input,
.form-control {
    transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}



/* ==========================================
   INPUT GROUP MODERNO (ICONO + INPUT)
   ========================================== */

.input-group {
    display: table;
    width: 100%;
    border-collapse: separate;
}

/* Span que contiene el icono (filtro) */
.input-group-addon {
    display: table-cell !important;          /* clave: vuelve al lado del input */
    vertical-align: middle !important;

    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-right: none !important;

    padding: 6px 10px !important;
    border-radius: 999px 0 0 999px !important;  /* redondeo solo a la izquierda */
}

/* Input que va junto al addon */
.input-group .form-control {
    display: table-cell;
    width: 100%;
    border-radius: 0 999px 999px 0 !important;  /* redondeo solo a la derecha */
    border-left: none;
}

/* Ícono del filtro */
.input-group-addon i.glyphicon-filter {
    font-size: 14px !important;
    color: #73737370 !important;
    margin: 0 !important;
}

/* Efecto cuando el input tiene foco */
.input-group .form-control:focus {
    border-color: #ed1c24;
    box-shadow: 0 0 0 1px rgba(178, 15, 36, 0.35);
}

.input-group .form-control:focus + .input-group-addon,
.input-group:focus-within .input-group-addon {
    border-color: #ed1c24 !important;
}

/* ==========================================
   FOCUS GENERAL DE INPUTS
   ========================================== */

.form-control:focus {
    border-color: #ed1c24 !important;
    box-shadow: 0 0 0 1px rgba(178, 15, 36, 0.35) !important;
    outline: none !important;
}

/* ==========================================
   INPUT + ICONO (FILTRO) COMO UNA SOLA PASTILLA
   ========================================== */

.input-group {
    display: table;
    border-collapse: separate;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    overflow: hidden;                    /* que no se vean cortes raros */
    background: #ffffff;
}

/* nos llevamos el borde al contenedor, no a cada pieza */
.input-group .form-control,
.input-group-addon {
    border: none !important;
    box-shadow: none !important;
}

/* addon (iconito) */
.input-group-addon {
    display: table-cell;
    vertical-align: middle;
    background-color: #f9fafb;
    padding: 6px 10px;
}

/* input */
.input-group .form-control {
    display: table-cell;
    width: 100%;
    border-radius: 0;   /* el redondeo ya lo tiene el .input-group */
}

/* foco en TODO el conjunto (sin azul) */
.input-group:focus-within {
    border-color: #ed1c24;
    box-shadow: 0 0 0 1px rgba(178, 15, 36, 0.35);
}

/* icono de filtro */
.input-group-addon i.glyphicon-filter {
    font-size: 14px;
    color: #6b7280;
}

/* ==========================================
   TABLAS MODERNAS GLOBAL (Bootstrap + DataTables)
   ========================================== */

.table {
    background: #ffffff;
    border-radius: 16px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    font-size: 13px;
}

/* Encabezado */
.table > thead > tr {
    background: #f9fafb;
}

.table > thead > tr > th {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
}

/* Celdas cuerpo */
.table > tbody > tr > td {
    border-top: 1px solid #f1f5f9;
    padding: 7px 10px;
    vertical-align: middle;
    color: #111827;
}

/* Zebra suave */
.table.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9fafb;
}

/* Hover moderno con “barra roja” a la izquierda */
.table.table-hover > tbody > tr:hover {
    background-color: #f3f4ff;
    box-shadow: inset 3px 0 0 #ed1c24;
}

/* Wrapper general de DataTables */
.dataTables_wrapper {
    font-size: 12px;
    color: #4b5563;
}

/* “Mostrar N registros” */
.dataTables_length select {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 3px 8px;
    font-size: 12px;
}

/* Buscador de DataTables */
.dataTables_filter input {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    font-size: 12px;
    outline: none;
}

.dataTables_filter input:focus {
    border-color: #b20f24;
    box-shadow: 0 0 0 1px rgba(178, 15, 36, 0.35);
}

/* Paginación */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 999px !important;
    padding: 3px 8px !important;
    margin: 0 2px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #4b5563 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #b20f24 !important;
    border-color: #b20f24 !important;
    color: #ffffff !important;
}

/* Quitar líneas verticales internas */
.table td,
.table th {
    border-right: none !important;
}

/* Filas compactas pero limpias */
.table tbody td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Encabezado tipo glass */
.table > thead > tr > th {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* sombra tipo card */
.table {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
/* ==========================================
   PAGINACIÓN DATATABLES ESTILO COLINS
   ========================================== */

/* Estilo base de los botones de paginación */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    padding: 3px 10px !important;
    margin: 0 3px !important;

    background: transparent !important;
    color: #4b5563 !important;
    font-size: 12px;
    cursor: pointer;
}

/* Botón actual (la página en la que estás) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #b20f24 !important;
    border-color: #b20f24 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(178, 15, 36, 0.35) !important;
}

/* Hover de cualquier botón (Anterior, Siguiente, números) */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

/* Quitar el borde azul feo de foco */
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* ==========================================
   PAGINACIÓN DATATABLES SIEMPRE VISIBLE
   ========================================== */

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 999px !important;
    border: 1px solid #d1d5db !important;
    padding: 4px 10px !important;
    margin: 0 4px !important;

    background-color: #ffffff !important;   /* siempre visible */
    color: #4b5563 !important;               /* gris oscuro */
    font-size: 12px !important;

    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

/* Página activa */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #b20f24 !important;
    border-color: #b20f24 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(178, 15, 36, 0.35) !important;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #f3f4f6 !important;
    border-color: #cbd5e1 !important;
    color: #1f2937 !important;
}

/* Focus (quitar azul) */
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* Eliminar altura fija que provoca scroll interno */
.table-responsive {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
}
/* ==========================================
   SCROLL HORIZONTAL PARA TABLAS ANCHAS
   ========================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;           /* ← permite desplazarse a la derecha */
    overflow-y: visible !important;   /* ← sin scroll vertical interno */
}

/* Opcional: asegurar que la tabla tenga mínimo ancho
   para que se vea bien con muchas columnas */
.table {
    width: 100% !important;
    min-width: 100% !important;   /* usa todo el ancho disponible, pero sin excederse */
}

.row {
    margin-left: -5px !important;
    margin-right: -5px !important;
}