/* ========================================
   FacTech POS - Modern Theme 2026
   Overrides AdminLTE 3.2.0
   ======================================== */

/* --- CSS Variables --- */
:root {
    --ft-primary: #0F64EA;
    --ft-primary-light: #3B82F6;
    --ft-primary-dark: #0B2EA3;
    --ft-accent: #1DD6E7;
    --ft-sidebar-bg: #0B1A3E;
    --ft-sidebar-bg-dark: #081230;
    --ft-sidebar-text: rgba(255, 255, 255, 0.55);
    --ft-sidebar-text-hover: #60DBEF;
    --ft-sidebar-active-bg: rgba(15, 100, 234, 0.25);
    --ft-body-bg: #e9edf5;
    --ft-card-bg: #ffffff;
    --ft-card-radius: 12px;
    --ft-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --ft-text-primary: #111827;
    --ft-text-secondary: #6b7280;
    --ft-text-muted: #9ca3af;
    --ft-border: #e5e7eb;
    --ft-border-light: #f3f4f6;
    --ft-success: #22c55e;
    --ft-warning: #f59e0b;
    --ft-danger: #f43f5e;
    --ft-info: #3b82f6;
}

/* --- Body & Layout --- */
body.sidebar-mini {
    background-color: var(--ft-body-bg) !important;
}

.content-wrapper {
    background-color: var(--ft-body-bg) !important;
}

/* --- Sidebar --- */
.main-sidebar {
    background: linear-gradient(180deg, var(--ft-sidebar-bg) 0%, var(--ft-sidebar-bg-dark) 100%) !important;
    border-right: none !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1) !important;
}

.main-sidebar .brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.main-sidebar .brand-link .brand-image {
    border-radius: 8px !important;
    max-height: 32px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
}

.brand-logo-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: linear-gradient(135deg, var(--ft-primary) 0%, #1DD6E7 100%) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    margin-right: 2px !important;
}

.main-sidebar .brand-link .brand-text {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
}

.sidebar .user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 14px 16px !important;
    margin: 0 !important;
}

.sidebar .user-panel .image img {
    border-radius: 10px !important;
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
    box-shadow: none !important;
}

.sidebar .user-panel .info a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.sidebar .nav-header {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 16px 16px 8px !important;
    font-weight: 600 !important;
}

.sidebar .nav-sidebar .nav-item > .nav-link {
    color: var(--ft-sidebar-text) !important;
    border-radius: 8px !important;
    margin: 1px 8px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.sidebar .nav-sidebar .nav-item > .nav-link:hover {
    background: var(--ft-sidebar-active-bg) !important;
    color: var(--ft-sidebar-text-hover) !important;
}

.sidebar .nav-sidebar .nav-item > .nav-link.active {
    background: rgba(15, 100, 234, 0.25) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.sidebar .nav-sidebar .nav-item > .nav-link .nav-icon {
    font-size: 14px !important;
    width: 20px !important;
    text-align: center !important;
    margin-right: 8px !important;
    color: inherit !important;
}

.sidebar .nav-sidebar .nav-item > .nav-link p {
    font-size: 13px !important;
}

.sidebar .nav-sidebar .nav-item > .nav-link p .right {
    color: rgba(255, 255, 255, 0.3) !important;
}

.sidebar .nav-treeview {
    background: transparent !important;
    padding-left: 8px !important;
}

.sidebar .nav-treeview .nav-link {
    font-size: 12.5px !important;
    padding: 7px 12px 7px 20px !important;
}

/* --- Header / Navbar --- */
.main-header.navbar {
    background: var(--ft-sidebar-bg) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    min-height: 50px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
}

.main-header .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.main-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.main-header .nav-link i {
    font-size: 15px !important;
}

.main-header .dropdown-menu {
    border: 1px solid var(--ft-border) !important;
    border-radius: var(--ft-card-radius) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 8px !important;
}

.main-header .dropdown-item {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.main-header .dropdown-item:hover {
    background: var(--ft-border-light) !important;
}

/* --- Content --- */
.content-header {
    padding: 12px 0.5rem 0 !important;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background-color: transparent !important;
    padding: 6px 0 !important;
    margin-bottom: 0;
    list-style: none;
    border: none !important;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--ft-text-secondary);
    font-weight: 400;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--ft-primary);
    text-decoration: none;
}

.breadcrumb-item.active a {
    color: var(--ft-primary) !important;
    font-weight: 500;
}

/* --- Cards --- */
.card {
    border: none !important;
    border-radius: var(--ft-card-radius) !important;
    box-shadow: var(--ft-card-shadow) !important;
    margin-bottom: 16px !important;
    overflow: hidden;
}

.card .card-header {
    background: var(--ft-card-bg) !important;
    border-bottom: 1px solid var(--ft-border-light) !important;
    padding: 14px 18px !important;
}

.card .card-header .card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--ft-text-primary) !important;
}

