@tailwind base;
@tailwind components;
@tailwind utilities;

/* Color Palette System */
:root {
    --color-primary: #FF6500;
    --color-primary-light: #FFCB8B;
    --color-primary-lighter: #FFD360;
    --color-danger: #df513b;
    --color-text-dark: #2D3748;
    --color-text-gray: #6B7280;
    --color-border: #E2E8F0;
    --color-bg-light: #FAFAFA;
    --color-bg-header: #f5f5f5;
}

/* Primary Color Utilities */
.text-primary { color: var(--color-primary) !important; }
.text-light-primary { color: var(--color-primary-light) !important; }
.text-danger { color: var(--color-danger) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-light-primary { background-color: var(--color-primary-light) !important; }
.bg-lighter-primary { background-color: var(--color-primary-lighter) !important; }
.bg-danger { background-color: var(--color-danger) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.border-light-primary { border-color: var(--color-primary-light) !important; }




/* Box Primary Styling */
.box-primary  , .box-solid {
    background: #FFFFFF !important;
    border-radius: 28px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0px 4px 22px 2px #00000014 !important;
    overflow: hidden !important;
    margin: 20px 0 !important;
    padding: 20px !important;
}
.box-primaryCard {
    background: #FFFFFF !important;
    border-radius: 14px !important;
border: 0.98px solid #FFFFFF ;
box-shadow: 0px 3.93px 88.43px 1.97px #00000014  !important;
box-shadow: 0 4px 25px 0.5px rgba(0, 0, 0, 0.08) !important;

display: flex;
flex-direction: column;
justify-content: center; 
align-items: start;
    padding: 6px !important;
}
.box-primaryCard p:first-of-type {
    /* ستايلاتك هنا */
    font-size: 15px !important;
    color: #64748B !important;
}
.box-primaryCard p:nth-of-type(2) {
  font-size: 30px !important;
    color: #1E293B !important;
}
.charts h3{
font-size: 16px !important;
}
.charts span{
font-size: 13px !important;
}
.btn-group{
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}
/* Target box-body within box-primary for widget-enhanced component */
.box.box-primary .box-body , .box-solid .box-body {
    padding: 20px !important;
}
.form-group .btn-primary {
    margin: 2px 2px !important; 
}
/* Primary Button Styling */
.btn-primary {
    background: #FF6500 !important;
    /* width: 227px !important; */
    height: 56px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    border: none !important;
  
}

/* Tailwind-style Primary Button Styling */
.tw-dw-btn.tw-dw-btn-primary,
.tw-dw-btn-primary {
    background: #FF6500 !important;
    height: 56px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    border: none !important;
}
.btn.btn-flat{
        background: #FF6500 !important;
    border-radius: 12px !important;
    color: white !important;
    border: none !important;
    margin: 0 6px 0 6px !important;
}
.btn.btn-flat:hover{
        background: #FF6500 !important;
    color: white !important;
}
/* Target any div that contains a file input EXCEPT the two IDs */
div:has(> input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo)) {
    position: relative;
    margin-bottom: 20px;
    direction: rtl;
}

/* Hide native inputs except excluded ones */
input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo) {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 68px;
    opacity: 0;
    z-index: 3;
    cursor: pointer;
}

/* Custom upload UI */
div:has(> input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo))::after {
    content: "رفع ملف للاستيراد";
    position: absolute;
    top: 32px;
    right: 0;

    width: 100%;
    max-width: 460px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border: 1.5px dashed #c7d2e1;
    border-radius: 16px;

    font-size: 18px;
    font-weight: 600;
    color: #7c8698;

    cursor: pointer;
    transition: 0.25s ease;
}

/* Upload Icon */
div:has(> input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo))::before {
    content: "⤴";
    position: absolute;
    top: 66px;
    right: 26px;

    font-size: 22px;
    color: #7c8698;
    opacity: .8;

    pointer-events: none;
}

