/******************************************************************/
/************************** IMPORT FONTS **************************/

@font-face {
	font-family: 'Roboto Bold';
	font-style: normal;
	font-weight: 700;
	src: local('Roboto Bold'), local('Roboto-Bold'), url('fonts/Roboto/Roboto-Bold.woff') format('woff');
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	src: local('Roboto Regular'), local('Roboto-Regular'), url('fonts/Roboto/Roboto-Regular.woff') format('woff');
}

@font-face {
	font-family: 'Roboto Light';
	font-style: normal;
	font-weight: 300;
	src: local('Roboto Light'), local('Roboto-Light'), url('fonts/Roboto/Roboto-Light.woff') format('woff');
}

@font-face {
	font-family: 'Roboto Thin';
	font-style: normal;
	font-weight: 100;
	src: local('Roboto Thin'), local('Roboto-Thin'), url('fonts/Roboto/Roboto-Thin.woff') format('woff');
}


/******************************************************************/
/******************************* GENERAL **************************/
header {
	margin-top: 1em;
}
.form-delete {
	display: inline;
}
.no-background {
	background: none !important;
}
.login {
	margin-top: 12em;
}
.login h4 {
	padding: .2em .5em !important;
}
.login h5 {
	padding: .1em .3em !important;
}
nav ul li select {
	height: 64px;
	background-color: #ffb300 !important;
	border: 1px solid #fff;
	color: #fff;
}
.sinborde {
	border: 0 !important;
}

/******************************************************************/
/**************** MENU MODERNO OSCURO / DINÁMICO *****************/
/******************************************************************/

nav.amber.darken-1 {
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    /*border-radius: 16px;*/
    margin: 0 auto 24px auto;
    width: 100%;
	/*width: (100% - 32px);*/
    min-height: 68px;
    height: auto;
    line-height: normal;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

nav .nav-wrapper{
	margin-bottom: -20px !important;
}

nav .nav-wrapper {
    min-height: 68px;
    height: auto;
    padding: 0 14px;
    margin-top: 0;
    display: flex;
    align-items: center;
}

nav ul.left {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-height: 68px;
    width: 100%;
    margin: 0;
}

nav ul li {
    border-radius: 12px;
    height: auto;
    transition: all 0.22s ease;
}

nav ul li a {
    height: 42px;
    line-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    color: #e5e7eb !important;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    transition: all 0.22s ease;
    position: relative;
}

nav ul li:hover > a {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

nav ul li.active > a,
nav ul li.active {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

nav ul li.active > a {
    font-weight: 700;
}


/******************************************************************/
/**************** INDICADOR DE ELEMENTOS DESPLEGABLES ************/
/******************************************************************/

nav ul li.menu-dropdown > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 9px;
    border: 1px solid rgba(255, 179, 0, 0.35);
    background: rgba(255, 179, 0, 0.08);
}

nav ul li.menu-dropdown > a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 179, 0, 0.75);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

nav ul li.menu-dropdown:hover > a::after,
nav ul li.menu-dropdown.active > a::after {
    transform: scaleX(1);
}

nav ul li.menu-dropdown:hover > a {
    background: rgba(255, 179, 0, 0.16) !important;
    border-color: rgba(255, 179, 0, 0.75);
}

nav ul li.menu-dropdown.active > a {
    background: linear-gradient(135deg, #ffca28, #ffb300) !important;
    border-color: transparent;
    color: #1f2933 !important;
}

nav .dropdown-arrow {
    font-size: 22px;
    line-height: 1;
    margin: 0;
    transition: transform 0.22s ease;
}

nav ul li.menu-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

nav ul.left > li {
    display: flex;
    align-items: center;
}

nav ul.left > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul.left > li > a i {
    display: flex;
    align-items: center;
}

nav ul.left > li > select {
    align-self: center;
}


/******************************************************************/
/********************** DROPDOWN OSCURO **************************/
/******************************************************************/

.dropdown-content.menu-dropdown-content {
    min-width: 220px;
    background: #111827;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 7px;
}

.dropdown-content.menu-dropdown-content li {
    min-height: 44px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.dropdown-content.menu-dropdown-content li:last-child {
    margin-bottom: 0;
}

.dropdown-content.menu-dropdown-content li > a {
    color: #e5e7eb !important;
    font-size: 14px;
    font-weight: 500;
    height: 44px;
    line-height: 44px;
    padding: 0 13px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content.menu-dropdown-content li > a i {
    color: #ffca28;
    font-size: 20px;
    margin: 0;
}

.dropdown-content.menu-dropdown-content li > a:hover {
    background: rgba(255, 179, 0, 0.404) !important;
    color: #1f2933 !important;
}

.dropdown-content.menu-dropdown-content li:hover > a i {
    color: #1f2933 !important;
}

.dropdown-content.menu-dropdown-content li.active > a {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
    font-weight: 700;
}

.dropdown-content.menu-dropdown-content li.active > a i {
    color: #1f2933 !important;
}


/******************************************************************/
/**************** BOTONES EXPORTAR Y SALIR ***********************/
/******************************************************************/

nav ul li.menu-export{
	height: 42px;
}

nav ul li.menu-export a {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.28);
}

nav ul li.menu-export:hover a {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    transform: translateY(-2px);
}

nav ul li.menu-logout{
	height: 42px;
}

nav ul li.menu-logout a {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.28);
}

nav ul li.menu-logout:hover a {
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    transform: translateY(-2px);
}

nav ul li a i.left {
    margin-right: 6px;
    font-size: 18px;
    line-height: 42px;
}


/******************************************************************/
/**************** USUARIO Y SELECT DE CAMPAÑAS *******************/
/******************************************************************/

nav ul li.right {
    color: #e5e7eb !important;
    font-size: 14px;
    font-weight: 500;
}

nav ul li.right:not(.menu-logout):not(.blue) {
    height: 42px;
    line-height: 42px;
    padding: 0 10px;
    /*margin-top: 13px;*/
    color: #d1d5db !important;
}

nav ul li.blue.sinborde {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #dbeafe !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    border-radius: 12px;
    height: 42px;
    line-height: 42px;
    margin-top: 0;
    padding: 0 13px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

nav ul li select.browser-default {
    height: 42px;
    margin-top: 0;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.18) !important;
    color: #dbeafe !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    padding: 0 34px 0 12px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

nav ul li select.browser-default:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.20);
}

nav ul li select.browser-default option {
    color: #111827;
    background: #ffffff;
}

.panel-menu-toggle,
.panel-mobile-menu-title,
.panel-mobile-submenu,
.panel-menu-backdrop {
    display: none;
}

.panel-main-nav {
    position: relative;
    z-index: 50;
}


/******************************************************************/
/**************** RESPONSIVE **************************************/
/******************************************************************/

@media only screen and (max-width: 992px) {
    /*nav.amber.darken-1 {
        width: calc(100% - 20px);
        border-radius: 12px;
    }*/

    nav .nav-wrapper {
        padding: 0 10px;
    }

    nav ul.left {
        gap: 5px;
    }

    nav ul li a {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media only screen and (max-width: 700px) {
    nav.amber.darken-1.panel-main-nav {
        min-height: 58px;
        margin-bottom: 16px;
        border-left: 0;
        border-right: 0;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    }

    nav.panel-main-nav .nav-wrapper {
        min-height: 58px;
        margin-bottom: 0 !important;
        padding: 8px 12px;
        gap: 10px;
        justify-content: flex-start;
    }

    .panel-menu-toggle {
        position: relative;
        z-index: 1003;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 1px solid rgba(255, 179, 0, 0.45);
        border-radius: 12px;
        background: rgba(255, 179, 0, 0.14);
        color: #ffca28;
        cursor: pointer;
    }

    .panel-main-nav.panel-menu-open .panel-menu-toggle {
        position: fixed;
        top: 12px;
        left: 14px;
        z-index: 1004;
        background: rgba(17, 24, 39, 0.94);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    }

    .panel-menu-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.22);
    }

    .panel-menu-toggle i {
        font-size: 25px;
        line-height: 1;
    }

    .panel-mobile-menu-title {
        display: block;
        color: #e5e7eb;
        font-size: 15px;
        font-weight: 700;
    }

    nav ul.left.panel-main-menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1002;
        display: block;
        float: none !important;
        box-sizing: border-box;
        width: min(86vw, 340px);
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        margin: 0;
        padding: 68px 14px 18px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: linear-gradient(180deg, #111827 0%, #1f2933 100%);
        border-right: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 16px 0 34px rgba(0, 0, 0, 0.36);
        transform: translateX(-110%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.22s ease;
    }

    nav ul.left.panel-main-menu::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .panel-main-nav.panel-menu-open ul.left.panel-main-menu {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .panel-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgba(15, 23, 42, 0.58);
    }

    .panel-menu-backdrop[hidden] {
        display: none;
    }

    body.panel-mobile-menu-open {
        overflow: hidden;
    }

    nav ul.left.panel-main-menu > li,
    nav ul.left.panel-main-menu > li.right {
        float: none !important;
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0 0 7px 0 !important;
        border-radius: 12px;
    }

    nav ul.left.panel-main-menu > li > a {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        height: 46px;
        line-height: 1.2;
        padding: 0 13px;
        white-space: normal;
    }

    nav ul.left.panel-main-menu > li.menu-export > a,
    nav ul.left.panel-main-menu > li.menu-logout > a {
        align-items: center;
        gap: 8px;
        line-height: 1.2;
    }

    nav ul.left.panel-main-menu > li.menu-export > a i.left,
    nav ul.left.panel-main-menu > li.menu-logout > a i.left {
        float: none !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        height: auto;
        line-height: 1;
        margin: 0;
    }

    nav ul.left.panel-main-menu > li.menu-dropdown > a {
        min-height: 46px;
        height: 46px;
        padding: 0 13px;
        justify-content: space-between;
    }

    nav ul.left.panel-main-menu > li.active {
        background: transparent !important;
    }

    nav ul.left.panel-main-menu > li.active > a {
        background: linear-gradient(135deg, #f9a825, #ffb300) !important;
        color: #1f2933 !important;
        font-weight: 700;
    }

    nav ul.left.panel-main-menu > li.menu-dropdown.panel-submenu-open > a .dropdown-arrow {
        transform: rotate(180deg);
    }

    nav ul.left.panel-main-menu > li.right:not(.menu-logout):not(.blue) {
        height: auto;
        line-height: 1.3;
        padding: 12px 13px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }

    nav ul.left.panel-main-menu > li.blue.sinborde {
        height: auto;
        line-height: 1.3;
        padding: 12px 13px !important;
    }

    nav ul.left.panel-main-menu > li select.browser-default {
        width: 100%;
        margin: 0;
    }

    .dropdown-content.menu-dropdown-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .panel-mobile-submenu {
        box-sizing: border-box;
        display: flex;
        position: static !important;
        clear: both;
        flex-direction: column;
        gap: 5px;
        width: calc(100% - 14px);
        max-width: calc(100% - 14px);
        max-height: 0;
        height: auto;
        margin: 0 0 0 14px;
        padding: 0 0 0 10px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-4px);
        border-left: 1px solid rgba(255, 179, 0, 0.35);
        background: transparent;
        box-shadow: none;
        pointer-events: none;
        transition: max-height 0.5s ease, opacity 0.35s ease, margin 0.5s ease, padding 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    }

    nav ul.left.panel-main-menu > li.menu-dropdown.panel-submenu-open > .panel-mobile-submenu {
        max-height: 260px;
        margin: 3px 0 4px 14px;
        padding: 8px 0 0 10px;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition: max-height 0.5s ease, opacity 0.35s ease, margin 0.5s ease, padding 0.5s ease, transform 0.5s ease, visibility 0s;
    }

    .panel-mobile-submenu li {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        margin: 0;
        border-radius: 10px;
    }

    .panel-mobile-submenu li a {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        height: 46px;
        line-height: 1.2;
        padding: 0 13px;
        color: #e5e7eb !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .panel-mobile-submenu li.active a {
        background: linear-gradient(135deg, #f9a825, #ffb300) !important;
        color: #1f2933 !important;
        font-weight: 700;
    }

    .panel-mobile-submenu li a i {
        color: #ffca28;
        font-size: 19px;
        margin: 0;
    }

    .panel-mobile-submenu li.active a i {
        color: #1f2933;
    }
}

/******************************************************************/
/************ QUITAR BORDE / EFECTO AZUL EN DESPLEGABLES *********/
/******************************************************************/

nav ul li,
nav ul li a,
nav ul li.menu-dropdown,
nav ul li.menu-dropdown > a {
    overflow: hidden;
}

nav a,
nav a:focus,
nav a:active,
nav a:hover,
nav .dropdown-trigger,
nav .dropdown-trigger:focus,
nav .dropdown-trigger:active,
nav .dropdown-trigger:hover {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

nav ul li.menu-dropdown > a:focus,
nav ul li.menu-dropdown > a:active {
    background: rgba(255, 179, 0, 0.08) !important;
    border-color: rgba(255, 179, 0, 0.35) !important;
    outline: none !important;
    box-shadow: none !important;
}

nav ul li.menu-dropdown:hover > a {
    background: rgba(255, 179, 0, 0.16) !important;
    border-color: rgba(255, 179, 0, 0.75) !important;
}

nav .menu-dropdown .waves-ripple {
    display: none !important;
}

@media only screen and (max-width: 700px) {
    nav ul.left.panel-main-menu > li.menu-dropdown {
        overflow: visible;
    }
}





/******************************************************************/
/********************** PROVEEDORES MODERNO **********************/
/******************************************************************/

.proveedores-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.proveedores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.proveedores-header h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.proveedores-header p {
    margin: 5px 0 0 0;
    color: #d1d5db;
    font-size: 14px;
}

.proveedores-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.proveedores-total {
    min-height: 42px;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
}

.proveedores-total span,
.proveedores-total small {
    color: #d1d5db;
    font-size: 13px;
}

.proveedores-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.proveedores-paginador {
    height: 42px;
    min-width: 110px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.proveedores-paginador option {
    color: #111827;
    background: #fff;
}

.proveedores-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.filtros-card {
    padding: 18px;
}

.panel-filters-toggle {
    display: none;
}

.panel-filters-panel {
    margin: 0;
}

#filtro-proveedores {
    margin: 0;
}

.filtros-grid {
    display: grid;
    grid-template-columns: 120px 1.2fr 1.3fr auto;
    gap: 14px;
    align-items: end;
}

.filtro-item label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.filtro-item input,
.filtro-item select {
    width: 100%;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
}

.filtro-item input:focus,
.filtro-item select:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #fff !important;
}

.filtro-botones {
    display: flex;
    gap: 8px;
}

.proveedor-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
}

.proveedor-btn i {
    font-size: 19px;
    line-height: 1;
}

.proveedor-btn-create {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.28);
}

.proveedor-btn-create:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.proveedor-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

.proveedor-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}