.card .card-header .card-title i {
    color: var(--ft-primary) !important;
    margin-right: 6px;
}

.card .card-body {
    padding: 18px !important;
}

.card .card-footer {
    background: var(--ft-card-bg) !important;
    border-top: 1px solid var(--ft-border-light) !important;
}

/* --- Info Boxes (Dashboard stat cards) --- */
.info-box {
    border-radius: var(--ft-card-radius) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    border-left: 4px solid transparent !important;
    min-height: auto !important;
    padding: 20px 18px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.info-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.info-box .info-box-icon {
    border-radius: 12px !important;
    width: 54px !important;
    height: 54px !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 54px !important;
}

.info-box .info-box-icon.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
    color: #ffffff !important;
}

.info-box .info-box-icon.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%) !important;
    color: #ffffff !important;
}

.info-box .info-box-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: #ffffff !important;
}

.info-box .info-box-icon.bg-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%) !important;
    color: #ffffff !important;
}

.col-md-3:nth-child(1) .info-box { border-left-color: var(--ft-info) !important; }
.col-md-3:nth-child(2) .info-box { border-left-color: var(--ft-success) !important; }
.col-md-3:nth-child(3) .info-box { border-left-color: var(--ft-warning) !important; }
.col-md-3:nth-child(4) .info-box { border-left-color: var(--ft-danger) !important; }

.info-box .info-box-content {
    padding: 0 0 0 16px !important;
}

.info-box .info-box-text {
    font-size: 11px !important;
    color: var(--ft-text-muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.info-box .info-box-number {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--ft-text-primary) !important;
    margin-top: 2px !important;
}

/* --- Tables --- */
.table {
    margin-bottom: 0 !important;
}

.table thead tr {
    background-color: transparent !important;
    color: var(--ft-text-muted) !important;
}

.table thead th {
    border-top-width: 0 !important;
    border-bottom: 1px solid var(--ft-border-light) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--ft-text-muted) !important;
    padding: 10px 14px !important;
}

.table tbody td {
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: var(--ft-text-primary) !important;
    border-bottom: 1px solid #f9fafb !important;
    vertical-align: middle !important;
}

.table tbody tr:hover {
    background-color: #f9fafb !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafbfc !important;
}

/* --- Buttons --- */
.btn {
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.btn-primary {
    background: var(--ft-primary) !important;
    box-shadow: 0 1px 3px rgba(15, 100, 234, 0.3) !important;
}

.btn-primary:hover {
    background: var(--ft-primary-dark) !important;
    box-shadow: 0 4px 8px rgba(15, 100, 234, 0.3) !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--ft-danger) !important;
}

.btn-success {
    background: var(--ft-success) !important;
}

.btn-warning {
    background: var(--ft-warning) !important;
}

.btn-info {
    background: var(--ft-info) !important;
}

