/* Estilos generales */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --navbar-height: 82px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-top: var(--navbar-height);
    --time-darkness: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: #000;
    opacity: var(--time-darkness, 0);
    transition: opacity 1.1s ease;
    z-index: 1020;
}

body.login-page::after {
    display: none;
}

.quick-entrega-fab {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 1200;
    border: 0;
    border-radius: 999px;
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, width 0.26s ease, padding 0.26s ease;
    animation: quickEntregaAutoExpand 20s ease-in-out infinite;
}

.quick-entrega-fab:hover,
.quick-entrega-fab:focus-visible {
    width: 320px;
    padding: 10px 18px;
    justify-content: flex-start;
    transform: translateY(-4px) scale(1.12);
    box-shadow: 0 22px 42px rgba(22, 163, 74, 0.52);
    animation: none;
}

.quick-entrega-fab-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    animation: quickEntregaPulse 2.2s ease-in-out infinite;
}

.quick-entrega-fab:hover .quick-entrega-fab-icon,
.quick-entrega-fab:focus-visible .quick-entrega-fab-icon {
    transform: scale(1.28);
}

.quick-entrega-fab-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.24s ease, opacity 0.2s ease;
    animation: quickEntregaTextHint 20s ease-in-out infinite;
}

.quick-entrega-fab:hover .quick-entrega-fab-text-wrap,
.quick-entrega-fab:focus-visible .quick-entrega-fab-text-wrap {
    max-width: 240px;
    opacity: 1;
    animation: none;
}

.quick-entrega-fab-title {
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.1rem;
}

.quick-entrega-fab-subtitle {
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.82rem;
    opacity: 0.95;
}

.btn-whatsapp-round {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    border: none;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.28rem;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-round:hover:not(:disabled) {
    color: #fff;
    background: #1fb85a;
    transform: translateY(-2px);
}

.btn-whatsapp-round:disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
}

@keyframes quickEntregaAutoExpand {
    0%, 72%, 100% {
        width: 62px;
        padding: 10px;
        box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
    }
    76%, 94% {
        width: 320px;
        padding: 10px 18px;
        box-shadow: 0 16px 36px rgba(22, 163, 74, 0.48);
    }
}

@keyframes quickEntregaPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
    }
}

@keyframes quickEntregaTextHint {
    0%, 72%, 100% {
        max-width: 0;
        opacity: 0;
    }
    76%, 94% {
        max-width: 240px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .quick-entrega-fab {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        padding: 8px;
        right: 12px;
        bottom: 12px;
    }

    .quick-entrega-fab-title {
        font-size: 0.98rem;
    }

    .quick-entrega-fab-subtitle {
        font-size: 0.74rem;
    }
}

@media (hover: none) {
    .quick-entrega-fab {
        width: 260px;
        height: 60px;
        min-width: 260px;
        padding: 8px 14px;
        justify-content: flex-start;
        animation: quickEntregaAttentionTouch 20s ease-in-out infinite;
    }

    .quick-entrega-fab-text-wrap {
        max-width: 220px;
        opacity: 1;
        animation: none;
    }

    .quick-entrega-fab-icon {
        animation: quickEntregaPulse 2.2s ease-in-out infinite;
    }
}

@keyframes quickEntregaAttentionTouch {
    0%, 72%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
    }
    76%, 94% {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 22px 42px rgba(22, 163, 74, 0.52);
    }
}

#quickEntregaModal .quick-entrega-dialog {
    max-width: min(1080px, 94vw);
}

#quickEntregaModal .quick-entrega-title {
    font-size: 1.35rem;
    font-weight: 800;
}

#quickEntregaModal .quick-entrega-label-strong {
    font-size: 1rem;
    font-weight: 700;
}

#quickEntregaModal .quick-entrega-check-label {
    font-size: 1.05rem;
    font-weight: 700;
}

#quickEntregaModal .quick-entrega-cliente,
#quickEntregaModal .quick-entrega-select-strong,
#quickEntregaModal #quickEntregaIngresoSelect,
#quickEntregaModal #quickEntregaSearch {
    min-height: 3.05rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#quickEntregaModal .quick-entrega-value {
    min-height: 3.2rem;
    font-size: 1.65rem;
    font-weight: 800;
    text-align: right;
}

#quickEntregaModal .quick-entrega-cash-title {
    font-size: 1.12rem;
    font-weight: 800;
}

#quickEntregaModal .quick-entrega-money-input,
#quickEntregaModal .quick-entrega-money-output {
    min-height: 3.2rem;
    font-size: 1.45rem;
    font-weight: 800;
}

#quickEntregaModal .quick-entrega-money-input {
    text-align: right;
}

#quickEntregaModal .quick-entrega-money-output {
    text-align: right;
}

#quickEntregaModal .quick-entrega-confirm-btn {
    min-height: 3rem;
    font-size: 1.12rem;
    font-weight: 800;
    padding-inline: 1.2rem;
}

@media (max-width: 768px) {
    #quickEntregaModal .quick-entrega-title {
        font-size: 1.12rem;
    }

    #quickEntregaModal .quick-entrega-value {
        font-size: 1.4rem;
    }

    #quickEntregaModal .quick-entrega-money-input,
    #quickEntregaModal .quick-entrega-money-output {
        font-size: 1.25rem;
    }

    #quickEntregaModal .quick-entrega-confirm-btn {
        width: 100%;
    }
}

#mainContent {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#mainContent .nav.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 0.25rem;
    padding-bottom: 0.15rem;
}

#mainContent .nav.nav-tabs .nav-item {
    flex: 0 0 auto;
}

#mainContent .nav.nav-tabs .nav-link {
    white-space: nowrap;
}

#mainContent .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Login */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-page {
    padding-top: 0;
}

.login-shell {
    padding: 0;
}

.login-layout {
    min-height: 100vh;
}

.login-access-col {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 255, 0.95) 100%);
}

.login-access-panel {
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #d8defd;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(45, 54, 125, 0.18);
    padding: 2.2rem;
}

.login-brand {
    margin: 0;
}

.login-info-col {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.22) 0%, rgba(118, 75, 162, 0.22) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.login-info-panel {
    max-width: 640px;
    color: #ffffff;
    background: rgba(31, 41, 111, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 18px 38px rgba(31, 41, 111, 0.26);
    backdrop-filter: blur(2px);
}

.login-info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.86;
}

.login-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.3rem;
}