.proveedor-btn-clear:hover {
    background: #dc2626 !important;
}


/******************************************************************/
/************************ TABLA PROVEEDORES **********************/
/******************************************************************/

.tabla-card {
    padding: 0;
}

.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.proveedores-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.proveedores-table thead {
    background: #111827;
}

.proveedores-table thead th {
    color: #f9fafb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 15px 14px;
    border: 0;
    text-align: left;
}

.proveedores-table tbody tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

.proveedores-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.proveedores-table tbody tr:hover {
    background: #fff8e1;
}

.proveedores-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.proveedores-table .col-id {
    width: 10%;
    text-align: center;
}

.proveedores-table .col-opciones {
    width: 20%;
    text-align: center;
    white-space: nowrap;
}

.proveedor-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
}

.proveedor-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
}

.proveedor-nombre i {
    color: #ffb300;
    font-size: 21px;
}

.proveedor-relacionado {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 13px;
    font-weight: 700;
}

.proveedor-vacio {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.proveedor-icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0 !important;
    border-radius: 11px;
    /*margin: 0 3px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.proveedor-icon-btn i {
    font-size: 19px;
    line-height: 1;
}

.proveedor-edit-btn {
    background: #2563eb !important;
}

.proveedor-edit-btn:hover {
    background: #1d4ed8 !important;
}

.proveedor-delete-btn {
    background: #dc2626 !important;
}

.proveedor-delete-btn:hover {
    background: #b91c1c !important;
}

.proveedores-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.proveedores-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.proveedores-empty strong {
    color: #374151;
    font-size: 16px;
}


/******************************************************************/
/************************ MODALES PROVEEDORES ********************/
/******************************************************************/

.proveedores-modal {
    border-radius: 18px;
    overflow: hidden;
    max-width: 560px;
}

.proveedores-modal .modal-content {
    padding: 24px;
}


.proveedores-modal input[type="text"]:focus{
    border-bottom: 1px solid #ffb300 !important;
    box-shadow: 0 1px 0 0 #ffb300 !important;
    background: transparent !important;
}

.modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.modal-form-row {
    margin-bottom: 0;
}

.modal-select-field {
    margin-top: 8px;
}

.modal-select-field label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.modal-select-field select {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    padding: 0 12px;
    outline: none;
}

.modal-select-field select:focus {
    border-color: #ffb300;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18);
}

.proveedores-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.proveedor-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.proveedor-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}


/******************************************************************/
/************************ RESPONSIVE ******************************/
/******************************************************************/

@media only screen and (max-width: 992px) {
    .proveedores-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .proveedores-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .filtros-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filtro-botones {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 700px) {
    .proveedores-page {
        width: calc(100% - 16px);
    }

    .proveedores-header {
        padding: 16px;
        border-radius: 14px;
    }

    .proveedores-header h4 {
        font-size: 21px;
    }

    .proveedores-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .proveedores-total,
    .proveedores-paginador,
    .proveedor-btn-create {
        width: 100%;
        justify-content: center;
    }

    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        grid-column: span 1;
        flex-direction: column;
    }

    .filtro-botones .btn {
        width: 100%;
        justify-content: center;
    }

    .proveedores-table thead {
        display: none;
    }

    .proveedores-table tbody tr {
        display: block;
        margin: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        overflow: hidden;
        background: #fff !important;
    }

    .proveedores-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        text-align: right;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .proveedores-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #6b7280;
        text-align: left;
    }

    .proveedores-table .col-id,
    .proveedores-table .col-opciones {
        width: auto;
        text-align: right;
    }
}

/******************************************************************/
/**************** HEADER PROVEEDORES COMPACTO ********************/
/******************************************************************/

.proveedores-header-compact {
    padding: 12px 16px;
    min-height: auto;
    border-radius: 14px;
    margin-bottom: 14px;
}

.proveedores-title h4 {
    font-size: 20px;
    line-height: 1.2;
}

.proveedores-title p {
    font-size: 13px;
    margin-top: 3px;
}

.proveedores-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proveedores-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proveedores-total-inline {
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    white-space: nowrap;
}

.proveedores-paginador {
    height: 42px;
    min-width: 105px;
}

.proveedor-btn-create {
    height: 42px;
    white-space: nowrap;
}

@media only screen and (max-width: 700px) {
    .proveedores-header-compact {
        padding: 14px;
    }

    .proveedores-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .proveedores-total-inline,
    .proveedores-paginador {
        width: 100%;
        justify-content: center;
    }
}


/******************************************************************/
/*********************** CAMPAÑAS MODERNO ************************/
/******************************************************************/

.campanas-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.campanas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.campanas-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.campanas-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.campanas-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.campanas-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.campanas-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.campanas-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.campanas-total span,
.campanas-total small {
    color: #d1d5db;
    font-size: 13px;
}

.campanas-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.campanas-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.campanas-paginador option {
    color: #111827;
    background: #fff;
}

.campanas-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.filtros-card {
    padding: 18px;
}

#filtro-campanas {
    margin: 0;
}

.campanas-filtros-grid {
    display: grid;
    grid-template-columns: 90px 1.2fr 120px repeat(4, 160px) 1.2fr auto;
    gap: 14px;
    align-items: end;
}

.filtro-item label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.filtro-item input,
.filtro-item select {
    width: 100%;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
}

.filtro-item input:focus,
.filtro-item select:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #fff !important;
}

.filtro-botones {
    display: flex;
    gap: 8px;
}

.campana-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.campana-btn i {
    font-size: 19px;
    line-height: 1;
}

.campana-btn-create {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.28);
}

.campana-btn-create:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.campana-btn-group {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(249, 115, 22, 0.28);
}

.campana-btn-group:hover {
    background: linear-gradient(135deg, #fb923c, #f97316) !important;
}

.campana-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

.campana-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}

.campana-btn-clear:hover {
    background: #dc2626 !important;
}


/******************************************************************/
/************************ TABLA CAMPAÑAS *************************/
/******************************************************************/

.tabla-card {
    padding: 0;
}

.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.campanas-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: separate;
    border-spacing: 0;
}

.campanas-table thead {
    background: #111827;
}

.campanas-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.campanas-table tbody tr {
    transition: background 0.18s ease;
}

.campanas-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.campanas-table tbody tr:hover {
    background: #fff8e1;
}

.campanas-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.campana-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
}

.campana-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #111827;
    min-width: 180px;
}

.campana-nombre i {
    color: #ffb300;
    font-size: 22px;
}

.campana-nombre strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.campana-nombre small {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
}

