#incomingTable .react-bs-table {
  width: 1500px;
#incomingTable .react-bs-table {
  width: 1500px;
}

.planning {
  display: 'block';
  padding: 0;
  margin: 0;
  background: 'transparent';
  height: '30px';
  border: 'none';
  border-radius: 0;
  border-Bottom: '1px solid #ccc';
  outline: 'none';
  box-shadow: 'none';
}
  display: 'block';
  padding: 0;
  margin: 0;
  background: 'transparent';
  height: '30px';
  border: 'none';
  border-radius: 0;
  border-Bottom: '1px solid #ccc';
  outline: 'none';
  box-shadow: 'none';
}

.modal-90w {
  width: 90%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.modal-90w .modal-content {
  border-radius: 6px;
}

.modal-90w .modal-body {
  padding: 14px 18px;
}

.modal-90w .modal-title {
  width: 100%;
  font-size: 18px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.modal-90w .modal-content {
  border-radius: 6px;
}

.modal-90w .modal-body {
  padding: 14px 18px;
}

.modal-90w .modal-title {
  width: 100%;
  font-size: 18px;
}

.planning-job-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.planning-form-section {
  border: 1px solid #d9dee3;
  border-radius: 6px;
  padding: 10px 12px 2px;
  background: #fff;
  break-inside: avoid;
  page-break-inside: avoid;
}

.planning-form-section-title {
  margin-bottom: 8px;
  color: #2f353a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.planning-form-field {
  margin-bottom: 8px;
}

.planning-form-field .form-label {
  display: block;
  margin-bottom: 3px;
  color: #3f454b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.planning-job-form .form-control,
.planning-job-form .form-select,
.planning-job-form select {
  min-height: 26px;
  font-size: 12px;
  line-height: 1.2;
}

.planning-job-form .MuiInputBase-root {
  min-height: 30px;
  font-size: 12px;
}

.planning-job-form .MuiInputBase-input {
  padding-top: 4px;
  padding-bottom: 4px;
}

.planning-job-form .MuiAutocomplete-option,
.MuiAutocomplete-popper .MuiAutocomplete-option {
  font-size: 12px;
  line-height: 1.2;
}

.planning-job-form .form-check {
  min-height: 20px;
}

.planning-job-form .form-check-label {
  font-size: 12px;
}

.planning-checkbox-field {
  display: flex;
  align-items: flex-end;
  padding-bottom: 7px;
}

.planning-color-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

.planning-remark-field {
  min-height: 46px;
  resize: vertical;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .planning-job-form {
    width: 281mm;
    max-width: 281mm;
    gap: 4px;
    color: #111;
    font-size: 9px;
  }

  .planning-job-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -3px;
    margin-right: -3px;
  }

  .planning-job-form [class*="col-"] {
    padding-left: 3px;
    padding-right: 3px;
  }

  .planning-job-form .col-md-2,
  .planning-job-form .col-sm-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .planning-job-form .col-md-3,
  .planning-job-form .col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .planning-job-form .col-md-4,
  .planning-job-form .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .planning-job-form .col-md-6,
  .planning-job-form .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .planning-job-form .col-md-12,
  .planning-job-form .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .planning-form-section {
    border-color: #b9c0c7;
    border-radius: 3px;
    padding: 4px 6px 0;
  }

  .planning-form-section-title {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .planning-form-field {
    margin-bottom: 3px;
  }

  .planning-form-field .form-label {
    margin-bottom: 1px;
    font-size: 8px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .planning-job-form .form-control,
  .planning-job-form .form-select,
  .planning-job-form select,
  .planning-job-form input,
  .planning-job-form textarea {
    min-height: 16px !important;
    height: 16px !important;
    padding: 1px 3px !important;
    border-width: 1px !important;
    border-radius: 2px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  .planning-job-form input[type="date"] {
    min-width: 0;
  }

  .planning-job-form .MuiAutocomplete-root,
  .planning-job-form .MuiFormControl-root,
  .planning-job-form .MuiInputBase-root {
    min-height: 16px !important;
    height: 16px !important;
    font-size: 8px !important;
  }

  .planning-job-form .MuiInputBase-input {
    height: 14px !important;
    padding: 1px 16px 1px 3px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
  }

  .planning-job-form .MuiOutlinedInput-notchedOutline {
    border-width: 1px !important;
  }

  .planning-job-form .MuiAutocomplete-endAdornment {
    display: none !important;
  }

  .planning-job-form .MuiAutocomplete-option,
  .MuiAutocomplete-popper .MuiAutocomplete-option {
    min-height: 16px !important;
    padding: 2px 6px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  .planning-job-form .form-check {
    display: none;
  }

  .planning-color-control {
    min-height: 16px;
  }

  .planning-remark-field {
    min-height: 24px !important;
    height: 24px !important;
  }
}

body {
  font-family: Helvetica, sans-serif;
}

.toRight {
  width: 100%;
  text-align: right;
}

.react-autosuggest__container {
  position: relative;
}

.react-autosuggest__input {
  width: 240px;
  height: 30px;
  padding: 10px 20px;
  font-family: Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.react-autosuggest__input--focused {
  outline: none;
}

.react-autosuggest__input--open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.react-autosuggest__suggestions-container {
  display: none;
}

.react-autosuggest__suggestions-container--open {
  display: block;
  position: absolute;
  top: 31px;
  width: 280px;
  border: 1px solid #aaa;
  background-color: #fff;
  font-family: Helvetica, sans-serif;
  font-weight: 300;
  font-size: 16px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  z-index: 2;
}

.react-autosuggest__suggestions-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.react-autosuggest__suggestion {
  cursor: pointer;
  padding: 10px 20px;
}

.react-autosuggest__suggestion--highlighted {
  background-color: #ddd;
}

.multi-select {
  position: relative;
  background-color: #fff;
  border-radius: 4px;
  width: 70%;
  outline: none;
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* height: 28px; */
}

.multi-select .selected-options {
  vertical-align: middle;
  height: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: inline-block;
  /* padding: 5px 0px 5px 10px; */
  width: 100%;
  padding: 0 0 0 10px;
}

.file-list {
  list-style: none;
  padding: 0;
}

.file-list li {
  padding-left: 1.3em;
}

.file-list li:before {
  font-family: "Material Icons";
  content: "\e9fc";
  font-weight: 900;
  display: inline-block;
  margin-left: -1.3em;
  /* same as padding-left set on li */
  width: 1.3em;
  /* same as padding-left set on li */
}

.file-list li .glyphicon {
  float: right;
  margin-top: 5px;
  cursor: pointer;
}

.bom-input-border {
  border: 1px solid #ccc !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #ccc !important;
}

.bom-input-border:focus {
  border: 1px solid #66afe9 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #66afe9 !important;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.form-control.bom-input-border {
  border: 1px solid #ccc !important;
}

select.bom-input-border {
  border: 1px solid #ccc !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input.bom-input-border {
  border: 1px solid #ccc !important;
}

/* Override form-control-plaintext for modal inputs */
.modal .form-control:not(.form-control-plaintext) {
  border: 2px solid #999 !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #999 !important;
}

.modal select.form-control:not(.form-control-plaintext) {
  border: 2px solid #999 !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #999 !important;
}

.modal input.form-control:not(.form-control-plaintext) {
  border: 2px solid #999 !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #999 !important;
}

.select__menu,
.select__menu-list {
  z-index: 1000 !important;
}

/* Ensure react-select dropdown container has proper positioning */
.select__menu {
  position: absolute !important;
}

/* Fix MaterialReactTable toolbar z-index to be lower than dropdowns */
.MuiToolbar-root {
  z-index: 1 !important;
  position: relative;
}

/* Ensure MaterialReactTable edit modals appear above react-select dropdowns */
.MuiDialog-root,
.MuiModal-root {
  z-index: 1300 !important;
}

.MuiDialog-container {
  z-index: 1300 !important;
}

/* Ensure MaterialReactTable doesn't create overflow issues */
.MuiPaper-root {
  overflow: visible !important;
}

/* Container for select should allow overflow */
.container {
  overflow: visible !important;
}

#RBS-Scheduler-root {
  .ant-row {
    pointer-events: none !important;
  }
}

/* Table Hover Highlighting */
.highlight-table {
  overflow: hidden;
}

.highlight-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.highlight-table td,
.highlight-table th {
  position: relative;
  z-index: 1;
}

.highlight-table td:hover::after,
.highlight-table th:hover::after {
  content: '';
  position: absolute;
  background-color: rgba(0, 0, 0, 0.07);
  left: 0;
  right: 0;
  height: 10000px;
  top: -5000px;
  z-index: -1;
  pointer-events: none;
}

.highlight-table td > *, 
.highlight-table th > * {
  position: relative;
  z-index: 2;
}

/* --- Multi-level dropdown helpers --- */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
  margin-left: 0.1rem;
  z-index: 2000;
  display: none;
  min-width: 220px;
}

.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu.show>.dropdown-menu {
  display: block;
}

.caret-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: transform 0.2s ease-in-out;
}

.dropdown-submenu:hover .caret-right,
.dropdown-submenu.show .caret-right {
  transform: rotate(90deg);
}

/* Responsive: collapse submenu inline on small/mobile screens */
@media (max-width: 991.98px) {
  .dropdown-submenu>.dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin: 0;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background-color: transparent;
  }
}

:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --sidebar-bg: #000028;
  --sidebar-hover-bg: #2b2b40;
  --sidebar-active-bg: #3699ff;
  --sidebar-text: #a2a3b7;
  --sidebar-active-text: #ffffff;
  --sidebar-header-height: 70px;
  --transition-speed: 0.3s;
  --sidebar-submenu-rail: rgba(135, 158, 207, 0.34);
  --sidebar-submenu-rail-active: rgba(54, 153, 255, 0.72);
}

.main-content.full-width {
  margin-left: 0 !important;
  width: 100% !important;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: width var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  overflow: visible;
}

.sidebar.collapsed .sidebar-header {
  padding: 0;
  justify-content: center;
  position: relative;
}

.sidebar.collapsed .sidebar-logo {
  margin: 0;
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .sidebar-logo img {
  height: 50px;
}

.sidebar.collapsed .sidebar-toggle {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sidebar-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-toggle:hover {
  background: var(--sidebar-active-bg);
  color: #fff;
}

.sidebar.collapsed .sidebar-content {
  overflow: visible;
}

.sidebar-header {
  height: var(--sidebar-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-logo img {
  height: 50px;
  width: auto;
}

.sidebar-logo .sidebar-logo-text {
  height: 24px;
  max-width: 130px;
  object-fit: contain;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: var(--sidebar-hover-bg);
  color: #fff;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

/* Premium Minimalist Scrollbar - Global & Component Specific */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Sidebar Specific Scrollbar */
.sidebar-content::-webkit-scrollbar,
.floating-submenu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-content::-webkit-scrollbar-track,
.floating-submenu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb,
.floating-submenu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
}

.sidebar-content:hover::-webkit-scrollbar-thumb,
.floating-submenu:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.floating-submenu::-webkit-scrollbar-thumb:hover {
  background: var(--sidebar-active-bg);
}

/* Firefox support */
* {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

.sidebar-content,
.floating-submenu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.nav-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border-left: 3px solid transparent;
  white-space: nowrap;
  position: relative;
}

.nav-link-custom:hover {
  background-color: var(--sidebar-hover-bg);
  color: #fff;
}

.nav-link-custom.active {
  background-color: rgba(54, 153, 255, 0.1);
  color: var(--sidebar-active-text);
  border-left-color: var(--sidebar-active-bg);
}

.nav-icon {
  min-width: 40px;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.nav-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 1;
  transition: opacity var(--transition-speed);
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  pointer-events: none;
}

.nav-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.nav-arrow.open {
  transform: rotate(180deg);
}

.submenu {
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  position: relative;
}

.submenu.open {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.sidebar:not(.collapsed) .submenu.open::before,
.sidebar:not(.collapsed) .nested-submenu.open::before {
  content: '';
  position: absolute;
  left: var(--submenu-rail-left, 34px);
  top: 10px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0,
    var(--sidebar-submenu-rail) 12px,
    var(--sidebar-submenu-rail) calc(100% - 12px),
    transparent 100%
  );
  pointer-events: none;
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px var(--submenu-link-padding, 60px);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  position: relative;
}

.sidebar:not(.collapsed) .submenu .submenu-link::before {
  content: '';
  position: absolute;
  left: calc(var(--submenu-link-padding, 60px) - 26px);
  top: 50%;
  width: 14px;
  height: 2px;
  background-color: var(--sidebar-submenu-rail);
  transform: translateY(-50%);
  pointer-events: none;
}

.sidebar:not(.collapsed) .submenu .submenu-link.active::before {
  background-color: var(--sidebar-submenu-rail-active);
}

.submenu-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submenu-link:hover {
  color: #fff;
}

.submenu-link.active {
  color: var(--sidebar-active-bg);
  font-weight: 600;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.user-avatar {
  width: 35px;
  height: 35px;
  background-color: var(--sidebar-active-bg);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--sidebar-text);
}

.badge-custom {
  background-color: #f64e60;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 700;
}

.sidebar.collapsed .nav-link-custom .badge-custom {
  display: none;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed) ease;
  width: calc(100% - var(--sidebar-width));
}

.sidebar.collapsed + .main-content {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .sidebar.mobile-open + .sidebar-overlay {
    display: block;
  }
}

.mobile-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 998;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--sidebar-bg);
  cursor: pointer;
}

/* Nested Submenu Styling */
.nested-submenu-container {
  position: relative;
}

.nested-trigger {
  display: flex;
  justify-content: space-between !important;
  align-items: center;
  padding-left: var(--submenu-link-padding, 60px) !important;
  padding-right: 20px !important;
}

.nested-arrow {
  font-size: 0.7rem;
  transform: rotate(-90deg);
  transition: transform 0.3s;
}

.nested-arrow.open {
  transform: rotate(0deg);
}

.nested-submenu {
  background-color: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  position: relative;
}

.nested-submenu.open {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.nested-link {
  padding-left: var(--submenu-link-padding, 80px) !important;
}

.submenu-link.disabled,
.nested-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.submenu-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.05);
  margin: 8px 20px;
}

/* Tooltip and Floating Submenu Styles */
.tooltip-text {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1e1e2d;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  margin-left: 15px;
  z-index: 1005;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tooltip-text::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1e1e2d;
}

.sidebar.collapsed .nav-link-custom:hover .tooltip-text {
  display: block;
}

/* Floating Submenu */
.floating-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 240px;
  background-color: var(--sidebar-bg);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
  border-radius: 0 10px 10px 0;
  z-index: 1004;
  margin-left: 1px;
  max-height: 90vh;
  overflow-y: auto;
}

.nav-item:hover .floating-submenu {
  display: block;
}

/* Hide tooltip if floating menu is present */
.nav-item:hover .nav-link-custom .tooltip-text {
  display: none !important;
}

.floating-header {
  padding: 15px 20px;
  font-weight: 700;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.floating-content {
  padding: 10px 0;
}

.floating-content .submenu-link {
  padding: 10px 25px;
}

.floating-nested-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 5px;
  padding-bottom: 5px;
  position: relative;
}

.floating-nested-section .floating-nested-section {
  margin-left: 14px;
  padding-left: 10px;
}

.floating-nested-section .floating-nested-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 8px;
  width: 2px;
  background: var(--sidebar-submenu-rail);
}

