/* ==========================================================
   GAR Data Center - CSS Global DEV
   Basado en identidad Little Caesars
   Colores principales:
   Orange: #FF671B
   Black:  #000000
   White:  #FFFFFF
   ========================================================== */

   /* ==========================================================
   Fuentes locales
   ========================================================== */

/* ==========================================================
   Fuentes locales - GAR Data Center
   ========================================================== */

/* MONTSERRAT */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ROBOTO */

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* OSWALD */

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------------
   1. Variables globales
   ---------------------------------------------------------- */

:root {
    /* Brand colors */
    --lc-orange: #FF671B;
    --lc-black: #000000;
    --lc-white: #FFFFFF;
    --lc-gray-border: #D9D9D9;
    --lc-gray-text: #E6E6E6;

    /* Variantes usando solo transparencia de los colores base */
    --lc-orange-90: rgba(255, 103, 27, 0.90);
    --lc-orange-75: rgba(255, 103, 27, 0.75);
    --lc-orange-50: rgba(255, 103, 27, 0.50);
    --lc-orange-20: rgba(255, 103, 27, 0.20);
    --lc-orange-10: rgba(255, 103, 27, 0.10);
    --lc-orange-06: rgba(255, 103, 27, 0.06);

    --lc-black-90: rgba(0, 0, 0, 0.90);
    --lc-black-75: rgba(0, 0, 0, 0.75);
    --lc-black-60: rgba(0, 0, 0, 0.60);
    --lc-black-40: rgba(0, 0, 0, 0.40);
    --lc-black-20: rgba(0, 0, 0, 0.20);
    --lc-black-10: rgba(0, 0, 0, 0.10);
    --lc-black-06: rgba(0, 0, 0, 0.06);

    /* Fondos */
    --lc-bg-page: var(--lc-white);
    --lc-bg-soft: var(--lc-orange-06);
    --lc-bg-card: var(--lc-white);

    /* Texto */
    --lc-text-main: var(--lc-black);
    --lc-text-muted: var(--lc-black-60);
    --lc-text-inverted: var(--lc-white);

    /* Bordes y sombras */
    --lc-border: var(--lc-black-10);
    --lc-border-strong: var(--lc-black);
    --lc-focus: var(--lc-orange);

    --lc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --lc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --lc-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.16);

    /* Radios */
    --lc-radius-sm: 6px;
    --lc-radius-md: 10px;
    --lc-radius-lg: 16px;
    --lc-radius-xl: 24px;
    --lc-radius-pill: 999px;

    /* Espaciados */
    --lc-space-1: 4px;
    --lc-space-2: 8px;
    --lc-space-3: 12px;
    --lc-space-4: 16px;
    --lc-space-5: 20px;
    --lc-space-6: 24px;
    --lc-space-8: 32px;
    --lc-space-10: 40px;
    --lc-space-12: 48px;

    /* Tipografías */
    --lc-font-heading: "Montserrat", Arial, sans-serif;
    --lc-font-body: "Roboto", Arial, sans-serif;
    --lc-font-accent: "Oswald", "Arial Narrow", Arial, sans-serif;

    /* Tamaños base */
    --lc-font-size-xs: 12px;
    --lc-font-size-sm: 14px;
    --lc-font-size-md: 16px;
    --lc-font-size-lg: 18px;
    --lc-font-size-xl: 24px;
    --lc-font-size-2xl: 32px;
    --lc-font-size-3xl: 42px;
}

/* ----------------------------------------------------------
   2. Reset base
   ---------------------------------------------------------- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--lc-font-body);
    background: var(--lc-bg-page);
    color: var(--lc-text-main);
    line-height: 1.5;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

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

/* ----------------------------------------------------------
   3. Tipografía global
   ---------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.lc-heading {
    font-family: var(--lc-font-heading);
    color: var(--lc-black);
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin: 0 0 var(--lc-space-4);
}

h1 {
    font-size: clamp(38px, 5vw, 64px);
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
}

h3 {
    font-size: clamp(24px, 3vw, 34px);
}

h4 {
    font-size: 22px;
}

p {
    margin: 0 0 var(--lc-space-4);
    color: var(--lc-text-main);
}

small,
.lc-small {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-muted);
}

a {
    color: var(--lc-black);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--lc-orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--lc-orange);
}

/* Usar LC Script solo como acento decorativo corto */
.lc-accent {
    font-family: var(--lc-font-accent);
    color: var(--lc-black);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ----------------------------------------------------------
   4. Layout base
   ---------------------------------------------------------- */

.lc-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, var(--lc-orange-06), transparent 280px),
        var(--lc-white);
}

.lc-container,
.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.lc-main {
    padding: var(--lc-space-10) 0;
}

.lc-section {
    margin-bottom: var(--lc-space-10);
}

.lc-section-header {
    margin-bottom: var(--lc-space-6);
}

.lc-section-title {
    color: var(--lc-orange);
}

.lc-section-subtitle {
    max-width: 720px;
    color: var(--lc-text-muted);
    font-size: var(--lc-font-size-lg);
}

/* ----------------------------------------------------------
   5. Header / barras principales
   ---------------------------------------------------------- */