.campana-codigo {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.campana-fechas, .campana-limites {
    /*display: grid;
    grid-template-columns: 1fr 1fr;*/
    gap: 5px;
    display: flex;
    min-width: 230px;
}

.campana-fechas div, .campana-limites div {
    padding: 6px 8px;
    background: #f3f4f6;
    border-radius: 9px;
}

.campana-fechas span, .campana-limites span {
    display: block;
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.campana-fechas strong, .campana-limites strong {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

/*.campana-limites {
    display: flex;
    /*flex-direction: column;*/
    /*gap: 5px;
    min-width: 130px;
}

.campana-limites span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.campana-limites i {
    font-size: 16px;
    color: #f9a825;
}*/

.campana-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.campana-status i {
    font-size: 16px;
}

.campana-status-ok {
    background: #dcfce7;
    color: #166534;
}

.campana-status-ko {
    background: #fee2e2;
    color: #991b1b;
}

.campana-opciones {
    white-space: nowrap;
    min-width: 230px;
}

.campana-icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border-radius: 10px;
    /*margin: 2px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.campana-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.campana-proveedores-btn {
    background: #16a34a !important;
}

.campana-precios-btn {
    background: #7e22ce !important;
}

.campana-mail-btn {
    background: #059669 !important;
}

.campana-dni-btn {
    background: #64748b !important;
}

.campana-scan-btn {
    background: #f97316 !important;
}

.campana-edit-btn {
    background: #2563eb !important;
}

.campana-delete-btn {
    background: #dc2626 !important;
}

.campana-proveedores-btn:hover,
.campana-mail-btn:hover {
    background: #15803d !important;
}

.campana-precios-btn:hover {
    background: #6b21a8 !important;
}

.campana-dni-btn:hover {
    background: #475569 !important;
}

.campana-scan-btn:hover {
    background: #ea580c !important;
}

.campana-edit-btn:hover {
    background: #1d4ed8 !important;
}

.campana-delete-btn:hover {
    background: #b91c1c !important;
}

.campanas-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.campanas-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.campanas-empty strong {
    color: #374151;
    font-size: 16px;
}


/******************************************************************/
/************************ MODALES CAMPAÑAS ***********************/
/******************************************************************/

.campanas-modal {
    border-radius: 18px;
    overflow: hidden;
    max-width: 680px;
}

.campanas-modal-large {
    max-width: 960px;
}

.campanas-modal .modal-content {
    padding: 24px;
}

.campanas-modal .modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    height: auto !important;
}

.campanas-modal input,
.campanas-modal select {
    box-sizing: border-box;
}


/******************************************************************/
/************************ RESPONSIVE ******************************/
/******************************************************************/

@media only screen and (max-width: 1400px) {
    .campanas-filtros-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .filtro-botones {
        grid-column: span 4;
    }
}

@media only screen and (max-width: 992px) {
    .campanas-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .campanas-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .campanas-filtros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtro-botones {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 700px) {
    .campanas-page {
        width: calc(100% - 16px);
    }

    .campanas-header-compact {
        padding: 14px;
    }

    .campanas-title h4 {
        font-size: 21px;
    }

    .campanas-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .campanas-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .campanas-total,
    .campanas-paginador,
    .campana-btn-create,
    .campana-btn-group {
        width: 100%;
        justify-content: center;
    }

    .campanas-filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        grid-column: span 1;
        flex-direction: column;
    }

    .filtro-botones .btn {
        width: 100%;
        justify-content: center;
    }
}

/******************************************************************/
/******************* SCROLL MODALES CAMPAÑAS *********************/
/******************************************************************/

.campanas-modal {
    max-height: 90vh !important;
    height: auto !important;
    overflow: hidden;
}

.campanas-modal .modal-content {
    max-height: calc(90vh - 76px);
    overflow-y: auto;
}

.campanas-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
}


/******************************************************************/
/*************** FORMULARIOS Y MODALES CAMPAÑAS *******************/
/******************************************************************/

.campanas-form-modal {
    border-radius: 18px;
    overflow: hidden;
    max-width: 720px;
    max-height: 90vh !important;
    height: auto !important;
}

.campanas-form-modal-large {
    max-width: 960px;
}

.campanas-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
}

.campanas-form-modal .modal-footer,
.campanas-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
    position: sticky;
    bottom: 0;
    z-index: 5;
}


/******************************************************************/
/********************* TITULO MODAL CAMPAÑAS **********************/
/******************************************************************/

.campanas-form-modal .modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.campanas-form-modal .modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.campanas-form-modal .modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.campanas-form-modal .modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}


/******************************************************************/
/**************** INPUTS FORMULARIOS CAMPAÑAS *********************/
/******************************************************************/

.campanas-form-modal .row {
    margin-bottom: 0;
}

.campanas-form-modal .input-field {
    margin-top: 10px;
    margin-bottom: 12px;
}

.campanas-form-modal input[type="text"],
.campanas-form-modal input[type="date"],
.campanas-form-modal input[type="number"],
.campanas-form-modal input[type="file"] {
    width: 100%;
    height: 44px !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid #9e9e9e !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
}
.campanas-form-modal select.browser-default {
    width: 100%;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
}

.campanas-form-modal select.browser-default:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #ffffff !important;
}
.campanas-form-modal input[type="text"]:focus,
.campanas-form-modal input[type="date"]:focus,
.campanas-form-modal input[type="number"]:focus,
.campanas-form-modal input[type="file"]:focus {
    border-bottom: 1px solid #ffb300 !important;
    box-shadow: 0 1px 0 0 #ffb300 !important;
    background: transparent !important;
}

.campanas-form-modal input[type="text"]:focus,
.campanas-form-modal input[type="date"]:focus,
.campanas-form-modal input[type="number"]:focus,
.campanas-form-modal input[type="file"]:focus,

.campanas-form-modal .input-field > label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.campanas-form-modal .input-field > label.active {
    color: #374151;
}


/******************************************************************/
/**************** SELECTS CON LABEL COMO PROVEEDORES **************/
/******************************************************************/

.campanas-form-modal .input-field select.browser-default {
    margin-top: 22px !important;
}

.campanas-form-modal .input-field label.active + select.browser-default {
    margin-top: 22px !important;
}


/******************************************************************/
/**************** BOTONES MODALES CAMPAÑAS ************************/
/******************************************************************/

.campana-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.campana-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.campana-modal-save:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.campana-modal-save i {
    line-height: 1;
}


/******************************************************************/
/**************** TABLAS DENTRO DE MODALES CAMPAÑAS ***************/
/******************************************************************/

.campanas-form-modal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.campanas-form-modal table thead {
    background: #111827;
}

.campanas-form-modal table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 12px;
    border: 0;
}

.campanas-form-modal table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
}

.campanas-form-modal table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.campanas-form-modal table tbody tr:hover {
    background: #fff8e1;
}


/******************************************************************/
/**************** LINKS ARCHIVO CORREO ****************************/
/******************************************************************/

#enviar-archivoCorreo h5 {
    margin-top: 10px;
    margin-bottom: 12px;
    color: #111827;
    font-weight: 700;
}

#enviar-archivoCorreo label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

#download_archivo_correo,
#mostrar_archivo_correo,
#download_archivo_correo_autoapuntarse,
#mostrar_archivo_correo_autoapuntarse {
    display: inline-flex;
    align-items: center;
    margin: 6px 8px 14px 0;
    padding: 8px 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

#download_archivo_correo:hover,
#mostrar_archivo_correo:hover,
#download_archivo_correo_autoapuntarse:hover,
#mostrar_archivo_correo_autoapuntarse:hover {
    background: #fff8e1;
    color: #b45309;
}


/******************************************************************/
/**************** RESPONSIVE MODALES CAMPAÑAS *********************/
/******************************************************************/

@media only screen and (max-width: 700px) {
    .campanas-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .campanas-form-modal .modal-content {
        padding: 18px;
        max-height: calc(90vh - 78px);
    }

    .campanas-form-modal .modal-footer,
    .campanas-modal-footer {
        padding: 12px 18px !important;
        flex-direction: column;
    }

    .campana-modal-save,
    .campana-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

.campanas-form-modal .input-field label {
    pointer-events: none;
}

/******************************************************************/
/********************** GESTIONAR PRECIOS ************************/
/******************************************************************/

.precios-modal {
    max-width: 980px;
}

.precios-modal .modal-content {
    max-height: calc(90vh - 78px);
    overflow-y: auto;
}

.precios-header {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: #111827;
    border-radius: 14px;
    margin-bottom: 12px;
}

.precios-header div {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.precios-contenedor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.precio-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    margin: 0;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.precio-row:nth-child(even) {
    background: #f9fafb;
}

.precio-row:hover {
    background: #fff8e1;
    border-color: rgba(255, 179, 0, 0.45);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.precio-row input[type="text"],
.precio-row input[type="number"] {
    width: 100%;
    height: 40px !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid #9e9e9e !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
}

.precio-row input[type="text"]:focus,
.precio-row input[type="number"]:focus {
    border-bottom: 1px solid #ffb300 !important;
    box-shadow: 0 1px 0 0 #ffb300 !important;
    background: transparent !important;
}

.precio-acciones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.precio-action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.precio-action-btn i {
    font-size: 18px;
    line-height: 1;
}

.precio-save-btn {
    background: #16a34a !important;
    color: #ffffff !important;
}

.precio-save-btn:hover {
    background: #15803d !important;
}

.precio-delete-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.precio-delete-btn:hover {
    background: #b91c1c !important;
}

.precio-add-btn {
    background: #2563eb !important;
    color: #ffffff !important;
}

.precio-add-btn:hover {
    background: #1d4ed8 !important;
}
@media only screen and (max-width: 800px) {
    .precios-header {
        display: none;
    }

    .precio-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .precio-row input[name="precio_relacionado"]::before {
        content: "ID Precio relacionado";
    }

    .precio-acciones {
        justify-content: flex-end;
    }
}

/******************************************************************/
/******************* MODAL GRUPOS DE CAMPAÑAS ********************/
/******************************************************************/

.grupos-campana-modal {
    max-width: 760px;
}

.grupos-campana-modal .modal-content {
    max-height: calc(90vh - 78px);
    overflow-y: auto;
}

.grupo-campana-form-card {
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.grupo-campana-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.grupo-campana-input {
    margin: 0 !important;
}

.grupo-campana-input input[type="text"] {
    margin-bottom: 0 !important;
}

.grupo-campana-save {
    height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.grupo-campana-save:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.grupo-campana-save i {
    font-size: 19px;
    line-height: 1;
}

.grupos-campana-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.grupos-campana-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.grupos-campana-table thead {
    background: #111827;
}

.grupos-campana-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 13px 14px;
    border: 0;
    text-align: left;
}

.grupos-campana-table thead th:last-child {
    text-align: center;
}

.grupos-campana-table tbody tr {
    transition: background 0.18s ease;
}

.grupos-campana-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.grupos-campana-table tbody tr:hover {
    background: #fff8e1;
}

.grupos-campana-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
}

.grupos-campana-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.grupo-campana-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.grupo-campana-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
}

.grupo-campana-nombre i {
    color: #ffb300;
    font-size: 21px;
}

.grupo-campana-opciones {
    text-align: center;
    white-space: nowrap;
}

.grupo-campana-delete {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.grupo-campana-delete:hover {
    background: #b91c1c !important;
}

.grupo-campana-delete i {
    font-size: 18px;
    line-height: 1;
}

.grupos-campana-empty {
    padding: 34px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.grupos-campana-empty i {
    font-size: 42px;
    color: #d1d5db;
}

.grupos-campana-empty strong {
    color: #374151;
    font-size: 16px;
}


/******************************************************************/
/*************** RESPONSIVE GRUPOS DE CAMPAÑAS ********************/
/******************************************************************/

@media only screen and (max-width: 700px) {
    .grupos-campana-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .grupo-campana-form {
        grid-template-columns: 1fr;
    }

    .grupo-campana-save {
        width: 100%;
        justify-content: center;
    }

    .grupos-campana-table thead {
        display: none;
    }

    .grupos-campana-table tbody tr {
        display: block;
        border-bottom: 1px solid #e5e7eb;
    }

    .grupos-campana-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        text-align: right;
    }

    .grupos-campana-table tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #6b7280;
        text-align: left;
    }

    .grupo-campana-opciones {
        justify-content: space-between;
    }
}

/******************************************************************/
/************************ NEGOCIOS MODERNO ***********************/
/******************************************************************/

.negocios-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.negocios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.negocios-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.negocios-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.negocios-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.negocios-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.negocios-inline-form {
    margin: 0;
}

.negocios-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.negocios-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.negocios-total span,
.negocios-total small {
    color: #d1d5db;
    font-size: 13px;
}

.negocios-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.negocios-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.negocios-paginador option {
    color: #111827;
    background: #fff;
}

.negocios-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.negocios-stats-card {
    width: fit-content;
    margin: 0 0 14px 16px;
    display: flex;
    gap: 10px;
}

.negocios-stats-card div {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bbf7d0;
}

.negocios-stats-card span {
    font-size: 13px;
    font-weight: 700;
}

.negocios-stats-card strong {
    font-size: 18px;
    font-weight: 800;
}

.negocios-filtros-grid {
    display: grid;
    grid-template-columns: 1.4fr 120px 170px 170px auto;
    gap: 14px;
    align-items: end;
}

.negocios-filters-toggle {
    display: none;
}

.negocios-filters-panel {
    margin: 0;
}

.negocio-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.negocio-btn i {
    font-size: 19px;
    line-height: 1;
}

.negocio-btn-export {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.negocio-btn-delete-multiple,
.negocio-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}

.negocio-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}


/******************************************************************/
/************************ TABLA NEGOCIOS *************************/
/******************************************************************/

.negocios-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: separate;
    border-spacing: 0;
}

