/* ==========================================================
   DASHBOARD.CSS
   SISTEMA CONTROL DE PRODUCTOS - KAMEES SARAKI
   Diseño premium, compacto y 100% responsivo
   Reemplazar completo: public/assets/css/dashboard.css
   ========================================================== */

/* ==========================================================
   1. VARIABLES PREMIUM
========================================================== */

:root {
    --ks-black: #07110d;
    --ks-black-2: #0b1f17;
    --ks-green: #0b2e21;
    --ks-green-2: #125c3e;
    --ks-green-3: #18875a;

    --ks-gold: #c99a35;
    --ks-gold-2: #f1d27a;
    --ks-gold-3: #a9771f;
    --ks-cream: #fff8e8;
    --ks-cream-2: #fbf4e6;
    --ks-cream-3: #efe2c9;

    --color-primary: var(--ks-black);
    --color-primary-2: var(--ks-green);
    --color-primary-3: var(--ks-green-2);
    --color-accent: var(--ks-gold);
    --color-accent-2: var(--ks-gold-2);

    --color-bg: #f6f0e5;
    --color-card: #ffffff;
    --color-card-soft: #fffcf4;
    --color-text: #111c16;
    --color-muted: #6f675b;
    --color-border: #e2d5bd;
    --color-border-strong: #cdb98e;

    --color-danger: #a8281c;
    --color-danger-2: #7f1b13;
    --color-success: #0d6846;
    --color-info: #1a5d88;
    --color-warning: #c99a35;

    --shadow-xs: 0 4px 12px rgba(7, 17, 13, 0.06);
    --shadow-soft: 0 8px 24px rgba(7, 17, 13, 0.10);
    --shadow-card: 0 14px 34px rgba(7, 17, 13, 0.14);
    --shadow-strong: 0 20px 48px rgba(7, 17, 13, 0.22);

    --radius-xs: 8px;
    --radius-sm: 11px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    --app-max-width: 1520px;
    --side-width: 208px;
    --side-width-collapsed: 76px;
    --header-height: 66px;

    --transition-fast: 0.18s ease;
    --transition-normal: 0.25s ease;
}

/* ==========================================================
   2. RESET / BASE
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(241, 210, 122, 0.32), transparent 30%),
        radial-gradient(circle at top right, rgba(7, 17, 13, 0.18), transparent 35%),
        linear-gradient(135deg, #f7f1e6 0%, #fbf8ef 44%, #efe5d3 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

::selection {
    color: var(--ks-black);
    background: rgba(241, 210, 122, 0.45);
}

/* ==========================================================
   3. CONTENEDOR PRINCIPAL
========================================================== */

.app-shell {
    width: min(100%, var(--app-max-width));
    min-height: 100vh;
    margin: 0 auto;
    padding: 10px 14px;
}

.app-shell.menu-collapsed {
    --side-width: var(--side-width-collapsed);
}

.main-layout {
    display: grid;
    grid-template-columns: var(--side-width) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    transition: var(--transition-normal);
}

.content-area,
.tab-content,
.tab-pane {
    min-width: 0;
}

/* ==========================================================
   4. HEADER STICKY PREMIUM
========================================================== */