.lc-topbar-title {
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-xl);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

/* ----------------------------------------------------------
   6. Cards / paneles
   ---------------------------------------------------------- */

.lc-card,
.card {
    background: var(--lc-bg-card);
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius-lg);
    box-shadow: var(--lc-shadow-sm);
    padding: var(--lc-space-6);
}

.lc-card:hover {
    box-shadow: var(--lc-shadow-md);
}

.lc-card-orange {
    background: var(--lc-orange);
    color: var(--lc-black);
    border-color: var(--lc-black);
}

.lc-card-black {
    background: var(--lc-black);
    color: var(--lc-white);
    border-color: var(--lc-black);
}

.lc-card-black h1,
.lc-card-black h2,
.lc-card-black h3,
.lc-card-black h4,
.lc-card-black p {
    color: var(--lc-white);
}

.lc-card-title {
    font-family: var(--lc-font-heading);
    text-transform: uppercase;
    font-size: var(--lc-font-size-xl);
    margin-bottom: var(--lc-space-3);
}

.lc-divider {
    border: 0;
    border-top: 2px solid var(--lc-border);
    margin: var(--lc-space-6) 0;
}

/* ----------------------------------------------------------
   7. Botones
   ---------------------------------------------------------- */

.btn,
.lc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lc-space-2);
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--lc-radius-pill);
    border: 2px solid transparent;
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-md);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease,
        color 0.12s ease,
        border-color 0.12s ease;
}

.btn:hover,
.lc-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--lc-shadow-sm);
}

.btn:active,
.lc-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary,
.lc-btn-primary {
    background: var(--lc-orange);
    color: var(--lc-black);
    border-color: var(--lc-orange);
}

.btn-primary:hover,
.lc-btn-primary:hover {
    background: var(--lc-black);
    color: var(--lc-white);
    border-color: var(--lc-black);
}

.btn-secondary,
.lc-btn-secondary {
    background: var(--lc-white);
    color: var(--lc-black);
    border-color: var(--lc-black);
}

.btn-secondary:hover,
.lc-btn-secondary:hover {
    background: var(--lc-black);
    color: var(--lc-white);
}

.btn-dark,
.lc-btn-dark {
    background: var(--lc-black);
    color: var(--lc-white);
    border-color: var(--lc-black);
}

.btn-dark:hover,
.lc-btn-dark:hover {
    background: var(--lc-orange);
    color: var(--lc-black);
    border-color: var(--lc-orange);
}

.btn-ghost,
.lc-btn-ghost {
    background: transparent;
    color: var(--lc-black);
    border-color: transparent;
}

.btn-ghost:hover,
.lc-btn-ghost:hover {
    background: var(--lc-orange-10);
    color: var(--lc-black);
}

.btn-sm,
.lc-btn-sm {
    min-height: 34px;
    padding: 7px 14px;
    font-size: var(--lc-font-size-sm);
}

.btn-lg,
.lc-btn-lg {
    min-height: 52px;
    padding: 14px 24px;
    font-size: var(--lc-font-size-lg);
}

button:disabled,
.btn:disabled,
.lc-btn:disabled,
.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ----------------------------------------------------------
   8. Formularios / inputs
   ---------------------------------------------------------- */

.lc-form {
    display: grid;
    gap: var(--lc-space-5);
}

.lc-form-row {
    display: grid;
    gap: var(--lc-space-4);
}

@media (min-width: 768px) {
    .lc-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lc-field {
    display: grid;
    gap: var(--lc-space-2);
}

label,
.lc-label {
    font-family: var(--lc-font-heading);
    text-transform: uppercase;
    font-size: var(--lc-font-size-sm);
    letter-spacing: 0.04em;
    color: var(--lc-black);
}

input,
select,
textarea,
.lc-input,
.lc-select,
.lc-textarea {
    width: 100%;
    min-height: 42px;
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius-md);
    background: var(--lc-white);
    color: var(--lc-black);
    padding: 10px 12px;
    outline: none;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease;
}

textarea,
.lc-textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--lc-black-40);
}

input:focus,
select:focus,
textarea:focus,
.lc-input:focus,
.lc-select:focus,
.lc-textarea:focus {
    border-color: var(--lc-orange);
    box-shadow: 0 0 0 4px var(--lc-orange-20);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--lc-black-06);
    color: var(--lc-black-40);
    cursor: not-allowed;
}

.lc-help-text {
    font-size: var(--lc-font-size-sm);
    color: var(--lc-text-muted);
}

.lc-field-error input,
.lc-field-error select,
.lc-field-error textarea {
    border-color: var(--lc-black);
    box-shadow: 0 0 0 4px var(--lc-orange-20);
}

.lc-error-text {
    font-size: var(--lc-font-size-sm);
    font-weight: 700;
    color: var(--lc-black);
}

/* Checkboxes y radios */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--lc-orange);
}

.lc-check {
    display: inline-flex;
    align-items: center;
    gap: var(--lc-space-2);
}

/* ----------------------------------------------------------
   9. Tablas
   ---------------------------------------------------------- */