.negocios-table thead {
    background: #111827;
}

.negocios-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.negocios-table tbody tr {
    transition: background 0.18s ease;
}

.negocios-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.negocios-table tbody tr:hover {
    background: #fff8e1;
}

.negocios-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.negocio-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.negocio-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 210px;
}

.negocio-main i {
    color: #ffb300;
    font-size: 22px;
}

.negocio-main strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.negocio-main small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.negocio-info-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 130px;
}

.negocio-info-stack span {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

.negocio-info-stack small {
    color: #6b7280;
    font-size: 12px;
}

.negocio-iban {
    display: inline-block;
    max-width: 170px;
    word-break: break-all;
    font-size: 12px;
    color: #374151;
}

.negocio-categoria {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.negocio-adjuntos {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 110px;
}

.negocio-adjuntos a {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 800;
}

.negocio-adjuntos a:hover {
    background: #fff8e1;
    color: #b45309;
}

/******************************************************************/
/*********************** DATOS NEGOCIO ****************************/
/******************************************************************/

.business-data-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.business-data-header {
    align-items: center;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.16);
}

.business-data-summary {
    min-height: 44px;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.business-data-summary span {
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
}

.business-data-summary small {
    color: #d1d5db;
    font-size: 12px;
}

.business-data-alert {
    min-height: 46px;
    margin: 0 0 14px;
    padding: 0 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.business-data-alert i {
    font-size: 21px;
}

.business-data-alert-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.business-data-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.business-data-card {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #d9dee7;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.business-data-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.business-data-sections-grid .business-data-card {
    height: 100%;
    margin-bottom: 0;
}

.business-data-section-contact,
.business-data-section-documents {
    grid-column: 1 / -1;
}

.business-data-card-header {
    min-height: 76px;
    margin-bottom: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.business-data-card-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-data-section-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.business-data-section-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #111827;
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.business-data-section-icon i {
    font-size: 21px;
}

.business-data-card-header h5 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.business-data-card-header p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.business-data-grid {
    padding: 16px 18px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.business-data-contact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.business-data-grid .input-field {
    margin-top: 14px;
    margin-bottom: 0;
}

.business-data-grid .input-field input[type="text"],
.business-data-grid .input-field input[type="email"],
.business-data-grid .input-field textarea.materialize-textarea {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #cfd6e0 !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #111827;
    font-size: 14px;
}

.business-data-grid .input-field textarea.materialize-textarea {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.business-data-grid .input-field input:focus,
.business-data-grid .input-field textarea:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08) !important;
}

.business-data-grid .input-field > label.active {
    padding: 0 6px;
    margin-left: 8px;
    background: #fff;
    color: #4b5563 !important;
    font-size: 12px;
    font-weight: 800;
    transform: translateY(-12px) scale(0.86);
    transform-origin: left top;
}

.business-data-section-toggle {
    display: none;
}

.business-data-section-content {
    overflow: visible;
}

.business-data-span-2 {
    grid-column: span 2;
}

.business-data-documents {
    padding: 16px 18px 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.business-data-document {
    min-height: 64px;
    padding: 12px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.business-data-section-documents .business-data-document {
    align-items: stretch;
    flex-direction: column;
}

.business-data-section-documents .business-data-document-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.business-data-section-documents .business-data-upload {
    width: 100%;
}

.business-data-document-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.business-data-document-info strong {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.business-data-document-info a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.business-data-document-info a i {
    font-size: 18px;
}

.business-data-upload {
    min-width: 136px;
    min-height: 38px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    padding: 0 12px;
}

.business-data-upload input {
    display: none;
}

.business-data-file-help {
    margin: 12px 18px 18px;
    color: #6b7280;
    font-size: 12px;
}

.business-data-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 16px;
    padding: 14px 0 0;
    background: linear-gradient(180deg, rgba(243, 244, 246, 0), #f3f4f6 38%);
    display: flex;
    justify-content: flex-end;
}

.business-data-empty {
    min-height: 180px;
    padding: 30px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.business-data-empty i {
    color: #9ca3af;
    font-size: 42px;
}

@media only screen and (max-width: 1200px) {
    .business-data-contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .business-data-documents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 700px) {
    .business-data-page {
        width: calc(100% - 16px);
    }

    .business-data-summary {
        width: 100%;
        text-align: left;
    }

    .business-data-card {
        padding: 0;
    }

    .business-data-sections-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .business-data-section .business-data-card-header {
        min-height: 66px;
        margin-bottom: 0;
        padding: 14px;
        flex-direction: row;
        align-items: center;
    }

    .business-data-grid,
    .business-data-contact-grid,
    .business-data-documents {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .business-data-span-2 {
        grid-column: span 1;
    }

    .business-data-section-title {
        gap: 10px;
    }

    .business-data-section-icon {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .business-data-document {
        align-items: stretch;
        flex-direction: column;
    }

    .business-data-document-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .business-data-file-help {
        margin: 0 14px 14px;
    }

    .business-data-upload,
    .business-data-actions .negocio-btn {
        width: 100%;
    }

    .business-data-section-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f9fafb;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
    }

    .business-data-section-toggle i {
        font-size: 24px;
        transition: transform 0.5s ease;
    }

    .business-data-section-content {
        overflow: hidden;
        opacity: 1;
        transition: max-height 0.5s ease, opacity 0.35s ease;
    }

    .business-data-section.is-collapsed .business-data-card-header {
        margin-bottom: 0;
    }

    .business-data-section.is-collapsed .business-data-section-content {
        opacity: 0;
    }
}

.negocio-vacio {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.negocio-estados {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.negocio-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.negocio-status i {
    font-size: 16px;
}

.negocio-status-ok {
    background: #dcfce7;
    color: #166534;
}

.negocio-status-ko {
    background: #fee2e2;
    color: #991b1b;
}

.negocio-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.negocio-opciones {
    white-space: nowrap;
    min-width: 250px;
}

.negocio-icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border-radius: 10px;
    /*margin: 2px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.negocio-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.negocio-map-btn,
.negocio-image-btn,
.negocio-edit-btn {
    background: #2563eb !important;
}

.negocio-map-btn a i{
    color: white;
}

.negocio-datos-btn,
.negocio-note-active-btn {
    background: #f97316 !important;
}

.negocio-note-btn {
    background: #4b5563 !important;
}

.negocio-precio-btn,
.negocio-mail-btn {
    background: #7e22ce !important;
}

.negocio-active-btn,
.negocio-revisado-ok-btn {
    background: #16a34a !important;
}

.negocio-inactive-btn,
.negocio-revisado-ko-btn,
.negocio-delete-btn {
    background: #dc2626 !important;
}

.negocios-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.negocios-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.negocios-empty strong {
    color: #374151;
    font-size: 16px;
}

.negocios-error i {
    color: #dc2626;
}


/******************************************************************/
/************************ MODALES NEGOCIOS ***********************/
/******************************************************************/

.negocios-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 720px;
    max-height: 90vh !important;
    height: auto !important;
}

.negocios-form-modal-large {
    max-width: 980px;
}

.negocios-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.negocios-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.negocios-form-modal .modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.negocios-form-modal .modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.negocios-form-modal .modal-title-danger > i {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
}

.negocios-form-modal .modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.negocios-form-modal .modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.negocios-form-modal .input-field label {
    pointer-events: none;
}

.negocios-form-modal select.browser-default {
    height: 44px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
}

.negocios-form-modal select.browser-default:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #ffffff !important;
}

.negocio-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.negocio-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

.negocio-modal-delete {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}


/******************************************************************/
/*********************** ASIGNAR PRECIOS *************************/
/******************************************************************/

.asignar-precios-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.asignar-precios-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.asignar-precios-table thead {
    background: #111827;
}

.asignar-precios-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 13px 14px;
    border: 0;
    text-align: left;
}

.asignar-precios-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
}

.asignar-precios-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.asignar-precios-table tbody tr:hover {
    background: #fff8e1;
}


/******************************************************************/
/************************ RESPONSIVE ******************************/
/******************************************************************/

@media only screen and (max-width: 1200px) {
    .negocios-filtros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtro-botones {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 700px) {
    .negocios-page {
        width: calc(100% - 16px);
    }

    .negocios-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .negocios-actions,
    .negocios-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .negocio-btn,
    .negocios-paginador,
    .negocios-total {
        width: 100%;
        justify-content: center;
    }

    .negocios-filters-card {
        padding: 0;
    }

    .negocios-filters-toggle {
        width: 100%;
        min-height: 48px;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        color: #111827;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        cursor: pointer;
        font-family: 'Roboto', Arial, sans-serif;
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.35px;
    }

    .negocios-filters-toggle span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .negocios-filters-toggle i {
        color: #ffb300;
        font-size: 22px;
        line-height: 1;
    }

    .negocios-filters-toggle-icon {
        transition: transform 0.35s ease;
    }

    .negocios-filters-open .negocios-filters-toggle-icon {
        transform: rotate(180deg);
    }

    .negocios-filters-panel {
        max-height: 0;
        margin: 0;
        padding: 0 14px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-4px);
        transition: max-height 0.5s ease, opacity 0.35s ease, padding 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    }

    .negocios-filters-open .negocios-filters-panel {
        max-height: 520px;
        padding: 14px;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: max-height 0.5s ease, opacity 0.35s ease, padding 0.5s ease, transform 0.5s ease, visibility 0s;
    }

    .negocios-filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        grid-column: span 1;
        flex-direction: column;
    }

    .negocios-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .negocios-form-modal .modal-content {
        padding: 18px;
    }

    .negocios-modal-footer {
        flex-direction: column;
    }

    .negocio-modal-save,
    .negocio-modal-delete,
    .negocio-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}
/******************************************************************/
/******************** USUARIOS ESCÁNER MODERNO *******************/
/******************************************************************/

.usuarios-escaner-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.usuarios-escaner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.usuarios-escaner-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.usuarios-escaner-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.usuarios-escaner-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.usuarios-escaner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.usuarios-inline-form {
    margin: 0;
}

.usuarios-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usuarios-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.usuarios-total span,
.usuarios-total small {
    color: #d1d5db;
    font-size: 13px;
}

.usuarios-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.usuarios-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.usuarios-paginador option {
    color: #111827;
    background: #fff;
}

.usuarios-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.usuarios-filtros-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.usuario-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.usuario-btn i {
    font-size: 19px;
    line-height: 1;
}

.usuario-btn-create,
.usuario-btn-export {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.usuario-btn-create:hover,
.usuario-btn-export:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.usuario-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

.usuario-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}

.usuario-btn-clear:hover {
    background: #dc2626 !important;
}


/******************************************************************/
/******************** TABLA USUARIOS ESCÁNER *********************/
/******************************************************************/

.usuarios-escaner-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.usuarios-escaner-table thead {
    background: #111827;
}

.usuarios-escaner-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.usuarios-escaner-table tbody tr {
    transition: background 0.18s ease;
}

.usuarios-escaner-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.usuarios-escaner-table tbody tr:hover {
    background: #fff8e1;
}

.usuarios-escaner-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.usuario-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.usuario-main,
.usuario-negocio {
    display: flex;
    align-items: center;
    gap: 9px;
}

.usuario-main i,
.usuario-negocio i {
    color: #ffb300;
    font-size: 22px;
}

.usuario-main strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.usuario-main small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.usuario-negocio span {
    font-weight: 700;
    color: #111827;
}

.usuario-cif {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.usuario-telefono {
    color: #374151;
    font-weight: 700;
}

.usuario-opciones {
    white-space: nowrap;
    text-align: center;
}

.usuario-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.usuario-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.usuario-edit-btn {
    background: #2563eb !important;
}

.usuario-edit-btn:hover {
    background: #1d4ed8 !important;
}

.usuario-delete-btn {
    background: #dc2626 !important;
}

.usuario-delete-btn:hover {
    background: #b91c1c !important;
}

.usuarios-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.usuarios-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.usuarios-empty strong {
    color: #374151;
    font-size: 16px;
}

.usuarios-error i {
    color: #dc2626;
}


/******************************************************************/
/******************** MODALES USUARIOS ESCÁNER *******************/
/******************************************************************/

.usuarios-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 720px;
    max-height: 90vh !important;
    height: auto !important;
}

.usuarios-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.usuarios-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.usuarios-form-modal .modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.usuarios-form-modal .modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.usuarios-form-modal .modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.usuarios-form-modal .modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.usuarios-form-modal .input-field label {
    pointer-events: none;
}

.usuarios-form-modal select.browser-default {
    height: 44px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
    margin-top: 22px !important;
}

.usuarios-form-modal select.browser-default:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #ffffff !important;
}

.usuarios-modal-grid {
    margin-bottom: 0;
}

.usuario-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.usuario-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

.usuario-modal-save:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}


/******************************************************************/
/******************** RESPONSIVE USUARIOS ESCÁNER ****************/
/******************************************************************/

@media only screen and (max-width: 900px) {
    .usuarios-escaner-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .usuarios-escaner-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .usuarios-filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        flex-direction: column;
    }
}

@media only screen and (max-width: 700px) {
    .usuarios-escaner-page {
        width: calc(100% - 16px);
    }

    .usuarios-escaner-actions,
    .usuarios-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .usuario-btn,
    .usuarios-paginador,
    .usuarios-total {
        width: 100%;
        justify-content: center;
    }

    .usuarios-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .usuarios-form-modal .modal-content {
        padding: 18px;
    }

    .usuarios-modal-footer {
        flex-direction: column;
    }

    .usuario-modal-save,
    .usuario-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

/******************************************************************/
/********************** CATEGORÍAS MODERNO ***********************/
/******************************************************************/

.categorias-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.categorias-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.categorias-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.categorias-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.categorias-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.categorias-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.categorias-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.categorias-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.categorias-total span,
.categorias-total small {
    color: #d1d5db;
    font-size: 13px;
}

.categorias-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.categorias-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.categorias-paginador option {
    color: #111827;
    background: #fff;
}

.categorias-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.categorias-filtros-grid {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 14px;
    align-items: end;
}

.categoria-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.categoria-btn i {
    font-size: 19px;
    line-height: 1;
}

.categoria-btn-create {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.categoria-btn-create:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.categoria-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

.categoria-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}


/******************************************************************/
/*********************** TABLA CATEGORÍAS ************************/
/******************************************************************/

.categorias-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.categorias-table thead {
    background: #111827;
}

.categorias-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.categorias-table tbody tr {
    transition: background 0.18s ease;
}

.categorias-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.categorias-table tbody tr:hover {
    background: #fff8e1;
}

.categorias-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.categoria-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.categoria-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
}

.categoria-nombre i {
    color: #ffb300;
    font-size: 22px;
}

.categoria-opciones {
    white-space: nowrap;
    text-align: center;
}

.categoria-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.categoria-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.categoria-image-btn,
.categoria-edit-btn {
    background: #2563eb !important;
}

.categoria-image-btn:hover,
.categoria-edit-btn:hover {
    background: #1d4ed8 !important;
}

.categoria-delete-btn {
    background: #dc2626 !important;
}

.categoria-delete-btn:hover {
    background: #b91c1c !important;
}

.categorias-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.categorias-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.categorias-empty strong {
    color: #374151;
    font-size: 16px;
}


/******************************************************************/
/*********************** MODALES CATEGORÍAS **********************/
/******************************************************************/

.categorias-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 620px;
    max-height: 90vh !important;
    height: auto !important;
}

.categorias-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.categorias-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.categorias-form-modal .modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.categorias-form-modal .modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.categorias-form-modal .modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.categorias-form-modal .modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.categorias-form-modal .input-field label {
    pointer-events: none;
}

.categoria-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.categoria-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

.categoria-modal-save:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}


/******************************************************************/
/*********************** MODAL IMAGEN CATEGORÍA ******************/
/******************************************************************/

.imagen-categoria-preview {
    display: block;
    max-width: 260px;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto 18px auto;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 8px;
}

.imagen-categoria-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.imagen-categoria-upload input[type="file"] {
    width: 100%;
    max-width: 360px;
}

.imagen-categoria-submit {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    text-transform: none;
}


/******************************************************************/
/************************ RESPONSIVE ******************************/
/******************************************************************/

@media only screen and (max-width: 800px) {
    .panel-filters-card {
        padding: 0;
    }

    .panel-filters-toggle {
        width: 100%;
        min-height: 48px;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        color: #111827;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        cursor: pointer;
        font-family: 'Roboto', Arial, sans-serif;
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.35px;
    }

    .panel-filters-toggle span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .panel-filters-toggle i {
        color: #ffb300;
        font-size: 22px;
        line-height: 1;
    }

    .panel-filters-toggle-icon {
        transition: transform 0.35s ease;
    }

    .panel-filters-open .panel-filters-toggle-icon {
        transform: rotate(180deg);
    }

    .panel-filters-panel {
        max-height: 0;
        margin: 0;
        padding: 0 14px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-4px);
        transition: max-height 0.5s ease, opacity 0.35s ease, padding 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    }

    .panel-filters-open .panel-filters-panel {
        max-height: 900px;
        padding: 14px;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: max-height 0.5s ease, opacity 0.35s ease, padding 0.5s ease, transform 0.5s ease, visibility 0s;
    }

    .categorias-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .categorias-actions,
    .categorias-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .categoria-btn,
    .categorias-paginador,
    .categorias-total {
        width: 100%;
        justify-content: center;
    }

    .categorias-filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        flex-direction: column;
    }
}