/* Hover */
div:has(> input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo)):hover::after {
    background: linear-gradient(180deg, #f1f5f9, #e5eaf0);
    border-color: #9fb3ce;
}

/* Mobile */
@media (max-width: 600px) {
    input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo),
    div:has(> input[type="file"]:not(#upload_document):not(#shipping_documents):not(#business_logo))::after {
        max-width: 100%;
        height: 58px;
        font-size: 16px;
    }
}

/* Fileinput Remove Button Styling */
.btn.btn-primary .fileinput-remove.fileinput-remove-button {
    background: #F8F8F7 !important;
    height: 56px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    border: none !important;
    color: #333 !important;}

/* More specific Tailwind-style Primary Button Styling */
.tw-dw-btn.tw-dw-btn-primary.tw-text-white,
.btn.tw-dw-btn-primary {
    background: #FF6500 !important;
    height: 56px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    border: none !important;
    /* width: auto !important; */
}

/* Override any small button sizes */
.tw-dw-btn-primary.tw-dw-btn-sm {
    /* width: 227px !important; */
    height: 56px !important;
    padding: 16px !important;
}

.input-group-addon:first-child{
      background: #FF6500 !important;

}


@layer base {
    body{
            font-family: Inter !important;

    }
label {
        font-weight: 700;
    font-size: 18px !important;
}
}
@layer components {
    .form-group .form-control,
    .form-group select.form-control {
        border-radius: 8px !important;
        height: 56px !important;
        border: 1px solid #e6e6e6 !important;
        box-shadow: none;
    }
      .form-group .form-control,
  .form-group select.form-control {
    border-radius: 8px !important;
    height: 56px !important;
    border: 1px solid #E6E6E6 !important;
    box-shadow: none;
  }
  
  .form-group .form-control:focus,
  .form-group select.form-control:focus {
    border-color: #3c8dbc;
    box-shadow: none;
  }
  
  /* Select2 specific styling */
  .form-group select.form-control.select2,
  .form-group .select2-selection.select2-selection--single {
    height: 56px !important;
    border-radius: 8px !important;
    border: 1px solid #E6E6E6 !important;
  }
  
  .form-group .select2-selection.select2-selection--single {
    height: 56px !important;
    border: 1px solid #E6E6E6 !important;
    border-radius: 8px !important;
  }
  
  .form-group .select2-selection.select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
    padding-right: 20px !important;
  }
  
  .form-group .select2-selection.select2-selection--single .select2-selection__arrow {
    height: 54px !important;
    width: 30px !important;
  }
  .select2-container {
    display: initial !important;
  }
  .form-group .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3c8dbc !important;
  }
    .input-group {
        width: 100%;
    }
    .input-group .form-control.kv-fileinput-caption:first-child {
        width: 60% !important;
    }
    .form-group .form-control:focus,
    .form-group select.form-control:focus {
        border-color: #3c8dbc;
        box-shadow: none;
    }

    /* Select2 specific styling */
    .form-group select.form-control.select2,
    .form-group .select2-selection.select2-selection--single {
        height: 56px !important;
        border-radius: 8px !important;
        border: 1px solid #e6e6e6 !important;
    }

    .form-group .select2-selection.select2-selection--single {
        height: 56px !important;
        border: 1px solid #e6e6e6 !important;
        border-radius: 8px !important;
    }

    .form-group .select2-selection.select2-selection--single .select2-selection__rendered {
        line-height: 38px !important;
        padding-left: 12px !important;
    }

    .form-group .select2-selection.select2-selection--single .select2-selection__arrow {
        height: 54px !important;
        width: 30px !important;
    }

    .form-group .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: #3c8dbc !important;
    }
}
@layer utilities {
}

/* Box Primary Styling */
.box-primary {
    background: #ffffff !important;
    border-radius: 28px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0px 4px 22px 2px #00000014 !important;
    overflow: hidden !important;
    margin: 20px 0 !important;
    padding: 20px !important;
}

/* Target box-body within box-primary for widget-enhanced component */
.box.box-primary .box-body {
    padding: 20px !important;
}
.tw-dw-btn.tw-dw-btn-neutral.tw-text-white {
    background-color: #e6e6e6 !important;
    border: none !important;
    color: black !important ;
}
/* Primary Button Styling */
.btn-primary {
    background: #ff6500 !important;
    /* width: 227px !important; */
    height: 56px !important;
    font-size: 18px;
    gap: 8px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    border: none !important;
}

/* Tailwind-style Primary Button Styling */
.tw-dw-btn.tw-dw-btn-primary,
.tw-dw-btn-primary,
.btn.btn-link.btn-modal {
    background: #ff6500 !important;
    /* width: 227px !important; */
    height: 56px !important;
    float: left !important;
    gap: 8px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    border: none !important;
}