.app-header {
    position: sticky;
    top: 8px;
    z-index: 2000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 14px;
    margin-bottom: 10px;
    color: var(--ks-cream);
    background:
        linear-gradient(135deg, #06110d 0%, #0a241a 46%, #125c3e 100%);
    border: 1px solid rgba(241, 210, 122, 0.30);
    border-radius: var(--radius-xl);
    box-shadow:
        0 14px 32px rgba(7, 17, 13, 0.26),
        inset 0 1px 0 rgba(255, 248, 232, 0.10);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.app-brand h1 {
    margin: 0;
    color: var(--ks-cream);
    font-size: clamp(0.98rem, 1.35vw, 1.24rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.app-brand p {
    margin: 1px 0 0;
    color: rgba(255, 248, 232, 0.78);
    font-size: 0.73rem;
    line-height: 1.2;
}

.btn-menu-toggle,
.brand-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

.btn-menu-toggle {
    color: var(--ks-cream);
    background: rgba(255, 244, 214, 0.10);
    border: 1px solid rgba(241, 210, 122, 0.22);
    transition: var(--transition-fast);
}

.btn-menu-toggle:hover {
    color: #ffffff;
    background: rgba(255, 244, 214, 0.16);
    transform: translateY(-1px);
}

.brand-icon {
    color: var(--ks-black);
    background: linear-gradient(135deg, #f1d27a 0%, #c99a35 55%, #a9771f 100%);
    box-shadow: 0 10px 22px rgba(201, 154, 53, 0.35);
    font-size: 1rem;
}

.app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.clock-box,
.user-box {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: var(--ks-cream);
    background: rgba(255, 244, 214, 0.10);
    border: 1px solid rgba(241, 210, 122, 0.22);
    border-radius: 12px;
    font-size: 0.78rem;
}

.clock-box i,
.user-box i {
    color: var(--ks-gold-2);
}

.user-box strong {
    display: block;
    max-width: 170px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-box span {
    display: block;
    max-width: 170px;
    margin-top: 1px;
    color: rgba(255, 248, 232, 0.72);
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-salir {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #a8281c 0%, #7f1b13 100%);
    border: 1px solid rgba(255, 244, 214, 0.20);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(127, 27, 19, 0.28);
    font-size: 0.78rem;
    font-weight: 900;
    transition: var(--transition-fast);
}

.btn-salir:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================
   5. MENÚ LATERAL / MÓVIL
========================================================== */

.side-menu {
    position: sticky;
    top: 84px;
    min-height: auto;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf7ee 100%);
    border: 1px solid rgba(205, 185, 142, 0.75);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 28px rgba(7, 17, 13, 0.10);
    overflow: hidden;
}

.side-menu-title {
    margin-bottom: 8px;
    padding: 0 7px 8px;
    color: #8a6a26;
    border-bottom: 1px solid rgba(205, 185, 142, 0.70);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-option {
    width: 100%;
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: #5d635b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: left;
    transition: var(--transition-fast);
}

.menu-option i {
    width: 22px;
    min-width: 22px;
    color: #8a6a26;
    text-align: center;
    font-size: 0.90rem;
}

.menu-option:hover {
    color: var(--ks-black);
    background: #fff8e8;
    border-color: rgba(201, 154, 53, 0.25);
}

.menu-option.active {
    color: var(--ks-cream);
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 52%, #125c3e 100%);
    border-color: rgba(241, 210, 122, 0.34);
    box-shadow: 0 12px 24px rgba(7, 17, 13, 0.25);
}

.menu-option.active i {
    color: var(--ks-gold-2);
}

.menu-collapsed .side-menu {
    padding: 10px 8px;
}

.menu-collapsed .side-menu-title span,
.menu-collapsed .menu-option span {
    display: none;
}

.menu-collapsed .menu-option {
    justify-content: center;
    padding: 10px;
}

.menu-collapsed .menu-option i {
    width: auto;
    min-width: auto;
}

.mobile-menu {
    display: none;
}

.mobile-option {
    min-height: 42px;
    padding: 7px 9px;
    color: #5d635b;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.65);
    border-radius: 13px;
    font-size: 0.72rem;
    font-weight: 900;
    transition: var(--transition-fast);
}

.mobile-option i {
    display: block;
    color: #8a6a26;
    margin-bottom: 2px;
    font-size: 0.92rem;
}

.mobile-option.active {
    color: var(--ks-cream);
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 50%, #125c3e 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(7, 17, 13, 0.22);
}

.mobile-option.active i {
    color: var(--ks-gold-2);
}

/* ==========================================================
   6. CARDS / PANELES
========================================================== */

.corporate-home-panel,
.corporate-module-panel,
.corporate-import-card,
.corporate-form-card,
.corporate-photo-card,
.capture-pro-card,
.corporate-search-table-card,
.corporate-preview-card,
.designer-medidas-panel,
.designer-users-panel,
.designer-users-list,
.designer-user-form,
.permisos-box,
.importacion-box-pro {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(205, 185, 142, 0.70);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 30px rgba(7, 17, 13, 0.10);
}

.corporate-home-panel,
.corporate-module-panel {
    padding: 10px 12px;
}

.corporate-module-panel {
    min-height: auto;
}

.designer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: #9f7623;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.designer-card-title,
.corporate-section-title,
.capture-pro-header,
.box-title,
.box-title-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.designer-card-title h3,
.corporate-section-title h3,
.capture-pro-header h3,
.box-title h3,
.box-title-compact h3,
.corporate-preview-info h4 {
    margin: 0;
    color: var(--ks-black);
    font-size: 0.94rem;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.designer-card-title p,
.corporate-section-title p,
.capture-pro-header p,
.box-title p,
.box-title-compact p {
    margin: 2px 0 0;
    color: var(--color-muted);
    font-size: 0.72rem;
}

/* ==========================================================
   7. BOTONES
========================================================== */

.btn {
    border-radius: 12px;
    font-weight: 900;
    transition: var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-main,
.btn-primary,
#btnGuardarProducto {
    color: var(--ks-cream);
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 48%, #125c3e 100%);
    border: 1px solid rgba(241, 210, 122, 0.22);
    box-shadow: 0 8px 18px rgba(7, 17, 13, 0.18);
}

.btn-main:hover,
.btn-primary:hover,
#btnGuardarProducto:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0a241a 0%, #125c3e 100%);
}

.btn-light,
.btn-main-light,
#btnLimpiarProducto,
#btnLimpiarFiltrosProductos {
    color: var(--ks-black);
    background: #fffdf7;
    border: 1px solid rgba(205, 185, 142, 0.88);
    box-shadow: none;
}

.btn-light:hover,
.btn-main-light:hover,
#btnLimpiarProducto:hover,
#btnLimpiarFiltrosProductos:hover {
    color: var(--ks-black);
    background: #fff4d6;
    border-color: var(--ks-gold);
}

#btnActualizarProducto,
.btn-warning {
    color: #241706;
    background: linear-gradient(135deg, #fff4d6 0%, #f1d27a 42%, #c99a35 100%);
    border: 1px solid rgba(201, 154, 53, 0.48);
    box-shadow: 0 8px 18px rgba(201, 154, 53, 0.24);
}

#btnBuscarDesdeCapturaInferior,
#btnBuscarDesdeCaptura,
#btnBuscarProductos,
#btnRecargarProductos,
.btn-info {
    color: var(--ks-cream);
    background: linear-gradient(135deg, #123f58 0%, #1a5d88 100%);
    border: 1px solid rgba(26, 93, 136, 0.25);
}

#btnMostrarImportacion,
#btnSeleccionarExcel,
#btnSubirExcel,
#btnProcesarExcel,
.btn-success {
    color: var(--ks-cream);
    background: linear-gradient(135deg, #0b2e21 0%, #0d6846 100%);
    border: 1px solid rgba(241, 210, 122, 0.18);
}

#btnEliminarProducto,
#btnBorrarTodaInformacion,
.btn-danger,
.btn-danger-pro {
    color: #ffffff;
    background: linear-gradient(135deg, #a8281c 0%, #7f1b13 100%);
    border: 1px solid rgba(168, 40, 28, 0.36);
}

.btn-sm {
    padding: 0.30rem 0.52rem;
    border-radius: 10px;
    font-size: 0.72rem;
}

.btn.disabled,
.btn:disabled,
.permiso-bloqueado {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
}

/* ==========================================================
   8. HOME / LOGO / KPIS
========================================================== */

.corporate-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    color: var(--ks-cream);
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 45%, #125c3e 100%);
    border: 1px solid rgba(241, 210, 122, 0.25);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 232, 0.10),
        0 10px 25px rgba(7, 17, 13, 0.18);
    overflow: hidden;
}

.corporate-home-header h2 {
    margin: 0;
    color: var(--ks-cream);
    font-size: clamp(1.05rem, 1.8vw, 1.50rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.corporate-home-header p {
    max-width: 720px;
    margin: 4px 0 0;
    color: rgba(255, 248, 232, 0.78);
    font-size: 0.78rem;
    line-height: 1.25;
}

.corporate-home-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.corporate-home-actions .btn {
    min-height: 36px;
    padding: 6px 11px;
    font-size: 0.78rem;
}

.corporate-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
    gap: 10px;
    align-items: stretch;
}

.corporate-home-info,
.corporate-logo-card {
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fffcf4 100%);
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 16px;
    
}

.corporate-home-info h3 {
    margin: 7px 0 4px;
    color: var(--ks-black);
    font-size: clamp(1rem, 1.45vw, 1.32rem);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.corporate-home-info p {
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 0.80rem;
    line-height: 1.28;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    color: var(--ks-black);
    background: linear-gradient(135deg, #fff4d6 0%, #f1d27a 100%);
    border: 1px solid rgba(201, 154, 53, 0.38);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 950;
}

.corporate-logo-card {
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(241, 210, 122, 0.28), transparent 58%),
        linear-gradient(145deg, #0a120e 0%, #12251c 48%, #f8f2e7 49%, #ffffff 100%);
    border-color: rgba(201, 154, 53, 0.36);
    overflow: hidden;
}

.designer-logo-img {
    width: min(100%, 530px);
    max-height: 292px;
    object-fit: contain;
    filter:
        drop-shadow(0 18px 28px rgba(7, 17, 13, 0.32))
        drop-shadow(0 0 10px rgba(241, 210, 122, 0.14));
}

.kpi-grid,
.designer-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.kpi-card {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fffcf4 100%);
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 15px;
    box-shadow: var(--shadow-xs);
}

.kpi-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-black);
    background: linear-gradient(135deg, #fff4d6 0%, #f1d27a 55%, #c99a35 100%);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(201, 154, 53, 0.20);
    font-size: 0.95rem;
}

.kpi-card span {
    display: block;
    color: #7e735e;
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-card strong {
    display: block;
    margin-top: 0;
    color: var(--ks-black);
    font-size: 1.08rem;
    font-weight: 950;
}

.corporate-import-card {
    margin-top: 10px;
    padding: 10px 12px;
}

/* ==========================================================
   9. TABLAS
========================================================== */

.table-wrapper,
.corporate-products-wrapper {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 14px;
    overflow: auto;
    scrollbar-color: #c99a35 #f7f1e6;
}

.table-wrapper-small {
    max-height: 210px;
}

.table {
    margin-bottom: 0;
    color: var(--color-text);
}

.table thead th,
.table-products thead th,
.corporate-products-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 7px 8px;
    color: var(--ks-cream);
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 55%, #125c3e 100%);
    border: 0;
    border-bottom: 1px solid rgba(241, 210, 122, 0.22);
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody td,
.table-products tbody td,
.corporate-products-table tbody td {
    padding: 7px 8px;
    vertical-align: middle;
    border-color: #f1eadb;
    font-size: 0.76rem;
}

.table tbody tr,
.table-products tbody tr,
.corporate-products-table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover,
.table-products tbody tr:hover,
.corporate-products-table tbody tr:hover {
    background: #fff8e8;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.badge-status,
.main-badge {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    color: var(--ks-black);
    background: linear-gradient(135deg, #fff4d6, #f1d27a);
    border: 1px solid rgba(201, 154, 53, 0.36);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 950;
}

/* ==========================================================
   10. BÚSQUEDA DE PRODUCTOS
========================================================== */

.corporate-search-panel {
    padding: 10px;
}

.corporate-search-workarea {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 10px;
    align-items: start;
}

.corporate-search-table-card,
.corporate-preview-card {
    padding: 10px;
}

.corporate-products-wrapper {
    min-height: 285px;
    max-height: calc(100vh - 235px);
}

.corporate-products-table {
    min-width: 900px;
}

.corporate-products-table .col-fam {
    width: 90px;
}

.corporate-products-table .col-dni {
    width: 105px;
}

.corporate-products-table .col-desc {
    width: 290px;
}

.corporate-products-table .col-prod {
    width: 230px;
}

.corporate-products-table .col-measure {
    width: 70px;
    text-align: center;
}

.corporate-products-table .col-action {
    width: 92px;
    text-align: center;
}

.measure-lower {
    font-weight: 950;
    text-transform: lowercase;
}

.measure-upper {
    font-weight: 950;
    text-transform: uppercase;
}

.corporate-search-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pagination-bar,
.corporate-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.corporate-search-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.select-page {
    min-width: 135px;
    color: var(--color-text);
    border-color: rgba(205, 185, 142, 0.78);
    border-radius: 11px;
    font-weight: 800;
}

.corporate-search-summary {
    margin-top: 7px;
    padding: 7px 9px;
    color: var(--color-muted);
    background: #fffcf4;
    border: 1px dashed rgba(205, 185, 142, 0.85);
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.35;
}

.corporate-filter-bar {
    display: grid;
    grid-template-columns: 105px minmax(200px, 1fr) repeat(6, minmax(78px, 0.4fr)) auto;
    gap: 7px;
    align-items: end;
    margin-top: 9px;
    padding: 10px;
    background: #fffcf4;
    border: 1px solid rgba(205, 185, 142, 0.70);
    border-radius: 16px;
}

.corporate-filter-field,
.form-field,
.capture-field {
    min-width: 0;
}

.corporate-filter-field label,
.form-field label,
.capture-field label {
    display: block;
    margin-bottom: 3px;
    color: var(--ks-black);
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.corporate-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.filter-general {
    min-width: 200px;
}

.filter-measure {
    min-width: 78px;
}

/* ==========================================================
   11. PREVIEW PRODUCTO / FOTO
========================================================== */

.corporate-preview-card {
    position: sticky;
    top: 84px;
}

.corporate-preview-frame,
.corporate-photo-frame,
.designer-medidas-frame {
    background: linear-gradient(135deg, rgba(255, 244, 214, 0.52), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(205, 185, 142, 0.75);
}

.corporate-preview-frame {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.empty-preview,
.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--color-muted);
    text-align: center;
}

.empty-preview i,
.gallery-empty i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-black);
    background: linear-gradient(135deg, #fff4d6, #f1d27a);
    border-radius: 16px;
    font-size: 1.20rem;
}

.preview-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.corporate-preview-photo-controls,
.corporate-photo-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 7px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.corporate-preview-info {
    margin-top: 8px;
}

.corporate-preview-info h4 {
    font-size: 0.88rem;
}

.corporate-preview-info p {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 0.72rem;
    line-height: 1.24;
}

.preview-measures,
.corporate-measures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.preview-measures span,
.corporate-measures span {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--color-muted);
    background: #fffcf4;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 12px;
    font-size: 0.66rem;
    font-weight: 950;
}

.preview-measures strong,
.corporate-measures strong {
    display: block;
    margin-top: 1px;
    color: var(--ks-black);
    font-size: 0.78rem;
}

/* ==========================================================
   12. CAPTURA / INGRESO
========================================================== */

.corporate-entry-panel {
    padding: 10px;
}

.corporate-entry-workarea {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.corporate-photo-card,
.capture-pro-card {
    padding: 10px;
}

.corporate-photo-card {
    position: sticky;
    top: 84px;
}

.corporate-photo-frame {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.corporate-photo-actions,
.form-actions-users,
.designer-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.capture-fields-layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.capture-field-wide {
    grid-column: span 2;
}

.form-control,
.form-select {
    min-height: 36px;
    color: var(--color-text);
    background-color: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.78);
    border-radius: 11px;
    box-shadow: none;
    font-size: 0.80rem;
    font-weight: 650;
    transition: var(--transition-fast);
}

textarea.form-control {
    min-height: 68px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ks-gold);
    box-shadow: 0 0 0 0.20rem rgba(201, 154, 53, 0.18);
}

.form-control::placeholder {
    color: #a79b87;
    font-weight: 500;
}

.capture-brand-box,
.capture-search-panel,
.import-actions-panel,
.designer-user-search,
.permisos-box {
    background: #fffcf4;
    border: 1px solid rgba(205, 185, 142, 0.70);
}

.capture-brand-box {
    margin-top: 9px;
    padding: 10px;
    border-radius: 16px;
}

.capture-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ks-black);
    font-size: 0.78rem;
    font-weight: 950;
}

.capture-brand-grid,
.checks-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 7px;
}

.check-pro {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 11px;
    font-size: 0.74rem;
    font-weight: 850;
    cursor: pointer;
    transition: var(--transition-fast);
}

.check-pro:hover {
    background: #fff8e8;
    border-color: var(--ks-gold);
}

.check-pro input {
    width: 15px;
    height: 15px;
    accent-color: var(--ks-green-2);
}

.capture-search-panel {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 16px;
}

.capture-search-control {
    display: flex;
    gap: 7px;
    align-items: center;
}

.capture-search-input {
    flex: 1;
}

.capture-results-panel {
    margin-top: 9px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 16px;
}

.capture-results-title {
    margin-bottom: 8px;
    color: var(--ks-black);
    font-size: 0.80rem;
    font-weight: 950;
}

.capture-results-list {
    display: grid;
    gap: 7px;
    max-height: 260px;
    overflow: auto;
    scrollbar-color: #c99a35 #f7f1e6;
}

.capture-result-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    color: var(--color-text);
    background: #fffcf4;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 13px;
    text-align: left;
    transition: var(--transition-fast);
}

.capture-result-item:hover {
    background: #fff8e8;
    border-color: var(--ks-gold);
    transform: translateY(-1px);
}

.capture-result-main strong {
    display: block;
    color: var(--ks-black);
    font-size: 0.82rem;
}

.capture-result-main span {
    display: block;
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 0.72rem;
}

.capture-result-badge {
    min-width: 66px;
    padding: 5px 9px;
    color: var(--ks-cream);
    background: var(--ks-green);
    border-radius: var(--radius-pill);
    font-size: 0.70rem;
    font-weight: 950;
    text-align: center;
}

/* ==========================================================
   13. BOTONERA CAPTURA AGRUPADA Y COMPACTA
========================================================== */

.corporate-entry-actions {
    display: grid;
    grid-template-columns: repeat(7, minmax(112px, max-content));
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 248, 232, 0.98));
    border: 1px solid rgba(205, 185, 142, 0.74);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(7, 17, 13, 0.10);
}

.corporate-entry-actions .btn,
.corporate-entry-actions .btn-excel-action {
    width: auto !important;
    min-width: 112px;
    max-width: 172px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(7, 17, 13, 0.10);
}

.corporate-entry-actions .btn i {
    font-size: 0.88rem;
}

#btnMostrarImportacion,
#btnLimpiarProducto,
#btnBorrarTodaInformacion {
    position: relative;
    margin-left: 8px !important;
}

#btnMostrarImportacion::before,
#btnLimpiarProducto::before,
#btnBorrarTodaInformacion::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 8px;
    width: 1px;
    height: 24px;
    background: rgba(201, 154, 53, 0.45);
}

.btn-excel-action {
    width: auto;
}

/* ==========================================================
   14. GALERÍA
========================================================== */

.corporate-gallery-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 7px;
    margin-top: 8px;
}

