body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FB;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styles are now in custom.css - removed duplicates */

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Keep Chrome autofill from visually breaking modal inputs */
.modal-backdrop input:-webkit-autofill,
.modal-backdrop input:-webkit-autofill:hover,
.modal-backdrop input:-webkit-autofill:focus,
.modal-backdrop textarea:-webkit-autofill,
.modal-backdrop textarea:-webkit-autofill:hover,
.modal-backdrop textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #3c4044;
    box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 9999s ease-out 0s;
}

/* Sticky header with solid background */
.table-header-sticky {
    position: sticky;
    top: 0;
    background-color: rgba(243, 244, 246, 1) !important;
}

.table-header-sticky tr {
    box-shadow: 0 1px 0 0 rgba(60, 64, 68, 0.2);
}

.table-header-sticky th {
    border-bottom: 1px solid rgba(60, 64, 68, 0.2) !important;
}

/* Custom Dropdown Styles */
.custom-select {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Nicer underline (used for CTA links like "Find your pincode") */
.link-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* Ensure table cells with dropdowns allow overflow */
.account-type-cell {
    overflow: visible !important;
    position: relative;
    text-align: center;
}

.account-type-cell .account-type-select {
    display: inline-block;
    width: 100%;
}

.account-type-cell .account-type-select .select-trigger {
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 6px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.account-type-cell .account-type-select .select-trigger span {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none !important;
}

.account-type-cell .account-type-select .icon-chevron {
    flex: 0 0 24px;
}

/* Account Type: keep placeholder + chevron together as a centered group */
.account-type-cell .account-type-select .select-trigger::before {
    content: none !important;
}

/* Account Type dropdown should always show the chevron (avoid overlap + keep affordance) */
.account-type-cell .account-type-select .select-trigger.has-value .icon-chevron {
    display: block !important;
}

/* Bank Details: keep Account Type column centered (all rows) */
#bank-details-tbody > tr > td:nth-child(2) {
    text-align: center;
}

/* Allow dropdowns to overflow from an inner wrapper (do not break rounded shells) */
.table-with-dropdown {
    overflow: visible;
}

.table-with-dropdown table {
    overflow: visible;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    cursor: pointer;
}

.select-trigger span {
    color: rgba(60, 64, 68, 0.6);
    white-space: nowrap;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.select-trigger.has-value span {
    color: #3c4044;
}

.select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 100%;
    background: #fff;
    border: 1px solid rgba(60, 64, 68, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99998;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nested table dropdowns - highest z-index */
.nested-table-row .select-options {
    z-index: 99999 !important;
}

.nested-table-row .custom-select {
    position: relative;
    overflow: visible !important;
}

.nested-table-row td {
    overflow: visible !important;
}

.nested-table-row table {
    overflow: visible !important;
}

.nested-table-row > td {
    overflow: visible !important;
}

.nested-table-row > td > div {
    overflow: visible !important;
}

.nested-table-row tbody tr td {
    overflow: visible !important;
}

/* Ensure the nested table wrapper doesn't clip */
.nested-table-row .w-\[697px\] {
    overflow: visible !important;
}

/* IFSC Modal dropdowns - higher z-index and overflow visible */
#ifsc-modal .select-options {
    z-index: 99997;
}

#pincode-modal .modal-dropdown .select-options {
    z-index: 4000 !important;
}

#pincode-modal .modal-dropdown .option {
    text-align: left;
}

#pincode-modal .modal-dropdown .option.option-disabled {
    cursor: default;
    color: rgba(60, 64, 68, 0.55);
    pointer-events: none;
}

#ifsc-modal .custom-select {
    overflow: visible !important;
}

#ifsc-modal .flex.flex-col {
    overflow: visible !important;
}

/* Ensure modal content expands to show dropdowns */
#ifsc-modal > div {
    min-height: fit-content;
    overflow: visible !important;
}

/* Ensure IFSC modal containers don't clip dropdown overflow */
#ifsc-modal .grid {
    overflow: visible !important;
}

#ifsc-form-fields {
    overflow: visible !important;
}

