:root {
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --accent: #f97316;
    --bg-color: #eef2f7;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Login */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    background-size: cover;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.glass-panel h2 {
    margin-top: 0;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.75rem;
}

.glass-panel p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-modern:hover {
    background-color: var(--primary-dark);
}

.btn-modern:active {
    transform: scale(0.98);
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Dashboard & Layout */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    flex-direction: column;
    color: #e2e8f0;
    transition: width 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed {
    width: 0;
    border-right: none;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.sidebar-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.sidebar-brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
}

.sidebar-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.nav-links {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.22), rgba(14, 165, 233, 0.16));
    color: white;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.nav-links a.active i,
.nav-links a:hover i {
    color: #93c5fd;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1rem 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-status {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.sidebar-user-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: white;
}

.sidebar-user-role {
    font-size: 0.78rem;
    color: #94a3b8;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    height: 64px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2rem;
    gap: 1rem;
}

.top-bar-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-right: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
}

.page-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.page-subtitle {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cards & Grids */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow: hidden;
}

.page-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.hero-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy {
    margin: 0.55rem 0 0;
    max-width: 54rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    white-space: nowrap;
}

.hero-actions-inline {
    justify-content: flex-start;
    margin: 0.65rem 0 0.15rem;
}

.top-bar-actions .btn-modern {
    width: auto;
    padding: 0.65rem 0.95rem;
}

.user-profile {
    margin-left: auto;
}

.btn-modern.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-modern.btn-secondary:hover {
    background: #f8fafc;
}

.btn-modern.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
}

.btn-modern.btn-accent:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-card-icon.green { background: #dcfce7; color: #16a34a; }
.stat-card-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-card-icon.red { background: #fee2e2; color: #dc2626; }

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 0.15rem;
}

.stat-note {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.inventory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.95fr);
    gap: 1rem;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.toolbar-search {
    flex: 1 1 320px;
    max-width: 460px;
}

.toolbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 9999px;
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
    font-weight: 600;
}

.detail-panel {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-radius: 1.25rem;
    padding: 1.25rem;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.detail-panel-light {
    background: #f8fafc;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.detail-panel-light .detail-metric {
    background: white;
    border-color: var(--border-color);
}

.detail-panel-light .detail-metric-value {
    color: var(--text-main);
}

.detail-panel-light .detail-list-item {
    background: white;
    border: 1px solid var(--border-color);
}

.detail-panel-light .detail-list-item strong {
    color: var(--text-main);
}

.detail-panel-light .detail-list-item span {
    color: var(--text-muted);
}

.detail-panel h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.detail-panel p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.detail-chip-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.detail-chip {
    padding: 0.45rem 0.7rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-chip.orange {
    background: rgba(249, 115, 22, 0.16);
    color: #fed7aa;
}

.detail-metric {
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-metric-label {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.detail-metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
}

.detail-list {
    display: grid;
    gap: 0.75rem;
}

.detail-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(148, 163, 184, 0.08);
}

.detail-list-item strong {
    color: white;
}

.detail-list-item span {
    color: #cbd5e1;
}

.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6000;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.modal-card,
.modal-dialog {
    position: relative;
    z-index: 10;
    width: min(1080px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.modal-dialog-stock {
    width: min(980px, 100%);
}

.modal-dialog-details {
    width: min(860px, 100%);
}

.hero-actions .btn-modern {
    flex: 0 0 auto;
}

@media (min-width: 961px) {
    .hero-actions {
        flex-wrap: nowrap;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal-form {
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stock-search-panel {
    display: grid;
    gap: 1rem;
}

.stock-results {
    display: grid;
    gap: 0.75rem;
    max-height: 240px;
    overflow: auto;
    padding-right: 0.25rem;
}

.familias-grid {
    display: grid;
    gap: 0.85rem;
}

.familia-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem 1rem 0.95rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}

.familia-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.familia-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.familia-card-badge {
    flex: 0 0 auto;
    padding: 0.38rem 0.65rem;
    border-radius: 9999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.78rem;
    font-weight: 700;
}

.familia-card-desc {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.familia-card-desc::before {
    content: 'Descripción';
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.familia-card-badge::before {
    content: ' ';
}

.config-tabs {
    display: inline-flex;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.35rem;
    margin: 0 0 1rem;
}

.config-tab {
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    transition: all 0.15s ease;
}

.config-tab.is-active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.config-grid {
    display: grid;
    gap: 1rem;
}

.config-grid-users {
    grid-template-columns: 1fr 1fr;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.user-actions form {
    margin: 0;
}

@media (max-width: 960px) {
    .config-grid-users {
        grid-template-columns: 1fr;
    }
}

.stock-result-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.stock-result-item:hover,
.stock-result-item.is-selected {
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.08);
    transform: translateY(-1px);
}

.stock-result-title {
    font-weight: 700;
    color: var(--text-main);
}

.stock-result-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 0.2rem;
}

.stock-result-badge {
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.stock-result-badge.is-ok {
    background: #dcfce7;
    color: #166534;
}

.stock-result-badge.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.stock-selected-card {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px dashed var(--border-color);
    background: #f8fafc;
}

.stock-selected-card.is-active {
    border-style: solid;
    border-color: rgba(29, 78, 216, 0.2);
    background: #eff6ff;
}

.stock-selected-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.stock-selected-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

.stock-selected-meta {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stock-empty {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

.stock-empty strong {
    color: var(--text-main);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

.modern-table tr:hover td {
    background: #f8fafc;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.badge-success { background-color: #dcfce7; color: #166534; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-warning { background-color: #fef3c7; color: #92400e; }

/* Flex Utilities */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { display: flex; gap: 1rem; align-items: center; }

/* Forms specific */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* POS Specific */
.pos-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 64px - 4rem - 3rem); /* Screen - topbar - padding - title */
}

.pos-panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.pos-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
}

.pos-body {
    padding: 1.25rem;
    flex: 1;
    overflow-y: auto;
}

.pos-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.total-display {
    font-size: 2rem;
    font-weight: 800;
    text-align: right;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.btn-huge {
    padding: 1.25rem;
    font-size: 1.25rem;
}

@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 960px) {
    .app-layout {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-area {
        padding: 1rem;
    }

    .top-bar {
        padding: 0 1rem;
        height: auto;
        min-height: 64px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

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

    .hero-top,
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions,
    .toolbar-actions {
        width: 100%;
    }

    .toolbar-search {
        max-width: none;
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.8rem 0.7rem;
    }

    .modal-header,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

.empresa-logo-preview {
    display: block;
    max-width: 200px;
    max-height: 120px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    background: #fff;
}

/* Laravel Pagination Fix (Prevenir flechas SVG gigantes) */
nav svg,
.pagination svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.pagination {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0.35rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
.pagination .page-item .page-link,
.pagination li a,
.pagination li span {
    padding: 0.4rem 0.85rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    background: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.pagination .page-item.active .page-link,
.pagination li.active span {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}
.pagination .page-item.disabled .page-link,
.pagination li.disabled span {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}
