/* UNIFIED STYLES FOR COURTBET INVENTARIOS */
@font-face {
    font-family: "Geist";
    src: url("../fonts/geist/Geist-Regular.woff2");
}
:root {
    --m-blue-0: #f0f8ff;
    --m-blue-1: #e0f2fe;
    --m-blue-2: #bae6fd;
    --m-blue-3: #7dd3fc;
    --m-blue-4: #38bdf8;
    --m-blue-5: #0ea5e9;
    --m-blue-6: #0284c7;
    --m-blue-7: #0369a1;
    --m-blue-8: #075985;
    --m-blue-9: #0c4a6e;
    --m-blue-10: #082f49;
    --m-blue-11: #0c1e35;
    --m-blue-12: #051a2e;
    --m-indigo-0: #eef2ff;
    --m-indigo-1: #e0e7ff;
    --m-indigo-2: #c7d2fe;
    --m-indigo-3: #a5b4fc;
    --m-indigo-4: #818cf8;
    --m-indigo-5: #6366f1;
    --m-indigo-6: #4f46e5;
    --m-indigo-7: #4338ca;
    --m-indigo-8: #3730a3;
    --m-indigo-9: #312e81;
    --m-indigo-10: #2e1065;
    --m-indigo-11: #1e1b4b;
    --m-indigo-12: #1e0b41;
}
:root,
[data-bs-theme="light"] {
    --m-primary: var(--m-blue-7);
    --m-primary-rgb: 3, 105, 161;
    --m-primary-subtle: var(--m-blue-2);
    --m-text-on-primary: #fff;
}
[data-bs-theme="dark"] {
    --m-primary: var(--m-blue-3);
    --m-primary-rgb: 125, 211, 252;
    --m-primary-subtle: var(--m-blue-12);
    --m-text-on-primary: #000;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    min-height: 100vh;
}
html, body {
    height: 100%;
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}
body {
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}
.container-fluid {
    max-width: 1300px !important;
}
.container {
    max-width: 1300px !important;
}
/* LOGIN PAGE STYLES */
.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    overflow: hidden;
}
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.background-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}
.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}
.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}
.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}
.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.6s ease-out;
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.logo-icon {
    font-size: 35px;
    color: white;
}
.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}
.login-form {
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.input-wrapper {
    position: relative;
    display: block;
    height: auto;
}
.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}
.custom-input {
    width: 100%;
    height: 44px;
    padding: 10px 15px 10px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    box-sizing: border-box;
}
.custom-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}
.custom-input::placeholder {
    color: #999;
}
.password-toggle {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 3;
}
.password-toggle:hover {
    color: #1e40af;
}
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.login-btn:active {
    transform: translateY(0);
}
.login-btn i {
    font-size: 18px;
}
.login-footer {
    text-align: center;
    margin-top: 30px;
}
.footer-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}
.version-text {
    font-size: 11px;
    color: #999;
}
.footer-text i,
.version-text i {
    margin-right: 5px;
    opacity: 0.7;
}
.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 160px;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}
.dashboard-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.dashboard-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.dashboard-card .card-subtitle {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    opacity: 0.8;
}
.stats-card {
    background: linear-gradient(135deg, var(--m-primary) 0%, rgba(var(--m-primary-rgb), 0.8) 100%);
    color: white;
}
.stats-card .card-icon {
    opacity: 0.9;
}
.welcome-section {
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.welcome-section h1,
.welcome-section p,
.welcome-section .text-muted,
.welcome-section .bi {
    color: #fff !important;
}
.welcome-section .bi-calendar-check {
    color: #fff !important;
}
.unified-breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
}
.unified-breadcrumb .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}
.unified-breadcrumb .breadcrumb-item {
    font-size: 0.9rem;
    color: #6c757d;
}
.unified-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #adb5bd;
    font-weight: 400;
    margin: 0 0.5rem;
}
.unified-breadcrumb .breadcrumb-link {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}
.unified-breadcrumb .breadcrumb-link:hover {
    color: var(--m-primary);
    background-color: rgba(var(--m-primary-rgb), 0.1);
}
.unified-breadcrumb .breadcrumb-item.active,
.unified-breadcrumb .breadcrumb-item.active span,
.unified-breadcrumb .breadcrumb-item.active.text-success,
.unified-breadcrumb .breadcrumb-item.active .text-success {
    color: var(--m-primary) !important;
}
.unified-breadcrumb .breadcrumb-item i {
    font-size: 0.85rem;
    opacity: 0.8;
}
.action-buttons-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}
.main-content {
    height: calc(100vh - 100px);
    overflow: auto;
}
.warehouses-details-content {
    overflow: visible;
    height: auto;
    min-height: calc(100vh - 100px);
    padding-bottom: 2rem;
}
#dGrid {
    height: 100%;
    min-height: 500px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}