.lc-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--lc-white);
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius-lg);
    box-shadow: var(--lc-shadow-sm);
}

table,
.lc-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--lc-black);
    background: var(--lc-white);
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--lc-border);
    vertical-align: middle;
}

th {
    background: var(--lc-orange);
    color: var(--lc-black);
    font-family: var(--lc-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--lc-font-size-sm);
    border-bottom: 2px solid var(--lc-black);
}

tbody tr:hover {
    background: var(--lc-orange-06);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.lc-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--lc-space-2);
}

.lc-table-empty {
    padding: var(--lc-space-8);
    text-align: center;
    color: var(--lc-text-muted);
}

/* ----------------------------------------------------------
   10. Badges / etiquetas / estados
   ---------------------------------------------------------- */

.badge,
.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--lc-space-2);
    min-height: 28px;
    padding: 6px 12px;
    border-radius: var(--lc-radius-pill);
    background: var(--lc-orange);
    color: var(--lc-black);
    border: 1px solid var(--lc-orange);
    font-family: var(--lc-font-heading);
    text-transform: uppercase;
    font-size: var(--lc-font-size-sm);
    letter-spacing: 0.04em;
}

.lc-badge-outline {
    background: var(--lc-white);
    color: var(--lc-black);
    border-color: var(--lc-black);
}

.lc-badge-dark {
    background: var(--lc-black);
    color: var(--lc-white);
    border-color: var(--lc-black);
}

/* ----------------------------------------------------------
   11. Alertas / mensajes
   ---------------------------------------------------------- */

.alert,
.lc-alert {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: var(--lc-space-4);
    min-height: 72px;
    padding: 18px 22px 18px 72px;
    border: 4px solid var(--lc-orange);
    border-radius: var(--lc-radius-lg);
    background:
        linear-gradient(
            90deg,
            var(--lc-orange) 0,
            var(--lc-orange) 48px,
            var(--lc-orange-10) 48px,
            var(--lc-orange-10) 100%
        );
    color: var(--lc-black);
    box-shadow: var(--lc-shadow-md);
    font-size: var(--lc-font-size-md);
    line-height: 1.45;
}

.alert::before,
.lc-alert::before {
    content: "!";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--lc-black);
    border-radius: 50%;
    background: var(--lc-white);
    color: var(--lc-black);
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-lg);
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
}

.alert strong,
.lc-alert strong {
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-lg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lc-alert-title {
    font-family: var(--lc-font-heading);
    text-transform: uppercase;
    margin-bottom: var(--lc-space-2);
}

.lc-alert-info {
    border-color: var(--lc-orange);
    background:
        linear-gradient(
            90deg,
            var(--lc-orange) 0,
            var(--lc-orange) 48px,
            var(--lc-orange-06) 48px,
            var(--lc-orange-06) 100%
        );
}

.lc-alert-info::before {
    content: "✓";
}

.lc-alert-strong {
    border-color: var(--lc-black);
    background: var(--lc-orange);
    color: var(--lc-black);
}

.lc-alert-strong::before {
    background: var(--lc-black);
    color: var(--lc-white);
}

/* ----------------------------------------------------------
   12. Modales / drawers / panel lateral
   ---------------------------------------------------------- */

.lc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 900;
}

.lc-modal {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    background: var(--lc-white);
    border: 3px solid var(--lc-black);
    border-radius: var(--lc-radius-xl);
    box-shadow: var(--lc-shadow-lg);
    padding: var(--lc-space-6);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lc-drawer {
    width: min(460px, 100%);
    height: 100vh;
    overflow: auto;
    background: var(--lc-white);
    border-left: 3px solid var(--lc-black);
    box-shadow: var(--lc-shadow-lg);
    padding: var(--lc-space-6);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 950;
}

/* ----------------------------------------------------------
   13. Navegación lateral simple
   ---------------------------------------------------------- */

.lc-sidebar {
    background: var(--lc-black);
    color: var(--lc-white);
    padding: var(--lc-space-5);
}

.lc-sidebar a {
    display: flex;
    align-items: center;
    gap: var(--lc-space-2);
    color: var(--lc-white);
    text-decoration: none;
    border-radius: var(--lc-radius-md);
    padding: 10px 12px;
}

.lc-sidebar a:hover,
.lc-sidebar a.is-active {
    background: var(--lc-orange);
    color: var(--lc-black);
}

/* ----------------------------------------------------------
   14. Paginación
   ---------------------------------------------------------- */

.lc-pagination {
    display: flex;
    align-items: center;
    gap: var(--lc-space-2);
    flex-wrap: wrap;
}

.lc-page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius-md);
    background: var(--lc-white);
    color: var(--lc-black);
    text-decoration: none;
    font-weight: 700;
}

.lc-page-link:hover,
.lc-page-link.is-active {
    background: var(--lc-orange);
    border-color: var(--lc-orange);
    color: var(--lc-black);
}

/* ----------------------------------------------------------
   15. Utilidades
   ---------------------------------------------------------- */

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

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

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

.lc-bg-orange {
    background: var(--lc-orange) !important;
}

.lc-bg-black {
    background: var(--lc-black) !important;
}