/* Adjust padding when dropdowns are open */
#ifsc-modal .custom-select.open ~ * {
    position: relative;
}

.custom-select.open .select-options {
    max-height: 200px;
    opacity: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #3c4044;
    transition: background-color 0.2s;
    text-align: center;
}

/* IFSC Modal Dropdowns - Left aligned text */
.ifsc-select .option {
    text-align: left;
}

.ifsc-select .select-trigger span {
    text-align: left;
}

.option:hover {
    background-color: rgba(60, 64, 68, 0.05);
}

/* Remove hover effect for account-type-select dropdown */
.account-type-select .option:hover {
    background-color: transparent;
}

.option-divider {
    height: 1px;
    background-color: rgba(60, 64, 68, 0.2);
    margin: 4px 0;
}

.icon-chevron {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%233C4044' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3e") no-repeat center;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.6;
    flex-shrink: 0;
}

.custom-select.open .icon-chevron {
    transform: rotate(180deg);
}

.select-trigger.has-value .icon-chevron {
    display: none;
}

.custom-select.open .select-trigger.has-value .icon-chevron {
    display: block;
}

/* ================================
   RESPONSIVE DESIGN UTILITIES
   Mobile & Tablet Support
   ================================ */

/* Horizontal scroll for mobile tables */
.table-scroll-wrapper {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
}

