@import 'bootstrap/dist/css/bootstrap.min.css';
@import 'bootstrap-icons/font/bootstrap-icons.css';
@import 'datatables.net-bs5/css/dataTables.bootstrap5.min.css';

/* ============================================= */
/* ROOT VARIABLES */
/* ============================================= */
:root {
    --primary-color: #2d8f87;
    --secondary-color: #5FC3A5;
    --success-color: #2d8f87;
    --danger-color: #e63946;
    --warning-color: #f4a261;
    --info-color: #4895ef;
    --dark-color: #0b2730;
    --light-color: #f8f9fa;
    --teal-primary: #2d8f87;
    --teal-dark: #1a5c63;
    --teal-darker: #0b2730;
    --teal-light: #5FC3A5;
    --teal-bg: #e8f5e9;
    --teal-border: #c8e6c9;
    --teal-header: #1a5c63;
    --teal-header-dark: #0e3d31;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

/* ============================================= */
/* GLOBAL STYLES */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Poppins', system-ui, -apple-system, 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    overflow-x: hidden;
    color: #1a2a3a;
    line-height: 1.6;
}

/* ============================================= */
/* CONTENT WRAPPER */
/* ============================================= */
.content-wrapper {
    padding: 20px 30px 60px 30px !important;
    min-height: calc(100vh - 60px);
    transition: all 0.3s ease;
}

/* ============================================= */
/* CARD STYLES */
/* ============================================= */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-stats {
    border: none;
    border-top: 4px solid var(--teal-primary);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.card-stats::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent, rgba(45, 143, 135, 0.05));
    border-radius: 50%;
}

.card-stats:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(45, 143, 135, 0.15);
}

.card-header,
.card-header.bg-white {
    background-color: white !important;
    border-bottom: 3px solid var(--teal-primary) !important;
    padding: 1.25rem 1.5rem;
}

.card-header h5,
.card-header h6 {
    color: var(--teal-header) !important;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ============================================= */
/* TABLE STYLES */
/* ============================================= */
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table thead th,
.table thead td,
.table-dark th,
.dataTable thead th,
.dataTable thead td {
    background: linear-gradient(135deg, #1a5c63 0%, #1a5c63 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #2d8f87 !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.table tbody td {
    vertical-align: middle;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(45, 143, 135, 0.04), rgba(95, 195, 165, 0.02)) !important;
}

.table-bordered {
    border-color: rgba(45, 143, 135, 0.2) !important;
}

.table-bordered th,
.table-bordered td {
    border-color: rgba(212, 224, 223, 0.663) !important;
}

/* ============================================= */
/* DATATABLE STYLES */
/* ============================================= */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #1a2a3a;
    font-size: 14px;
    font-weight: 500;
}

.dataTable thead .sorting:before,
.dataTable thead .sorting:after,
.dataTable thead .sorting_asc:before,
.dataTable thead .sorting_asc:after,
.dataTable thead .sorting_desc:before,
.dataTable thead .sorting_desc:after {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dataTables_filter input,
.dataTables_length select {
    border: 2px solid rgba(45, 143, 135, 0.2) !important;
    border-radius: 12px;
    padding: 8px 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
    border-color: var(--teal-primary) !important;
    box-shadow: 0 0 0 4px rgba(45, 143, 135, 0.15) !important;
    outline: none;
}

/* ============================================= */
/* PAGINATION */
/* ============================================= */
.pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    align-items: center;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(45, 143, 135, 0.3);
}

.pagination .page-link {
    color: #1a5c63 !important;
    border-radius: 10px !important;
    margin: 0 4px;
    border: 1px solid rgba(45, 143, 135, 0.2);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(45, 143, 135, 0.1), rgba(95, 195, 165, 0.1)) !important;
    color: #0e3d31 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 143, 135, 0.1);
}

.pagination .page-link i {
    font-size: 12px;
    line-height: 1;
}