.login-info-item i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.login-info-item h6 {
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.login-info-item p {
    margin: 0;
    opacity: 0.92;
}

@media (max-width: 991.98px) {
    .login-access-panel {
        max-width: 620px;
        padding: 1.75rem;
    }

    .login-brand {
        min-width: 100%;
    }

    .login-brand .navbar-logo-img {
        width: 100%;
        max-width: 300px;
    }
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
    box-shadow: 0 6px 18px rgba(76, 81, 191, 0.28);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.navbar.navbar-dark.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar-shell {
    position: relative;
    min-height: 64px;
}

.navbar .nav-link,
.navbar #userDisplay {
    color: rgba(255, 255, 255, 0.92) !important;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

.navbar-brand {
    letter-spacing: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    min-width: 320px;
    padding: 0.35rem 0.55rem;
    border: 1px solid #d8defd;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 16px rgba(45, 54, 125, 0.2);
}

.navbar-brand-centered {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.navbar .navbar-collapse {
    z-index: 2;
}

.navbar .navbar-toggler {
    z-index: 3;
}

.mobile-sidebar-toggle {
    z-index: 3;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.mobile-sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.navbar-brand .navbar-logo-img {
    width: 300px;
    height: 52px;
    max-height: 52px;
    max-width: 300px;
    display: block;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        min-width: 220px;
    }

    .navbar-brand .navbar-logo-img {
        width: 220px;
        max-width: 220px;
    }
}

/* Sidebar */
.sidebar {
    border-right: 1px solid #d8dcff;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 16.666667%;
        height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        z-index: 1010;
    }

    .sidebar + main {
        margin-left: 16.666667%;
        width: calc(100% - 16.666667%);
    }
}

.sidebar.bg-light {
    background: linear-gradient(180deg, #f3f6ff 0%, #eef1ff 100%) !important;
    box-shadow: inset -1px 0 0 #dde3ff;
}

.offcanvas#mobileSidebar {
    width: 280px;
}

.offcanvas#mobileSidebar .offcanvas-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.offcanvas#mobileSidebar .offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(2);
}

.offcanvas#mobileSidebar .offcanvas-body {
    background: linear-gradient(180deg, #f3f6ff 0%, #eef1ff 100%);
}

.offcanvas#mobileSidebar .nav-link {
    color: #3e4663;
    border: 1px solid #d8defd;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.28s ease;
    background-color: rgba(255, 255, 255, 0.76);
}

.offcanvas#mobileSidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.24) 0%, rgba(118, 75, 162, 0.24) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    color: #3730a3;
    box-shadow: 0 12px 22px rgba(102, 126, 234, 0.22);
}

.offcanvas#mobileSidebar .nav-link .menu-icon-wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.28);
}

.sidebar .nav-link {
    color: #3e4663;
    border: 1px solid #d8defd;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.28s ease;
    background-color: rgba(255, 255, 255, 0.76);
}

.sidebar .nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.18) 100%);
    border-color: rgba(102, 126, 234, 0.45);
    transform: translateX(4px);
    color: #4c51bf;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.24) 0%, rgba(118, 75, 162, 0.24) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    color: #3730a3;
    font-weight: 600;
    box-shadow: 0 12px 22px rgba(102, 126, 234, 0.22);
}

.sidebar .nav-link .menu-icon-wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.28);
    color: #4c51bf;
    transition: all 0.28s ease;
}

.sidebar .nav-link:hover .menu-icon-wrap,
.sidebar .nav-link.active .menu-icon-wrap {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: scale(1.07);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.35);
}

.sidebar .nav-link .menu-label {
    line-height: 1.1;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Tablas */
.table {
    background-color: white;
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 2.5rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Ingreso Form Styling */
#ingresoForm {
    max-width: 550px;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem !important;
}

#ingresoForm .mb-3 {
    margin-bottom: 1.5rem !important;
}

#ingresoForm textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

#ingresoForm .form-check {
    padding: 0.5rem 0;
}

#ingresoForm .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#ingresoForm .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}

#ingresoForm .btn-secondary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

#ingresoForm hr {
    margin: 1.75rem 0;
    opacity: 0.2;
    border-color: #999;
}

#ingresoForm h5 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ingresoForm .card {
    max-width: 550px;
    margin: 0 auto 2rem auto;
}

/* Cards */
.card-header {
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        min-width: 180px;
        padding: 0.25rem 0.4rem;
    }

    .navbar-brand .navbar-logo-img {
        width: 180px;
        max-width: 180px;
        height: 42px;
    }

    #logoutBtn .logout-label {
        display: none;
    }

    #logoutBtn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    main {
        padding: 1rem !important;
    }

    #mainContent {
        max-width: 100%;
    }

    #mainContent .card {
        border-radius: 12px;
    }

    #mainContent .card-header {
        padding: 0.85rem 0.9rem;
    }

    #mainContent .card-body {
        padding: 0.85rem;
    }

    #mainContent .card-body.p-0 {
        padding: 0 !important;
    }

    #mainContent .nav.nav-tabs {
        padding-inline: 0.1rem;
    }

    #mainContent .table td,
    #mainContent .table th {
        vertical-align: top;
    }

    #mainContent .tecnico-actions {
        min-width: 240px;
    }

    #mainContent .tecnico-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
    }

    #mainContent .tecnico-actions .btn.btn-info {
        flex-basis: 100%;
    }
    
    .table {
        font-size: 0.85rem;
    }
}