@media only screen and (max-width: 700px) {
    .categorias-page {
        width: calc(100% - 16px);
    }

    .categorias-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .categorias-form-modal .modal-content {
        padding: 18px;
    }

    .categorias-modal-footer {
        flex-direction: column;
    }

    .categoria-modal-save,
    .categoria-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

/******************************************************************/
/*************************** ZONAS MODERNO ***********************/
/******************************************************************/

.zonas-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.zonas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.zonas-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.zonas-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.zonas-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.zonas-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.zonas-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zonas-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.zonas-total span,
.zonas-total small {
    color: #d1d5db;
    font-size: 13px;
}

.zonas-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.zonas-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.zonas-paginador option {
    color: #111827;
    background: #fff;
}

.zonas-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.zona-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.zona-btn i {
    font-size: 19px;
    line-height: 1;
}

.zona-btn-create {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.zona-btn-create:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.zonas-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.zonas-table thead {
    background: #111827;
}

.zonas-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.zonas-table tbody tr {
    transition: background 0.18s ease;
}

.zonas-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.zonas-table tbody tr:hover {
    background: #fff8e1;
}

.zonas-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.zona-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.zona-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
}

.zona-nombre i {
    color: #ffb300;
    font-size: 22px;
}

.zona-money,
.zona-money-empty {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.zona-money {
    background: #ecfdf5;
    color: #047857;
}

.zona-money-remaining {
    background: #eef2ff;
    color: #3730a3;
}

.zona-money-empty {
    background: #f3f4f6;
    color: #6b7280;
}

.zona-opciones {
    white-space: nowrap;
    text-align: center;
}

.zona-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.zona-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.zona-edit-btn {
    background: #2563eb !important;
}

.zona-edit-btn:hover {
    background: #1d4ed8 !important;
}

.zona-delete-btn {
    background: #dc2626 !important;
}

.zona-delete-btn:hover {
    background: #b91c1c !important;
}

.zonas-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.zonas-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.zonas-empty strong {
    color: #374151;
    font-size: 16px;
}

.zonas-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 560px;
    max-height: 90vh !important;
    height: auto !important;
}

.zonas-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.zonas-form-modal .input-field label {
    pointer-events: none;
}

.zonas-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.zona-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.zona-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

.zona-modal-save:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

@media only screen and (max-width: 800px) {
    .zonas-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .zonas-actions,
    .zonas-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .zona-btn,
    .zonas-paginador,
    .zonas-total {
        width: 100%;
        justify-content: center;
    }
}

@media only screen and (max-width: 700px) {
    .zonas-page {
        width: calc(100% - 16px);
    }

    .zonas-header-compact {
        padding: 14px;
    }

    .zonas-title h4 {
        font-size: 21px;
    }

    .zonas-table {
        min-width: 0;
    }

    .zonas-table thead {
        display: none;
    }

    .zonas-table tbody tr {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid #e5e7eb;
    }

    .zonas-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
        text-align: right;
        border-bottom: 0 !important;
    }

    .zonas-table tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #6b7280;
        text-align: left;
    }

    .zonas-table .zonas-empty-cell {
        display: block;
        text-align: center;
    }

    .zonas-table .zonas-empty-cell::before {
        content: none;
    }

    .zona-opciones {
        justify-content: space-between;
    }

    .zonas-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .zonas-form-modal .modal-content {
        padding: 18px;
    }

    .zonas-modal-footer {
        flex-direction: column;
    }

    .zona-modal-save,
    .zona-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

/******************************************************************/
/*********************** POBLACIONES MODERNO *********************/
/******************************************************************/

.poblaciones-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.poblaciones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.poblaciones-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.poblaciones-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.poblaciones-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.poblaciones-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.poblaciones-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poblaciones-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.poblaciones-total span,
.poblaciones-total small {
    color: #d1d5db;
    font-size: 13px;
}