/* Fileinput Remove Button Styling */
.btn.btn-primary .fileinput-remove.fileinput-remove-button,
.tw-dw-btn.tw-dw-btn-neutral.tw-text-white {
    background: #f8f8f7 !important;
    height: 56px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    color: black !important;
    margin: 0px 8px !important;
}

/* More specific Tailwind-style Primary Button Styling */
.tw-dw-btn.tw-dw-btn-primary.tw-text-white,
.btn.tw-dw-btn-primary {
    background: #ff6500 !important;
    height: 56px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    padding: 16px !important;
    color: white !important;
    border: none !important;
}

/* Override any small button sizes */
.tw-dw-btn-primary.tw-dw-btn-sm {
    width: 227px !important;
    height: 56px !important;
    padding: 16px !important;
}

/* Input Group File Caption Styling */
.input-group.file-caption-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.radio-inline input[type='radio'] {
    appearance: none; /* remove default style */
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ff6500;
    border-radius: 50%;
    background-color: white; /* inactive bg */
    vertical-align: middle;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* Active state */
.radio-inline input[type='radio']:checked {
    background-color: white;
    border-color: #ff6500;
}
html body .checkbox input[type='checkbox'] {
    position: absolute !important;
    /* Use logical property to handle both directions */
    inset-inline-end: 2px; /* replaces 'left' in LTR, 'right' in RTL */
}

.radio-inline label {
    font-size: 20px;
}
/* Inner dot when checked */
.radio-inline input[type='radio']:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #ff6500;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.box.box-success {
    border-top-color:#ff6500 !important;
}
.btn-success{
        background-color: #ff6500 !important;
        border: #ff6500 !important;


}
.tw-dw-btn-success{
    background-color: #FAFAFA !important;
    color: #718096 !important;
    border: none !important;
}
/* Optional hover */
.radio-inline input[type='radio']:hover {
    opacity: 0.8;
}
.adio-modal {
    display: flex;
    justify-content: center;
    /* margin-top: 50%; */
    height: 66px;
    align-items: flex-end;
}
/* iCheck Custom Styling - Applied Project Wide */
/* Base iCheck helper styling */
.iCheck-helper,
.input-icheck {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #ddd !important;
    background: white !important;
    position: relative !important;
}

/* Hover state */
.iCheck-helper:hover {
    border-color: #ff6500 !important;
}

/* Checked state */
.iCheck-helper:checked {
    background-color: #ff6500 !important;
    border-color: #ff6500 !important;
}

/* Checkmark for checked state */
.iCheck-helper:checked::before {
    content: '✓' !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
}

.custom-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #ff6500 !important;
    border-radius: 4px !important;
    background-color: white !important; /* default bg */
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Checked state */
.custom-checkbox:checked {
    background-color: #ff6500 !important; /* active background */
    border-color: #ff6500 !important;
}

/* Checkmark */
.custom-checkbox:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 6px !important;
    width: 6px !important;
    height: 12px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Hover effect */
.custom-checkbox:hover {
    opacity: 0.8 !important;
}
/* iCheck checkbox and radio specific styling */
.icheckbox_square-orange .iCheck-helper,
.iradio_square-orange .iCheck-helper {
    background-color: #ff6500 !important;
    border: 2px solid #ff6500 !important;
}

.icheckbox_square-orange:hover .iCheck-helper,
.iradio_square-orange:hover .iCheck-helper {
    background-color: #e55a00 !important;
    border-color: #e55a00 !important;
}

/* Additional iCheck states for better compatibility */
.icheckbox_square-orange .iCheck-helper::before {
    border-color: white !important;
}

.iradio_square-orange .iCheck-helper {
    border-radius: 50% !important;
}

/* Focus state for accessibility */
.icheckbox_square-orange input:focus + .iCheck-helper,
.iradio_square-orange input:focus + .iCheck-helper {
    box-shadow: 0 0 5px rgba(255, 101, 0, 0.5) !important;
}