.card-item {
    min-width: 0;
}
.card-item .card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, .125);
}
.card-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}
.settings-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 200px;
    background: rgba(var(--m-primary-rgb), 0.05);
}
.settings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.settings-card .card-body {
    padding: 2rem;
}
.settings-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.form-check-input:checked {
    background-color: var(--m-primary);
    border-color: var(--m-primary);
}
.company-logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.version-badge {
    background: linear-gradient(135deg, var(--m-primary) 0%, rgba(var(--m-primary-rgb), 0.8) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.warehouse-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.warehouse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.warehouse-card.active {
    border-left: 4px solid var(--bs-success);
}
.warehouse-card.inactive {
    opacity: 0.7;
    border-left: 4px solid var(--bs-secondary);
}
.warehouse-card.inactive:hover {
    opacity: 1;
}
.warehouse-icon {
    font-size: 2rem;
    color: var(--m-primary);
    margin-bottom: 1rem;
}
.search-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.search-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(var(--m-primary-rgb), 0.1);
}
.loading-spinner {
    color: var(--m-primary);
}
.warehouse-grid {
    gap: 1.5rem;
}
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--bs-secondary);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.filter-buttons {
    margin-bottom: 1rem;
}
.filter-btn {
    margin-right: 0.5rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: var(--m-primary);
    border-color: var(--m-primary);
}
.warehouse-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-active {
    background-color: var(--bs-success);
    color: white;
}
.status-inactive {
    background-color: var(--bs-secondary);
    color: white;
}
.warehouse-actions {
    margin-top: 1rem;
}
.btn-access {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}
.btn-access:hover {
    transform: translateY(-2px);
}
.btn-access:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.warehouse-info {
    margin-bottom: 1rem;
}
.warehouse-management-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.btn-management {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-management:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.card-img-top.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.card-img-top.lazy-image.loaded {
    opacity: 1;
}
.image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    font-size: 3rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.image-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}
.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, .125);
    padding: 1rem;
}
.btn-group-sm .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}
.observation-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
}
.card-text {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}
.card-text strong {
    color: var(--bs-dark);
    font-weight: 600;
}
.spinner-border {
    width: 1rem;
    height: 1rem;
}
.search-card {
    transition: all 0.3s ease;
}
.search-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.search-input-group .form-control:focus {
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(var(--m-primary-rgb), 0.1);
}
.search-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.roboto-regular {
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}
.float-right {
    float: right;
}
.button-container {
    display: inline-block;
    position: relative;
    max-height: 150px;
}
.button-container a {
    position: absolute;
    bottom: 115px;
    right: 0em;
    color: white;
}
.button-container-files {
    display: inline-block;
    position: relative;
    max-height: 150px;
}
.button-container-files a {
    position: absolute;
    bottom: 35px;
    right: -5px;
    color: #3a3a3a;
}
.glass {
    background: rgba(255, 255, 255, 0.51);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(58, 58, 58, 0.1);
}
.img-del {
    margin-bottom: 15px;
    position: relative;
}
.btn-catalogs {
    margin: auto 5px;
}
.navbar-center {
    align-items: center;
    justify-content: center;
}
.navbar-right {
    align-items: end;
    justify-content: end;
}
.badge-status {
    font-size: .6em;
    margin-left: 5px;
}
.select {
    position: absolute;
    bottom: 10px;
    right: 10px;
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    transform: scale(1.5);
}
.wb-delete {
    color: red;
}
.content-sidebar {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
/* RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
    .navbar-brand {
        display: none !important;
    }
    .tabulator-paginator label,
    .tabulator-pages {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .tabulator-page {
        margin: 5px 4px;
        background: hsla(0, 0%, 100%, .2);
        border: 1px solid #aaa;
        border-radius: 3px;
        display: inline-block;
        padding: 4px 15px;
        font-size: 1.3em;
    }
}
@media (max-width: 768px) {
    .unified-breadcrumb {
        padding: 0.5rem 0;
    }
    .unified-breadcrumb .breadcrumb-item {
        font-size: 0.8rem;
    }
    .unified-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
        margin: 0 0.25rem;
    }
    .unified-breadcrumb .breadcrumb-link {
        padding: 0.15rem 0.35rem;
    }
    .dashboard-card .card-body {
        padding: 1.5rem 1rem;
    }
    .dashboard-card .card-icon {
        font-size: 2rem;
    }
    .welcome-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .main-content {
        height: calc(100vh - 80px);
    }
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    .settings-card {
        min-height: 180px;
    }
    .search-container {
        padding: 1rem;
    }
    .warehouse-card {
        margin-bottom: 1rem;
    }
    .search-card .card-body {
        padding: 1rem;
    }
    .search-card .row {
        flex-direction: column;
    }
    .search-card .text-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    .card-img-top {
        height: 150px;
    }
    .image-placeholder {
        height: 150px;
    }
}
@media (max-width: 576px) {
    .unified-breadcrumb {
        padding: 0.25rem 0;
    }
    .unified-breadcrumb .breadcrumb-item {
        font-size: 0.75rem;
    }
    .unified-breadcrumb .breadcrumb-item i {
        font-size: 0.7rem;
    }
    .unified-breadcrumb .breadcrumb-link {
        padding: 0.1rem 0.25rem;
    }
    .main-content {
        height: calc(100vh - 60px);
    }
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    .login-title {
        font-size: 24px;
    }
    .logo-container {
        width: 60px;
        height: 60px;
    }
    .logo-icon {
        font-size: 25px;
    }
}
/* TABULATOR SPECIFIC STYLES */
.image-capture .tabulator-col-title {
    background: #86E4F7 !important;
    font-weight: bold !important;
}
.document-capture .tabulator-col-title {
    background: #F79986 !important;
    font-weight: bold !important;
}
.button-block {
    width: 100%;
    display: block;
    box-sizing: border-box;
    height: 100px;
}
/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal.show {
    display: block;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}
.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}
.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.375rem - 1px);
    border-bottom-left-radius: calc(0.375rem - 1px);
}
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
}
.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:hover {
    color: #212529;
}
.btn-primary {
    color: #fff;
    background-color: var(--m-primary);
    border-color: var(--m-primary);
}
.btn-primary:hover {
    color: #fff;
    background-color: rgba(var(--m-primary-rgb), 0.8);
    border-color: rgba(var(--m-primary-rgb), 0.8);
}
.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    color: #fff;
    background-color: #5c636a;
    border-color: #565e64;
}
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--m-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--m-primary-rgb), 0.25);
}
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    appearance: none;
}
.form-select:focus {
    border-color: var(--m-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--m-primary-rgb), 0.25);
}
.form-select-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.me-auto {
    margin-right: auto !important;
}
.mb-2 {
    margin-bottom: 0.5rem !important;
}
.mb-lg-0 {
    margin-bottom: 0 !important;
}
.d-flex {
    display: flex !important;
}
.align-items-center {
    align-items: center !important;
}
.text-danger {
    color: #dc3545 !important;
}
.position-relative {
    position: relative !important;
}
.position-absolute {
    position: absolute !important;
}
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.navbar-expand-md {
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.navbar-expand-md .navbar-nav {
    flex-direction: row;
}
.navbar-expand-md .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}
.navbar-expand-md .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}
.navbar-expand-md .navbar-toggler {
    display: none;
}
@media (min-width: 768px) {
    .navbar-expand-md .navbar-collapse {
        display: flex !important;
    }
    .navbar-expand-md .navbar-toggler {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .navbar-expand-md > .container-fluid,
    .navbar-expand-md > .container {
        padding-right: 0;
        padding-left: 0;
    }
    .navbar-expand-md .navbar-toggler {
        display: block;
    }
    .navbar-expand-md .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
    }
    .navbar-expand-md .navbar-collapse.show {
        display: flex;
    }
    .navbar-expand-md .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    .navbar-expand-md .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}
.tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: 0.875rem;
    word-wrap: break-word;
    opacity: 0;
}
.tooltip.show {
    opacity: 0.9;
}
.tooltip .tooltip-arrow {
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.4rem;
}
.tooltip .tooltip-arrow::before {
    position: absolute;
    content: "";
    border-color: transparent;
    border-style: solid;
}
.tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 0.375rem;
}
.carousel {
    position: relative;
}
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}
.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}
.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
}
.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.carousel-indicators .active {
    background-color: #fff;
}
body.modal-open {
    overflow: hidden;
}
.fade {
    transition: opacity 0.15s linear;
}
.fade:not(.show) {
    opacity: 0;
}
.show {
    display: block !important;
}
.hidden {
    display: none !important;
}
/* RECORRIDOS PAGE SPECIFIC STYLES */
.recorridos-container {
    padding: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.recorridos-search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recorridos-search-card:focus-within {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.recorridos-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--m-blue-2);
    transition: all 0.3s ease;
    height: 100%;
}

.recorridos-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--m-primary);
}

.recorridos-card .card-icon {
    color: var(--m-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recorridos-card .card-title {
    color: var(--m-blue-8);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recorridos-card .card-subtitle {
    color: var(--m-blue-7);
    font-size: 0.9rem;
}

.recorridos-status-active {
    color: var(--m-primary);
}

.recorridos-status-inactive {
    color: var(--bs-secondary);
}

.recorridos-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.recorridos-actions .btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recorridos-actions .btn:hover {
    transform: translateY(-2px);
}

.recorridos-actions .btn-primary {
    background-color: var(--m-primary);
    border-color: var(--m-primary);
}

.recorridos-actions .btn-primary:hover {
    background-color: var(--m-blue-6);
    border-color: var(--m-blue-6);
}

.recorridos-actions .btn-secondary {
    background-color: var(--m-blue-4);
    border-color: var(--m-blue-4);
    color: white;
}

.recorridos-actions .btn-secondary:hover {
    background-color: var(--m-blue-5);
    border-color: var(--m-blue-5);
}

.recorridos-actions .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.recorridos-actions .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Modal styles for recorridos */
.recorridos-modal .modal-header {
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-blue-6) 100%);
    color: white;
    border-bottom: none;
}

.recorridos-modal .modal-title {
    color: white;
}

.recorridos-modal .btn-close {
    filter: invert(1);
}

.recorridos-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.recorridos-modal .form-control:focus {
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(var(--m-primary-rgb), 0.1);
}

.recorridos-modal .form-select:focus {
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(var(--m-primary-rgb), 0.1);
}

/* Detalles section styles */
.detalles-section {
    background: linear-gradient(135deg, var(--m-blue-0) 0%, var(--m-blue-1) 100%);
    border-radius: 12px;
    padding: 1rem;
}

.detalles-card {
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--m-primary);
    transition: all 0.3s ease;
}