.poblaciones-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.poblaciones-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.poblaciones-paginador option {
    color: #111827;
    background: #fff;
}

.poblaciones-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.poblacion-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.poblacion-btn i {
    font-size: 19px;
    line-height: 1;
}

.poblacion-btn-create {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.poblacion-btn-create:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.poblaciones-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.poblaciones-table thead {
    background: #111827;
}

.poblaciones-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.poblaciones-table tbody tr {
    transition: background 0.18s ease;
}

.poblaciones-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.poblaciones-table tbody tr:hover {
    background: #fff8e1;
}

.poblaciones-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.poblacion-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.poblacion-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
}

.poblacion-nombre i {
    color: #ffb300;
    font-size: 22px;
}

.poblacion-zona {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 800;
}

.poblacion-opciones {
    white-space: nowrap;
    text-align: center;
}

.poblacion-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.poblacion-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.poblacion-edit-btn {
    background: #2563eb !important;
}

.poblacion-edit-btn:hover {
    background: #1d4ed8 !important;
}

.poblacion-delete-btn {
    background: #dc2626 !important;
}

.poblacion-delete-btn:hover {
    background: #b91c1c !important;
}

.poblaciones-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.poblaciones-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.poblaciones-empty strong {
    color: #374151;
    font-size: 16px;
}

.poblaciones-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 560px;
    max-height: 90vh !important;
    height: auto !important;
}

.poblaciones-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.poblaciones-form-modal .input-field label {
    pointer-events: none;
}

.poblaciones-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.poblacion-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.poblacion-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

.poblacion-modal-save:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

@media only screen and (max-width: 800px) {
    .poblaciones-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .poblaciones-actions,
    .poblaciones-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .poblacion-btn,
    .poblaciones-paginador,
    .poblaciones-total {
        width: 100%;
        justify-content: center;
    }
}

@media only screen and (max-width: 700px) {
    .poblaciones-page {
        width: calc(100% - 16px);
    }

    .poblaciones-header-compact {
        padding: 14px;
    }

    .poblaciones-title h4 {
        font-size: 21px;
    }

    .poblaciones-table {
        min-width: 0;
    }

    .poblaciones-table thead {
        display: none;
    }

    .poblaciones-table tbody tr {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid #e5e7eb;
    }

    .poblaciones-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
        text-align: right;
        border-bottom: 0 !important;
    }

    .poblaciones-table tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #6b7280;
        text-align: left;
    }

    .poblaciones-table .poblaciones-empty-cell {
        display: block;
        text-align: center;
    }

    .poblaciones-table .poblaciones-empty-cell::before {
        content: none;
    }

    .poblacion-opciones {
        justify-content: space-between;
    }

    .poblaciones-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .poblaciones-form-modal .modal-content {
        padding: 18px;
    }

    .poblaciones-modal-footer {
        flex-direction: column;
    }

    .poblacion-modal-save,
    .poblacion-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

/******************************************************************/
/************************** PAGOS MODERNO ************************/
/******************************************************************/

.pagos-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.pagos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.pagos-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.pagos-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.pagos-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.pagos-actions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pagos-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagos-actions-header,
.pagos-pagination-group {
    /*width: 100%;
    flex-direction: column;*/
    align-items: stretch;
}

.pagos-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.pagos-filtros-grid {
    display: grid;
    grid-template-columns: 170px 350px 350px 300px 170px auto;
    gap: 14px;
    align-items: end;
}

.pagos-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pagos-total span,
.pagos-total small {
    color: #d1d5db;
    font-size: 13px;
}

.pagos-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.pagos-paginador option {
    color: #111827;
    background: #fff;
}

.pagos-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 18px;
    margin-bottom: 18px;
}

.pagos-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.pagos-procesos-card,
.pagos-exportaciones-card {
    padding: 18px;
}

.pagos-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.pagos-card-title > i {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pagos-card-title h5 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.pagos-card-title p {
    margin: 3px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

.pagos-procesos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pagos-proceso-form {
    margin: 0;
}

.pagos-proceso-form label,
.pago-export-item label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.pagos-proceso-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.pagos-proceso-row input[type="date"] {
    height: 44px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
}

.pagos-proceso-row input[type="date"]:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #ffffff !important;
}

.pago-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.pago-btn i {
    font-size: 19px;
    line-height: 1;
}

.pago-btn-process {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
}

.pago-btn-pay-all {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    width: 100%;
}

.pago-btn-export {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
}

.pago-btn-export-alt {
    background: #64748b !important;
    color: #ffffff !important;
}


/******************************************************************/
/*********************** EXPORTACIONES PAGOS **********************/
/******************************************************************/

.pagos-export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pago-export-item {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.pago-export-item select.browser-default {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    margin-bottom: 10px;
    padding: 0 12px;
    outline: none;
}

.pago-export-item select.browser-default:focus {
    border-color: #ffb300;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18);
}

.pago-export-btn {
    width: 100%;
    height: 38px;
    border-radius: 11px;
    background: #2563eb !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
    margin-top: 4px;
}

.pago-export-btn i {
    font-size: 18px;
}

.pago-export-q34 {
    background: #7e22ce !important;
}

.pago-export-c34 {
    background: #f97316 !important;
}

.pago-c34-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/******************************************************************/
/************************ TOTALES PAGOS ***************************/
/******************************************************************/

.pagos-totales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.pagos-total-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
}

.pagos-total-pendiente {
    background: #fff7ed;
    border-color: #fed7aa;
}

.pagos-total-pagado {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.pagos-total-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagos-total-pendiente .pagos-total-icon {
    background: #fed7aa;
    color: #9a3412;
}

.pagos-total-pagado .pagos-total-icon {
    background: #bbf7d0;
    color: #166534;
}

.pagos-total-icon i {
    font-size: 27px;
}

.pagos-total-content h5 {
    margin: 0 0 7px 0;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.pagos-total-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.pagos-total-values span {
    color: #374151;
    font-size: 13px;
}


/******************************************************************/
/************************ TABLA PAGOS *****************************/
/******************************************************************/

.pagos-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.pagos-table thead {
    background: #111827;
}

.pagos-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.pagos-table tbody tr {
    transition: background 0.18s ease;
}

.pagos-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.pagos-table tbody tr:hover {
    background: #fff8e1;
}

.pagos-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.pago-row-pagado {
    border-left: 4px solid #16a34a;
}

.pago-row-pendiente {
    border-left: 4px solid #dc2626;
}

.pago-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.pago-comercio {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 210px;
}

.pago-comercio i {
    color: #ffb300;
    font-size: 22px;
}

.pago-comercio strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.pago-comercio small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.pago-cif {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.pago-iban {
    display: inline-block;
    max-width: 190px;
    word-break: break-all;
    color: #374151;
    font-size: 12px;
}

.pago-bonos {
    display: inline-flex;
    min-width: 42px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 800;
}

.pago-importe {
    font-weight: 800;
    color: #111827;
}

.pago-fecha,
.pago-operacion {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.pago-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.pago-status i {
    font-size: 16px;
}

.pago-status-ok {
    background: #dcfce7;
    color: #166534;
}

.pago-status-pending {
    background: #fee2e2;
    color: #991b1b;
}

.pago-opciones {
    white-space: nowrap;
    text-align: center;
}

.pago-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.pago-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.pago-pay-btn {
    background: #16a34a !important;
}

.pago-pay-btn:hover {
    background: #15803d !important;
}

.pago-unpay-btn {
    background: #dc2626 !important;
}

.pago-unpay-btn:hover {
    background: #b91c1c !important;
}

.pagos-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pagos-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.pagos-empty strong {
    color: #374151;
    font-size: 16px;
}


.pagos-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.pagos-btn i {
    font-size: 19px;
    line-height: 1;
}

.pagos-btn-export {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.pagos-btn-delete-multiple,
.pagos-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}

.pagos-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

/******************************************************************/
/************************ MODAL PAGOS *****************************/
/******************************************************************/

.pagos-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
}


/******************************************************************/
/************************ RESPONSIVE PAGOS ***********************/
/******************************************************************/

@media only screen and (max-width: 1200px) {
    .pagos-grid {
        grid-template-columns: 1fr;
    }
    .pagos-filtros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagos-export-grid {
        grid-template-columns: 1fr;
    }
    .pagos-btn,
    .pagos-paginador,
    .pagos-total {
        width: 100%;
        justify-content: center;
    }
}

@media only screen and (max-width: 800px) {
    .pagos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagos-actions-header {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .pago-btn {
        width: 100%;
    }

    .pagos-totales-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 700px) {
    .pagos-page {
        width: calc(100% - 16px);
    }

    .pagos-header-compact {
        padding: 14px;
    }

    .pagos-filtros-grid {
        grid-template-columns: 1fr;
    }
}

/******************************************************************/
/********************** USUARIOS PANEL MODERNO *******************/
/******************************************************************/

.usuarios-panel-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.usuarios-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.usuarios-panel-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.usuarios-panel-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.usuarios-panel-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.usuarios-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.usuarios-panel-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usuarios-panel-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.usuarios-panel-total span,
.usuarios-panel-total small {
    color: #d1d5db;
    font-size: 13px;
}

.usuarios-panel-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.usuarios-panel-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.usuarios-panel-paginador option {
    color: #111827;
    background: #fff;
}

.usuarios-panel-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.usuarios-panel-filtros-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 170px auto;
    gap: 14px;
    align-items: end;
}

.usuario-panel-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.usuario-panel-btn i {
    font-size: 19px;
    line-height: 1;
}

.usuario-panel-btn-create {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.usuario-panel-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

.usuario-panel-btn-clear {
    background: #ef4444 !important;
    color: #fff !important;
}


/******************************************************************/
/********************** TABLA USUARIOS PANEL *********************/
/******************************************************************/

.usuarios-panel-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.usuarios-panel-table thead {
    background: #111827;
}

.usuarios-panel-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.usuarios-panel-table tbody tr {
    transition: background 0.18s ease;
}

.usuarios-panel-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.usuarios-panel-table tbody tr:hover {
    background: #fff8e1;
}

.usuarios-panel-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.usuario-panel-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.usuario-panel-main {
    display: flex;
    align-items: center;
    gap: 9px;
}

.usuario-panel-main i {
    color: #ffb300;
    font-size: 22px;
}

.usuario-panel-main strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.usuario-panel-main small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.usuario-panel-nombre,
.usuario-panel-fecha {
    color: #374151;
    font-weight: 700;
}

.usuario-panel-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.usuario-panel-status i {
    font-size: 16px;
}

.usuario-panel-status-ok {
    background: #dcfce7;
    color: #166534;
}

.usuario-panel-status-ko {
    background: #fee2e2;
    color: #991b1b;
}

.usuario-panel-opciones {
    white-space: nowrap;
    text-align: center;
}

.usuario-panel-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.usuario-panel-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.usuario-panel-campanas-btn {
    background: #16a34a !important;
}

.usuario-panel-edit-btn {
    background: #2563eb !important;
}

.usuario-panel-delete-btn {
    background: #dc2626 !important;
}

.usuarios-panel-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.usuarios-panel-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.usuarios-panel-empty strong {
    color: #374151;
    font-size: 16px;
}


/******************************************************************/
/********************** MODALES USUARIOS PANEL *******************/
/******************************************************************/

.usuarios-panel-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 720px;
    max-height: 90vh !important;
    height: auto !important;
}

.usuarios-panel-form-modal-large {
    max-width: 920px;
}

.usuarios-panel-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.usuarios-panel-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.usuarios-panel-form-modal .modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.usuarios-panel-form-modal .modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.usuarios-panel-form-modal .modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.usuarios-panel-form-modal .modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.usuarios-panel-form-modal .input-field label {
    pointer-events: none;
}

.usuarios-panel-form-modal select.browser-default {
    height: 44px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    outline: none;
    font-size: 14px;
    margin-top: 22px !important;
}

.usuarios-panel-form-modal select.browser-default:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18) !important;
    background: #ffffff !important;
}

.usuario-panel-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.usuario-panel-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}


/******************************************************************/
/********************** CAMPAÑAS DEL USUARIO *********************/
/******************************************************************/

.usuarios-panel-campanas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.usuarios-panel-campanas-search {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
}

.usuarios-panel-campanas-search i {
    color: #6b7280;
    font-size: 21px;
}

.usuarios-panel-campanas-search input {
    flex: 1;
    height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #111827;
    font-size: 14px;
}

.usuarios-panel-campanas-counter {
    min-width: 145px;
    height: 44px;
    border-radius: 12px;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
}

.usuarios-panel-campanas-counter span {
    color: #ffca28;
    font-size: 18px;
    font-weight: 800;
}

.usuarios-panel-campanas-counter small {
    color: #d1d5db;
    font-size: 13px;
    font-weight: 700;
}

.usuarios-panel-campanas-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    max-height: 55vh;
    overflow-y: auto;
}