.gallery-item {
    position: relative;
    min-height: 70px;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 70px;
    display: block;
    object-fit: cover;
}

.gallery-actions {
    position: absolute;
    inset: auto 5px 5px 5px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.gallery-actions .btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 9px;
}

/* ==========================================================
   15. IMPORTACIÓN
========================================================== */

.importacion-box,
.importacion-box-pro {
    display: none;
    margin-top: 9px;
    padding: 10px;
}

.importacion-box.is-visible,
.importacion-box-pro.is-visible {
    display: block;
}

.importacion-grid,
.importacion-grid-pro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 10px;
    align-items: start;
}

.excel-upload-zone {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fffcf4;
    border: 2px dashed rgba(205, 185, 142, 0.95);
    border-radius: 16px;
}

.excel-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-cream);
    background: linear-gradient(135deg, #0b2e21, #0d6846);
    border-radius: 14px;
    font-size: 1rem;
}

.selected-file {
    margin-top: 6px;
    padding: 7px 9px;
    color: var(--color-muted);
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 800;
}

.import-actions-panel {
    padding: 10px;
    border-radius: 16px;
}

.import-actions-panel .btn-excel-action {
    width: 100%;
    max-width: none;
    justify-content: center;
    margin-bottom: 7px !important;
}

.import-progress {
    margin-top: 10px;
}

.progress {
    height: 17px;
    background: #efe2c9;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--ks-black), var(--ks-green-2));
    font-size: 0.70rem;
    font-weight: 950;
}

/* ==========================================================
   16. MEDIDAS
========================================================== */

.designer-medidas-panel {
    padding: 12px;
}

.designer-medidas-frame {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 16px;
    overflow: auto;
}

.designer-medidas-frame img,
#imgTablaMedidas {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    border-radius: 14px;
}

/* ==========================================================
   17. USUARIOS Y PERMISOS
========================================================== */

.designer-users-panel {
    padding: 12px;
}

.designer-user-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 9px;
    border-radius: 16px;
}

.designer-users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 10px;
    align-items: start;
}

.designer-users-list,
.designer-user-form {
    padding: 10px;
}

.form-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.permisos-box {
    margin-top: 9px;
    padding: 10px;
}

.permisos-list {
    display: grid;
    gap: 8px;
}

.permiso-card {
    padding: 9px;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 13px;
}

.permiso-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--ks-black);
    font-size: 0.80rem;
    font-weight: 950;
}

.permiso-checks,
.permiso-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 7px;
}

.permiso-check {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    color: var(--color-text);
    background: #fffcf4;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: 11px;
    font-size: 0.74rem;
    font-weight: 850;
}

.permiso-check input {
    accent-color: var(--ks-green-2);
}

.permisos-empty {
    padding: 14px;
    color: var(--color-muted);
    background: #ffffff;
    border: 1px dashed rgba(205, 185, 142, 0.95);
    border-radius: 13px;
    text-align: center;
}

/* ==========================================================
   18. LOADER
========================================================== */

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 17, 13, 0.46);
}

.loader-overlay.show {
    display: flex;
}

.loader-card {
    min-width: 220px;
    padding: 22px;
    color: var(--ks-black);
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    text-align: center;
}

.loader-card .spinner-border {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--ks-green-2);
}

.loader-card p {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-weight: 900;
}

/* ==========================================================
   19. UTILIDADES
========================================================== */

.alert {
    border: 0;
    border-radius: 16px;
}

.text-muted {
    color: var(--color-muted) !important;
}

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-soft) !important;
}

.w-100 {
    width: 100% !important;
}

.d-none {
    display: none !important;
}

/* ==========================================================
   20. RESPONSIVE - LAPTOP MEDIANA
========================================================== */

@media (max-width: 1320px) {
    :root {
        --side-width: 198px;
    }

    .corporate-entry-actions {
        grid-template-columns: repeat(4, minmax(112px, max-content));
    }

    #btnMostrarImportacion,
    #btnBorrarTodaInformacion,
    #btnLimpiarProducto {
        margin-left: 0 !important;
    }

    #btnMostrarImportacion::before,
    #btnBorrarTodaInformacion::before,
    #btnLimpiarProducto::before {
        display: none;
    }

    .corporate-filter-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .corporate-filter-actions {
        grid-column: span 4;
        justify-content: flex-end;
    }
}

/* ==========================================================
   21. RESPONSIVE - TABLET
========================================================== */