.lc-bg-white {
    background: var(--lc-white) !important;
}

.lc-border {
    border: 2px solid var(--lc-border) !important;
}

.lc-border-black {
    border: 2px solid var(--lc-black) !important;
}

.lc-border-orange {
    border: 2px solid var(--lc-orange) !important;
}

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

.lc-shadow-md {
    box-shadow: var(--lc-shadow-md) !important;
}

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

.lc-hidden {
    display: none !important;
}

.lc-flex {
    display: flex !important;
}

.lc-grid {
    display: grid !important;
}

.lc-gap-2 {
    gap: var(--lc-space-2) !important;
}

.lc-gap-4 {
    gap: var(--lc-space-4) !important;
}

.lc-gap-6 {
    gap: var(--lc-space-6) !important;
}

.lc-mt-4 {
    margin-top: var(--lc-space-4) !important;
}

.lc-mb-4 {
    margin-bottom: var(--lc-space-4) !important;
}

.lc-p-4 {
    padding: var(--lc-space-4) !important;
}

.lc-p-6 {
    padding: var(--lc-space-6) !important;
}

/* ----------------------------------------------------------
   16. Gráficas
   ----------------------------------------------------------
   Las gráficas pueden usar colores adicionales si es necesario.
   Por eso no se fuerzan colores globales sobre canvas, svg o
   contenedores .chart.
   ---------------------------------------------------------- */

.chart,
.lc-chart {
    background: var(--lc-white);
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius-lg);
    padding: var(--lc-space-5);
}

/* ----------------------------------------------------------
   17. Responsive
   ---------------------------------------------------------- */

@media (max-width: 768px) {
    .lc-main {
        padding: var(--lc-space-6) 0;
    }

    .lc-card,
    .card {
        padding: var(--lc-space-5);
    }

    th,
    td {
        padding: 12px;
    }

    .lc-drawer {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   18. Accesibilidad
   ---------------------------------------------------------- */

:focus-visible {
    outline: 4px solid var(--lc-orange);
    outline-offset: 3px;
}

::selection {
    background: var(--lc-orange);
    color: var(--lc-black);
}

/* ----------------------------------------------------------
   19. Estructura de aplicación y menús de módulos
   ----------------------------------------------------------
   Esta sección solo organiza componentes existentes.
   No redefine colores ni familias tipográficas.
   ---------------------------------------------------------- */

/* Mantiene el contenido principal ocupando la pantalla completa. */
.lc-app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lc-app-shell .lc-main {
    flex: 1;
}

.lc-topbar-title {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.lc-topbar-title:hover {
    color: inherit;
}

.lc-topbar-actions form {
    margin: 0;
}

/* Encabezado reutilizable para las páginas y módulos. */
.lc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--lc-space-6);
    margin-bottom: var(--lc-space-8);
}

.lc-page-header-content {
    min-width: 0;
    max-width: 760px;
}

.lc-page-header h1,
.lc-page-header h2,
.lc-page-header p {
    max-width: 100%;
}

.lc-page-header p:last-child {
    margin-bottom: 0;
}

.lc-page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--lc-space-3);
    flex-wrap: wrap;
    flex: 0 0 auto;
}

/* Rejilla principal de módulos. */
.lc-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--lc-space-6);
    align-items: stretch;
}

/* Se aplica junto con .lc-card para reutilizar el componente oficial. */
.lc-module-card {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-4);
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.lc-module-card:hover {
    transform: translateY(-2px);
}

.lc-module-card:active {
    transform: translateY(0);
}

.lc-module-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--lc-space-4);
}

.lc-module-card-title {
    margin-bottom: 0;
}

.lc-module-card-body {
    flex: 1;
    min-width: 0;
}

.lc-module-card-body p:last-child {
    margin-bottom: 0;
}

.lc-module-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lc-space-3);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--lc-space-2);
}

/* Tarjeta informativa no interactiva. */
.lc-module-card.is-disabled {
    pointer-events: none;
}

/* Evita que las tarjetas estáticas parezcan botones al pasar el cursor. */
.lc-card:not(a):not(button):hover {
    box-shadow: var(--lc-shadow-sm);
}

/* Distribución para opciones internas de un módulo. */
.lc-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--lc-space-5);
}

.lc-action-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-3);
}

.lc-action-item > :last-child {
    margin-top: auto;
}

/* Barras de acciones, filtros y botones. */
.lc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lc-space-4);
    flex-wrap: wrap;
    margin-bottom: var(--lc-space-6);
}

.lc-toolbar-group {
    display: flex;
    align-items: center;
    gap: var(--lc-space-3);
    flex-wrap: wrap;
}

/* Panel dividido para contenido principal y contenido auxiliar. */
.lc-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: var(--lc-space-6);
    align-items: start;
}

.lc-content-main,
.lc-content-aside {
    min-width: 0;
}

/* Contenedor para estados vacíos o mensajes de módulo. */
.lc-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--lc-space-3);
    padding: var(--lc-space-8);
    text-align: center;
}

.lc-empty-state p {
    max-width: 560px;
    margin-bottom: 0;
}

