.modern-table-container {
    background: #FFFFFF;
    border-radius: 28px;
    border: 1px solid #E2E8F0;
box-shadow: 0px 4px 22px 2px #00000014;
    overflow: hidden;
    margin: 20px 0;
}

.table-header {
    background: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2D3748;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.table-controls-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.table-controls-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.search-container {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: row-reverse;
    align-items: center;
    background: #FAFAFA;
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
    height: 56px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #111827;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-icon {
    flex-shrink: 0;
}

.control-btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.control-btn span {
    margin-left: 8px;
}

.control-btn:hover {
    opacity: 0.8;
}

.filter-btn {
    width: 110px;
    height: 56px;
    border-radius: 12px;
    padding: 16px;
    background: #FAFAFA;
    border: 1px solid #E2E8F0;
    gap: 8px;
}

.export-btn {
    width: 133px;
    height: 56px;
    border-radius: 12px;
    padding: 16px;
    background: #FAFAFA;
    border: 1px solid #E2E8F0;
    gap: 8px;
}

.add-btn {
    width: 120px;
    height: 56px;
    border-radius: 12px;
    padding: 16px;
    background: #FF6500;
    border: 1px solid #FF6500;
    gap: 8px;
    color: white;  /* ✅ White text for contrast */
}

.add-btn:hover {
    background: #e55a00;
    color: white;
}

.table-wrapper {
    overflow-x: auto;
        padding: 0px 24px !important;


}

/* Custom scrollbar for table wrapper */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #FFFAEC;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #FF6500;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* Firefox scrollbar */
.table-wrapper {
    scrollbar-color: #FF6500 #FFFAEC;
    scrollbar-width: thin;
}

.modern-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #FFFFFF !important;
}

.modern-table th {
    background: #f5f5f5 !important;
    padding: 16px 20px !important;
    text-align: start !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #4A5568 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border: none !important;
}

.modern-table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #F7FAFC !important;
    font-size: 14px !important;
    color: #2D3748 !important;
    border: none !important;
}

tbody tr td {
    border-bottom: 1px solid #E2E8F0 !important;
}

.modern-table tbody tr:hover {
    background: #FAFAFA !important;
}

.actions-column {
    text-align: center;
    display: flex !important;
    justify-content: space-between;

}
 td.actions-column{
        display: flex;
    justify-content: space-between;
}
.actions-cell {
    text-align: center;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;  /* Add gap between buttons */
}

.actions-cell .action-btn {
    flex: 1;  /* Make buttons take equal width */
    width: 100%;  /* Full width within flex item */
}

.action-buttons {
    display: flex !important;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    padding: 6px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.view-btn {
    background: #fff5e6;
    width: 24px;
    display: inline-flex;
}

.view-btn:hover {
    background: #ffe8cc;
}

.edit-btn {
    background: #efeffd;
        width: 24px;
          display: inline-flex
}

.edit-btn:hover {
    background: #e0e0fb;
}

.delete-btn {
    background: #fff2f2;
        width: 24px;
          display: inline-flex
}

.delete-btn:hover {
    background: #ffe6e6;
}

.empty-state {
    text-align: center;
    padding: 60px 20px !important;
}

.empty-message {
    color: #A0AEC0;
}

.empty-message svg {
    margin: 0 auto 16px;
    display: block;
}

.empty-message p {
    margin: 0;
    font-size: 16px;
}

/* DataTables sorting arrows */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    display: inline-block !important;
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    margin-left: 12px !important;  /* gap-3 spacing */
}
table.dataTable td {
border-bottom: 1px solid #E2E8F0 !important;
}


/* DataTables bottom controls */
.dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 0;
}

/* DataTables pagination styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    color: #A0AEC0 !important;
    border: none !important;
    background: #FFFFFF !important;
    margin: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    gap: 10px !important;
    text-decoration: none !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #F7FAFC !important;
    color: #4A5568 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    padding: 8px !important;
    background: #FF6500 !important;
    color: white !important;
    opacity: 1 !important;
    gap: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #CBD5E0 !important;
    background: #F7FAFC !important;
    cursor: not-allowed !important;
}

/* Previous/Next buttons styling */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    background: transparent !important;
    border: none !important;
    color: #A0AEC0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    background: transparent !important;
    color: #4A5568 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .table-controls {
        justify-content: space-between;
    }

    .search-input {
        width: 100%;
    }

    .modern-table {
        font-size: 12px;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 8px;
    }

    .dataTables_wrapper .bottom {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}

/* Fix DataTables header sizing issue */
.modern-table th .dataTables_sizing {
    height: auto !important;
    overflow: visible !important;
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #FF6500;
    background-color: white;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    color: white !important;
    border-radius: 4px;
        accent-color: white;

    border: 1px solid #E6E6E6;
    opacity: 1;
}

.checkbox-column {
    text-align: center !important;
}

.checkbox-column:after,
.actions-column:after {
    display: none !important;
}

.nav-tabs-custom > .tab-content {
    background: transparent !important;
    padding: 0 !important;
}
.nav-tabs-custom{
      background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.nav-tabs-custom>.nav-tabs{
    background-color: white !important;
}

/* Modal styling */
.modal-content {
    border-radius: 28px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0px 4px 90px 2px #00000014 !important;
}

.modal-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-radius: 28px 28px 0 0 !important;
    padding: 20px 24px !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    border-top: 1px solid #E2E8F0 !important;
    border-radius: 0 0 28px 28px !important;
    padding: 20px 24px !important;
}
.nav-tabs-custom>.nav-tabs>li{
    border-top:3px solid transparent !important;
    border-bottom:3px solid transparent !important;


}
.nav-tabs-custom>.nav-tabs>li.active{
    border-bottom:3px solid #FF6500 !important;
    border-radius: 28px;


}
.nav-tabs-custom>.nav-tabs>li.active i{
    color:#FF6500 ;

}
.nav-tabs-custom>.nav-tabs>li.active>a{
    border-right-color:transparent !important;
    border-left-color:transparent !important;
}
.nav-tabs-custom>.nav-tabs{
    border-radius: 28px !important;
    padding: 10px 10px 10px 10px !important;
    box-shadow:0px 4px 22px 2px #00000014;
}
.nav-tabs-custom{
        border-radius: 28px !important;

}
.dataTables_scrollHead{
    display: none;
}