.detalles-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detalles-badge {
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-blue-6) 100%);
    color: white;
    font-weight: 600;
}

/* Activos section styles */
.activos-section {
    background: linear-gradient(135deg, var(--m-blue-0) 0%, var(--m-blue-1) 100%);
    border-radius: 12px;
    padding: 1rem;
}

.activos-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--m-blue-2);
    transition: all 0.3s ease;
}

.activos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--m-primary);
}

.activos-card .btn-outline-primary {
    color: var(--m-primary);
    border-color: var(--m-primary);
}

.activos-card .btn-outline-primary:hover {
    background-color: var(--m-primary);
    border-color: var(--m-primary);
    color: white;
}

/* QR Scanner styles */
.qr-scanner-modal .modal-header {
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-blue-6) 100%);
    color: white;
}

.qr-scanner-modal .modal-title {
    color: white;
}

.qr-scanner-container {
    background: var(--m-blue-0);
    border-radius: 8px;
    padding: 1rem;
    border: 2px dashed var(--m-blue-3);
}

/* Status indicators */
.status-ok {
    color: var(--m-primary);
    background-color: rgba(var(--m-primary-rgb), 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-nok {
    color: var(--bs-danger);
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-na {
    color: var(--bs-warning);
    background-color: rgba(255, 193, 7, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive adjustments for recorridos */
@media (max-width: 768px) {
    .recorridos-actions {
        flex-direction: column;
    }
    
    .recorridos-actions .btn {
        width: 100%;
    }
    
    .recorridos-card .card-body {
        padding: 1rem;
    }
    
    .recorridos-card .card-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .recorridos-container {
        padding: 0.5rem;
    }
    
    .recorridos-search-card {
        margin-bottom: 1rem;
    }
    
    .recorridos-card {
        margin-bottom: 1rem;
    }
}

/* Forzar azul en botones primarios de recorridos */
.container-fluid .btn.btn-primary,
.card-features .btn.btn-primary {
  background-color: var(--m-primary) !important;
  border-color: var(--m-primary) !important;
  color: #fff !important;
}
.container-fluid .btn.btn-primary:hover,
.card-features .btn.btn-primary:hover {
  background-color: var(--m-blue-6) !important;
  border-color: var(--m-blue-6) !important;
  color: #fff !important;
} 