/* --- Forms --- */
.form-control {
    border-radius: 8px !important;
    border: 1px solid var(--ft-border) !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control:focus {
    border-color: var(--ft-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(15, 100, 234, 0.1) !important;
}

/* --- Select2 --- */
.select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    border-color: var(--ft-border) !important;
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    font-size: 13px !important;
    color: var(--ft-text-primary) !important;
    padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-dropdown {
    border: 1px solid var(--ft-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--ft-border) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    margin: 4px !important;
    width: calc(100% - 8px) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--ft-primary-light) !important;
    outline: none !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: var(--ft-text-primary) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--ft-primary) !important;
    color: #fff !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    width: calc(100% - 8px) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(15, 100, 234, 0.08) !important;
    color: var(--ft-primary) !important;
}

.select2-results__options {
    max-height: 220px !important;
}

/* --- Modals --- */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid var(--ft-border-light) !important;
    padding: 16px 20px !important;
}

.modal-header .modal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.modal-footer {
    border-top: 1px solid var(--ft-border-light) !important;
    padding: 12px 20px !important;
}

/* --- DataTables override --- */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px !important;
    border: 1px solid var(--ft-border) !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: none !important;
    margin: 0 2px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--ft-primary) !important;
    color: #fff !important;
    border: none !important;
}

.dataTables_scroll {
    overflow: auto;
}

/* --- Alerts --- */
.alert {
    border: none !important;
    border-radius: var(--ft-card-radius) !important;
}

/* --- Badges / Pills --- */
.badge {
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
}

/* ============================================
   KPI CARDS — jerarquía primaria
   ============================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.kpi {
    --accent: #0F64EA;
    position: relative;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 18px 20px 30px;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.22s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* Resplandor sutil en la esquina — reemplaza la barra de color */
.kpi::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.07;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.kpi:hover {
    transform: translateY(-3px);
    border-color: #e3e8f0;
    box-shadow: 0 12px 28px -8px rgba(16, 24, 40, 0.14);
}

.kpi:hover::before {
    opacity: 0.13;
}

.kpi__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.kpi__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8b93a7;
    line-height: 1.5;
}

.kpi__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(15, 100, 234, 0.12);
    color: var(--accent);
    font-size: 15px;
}

.kpi--blue  .kpi__icon { background: rgba(15, 100, 234, 0.12); }
.kpi--green .kpi__icon { background: rgba(16, 185, 129, 0.12); }
.kpi--amber .kpi__icon { background: rgba(245, 158, 11, 0.14); }
.kpi--rose  .kpi__icon { background: rgba(244, 63, 94, 0.12); }

.kpi__value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: #0d1526;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}

.kpi__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.kpi__hint {
    font-size: 12px;
    color: #98a1b3;
}

/* Sparkline al pie de la tarjeta */
.kpi__spark {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 34px;
    opacity: 0.5;
    pointer-events: none;
}

.kpi__spark polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* Acentos por tarjeta + lavado de color sutil */
.kpi--blue  {
    --accent: #0F64EA;
    background: linear-gradient(160deg, rgba(15, 100, 234, 0.08) 0%, #ffffff 58%);
}
.kpi--green {
    --accent: #10b981;
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.07) 0%, #ffffff 58%);
}
.kpi--amber {
    --accent: #f59e0b;
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.08) 0%, #ffffff 58%);
}
.kpi--rose  {
    --accent: #f43f5e;
    background: linear-gradient(160deg, rgba(244, 63, 94, 0.07) 0%, #ffffff 58%);
}


/* --- Píldoras de variación --- */
.delta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
}

.delta i {
    font-size: 9px;
}