.floating-nested-title {
  padding: 10px 20px;
  color: var(--sidebar-active-bg);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-nested-content {
  position: relative;
}

.floating-content .submenu-link.active {
  background-color: rgba(54, 153, 255, 0.1);
  color: var(--sidebar-active-bg);
}

/* Ensure tooltips show for items without floating menus (navLinks) */
.sidebar.collapsed .nav-link-custom:not(.active):hover {
  background-color: var(--sidebar-hover-bg);
}

/* ══════════════════════════════════════════════
   Search bar
══════════════════════════════════════════════ */
.cl-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    height: 40px;
    transition: border-color 0.15s ease;
    position: relative;
}

.cl-search-bar:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.cl-search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0 8px;
    font-size: 14px;
    color: #334155;
    flex: 1;
    min-width: 0;
}

.cl-search-divider {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
    margin: 0 8px;
    flex-shrink: 0;
}

/* Search type picker */
.cl-search-type-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 12px;
    flex-shrink: 0;
}

.cl-search-type-btn {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    padding: 0 4px;
    cursor: pointer;
    white-space: nowrap;
}

.cl-search-chevron {
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.cl-search-chevron.open {
    transform: rotate(180deg);
}

/* ── Portal dropdown (rendered on document.body — escapes overflow:hidden) ── */
.cl-type-dropdown-portal {
    position: absolute;
    /* fixed so it sits above everything */
    z-index: 99999;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.14);
    min-width: 160px;
    max-height: 400px;
    overflow-y: auto;
}