/* Status colors */
.badge-pending { background-color: #ffc107; color: #000; }
.badge-in_reparacion { background-color: #0dcaf0; color: #fff; }
.badge-reparado { background-color: #198754; color: #fff; }
.badge-entregado { background-color: #0d6efd; color: #fff; }
.badge-cancelado { background-color: #dc3545; color: #fff; }

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Spinner personalizado */
.spinner-border {
    width: 50px;
    height: 50px;
}

/* Input personalizado */
input[type="file"] {
    cursor: pointer;
}

/* Tooltip */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* WIZARD ESTILO */
.ingreso-wizard {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}

.ingreso-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #dde5ff;
    width: 100%;
    overflow-x: hidden;
}

.ingreso-title {
    margin-bottom: 1rem !important;
    color: #334155;
    font-weight: 700;
    text-align: center;
}

.wizard-step {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    animation: fadeIn 0.5s ease-in;
    width: 100%;
    overflow-x: hidden;
    min-height: clamp(34rem, 72vh, 46rem);
    display: flex;
    flex-direction: column;
}

.wizard-step.active {
    display: flex;
}

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

.wizard-header {
    margin-bottom: 1rem;
}

.wizard-header .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.wizard-header h4 {
    color: white;
    font-weight: 700;
    font-size: 1.35rem;
}

.wizard-content {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    color: #333;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.12);
    width: 100%;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.module-shell {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
    border: 1px solid #d9e5f3;
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    position: relative;
    overflow: hidden;
}
.module-shell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0d6efd 0%, #4f9bff 100%);
}
.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.module-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0b2e66;
}
.module-shell .module-card,
.module-shell .card {
    border: 1px solid #dce7f5;
    border-radius: 0.9rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.module-shell .card-header {
    background: #ecf4ff;
    border-bottom: 1px solid #d9e5f3;
    border-top-left-radius: 0.9rem !important;
    border-top-right-radius: 0.9rem !important;
}
.module-shell .card-footer {
    background: #f3f8ff;
    border-top: 1px solid #d9e5f3;
}
.module-shell .table thead th {
    background: #eef5ff;
    color: #1e3a63;
    border-bottom: 1px solid #d7e4f3;
}
.module-tabs {
    border-bottom: 1px solid #cfdff2;
    gap: 0.25rem;
}
.module-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.7rem;
    border-top-right-radius: 0.7rem;
    color: #1f385d;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
}
.module-tabs .nav-link:hover {
    background: #eaf3ff;
    border-color: #cfe0fb;
}
.module-tabs .nav-link.active {
    color: #0a387c;
    background: #dfeeff;
    border-color: #bdd6fb #bdd6fb #dfeeff;
}
.module-kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}
.module-kpi-card .fw-bold {
    font-size: 1.16rem;
    color: #0d3b80;
}
.module-empty-alert {
    margin-bottom: 0;
}
.module-shell-registros::before {
    background: linear-gradient(180deg, #0d6efd 0%, #6ea8fe 100%);
}
.module-shell-tecnico::before {
    background: linear-gradient(180deg, #0f766e 0%, #34d399 100%);
}

.module-shell-tecnico {
    background: #eef2f8;
    border: 1px solid #d8e0ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(51, 65, 85, 0.08);
    padding: 1.1rem;
}

.module-shell-tecnico::before {
    display: none;
}

.module-shell-tecnico .module-title {
    color: #334155;
}

.module-shell-tecnico .module-kpi-card {
    background: #ffffff;
    border: 1px solid #d6deeb;
    box-shadow: 0 6px 16px rgba(51, 65, 85, 0.08);
}

.module-shell-tecnico .module-kpi-card .fw-bold {
    color: #1e3a5f;
}

.module-shell-tecnico .module-tabs {
    border-bottom: 1px solid #d3dbe8;
}

.module-shell-tecnico .module-tabs .nav-link {
    background: #f4f7fc;
    color: #334155;
    border-color: #dde5f0;
}

.module-shell-tecnico .module-tabs .nav-link:hover {
    background: #ebf1f9;
    border-color: #d5e0ee;
}

.module-shell-tecnico .module-tabs .nav-link.active {
    background: #e4ebf6;
    color: #1e3a5f;
    border-color: #ccd8ea #ccd8ea #e4ebf6;
}

.tecnico-soft-card {
    border: 1px solid #d6deeb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(51, 65, 85, 0.08);
}

.tecnico-soft-card .card-header {
    background: #e8edf6;
    border-bottom: 1px solid #d2dbe8;
    color: #1e3a5f;
}

.tecnico-soft-card .table thead th {
    background: #eef2f8;
    color: #1e3a5f;
    border-bottom: 1px solid #d6deeb;
}
.module-shell-admin::before {
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 100%);
}

.module-shell-admin {
    background: #eef2f8;
    border: 1px solid #d8e0ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(51, 65, 85, 0.08);
    padding: 1.1rem;
}

.module-shell-admin::before {
    display: none;
}

.module-shell-admin .module-title {
    color: #334155;
}

.module-shell-admin .module-tabs {
    border-bottom: 1px solid #d3dbe8;
    gap: 0.35rem;
}

.module-shell-admin .module-tabs .nav-link {
    background: #f4f7fc;
    color: #334155;
    border: 1px solid #dde5f0;
    border-radius: 0.78rem 0.78rem 0 0;
    font-weight: 700;
}

.module-shell-admin .module-tabs .nav-link:hover {
    background: #ebf1f9;
    border-color: #d5e0ee;
}

.module-shell-admin .module-tabs .nav-link.active {
    background: #e4ebf6;
    color: #1e3a5f;
    border-color: #ccd8ea #ccd8ea #e4ebf6;
}

.module-shell-admin .admin-modern-content > .tab-pane {
    padding-top: 0.15rem;
}

.module-shell-admin .card {
    border: 1px solid #d6deeb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(51, 65, 85, 0.08);
    background: #ffffff;
}

.module-shell-admin .card-header {
    background: #e8edf6 !important;
    border-bottom: 1px solid #d2dbe8;
    color: #1e3a5f;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

.module-shell-admin .card.border-danger {
    border-color: #f5c2c7;
    background: #fff5f6;
}

.module-shell-admin [id$='FormContainer'] {
    border: 1px solid #d9e3f2 !important;
    border-radius: 12px;
    background: #f8fbff !important;
    padding: 0.9rem !important;
}

.module-shell-admin .form-control,
.module-shell-admin .form-select,
.module-shell-admin textarea {
    border-radius: 10px;
    border: 1px solid #cfd7e6;
    background: #fff;
}

.module-shell-admin .table thead th {
    background: #eef2f8;
    color: #1e3a5f;
    border-bottom: 1px solid #d6deeb;
}

.module-shell-admin .table td {
    vertical-align: middle;
}

.module-shell-admin .badge {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.36rem 0.62rem;
}

.module-shell-admin .btn {
    border: 0;
    border-radius: 0.75rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.module-shell-admin .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.18);
    filter: brightness(1.02);
}

.module-shell-admin .btn-primary,
.module-shell-admin .btn-outline-primary {
    background: #e0ecff;
    color: #1e3a8a;
}

.module-shell-admin .btn-success,
.module-shell-admin .btn-outline-success {
    background: #dcfce7;
    color: #166534;
}

.module-shell-admin .btn-danger,
.module-shell-admin .btn-outline-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.module-shell-admin .btn-warning,
.module-shell-admin .btn-outline-warning {
    background: #ffedd5;
    color: #9a3412;
}

.module-shell-admin .btn-info,
.module-shell-admin .btn-outline-info {
    background: #d9f2fb;
    color: #0b4a5a;
}

.module-shell-admin .btn-secondary,
.module-shell-admin .btn-outline-secondary {
    background: #e5e7eb;
    color: #374151;
}

.module-shell-admin .btn-dark,
.module-shell-admin .btn-outline-dark {
    background: #e2e8f0;
    color: #1f2937;
}

.module-shell-admin .btn-sm {
    padding: 0.4rem 0.68rem;
    font-size: 0.8rem;
}

.module-shell-registros.registros-soft-shell {
    background: #eef2f8;
    border: 1px solid #d8e0ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(51, 65, 85, 0.08);
    padding: 1.15rem;
}

.module-shell-registros.registros-soft-shell::before {
    display: none;
}

.module-shell-registros .module-title {
    color: #334155;
}

.module-shell-registros .module-card {
    background: #ffffff;
    border: 1px solid #d6deeb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(51, 65, 85, 0.08);
}

.module-shell-registros .registros-filter-card {
    background: #f4f7fc;
}

.module-shell-registros .registros-filter-card .form-control,
.module-shell-registros .registros-filter-card .form-select {
    border-radius: 10px;
    border: 1px solid #cfd7e6;
    background-color: #fff;
}

.module-shell-registros .registros-filter-card .btn {
    border-radius: 10px;
    font-weight: 600;
}

.module-shell-registros .registros-table-card thead th {
    background: #e8edf6;
    color: #1e3a5f;
    border-bottom: 1px solid #d2dbe8;
    font-weight: 700;
}

.module-shell-registros .registros-table-card tbody td {
    vertical-align: middle;
}

.module-shell-registros .registros-table-card .card-footer {
    background: #f3f6fb;
}

.module-shell-registros .registros-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.details-modern-shell {
    background: #eef2f8;
    border: 1px solid #d8e0ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(51, 65, 85, 0.08);
    padding: 1rem;
}

.details-modern-card {
    border: 1px solid #d6deeb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(51, 65, 85, 0.08);
}

.details-modern-card-header {
    background: #e8edf6;
    border-bottom: 1px solid #d2dbe8;
    color: #1e3a5f;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

.details-modern-btn {
    min-height: 2.45rem;
    padding: 0.5rem 0.9rem;
    border: 0 !important;
    border-radius: 0.8rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.details-modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.2);
    filter: brightness(1.02);
}

.details-modern-btn i {
    font-size: 0.9rem;
}

.details-modern-btn-neutral {
    background: #e5e7eb !important;
    color: #374151 !important;
}

.details-modern-btn-whatsapp {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.details-modern-btn-primary {
    background: #e0ecff !important;
    color: #1e3a8a !important;
}

.details-modern-btn-warning {
    background: #ffedd5 !important;
    color: #9a3412 !important;
}

.details-modern-btn-delete {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.details-modern-alert-success {
    border-left: 5px solid #16a34a;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.details-modern-alert-success i {
    color: #16a34a;
}

.details-modern-delivery-result {
    font-size: 1.08em;
    color: #15803d;
}

.details-modern-money {
    font-size: 1.16em;
    color: #15803d;
}

.details-modern-shell .table thead th {
    background: #e8edf6;
    color: #1e3a5f;
    border-bottom: 1px solid #d2dbe8;
}

.details-modern-shell .table td {
    vertical-align: middle;
}

.details-modern-shell .tecnico-fallas-wrap {
    border: 1px solid #d4dfef;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.details-modern-shell .tecnico-fallas-table {
    width: 100%;
    table-layout: auto;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.details-modern-shell .tecnico-fallas-table th,
.details-modern-shell .tecnico-fallas-table td {
    white-space: normal;
}

.details-modern-shell .tecnico-fallas-table thead th {
    background: #f3f7ff;
    color: #1f3a5e;
    border-bottom: 1px solid #d6e1f2;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    padding: 0.58rem 0.55rem;
}

.details-modern-shell .tecnico-fallas-table tbody td {
    border-bottom: 1px solid #edf2fb;
    padding: 0.62rem 0.55rem;
    font-size: 0.92rem;
    color: #1f2937;
}

.details-modern-shell .tecnico-fallas-table tbody tr:last-child td {
    border-bottom: 0;
}

.details-modern-shell .tecnico-fallas-table tbody tr:hover td {
    background: #f9fbff;
}

.details-modern-shell .tecnico-fallas-table .col-falla {
    width: 16%;
    font-weight: 600;
}

.details-modern-shell .tecnico-fallas-table .col-repuesto {
    width: 28%;
}

.details-modern-shell .tecnico-fallas-table .col-costo,
.details-modern-shell .tecnico-fallas-table .col-valor {
    width: 14%;
}

.details-modern-shell .tecnico-fallas-table .col-estado {
    width: 14%;
}

.details-modern-shell .tecnico-fallas-table .col-acciones {
    width: 14%;
}

.details-modern-shell .tecnico-fallas-table .money-input-group .input-group-text {
    min-width: 2rem;
    justify-content: center;
    border-color: #cad6eb;
    background: #eef3ff;
    color: #27456b;
    font-weight: 700;
}

.details-modern-shell .tecnico-fallas-table .money-input {
    text-align: right;
    border-color: #cad6eb;
    background: #ffffff;
    font-weight: 600;
}

.details-modern-shell .tecnico-fallas-table .valor-reparacion-input:focus {
    border-color: #8cb5ff;
    box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.14);
}

.details-modern-shell .tecnico-fallas-table .estado-falla-select {
    width: 100%;
}

.details-modern-shell .tecnico-fallas-table .form-select,
.details-modern-shell .tecnico-fallas-table .form-control {
    min-height: 2.15rem;
    border-radius: 0.62rem;
}

.details-modern-shell .tecnico-fallas-table .details-modern-btn-delete {
    white-space: nowrap;
    width: 100%;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.details-modern-shell .tecnico-fallas-table .repuesto-resumen {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.details-modern-shell .tecnico-fallas-table .repuesto-nombre {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.2;
}

.details-modern-shell .tecnico-fallas-table .repuesto-nombre.is-empty {
    color: #64748b;
    font-weight: 600;
}

.details-modern-shell .tecnico-fallas-table .repuesto-edit-btn {
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.2rem 0.62rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.details-modern-shell .tecnico-fallas-table .cost-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    width: 100%;
    border-radius: 0.62rem;
    border: 1px solid #d6e0f0;
    background: #f5f8ff;
    color: #1f3a5e;
    font-weight: 700;
}

.details-modern-shell .tecnico-inline-actions {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 0.8rem;
    align-items: end;
    border: 1px solid #dce5f4;
    border-radius: 12px;
    background: #f7faff;
    padding: 0.8rem;
}

.details-modern-shell .tecnico-inline-actions-main {
    display: grid;
    grid-template-columns: minmax(230px, 320px) 1fr;
    gap: 0.75rem;
    align-items: end;
}

.details-modern-shell .tecnico-inline-actions .tecnico-inline-status .form-select {
    min-height: 2.2rem;
}

.details-modern-shell .tecnico-inline-actions .tecnico-inline-help {
    line-height: 1.25;
    padding-bottom: 0.2rem;
}

.details-modern-shell .tecnico-inline-actions-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.details-modern-shell .tecnico-inline-actions-buttons .details-modern-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 992px) {
    .details-modern-shell .tecnico-inline-actions {
        grid-template-columns: 1fr;
    }

    .details-modern-shell .tecnico-inline-actions-main {
        grid-template-columns: 1fr;
    }

    .details-modern-shell .tecnico-inline-actions-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .details-modern-shell .tecnico-fallas-table thead th,
    .details-modern-shell .tecnico-fallas-table tbody td {
        font-size: 0.82rem;
    }

    .details-modern-shell .tecnico-fallas-table .details-modern-btn-delete span {
        display: none;
    }

    .details-modern-shell .tecnico-fallas-table .details-modern-btn-delete i {
        margin: 0;
    }
}

.details-modern-garantia-box {
    border: 1px solid #d9e3f2;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.7rem;
}

.tecnico-actions {
    min-width: 320px;
    gap: 0.45rem !important;
}

.tecnico-action-btn {
    min-height: 2.25rem;
    padding: 0.42rem 0.78rem;
    border: 0 !important;
    border-radius: 0.72rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
    color: #0f172a !important;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.tecnico-action-btn i {
    font-size: 0.8rem;
}

.tecnico-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.2);
    filter: brightness(1.02);
}

.tecnico-action-btn-neutral { background: #e5e7eb !important; }
.tecnico-action-btn-primary { background: #e0ecff !important; color: #1e3a8a !important; }
.tecnico-action-btn-success { background: #dcfce7 !important; color: #166534 !important; }
.tecnico-action-btn-warning { background: #ffedd5 !important; color: #9a3412 !important; }
.tecnico-action-btn-detail { background: #d9f2fb !important; color: #0b4a5a !important; }

@media (max-width: 992px) {
    .tecnico-actions {
        min-width: 240px;
    }

    .tecnico-action-btn {
        min-height: 2.1rem;
        padding: 0.38rem 0.65rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 768px) {
    .details-modern-shell {
        padding: 0.8rem;
    }

    .details-modern-btn {
        min-height: 2.2rem;
        padding: 0.42rem 0.72rem;
        font-size: 0.84rem;
    }
}

.registros-status-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 106px;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: lowercase;
    border: 1px solid transparent;
}

.registros-status-chip.is-pending { background: #fbbc04 !important; color: #fff !important; }
.registros-status-chip.is-repair { background: #d9f2fb !important; color: #0b4a5a !important; }
.registros-status-chip.is-repaired { background: #dcfce7 !important; color: #166534 !important; }
.registros-status-chip.is-unrepairable { background: #ffedd5 !important; color: #9a3412 !important; }
.registros-status-chip.is-delivered { background: #e0e7ff !important; color: #4338ca !important; }
.registros-status-chip.is-cancelled { background: #fee2e2 !important; color: #b91c1c !important; }
.registros-status-chip.is-default { background: #e5e7eb !important; color: #374151 !important; }

.registros-value-cell {
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.registros-actions-cell {
    white-space: nowrap;
}

.registros-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
}

.registros-action-btn {
    min-height: 2.35rem;
    padding: 0.46rem 0.85rem;
    border: 0 !important;
    border-radius: 0.78rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.registros-action-btn i {
    font-size: 0.9rem;
}

.registros-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.2);
    filter: brightness(1.02);
}

.registros-action-btn-view {
    background: #e0ecff !important;
    color: #1e3a8a !important;
}

.registros-action-btn-delete {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

@media (max-width: 768px) {
    .registros-action-btn {
        min-height: 2.15rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.84rem;
    }
}

.module-shell-registros .registros-status-chip.is-pending {
    background: #fbbc04;
    color: #fff;
}

.module-shell-registros .registros-status-chip.is-repair {
    background: #c4e9f5;
    color: #0f4c5c;
}

.module-shell-registros .registros-status-chip.is-repaired {
    background: #d1f3de;
    color: #0f5132;
}

.module-shell-registros .registros-status-chip.is-unrepairable {
    background: #ffe2b8;
    color: #8a4b08;
}

.module-shell-registros .registros-status-chip.is-delivered {
    background: #dbeafe;
    color: #1d4ed8;
}

.module-shell-registros .registros-status-chip.is-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.module-shell-registros .registros-status-chip.is-default {
    background: #e5e7eb;
    color: #374151;
}

.module-shell-registros .registros-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.module-shell-registros .registros-icon-btn {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.52rem;
    box-shadow: 0 2px 7px rgba(30, 41, 59, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.module-shell-registros .registros-icon-btn i {
    font-size: 0.88rem;
    line-height: 1;
}

.module-shell-registros .registros-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(30, 41, 59, 0.2);
    filter: brightness(1.03);
}

.module-shell-registros .registros-icon-btn-view {
    background: #10c6e8;
    color: #0b1f2b;
}

.module-shell-registros .registros-icon-btn-delete {
    background: #ef4444;
    color: #fff;
}
.wizard-content .row {
    margin-left: 0;
    margin-right: 0;
}

.wizard-content .row > [class*='col-'] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.wizard-content .form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.wizard-content .form-control-lg,
.wizard-content .form-select-lg {
    min-height: 2.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wizard-content .form-control-lg:focus,
.wizard-content .form-select-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Paleta de colores */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
}

.color-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-btn.selected {
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

/* Botones del Wizard */
.wizard-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 5;
}

.wizard-nav .btn {
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    min-width: 0;
}

.wizard-nav .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.wizard-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.wizard-nav .btn-secondary {
    background: linear-gradient(135deg, #7c8cf8 0%, #6d5dc6 100%);
    color: #fff;
    border: none;
}

.wizard-nav .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 93, 198, 0.35);
    color: #fff;
}

.wizard-nav .btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    color: white;
}

.wizard-nav .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

.search-section {
    background-color: #f3f6ff;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #d7e2ff;
}

.search-section .form-label {
    color: #334155;
    margin-bottom: 0.75rem;
}

.search-section .form-control {
    border: 1px solid #c9d6ff;
    background-color: #fff;
}

.fallas-selector {
    position: relative;
}

.fallas-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.6rem;
    align-items: center;
}

#fallasDropdownToggle {
    min-width: 40px;
    padding: 0.45rem 0.55rem;
}

#fallasDropdownToggle.active {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.fallas-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #ffffff;
    border: 1px solid #dbe3ff;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    padding: 0.35rem;
    display: none;
}

.fallas-dropdown.show {
    display: block;
}

.fallas-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #3730a3;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    white-space: nowrap;
}

.fallas-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 800;
    min-width: 140px;
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
    white-space: nowrap;
}

.fallas-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.2rem;
    border: none;
    border-radius: 10px;
    background: transparent;
}

.falla-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #e6ebff;
    border-radius: 8px;
    background: #fff;
    margin: 0;
    cursor: pointer;
}

.falla-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.falla-item .form-check-input {
    margin-top: 0;
}

.falla-label-text {
    font-weight: 600;
    color: #334155;
    word-break: break-word;
}

.falla-price {
    color: #475569;
    font-size: 0.92rem;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .ingreso-page .wizard-content {
        max-height: calc(100vh - var(--navbar-height) - 190px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem;
    }

    .ingreso-page #paso3 .wizard-content h5 {
        margin-bottom: 0.65rem !important;
    }

    .ingreso-page #paso3 .row.mb-3 {
        margin-bottom: 0.3rem !important;
    }

    .ingreso-page #paso3 .mb-3 {
        margin-bottom: 0.55rem !important;
    }

    .ingreso-page #paso3 .form-control.form-control-lg,
    .ingreso-page #paso3 .form-select.form-select-lg,
    .ingreso-page #paso3 .form-control.form-select-lg,
    .ingreso-page #paso3 .form-control {
        min-height: 2.35rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .ingreso-page #paso4 .fallas-list {
        max-height: min(52vh, 480px);
    }

    .ingreso-page #paso4 .fallas-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ingreso-page #paso4 #fallasDropdownToggle {
        display: none;
    }

    .ingreso-page #paso4 .fallas-dropdown {
        position: static;
        display: block;
        margin-top: 0.55rem;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .ingreso-page #paso4 .fallas-list {
        border: 1px solid #dbe3ff;
        border-radius: 12px;
        background: #f8faff;
        padding: 0.35rem;
    }
}

@media (max-width: 992px) {
    .ingreso-page {
        max-width: 100%;
        padding: 0.75rem;
        border-radius: 14px;
    }

    .ingreso-wizard {
        max-width: 100%;
    }

    .wizard-step {
        padding: 1rem;
        min-height: auto;
    }

    .wizard-content {
        padding: 1rem;
    }

    .wizard-nav .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ingreso-page {
        padding: 0.5rem;
        border-radius: 12px;
    }

    .wizard-step {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .wizard-header h4 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .wizard-content {
        padding: 0.75rem;
    }

    .color-palette {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 8px;
    }

    .color-btn {
        width: 36px;
        height: 36px;
    }

    .falla-item {
        grid-template-columns: auto 1fr;
    }

    .fallas-toolbar {
        grid-template-columns: 1fr auto;
    }

    .fallas-count {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .fallas-total {
        grid-column: 1 / -1;
        justify-self: start;
        font-size: 0.9rem;
        min-width: 130px;
    }

    .falla-price {
        grid-column: 2 / 3;
        justify-self: start;
        margin-top: -0.25rem;
    }
}

#resultadosBusqueda {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.list-group-item {
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9ff;
    transform: translateX(5px);
}

.dashboard-shell {
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #dde5ff;
}

.dashboard-title {
    color: #334155;
    font-weight: 700;
}

.dashboard-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.12);
}

.dashboard-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
}

.btn-dashboard-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    min-height: 50px;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.32);
}

