@font-face {
    font-family: 'IndPak';
    src: url('./fonts/indpak.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.arabic-text {
    font-family: 'IndPak', 'Amiri', serif;
    font-size: 1.25rem;
    direction: rtl;
    letter-spacing: 0.5px;
}

/* Custom Tom Select styles to match Tailwind */
.ts-control {
    border-radius: 0.5rem !important;
    border-color: #d1d5db !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.ts-wrapper.focus .ts-control {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    border-color: transparent !important;
    --tw-ring-color: #059669;
}

.ts-dropdown {
    border-radius: 0.5rem !important;
    border-color: #d1d5db !important;
}

/* Tabulator Tailwind Styling */
.tabulator {
    background-color: white;
    border: none;
}

.tabulator .tabulator-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 12px 24px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
    border-bottom: 1px solid #e5e7eb;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
    background-color: #f9fafb;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
    padding: 16px 24px;
    border-right: 1px solid #e5e7eb;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
    background-color: #f3f4f6;
}

.tabulator .tabulator-header .tabulator-col[aria-sort="asc"] .tabulator-col-content .tabulator-col-sorter {
    color: #059669;
}

.tabulator .tabulator-header .tabulator-col[aria-sort="desc"] .tabulator-col-content .tabulator-col-sorter {
    color: #059669;
}

.tabulator-row.tabulator-row-even {
    background-color: white;
}

.tabulator-row.tabulator-row-odd {
    background-color: white;
}

/* Column visibility menu */
.column-visibility-menu {
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    min-width: 200px;
}

.column-visibility-item {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-visibility-item:hover {
    background-color: #f3f4f6;
}

.column-visibility-item input[type="checkbox"] {
    cursor: pointer;
}

/* Frozen column styling */
.tabulator .tabulator-frozen {
    background-color: #f9fafb;
}

.tabulator .tabulator-frozen.tabulator-frozen-left {
    border-right: 2px solid #059669;
}

.tabulator .tabulator-frozen.tabulator-frozen-right {
    border-left: 2px solid #059669;
}
