/* === Variabel Warna dan Shadow untuk Konsistensi (Menggunakan Palet Slate untuk Gray) === */
:root {
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary-color: #64748b; /* Slate-500 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    /* card */
    --gradient-2: linear-gradient(
        135deg,
        #ffffff 0%,
        #fef7ff 50%,
        #f3e8ff 100%
    );
    --accent-purple: #8b5cf6;
    /* Warna abu-abu menggunakan palet Slate dari Tailwind CSS */
    --gray-50: #f8fafc; /* Slate-50 */
    --gray-100: #f1f5f9; /* Slate-100 */
    --gray-200: #e2e8f0; /* Slate-200 */
    --gray-300: #cbd5e1; /* Slate-300 */
    --gray-400: #94a3b8; /* Slate-400 */
    --gray-500: #64748b; /* Slate-500 */
    --gray-600: #475569; /* Slate-600 */
    --gray-700: #334155; /* Slate-700 */
    --gray-800: #1e293b; /* Slate-800 */
    --gray-900: #0f172a; /* Slate-900 */
    --white: #ffffff;
    --white-blueish: #f5faff;
    /* Sidebar colors */
    --sidebar-bg-color: #ede9fe;
    --sidebar-text-color: #4338ca;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* Tambahan: Kurangi font-size dasar untuk simulasi 90% zoom */
    font-size: 90%;
}

/* === Style Asli Anda dengan Penyesuaian === */

html {
    scrollbar-width: thin; /* Untuk Firefox */
    scrollbar-color: var(--gray-400) transparent;
}

::-webkit-scrollbar {
    width: 5.4px; /* Lebar scrollbar global */
    height: 5.4px; /* Untuk scrollbar horizontal */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    margin: 7.2px 0;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 9px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

html,
body {
    font-family: "Lexend Deca", sans-serif;
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f4f6 100%);
    min-height: 100vh;
}

/* Penyesuaian ukuran teks untuk konsistensi */
.text-xs {
    font-size: 0.75rem; /* Tetap, karena sudah kecil */
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem; /* Tetap */
    line-height: 1.25rem;
}

.text-md {
    font-size: 0.9375rem;
    line-height: 1.375rem;
}

.text-base {
    font-size: 1rem; /* Tetap */
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem; /* Tetap */
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem; /* Tetap */
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem; /* Tetap */
    line-height: 2rem;
}

.text-secondary {
    color: var(--gray-500) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

/* Sidebar Styles: Penyesuaian proporsional */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 252px;
    background: var(--white);
    z-index: 1050;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-brand {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: var(--white);
    z-index: 2;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* padding: 0.9rem 0; */
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5.4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    margin: 7.2px 0;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 9px;
    transition: background 0.2s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

.nav-link {
    color: var(--gray-500) !important;
    padding: 10.8px 18px;
    margin: 3.6px 10.8px;
    border-radius: 10.8px;
    transition: all 0.3s ease;
    border: none;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    background: var(--sidebar-bg-color) !important;
    color: var(--sidebar-text-color) !important;
    transform: translateX(2.25px);
}

.nav-link i {
    width: 18px;
    margin-right: 10.8px;
}

.submenu .nav-link.active {
    color: var(--sidebar-text-color) !important;
    background-color: var(--sidebar-bg-color) !important;
}

.submenu-bullet {
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.submenu-bullet .nav-link.active {
    color: var(--sidebar-text-color) !important;
}

.submenu .nav-link.active {
    color: var(--sidebar-text-color) !important;
    background-color: var(--sidebar-bg-color) !important;
}

.main-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 252px;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(13.5px);
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease;
    height: 63px;
}

.main-navbar .name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 135px;
}

.main-navbar.full-width {
    left: 0;
}

.btn-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 0.75rem; /* rounded-xl */
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-hamburger:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: scale(1.05);
}

.btn-hamburger:active {
    background: var(--gray-300);
    transform: scale(0.95);
}

.main-content {
    margin-left: 252px; /* 280px * 0.9 */
    padding-top: 81px; /* 90px * 0.9 */
    transition: margin-left 0.3s ease;
}

.main-content.full-width {
    margin-left: 0;
}