@media (max-width: 992px) {
    .app-shell {
        padding: 8px 10px;
    }

    .app-header {
        top: 6px;
        align-items: flex-start;
        flex-direction: column;
        padding: 10px;
    }

    .app-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .clock-box,
    .user-box,
    .btn-salir {
        flex: 1;
        justify-content: center;
    }

    .main-layout {
        display: block;
    }

    .side-menu {
        display: none;
    }

    .mobile-menu {
        position: sticky;
        top: 82px;
        z-index: 1500;
        display: grid;
        grid-template-columns: repeat(5, minmax(74px, 1fr));
        gap: 7px;
        margin-bottom: 8px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(205, 185, 142, 0.75);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-soft);
        overflow-x: auto;
    }

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

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

    .corporate-home-grid,
    .corporate-search-workarea,
    .corporate-entry-workarea,
    .designer-users-layout,
    .importacion-grid,
    .importacion-grid-pro {
        grid-template-columns: 1fr;
    }

    .corporate-logo-card {
        min-height: 260px;
    }

    .designer-logo-img {
        width: min(100%, 460px);
        max-height: 255px;
    }

    .corporate-preview-card,
    .corporate-photo-card {
        position: relative;
        top: auto;
    }

    .corporate-products-wrapper {
        min-height: 280px;
        max-height: 430px;
    }

    .corporate-entry-actions {
        grid-template-columns: repeat(3, minmax(112px, 1fr));
    }

    .corporate-entry-actions .btn,
    .corporate-entry-actions .btn-excel-action {
        max-width: none;
    }

    .corporate-filter-actions {
        grid-column: auto;
    }
}

/* ==========================================================
   22. RESPONSIVE - CELULAR
========================================================== */