.usuarios-panel-campanas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.usuarios-panel-campanas-table thead {
    background: #111827;
}

.usuarios-panel-campanas-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 13px 14px;
    border: 0;
    text-align: left;
}

.usuarios-panel-campanas-table thead th:last-child {
    text-align: center;
}

.usuarios-panel-campanas-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.usuarios-panel-campanas-table tbody tr:hover {
    background: #fff8e1;
}

.usuarios-panel-campanas-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
}

.usuarios-panel-campana-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.usuarios-panel-campana-nombre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
}

.usuarios-panel-campana-nombre i {
    color: #ffb300;
    font-size: 21px;
}

.usuarios-panel-campana-check {
    text-align: center;
}


/******************************************************************/
/************************ RESPONSIVE ******************************/
/******************************************************************/

@media only screen and (max-width: 1000px) {
    .usuarios-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .usuarios-panel-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .usuarios-panel-filtros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtro-botones {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 700px) {
    .usuarios-panel-page {
        width: calc(100% - 16px);
    }

    .usuarios-panel-actions,
    .usuarios-panel-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .usuario-panel-btn,
    .usuarios-panel-paginador,
    .usuarios-panel-total {
        width: 100%;
        justify-content: center;
    }

    .usuarios-panel-filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        grid-column: span 1;
        flex-direction: column;
    }

    .usuarios-panel-campanas-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .usuarios-panel-campanas-counter {
        width: 100%;
    }

    .usuarios-panel-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .usuarios-panel-modal-footer {
        flex-direction: column;
    }

    .usuario-panel-modal-save,
    .usuario-panel-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}

/******************************************************************/
/******** BOTÓN TOGGLE CAMPAÑAS USUARIO SIN CHECKBOX NATIVO *******/
/******************************************************************/

.campana-toggle-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    border-radius: 10px;
    background: #e5e7eb;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.18s ease;
}

.campana-toggle-btn i {
    font-size: 19px;
    line-height: 1;
}

.campana-toggle-btn:hover {
    background: #d1d5db;
}

.campana-toggle-btn.selected {
    background: #16a34a;
    color: #ffffff;
}

.campana-toggle-btn.selected:hover {
    background: #15803d;
}

.campana-toggle-btn:focus,
.campana-toggle-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

#anadir-campanas {
    max-height: 90vh !important;
    overflow: hidden !important;
}

#anadir-campanas.open {
    display: flex !important;
    flex-direction: column;
}

#anadir-campanas .modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#anadir-campanas .usuarios-panel-campanas-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 55vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#anadir-campanas .usuarios-panel-modal-footer {
    flex: 0 0 auto;
}

@media only screen and (max-width: 700px) {
    #anadir-campanas {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        height: calc(100vh - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        height: calc(100dvh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        top: 12px !important;
        border-radius: 14px;
    }

    #anadir-campanas .modal-content {
        max-height: none;
        padding: 16px;
    }

    #anadir-campanas .modal-title-custom {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    #anadir-campanas .modal-title-custom > i {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 22px;
    }

    #anadir-campanas .modal-title-custom h5 {
        font-size: 17px;
    }

    #anadir-campanas .modal-title-custom p {
        font-size: 12px;
        line-height: 1.35;
    }

    #anadir-campanas .usuarios-panel-campanas-toolbar {
        gap: 10px;
        margin-bottom: 12px;
    }

    #anadir-campanas .usuarios-panel-campanas-search,
    #anadir-campanas .usuarios-panel-campanas-counter {
        height: 40px;
    }

    #anadir-campanas .usuarios-panel-campanas-search input {
        height: 38px !important;
    }

    #anadir-campanas .usuarios-panel-campanas-table-wrap {
        max-height: none;
    }

    #anadir-campanas .usuarios-panel-modal-footer {
        padding: 10px 16px !important;
        gap: 8px;
    }
}

/******************************************************************/
/*********************** ESCANEOS MODERNO ************************/
/******************************************************************/

.escaneos-page {
    width: calc(100% - 32px);
    margin: 0 auto 40px auto;
}