/* Mobile & Tablet: allow full horizontal scroll */
@media (max-width: 1023px) {
    .table-scroll-wrapper > div:not(.os-table-scroll) {
        overflow: visible !important;
    }

    .table-scroll-wrapper .custom-scrollbar {
        overflow-x: hidden !important;
    }

    .table-scroll-wrapper {
        overflow-x: auto !important;
    }

    .table-scroll-wrapper table {
        width: max-content;
        min-width: 100%;
    }
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Mobile: Add left padding to first column when table extends edge-to-edge */
@media (max-width: 767px) {
    .table-scroll-wrapper table th:first-child,
    .table-scroll-wrapper table td:first-child {
        padding-left: 32px !important;
    }
    .table-scroll-wrapper table th:last-child,
    .table-scroll-wrapper table td:last-child {
        padding-right: 32px !important;
    }
}

/* Legacy scrollbar styles removed - handled by global .custom-scrollbar styles below */

/* Touch-friendly button sizing */
@media (max-width: 1023px) {
    .touch-target {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Active state for touch feedback */
    button:active,
    a:active,
    .cursor-pointer:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    /* Smooth transitions for touch feedback */
    button,
    a,
    .cursor-pointer {
        transition: transform 0.1s ease, opacity 0.1s ease;
    }
}

/* Hide scrollbar but maintain functionality - for horizontal tab scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Mobile tab dropdown select styling */
.mobile-tab-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%233C4044' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Ensure proper modal sizing on mobile */
@media (max-width: 767px) {
    .modal-mobile-fullscreen {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-mobile-sheet {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        max-height: 90vh !important;
    }
}

/* Touch device hover state removal */
.touch-device .hover\:opacity-80:hover {
    opacity: 1;
}

.touch-device .hover\:bg-gray-50:hover {
    background-color: transparent;
}

/* Review card responsive adjustments */
@media (max-width: 1023px) {
    .review-card {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .review-card p {
        width: 100% !important;
    }
}

/* ================================
   GLOBAL CUSTOM SCROLLBAR
   Minimalist design: Transparent track, hidden buttons, light thumb.
   Applies to all tables and scrollable areas.
   ================================ */

.custom-scrollbar,
.table-scroll-wrapper .custom-scrollbar,
#content-review .custom-scrollbar,
#manage-contact-person-scroll,
#user-relationship-details-scroll,
#assign-transporter-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
.custom-scrollbar::-webkit-scrollbar,
#user-plan-scroll::-webkit-scrollbar,
.table-scroll-wrapper .custom-scrollbar::-webkit-scrollbar,
#content-review .custom-scrollbar::-webkit-scrollbar,
#manage-contact-person-scroll::-webkit-scrollbar,
#user-relationship-details-scroll::-webkit-scrollbar,
#assign-transporter-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

/* Transparent Track */
.custom-scrollbar::-webkit-scrollbar-track,
#user-plan-scroll::-webkit-scrollbar-track,
.table-scroll-wrapper .custom-scrollbar::-webkit-scrollbar-track,
#content-review .custom-scrollbar::-webkit-scrollbar-track,
#manage-contact-person-scroll::-webkit-scrollbar-track,
#user-relationship-details-scroll::-webkit-scrollbar-track,
#assign-transporter-scroll::-webkit-scrollbar-track {
    background: transparent !important;
}

/* Light Thumb */
.custom-scrollbar::-webkit-scrollbar-thumb,
#user-plan-scroll::-webkit-scrollbar-thumb,
.table-scroll-wrapper .custom-scrollbar::-webkit-scrollbar-thumb,
#content-review .custom-scrollbar::-webkit-scrollbar-thumb,
#manage-contact-person-scroll::-webkit-scrollbar-thumb,
#user-relationship-details-scroll::-webkit-scrollbar-thumb,
#assign-transporter-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px;
}

/* Thumb Hover - NO GLOW (Same as normal) */
.custom-scrollbar::-webkit-scrollbar-thumb:hover,
#user-plan-scroll::-webkit-scrollbar-thumb:hover,
.table-scroll-wrapper .custom-scrollbar::-webkit-scrollbar-thumb:hover,
#content-review .custom-scrollbar::-webkit-scrollbar-thumb:hover,
#manage-contact-person-scroll::-webkit-scrollbar-thumb:hover,
#user-relationship-details-scroll::-webkit-scrollbar-thumb:hover,
#assign-transporter-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Hide Buttons Completely */
.custom-scrollbar::-webkit-scrollbar-button,
#user-plan-scroll::-webkit-scrollbar-button,
.table-scroll-wrapper .custom-scrollbar::-webkit-scrollbar-button,
#content-review .custom-scrollbar::-webkit-scrollbar-button,
#manage-contact-person-scroll::-webkit-scrollbar-button,
#user-relationship-details-scroll::-webkit-scrollbar-button,
#assign-transporter-scroll::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Hide Corner */
.custom-scrollbar::-webkit-scrollbar-corner,
#user-plan-scroll::-webkit-scrollbar-corner,
.table-scroll-wrapper .custom-scrollbar::-webkit-scrollbar-corner,
#content-review .custom-scrollbar::-webkit-scrollbar-corner,
#manage-contact-person-scroll::-webkit-scrollbar-corner,
#user-relationship-details-scroll::-webkit-scrollbar-corner,
#assign-transporter-scroll::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Sticky table header - stays at top during scroll */
.table-scroll-wrapper table thead,
#user-plan-scroll table thead,
#manage-contact-person-scroll table thead,
#user-relationship-details-scroll table thead,
#assign-transporter-scroll table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(243, 244, 246, 1);
}

/* Ensure header cells maintain background */
.table-scroll-wrapper table thead th,
#user-plan-scroll table thead th,
#manage-contact-person-scroll table thead th,
#user-relationship-details-scroll table thead th,
#assign-transporter-scroll table thead th {
    background: rgba(243, 244, 246, 1);
    position: relative;
}
/* ================================
   MODAL SPECIFIC SCROLLBAR FIXES
   ================================ */

/* Ensure no arrows in any modal content */
.custom-scrollbar::-webkit-scrollbar-button,
[id$="-modal"] .overflow-y-auto::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force hide track buttons */
.custom-scrollbar::-webkit-scrollbar-track-piece:start,
.custom-scrollbar::-webkit-scrollbar-track-piece:end,
[id$="-modal"] .overflow-y-auto::-webkit-scrollbar-track-piece:start,
[id$="-modal"] .overflow-y-auto::-webkit-scrollbar-track-piece:end {
    background: transparent !important;
    display: none !important;
}

/* ============================================================
   MOBILE NAVIGATION OVERLAY (from SiteHeaderPublic.ascx)
   ============================================================ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   MOBILE NAVIGATION DRAWER (from SiteHeaderPublic.ascx)
   ============================================================ */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #ffffff;
  z-index: 1003;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ec;
  min-height: 60px;
  flex-shrink: 0;
}