/* Espaciado vertical consistente entre paneles. */
.lc-stack {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-6);
}

.lc-stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-3);
}

/* Responsive específico para la aplicación. */
@media (max-width: 900px) {
    .lc-content-layout {
        grid-template-columns: 1fr;
    }

    .lc-page-header {
        flex-direction: column;
    }

    .lc-page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .lc-topbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .lc-module-grid,
    .lc-action-grid {
        grid-template-columns: 1fr;
    }

    .lc-module-card {
        min-height: auto;
    }

    .lc-toolbar,
    .lc-toolbar-group {
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    .lc-topbar-actions,
    .lc-page-header-actions,
    .lc-toolbar,
    .lc-toolbar-group {
        flex-direction: column;
        align-items: stretch;
    }

    .lc-topbar-actions form,
    .lc-topbar-actions .lc-btn,
    .lc-page-header-actions .lc-btn,
    .lc-toolbar .lc-btn,
    .lc-toolbar-group .lc-btn {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   20. Shell de aplicación, topbar y sidebar responsivos
   ---------------------------------------------------------- */

.lc-app-shell {
    --lc-app-topbar-height: 72px;
    --lc-app-sidebar-width: 260px;

    min-height: 100vh;
    overflow-x: hidden;
}

/* ==============================
   Topbar
   ============================== */

.lc-topbar {
    position: sticky;
    top: 0;
    z-index: 300;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--lc-space-4);

    width: 100%;
    height: var(--lc-app-topbar-height);
    min-height: var(--lc-app-topbar-height);
    padding: 8px var(--lc-space-6);

    background: var(--lc-orange);
    color: var(--lc-black);
    border-bottom: 2px solid var(--lc-gray-border);
}

.lc-topbar-left,
.lc-topbar-center,
.lc-topbar-actions {
    display: flex;
    align-items: center;
    min-width: 0;
}

.lc-topbar-left {
    justify-content: flex-start;
}

.lc-topbar-center {
    justify-content: center;
}

.lc-topbar-actions {
    justify-content: flex-end;
    gap: var(--lc-space-3);
}

.lc-topbar-actions form {
    margin: 0;
}

/* Logo GAR Data Center */
.lc-topbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 52px;
    text-decoration: none;
}

.lc-topbar-logo:hover {
    color: inherit;
}

.lc-topbar-logo-img {
    display: block;
    width: auto;
    height: 52px;
    max-width: min(320px, 42vw);
    object-fit: contain;
    object-position: center;
}

/* Botón hamburguesa */
.lc-menu-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;

    border: 2px solid var(--lc-black);
    border-radius: var(--lc-radius-pill);
    background: var(--lc-black);
    color: var(--lc-white);
    cursor: pointer;
    box-shadow: none;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.lc-menu-toggle:hover {
    background: var(--lc-black);
    color: var(--lc-white);
    border-color: var(--lc-black);
    transform: translateY(-1px);
    box-shadow: var(--lc-shadow-sm);
}

.lc-menu-toggle:active {
    transform: translateY(0);
    box-shadow: none;
}

.lc-menu-toggle:focus-visible {
    outline: 3px solid var(--lc-white);
    outline-offset: 3px;
}

.lc-menu-toggle-icon {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
}

.lc-menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: var(--lc-radius-pill);
    background: var(--lc-white);
}

.lc-menu-toggle-text {
    display: none;
}

/* ==============================
   Menú de usuario
   ============================== */

.lc-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.lc-user-menu-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 7px 12px;

    border: 2px solid var(--lc-black);
    border-radius: var(--lc-radius-pill);
    background: var(--lc-black);
    color: var(--lc-white);
    cursor: pointer;

    font-family: var(--lc-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.lc-user-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--lc-shadow-sm);
}

.lc-user-menu-toggle:active {
    transform: translateY(0);
    box-shadow: none;
}

.lc-user-menu-toggle:focus-visible {
    outline: 3px solid var(--lc-white);
    outline-offset: 3px;
}

.lc-user-menu-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-block;
    flex: 0 0 auto;
    border: 2px solid var(--lc-white);
    border-radius: 50%;
}

.lc-user-menu-icon::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lc-white);
    transform: translateX(-50%);
}

.lc-user-menu-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 11px;
    height: 6px;
    border-radius: 999px 999px 3px 3px;
    background: var(--lc-white);
    transform: translateX(-50%);
}

.lc-user-menu-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-family: var(--lc-font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--lc-white);
}

.lc-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 350;

    display: none;
    min-width: 180px;
    padding: 8px;

    border: 2px solid var(--lc-black);
    border-radius: 14px;
    background: var(--lc-white);
    box-shadow: var(--lc-shadow-sm);
}

.lc-user-menu.is-open .lc-user-dropdown {
    display: block;
}

.lc-user-dropdown form {
    margin: 0;
}

.lc-user-dropdown-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;

    border: 2px solid var(--lc-black);
    border-radius: var(--lc-radius-pill);
    background: var(--lc-black);
    color: var(--lc-white);
    cursor: pointer;

    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.lc-user-dropdown-button:hover {
    background: var(--lc-black);
    color: var(--lc-white);
    transform: translateY(-1px);
    box-shadow: var(--lc-shadow-sm);
}