@media (max-width: 768px) {
    .app-shell {
        padding: 7px;
    }

    .app-header {
        top: 5px;
        gap: 8px;
        padding: 9px;
        border-radius: 16px;
    }

    .app-brand {
        width: 100%;
        gap: 8px;
    }

    .app-brand h1 {
        font-size: 0.92rem;
    }

    .app-brand p {
        font-size: 0.68rem;
    }

    .btn-menu-toggle {
        display: none;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .app-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .clock-box,
    .user-box,
    .btn-salir {
        width: 100%;
        min-height: 34px;
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .mobile-menu {
        top: 74px;
        grid-template-columns: repeat(5, minmax(82px, 1fr));
        gap: 6px;
        padding: 7px;
        margin-bottom: 8px;
    }

    .mobile-option {
        min-height: 40px;
        padding: 6px;
        border-radius: 12px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .mobile-option i {
        margin-bottom: 1px;
        font-size: 0.90rem;
    }

    .corporate-home-panel,
    .corporate-module-panel,
    .corporate-import-card,
    .corporate-search-table-card,
    .corporate-preview-card,
    .corporate-photo-card,
    .capture-pro-card,
    .designer-medidas-panel,
    .designer-users-panel,
    .designer-users-list,
    .designer-user-form,
    .permisos-box {
        padding: 10px;
        border-radius: 18px;
    }

    .corporate-home-header {
        padding: 11px;
    }

    .corporate-home-header h2 {
        font-size: 1.05rem;
    }

    .corporate-home-header p {
        font-size: 0.72rem;
    }

    .corporate-home-actions,
    .corporate-search-right-actions,
    .corporate-photo-actions,
    .form-actions-users,
    .designer-card-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .corporate-home-actions .btn,
    .corporate-search-right-actions .btn,
    .corporate-photo-actions .btn,
    .form-actions-users .btn,
    .designer-card-actions .btn,
    .select-page {
        width: 100%;
    }

    .corporate-logo-card {
        min-height: 245px;
    }

    .designer-logo-img {
        width: min(100%, 400px);
        max-height: 240px;
    }

    .kpi-grid,
    .designer-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi-card {
        min-height: 58px;
        padding: 8px;
    }

    .kpi-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .kpi-card span {
        font-size: 0.58rem;
    }

    .kpi-card strong {
        font-size: 0.95rem;
    }

    .corporate-products-wrapper {
        min-height: 255px;
        max-height: 360px;
    }

    .corporate-preview-frame,
    .corporate-photo-frame {
        height: 215px;
    }

    .preview-measures,
    .corporate-measures {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .preview-measures span,
    .corporate-measures span {
        min-height: 38px;
        font-size: 0.60rem;
    }

    .preview-measures strong,
    .corporate-measures strong {
        font-size: 0.70rem;
    }

    .capture-fields-layout {
        grid-template-columns: 1fr;
    }

    .capture-field-wide {
        grid-column: auto;
    }

    .capture-search-control {
        align-items: stretch;
        flex-direction: column;
    }

    .corporate-entry-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        padding: 10px;
    }

    .corporate-entry-actions .btn,
    .corporate-entry-actions .btn-excel-action {
        width: 100% !important;
        min-width: 0;
        min-height: 38px;
        padding: 8px 9px;
        font-size: 0.70rem;
    }

    .corporate-filter-bar {
        grid-template-columns: 1fr;
    }

    .corporate-filter-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-bar,
    .corporate-pagination {
        width: 100%;
        justify-content: center;
    }

    .excel-upload-zone {
        align-items: flex-start;
        flex-direction: column;
    }

    .designer-user-search {
        align-items: stretch;
        flex-direction: column;
    }

    .table thead th,
    .table-products thead th,
    .corporate-products-table thead th {
        padding: 8px 7px;
        font-size: 0.64rem;
    }

    .table tbody td,
    .table-products tbody td,
    .corporate-products-table tbody td {
        padding: 8px 7px;
        font-size: 0.74rem;
    }
}

/* ==========================================================
   23. RESPONSIVE - CELULAR PEQUEÑO
========================================================== */

@media (max-width: 480px) {
    .app-shell {
        padding: 6px;
    }

    .app-brand p {
        display: none;
    }

    .app-brand h1 {
        font-size: 0.88rem;
    }

    .user-box strong,
    .user-box span {
        max-width: 100%;
    }

    .mobile-menu {
        top: 70px;
        grid-template-columns: repeat(5, 76px);
        justify-content: flex-start;
        overflow-x: auto;
    }

    .mobile-option {
        font-size: 0.64rem;
    }

    .corporate-logo-card {
        min-height: 225px;
    }

    .designer-logo-img {
        max-height: 220px;
    }

    .kpi-grid,
    .designer-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .corporate-preview-frame,
    .corporate-photo-frame {
        height: 200px;
    }

    .corporate-entry-actions {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .corporate-entry-actions .btn,
    .corporate-entry-actions .btn-excel-action {
        min-height: 38px;
        font-size: 0.66rem;
        letter-spacing: 0;
    }

    .designer-card-title,
    .corporate-section-title,
    .capture-pro-header,
    .box-title,
    .box-title-compact {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-measures,
    .corporate-measures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   24. RESPONSIVE - MUY PEQUEÑO
========================================================== */

@media (max-width: 360px) {
    .mobile-menu {
        grid-template-columns: repeat(5, 72px);
    }

    .corporate-entry-actions {
        grid-template-columns: 1fr;
    }

    .kpi-grid,
    .designer-kpi-grid {
        grid-template-columns: 1fr;
    }

    .corporate-home-header h2 {
        font-size: 0.98rem;
    }
}


/* ==========================================================
   25. TABLAS EN CELULAR COMO TARJETAS
   Convierte las tablas con data-label en cards móviles.
   No requiere cambiar la vista ni el JS.
========================================================== */

@media (max-width: 768px) {
    .table-wrapper,
    .corporate-products-wrapper,
    .table-responsive {
        overflow-x: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .table-wrapper table,
    .corporate-products-wrapper table,
    .table-responsive table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
        background: transparent !important;
    }

    .table-wrapper table thead,
    .corporate-products-wrapper table thead,
    .table-responsive table thead {
        display: none !important;
    }

    .table-wrapper table tbody,
    .corporate-products-wrapper table tbody,
    .table-responsive table tbody,
    .table-wrapper table tr,
    .corporate-products-wrapper table tr,
    .table-responsive table tr {
        display: block !important;
        width: 100% !important;
    }

    .table-wrapper table tbody tr,
    .corporate-products-wrapper table tbody tr,
    .table-responsive table tbody tr {
        position: relative;
        margin: 0 0 10px 0 !important;
        padding: 10px 10px 8px !important;
        background:
            linear-gradient(180deg, #ffffff 0%, #fffcf4 100%) !important;
        border: 1px solid rgba(205, 185, 142, 0.78) !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 24px rgba(7, 17, 13, 0.10) !important;
        overflow: hidden !important;
    }

    .table-wrapper table tbody tr::before,
    .corporate-products-wrapper table tbody tr::before,
    .table-responsive table tbody tr::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(180deg, #07110d 0%, #125c3e 58%, #c99a35 100%);
    }

    .table-wrapper table tbody td,
    .corporate-products-wrapper table tbody td,
    .table-responsive table tbody td,
    .table > :not(caption) > * > * {
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 8px 8px 8px 14px !important;
        color: var(--color-text) !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(226, 213, 189, 0.72) !important;
        text-align: right !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .table-wrapper table tbody td:last-child,
    .corporate-products-wrapper table tbody td:last-child,
    .table-responsive table tbody td:last-child {
        border-bottom: 0 !important;
        padding-bottom: 4px !important;
    }

    .table-wrapper table tbody td::before,
    .corporate-products-wrapper table tbody td::before,
    .table-responsive table tbody td::before {
        content: attr(data-label);
        min-width: 96px;
        max-width: 48%;
        color: #8a6a26;
        font-size: 0.68rem;
        font-weight: 950;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.045em;
        line-height: 1.15;
    }

    .table-wrapper table tbody td[data-label="DESCRIPCION"],
    .corporate-products-wrapper table tbody td[data-label="DESCRIPCION"],
    .table-responsive table tbody td[data-label="DESCRIPCION"],
    .table-wrapper table tbody td[data-label="PRODUCTO"],
    .corporate-products-wrapper table tbody td[data-label="PRODUCTO"],
    .table-responsive table tbody td[data-label="PRODUCTO"],
    .table-wrapper table tbody td[data-label="Nombre"],
    .table-responsive table tbody td[data-label="Nombre"],
    .table-wrapper table tbody td[data-label="Archivo"],
    .table-responsive table tbody td[data-label="Archivo"] {
        align-items: flex-start !important;
    }

    .table-wrapper table tbody td[data-label="DESCRIPCION"] strong,
    .corporate-products-wrapper table tbody td[data-label="DESCRIPCION"] strong,
    .table-responsive table tbody td[data-label="DESCRIPCION"] strong,
    .table-wrapper table tbody td[data-label="Archivo"] strong,
    .table-responsive table tbody td[data-label="Archivo"] strong {
        color: var(--ks-black) !important;
        font-weight: 950 !important;
    }

    .table-wrapper table tbody td[data-label="Acción"],
    .corporate-products-wrapper table tbody td[data-label="Acción"],
    .table-responsive table tbody td[data-label="Acción"] {
        display: block !important;
        text-align: left !important;
        padding-top: 10px !important;
    }

    .table-wrapper table tbody td[data-label="Acción"]::before,
    .corporate-products-wrapper table tbody td[data-label="Acción"]::before,
    .table-responsive table tbody td[data-label="Acción"]::before {
        display: block !important;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .table-wrapper table tbody td[data-label="Acción"] .row-actions,
    .corporate-products-wrapper table tbody td[data-label="Acción"] .row-actions,
    .table-responsive table tbody td[data-label="Acción"] .row-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px !important;
    }

    .table-wrapper table tbody td[data-label="Acción"] .btn,
    .corporate-products-wrapper table tbody td[data-label="Acción"] .btn,
    .table-responsive table tbody td[data-label="Acción"] .btn {
        width: 100%;
        min-height: 36px;
        justify-content: center;
        border-radius: 999px;
    }

    .table-wrapper table tbody td[colspan],
    .corporate-products-wrapper table tbody td[colspan],
    .table-responsive table tbody td[colspan] {
        display: block !important;
        padding: 18px 12px !important;
        color: var(--color-muted) !important;
        background: #ffffff !important;
        border: 1px dashed rgba(205, 185, 142, 0.85) !important;
        border-radius: 16px !important;
        text-align: center !important;
    }

    .table-wrapper table tbody td[colspan]::before,
    .corporate-products-wrapper table tbody td[colspan]::before,
    .table-responsive table tbody td[colspan]::before {
        display: none !important;
        content: "";
    }

    .corporate-products-table tbody td[data-label="d"],
    .corporate-products-table tbody td[data-label="D"],
    .corporate-products-table tbody td[data-label="B"],
    .corporate-products-table tbody td[data-label="C"] {
        display: inline-flex !important;
        width: calc(50% - 4px) !important;
        margin: 0 2px 6px !important;
        padding: 8px 10px !important;
        background: #fff8e8 !important;
        border: 1px solid rgba(205, 185, 142, 0.62) !important;
        border-radius: 12px !important;
    }

    .corporate-products-table tbody td[data-label="d"]::before,
    .corporate-products-table tbody td[data-label="D"]::before,
    .corporate-products-table tbody td[data-label="B"]::before,
    .corporate-products-table tbody td[data-label="C"]::before {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .table-wrapper table tbody td,
    .corporate-products-wrapper table tbody td,
    .table-responsive table tbody td,
    .table > :not(caption) > * > * {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        text-align: left !important;
    }

    .table-wrapper table tbody td::before,
    .corporate-products-wrapper table tbody td::before,
    .table-responsive table tbody td::before {
        min-width: 0;
        max-width: 100%;
    }

    .corporate-products-table tbody td[data-label="d"],
    .corporate-products-table tbody td[data-label="D"],
    .corporate-products-table tbody td[data-label="B"],
    .corporate-products-table tbody td[data-label="C"] {
        width: 100% !important;
        margin: 0 0 6px 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: right !important;
    }
}


/* ==========================================================
   26. SWEETALERT2 PREMIUM
========================================================== */

.swal2-popup.swal-kamees-loading,
.swal2-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(205, 185, 142, 0.78) !important;
    box-shadow: 0 22px 54px rgba(7, 17, 13, 0.28) !important;
}

.swal2-title {
    color: #07110d !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
}

.swal2-html-container,
.swal2-text {
    color: #6f675b !important;
    font-weight: 650 !important;
}

.swal2-loader {
    border-color: #c99a35 transparent #125c3e transparent !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(7, 17, 13, 0.16) !important;
}

.swal2-cancel {
    border-radius: 999px !important;
    font-weight: 900 !important;
}

@media (max-width: 480px) {
    .swal2-popup {
        width: calc(100% - 24px) !important;
        padding: 1.1rem !important;
    }

    .swal2-title {
        font-size: 1.05rem !important;
    }

    .swal2-html-container {
        font-size: 0.86rem !important;
    }
}


/* ==========================================================
   LOGIN PREMIUM - CONTROL DE PRODUCTOS / KAMEES SARAKI
   Pegar al final de dashboard.css
========================================================== */

body.login-page {
    min-height: 100vh;
    margin: 0;
    color: #111c16;
    background:
        radial-gradient(circle at top left, rgba(241, 210, 122, 0.34), transparent 31%),
        radial-gradient(circle at bottom right, rgba(18, 92, 62, 0.22), transparent 36%),
        linear-gradient(135deg, #07110d 0%, #0b2e21 38%, #f7f1e6 39%, #fbf8ef 100%);
    overflow-x: hidden;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 1040px);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(205, 185, 142, 0.74);
    border-radius: 30px;
    box-shadow:
        0 26px 65px rgba(7, 17, 13, 0.34),
        inset 0 1px 0 rgba(255, 248, 232, 0.55);
}

/* ==============================
   LADO MARCA
============================== */

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 38px;
    color: #fff8e8;
    background:
        radial-gradient(circle at 25% 18%, rgba(241, 210, 122, 0.24), transparent 34%),
        linear-gradient(145deg, #07110d 0%, #0b2e21 52%, #125c3e 100%);
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -95px;
    top: -80px;
    background: rgba(241, 210, 122, 0.16);
    border-radius: 50%;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -58px;
    background: rgba(255, 248, 232, 0.08);
    border-radius: 50%;
}

.login-brand > * {
    position: relative;
    z-index: 1;
}

.login-brand .brand-icon {
    width: 78px;
    height: 78px;
    min-width: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #07110d;
    background: linear-gradient(135deg, #fff4d6 0%, #f1d27a 48%, #c99a35 100%);
    border: 1px solid rgba(255, 248, 232, 0.35);
    border-radius: 24px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        0 0 0 8px rgba(255, 248, 232, 0.06);
    font-size: 2rem;
}

.login-brand h1 {
    margin: 0;
    max-width: 390px;
    color: #fff8e8;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.login-brand p {
    max-width: 430px;
    margin: 14px 0 24px;
    color: rgba(255, 248, 232, 0.80);
    font-size: 0.98rem;
    line-height: 1.55;
}

.login-feature {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
    padding: 9px 12px;
    color: rgba(255, 248, 232, 0.92);
    background: rgba(255, 244, 214, 0.10);
    border: 1px solid rgba(241, 210, 122, 0.22);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.login-feature i {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #07110d;
    background: linear-gradient(135deg, #fff4d6, #f1d27a);
    border-radius: 50%;
    font-size: 0.72rem;
}

/* ==============================
   LADO FORMULARIO
============================== */

.login-form-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 46px;
    background:
        radial-gradient(circle at top right, rgba(241, 210, 122, 0.20), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fffcf4 100%);
}

.login-form-area h2 {
    margin: 0;
    color: #07110d;
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.login-form-area > p {
    margin: 7px 0 28px;
    color: #6f675b;
    font-size: 0.95rem;
    line-height: 1.45;
}

.login-form-area form {
    width: 100%;
}

.login-form-area .form-label {
    margin-bottom: 7px;
    color: #07110d;
    font-size: 0.80rem;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.input-group-modern {
    min-height: 48px;
    border-radius: 16px;
    box-shadow: 0 9px 22px rgba(7, 17, 13, 0.06);
}

.input-group-modern .input-group-text {
    min-width: 48px;
    justify-content: center;
    color: #8a6a26;
    background: #fff8e8;
    border: 1px solid rgba(205, 185, 142, 0.78);
    border-right: 0;
    border-radius: 16px 0 0 16px;
}

.input-group-modern .form-control {
    min-height: 48px;
    color: #111c16;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.78);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: none;
}

.input-group-modern .form-control::placeholder {
    color: #a79b87;
    font-weight: 600;
}

.input-group-modern:focus-within {
    box-shadow:
        0 0 0 0.22rem rgba(201, 154, 53, 0.16),
        0 12px 24px rgba(7, 17, 13, 0.09);
}

.input-group-modern:focus-within .input-group-text,
.input-group-modern:focus-within .form-control {
    border-color: #c99a35;
}

.input-group-modern:focus-within .input-group-text {
    color: #07110d;
    background: linear-gradient(135deg, #fff4d6, #f1d27a);
}

.btn-login {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    color: #fff8e8 !important;
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 48%, #125c3e 100%) !important;
    border: 1px solid rgba(241, 210, 122, 0.25) !important;
    border-radius: 999px;
    box-shadow:
        0 14px 30px rgba(7, 17, 13, 0.22),
        inset 0 1px 0 rgba(255, 248, 232, 0.12);
    font-size: 0.96rem;
    font-weight: 950;
    letter-spacing: 0.01em;
    transition: 0.18s ease;
}

.btn-login:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0a241a 0%, #125c3e 100%) !important;
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px rgba(7, 17, 13, 0.28),
        inset 0 1px 0 rgba(255, 248, 232, 0.12);
}

.btn-login:active {
    transform: translateY(0);
}

/* ==============================
   SWEETALERT LOGIN
============================== */

.swal2-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(205, 185, 142, 0.78) !important;
    box-shadow: 0 22px 54px rgba(7, 17, 13, 0.28) !important;
}

.swal2-title {
    color: #07110d !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
}

.swal2-html-container {
    color: #6f675b !important;
    font-weight: 650 !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 48%, #125c3e 100%) !important;
    font-weight: 900 !important;
}

/* ==========================================================
   RESPONSIVE LOGIN
========================================================== */

@media (max-width: 992px) {
    body.login-page {
        background:
            radial-gradient(circle at top left, rgba(241, 210, 122, 0.34), transparent 32%),
            linear-gradient(160deg, #07110d 0%, #0b2e21 34%, #f7f1e6 35%, #fbf8ef 100%);
    }

    .login-wrapper {
        align-items: flex-start;
        padding: 18px;
    }

    .login-card {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .login-brand {
        min-height: auto;
        padding: 32px 28px;
    }

    .login-brand .brand-icon {
        width: 66px;
        height: 66px;
        min-width: 66px;
        border-radius: 20px;
        font-size: 1.55rem;
    }

    .login-brand p {
        margin-bottom: 18px;
    }

    .login-form-area {
        padding: 34px 28px;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        min-height: 100vh;
        padding: 10px;
    }

    .login-card {
        width: 100%;
        border-radius: 22px;
    }

    .login-brand {
        padding: 26px 20px;
    }

    .login-brand .brand-icon {
        width: 58px;
        height: 58px;
        min-width: 58px;
        margin-bottom: 14px;
        border-radius: 18px;
        font-size: 1.35rem;
    }

    .login-brand h1 {
        font-size: 1.65rem;
        letter-spacing: -0.045em;
    }

    .login-brand p {
        margin: 10px 0 15px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .login-feature {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.76rem;
        border-radius: 14px;
    }

    .login-form-area {
        padding: 26px 20px 22px;
    }

    .login-form-area h2 {
        font-size: 1.35rem;
    }

    .login-form-area > p {
        margin-bottom: 20px;
        font-size: 0.84rem;
    }

    .login-form-area .mb-3 {
        margin-bottom: 0.85rem !important;
    }

    .login-form-area .mb-4 {
        margin-bottom: 1.15rem !important;
    }

    .input-group-modern,
    .input-group-modern .form-control {
        min-height: 45px;
    }

    .input-group-modern .input-group-text {
        min-width: 45px;
    }

    .input-group-modern .form-control {
        font-size: 0.86rem;
    }

    .btn-login {
        min-height: 47px;
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .login-brand {
        padding: 22px 16px;
    }

    .login-form-area {
        padding: 22px 16px 18px;
    }

    .login-brand h1 {
        font-size: 1.45rem;
    }

    .login-feature {
        align-items: flex-start;
    }
}

/* ==========================================================
   NIP PREMIUM - VERIFICACIÓN DE ACCESO
   Pegar al final de dashboard.css
========================================================== */

body.nip-page {
    min-height: 100vh;
    margin: 0;
    color: #111c16;
    background:
        radial-gradient(circle at top left, rgba(241, 210, 122, 0.34), transparent 31%),
        radial-gradient(circle at bottom right, rgba(18, 92, 62, 0.24), transparent 36%),
        linear-gradient(135deg, #07110d 0%, #0b2e21 38%, #f7f1e6 39%, #fbf8ef 100%);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ==============================
   CARD PRINCIPAL
============================== */

.nip-card {
    width: min(100%, 520px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(205, 185, 142, 0.76);
    border-radius: 30px;
    box-shadow:
        0 26px 65px rgba(7, 17, 13, 0.34),
        inset 0 1px 0 rgba(255, 248, 232, 0.55);
}

/* ==============================
   HEADER NIP
============================== */

.nip-header {
    position: relative;
    padding: 38px 34px 34px;
    text-align: center;
    color: #fff8e8;
    background:
        radial-gradient(circle at 25% 16%, rgba(241, 210, 122, 0.24), transparent 35%),
        linear-gradient(145deg, #07110d 0%, #0b2e21 54%, #125c3e 100%);
    overflow: hidden;
}

.nip-header::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -82px;
    top: -78px;
    background: rgba(241, 210, 122, 0.16);
    border-radius: 50%;
}

.nip-header::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -60px;
    bottom: -52px;
    background: rgba(255, 248, 232, 0.08);
    border-radius: 50%;
}

.nip-header > * {
    position: relative;
    z-index: 1;
}

.nip-icon {
    width: 82px;
    height: 82px;
    min-width: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #07110d;
    background: linear-gradient(135deg, #fff4d6 0%, #f1d27a 48%, #c99a35 100%);
    border: 1px solid rgba(255, 248, 232, 0.35);
    border-radius: 26px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        0 0 0 8px rgba(255, 248, 232, 0.06);
    font-size: 2.1rem;
}

.nip-header h1 {
    margin: 0;
    color: #fff8e8;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.nip-header p {
    max-width: 360px;
    margin: 10px auto 0;
    color: rgba(255, 248, 232, 0.82);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* ==============================
   CUERPO NIP
============================== */

.nip-body {
    padding: 36px 38px 34px;
    background:
        radial-gradient(circle at top right, rgba(241, 210, 122, 0.20), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fffcf4 100%);
}

.nip-body h5 {
    color: #07110d;
    font-size: 1.08rem;
    font-weight: 950 !important;
    letter-spacing: -0.02em;
}

.nip-body .text-muted {
    color: #6f675b !important;
}

.nip-body strong {
    color: #07110d;
    font-weight: 950;
}

.nip-body small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 6px 11px;
    color: #8a6a26 !important;
    background: #fff8e8;
    border: 1px solid rgba(205, 185, 142, 0.70);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

/* ==============================
   FORMULARIO NIP
============================== */

.nip-body .form-label {
    display: block;
    margin-bottom: 8px;
    color: #07110d;
    font-size: 0.80rem;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.nip-input {
    min-height: 62px;
    color: #07110d;
    background: #ffffff;
    border: 1px solid rgba(205, 185, 142, 0.82);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(7, 17, 13, 0.07);
    font-size: clamp(1.7rem, 5vw, 2.35rem);
    font-weight: 950;
    text-align: center;
    letter-spacing: 0.34em;
    padding-left: 0.34em;
    transition: 0.18s ease;
}

.nip-input::placeholder {
    color: rgba(167, 155, 135, 0.55);
    font-weight: 800;
}

.nip-input:focus {
    background: #ffffff;
    border-color: #c99a35;
    box-shadow:
        0 0 0 0.24rem rgba(201, 154, 53, 0.18),
        0 14px 28px rgba(7, 17, 13, 0.10);
}

/* ==============================
   BOTÓN VALIDAR
============================== */

#btnValidarNip.btn-login,
.btn-login {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff8e8 !important;
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 48%, #125c3e 100%) !important;
    border: 1px solid rgba(241, 210, 122, 0.25) !important;
    border-radius: 999px;
    box-shadow:
        0 14px 30px rgba(7, 17, 13, 0.22),
        inset 0 1px 0 rgba(255, 248, 232, 0.12);
    font-size: 0.96rem;
    font-weight: 950;
    letter-spacing: 0.01em;
    transition: 0.18s ease;
}

#btnValidarNip.btn-login:hover,
.btn-login:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0a241a 0%, #125c3e 100%) !important;
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px rgba(7, 17, 13, 0.28),
        inset 0 1px 0 rgba(255, 248, 232, 0.12);
}

/* ==============================
   REENVIAR / CANCELAR
============================== */

#formReenviarNip {
    padding-top: 4px;
}

#btnReenviarNip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 16px;
    color: #0b2e21 !important;
    background: #fff8e8;
    border: 1px solid rgba(205, 185, 142, 0.78);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 950 !important;
    transition: 0.18s ease;
}

#btnReenviarNip:hover {
    color: #07110d !important;
    background: linear-gradient(135deg, #fff4d6 0%, #f1d27a 100%);
    border-color: #c99a35;
    transform: translateY(-1px);
}

.nip-body a[href*="logout"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6f675b !important;
    font-size: 0.84rem;
    font-weight: 800;
    transition: 0.18s ease;
}

.nip-body a[href*="logout"]:hover {
    color: #a8281c !important;
}

/* ==============================
   SWEETALERT NIP
============================== */

.swal2-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(205, 185, 142, 0.78) !important;
    box-shadow: 0 22px 54px rgba(7, 17, 13, 0.28) !important;
}

.swal2-title {
    color: #07110d !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
}

.swal2-html-container {
    color: #6f675b !important;
    font-weight: 650 !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #07110d 0%, #0b2e21 48%, #125c3e 100%) !important;
    font-weight: 900 !important;
}

/* ==========================================================
   RESPONSIVE NIP
========================================================== */

@media (max-width: 768px) {
    body.nip-page {
        align-items: flex-start;
        padding: 16px;
        background:
            radial-gradient(circle at top left, rgba(241, 210, 122, 0.34), transparent 32%),
            linear-gradient(160deg, #07110d 0%, #0b2e21 34%, #f7f1e6 35%, #fbf8ef 100%);
    }

    .nip-card {
        width: 100%;
        border-radius: 26px;
    }

    .nip-header {
        padding: 32px 26px 28px;
    }

    .nip-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin-bottom: 15px;
        border-radius: 22px;
        font-size: 1.65rem;
    }

    .nip-body {
        padding: 30px 26px 28px;
    }

    .nip-input {
        min-height: 58px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    body.nip-page {
        padding: 10px;
    }

    .nip-card {
        border-radius: 22px;
    }

    .nip-header {
        padding: 28px 20px 24px;
    }

    .nip-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 19px;
        font-size: 1.4rem;
    }

    .nip-header h1 {
        font-size: 1.45rem;
    }

    .nip-header p {
        font-size: 0.84rem;
    }

    .nip-body {
        padding: 26px 20px 22px;
    }

    .nip-body h5 {
        font-size: 0.98rem;
    }

    .nip-body p,
    .nip-body small {
        font-size: 0.76rem;
    }

    .nip-body .mb-4 {
        margin-bottom: 1.15rem !important;
    }

    .nip-input {
        min-height: 54px;
        border-radius: 16px;
        font-size: 1.65rem;
        letter-spacing: 0.24em;
        padding-left: 0.24em;
    }

    #btnValidarNip.btn-login,
    .btn-login {
        min-height: 47px;
        font-size: 0.88rem;
    }

    #btnReenviarNip {
        width: 100%;
        min-height: 42px;
        font-size: 0.82rem;
    }
}

@media (max-width: 380px) {
    .nip-header {
        padding: 24px 16px 22px;
    }

    .nip-body {
        padding: 22px 16px 18px;
    }

    .nip-header h1 {
        font-size: 1.30rem;
    }

    .nip-input {
        font-size: 1.45rem;
        letter-spacing: 0.20em;
        padding-left: 0.20em;
    }
}

/* ==========================================================
   AJUSTE FINAL MIGUEL - CAMPO T + HOME LOGO IZQUIERDO + 3D
   Mantiene el diseño verde/dorado original sin prefijos webkit.
========================================================== */

:root {
    --ks-depth-1: 0 10px 22px rgba(7, 17, 13, 0.12);
    --ks-depth-2: 0 18px 42px rgba(7, 17, 13, 0.18);
    --ks-depth-3: 0 28px 68px rgba(7, 17, 13, 0.26);
    --ks-inner-light: inset 0 1px 0 rgba(255, 248, 232, 0.48);
    --ks-inner-dark: inset 0 -16px 34px rgba(7, 17, 13, 0.06);
    --row-selected: #fff0bf;
    --row-selected-border: #c99a35;
}

@keyframes ksSoftFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes ksFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ksGoldGlow {
    0%, 100% { box-shadow: 0 14px 34px rgba(7, 17, 13, 0.16), 0 0 0 rgba(201, 154, 53, 0); }
    50% { box-shadow: 0 20px 46px rgba(7, 17, 13, 0.20), 0 0 22px rgba(201, 154, 53, 0.18); }
}

.app-header,
.side-menu,
.mobile-menu,
.corporate-home-panel,
.corporate-module-panel,
.corporate-import-card,
.corporate-form-card,
.corporate-photo-card,
.capture-pro-card,
.corporate-search-table-card,
.corporate-preview-card,
.designer-medidas-panel,
.designer-users-panel,
.designer-users-list,
.designer-user-form,
.permisos-box,
.importacion-box-pro {
    box-shadow: var(--ks-depth-2), var(--ks-inner-light), var(--ks-inner-dark);
    transform-style: preserve-3d;
}

.corporate-home-panel,
.corporate-module-panel,
.designer-medidas-panel,
.designer-users-panel {
    animation: ksFadeUp 0.35s ease both;
}

.corporate-home-header {
    min-height: 86px;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 10px;
    background:
        radial-gradient(circle at top right, rgba(241, 210, 122, 0.22), transparent 38%),
        linear-gradient(135deg, #07110d 0%, #0b2e21 46%, #125c3e 100%);
    box-shadow:
        var(--ks-depth-2),
        inset 0 1px 0 rgba(255, 248, 232, 0.15),
        inset 0 -22px 48px rgba(0, 0, 0, 0.12);
}

.corporate-home-header .designer-eyebrow {
    color: #f1d27a;
}

.corporate-home-header h2 {
    font-size: clamp(1.18rem, 1.9vw, 1.72rem);
}

.corporate-home-header p {
    max-width: 980px;
    font-size: 0.84rem;
}

.corporate-home-grid {
    grid-template-columns: minmax(340px, 0.95fr) minmax(0, 0.86fr);
    gap: 12px;
    align-items: stretch;
}

.corporate-logo-card {
    order: 1;
    min-height: 310px;
    padding: 14px;
    background:
        radial-gradient(circle at 35% 34%, rgba(241, 210, 122, 0.36), transparent 32%),
        radial-gradient(circle at 72% 70%, rgba(18, 92, 62, 0.24), transparent 34%),
        linear-gradient(145deg, #07110d 0%, #102219 43%, #f7f1e6 44%, #ffffff 100%);
    box-shadow:
        var(--ks-depth-3),
        inset 0 1px 0 rgba(255, 248, 232, 0.30),
        inset 0 -22px 42px rgba(7, 17, 13, 0.12);
    transform: perspective(900px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.corporate-logo-card:hover {
    transform: perspective(900px) translateY(-3px) rotateX(1deg) rotateY(-1deg);
    box-shadow:
        0 34px 78px rgba(7, 17, 13, 0.30),
        inset 0 1px 0 rgba(255, 248, 232, 0.35);
}

.designer-logo-img {
    width: min(100%, 620px);
    max-height: 310px;
    animation: ksSoftFloat 5.8s ease-in-out infinite;
}

.corporate-home-info {
    order: 2;
    padding: 13px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 252, 244, 0.98) 100%);
    box-shadow:
        var(--ks-depth-2),
        inset 0 1px 0 rgba(255, 255, 255, 0.80),
        inset 0 -18px 34px rgba(201, 154, 53, 0.08);
    transform: perspective(900px) translateZ(0);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.corporate-home-info:hover,
.kpi-card:hover,
.corporate-import-card:hover,
.corporate-search-table-card:hover,
.corporate-preview-card:hover,
.corporate-photo-card:hover,
.capture-pro-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ks-depth-3), var(--ks-inner-light);
}

.corporate-home-info h3 {
    font-size: clamp(1.02rem, 1.35vw, 1.26rem);
}

.corporate-home-info p {
    font-size: 0.78rem;
    line-height: 1.24;
}

.kpi-grid,
.designer-kpi-grid {
    gap: 8px;
    margin-top: 8px;
}

.kpi-card {
    min-height: 58px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fff8e8 100%);
    border-color: rgba(201, 154, 53, 0.30);
    box-shadow:
        0 10px 22px rgba(7, 17, 13, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.kpi-card:hover {
    border-color: rgba(201, 154, 53, 0.58);
    animation: ksGoldGlow 1.8s ease infinite;
}

.kpi-icon,
.brand-icon {
    box-shadow:
        0 11px 22px rgba(201, 154, 53, 0.28),
        inset 0 1px 0 rgba(255, 248, 232, 0.55),
        inset 0 -10px 18px rgba(169, 119, 31, 0.18);
}

.corporate-import-card {
    margin-top: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,252,244,0.98) 100%);
}

.btn,
.menu-option,
.mobile-option,
.capture-result-item,
.gallery-item,
.form-control,
.form-select {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.btn:not(:disabled):hover,
.menu-option:hover,
.mobile-option:hover,
.capture-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(7, 17, 13, 0.16);
}

.form-control:focus,
.form-select:focus {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 0.20rem rgba(201, 154, 53, 0.18),
        0 10px 22px rgba(7, 17, 13, 0.08);
}

.corporate-products-wrapper,
.table-wrapper {
    box-shadow:
        0 12px 26px rgba(7, 17, 13, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.corporate-products-table {
    min-width: 860px;
}

.corporate-products-table .col-fam {
    width: 80px;
}

.corporate-products-table .col-desc,
.corporate-products-table .col-desc-wide {
    width: 360px;
}

.corporate-products-table .col-dni {
    width: 95px;
}

.corporate-products-table .col-measure,
.corporate-products-table .col-t {
    width: 62px;
    text-align: center;
}

.corporate-products-table .col-action {
    width: 88px;
}

.table thead th,
.table-products thead th,
.corporate-products-table thead th {
    z-index: 6;
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 232, 0.16),
        0 8px 18px rgba(7, 17, 13, 0.16);
}

.product-row-selectable,
#tbodyProductos tr[data-producto-id] {
    cursor: pointer;
}

.product-row-selectable:hover > td,
#tbodyProductos tr[data-producto-id]:hover > td {
    background: #fff8e8 !important;
}

.product-row-selectable.is-selected > td,
#tbodyProductos tr.is-selected > td {
    color: #241706 !important;
    background: linear-gradient(180deg, #fff4d6 0%, var(--row-selected) 100%) !important;
    border-top: 1px solid rgba(201, 154, 53, 0.48) !important;
    border-bottom: 1px solid rgba(201, 154, 53, 0.48) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.product-row-selectable.is-selected > td:first-child,
#tbodyProductos tr.is-selected > td:first-child {
    border-left: 5px solid var(--row-selected-border) !important;
}

.search-help,
.esc-help,
#lblResumenProductos small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #8a6a26;
    font-size: 0.68rem;
    font-weight: 850;
}

.preview-measures,
.corporate-measures {
    grid-template-columns: repeat(5, 1fr);
}

@media (min-width: 993px) {
    .corporate-home-panel {
        min-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
    }

    .corporate-home-grid {
        flex: 1 1 auto;
    }

    .corporate-import-card {
        flex: 0 0 auto;
    }
}

@media (max-width: 1320px) {
    .corporate-home-grid {
        grid-template-columns: minmax(300px, 0.92fr) minmax(0, 0.88fr);
    }

    .designer-logo-img {
        width: min(100%, 560px);
    }

    .corporate-products-table .col-desc,
    .corporate-products-table .col-desc-wide {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .corporate-home-grid {
        grid-template-columns: 1fr;
    }

    .corporate-logo-card {
        order: 1;
        min-height: 260px;
    }

    .corporate-home-info {
        order: 2;
    }

    .designer-logo-img {
        width: min(100%, 480px);
        max-height: 255px;
    }

    .corporate-home-header {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .corporate-home-header {
        padding: 12px;
        margin-bottom: 9px;
    }

    .corporate-logo-card {
        min-height: 235px;
    }

    .designer-logo-img {
        width: min(100%, 410px);
        max-height: 230px;
    }

    .preview-measures,
    .corporate-measures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-wrapper table tbody tr,
    .corporate-products-wrapper table tbody tr,
    .table-responsive table tbody tr {
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .table-wrapper table tbody tr:hover,
    .corporate-products-wrapper table tbody tr:hover,
    .table-responsive table tbody tr:hover,
    .table-wrapper table tbody tr.is-selected,
    .corporate-products-wrapper table tbody tr.is-selected,
    .table-responsive table tbody tr.is-selected {
        transform: translateY(-2px);
        border-color: rgba(201, 154, 53, 0.78) !important;
        box-shadow: 0 16px 32px rgba(7, 17, 13, 0.15) !important;
    }

    .corporate-products-table tbody td[data-label="d"],
    .corporate-products-table tbody td[data-label="D"],
    .corporate-products-table tbody td[data-label="B"],
    .corporate-products-table tbody td[data-label="C"],
    .corporate-products-table tbody td[data-label="T"] {
        display: inline-flex !important;
        width: calc(50% - 4px) !important;
        margin: 0 2px 6px !important;
        padding: 8px 10px !important;
        background: #fff8e8 !important;
        border: 1px solid rgba(205, 185, 142, 0.62) !important;
        border-radius: 12px !important;
    }

    .corporate-products-table tbody td[data-label="d"]::before,
    .corporate-products-table tbody td[data-label="D"]::before,
    .corporate-products-table tbody td[data-label="B"]::before,
    .corporate-products-table tbody td[data-label="C"]::before,
    .corporate-products-table tbody td[data-label="T"]::before {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .corporate-products-table tbody td[data-label="d"],
    .corporate-products-table tbody td[data-label="D"],
    .corporate-products-table tbody td[data-label="B"],
    .corporate-products-table tbody td[data-label="C"],
    .corporate-products-table tbody td[data-label="T"] {
        width: 100% !important;
        margin: 0 0 6px 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: right !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================
   TIP DE TECLADO - BUSQUEDA PRODUCTOS
   Mantiene el texto en una sola barra profesional
========================================================== */

.keyboard-tip-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 12px;
    color: #111c16;
    background:
        linear-gradient(180deg, #ffffff 0%, #fffcf4 100%);
    border: 1px solid rgba(205, 185, 142, 0.78);
    border-radius: 15px;
    box-shadow:
        0 10px 22px rgba(7, 17, 13, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    line-height: 1.35;
}

.keyboard-tip-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #07110d;
    background:
        linear-gradient(135deg, #fff4d6 0%, #f1d27a 52%, #c99a35 100%);
    border: 1px solid rgba(201, 154, 53, 0.45);
    border-radius: 12px;
    box-shadow:
        0 8px 16px rgba(201, 154, 53, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.keyboard-tip-text {
    flex: 1;
    min-width: 0;
    color: #4f4a40;
    font-weight: 750;
}

.keyboard-tip-text strong {
    color: #07110d;
    font-weight: 950;
}

.keyboard-tip-text kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    margin: 0 2px;
    padding: 2px 7px;
    color: #fff8e8;
    background:
        linear-gradient(135deg, #07110d 0%, #0b2e21 55%, #125c3e 100%);
    border: 1px solid rgba(241, 210, 122, 0.35);
    border-radius: 8px;
    box-shadow:
        0 3px 0 rgba(7, 17, 13, 0.28),
        0 7px 14px rgba(7, 17, 13, 0.12);
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1;
}

/* Si el tip quedó dentro del área de búsqueda, que ocupe todo el ancho */
.corporate-search-table-card .keyboard-tip-box,
.corporate-search-panel .keyboard-tip-box,
.corporate-filter-bar .keyboard-tip-box {
    grid-column: 1 / -1;
}

/* Si todavía tienes un texto viejo dentro de corporate-search-summary,
   esto ayuda a que no se vea angosto */
.corporate-search-summary {
    width: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .keyboard-tip-box {
        align-items: flex-start;
        padding: 10px;
        font-size: 0.74rem;
    }

    .keyboard-tip-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .keyboard-tip-text {
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .keyboard-tip-box {
        gap: 8px;
    }

    .keyboard-tip-text kbd {
        min-width: 24px;
        height: 20px;
        padding: 2px 6px;
        font-size: 0.64rem;
    }
}

/* ==========================================================
   LOGO HOME - ABARCAR TODO EL RECUADRO
========================================================== */

.corporate-logo-card {
    padding: 0 !important;
    min-height: 360px;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #07110d;
    border-radius: 18px;
    overflow: hidden;
}

.corporate-logo-card .designer-logo-img,
.designer-logo-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: contein;
    object-position: center center;
    border-radius: 18px;
    filter:
        drop-shadow(0 18px 28px rgba(7, 17, 13, 0.28));
}

/* ==========================================================
   FIX ORDEN Y ACOMODO FILTROS - MÓDULO BUSCAR
   Orden esperado:
   FAM | DNI | Búsqueda General | d | D | B | C | T | Botones
   Pegar al final de dashboard.css
========================================================== */

.corporate-filter-bar {
    display: grid !important;
    grid-template-columns:
        minmax(85px, 0.55fr)      /* FAM */
        minmax(105px, 0.65fr)     /* DNI */
        minmax(240px, 1.5fr)      /* Búsqueda General */
        repeat(5, minmax(78px, 0.45fr)) /* d, D, B, C, T */
        auto;                     /* Botones */
    gap: 8px !important;
    align-items: end !important;
}

/* Mantiene cada filtro compacto y alineado */
.corporate-filter-field {
    min-width: 0 !important;
}

/* FAM */
.corporate-filter-field.filter-fam {
    grid-column: auto !important;
}

/* Búsqueda General más ancha */
.corporate-filter-field.filter-general {
    min-width: 240px !important;
}

/* Medidas compactas */
.corporate-filter-field.filter-measure {
    min-width: 72px !important;
}

/* Inputs uniformes */
.corporate-filter-bar .form-control {
    width: 100% !important;
    min-height: 38px !important;
}

/* Botones alineados a la derecha */
.corporate-filter-actions {
    display: flex !important;
    align-items: end !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.corporate-filter-actions .btn {
    min-height: 38px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
}

/* ==========================================================
   RESPONSIVE - LAPTOP / TABLET
========================================================== */

@media (max-width: 1320px) {
    .corporate-filter-bar {
        grid-template-columns:
            minmax(90px, 1fr)
            minmax(110px, 1fr)
            minmax(220px, 2fr)
            repeat(5, minmax(82px, 1fr)) !important;
    }

    .corporate-filter-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-end !important;
    }
}

@media (max-width: 992px) {
    .corporate-filter-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .corporate-filter-field.filter-general {
        grid-column: span 2 !important;
        min-width: 0 !important;
    }

    .corporate-filter-actions {
        grid-column: span 4 !important;
        justify-content: flex-end !important;
    }
}

/* ==========================================================
   RESPONSIVE - CELULAR
========================================================== */

@media (max-width: 768px) {
    .corporate-filter-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .corporate-filter-field.filter-general {
        grid-column: 1 / -1 !important;
    }

    .corporate-filter-actions {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .corporate-filter-actions .btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .corporate-filter-bar {
        grid-template-columns: 1fr !important;
    }

    .corporate-filter-field.filter-general,
    .corporate-filter-actions {
        grid-column: auto !important;
    }

    .corporate-filter-actions {
        grid-template-columns: 1fr !important;
    }
}