.cl-type-dropdown-option {
    padding: 9px 14px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.cl-type-dropdown-option:hover {
    background: #f8fafc;
    color: #0f172a;
}

.cl-type-dropdown-option.selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   Toolbar buttons
══════════════════════════════════════════════ */
.cl-btn-reset,
.cl-btn-add {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cl-btn-reset {
    background: #fff;
    border: 1px solid #e8edf3;
    color: #64748b;
}

.cl-btn-reset:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.cl-btn-add {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.20);
}

.cl-btn-add:hover {
    background: #1d4ed8;
}

/* ══════════════════════════════════════════════
   Table
══════════════════════════════════════════════ */
.cl-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.cl-table-box {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.cl-table th {
    background: #f7f9fc;
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cl-table-container {
    flex: 1;
    min-width: 0;
}

.cl-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
}

.cl-th-sortable {
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}

.cl-th-sortable:hover {
    color: #0f172a;
}

.cl-sort-icon {
    display: inline-flex;
    margin-left: 4px;
    opacity: 0.3;
}

.cl-sort-icon.active {
    opacity: 1;
    color: #2563eb;
}

.cl-table td {
    padding: 14px 14px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
}

.cl-table tbody tr:last-child td {
    border-bottom: none;
}

.cl-table-row {
    cursor: pointer;
    transition: background 0.12s;
}

.cl-table-row:hover td {
    background: #f0f7ff;
}

.cl-table-row.selected td {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.cl-table-row.selected td:first-child {
    border-left: 3px solid #2563eb;
}

.cl-td-strong {
    font-weight: 600;
    color: #0f172a;
}

.cl-td-muted {
    color: #94a3b8;
    font-size: 12px;
}

.cl-empty {
    text-align: center;
    padding: 48px;
    color: #94a3b8;
    font-size: 13px;
}

/* ══════════════════════════════════════════════
   Pagination
══════════════════════════════════════════════ */
.cl-pagination {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #f7f9fc;
    border-top: 1px solid #e8edf3;
    flex-wrap: wrap;
}

.cl-rows-label {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-rows-select {
    border: 1px solid #e8edf3;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 12px;
    color: #334155;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.cl-page-info {
    font-size: 12px;
    color: #64748b;
    min-width: 90px;
    text-align: center;
}

.cl-page-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8edf3;
    background: #fff;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.cl-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cl-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════
   Preview panel (right side)
══════════════════════════════════════════════ */
.cl-preview-panel {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 140px);
    transition: width 0.3s ease, margin 0.3s ease;
    z-index: auto;
}

.cl-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #e8edf3;
    background: linear-gradient(135deg, #f0f7ff 0%, #fafbff 100%);
}

.cl-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 12px;
}

.cl-preview-footer {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #e8edf3;
    background: #f7f9fc;
}

.cl-preview-btn-primary,
.cl-preview-btn-secondary {
    flex: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cl-preview-btn-primary {
    background: #2563eb;
    border: none;
    color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}

.cl-preview-btn-primary:hover {
    background: #1d4ed8;
}

.cl-preview-btn-secondary {
    background: #fff;
    border: 1.5px solid #fecaca;
    color: #dc2626;
}

.cl-preview-btn-secondary:hover {
    background: #fef2f2;
}

/* ══════════════════════════════════════════════
   Delete modal
══════════════════════════════════════════════ */
.cl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cl-modal {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
}

.cl-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.cl-modal-close:hover {
    color: #475569;
    background: #f1f5f9;
}

.cl-modal-icon {
    color: #ef4444;
    background: #fef2f2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 18px;
}

.cl-modal-msg {
    font-size: 15px;
    color: #334155;
    margin-bottom: 16px;
    line-height: 1.5;
}

.cl-modal-warning {
    background: #fff8eb;
    border: 1px solid #ffd8a8;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.cl-modal-warning-title {
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cl-modal-warning-text {
    font-size: 12px;
    color: #92400e;
}

.cl-modal-actions {
    display: flex;
    gap: 10px;
}

.cl-modal-btn-cancel,
.cl-modal-btn-confirm {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cl-modal-btn-cancel {
    background: #fff;
    border: 1.5px solid #e8edf3;
    color: #64748b;
}

.cl-modal-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cl-modal-btn-confirm {
    background: #ef4444;
    border: 1.5px solid #ef4444;
    color: #fff;
}

.cl-modal-btn-confirm:hover {
    background: #dc2626;
}

/* ══════════════════════════════════════════════
   Responsive
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cl-content-wrapper {
        flex-direction: column !important;
        padding-bottom: 100px;
    }

    .cl-preview-panel {
        width: 100% !important;
        position: static !important;
        max-height: none !important;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .cl-pagination {
        justify-content: center;
        gap: 6px;
    }
}

/* ══════════════════════════════════════════════
   Layout & Sticky Positioning
   ══════════════════════════════════════════════ */

/* Content Wrapper */
.cl-content-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Toolbar */
.cl-toolbar-sticky {
    background: #ffffff !important;
    border-bottom: 2px solid #cbd5e1 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Table Headers */
.cl-table thead th {
    background: #f8fafc !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

/* Ensure data rows don't overlap */
.cl-table tbody tr {
    position: relative;
    z-index: 1;
}

/* Prevent container overflow issues */
.cl-table-container {
    max-width: 100%;
}

/*# sourceMappingURL=main-9a8b795a.1dca17ed.css.map*/