.lc-user-dropdown-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==============================
   Sidebar principal
   ============================== */

.lc-app-sidebar {
    position: fixed;
    top: var(--lc-app-topbar-height);
    left: 0;
    z-index: 200;

    width: var(--lc-app-sidebar-width);
    height: calc(100dvh - var(--lc-app-topbar-height));

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--lc-orange);
    border-right: 2px solid var(--lc-gray-border);
    transform: translateX(0);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lc-app-main {
    min-width: 0;
    margin-left: var(--lc-app-sidebar-width);
    transition: margin-left 0.2s ease;
}

body.lc-sidebar-collapsed .lc-app-sidebar {
    transform: translateX(-100%);
}

body.lc-sidebar-collapsed .lc-app-main {
    margin-left: 0;
}

/* Menú interno */
.lc-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 18px;
}

.lc-sidebar-home,
.lc-sidebar-submenu-link {
    text-decoration: none;
}

.lc-sidebar-home {
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 6px 4px;

    border: 0;
    background: transparent;
    color: var(--lc-black);

    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-md);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;

    transition: transform 0.15s ease;
}

.lc-sidebar-home:hover {
    background: transparent;
    color: var(--lc-black);
    transform: translateX(4px);
}

/* Área organizativa */
.lc-sidebar-area {
    padding: 8px 0 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.lc-sidebar-area-label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    border-radius: var(--lc-radius-pill);
    background: rgba(255, 255, 255, 0.92);
    color: var(--lc-black);

    font-family: var(--lc-font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.lc-sidebar-empty {
    padding: 10px 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Módulos */
.lc-sidebar-module {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lc-sidebar-module-toggle {
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px;

    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--lc-white);
    cursor: pointer;

    font-family: var(--lc-font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: left;

    box-shadow: none;
    transition: transform 0.15s ease;
}

.lc-sidebar-module-toggle:hover {
    background: transparent;
    color: var(--lc-white);
    transform: translateX(4px);
}

.lc-sidebar-module-toggle:active {
    transform: translateX(2px);
}

.lc-sidebar-module-toggle:focus-visible {
    outline: 2px solid var(--lc-black);
    outline-offset: 4px;
}

.lc-sidebar-module-arrow {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--lc-white);
    font-size: 12px;
    transition: transform 0.18s ease;
}

.lc-sidebar-module.is-open .lc-sidebar-module-arrow {
    transform: rotate(180deg);
}

.lc-sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 3px;
    padding: 3px 0 2px 12px;
}

.lc-sidebar-module.is-open .lc-sidebar-submenu {
    display: flex;
}

.lc-sidebar-submenu-link {
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;

    border: 0;
    background: transparent;
    color: var(--lc-gray-text);

    font-family: var(--lc-font-heading);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;

    transition: transform 0.15s ease;
}

.lc-sidebar-submenu-link::before {
    content: "•";
    flex: 0 0 auto;
    color: var(--lc-gray-text);
    font-family: var(--lc-font-body);
    font-size: 13px;
    font-weight: 700;
}

.lc-sidebar-submenu-link:hover,
.lc-sidebar-submenu-link.is-active {
    background: transparent;
    color: var(--lc-white);
    transform: translateX(4px);
}

.lc-sidebar-submenu-link:hover::before,
.lc-sidebar-submenu-link.is-active::before {
    color: var(--lc-white);
}

/* ==============================
   Portada de inicio
   ============================== */

.lc-home-cover {
    position: fixed;
    top: var(--lc-app-topbar-height);
    left: var(--lc-app-sidebar-width);
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background: var(--lc-white);
    transition: left 0.2s ease;
}

.lc-home-cover-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(70%, 760px);
    height: 70%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
}

body.lc-sidebar-collapsed .lc-home-cover {
    left: 0;
}

/* ==============================
   Tablet: sidebar como panel flotante
   ============================== */

@media (max-width: 960px) {
    .lc-app-shell {
        --lc-app-sidebar-width: min(280px, 86vw);
    }

    .lc-app-main {
        margin-left: 0;
    }

    .lc-app-sidebar {
        box-shadow: var(--lc-shadow-md);
    }

    .lc-home-cover,
    body.lc-sidebar-collapsed .lc-home-cover {
        left: 0;
    }
}

/* ==============================
   Móvil
   ============================== */

@media (max-width: 680px) {
    .lc-app-shell {
        --lc-app-topbar-height: 60px;
    }

    .lc-topbar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 6px 10px;
    }

    .lc-topbar-left,
    .lc-topbar-center,
    .lc-topbar-actions {
        width: auto;
    }

    .lc-topbar-logo,
    .lc-topbar-logo-img {
        height: 44px;
    }

    .lc-topbar-logo-img {
        max-width: min(180px, 50vw);
    }

    .lc-menu-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .lc-user-menu,
    .lc-user-menu-toggle {
        width: 40px;
        min-width: 40px;
    }

    .lc-user-menu-toggle {
        height: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 50%;
    }

    .lc-user-menu-name {
        display: none;
    }

    .lc-user-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(220px, calc(100vw - 20px));
        min-width: 0;
        margin-top: 0;
    }

    .lc-sidebar-menu {
        gap: 12px;
        padding: 16px;
    }

    .lc-sidebar-area-label {
        padding: 5px 10px;
        font-size: 0.76rem;
    }

    .lc-sidebar-module-toggle {
        font-size: 0.90rem;
    }

    .lc-sidebar-submenu-link {
        font-size: 0.82rem;
    }

    .lc-home-cover-image {
        width: 82%;
        height: 64%;
    }
}