.delta--up {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.delta--down {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
}

.delta--warn {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.delta--neutral {
    background: rgba(15, 100, 234, 0.1);
    color: #0F64EA;
}

/* ============================================
   STAT STRIP — métricas secundarias
   ============================================ */
.stat-strip {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 6px;
    gap: 6px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.stat-strip__item {
    --accent: #0F64EA;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    border-radius: 10px;
    min-width: 0;
    background: linear-gradient(135deg, rgba(15, 100, 234, 0.06) 0%, transparent 65%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-strip__item:hover {
    transform: translateY(-2px);
}

.stat-strip__item > i {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 4px 10px -3px var(--accent);
}

/* Acentos por métrica */
.stat-strip__item--blue {
    --accent: #0F64EA;
    background: linear-gradient(135deg, rgba(15, 100, 234, 0.08) 0%, transparent 65%);
}

.stat-strip__item--green {
    --accent: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 65%);
}

.stat-strip__item--amber {
    --accent: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 65%);
}

.stat-strip__item--rose {
    --accent: #f43f5e;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, transparent 65%);
}

.stat-strip__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-strip__value {
    font-size: 19px;
    font-weight: 700;
    color: #0d1526;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-strip__label {
    font-size: 12px;
    color: #8b93a7;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .stat-strip {
        flex-wrap: wrap;
    }

    .stat-strip__item {
        flex: 1 1 calc(50% - 6px);
    }

    .kpi__value {
        font-size: 26px;
    }
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid var(--ft-border) !important;
    background: var(--ft-card-bg) !important;
    font-size: 13px !important;
    color: var(--ft-text-secondary) !important;
    padding: 12px 20px !important;
}

.main-footer a {
    color: var(--ft-primary) !important;
    text-decoration: none !important;
}

.main-footer a:hover {
    color: var(--ft-primary-dark) !important;
}

/* --- Scrollbar --- */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* --- Existing utility classes --- */
.password-progress {
    margin-top: 10px;
    margin-bottom: 0;
}

.form-control-checkbox {
    height: 25px;
    width: 25px;
    text-align: center;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.cursor-pointer {
    cursor: pointer;
}

a.card-icon p.desc {
    text-align: center;
    font-size: 12px !important;
}

a.card-icon {
    text-decoration: none !important;
    color: var(--ft-text-primary) !important;
    border: 1px solid var(--ft-border) !important;
    border-radius: var(--ft-card-radius) !important;
    transition: all 0.2s ease !important;
}

.card-icon-selected {
    background-color: rgba(15, 100, 234, 0.08) !important;
    border-color: var(--ft-primary) !important;
}

a.card-icon:hover {
    background-color: rgba(15, 100, 234, 0.05) !important;
    border-color: var(--ft-primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.low-stock {
    background-color: var(--ft-danger) !important;
    color: white !important;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
}

.img-small {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .modal-xl {
        width: 90%;
        max-width: 1200px;
    }
}

@media (max-width: 767px) {
    .input-group.bootstrap-touchspin.bootstrap-touchspin-injected {
        width: 200px !important;
    }
}

/* --- Elevation overrides --- */
.elevation-2 {
    box-shadow: none !important;
}

/* --- SweetAlert2 override --- */
.swal2-popup {
    border-radius: 16px !important;
}

.swal2-confirm {
    border-radius: 8px !important;
}

/* --- jQuery Confirm override --- */
.jconfirm .jconfirm-box {
    border-radius: 16px !important;
}

/* --- Dashboard row matching heights --- */
.dashboard-row-matched {
    display: flex !important;
    flex-wrap: wrap !important;
}

.dashboard-row-matched > [class*="col-"] {
    display: flex !important;
}

.dashboard-row-matched > [class*="col-"] > .card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.dashboard-row-matched > [class*="col-"] > .card > .card-body {
    flex: 1 !important;
}

/* --- Highcharts theme colors --- */
.highcharts-color-0 { fill: #0F64EA; stroke: #0F64EA; }
.highcharts-color-1 { fill: #22c55e; stroke: #22c55e; }
.highcharts-color-2 { fill: #f59e0b; stroke: #f59e0b; }
.highcharts-color-3 { fill: #f43f5e; stroke: #f43f5e; }
.highcharts-color-4 { fill: #3b82f6; stroke: #3b82f6; }
.highcharts-color-5 { fill: #1DD6E7; stroke: #1DD6E7; }
.highcharts-color-6 { fill: #14b8a6; stroke: #14b8a6; }
.highcharts-color-7 { fill: #f97316; stroke: #f97316; }
.highcharts-color-8 { fill: #ec4899; stroke: #ec4899; }
.highcharts-color-9 { fill: #06b6d4; stroke: #06b6d4; }