.mobile-nav-logo img {
  width: 60px;
  height: auto;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #efeff1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close:hover {
  background: #e4e7ec;
}

.mobile-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-list > li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list > li:last-child {
  border-bottom: none;
}

.mobile-nav-list > li > a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #3c4044;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-nav-list > li > a .nav-icon {
  width: 20px;
  margin-right: 14px;
  color: #757d85;
  font-size: 16px;
  text-align: center;
}

.mobile-nav-list > li > a span {
  flex: 1;
}

.mobile-nav-list > li > a .submenu-arrow {
  font-size: 12px;
  color: #757d85;
  transition: transform 0.2s ease;
}

.mobile-nav-list > li.open > a .submenu-arrow {
  transform: rotate(180deg);
}

.mobile-nav-list > li > a:hover {
  color: #519e8a;
  background-color: #f9fafb;
}

.mobile-nav-list > li > a:hover .nav-icon {
  color: #519e8a;
}

.mobile-nav-list > li > a.active {
  color: #519e8a;
  font-weight: 600;
  background-color: rgba(81, 158, 138, 0.08);
  border-left: 3px solid #519e8a;
}

.mobile-nav-list > li > a.active .nav-icon {
  color: #519e8a;
}

/* Mobile Submenu */
.mobile-submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fafbfc;
}

.mobile-nav-list > li.open .mobile-submenu {
  display: block;
}

.mobile-submenu li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-submenu li:last-child {
  border-bottom: none;
}

.mobile-submenu li a {
  display: block;
  padding: 12px 20px 12px 54px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #757d85;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-submenu li a:hover {
  color: #519e8a;
  background-color: #f5f6f8;
  border-left-color: #519e8a;
}

.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid #e4e7ec;
  flex-shrink: 0;
}

.mobile-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 2px;
  background: rgba(81, 158, 138, 0.1);
  color: #519e8a;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(81, 158, 138, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-demo-btn:hover {
  background: rgba(81, 158, 138, 0.15);
  border-color: rgba(81, 158, 138, 0.3);
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #519e8a;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.mobile-call-btn:hover {
  background: #458b79;
}

/* Infinite Scroll Animation */
@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.animate-scroll-vertical {
    animation: scroll-up   20s linear infinite;
    will-change: transform;
}

/* Mask for fade effect at top and bottom */
.fade-mask-y {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* ================================
   MODAL DROPDOWN STYLES
   Header-like dropdown design
   ================================ */

/* Modal dropdown wrapper */
.modal-dropdown {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-dropdown .select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
}

.modal-dropdown .select-trigger span {
    color: #3c4044;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.modal-dropdown .select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    right: -12px;
    width: calc(100% + 24px);
    background: #ffffff;
    border: 1px solid rgba(60, 64, 68, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 99998;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.modal-dropdown.open .select-options {
    max-height: 220px;
    opacity: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.modal-dropdown .option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #3c4044;
    transition: all 0.15s ease;
    text-align: left;
    background: transparent;
}

.modal-dropdown .option:hover {
    background-color: rgba(81, 158, 138, 0.08);
    color: #519e8a;
}

.modal-dropdown .icon-chevron {
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%233C4044' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3e") no-repeat center;
    background-size: contain;
    transition: transform 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Transporter Groups Modal Styles */
.status-pill-inactive {
    display: flex;
    width: 98px;
    height: 24px;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    border-radius: 99px;
    opacity: 0.5;
    background: #9B9B9B;
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
}

.arrow-icon {
    width: 14px;
    height: 8px;
    transition: transform 0.3s ease;
    transform: rotate(0deg); /* Facing right by default if path points right */
    display: block;
    flex-shrink: 0;
}

.arrow-icon.expanded {
    transform: rotate(90deg) !important; /* Point down when expanded */
}

#transporter-groups-modal thead th {
    background: rgba(245, 245, 245, 0.50);
    border-bottom: 1px solid rgba(60, 64, 68, 0.1);
    font-weight: 600;
    color: #3c4044;
}

#transporter-groups-modal table {
    border-spacing: 0;
    border-collapse: collapse;
}

#transporter-groups-modal td, 
#transporter-groups-modal th {
    border-left: 1px solid rgba(60, 64, 68, 0.1);
}

#transporter-groups-modal td:first-child,
#transporter-groups-modal th:first-child {
    border-left: none;
}