.escaneos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.escaneos-header-compact {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.escaneos-title h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.escaneos-title p {
    margin: 3px 0 0 0;
    color: #d1d5db;
    font-size: 13px;
}

.escaneos-actions,
.escaneos-pagination-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.escaneos-total {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.escaneos-total span,
.escaneos-total small {
    color: #d1d5db;
    font-size: 13px;
}

.escaneos-total strong {
    color: #ffca28;
    font-size: 18px;
    font-weight: 700;
}

.escaneos-paginador {
    height: 42px;
    min-width: 105px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 12px;
    outline: none;
}

.escaneos-paginador option {
    color: #111827;
    background: #fff;
}

.escaneos-card,
.escaneos-toolbar-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
    border: 1px solid #e5e7eb;
    margin-bottom: 18px;
    overflow: hidden;
}

.escaneos-toolbar-card {
    display: flex;
    align-items: start;
    /*align-items: center;*/
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    flex-wrap: nowrap;
}

.escaneos-filtros-grid {
    display: grid;
    grid-template-columns: 100px 150px 200px 200px 145px 145px 170px 160px 150px 130px auto;
    gap: 12px;
    align-items: end;
}

.escaneo-btn {
    height: 42px;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
}

.escaneo-btn i {
    font-size: 19px;
    line-height: 1;
}

.escaneo-btn-filter {
    background: linear-gradient(135deg, #f9a825, #ffb300) !important;
    color: #1f2933 !important;
}

.escaneo-btn-xls {
    background: #dc2626 !important;
    color: #fff !important;
}

.escaneo-btn-dark {
    background: #111827 !important;
    color: #fff !important;
}

.escaneo-btn-light {
    background: #4b5563 !important;
    color: #fff !important;
}

.escaneo-btn-zip-pending {
    background: #dc2626 !important;
    color: #fff !important;
}

.escaneo-btn-zip-ready,
.escaneo-btn-total {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}


/******************************************************************/
/*********************** TOOLBAR / STATS *************************/
/******************************************************************/


.escaneos-stats {
    display: grid;
    grid-template-rows: repeat(1, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(135px, 160px);
    gap: 10px;
    padding: 0;
    flex: 0 0 auto;
    grid-auto-columns: max-content;
    /*overflow-x: auto;*/
}

.escaneo-stat {
    min-height: 60px;
    min-width: 135px;
    border-radius: 14px;
    padding: 9px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 150px;
    height: 60px;
}

.escaneo-stat span {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 800;
    letter-spacing: 0.35px;
}

.escaneo-stat strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.escaneo-stat small {
    color: #6b7280;
    font-size: 12px;
}

.escaneo-stat-total strong {
    color: #111827;
}

.escaneo-stat-pending strong {
    color: #dc2626;
}

.escaneo-stat-valid strong {
    color: #16a34a;
}

.escaneo-stat-incident strong {
    color: #2563eb;
}

.escaneo-stat-updated strong {
    color: #0891b2;
}


.escaneos-total-form {
    margin: 0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.escaneos-total-form .filtro-item {
    min-width: 145px;
}

.escaneos-total-form label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.escaneos-total-form input[type="date"] {
    margin: 0;
}

.escaneo-btn-total {
    height: 45px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
}


/******************************************************************/
/************************ TABLA ESCANEOS *************************/
/******************************************************************/

.escaneos-table {
    width: 100%;
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
}

.escaneos-table thead {
    background: #111827;
}

.escaneos-table thead th {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 14px 12px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.escaneos-table tbody tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.escaneos-table tbody tr:hover {
    background: #fff8e1 !important;
}

.escaneos-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
    vertical-align: middle;
    text-align: left;
}

.escaneo-row-pending {
    background: #fee2e2;
}

.escaneo-row-valid {
    background: #dcfce7;
}

.escaneo-row-incident {
    background: #dbeafe;
}

.escaneo-row-updated {
    background: #cffafe;
}

.escaneo-row-paid {
    background: #f3e8ff;
}

.escaneo-row.darken-2 {
    box-shadow: inset 5px 0 0 #111827;
    filter: brightness(0.92);
}

.escaneo-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.escaneo-fecha,
.escaneo-money {
    font-weight: 800;
    color: #111827;
}

.escaneo-money-bonos {
    color: #15803d;
}

.escaneo-entradas-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.escaneo-entradas-box span {
    font-weight: 800;
}

.escaneo-user {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 150px;
}

.escaneo-user i {
    color: #ffb300;
    font-size: 20px;
}

.escaneo-user span {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.escaneo-comentario {
    display: block;
    max-width: 210px;
    color: #374151;
    line-height: 1.35;
}

.escaneo-ticket img {
    width: 76px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.escaneo-no-image {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.escaneo-estado {
    white-space: nowrap;
    min-width: 220px;
}

.escaneo-icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border-radius: 10px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    vertical-align: middle;
}

.escaneo-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.escaneo-info-btn,
.escaneo-incident-btn {
    background: #2563eb !important;
}

.escaneo-note-btn {
    background: #4b5563 !important;
}

.escaneo-note-active-btn {
    background: #f97316 !important;
}

.escaneo-pending-btn {
    background: #dc2626 !important;
}

.escaneo-valid-btn {
    background: #16a34a !important;
}

.escaneo-photo-btn {
    background: #7e22ce !important;
}

.escaneo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.escaneo-status-paid {
    background: #f3e8ff;
    color: #6b21a8;
}

.escaneos-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.escaneos-empty i {
    font-size: 44px;
    color: #d1d5db;
}

.escaneos-empty strong {
    color: #374151;
    font-size: 16px;
}

.escaneos-error i {
    color: #dc2626;
}


/******************************************************************/
/************************ MODALES ESCANEOS ***********************/
/******************************************************************/

.escaneos-form-modal {
    border-radius: 18px;
    overflow: hidden !important;
    max-width: 720px;
    max-height: 90vh !important;
    height: auto !important;
}

.escaneos-form-modal-large {
    max-width: 960px;
}

.escaneos-form-modal .modal-content {
    padding: 24px;
    max-height: calc(90vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
}

.escaneos-modal-footer {
    padding: 14px 24px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto !important;
}

.escaneos-form-modal .modal-title-custom {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.escaneos-form-modal .modal-title-custom > i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9a825, #ffb300);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.escaneos-form-modal .modal-title-custom h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.escaneos-form-modal .modal-title-custom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.escaneo-modal-cancel {
    color: #374151 !important;
    font-weight: 700;
}

.escaneo-modal-save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}


/******************************************************************/
/*********************** MODAL ENTRADAS **************************/
/******************************************************************/

.entradas-modal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.entradas-modal table thead {
    background: #111827;
}

.entradas-modal table thead td {
    color: #f9fafb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 13px 14px;
    border: 0;
}

.entradas-modal table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2933;
}

.entradas-modal table tbody tr:nth-child(even) {
    background: #f9fafb;
}


/******************************************************************/
/*********************** PHOTOSWIPE ROTATE ***********************/
/******************************************************************/

.pswp__button--rotate-left,
.pswp__button--rotate-right {
    color: #fff !important;
    font-size: 26px !important;
    line-height: 44px !important;
    background: none !important;
    text-align: center;
}

.pswp__button--rotate-left:hover,
.pswp__button--rotate-right:hover {
    opacity: 0.8;
}


/******************************************************************/
/************************ RESPONSIVE ******************************/
/******************************************************************/

@media only screen and (max-width: 1500px) {
    .escaneos-filtros-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .filtro-botones {
        grid-column: span 4;
    }
}

@media only screen and (max-width: 900px) {
    .escaneos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .escaneos-actions,
    .escaneos-pagination-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .escaneos-paginador,
    .escaneos-total {
        width: 100%;
        justify-content: center;
    }

    .escaneos-filtros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtro-botones {
        grid-column: span 2;
    }

     .escaneos-toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }

    .escaneos-stats {
        width: 100%;
        grid-template-columns: repeat(3, auto);
        grid-auto-flow: row;
    }

    .escaneo-stat{
        width: 100%;
    }

    .escaneos-total-form {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .escaneos-total-form .filtro-item {
        flex: 1;
        min-width: 140px;
    }
}


@media only screen and (max-width: 700px) {
    .escaneos-page {
        width: calc(100% - 16px);
    }

    .escaneos-filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-botones {
        grid-column: span 1;
        flex-direction: column;
    }

    .escaneo-btn {
        width: 100%;
        justify-content: center;
    }

    .escaneos-total-form {
        flex-direction: column;
        align-items: stretch;
    }

    .escaneos-total-form .filtro-item {
        width: 100%;
    }

    .escaneos-form-modal {
        width: 96% !important;
        max-width: 96% !important;
        border-radius: 14px;
    }

    .escaneos-modal-footer {
        flex-direction: column;
    }

    .escaneo-modal-save,
    .escaneo-modal-cancel {
        width: 100%;
        justify-content: center;
    }
}


/******************************************************************/
/*********************** MODULO CANJEAR PANEL *********************/
/******************************************************************/

.escanear-page {
    width: 100%;
    min-height: calc(100vh - 170px);
    padding: 22px;
    box-sizing: border-box;
}

.escanear-header {
    margin-bottom: 18px;
}

.escanear-business-pill {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(17, 24, 39, 0.12);
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.escanear-business-pill i {
    color: #f59e0b;
    font-size: 21px;
}

.escanear-summary-grid {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 14px;
}

.escanear-stat {
    min-height: 86px;
    width: auto;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.escanear-stat strong {
    max-width: 100%;
    color: #111827;
    font-size: 21px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.escanear-step-grid {
    display: grid;
    grid-template-columns: minmax(390px, 1fr) minmax(440px, 1fr);
    gap: 18px;
    align-items: start;
}

.escanear-after-check {
    margin-top: 18px;
    scroll-margin-top: 92px;
}

.escanear-after-check[hidden] {
    display: none;
}

.escanear-check-card .escanear-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.escanear-check-card .escanear-form > .escaneo-btn {
    min-height: 42px;
    margin-top: 14px;
}

.escanear-card {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #d9dee7;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.escanear-card-title {
    min-height: 74px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.escanear-card-title > i {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #111827;
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.escanear-card-title h5 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.escanear-card-title p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.escanear-customer-title > div {
    min-width: 0;
}

.escanear-customer-status {
    min-height: 28px;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
}

.escanear-customer-card.is-existing-customer .escanear-customer-status {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #166534;
}

.escanear-form {
    padding: 18px;
}

.escanear-form .input-field {
    margin-top: 14px;
    margin-bottom: 0;
}

.escanear-form input[type="text"],
.escanear-form input[type="number"],
.escanear-form input[type="tel"],
.escanear-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #cfd6e0 !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #111827;
    font-size: 14px;
}

.escanear-form input[readonly] {
    border-color: #e5e7eb !important;
    background: #f3f4f6;
    color: #374151;
    cursor: default;
}

.escanear-form input:focus {
    border-color: #111827 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08) !important;
}

.escanear-form .input-field > label {
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.escanear-form .input-field > label.active {
    padding: 0 6px;
    margin-left: 8px;
    background: #fff;
    color: #4b5563 !important;
    font-size: 12px;
    transform: translateY(-12px) scale(0.86);
    transform-origin: left top;
}

.escanear-form > .escaneo-btn {
    margin-top: 14px;
}

.escanear-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.escanear-sale-rule {
    min-height: 40px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
}

.escanear-sale-rule i {
    flex: 0 0 auto;
    font-size: 19px;
}

.escanear-customer-dni-row {
    min-height: 54px;
    margin-bottom: 4px;
    padding: 8px 10px 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.escanear-customer-dni-row > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.escanear-customer-dni-row span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
}

.escanear-customer-dni-row strong {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.escanear-change-dni {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.escanear-change-dni i {
    font-size: 18px;
}

.escanear-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.escanear-customer-email {
    grid-column: 1 / -1;
}

.escanear-ticket-choice {
    min-width: 0;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
}

.escanear-ticket-choice legend {
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.escanear-ticket-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.escanear-ticket-options label {
    position: relative;
    cursor: pointer;
}

.escanear-ticket-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.escanear-ticket-options label > span {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.escanear-ticket-options label > span::before,
.escanear-ticket-options label > span::after {
    display: none;
}

.escanear-ticket-options input:checked + span {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.escanear-ticket-options input:focus-visible + span {
    outline: 3px solid rgba(245, 158, 11, 0.35);
    outline-offset: 2px;
}

.escanear-ticket-options i {
    font-size: 20px;
}

.escanear-upload {
    min-height: 58px;
    margin: 18px 0 0;
    padding: 0 16px;
    border: 1px dashed #9ca3af;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
}

.escanear-upload:hover {
    border-color: #111827;
    background: #f3f4f6;
}

.escanear-upload i {
    color: #f59e0b;
    font-size: 23px;
}

.escanear-upload input {
    display: none;
}

.escanear-upload[hidden] {
    display: none;
}

.escanear-feedback {
    margin: 0 18px 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.escanear-feedback-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.escanear-feedback-ok {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.escanear-feedback-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.escanear-context-feedback {
    margin: 16px 0 0;
}

.escanear-pending-feedback {
    grid-column: 1 / -1;
    margin: 0;
    padding: 9px 10px;
    font-size: 12px;
}

.escanear-balance {
    margin: 0 18px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.escanear-balance > div {
    min-height: 74px;
    padding: 12px;
    border-radius: 8px;
    background: #111827;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.escanear-balance span {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 700;
}

.escanear-balance strong {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 800;
}

.escanear-validations {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.escanear-validation-item {
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
}

.escanear-validation-item i {
    color: #9ca3af;
    font-size: 19px;
}

.escanear-validation-item.is-valid {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.escanear-validation-item.is-valid i {
    color: #16a34a;
}

.escanear-validation-item.is-pending {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.escanear-validation-item.is-pending i {
    color: #d97706;
}

.escanear-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.escanear-recent-card {
    margin-top: 18px;
}

.escanear-recent-list {
    padding: 14px 18px 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.escanear-recent-item {
    min-height: 92px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.escanear-recent-item strong {
    color: #111827;
    font-weight: 800;
}

.escanear-recent-item span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.escanear-recent-item > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.escanear-recent-customer {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px !important;
}

.escanear-recent-customer > i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 18px;
}

.escanear-recent-customer > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.escanear-recent-customer strong,
.escanear-recent-customer span,
.escanear-recent-customer small {
    overflow-wrap: anywhere;
}

.escanear-recent-customer small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.escanear-ticket-link {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.escanear-ticket-link i {
    font-size: 18px;
}

.escanear-pending-ticket-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.escanear-pending-file,
.escanear-pending-submit {
    min-height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
}

.escanear-pending-file {
    min-width: 0;
    padding: 0 10px;
    border: 1px dashed #d97706;
    background: #fffbeb;
    color: #92400e;
    cursor: pointer;
}

.escanear-pending-file span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.escanear-pending-file input {
    display: none;
}

.escanear-pending-file i,
.escanear-pending-submit i {
    flex: 0 0 auto;
    font-size: 18px;
}

.escanear-pending-submit {
    padding: 0 12px;
    border: 0;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.escanear-pending-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.escanear-empty {
    min-height: 128px;
    padding: 24px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-weight: 700;
}

.escanear-empty i {
    color: #9ca3af;
    font-size: 40px;
}

.escaneo-btn.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media only screen and (max-width: 1180px) {
    .escanear-summary-grid,
    .escanear-recent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .escanear-step-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 760px) {
    .escanear-page {
        width: calc(100% - 16px);
        padding: 16px 8px 22px;
    }

    .escanear-header {
        align-items: stretch;
    }

    .escanear-business-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .escanear-summary-grid,
    .escanear-form-grid,
    .escanear-customer-grid,
    .escanear-balance,
    .escanear-validations,
    .escanear-recent-list {
        grid-template-columns: 1fr;
    }

    .escanear-check-card .escanear-form {
        grid-template-columns: 1fr;
    }

    .escanear-customer-email {
        grid-column: auto;
    }

    .escanear-customer-title {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .escanear-customer-status {
        width: 100%;
        margin-left: 50px;
    }

    .escanear-customer-dni-row {
        align-items: stretch;
        flex-direction: column;
    }

    .escanear-change-dni {
        width: 100%;
    }

    .escanear-ticket-options {
        grid-template-columns: 1fr;
    }

    .escanear-card-title {
        min-height: 66px;
        padding: 14px;
    }

    .escanear-form {
        padding: 14px;
    }

    .escanear-feedback,
    .escanear-balance {
        margin-left: 14px;
        margin-right: 14px;
    }

    .escanear-actions,
    .escanear-actions .escaneo-btn {
        width: 100%;
    }

    .escanear-recent-item {
        grid-template-columns: 1fr;
    }

    .escanear-ticket-link {
        width: 100%;
    }

    .escanear-pending-ticket-form {
        grid-template-columns: 1fr;
    }
}