.btn-dashboard-filter:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(102, 126, 234, 0.38);
}

.dashboard-shell #fechaDesde,
.dashboard-shell #fechaHasta,
.dashboard-shell #estadoFiltro {
    min-height: 50px;
    border: 2px solid #d7defd;
    border-radius: 10px;
}

.dashboard-shell #fechaDesde:focus,
.dashboard-shell #fechaHasta:focus,
.dashboard-shell #estadoFiltro:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
}

.dashboard-metric-card {
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.dashboard-kpi-card {
    border-width: 2px;
    border-style: solid;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.dashboard-shell #dashboardRangeValue,
.dashboard-shell #dashboardRangeUnit {
    min-height: 44px;
    border: 2px solid #d7defd;
    border-radius: 10px;
}

.dashboard-shell #dashboardRangeValue:focus,
.dashboard-shell #dashboardRangeUnit:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
}

.details-header-bar {
    position: sticky;
    top: calc(var(--navbar-height) + 8px);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #d7defd;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.details-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.details-action-btn {
    min-height: 50px;
    font-size: 1.03rem;
    font-weight: 700;
    padding-inline: 1rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .details-header-bar {
        position: static;
        padding: 0.6rem;
    }

    .details-header-actions {
        width: 100%;
    }

    .details-action-btn {
        flex: 1 1 100%;
    }
}