/* Disabled state */
.icheckbox_square-orange input:disabled + .iCheck-helper,
.iradio_square-orange input:disabled + .iCheck-helper {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}
.checkbox input[type='checkbox'] {
    border-color: #ff6500 !important;
    accent-color: #ff6500 !important  ;
    color: white !important ;
}
iCheck-helper[type='checkbox'],
.input-icheck[type='checkbox'] {
    border-color: #ff6500 !important;
    accent-color: #ff6500 !important  ;
    color: white !important ;
}
.input-icheck {
    /* opacity: 0; */
    position: block !important;
    opacity: 1 !important;
}
.icheckbox_square-blue {
    background-image: none !important;
    height: 25px !important;
}
.well {
    background-color: #ffffff !important;
}
.modal-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
.modal-header,
.modal-footer {
    border: 0 !important;
    padding: 20px !important;
}
.modal-body {
    padding: 20px !important;
}
.modal-backdrop.in {
    opacity: 0.5 !important;
}
.modal-header .close {
    display: none !important;
}
.modal.fade .modal-dialog {
    transform: translate(0, -10px);
    transition: transform 0.3s ease;
}
.modal.in .modal-dialog {
    transform: translate(0, 0);
}
.modal-content {
    display: flex;
    flex-direction: column;
}
.modal-header,
.modal-footer {
    flex-shrink: 0;
}
.modal-body {
    flex: 1 1 auto;
    overflow: auto;
}
/* Container relative positioning */
.icheckbox_square-blue {
  position: relative;
  display: inline-block;
}

/* Hide the original checkbox but keep it clickable */
.icheckbox_square-blue input.input-icheck {
  position: absolute;
  inset-inline-start: 2px; /* works for LTR and RTL */
  opacity: 0;
  width: 18px;  /* adjust based on your design */
  height: 18px; /* adjust based on your design */
  margin: 0;
  z-index: 2;
  cursor: pointer;
}

/* The overlay used by iCheck */
.icheckbox_square-blue ins.iCheck-helper {
  position: absolute;
  top: 0;
  inset-inline-start: 0; /* logical property for LTR/RTL */
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.bg-maroon{
padding: 0 12px;
background-color: #FF6500 !important; 
}
.bg-purple{
background-color: #FF6500 !important;
}
.control-btn span{
    font-size: 18px;
}
.nav-tabs-custom>.nav-tabs>li>a{
    font-size: 18px !important;
}
a:hover{
    color:black !important;
}

.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 ,.control-btn .add-btn{
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    font-weight: 500;
    color: #374151;
}

.control-btn span {
    margin-left: 8px;
        font-size: 15px !important;
}

.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;
        font-size: 15px !important;
    font-weight: bold !important;
    overflow: visible !important;
        width: max-content !important;

}
table.dataTable td{
            font-size: 15px !important;

}
/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #FF6500;
    background-color: white;
}
.fa-paperclip , .fa-scroll{
    color: #FF6500 !important;
}
.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;
}
/* Modern Table Pagination Styles */

/* Bottom controls container */
.dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 0;
}

/* All pagination buttons base styles */
.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;
}

/* Hover state for all buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #F7FAFC !important;
    color: #4A5568 !important;
}

/* Active/current page button */
.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;
}

/* Previous/Next buttons - transparent style */
.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;
}

/* Disabled buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #CBD5E0 !important;
    background: #F7FAFC !important;
    cursor: not-allowed !important;
}

/* Focus states - remove outlines */
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Bootstrap pagination compatibility */
.pagination>.active>a {
    width: 40px !important;
    height: 40px !important;
    gap: 10px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; 
    opacity: 1 !important;
    border-radius: 12px !important;
    padding: 8px !important;
    background: #FF6500 !important;
    color: white !important;
}

