
.CodesTable table {
  width: 100%
}

.CodesTable thead {
  width: calc(100%-1em);
}

.CodesTable tbody {
  display: block;
  max-height: 300px;
  overflow-y: auto;
}
  
  .CodesTable thead, .CodesTable tbody tr {
    display: table;
    width: 98%;
    table-layout: fixed;
  }

.CodesTable thead, .CodesTable tbody, .CodesTable td {
  border: none !important;
}

#datatable-responsive {
  width: 100%;
  overflow: auto;
}
.datatable-responsive_wrapper {
  width: 100%;
  overflow: auto;
}
.page-item {
  display: inline-block;
  margin-right: 5px; /* Adjust as needed */
}

.page-link {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

  .page-link:hover {
    background-color: #f0f0f0;
  }

.page-item.disabled .page-link {
  color: #ccc;
  pointer-events: none;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.table-responsive {
  overflow-x: auto;
}


.dialog-width {
  width:max-content !important;
}

.button.active {
  background-color: green;
}

.button.not-active {
  background-color: red;
}

.maxcontent{
    width:max-content !important;
}

.myTextBox {
  height: 35px;
  border-radius: 4px;
}


.pagination .page-item .page-link {
  color: rgba(98, 100, 160, 1);
}

.pagination .page-item.active .page-link {
  background-color: rgba(172, 54, 54, 1);
  border-color: rgba(172, 54, 54, 1);
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
}
.car-container {
  overflow: hidden; /* Hide overflow content */
}

.car-image {
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.car-container:hover .car-image {
  transform: translateX(150px); /* Adjust this value to control the movement distance */
}

/*Pagination*/
#paginationControls a {
  margin: 0 5px;
  text-decoration: none;
  color: #007bff;
}

  #paginationControls a.disabled {
    pointer-events: none;
    color: #6c757d;
  }

  #paginationControls a.active {
    font-weight: bold;
    text-decoration: underline;
  }

.PagedList-skipToPrevious .waves-effect,
.PagedList-skipToNext .waves-effect {
  width: 44px;
  height: 36px;
  padding: 8px 12px 8px 12px;
  border-radius: 8px !important;
  border: 1px solid rgba(209, 213, 219, 1) !important;
}
.PagedList-skipToFirst,
.PagedList-skipToLast {
    display:none;
}
@media(max-width:576px) {
  .CodesTable tbody .form-label {
      font-size:0.5rem;
  }
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.confirm-box {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

  .confirm-box button {
    margin: 5px;
  }
/* 📱 استجابة الموبايل */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .track-form {
    justify-content: center;
  }

  .hero-text {
    text-align: center;
  }
}
@media print {
  .no-print {
    display: none !important;
  }
}
/* خلفيات واضحة للإشعارات */
#toast-container > .toast-success {
  background-color: #28a745 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1 !important;
}

#toast-container > .toast-error {
  background-color: #dc3545 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1 !important;
}

#toast-container > .toast-info {
  background-color: #17a2b8 !important;
  color: #fff !important;
  opacity: 1 !important;
}

#toast-container > .toast-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
  opacity: 1 !important;
}

/* إصلاح التعتيم الذي يضيفه بعض القوالب */
#toast-container > div {
  opacity: 1 !important;
}

/* ------------------------------------------------------------------------- */
/*                           FIGMA DESIGN OVERRIDES                           */
/* ------------------------------------------------------------------------- */

:root {
  --figma-primary-red: #AC3636;
  --figma-primary-red-light: #FDF1F1; /* Very light pink/red for active background */
  --figma-text-color: #5d596c; /* Default text color from typical themes, adjusting if needed */
}

/* Sidebar Menu Active State */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
    background-color: var(--figma-primary-red-light) !important;
    color: var(--figma-primary-red) !important;
    border-radius: 0.5rem !important; /* Rounded corners as seen in Figma Profile 1.PNG */
}

/* Active Icon Color */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon {
    color: var(--figma-primary-red) !important;
}

/* Sub-menu Active State (if different, e.g. bullet point color) */
.bg-menu-theme .menu-inner .menu-item.active > .menu-link {
    color: var(--figma-primary-red);
}

.bg-menu-theme .menu-inner .menu-item.active:before {
    background-color: var(--figma-primary-red); /* The little dot for submenus */
}

/* Sidebar Header / Brand Text */
.app-brand-text {
    color: #566a7f; /* Keeping default or matching design if visible? Design shows dark text */
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

/* General Menu Font */
.menu-link {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
}

/* Adjusting the 'Analytics' and other top level items to look like the design */
/* The design shows specific icons and spacing. */

/* Profile Page Styles (Preliminary, to match Profile 1.PNG basics) */
.btn-primary {
    background-color: var(--figma-primary-red) !important;
    border-color: var(--figma-primary-red) !important;
}

.btn-primary:hover {
    background-color: #8f2d2d !important; /* Darker shade for hover */
    border-color: #8f2d2d !important;
}

/* Tabs on Profile Page */
.nav-pills .nav-link.active {
    background-color: transparent !important;
    color: #434050 !important;
    border-bottom: 3px solid var(--figma-primary-red) !important;
    border-radius: 0 !important;
    font-weight: 600;
}