.dashboard-focus-section {
    justify-content: center;
}

.dashboard-focus-section > [class*='col-'] {
    display: flex;
}

.dashboard-kpi-hero {
    width: 100%;
    min-height: 130px;
    color: #fff;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.dashboard-kpi-hero .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dashboard-kpi-hero .kpi-label {
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.95;
}

.dashboard-kpi-hero .kpi-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.3rem;
}

.dashboard-kpi-hero.kpi-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.dashboard-kpi-hero.kpi-success {
    background: linear-gradient(135deg, #0f9d58 0%, #22c55e 100%);
}

.dashboard-kpi-hero.kpi-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.dashboard-kpi-hero.kpi-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.dashboard-total-box {
    background: linear-gradient(145deg, #f6f8ff 0%, #eef2ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.22) !important;
    border-radius: 12px;
}

.dashboard-total-box h3 {
    font-size: 2rem;
    color: #24346d;
}

@media (max-width: 768px) {
    .dashboard-kpi-hero {
        min-height: 112px;
    }

    .dashboard-kpi-hero .kpi-value {
        font-size: 1.65rem;
    }
}

#dashboardQueueCards .card {
    border-radius: 10px;
    border: 1px solid #e4e8ff;
    box-shadow: none;
}

#dashboardAlertList .list-group-item {
    border-left: 0;
    border-right: 0;
}