.pagination .page-link svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.pagination .page-item.disabled .page-link {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(45, 143, 135, 0.1) !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Fallback/Native DataTables Pagination Styling */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #1a5c63 !important;
    border-radius: 10px !important;
    margin: 0 4px !important;
    border: 1px solid rgba(45, 143, 135, 0.2) !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    background: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, rgba(45, 143, 135, 0.1), rgba(95, 195, 165, 0.1)) !important;
    color: #0e3d31 !important;
    transform: translateY(-2px) !important;
    border-color: rgba(45, 143, 135, 0.3) !important;
    box-shadow: 0 4px 8px rgba(45, 143, 135, 0.1) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(45, 143, 135, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(45, 143, 135, 0.1) !important;
    color: #a0aec0 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================= */
/* BADGES */
/* ============================================= */
.badge-active,
.badge-success {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(45, 143, 135, 0.3);
}

.badge-inactive {
    background: linear-gradient(135deg, #e63946, #c1121f) !important;
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
}

/* ============================================= */
/* BUTTONS */
/* ============================================= */
.btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(45, 143, 135, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a5c63, #0e3d31) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 143, 135, 0.45);
}

.btn-outline-primary {
    color: #1a5c63;
    border: 2px solid #2d8f87;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2d8f87, #1a5c63);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 143, 135, 0.3);
    border-color: transparent;
}

.btn-secondary {
    background: linear-gradient(135deg, #5FC3A5, #2d8f87) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(95, 195, 165, 0.35);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e63946, #c1121f) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c1121f, #a4161a) !important;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #2a9d8f, #21867a) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.35);
}

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

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 16px;
}

/* ============================================= */
/* MODAL STYLES */
/* ============================================= */
.modal {
    z-index: 1060 !important;
    will-change: opacity;
}

.modal-backdrop {
    z-index: 1050 !important;
    will-change: opacity;
}

.modal-dialog {
    z-index: 1061;
    position: relative;
}

.modal.show .modal-dialog {
    transform: none;
    z-index: 1061;
}

.modal-open .sidebar,
.modal-open .content-wrapper {
    z-index: auto;
}

.modal-open .modal-backdrop {
    z-index: 1050 !important;
}

.modal-open {
    overflow: auto;
    padding-right: 0 !important;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal {
    pointer-events: none;
}

.modal.show {
    pointer-events: auto;
}

.modal-header {
    background: linear-gradient(135deg, #1a5c63, #0e3d31) !important;
    color: white !important;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease;
}

.modal-header .btn-close:hover {
    transform: rotate(90deg);
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    contain: layout style paint;
}

.modal-footer {
    border-top: 1px solid rgba(45, 143, 135, 0.15);
    padding: 1.25rem 1.5rem;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal-backdrop.show {
    z-index: 1040 !important;
}

.modal.show {
    z-index: 1050 !important;
}

header.sticky-top,
.navbar.sticky-top {
    z-index: 1020;
}

/* ============================================= */
/* ALERTS */
/* ============================================= */
.alert {
    border-radius: 16px;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, rgba(45, 143, 135, 0.1), rgba(95, 195, 165, 0.08)) !important;
    border-left: 4px solid #2d8f87 !important;
    color: #1a5c63 !important;
}

.alert-success {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(42, 157, 143, 0.05)) !important;
    border-left: 4px solid #2a9d8f !important;
    color: #1b5e20 !important;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05)) !important;
    border-left: 4px solid #e63946 !important;
    color: #c1121f !important;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(244, 162, 97, 0.05)) !important;
    border-left: 4px solid #f4a261 !important;
    color: #e76f51 !important;
}

/* ============================================= */
/* PROGRESS BAR */
/* ============================================= */
.progress {
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(45, 143, 135, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #2d8f87, #5FC3A5) !important;
    border-radius: 10px;
}

/* ============================================= */
/* DROPDOWN */
/* ============================================= */
.dropdown-menu {
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:active,
.dropdown-item:hover {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
    color: white !important;
    padding-left: 1.75rem;
}

/* ============================================= */
/* FORM ELEMENTS */
/* ============================================= */
.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 10px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2d8f87;
    box-shadow: 0 0 0 4px rgba(45, 143, 135, 0.15);
    outline: none;
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a2a3a;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* ============================================= */
/* LOADING SPINNER */
/* ============================================= */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 39, 48, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner-overlay.show {
    display: flex;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #5FC3A5;
}

/* ============================================= */
/* RESPONSIVE STYLES - ONLY FOR SMALLER SCREENS */
/* ============================================= */

@media (max-width: 991px) {
    .content-wrapper {
        padding: 15px 20px 40px 20px !important;
    }
    
    .card-header,
    .card-header.bg-white {
        padding: 1rem 1.25rem;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
    
    .table thead th,
    .table thead td,
    .table tbody td {
        padding: 10px 12px !important;
        font-size: 12px;
    }
    
    .badge-active, .badge-success, .badge-inactive {
        padding: 3px 10px;
        font-size: 10px;
    }
    
    .btn {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    .btn-sm {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .form-control,
    .form-select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .alert {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 12px 15px 30px 15px !important;
    }
    
    .card-stats {
        margin-bottom: 0.75rem;
    }
    
    .card-header,
    .card-header.bg-white {
        padding: 0.875rem 1rem;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 0.95rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table thead th,
    .table thead td,
    .table tbody td {
        padding: 8px 10px !important;
        font-size: 11px;
    }
    
    .btn-group {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stats-icon i {
        font-size: 1.25rem !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 575px) {
    .content-wrapper {
        padding: 10px 12px 25px 12px !important;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .card-stats h3 {
        font-size: 1.25rem;
    }
    
    .card-stats h6 {
        font-size: 0.7rem;
    }
    
    .table thead th,
    .table thead td,
    .table tbody td {
        padding: 6px 8px !important;
        font-size: 10px;
    }
    
    .badge-active, .badge-success, .badge-inactive {
        padding: 2px 8px;
        font-size: 9px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .btn-sm {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .pagination .page-link {
        padding: 4px 8px;
        font-size: 11px;
        margin: 0 2px;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 10px;
    }
    
    .dataTables_length select,
    .dataTables_filter input {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .row.g-2 {
        --bs-gutter-y: 0.5rem;
    }
}

@media (max-width: 400px) {
    .card-header .btn-sm span {
        display: none;
    }
    
    .card-header .btn-sm i {
        margin-right: 0;
    }
    
    .table thead th,
    .table thead td,
    .table tbody td {
        padding: 4px 6px !important;
        font-size: 9px;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .btn,
    .card-header .btn,
    .no-print {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================= */
/* UTILITIES */
/* ============================================= */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2d8f87, #1a5c63) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #2d8f87, #5FC3A5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shadow-custom {
    box-shadow: 0 8px 24px rgba(45, 143, 135, 0.12);
}

/* Input backgrounds */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
select,
textarea {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    background-color: #e8e8e8 !important;
    border-color: #2d8f87 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 143, 135, 0.2);
}

input[readonly],
input:read-only {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

input:disabled,
select:disabled,
textarea:disabled {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

.input-group .input-group-text {
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 0.20rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

.btn-group-xs > .btn i {
    font-size: 0.7rem;
}

.table-compact td,
.table-compact th {
    padding: 0.5rem;
    vertical-align: middle;
}
/* ============================================= */
/* CHECKBOX & RADIO FIXES */
/* ============================================= */

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2d8f87 !important;
    
    background-color: #ffffff !important;
    border: 2px solid #9ca3af !important;

    box-shadow: none !important;
    outline: none !important;

    transition: all 0.2s ease;
    
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
}

/* Checked state */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: #2d8f87 !important;
    border-color: #2d8f87 !important;
}

/* Hover fix */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.05);
    border-color: #2d8f87 !important;
    background-color: #ffffff !important;
}

/* Remove ugly glow/blink */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(45, 143, 135, 0.15) !important;
}

/* Disabled state */
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================= */
/* ADVANCED RESPONSIVENESS IMPROVEMENTS */
/* ============================================= */

/* Breadcrumb Truncation on Tablets & Laptops */
@media (min-width: 769px) and (max-width: 1199px) {
    .breadcrumb-container {
        max-width: 35% !important;
    }
    
    .breadcrumb-item {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
        display: inline-block !important;
    }
}

/* 44px Touch Targets on Mobile for Action Buttons */
@media (max-width: 768px) {
    .table tbody td .btn-sm,
    .table tbody td .btn-xs,
    .action-icon-container a,
    .btn-group .btn {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px !important;
        margin: 2px !important;
    }
}
/* Auto Capitalize Dynamic Text */
table td,
table th,
.card-title,
.card-body,
.form-control,
.form-select,
.dropdown-item,
.badge,
.alert,
.modal-title,
.navbar,
.sidebar,
.breadcrumb,
.dataTables_wrapper,
span,
p,
label,
h1, h2, h3, h4, h5, h6 {
    text-transform: capitalize;
}