#transporter-groups-modal td {
    border-bottom: 1px solid rgba(60, 64, 68, 0.05);
}

#transporter-groups-tbody > tr:not(.nested-table-row) > td:last-child {
    white-space: nowrap;
    text-align: center;
}

#transporter-groups-tbody > tr:not(.nested-table-row) > td:last-child > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

#transporter-groups-tbody > tr:not(.nested-table-row) > td:last-child button,
#transporter-groups-tbody > tr:not(.nested-table-row) > td:last-child img {
    flex-shrink: 0;
}

#transporter-groups-modal .custom-select {
    position: relative;
    overflow: visible !important;
}

/* Transporter Groups: standard dropdown widths (Status + Assign Transporters) */

#transporter-groups-modal td:nth-child(2),
#transporter-groups-modal td:nth-child(3) {
    text-align: left;
    position: relative;
}

#transporter-groups-modal td:nth-child(2) {
    overflow: visible !important;
}

#transporter-groups-modal td:nth-child(3) {
    overflow: visible !important;
}

/* Keep chevrons visible even after selecting a value */
#transporter-groups-modal .tg-status-select .select-trigger.has-value .icon-chevron,
#transporter-groups-modal .tg-company-select .select-trigger.has-value .icon-chevron {
    display: block !important;
}

/* Transporter Name dropdown */
#transporter-groups-modal .nested-multi-select {
    width: 100%;
    max-width: 100%;
}

/* Company column - input with small dropdown trigger */
#transporter-groups-modal .nested-table-row .tg-company-select {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    flex-shrink: 0;
}

#transporter-groups-modal .nested-table-row .tg-company-select .select-options {
    right: 0;
    left: auto;
    min-width: 160px;
}

#transporter-groups-modal .nested-company-input {
    flex: 1;
    min-width: 0;
}

#transporter-groups-modal .nested-multi-options {
    min-width: 253px !important;
    width: 253px !important;
}

#transporter-groups-modal .nested-multi-options.active {
    max-height: 240px;
}

/* Ensure dropdowns layer over table cells/rows inside the modal */
#transporter-groups-modal .custom-select.open {
    z-index: 50;
}

#transporter-groups-modal .custom-select.open .select-options {
    z-index: 51 !important;
}

#transporter-groups-modal .nested-table-row {
    background-color: #FAFAFA;
}

/* Transporter Groups Modal - Mobile usability (no layout/logic changes) */
#transporter-groups-modal .tg-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

/* Force a minimum table width so mobile can swipe-scroll horizontally */
#transporter-groups-modal .tg-table-scroll > table {
    min-width: 760px;
}

@media (max-width: 767px) {
    /* Turn it into a bottom sheet style so header + close are always reachable */
    #transporter-groups-modal {
        padding: 0;
        align-items: flex-end;
    }

    #transporter-groups-modal .tg-modal-panel {
        width: 100%;
        max-width: 100%;
        height: 92vh;
        max-height: 92vh;
        border-radius: 24px;
    }

    #transporter-groups-modal .tg-modal-header {
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 16px 16px 12px;
        border-radius: 24px 24px 0 0;
    }

    #transporter-groups-modal .tg-modal-body {
        padding-bottom: 16px;
    }
}

.borderless-select .select-trigger {
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.group-expand-trigger .arrow-icon {
    transition: transform 0.3s ease;
}

/* Ensure sub-table header matches */
.nested-table-row thead th {
    background: rgba(245, 245, 245, 0.50) !important;
}

.nested-table-row table {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modal-dropdown .select-options::-webkit-scrollbar {
    width: 4px;
}

.modal-dropdown .select-options::-webkit-scrollbar-track {
    background: transparent;
}

.modal-dropdown .select-options::-webkit-scrollbar-thumb {
    background: #D9D9D9;
    border-radius: 4px;
}

.modal-dropdown .select-options::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

/* HIDE NATIVE DATE PICKER ICON */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    opacity: 0;
    z-index: 10;
}

/* User Plan Details Table - Custom Scrollbar */
#user-plan-scroll {
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

#user-plan-scroll:hover,
#user-plan-scroll:focus,
#user-plan-scroll:active {
    scrollbar-color: rgba(217, 217, 217, 0.4) transparent;
}