/* =========================================
   LOGIN GLASSMORPHISM LAYOUT (UI V2)
   ========================================= */
.login-page {
    --login-outer-gap: clamp(1rem, 2.8vw, 2.25rem);
    --login-shell-radius: clamp(1.1rem, 2.2vw, 1.9rem);
    --control-radius: clamp(0.85rem, 1.25vw, 1rem);
    --login-panel-radius: var(--control-radius);
    --login-text-main: #1b2442;
    --login-text-soft: #4b567d;
    --login-accent: #4f7fe8;
    --login-accent-soft: #6d95ec;
    --glass-border: rgba(255, 255, 255, 0.66);
    --glass-bg-top: rgba(255, 255, 255, 0.4);
    --glass-bg-bottom: rgba(255, 255, 255, 0.16);
    --halo-blue: rgba(52, 154, 255, 0.72);
    --halo-lila: rgba(129, 99, 255, 0.7);
    --halo-violet: rgba(182, 104, 255, 0.54);
    --login-font-family: "Inter", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Ancho maestro único para alinear logo, texto, inputs y botón */
    --logo-width: 24rem;
    --auth-width: var(--logo-width);
    --login-control-max: var(--auth-width);
    --elev-soft: 0 12px 26px rgba(60, 75, 145, 0.16);
    --elev-strong: 0 18px 36px rgba(56, 73, 146, 0.22);
    --space-stack: clamp(0.95rem, 1.5vw, 1.2rem);
}