.dropdown-menu {
    border-radius: 14.4px; /* 16px * 0.9 */
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 0.675rem;
    margin-top: 0.675rem !important;
    background: var(--white);
    animation: dropdown-fade-in 0.3s ease-out forwards;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 9px 13.5px; /* 10px * 0.9, 15px * 0.9 */
    border-radius: 9px;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--sidebar-bg-color);
    color: var(--sidebar-text-color);
    transform: translateX(1.35px); /* 1.5px * 0.9 */
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: var(--sidebar-text-color) !important;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(27px); /* 30px * 0.9 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-gentle {
    animation: bounceGentle 2s infinite;
}

@keyframes bounceGentle {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.7px); /* 3px * 0.9 */
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-navbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7875rem;
}

/* Activity Cards */
.activity-card {
    background: white;
    border-radius: 14.4px; /* 16px * 0.9 */
    padding: 0.9rem;
    margin-bottom: 0.675rem;
    border: none;
    box-shadow: 0 3.6px 13.5px rgba(0, 0, 0, 0.08); /* 4px * 0.9, 15px * 0.9 */
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateX(4.5px); /* 5px * 0.9 */
    box-shadow: 0 7.2px 22.5px rgba(0, 0, 0, 0.12); /* 8px * 0.9, 25px * 0.9 */
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* card elegant */
.elegant-card {
    border-radius: 14.4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.gradient-card-2 {
    background: var(--gradient-2);
}

.card-body-elegant {
    padding: 2rem;
}

/* Styling untuk container utama tabel */
.main-container {
    max-width: 1260px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 1.35rem;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.45rem;
    letter-spacing: -0.0225em;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 400;
}

.table-card {
    background: var(--white);
    border-radius: 14.4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    padding: 1.35rem 1.8rem;
    background: var(--white);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.search-box {
    position: relative;
    display: flex;
    min-width: 270px;
}

.input-modern {
    width: 100%;
    padding: 0.675rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 10.8px;
    font-size: 0.7875rem;
    background: var(--white);
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2.7px rgb(79 70 229 / 0.1);
}

/* Container utama Select2 */
.select2-container--default .select2-selection--single {
    background-color: var(--white, #ffffff);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: var(--gray-700, #374151);
    padding: 0;
    line-height: 1.5;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    position: absolute;
    top: 0;
    right: 1rem;
    display: flex;
    align-items: center;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.select2-dropdown {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
}

.select2-search--dropdown {
    padding: 0.5rem;
}

.search-input {
    padding-left: 2.25rem;
}

.search-icon {
    position: absolute;
    color: var(--gray-400);
    font-size: 0.7875rem;
    left: 0.75rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.length-control select {
    padding: 0.675rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 10.8px;
    background: var(--white);
    font-size: 0.7875rem;
    background-position: right 0.675rem center;
    background-size: 0.9rem;
}

.length-control select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2.7px rgb(79 70 229 / 0.1);
}

.action-buttons {
    display: flex;
    gap: 0.675rem;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 0.675rem 1.125rem;
    border-radius: 10.8px;
    font-size: 0.7875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-0.9px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.dataTables_wrapper {
    padding: 0;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    display: none;
}

.table-content {
    overflow-x: auto;
}

.modern-table {
    width: 100% !important;
    min-width: 540px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 !important;
}

.modern-table thead th,
.dataTables_scrollHead thead th {
    background: var(--gray-50) !important;
    color: var(--gray-700) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.045em;
    padding: 0.9rem 1.35rem !important;
    border-bottom: 1px solid var(--gray-200) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    top: 0;
    z-index: 10;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: break-word;
}

div.dataTables_processing {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-processing .processing-inner {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 7.2px 14.4px;
    border-radius: 7.2px;
    font-size: 0.81rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1.8px 5.4px rgba(0, 0, 0, 0.05);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.loading-placeholder {
    font-size: 0.7875rem;
    font-weight: 500;
    color: #6b7280;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.modern-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.modern-table tbody tr {
    background: var(--white-blueish) !important;
    transition: all 0.2s ease;
}

.modern-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid var(--gray-200) !important;
}

.modern-table tbody tr:hover {
    background: var(--gray-50) !important;
    box-shadow: var(--shadow-sm);
}

.modern-table td {
    padding: 0.72rem 1.35rem !important;
    vertical-align: middle !important;
    font-size: 0.875rem !important;
    color: var(--gray-700) !important;
}

.modern-table th:nth-child(10),
.modern-table td:nth-child(10) {
    min-width: 108px;
    text-align: center;
}

.table-actions {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
}

.action-btn {
    width: 32.4px;
    height: 32.4px;
    border-radius: 9px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view {
    background: #dbeafe;
    color: #1e40af;
}

.btn-view:hover {
    background: #bfdbfe;
    transform: scale(1.05);
}

.btn-edit {
    background: #dcfce7;
    color: #166534;
}

.btn-edit:hover {
    background: #bbf7d0;
    transform: scale(1.05);
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #fecaca;
    transform: scale(1.05);
}

.table-footer {
    padding: 1.35rem 1.8rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.table-info {
    color: var(--gray-600);
    font-size: 0.7875rem;
}

.pagination-modern {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.81rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-btn:hover:not(:disabled)::before {
    opacity: 0.1;
}

.page-btn:hover:not(:disabled) {
    color: var(--primary-dark);
    transform: translateY(-1.8px);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: var(--gray-400);
}

.page-btn.nav-btn {
    color: var(--gray-600);
}

.page-btn.nav-btn:hover:not(:disabled) {
    color: var(--primary-dark);
}

.page-ellipsis {
    color: var(--gray-500);
    font-size: 0.81rem;
    font-weight: 500;
    padding: 0 0.45rem;
    display: flex;
    align-items: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2.7px solid var(--gray-200);
    border-top: 2.7px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modal-content {
    border: none;
    border-radius: 1.35rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    background-color: var(--white);
    position: relative;
}

.modal-content::before,
.modal-content::after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    background: radial-gradient(circle, rgb(79 70 229 / 0.1), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.modal-content::before {
    top: -108px;
    right: -108px;
}

.modal-content::after {
    bottom: -135px;
    left: -135px;
}

.modal-content > .btn-close {
    position: absolute;
    top: 0.9rem;
    right: 1.125rem;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content > .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    background-color: var(--gray-100);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) transparent;
}

.modal-header,
.modal-body,
.modal-footer {
    position: relative;
    z-index: 2;
}

.modal-header {
    background: transparent;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.35rem 1.8rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.675rem;
    color: var(--primary-dark);
}

.modal-body {
    padding: 1.62rem 1.8rem;
    background: transparent;
}

.modal-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1.35rem 1.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.675rem;
}

.modal .form-group {
    margin-bottom: 1.125rem;
}

.modal .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.45rem;
    color: var(--gray-800);
}

.modal .input-icon-wrapper {
    position: relative;
}

.modal .input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.modal .input-modern {
    padding-top: 0.7875rem;
    padding-bottom: 0.7875rem;
    font-size: 0.855rem;
}

.modal textarea.input-modern {
    min-height: 108px;
    resize: vertical;
    padding-top: 0.7875rem;
    padding-bottom: 0.7875rem;
    font-family: inherit;
}

.modal .input-modern[readonly] {
    background-color: var(--gray-100);
    color: var(--gray-600);
    cursor: default;
}

.modal .input-modern[readonly]:focus {
    border-color: var(--gray-200);
    box-shadow: none;
}

.modal .input-modern:disabled,
.modal .input-modern[disabled] {
    background-color: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--gray-200);
}

.modal select.input-modern:disabled,
.modal select.input-modern[disabled] {
    background-color: var(--gray-100);
    color: var(--gray-700);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--gray-200);
    appearance: none;
    pointer-events: none;
}

.modal .input-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2.7px rgb(79 70 229 / 0.1);
}

.modal .input-icon-wrapper .input-modern {
    padding-left: 2.7rem;
}

.modal .btn-modern .spinner {
    display: none;
    animation: spin 1s linear infinite;
}

.modal .btn-modern:disabled .spinner {
    display: inline-block;
}

.modal .btn-modern:disabled .btn-text {
    display: none;
}

.text-wrap-global {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .action-buttons {
        justify-content: center;
    }

    .table-footer {
        flex-direction: column;
        text-align: center;
    }

    .modern-table thead th {
        padding: 0.675rem 0.9rem !important;
        font-size: 0.63rem !important;
    }

    .modern-table td {
        padding: 0.9rem !important;
    }

    .pagination-modern {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.36rem;
    }

    .page-btn {
        min-width: 32.4px;
        height: 32.4px;
        font-size: 0.765rem;
    }

    .main-navbar .name-text {
        max-width: 90px;
    }
}