@media (max-width: 420px) {
    .lc-topbar-logo-img {
        max-width: 150px;
    }

    .lc-container,
    .container {
        width: min(100% - 20px, 1120px);
    }

    .lc-main {
        padding-top: var(--lc-space-5);
        padding-bottom: var(--lc-space-5);
    }
}

/* ==============================
   Historial de importaciones
   ============================== */

.lc-import-history-card {
    margin-top: 24px;
}

.lc-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.lc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--lc-font-size-sm);
}

.lc-table thead {
    background: var(--lc-black);
    color: var(--lc-white);
}

.lc-table th,
.lc-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
    vertical-align: top;
}

.lc-table th {
    font-weight: 800;
    white-space: nowrap;
}

.lc-table tbody tr:hover {
    background: rgba(255, 95, 0, 0.08);
}

.lc-table td:nth-child(2) {
    max-width: 360px;
    word-break: break-word;
}

.lc-empty-state {
    padding: 18px;
    border: 2px dashed rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    color: var(--lc-gray-700);
    background: rgba(0, 0, 0, 0.03);
    font-size: var(--lc-font-size-sm);
}

/* ==============================
   Conciliación - resumen compacto
   ============================== */

.lc-conciliacion-summary-card {
    padding: 14px 22px;
    border: 3px solid var(--lc-orange);
    background:
        linear-gradient(
            90deg,
            var(--lc-orange-06) 0%,
            var(--lc-white) 100%
        );
}

.lc-conciliacion-total-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 6px;
    color: var(--lc-black);
    font-family: var(--lc-font-heading);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lc-conciliacion-total-line strong {
    color: var(--lc-orange);
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 900;
    line-height: 0.9;
}

.lc-conciliacion-summary-text {
    margin: 0;
    color: var(--lc-text-muted);
    font-size: var(--lc-font-size-md);
}

/* ==============================
   Conciliación - tabla Orders
   ============================== */

.lc-orders-table th.lc-th-wrap {
    white-space: normal;
    line-height: 1.05;
    text-align: center;
    vertical-align: middle;
    max-width: 120px;
}

.lc-orders-table th,
.lc-orders-table td {
    vertical-align: middle;
}

.lc-orders-table td {
    white-space: nowrap;
}

/* ==============================
   Conciliación - filtros
   ============================== */

.lc-conciliacion-filter-form {
    gap: 18px;
    margin-bottom: 28px;
}

.lc-conciliacion-filters-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 18px;
    align-items: end;
}

.lc-conciliacion-actions-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.lc-conciliacion-actions-row .lc-btn {
    min-width: 180px;
}

.lc-conciliacion-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-md);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.lc-conciliacion-check:hover {
    background: transparent;
}

.lc-conciliacion-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--lc-orange);
    cursor: pointer;
}

.lc-conciliacion-results-header {
    margin-top: 24px;
    margin-bottom: 16px;
}

.lc-conciliacion-pagination {
    margin-top: 18px;
    justify-content: center;
}

.lc-pagination-current {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 2px solid var(--lc-black);
    border-radius: var(--lc-radius-pill);
    background: var(--lc-white);
    color: var(--lc-black);
    font-family: var(--lc-font-heading);
    font-weight: 900;
    text-transform: uppercase;
}

/* En pantallas pequeñas, los filtros bajan en columna */
@media (max-width: 900px) {
    .lc-conciliacion-filters-grid {
        grid-template-columns: 1fr;
    }

    .lc-conciliacion-actions-row {
        align-items: stretch;
        flex-direction: column;
    }

    .lc-conciliacion-actions-row .lc-btn {
    width: 100%;
    }
}

/* ==============================
   Conciliación - Payment Method
   ============================== */

.lc-payment-cell {
    font-weight: 900;
    text-align: center;
    border-radius: 8px;
}

.lc-payment-cash {
    background: #d9f3df;
    color: #116329;
}

.lc-payment-credit {
    background: #f8d7da;
    color: #8a1f2d;
}

.lc-payment-debit {
    background: #fff3bf;
    color: #806000;
}

.lc-payment-didi {
    background: #eadcf8;
    color: #5b2b82;
}

.lc-payment-epay {
    background: #ffe0c7;
    color: #9a3d00;
}

.lc-payment-rappi {
    background: var(--lc-white);
    color: var(--lc-black);
}

.lc-payment-ubereats {
    background: #d8ecff;
    color: #1f5f99;
}


/* ==============================
   Conciliación - resumen compacto
   ============================== */