/* Fondo general expandido con halo suave azul-lila-morado */
.login-page.bg-gradient {
    background: linear-gradient(135deg, #9fc6ff 0%, #94b4ff 45%, #bca2ff 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.login-page::before {
    width: clamp(34rem, 46vw, 56rem);
    height: clamp(34rem, 46vw, 56rem);
    top: -18%;
    right: -14%;
    background: radial-gradient(circle, var(--halo-blue) 0%, rgba(52, 154, 255, 0) 74%);
    filter: blur(120px);
}

.login-page::after {
    width: clamp(36rem, 50vw, 62rem);
    height: clamp(36rem, 50vw, 62rem);
    left: -18%;
    bottom: -22%;
    background: radial-gradient(circle, var(--halo-lila) 0%, rgba(129, 99, 255, 0) 76%);
    filter: blur(132px);
}

/* Margen externo visible para efecto tarjetas flotantes */
.login-page .login-shell {
    padding: var(--login-outer-gap);
    position: relative;
    z-index: 1;
}

/* Cuadro dentro de cuadro: contenedor general detrás de paneles */
.login-page .login-layout {
    min-height: calc(100vh - (var(--login-outer-gap) * 2)) !important;
    border-radius: var(--login-shell-radius);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.11) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 44px rgba(49, 60, 124, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    position: relative;
    overflow: hidden;
}

.login-page .login-layout::before,
.login-page .login-layout::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.login-page .login-layout::before {
    width: clamp(24rem, 36vw, 42rem);
    height: clamp(24rem, 36vw, 42rem);
    left: 10%;
    top: 6%;
    background: radial-gradient(circle, rgba(96, 212, 255, 0.5) 0%, rgba(96, 212, 255, 0) 74%);
    filter: blur(90px);
}

.login-page .login-layout::after {
    width: clamp(22rem, 34vw, 38rem);
    height: clamp(22rem, 34vw, 38rem);
    right: 8%;
    bottom: 2%;
    background: radial-gradient(circle, var(--halo-violet) 0%, rgba(182, 104, 255, 0) 72%);
    filter: blur(86px);
}

/* Columnas y paneles protagonistas */
.login-page .login-access-col,
.login-page .login-info-col {
    position: relative;
    z-index: 1;
    background: transparent;
}

.login-page .login-access-panel,
.login-page .login-info-panel {
    border-radius: var(--login-panel-radius);
    border: 1.8px solid transparent;
    background:
        linear-gradient(145deg, var(--glass-bg-top) 0%, var(--glass-bg-bottom) 100%) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.46) 45%, rgba(255, 255, 255, 0.22) 100%) border-box;
    backdrop-filter: blur(30px) saturate(118%);
    -webkit-backdrop-filter: blur(30px) saturate(118%);
    box-shadow: var(--elev-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* Login card más grande */
.login-page .login-access-panel {
    width: min(clamp(22rem, 33vw, 30rem), 100%);
    max-width: none;
    padding: clamp(1.55rem, 2.15vw, 2.35rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--login-font-family);
}

/* Panel info en 4:3, más ancho y muy visible */
.login-page .login-info-panel {
    width: min(clamp(40rem, 48vw, 52rem), 100%);
    max-width: none;
    aspect-ratio: 4 / 3;
    padding: clamp(1.45rem, 2.2vw, 2.3rem);
    color: var(--login-text-main);
    position: relative;
    overflow: hidden;
    font-family: var(--login-font-family);
}

.login-page .login-info-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.03) 100%);
    filter: blur(3px);
}

/* Marca y tipografía con mejor contraste */
.login-page .login-brand {
    min-width: 0;
    width: min(var(--auth-width), 100%);
    max-width: min(var(--auth-width), 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    margin-bottom: var(--space-stack);
    background: linear-gradient(135deg, rgba(84, 139, 241, 0.58) 0%, rgba(112, 155, 244, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--control-radius);
    padding: 0.88rem 1.02rem;
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow: 0 4px 12px rgba(82, 101, 178, 0.1);
}

.login-page .login-brand .navbar-logo-img {
    width: min(100%, 300px);
    height: auto;
    max-height: 58px;
}

.login-page .login-access-panel .mt-4.mb-4 {
    width: min(var(--auth-width), 100%);
    margin-inline: auto;
    margin-bottom: var(--space-stack) !important;
    text-align: center;
}

.login-page .login-access-panel .mt-4.mb-4 .text-muted {
    max-width: 100%;
    margin-inline: auto;
}

.login-page .login-access-panel h1,
.login-page .login-access-panel .text-dark,
.login-page .login-access-panel .form-label,
.login-page .login-info-panel h2,
.login-page .login-info-panel h6,
.login-page .login-info-label {
    color: var(--login-text-main);
}

.login-page .login-access-panel h1,
.login-page .login-info-panel h2 {
    letter-spacing: -0.015em;
    font-weight: 730;
}

.login-page .login-access-panel h1 {
    font-size: clamp(2.15rem, 2.65vw, 2.5rem);
}

.login-page .login-access-panel .form-label,
.login-page .login-info-label,
.login-page .login-info-panel h6 {
    font-weight: 620;
    letter-spacing: 0.005em;
}

.login-page .form-label {
    width: min(var(--auth-width), 100%);
    margin-inline: auto;
    margin-bottom: 0.55rem;
    font-size: 0.98rem;
}

.login-page .login-access-panel .text-muted,
.login-page .login-info-item p {
    color: var(--login-text-soft) !important;
}

.login-page .login-info-item i {
    background: rgba(101, 114, 255, 0.15);
    border-color: rgba(101, 114, 255, 0.34);
    color: #4451bf;
}

/* Inputs y CTA */
.login-page .form-control,
.login-page .form-select {
    max-width: none;
    width: 100%;
    margin-inline: auto;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px) saturate(116%);
    -webkit-backdrop-filter: blur(14px) saturate(116%);
    color: var(--login-text-main);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--control-radius);
    min-height: clamp(3.25rem, 5.4vh, 3.6rem);
    padding: 0.86rem 1.08rem;
    font-size: 1.02rem;
    box-shadow: 0 4px 12px rgba(82, 101, 178, 0.1);
    transform: scale(1);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.login-page .form-control::placeholder {
    color: #6778a9;
}

.login-page .form-control:hover,
.login-page .form-select:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 18px rgba(84, 105, 187, 0.16);
}