#user-plan-scroll::-webkit-scrollbar {
    width: 6px;
}

#user-plan-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 0;
}

#user-plan-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s ease;
}

#user-plan-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(217, 217, 217, 0.4);
}

#user-plan-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 180, 180, 0.6);
}

/* Hide scrollbar buttons/arrows */
#user-plan-scroll::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

/* Make header sticky */
#user-plan-scroll thead {
    position: sticky;
    top: 0;
    z-index: 10;
}




/* Pincode Modal Table - Custom Scrollbar */
.pincode-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 217, 217, 0.6) transparent;
}

.pincode-table-scroll::-webkit-scrollbar {
    width: 6px;
}

.pincode-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.pincode-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(217, 217, 217, 0.6);
    border-radius: 3px;
}

.pincode-table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 180, 180, 0.8);
}

.pincode-table-scroll::-webkit-scrollbar-button {
    display: none;
}

/* Multi-select Dropdown with Checkboxes - Transporter Name */
.nested-multi-select .select-options {
    border-radius: 8px;
    padding: 0;
    max-height: 0;
    z-index: 99999 !important;
}

/* Transporter Groups nested dropdown: ensure solid (non-transparent) UI */
.nested-multi-select .nested-multi-options {
    background: #fff;
    z-index: 99999 !important;
}

.nested-multi-select .tg-nested-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
}

.nested-multi-select .tg-nested-search-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    opacity: 0.6;
    background-image: url("/assets/icon_search.svg");
}

.nested-multi-select .search-transporter-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(60, 64, 68, 0.15);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    color: #3c4044;
    background: #f5f5f5;
}

.nested-multi-select .clear-all-transporters {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #FF3B30;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0;
}

.nested-multi-select .tg-transporter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    background: #fff;
}

.nested-multi-select .tg-transporter-row:hover {
    background: rgba(60, 64, 68, 0.05);
}

/* Nested table rows should stay solid even when created dynamically */
#transporter-groups-modal .nested-table-row table tbody tr,
#transporter-groups-modal .nested-table-row table tbody td {
    background-color: #fff;
}

/* Ensure transporter groups modal allows dropdowns to overflow */
#transporter-groups-modal .tg-modal-body {
    min-height: 0;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#transporter-groups-modal table,
#transporter-groups-modal tbody,
#transporter-groups-modal tr,
#transporter-groups-modal td {
    overflow: visible !important;
}

#transporter-groups-modal .tg-table-scroll {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.nested-multi-select.open .select-options,
.nested-multi-select .select-options.active {
    max-height: 320px;
    opacity: 1;
    z-index: 99999 !important;
}

.nested-multi-select .select-options > div:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.nested-multi-select .select-options .max-h-\[200px\] {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nested-multi-select .transporter-checkbox {
    cursor: pointer;
    margin: 0;
}

.nested-multi-select .transporter-item {
    transition: background-color 0.15s ease;
}

.nested-multi-select .transporter-item:hover {
    background-color: rgba(60, 64, 68, 0.05);
}

.nested-multi-select .select-all-transporters:hover {
    background-color: rgba(60, 64, 68, 0.05);
}

.nested-multi-select .search-transporter-input::placeholder {
    color: rgba(60, 64, 68, 0.5);
}

.nested-multi-select .clear-all-transporters {
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.nested-multi-select .clear-all-transporters:hover {
    opacity: 0.8;
}

/* Checkbox custom styling */
.transporter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.15s ease;
}

.transporter-checkbox:checked {
    background-color: #519e8a;
    border-color: #519e8a;
}

.transporter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.transporter-checkbox:hover {
    border-color: #519e8a;
}