.pagination>li>a {
    border: none !important;
    background: transparent !important;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .dataTables_wrapper .bottom {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}
.select2-selection {
border-radius:12px !important ;    
}
.dropdown-menu>li>a{
    display: flex;
    justify-content: flex-start;
    gap: 6px;
}
.tw-dw-btn-outline.tw-dw-btn-info{
    color: #FF6500  !important;
    border: 1px solid #FF6500 !important;
}

.tw-dw-btn-outline.tw-dw-btn-info:hover{
    background-color: #FF6500  !important;
   color: black !important;
}
.nav-tabs-custom>.nav-tabs>li>a{
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
font-size: 18px !important;
text-transform: capitalize !important;
}
.form-group .btn-primary .text-primary{
    color: white !important;
}
.contactProfile {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;}

.tw-bg-primary { background-color: var(--color-primary) !important; }
.tw-bg-light-primary { background-color: var(--color-primary-light) !important; }
.tw-bg-lighter-primary { background-color: var(--color-primary-lighter) !important; }
.tw-bg-danger { background-color: var(--color-danger) !important; }

.hover\:tw-bg-primary:hover { background-color: var(--color-primary) !important; }
.hover\:tw-bg-light-primary:hover { background-color: var(--color-primary-light) !important; }
.hover\:tw-bg-lighter-primary:hover { background-color: var(--color-primary-lighter) !important; }
.hover\:tw-bg-danger:hover { background-color: var(--color-danger) !important; }

.tw-from-primary { --tw-gradient-from: var(--color-primary) !important; }
.tw-from-light-primary { --tw-gradient-from: var(--color-primary-light) !important; }
.tw-to-primary { --tw-gradient-to: var(--color-primary) !important; }
.tw-to-light-primary { --tw-gradient-to: var(--color-primary-light) !important; }

.tw-text-primary { color: var(--color-primary) !important; }
.tw-text-light-primary { color: var(--color-primary-light) !important; }
.tw-text-danger { color: var(--color-danger) !important; }

.tw-ring-primary { --tw-ring-color: var(--color-primary) !important; }
.tw-border-primary { border-color: var(--color-primary) !important; }
.tw-border-light-primary { border-color: var(--color-primary-light) !important; }
.tw-border-danger { border-color: var(--color-danger) !important; }

.delete_unit_button  ,.TablebtnDelete  {
        border: none;
    background-color: #fff2f2;
    padding: 5px !important;
    height: min-content;
    /* width: 20px; */
    min-height: 2rem !important;
    min-width: 2rem !important;
    border-radius: 50% !important;
}
.edit_unit_button, .TablebtnEdit  {
           border: none;
    background-color: #efeffd;
    padding: 5px !important;
    height: min-content;
    /* width: 20px; */
    min-height: 2rem !important;
    min-width: 2rem !important;
    border-radius: 50% !important; 
}
.TablebtnView{
           border: none;
    background-color: #fff5e6;
    padding: 5px !important;
    height: min-content;
    /* width: 20px; */
    min-height: 2rem !important;
    min-width: 2rem !important;
    border-radius: 50% !important; 
}

.logo{
    padding: 0 20px !important;
}
.logo img{
margin:  10px 0 !important;
}
.secondTitle{
font-weight: bold;
font-style: Medium;
font-size: 32px !important;

line-height: 20px !important;
letter-spacing: 0px;
text-align: center;
color: black;
}
.secondTitle span{
font-weight: bold;
font-style: Medium;
font-size: 32px;
leading-trim: NONE;
line-height: 20px;
letter-spacing: 0px;
text-align: center;
color: #FF6500;
}

.checkbox label{
    margin-right: 0px !important;
    padding-right:0 !important;
    padding-left:none !important;
}

.pull-right{
        display: flex;
    justify-content: end;
    align-items: center;
}

.filter_by_date
{
       background: #FF6500 !important;
    gap: 8px !important;
    border-radius: 12px !important;
    color: white !important;
    border: none !important;
}
.filter{
        display: flex;
    justify-content: end;
    align-items: center;
    
}
.filter button{
        display: flex;
           align-items: center;
           justify-content: space-between;
           gap:2px; 
           color: #718096 !important;
           background: #FF6500 !important;
    gap: 8px !important;
    border-radius: 12px !important;
    color: white !important;
    border: none !important;
}



.filter button span{
    color: white !important;
    text-decoration: none !important;
}
.filter button:hover span{
    color: white !important;
    text-decoration: none !important;
}
.modal-title{
            display: flex;
           align-items: center;
                gap:2px; 
           justify-content: start;
}

.btn-secondary{
    background-color: #F8F8F7;
     border-radius: 12px !important;
    padding: 16px 40px !important;
}

.import{
display: flex;
justify-content: space-between;
align-items: end;
gap: 8px;

}
.import button{
margin-bottom: 20px !important;

}
.posFlex  , .pos-header{
    background-color: #fafaf9 !important;
    padding-top: 12px !important;
} 