.login-page .form-control:focus,
.login-page .form-select:focus {
    background-color: rgba(255, 255, 255, 0.72);
    color: #17203d;
    border-color: rgba(113, 132, 255, 0.82);
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 0 0 0.18rem rgba(107, 124, 255, 0.16), 0 14px 26px rgba(72, 92, 172, 0.2);
}

.login-page #loginForm {
    margin-top: var(--space-stack) !important;
    width: min(var(--auth-width), 100%);
    max-width: min(var(--auth-width), 100%);
    margin-inline: auto;
}

.login-page #loginForm .mb-3,
.login-page #loginForm .mb-4 {
    margin-bottom: var(--space-stack) !important;
}

.login-page .password-field {
    position: relative;
}

.login-page .password-field .form-control {
    padding-right: 3rem;
}

.login-page .password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    z-index: 3;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #6778a9;
    padding: 0;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-page .password-field .password-toggle:hover,
.login-page .password-field .password-toggle:focus,
.login-page .password-field .password-toggle:active {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #4e5f90;
}

.login-page .password-field .password-toggle:focus-visible {
    outline: none;
}

.login-page #loginForm .btn-primary {
    max-width: none;
    width: 100%;
    margin-inline: auto;
    background: linear-gradient(135deg, var(--login-accent) 0%, var(--login-accent-soft) 100%);
    border: none;
    color: #f7faff;
    border-radius: var(--control-radius);
    min-height: clamp(3.25rem, 5.4vh, 3.6rem);
    font-size: 1.05rem;
    font-weight: 620;
    box-shadow: var(--elev-soft), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.login-page #loginForm .btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 14px 24px rgba(74, 101, 184, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

/* Responsive: conserva proporciones y márgenes en pantallas grandes/medias */
@media (max-width: 1199.98px) {
    .login-page .login-info-panel {
        width: min(clamp(34rem, 50vw, 42rem), 100%);
    }
}

@media (max-width: 991.98px) {
    .login-page .login-shell {
        padding: clamp(0.85rem, 3vw, 1.2rem);
    }

    .login-page .login-layout {
        min-height: auto !important;
        border-radius: clamp(0.85rem, 2vw, 1.2rem);
    }

    .login-page .login-access-panel {
        width: min(clamp(20rem, 88vw, 31rem), 100%);
    }
}

@media (min-width: 992px) and (max-width: 1600px) {
    :root {
        --navbar-height: 74px;
    }

    main.col-md-10 {
        padding: 1rem 1.1rem !important;
    }

    #mainContent {
        max-width: 1040px;
    }

    #mainContent .card-header,
    #mainContent .card-body,
    #mainContent .card.p-4 {
        padding: 0.85rem !important;
    }

    .navbar-brand {
        min-width: 240px;
    }

    .navbar-brand .navbar-logo-img {
        width: 220px;
        max-width: 220px;
        height: 46px;
        max-height: 46px;
    }

    .modal-dialog.modal-lg {
        max-width: 760px;
    }
}

body.compact-density {
    --navbar-height: 68px;
}

body.compact-density .navbar-brand {
    min-width: 200px !important;
    min-height: 44px !important;
    padding: 0.2rem 0.4rem !important;
}

body.compact-density .navbar-brand .navbar-logo-img {
    width: 185px !important;
    max-width: 185px !important;
    height: 36px !important;
    max-height: 36px !important;
}

body.compact-density main.col-md-10 {
    padding: 0.75rem 0.85rem !important;
}

body.compact-density #mainContent {
    max-width: 980px !important;
}

body.compact-density #mainContent .card-header,
body.compact-density #mainContent .card-body,
body.compact-density #mainContent .card.p-4 {
    padding: 0.72rem !important;
}

body.compact-density #mainContent .table {
    font-size: 0.9rem !important;
}

body.compact-density #mainContent .btn {
    font-size: 0.88rem !important;
    padding: 0.3rem 0.55rem !important;
}

body.compact-density #mainContent .btn.btn-sm {
    font-size: 0.8rem !important;
    padding: 0.22rem 0.45rem !important;
}

body.compact-density #mainContent .form-control,
body.compact-density #mainContent .form-select,
body.compact-density #mainContent textarea {
    font-size: 0.92rem !important;
    padding: 0.38rem 0.55rem !important;
}

body.compact-density #mainContent .nav.nav-tabs .nav-link {
    font-size: 0.88rem !important;
    padding: 0.3rem 0.5rem !important;
}

body.compact-density .ingreso-page {
    max-width: 860px !important;
    padding: 0.85rem !important;
    border-radius: 14px !important;
}

body.compact-density .ingreso-wizard {
    max-width: 820px !important;
}

body.compact-density .wizard-step {
    padding: 1rem !important;
    border-radius: 12px !important;
    min-height: clamp(31rem, 68vh, 42rem) !important;
}

body.compact-density .wizard-header h4 {
    font-size: 1.15rem !important;
}

body.compact-density .wizard-content {
    padding: 0.95rem !important;
}

body.compact-density .wizard-content .form-control-lg,
body.compact-density .wizard-content .form-select-lg {
    min-height: 2.35rem !important;
    font-size: 0.95rem !important;
}

body.compact-density .modal-dialog.modal-lg {
    max-width: 740px !important;
}