.lc-conciliacion-resumen-linea {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.lc-resumen-metrica {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border-left: 5px solid var(--lc-orange);
    border-radius: 10px;
    background: var(--lc-orange-10);
    color: var(--lc-black);
}

.lc-resumen-metrica span {
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-sm);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lc-resumen-metrica strong {
    font-family: var(--lc-font-heading);
    font-size: var(--lc-font-size-lg);
    font-weight: 900;
    white-space: nowrap;
}

.lc-resumen-metrica-alerta {
    background: #ffe9df;
}

.lc-resumen-metrica-alerta strong {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lc-orange);
    color: var(--lc-black);
}

@media (max-width: 900px) {
    .lc-conciliacion-resumen-linea {
        flex-direction: column;
    }

    .lc-resumen-metrica {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==============================
   Conciliación - Transactions pago mixto
   ============================== */

.lc-transaction-pago-mixto td {
    background: #fff7e6;
}

.lc-transaction-pago-mixto td:first-child {
    border-left: 5px solid var(--lc-orange);
}

.lc-badge-pago-mixto {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--lc-orange-10);
    border: 1px solid var(--lc-orange);
    color: var(--lc-black);
    font-family: var(--lc-font-heading);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ==============================
   Conciliación - Orders pedido entregado
   ============================== */

.lc-order-pedido-entregado td {
    background: #eef7ff;
}

.lc-order-pedido-entregado td:first-child {
    border-left: 5px solid #5dade2;
}

.lc-badge-pedido-entregado {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dceeff;
    border: 1px solid #5dade2;
    color: #1f5f99;
    font-family: var(--lc-font-heading);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ==============================
   Conciliación - Transactions pendiente por entregar
   ============================== */

.lc-transaction-pendiente-entregar td {
    background: #fff8d6;
}

.lc-transaction-pendiente-entregar td:first-child {
    border-left: 5px solid #f4c430;
}

.lc-badge-pendiente-entregar {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff3bf;
    border: 1px solid #f4c430;
    color: #806000;
    font-family: var(--lc-font-heading);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ==============================
   Conciliación - Filas Orders vs Transactions
   ============================== */

.lc-conciliacion-row-diferencia td {
    background: #fff1f3;
}

.lc-conciliacion-row-diferencia td:first-child {
    border-left: 5px solid #d66a77;
}

.lc-conciliacion-row-pendiente td {
    background: #fff8d6;
}

.lc-conciliacion-row-pendiente td:first-child {
    border-left: 5px solid #f4c430;
}

.lc-conciliacion-row-entregado td {
    background: #eef7ff;
}

.lc-conciliacion-row-entregado td:first-child {
    border-left: 5px solid #5dade2;
}

.lc-conciliacion-row-pago-mixto td {
    background: #fff7e6;
}

.lc-conciliacion-row-pago-mixto td:first-child {
    border-left: 5px solid var(--lc-orange);
}

.lc-badge-carga {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lc-badge-carga-pendiente {
    background: #fff3bf;
    border: 1px solid #f4c430;
    color: #806000;
}

.lc-badge-carga-procesando {
    background: #dceeff;
    border: 1px solid #5dade2;
    color: #1f5f99;
}

.lc-badge-carga-validado {
    background: #d9f3df;
    border: 1px solid #68c37b;
    color: #116329;
}

.lc-badge-carga-error {
    background: #f8d7da;
    border: 1px solid #d66a77;
    color: #8a1f2d;
}

.lc-btn {
    position: relative;
}

.lc-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lc-spin 0.8s linear infinite;
}

.lc-btn-loading {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.lc-btn-loading .lc-btn-spinner {
    display: inline-block;
}

@keyframes lc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* REVISION CLOUD: columnas compactas */
.lc-table-revision-cloud th.lc-col-business-date,
.lc-table-revision-cloud td.lc-col-business-date {
    width: 95px;
    min-width: 95px;
    max-width: 95px;
}

.lc-table-revision-cloud th.lc-col-payment-methods,
.lc-table-revision-cloud td.lc-col-payment-methods {
    width: 115px;
    min-width: 115px;
    max-width: 115px;
}

.lc-table-revision-cloud th.lc-col-business-date,
.lc-table-revision-cloud th.lc-col-payment-methods {
    white-space: normal;
    line-height: 1.05;
    text-align: center;
}

.lc-table-revision-cloud td.lc-col-business-date,
.lc-table-revision-cloud td.lc-col-payment-methods {
    white-space: nowrap;
}

.lc-revision-cloud-filters-form {
    margin-bottom: 18px;
}

.lc-revision-cloud-filters-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(170px, 1fr) minmax(120px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.lc-revision-cloud-filters-row .lc-field {
    margin-bottom: 0;
}

.lc-revision-cloud-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 1px;
}

.lc-btn-outline {
    background: var(--lc-white);
    border: 1px solid var(--lc-black);
    color: var(--lc-black);
    text-decoration: none;
}

.lc-btn-outline:hover {
    background: var(--lc-black);
    color: var(--lc-white);
}

@media (max-width: 1100px) {
    .lc-revision-cloud-filters-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lc-revision-cloud-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .lc-revision-cloud-filters-row {
        grid-template-columns: 1fr;
    }
}

