:root {
  --ddx-red: #d9272e;
  --ddx-red-dark: #b91921;
  --ddx-ink: #17191d;
  --ddx-muted: #686d75;
  --ddx-line: #e5e7eb;
  --ddx-surface: #ffffff;
  --ddx-canvas: #f7f8fa;
  --ddx-success: #15803d;
  --ddx-warning: #b45309;
  --ddx-danger: #c81e1e;
  --ddx-radius-sm: 10px;
  --ddx-radius: 16px;
  --ddx-radius-lg: 22px;
  --ddx-shadow: 0 12px 32px rgba(23, 25, 35, .07);
  --ddx-sidebar: 290px;
}

html { background: var(--ddx-canvas); }

body {
  margin: 0;
  color: var(--ddx-ink);
  background: var(--ddx-canvas) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Keep DaisyUI semantic colors aligned with the public website palette. */
.text-primary, .text-accent { color: var(--ddx-red) !important; }
.text-secondary { color: #475467 !important; }
.bg-primary, .bg-accent { background-color: var(--ddx-red) !important; }
.bg-secondary { background-color: #475467 !important; }
.btn-secondary { color: #fff !important; border-color: #475467 !important; background: #475467 !important; }
.btn-accent { color: #fff !important; border-color: var(--ddx-red) !important; background: var(--ddx-red) !important; }

body::selection { color: #fff; background: var(--ddx-red); }
a, button, input, select, textarea { transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s, transform .2s; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid rgba(217,39,46,.22) !important; outline-offset: 2px; }
:where(a, button)[aria-disabled="true"] { pointer-events: none; opacity: .55; }

.drawer-content { min-width: 0; background: var(--ddx-canvas); }

.navbar-placeholder,
.drawer-content > .sticky:first-child,
.drawer-content > header:first-child {
  min-height: 76px !important;
  padding: 0 28px !important;
  border-bottom: 1px solid rgba(231, 233, 238, .92);
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}

.navbar-placeholder { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.navbar-placeholder h1, .navbar h1 { letter-spacing: -.025em; }
.ddx-user-trigger { width: auto !important; min-height: 46px !important; padding: 3px 8px 3px 4px !important; gap: 8px; border-radius: 999px !important; }
.ddx-user-trigger > div { width: 36px !important; height: 36px; overflow: hidden; }
.ddx-user-trigger img { width: 100%; height: 100%; object-fit: cover; }
.ddx-user-trigger > span { max-width: 120px; overflow: hidden; color: #344054; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ddx-user-trigger > b { color: #98a2b3; font-size: 12px; }
.ddx-global-search { position: relative; width: min(420px, 38vw); height: 46px; margin-inline: 28px auto; padding: 0 12px; align-items: center; gap: 10px; border: 1px solid var(--ddx-line); border-radius: 12px; background: #fff; }
.ddx-global-search:focus-within { border-color: rgba(217,39,46,.55); box-shadow: 0 0 0 3px rgba(217,39,46,.08); }
.ddx-global-search svg { width: 20px; color: #98a2b3; }
.ddx-global-search input { min-width: 0; flex: 1; height: 100%; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ddx-global-search kbd { padding: 3px 7px; border: 1px solid var(--ddx-line); border-radius: 7px; color: #98a2b3; background: #f8f9fb; font-size: 11px; }
.ddx-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 10px); overflow: hidden; padding: 7px; border: 1px solid var(--ddx-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(23,25,29,.12); }
.ddx-search-results[hidden] { display: none !important; }
.ddx-search-results a { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 9px; color: #344054; }
.ddx-search-results a:hover { color: var(--ddx-red); background: #fff2f3; }
.ddx-search-results a span { display: grid; gap: 2px; }
.ddx-search-results a strong { font-size: 13px; }
.ddx-search-results a small, .ddx-search-results p { color: var(--ddx-muted); font-size: 11px; }
.ddx-search-results a b { font-size: 14px; }
.ddx-search-results p { margin: 0; padding: 14px; text-align: center; }

.sidebar-placeholder > aside,
.drawer-side > aside,
.drawer-side > ul.menu-sidebar {
  width: var(--ddx-sidebar) !important;
  min-height: 100vh !important;
  color: var(--ddx-ink) !important;
  background: #fff !important;
  border-right: 1px solid var(--ddx-line) !important;
  box-shadow: none !important;
}

.sidebar-placeholder aside > div:first-child,
.drawer-side aside > div:first-child {
  min-height: 82px;
  padding: 18px 20px !important;
  border-bottom-color: var(--ddx-line) !important;
}

.sidebar-placeholder aside img, .drawer-side aside img { width: 76px !important; height: 44px !important; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }
.sidebar-placeholder aside h2, .drawer-side aside h2 { color: var(--ddx-ink) !important; font-size: 18px !important; letter-spacing: -.02em; }
.sidebar-placeholder aside p, .drawer-side aside p { color: var(--ddx-muted) !important; }

.menu-sidebar, .sidebar-placeholder .menu { gap: 4px; padding: 18px 14px !important; }
.menu-sidebar .menu-title, .sidebar-placeholder .menu-title { padding: 18px 12px 6px !important; color: #98a2b3 !important; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.menu-sidebar li > a, .sidebar-placeholder .menu li > a,
.menu-sidebar li > button, .sidebar-placeholder .menu li > button {
  min-height: 46px;
  border-radius: 12px !important;
  color: #475467 !important;
  font-size: 14px;
  font-weight: 600;
}
.menu-sidebar li > a:hover, .sidebar-placeholder .menu li > a:hover,
.menu-sidebar li > button:hover, .sidebar-placeholder .menu li > button:hover { color: var(--ddx-red) !important; background: #fff5f5 !important; }
.menu-sidebar li > a.active, .sidebar-placeholder .menu li > a.active { color: var(--ddx-red) !important; background: #fff0f1 !important; box-shadow: none; }
.menu-sidebar svg, .sidebar-placeholder .menu svg { flex: 0 0 auto; }

.drawer-content > main,
.drawer-content > .p-4,
.drawer-content > .px-6,
.drawer-content > div[class*="container"] { max-width: 1600px; width: 100%; margin-inline: auto; }
.drawer-content > .p-4 { padding: 26px !important; }
.drawer-content h2 { color: var(--ddx-ink) !important; letter-spacing: -.02em; }
.chart-container { min-height: 320px; }

.card, .dashboard-card, .stat, .stats, .modal-box,
.drawer-content .bg-base-100.rounded-box,
.drawer-content .bg-base-100.shadow,
.drawer-content .bg-base-100.shadow-md,
.drawer-content .bg-base-100.shadow-lg {
  border: 1px solid var(--ddx-line) !important;
  border-radius: var(--ddx-radius) !important;
  background: var(--ddx-surface) !important;
  box-shadow: none !important;
}
.dashboard-card:hover { transform: translateY(-1px) !important; border-color: #d5d8df !important; box-shadow: 0 8px 24px rgba(23,25,35,.05) !important; }
.stat { padding: 22px !important; }
.stat-figure { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 12px; color: #475467 !important; background: #f2f4f7; }
.stat-title { color: var(--ddx-muted) !important; font-size: 13px !important; font-weight: 650; }
.stat-value { color: var(--ddx-ink); font-size: clamp(24px, 2vw, 34px) !important; letter-spacing: -.035em; }
.stat-desc { color: var(--ddx-muted) !important; }

.btn { min-height: 42px; border-radius: var(--ddx-radius-sm) !important; font-weight: 700 !important; text-transform: none !important; box-shadow: none !important; }
.btn-primary { color: #fff !important; border-color: var(--ddx-red) !important; background: var(--ddx-red) !important; }
.btn-primary:hover { border-color: var(--ddx-red-dark) !important; background: var(--ddx-red-dark) !important; transform: translateY(-1px); }
.btn-outline { background: #fff !important; }
.btn-outline.btn-primary { color: var(--ddx-red) !important; border-color: rgba(229,37,42,.35) !important; background: #fff !important; }
.btn-outline.btn-primary:hover { color: #fff !important; background: var(--ddx-red) !important; }
.btn-ghost:hover { background: #f0f1f4 !important; }

.input, .select, .textarea, .input-field, input[type="date"], input[type="text"], input[type="email"], input[type="password"] {
  border-color: #d9dce3 !important;
  border-radius: var(--ddx-radius-sm) !important;
  background-color: #fff !important;
  color: var(--ddx-ink) !important;
}
.input:focus, .select:focus, .textarea:focus, .input-field:focus, input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--ddx-red) !important;
  box-shadow: 0 0 0 3px rgba(229,37,42,.12) !important;
}
input:disabled, input[readonly] { color: #667085 !important; background: #f3f4f6 !important; }
label, .label-text { color: #344054 !important; font-weight: 600; }

.table { border-collapse: separate !important; border-spacing: 0; background: #fff; }
.table :where(th) { color: #475467 !important; background: #f7f8fa !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: .045em; text-transform: uppercase; }
.table thead th { position: sticky; top: 0; z-index: 2; }
.table :where(th,td) { padding: 14px 16px !important; border-bottom: 1px solid #eceef2 !important; }
.table tbody tr:hover td { background: #fafafb !important; }
.overflow-x-auto:has(> table) { border: 1px solid var(--ddx-line); border-radius: var(--ddx-radius); background: #fff; }

.tabs { gap: 6px; padding: 5px; border-radius: 12px; background: #f0f1f4; }
.tab { border-radius: 9px !important; font-weight: 650; }
.tab-active { color: var(--ddx-red) !important; border-color: transparent !important; background: #fff !important; box-shadow: 0 2px 7px rgba(23,25,35,.08); }
.badge { border-radius: 999px !important; font-weight: 700; }
.badge-error { color: #b42318 !important; border-color: #fecdca !important; background: #fef3f2 !important; }
.badge-success { color: #067647 !important; border-color: #abefc6 !important; background: #ecfdf3 !important; }

.modal { background: rgba(17, 18, 24, .52) !important; backdrop-filter: blur(3px); }
.modal-box { padding: 26px !important; }
.dropdown-content { border: 1px solid var(--ddx-line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: var(--ddx-shadow) !important; }
.alert { border-radius: 12px !important; }
.progress-primary::-webkit-progress-value, .progress-success::-webkit-progress-value { background: var(--ddx-red) !important; }

/* Quote & create-order workflow */
.ddx-order-flow { background: var(--ddx-canvas) !important; }
.ddx-order-flow .ddx-order-workspace { width: 100%; padding: 26px 28px 48px !important; background: var(--ddx-canvas) !important; }
.ddx-order-flow .ddx-order-container { width: 100%; max-width: 1480px !important; margin-inline: auto; }
.ddx-order-flow .ddx-order-container > .bg-base-400,
.ddx-order-flow .ddx-order-container > .bg-base-100,
.ddx-order-flow #packageInformation,
.ddx-order-flow #weight-summary,
.ddx-order-flow #priceList > .alert,
.ddx-order-flow .mb-8.p-6.bg-base-200 {
  border: 1px solid var(--ddx-line) !important;
  border-radius: var(--ddx-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.ddx-quote-page #packageInformation { margin-top: 0 !important; }
.ddx-quote-page #packageInformation .card-body { padding: 24px !important; }
.ddx-quote-page #getquote_extention { margin-top: 18px; border: 1px solid #eceef2; border-radius: 12px; background: #fafafb !important; }
.ddx-quote-page #getquote_extention .collapse-title,
.ddx-quote-page .collapsePackage .collapse-title { color: #344054; font-size: 15px !important; font-weight: 750 !important; }
.ddx-quote-page #packageList { margin-top: 16px; }
.ddx-quote-page .collapsePackage { margin-bottom: 10px; border: 1px solid var(--ddx-line); border-radius: 12px; background: #fff; }
.ddx-quote-page .card-action { padding-top: 18px; border-top: 1px solid #eceef2; }
.ddx-quote-page progress { height: 4px; margin: 18px 0; border-radius: 99px; background: #eceef2; }
.ddx-quote-page .mb-8.p-6.bg-base-200 { margin-bottom: 20px !important; padding: 18px 20px !important; }
.ddx-quote-page .services-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.ddx-quote-page .service-card { border: 1px solid var(--ddx-line) !important; border-left: 4px solid var(--ddx-red) !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important; }
.ddx-quote-page .service-card:hover { transform: translateY(-2px); border-color: #d5d8df !important; box-shadow: 0 10px 26px rgba(23,25,35,.06) !important; }
.ddx-quote-page .quote-transit-badge {
  min-width: max-content;
  height: 24px;
  padding-inline: 9px;
  color: #475467 !important;
  border: 1px solid #dfe2e7 !important;
  background: #f4f5f7 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.ddx-quote-page .quote-date-value {
  color: var(--ddx-ink) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.ddx-quote-page .quote-unit-price {
  margin-top: 5px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}
.ddx-quote-page .quote-card-meta { color: #667085; font-size: 12px; line-height: 1.5; }
.ddx-quote-page .quote-card-meta-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ddx-quote-page .quote-pickup-note,
.ddx-quote-page .quote-validity { color: #667085 !important; font-size: 12px !important; font-weight: 400; }
.ddx-quote-page .quote-validity strong { color: #475467; font-weight: 650; }
.ddx-quote-page .text-purple-500,
.ddx-quote-page .text-purple-600 { color: #475467 !important; }
.ddx-quote-page .bg-purple-500 { background: #475467 !important; }

.ddx-create-page .ddx-order-container > .bg-base-400 { margin: 0 0 18px !important; padding: 20px !important; }
.ddx-create-page .ddx-order-container > .bg-base-100 { overflow: hidden; padding: 0 !important; border: 0 !important; background: transparent !important; }
.ddx-create-page .ddx-order-container,
.ddx-create-page .ddx-order-container :where(.grid, .flex, .card, .form-control) > * { min-width: 0; }
.ddx-create-page .ddx-order-container .bg-base-200.card,
.ddx-create-page .ddx-order-container .card.bg-base-200 {
  padding: 22px !important;
  border: 1px solid var(--ddx-line) !important;
  background: #fff !important;
}
.ddx-create-page .ddx-order-container h1.text-2xl { color: var(--ddx-ink); font-size: 19px !important; letter-spacing: -.02em; }
.ddx-create-page .badge-primary { color: #fff !important; border-color: var(--ddx-red) !important; background: var(--ddx-red) !important; }
.ddx-create-page .divider { color: var(--ddx-line); opacity: .8; }
.ddx-create-page .italic { font-style: normal !important; }
.ddx-create-page .input,
.ddx-create-page .select,
.ddx-create-page .textarea { border-width: 1px !important; box-shadow: none !important; }
.ddx-create-page .input:hover,
.ddx-create-page .select:hover,
.ddx-create-page .textarea:hover { border-color: #b8bdc7 !important; box-shadow: none !important; }
.ddx-create-page .stats { max-width: 100%; overflow-x: auto; border: 1px solid var(--ddx-line) !important; background: #fff !important; box-shadow: none !important; }
.ddx-create-page .overflow-x-auto:has(table) { margin-top: 14px; }
.ddx-create-page .overflow-x-auto:has(table) { max-width: 100%; }
.ddx-create-page .table-zebra tbody tr:nth-child(even) td { background: #fafafb !important; }
.ddx-create-page .select2-container--default .select2-selection--single { border: 1px solid #d9dce3 !important; box-shadow: none !important; }
.ddx-create-page .select2-container--default .select2-selection--single:focus { border-color: var(--ddx-red) !important; box-shadow: 0 0 0 3px rgba(229,37,42,.12) !important; }

/* Professional create-order wizard */
.ddx-create-page .ddx-booking-stepper { position: sticky; top: 76px; z-index: 28; display: grid; grid-template-columns: repeat(4,1fr); width: 100%; max-width: 1480px; margin: 0 auto 20px; padding: 9px; border: 1px solid var(--ddx-line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(23,25,35,.05); backdrop-filter: blur(14px); }
.ddx-booking-stepper button { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 8px 12px; color: #667085; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
.ddx-booking-stepper button:not(:last-child)::after { position: absolute; top: 50%; right: -6px; width: 12px; height: 1px; content: ''; background: #e4e7ec; }
.ddx-booking-stepper button > span { position: relative; display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid #d0d5dd; border-radius: 50%; color: #667085; background: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.ddx-booking-stepper strong,.ddx-booking-stepper small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddx-booking-stepper strong { color: #344054; font-size: 12px; line-height: 1.35; }
.ddx-booking-stepper small { margin-top: 3px; color: #98a2b3; font-size: 10px; line-height: 1.35; }
.ddx-booking-stepper button.is-active { background: #fff1f2; }
.ddx-booking-stepper button.is-active > span { color: #fff; border-color: var(--ddx-red); background: var(--ddx-red); box-shadow: 0 0 0 4px rgba(217,39,46,.09); }
.ddx-booking-stepper button.is-active strong { color: var(--ddx-red); }
.ddx-booking-stepper button.is-complete > span { color: transparent; border-color: #a6f4c5; background: #ecfdf3; }
.ddx-booking-stepper button.is-complete > span::after { position: absolute; inset: 0; display: grid; content: '✓'; place-items: center; color: #067647; font-size: 13px; font-weight: 850; line-height: 1; transform: translateY(-.5px); }
.ddx-booking-wizard-shell { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 20px; }
.ddx-booking-wizard-main { min-width: 0; }
.ddx-booking-step-section[hidden] { display: none !important; }
.ddx-booking-wizard-main > .ddx-booking-step-section { animation: ddx-step-enter .22s ease-out; }
@keyframes ddx-step-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.ddx-booking-wizard-main > .ddx-booking-step-section > .grid { align-items: start; }
.ddx-booking-wizard-main .bg-base-200.card { margin-bottom: 16px !important; }
.ddx-booking-navigation { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; padding: 12px 16px; border: 1px solid var(--ddx-line); border-radius: 14px; background: #fff; }
.ddx-booking-navigation > div { display: flex; align-items: center; gap: 12px; }
.ddx-booking-progress-text { color: #98a2b3; font-size: 10px; font-weight: 700; }
.ddx-booking-back,.ddx-booking-next { min-height: 42px; padding: 0 15px; border-radius: 9px; font-size: 11px; font-weight: 750; cursor: pointer; }
.ddx-booking-back { color: #475467; border: 1px solid var(--ddx-line); background: #fff; }
.ddx-booking-back:hover { color: var(--ddx-red); border-color: #f0b9bd; background: #fff7f7; }
.ddx-booking-next { color: #fff; border: 1px solid var(--ddx-red); background: var(--ddx-red); }
.ddx-booking-next:hover { background: var(--ddx-red-dark); }
.ddx-booking-summary { position: sticky; top: 172px; }
.ddx-booking-summary-card { overflow: hidden; padding: 22px; border: 1px solid var(--ddx-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(23,25,35,.06); }
.ddx-booking-eyebrow { margin: 0 0 7px; color: var(--ddx-red); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.ddx-booking-summary h2 { margin: 0; color: var(--ddx-ink); font-size: 18px; letter-spacing: -.02em; }
.ddx-booking-summary dl { display: grid; gap: 0; margin: 20px 0 16px; }
.ddx-booking-summary dl > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #eceef2; }
.ddx-booking-summary dt { color: #667085; font-size: 10px; font-weight: 600; }
.ddx-booking-summary dd { overflow: hidden; margin: 0; color: #344054; font-size: 10px; font-weight: 750; text-align: right; text-overflow: ellipsis; }
.ddx-booking-summary-alert { padding: 10px 11px; color: #b54708; border: 1px solid #fedf89; border-radius: 9px; background: #fffaeb; font-size: 9px; line-height: 1.5; }
.ddx-booking-summary-alert.is-ready { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.ddx-booking-summary-submit { width: 100%; min-height: 43px; margin-top: 12px; color: #fff; border: 0; border-radius: 9px; background: #202227; font-size: 11px; font-weight: 750; cursor: pointer; }
.ddx-booking-summary-submit:hover { background: var(--ddx-red); }

/* Final order review */
.ddx-order-review { margin-bottom: 16px; }
.ddx-review-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 20px 22px; border: 1px solid var(--ddx-line); border-radius: 15px; background: #fff; }
.ddx-review-header h1 { margin: 0; color: var(--ddx-ink); font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.ddx-review-header > p { max-width: 390px; margin: 0; color: #667085; font-size: 11px; line-height: 1.55; text-align: right; }
.ddx-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ddx-review-card { min-width: 0; padding: 19px 20px; border: 1px solid var(--ddx-line); border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(23,25,35,.035); }
.ddx-review-card h2 { margin: 0 0 14px; padding-bottom: 11px; color: #202227; border-bottom: 1px solid #eaecf0; font-size: 14px; line-height: 1.4; }
.ddx-review-card h3 { margin: 18px 0 9px; color: #344054; font-size: 11px; line-height: 1.4; }
.ddx-review-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 18px; margin: 0; }
.ddx-review-card dl > div { min-width: 0; }
.ddx-review-card dt { margin-bottom: 4px; color: #98a2b3; font-size: 9px; font-weight: 650; line-height: 1.35; }
.ddx-review-card dd { overflow-wrap: anywhere; margin: 0; color: #344054; font-size: 11px; font-weight: 700; line-height: 1.45; }
.ddx-review-card .ddx-review-wide { grid-column: 1/-1; }
.ddx-review-route,.ddx-review-cargo { grid-column: 1/-1; }
.ddx-review-route dl { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ddx-review-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ddx-review-metrics > div { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #fee4e2; border-radius: 11px; background: #fff7f7; }
.ddx-review-metrics span { color: #667085; font-size: 10px; font-weight: 650; }
.ddx-review-metrics strong { color: var(--ddx-red); font-size: 15px; }
.ddx-review-table { max-width: 100%; overflow-x: auto; border: 1px solid #eaecf0; border-radius: 10px; }
.ddx-review-table table { width: 100%; border-collapse: collapse; font-size: 9px; }
.ddx-review-table :is(th,td) { min-width: 80px; padding: 9px 10px; border-bottom: 1px solid #eaecf0; text-align: left; white-space: nowrap; }
.ddx-review-table th { color: #667085; background: #f9fafb !important; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ddx-review-table tr:last-child td { border-bottom: 0; }
.ddx-review-empty { margin: 0; padding: 16px; color: #98a2b3; background: #fcfcfd; font-size: 10px; text-align: center; }

/* Cargo and product actions */
.ddx-create-page [data-booking-step] label:not(:has(.label-text-alt)),
.ddx-create-page [data-booking-step] label:not(:has(.label-text-alt)) :is(.label-text,span) {
  color: #344054 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
.ddx-create-page [data-booking-step] .grid > div > label:first-child {
  display: flex !important;
  min-height: 34px;
  align-items: flex-end;
  margin: 0 !important;
  padding: 0 0 7px !important;
  color: #344054;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.3;
}
.ddx-create-page [data-booking-step] .grid > div > label:first-child .label-text {
  color: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  line-height: inherit;
}
.ddx-create-page [data-booking-step] :is(.input,.select,.textarea) { font-size: 12px !important; line-height: 1.45; }
.ddx-create-page [data-booking-step] :is(.input,.select) { min-height: 42px; height: 42px; }
.ddx-create-page [data-booking-step] :is(.input-sm,.select-sm) { min-height: 38px; height: 38px; }
.ddx-create-page [data-booking-step] :is(.input,.select,.textarea)::placeholder { color: #98a2b3; font-size: 12px; }
.ddx-create-page [data-booking-step] .grid > div { min-width: 0; }
.ddx-create-page [data-booking-step] h1.text-2xl { font-size: 18px !important; line-height: 1.35; }
.ddx-create-page [data-booking-step] h3.text-xl { font-size: 15px !important; line-height: 1.4; }
.ddx-create-page [data-booking-step] h4 { font-size: 13px; line-height: 1.4; }
.ddx-create-page [data-booking-step] .label-text-alt { font-size: 10px !important; line-height: 1.45; }
.ddx-create-page .ddx-cargo-primary-action { display: flex; justify-content: flex-end; margin-top: 14px; }
.ddx-create-page .ddx-product-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 12px; border: 1px solid #e4e7ec; border-radius: 12px; background: #f9fafb; }
.ddx-create-page .ddx-product-currency { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.ddx-create-page .ddx-product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ddx-create-page :is(#btnAddPackage,#btnAddProduct,#btnSaveProduct,#btnTestSystem,#btnManageProducts) { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent !important; border-radius: 9px !important; box-shadow: none !important; font-size: 10px; font-weight: 750; white-space: nowrap; }
.ddx-create-page :is(#btnAddPackage,#btnAddProduct) { color: #fff !important; border-color: var(--ddx-red) !important; background: var(--ddx-red) !important; }
.ddx-create-page :is(#btnAddPackage,#btnAddProduct):hover { border-color: var(--ddx-red-dark) !important; background: var(--ddx-red-dark) !important; transform: translateY(-1px); }
.ddx-create-page :is(#btnSaveProduct,#btnManageProducts,#btnTestSystem) { color: #344054 !important; border-color: #d0d5dd !important; background: #fff !important; }
.ddx-create-page :is(#btnSaveProduct,#btnManageProducts,#btnTestSystem):hover { color: var(--ddx-red) !important; border-color: #f0b9bd !important; background: #fff5f5 !important; }
.ddx-create-page :is(#btnAddPackage,#btnAddProduct,#btnSaveProduct,#btnTestSystem,#btnManageProducts) svg { width: 16px; height: 16px; }
.ddx-create-page :is(#packageItemsTable,#productItemsTable) :is(.del-btn,.btn-delete-product) { display: inline-flex; min-width: 34px; min-height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 9px !important; color: #b42318 !important; border: 1px solid #fecdca !important; border-radius: 8px !important; background: #fff6f5 !important; box-shadow: none !important; font-size: 9px; font-weight: 750; }
.ddx-create-page :is(#packageItemsTable,#productItemsTable) :is(.del-btn,.btn-delete-product):hover { color: #fff !important; border-color: #d92d20 !important; background: #d92d20 !important; }

@media (max-width: 1023px) {
  .ddx-order-flow .ddx-order-workspace { padding: 20px !important; }
  .ddx-create-page .ddx-order-container > .bg-base-400 > .flex:first-child { align-items: stretch; gap: 10px; flex-direction: column; }
}
@media (max-width: 1500px) {
  .ddx-create-page .ddx-order-container > .bg-base-100 > .grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ddx-booking-wizard-main > .ddx-booking-step-section > .grid { grid-template-columns: minmax(0,1fr) !important; }
  .ddx-booking-wizard-shell { grid-template-columns: minmax(0,1fr); }
  .ddx-booking-summary { position: static; order: -1; }
  .ddx-booking-summary-card { display: grid; grid-template-columns: minmax(180px,.7fr) 1.3fr; gap: 0 22px; align-items: start; }
  .ddx-booking-summary dl { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .ddx-booking-summary-alert,.ddx-booking-summary-submit { grid-column: 1; }
  .ddx-create-page .ddx-product-actionbar { align-items: stretch; flex-direction: column; }
  .ddx-create-page .ddx-product-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ddx-order-flow .ddx-order-workspace { padding: 14px !important; }
  .ddx-quote-page #packageInformation .card-body,
  .ddx-create-page .ddx-order-container .bg-base-200.card,
  .ddx-create-page .ddx-order-container .card.bg-base-200 { padding: 16px !important; }
  .ddx-quote-page .services-grid { grid-template-columns: minmax(0, 1fr); }
  .ddx-quote-page .quote-card-meta-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .ddx-create-page .tabs { width: 100%; }
  .ddx-create-page .tab { flex: 1; }
  .ddx-create-page .ddx-booking-stepper { top: 74px; display: flex; overflow-x: auto; padding: 7px; }
  .ddx-booking-stepper button { flex: 0 0 58px; display: grid; grid-template-columns: 1fr; justify-items: center; min-height: 48px; padding: 6px; }
  .ddx-booking-stepper button > div { display: none; }
  .ddx-booking-stepper button:not(:last-child)::after { display: none; }
  .ddx-booking-summary-card { display: block; padding: 16px; }
  .ddx-booking-summary dl { margin: 14px 0; }
  .ddx-booking-navigation { position: sticky; z-index: 24; bottom: 8px; min-height: 62px; padding: 9px; box-shadow: 0 10px 30px rgba(23,25,35,.12); }
  .ddx-booking-progress-text { display: none; }
  .ddx-create-page .ddx-product-currency { align-items: stretch; flex-direction: column; }
  .ddx-create-page .ddx-product-currency select { width: 100% !important; }
  .ddx-create-page .ddx-product-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ddx-create-page :is(#btnAddPackage,#btnAddProduct,#btnSaveProduct,#btnTestSystem,#btnManageProducts) { width: 100%; }
  .ddx-review-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ddx-review-header > p { text-align: left; }
  .ddx-review-grid { grid-template-columns: minmax(0,1fr); }
  .ddx-review-route,.ddx-review-cargo { grid-column: auto; }
  .ddx-review-route dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ddx-review-metrics { grid-template-columns: minmax(0,1fr); }
}

.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid #d9dce3 !important; border-radius: 9px !important; background: #fff !important; }
.dataTables_wrapper .dataTables_filter input { min-height: 40px; padding: 8px 12px; }
.dataTables_wrapper .dataTables_length select { min-height: 38px; padding: 6px 28px 6px 10px; }
.dataTables_wrapper .dataTables_info { color: var(--ddx-muted) !important; font-size: 12px; }

/* Shared DataTables pagination */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  min-height: 68px;
  margin: 0 !important;
  border-top: 1px solid var(--ddx-line);
  background: #fff;
}
.dataTables_wrapper .dataTables_info {
  display: flex;
  align-items: center;
  padding: 0 20px !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 550;
}
.dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 20px !important;
}
.dataTables_wrapper .dataTables_paginate > span { display: inline-flex; align-items: center; gap: 4px; }
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button.btn {
  display: inline-grid !important;
  min-width: 36px !important;
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  place-items: center;
  color: #475467 !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.btn:hover {
  color: var(--ddx-red) !important;
  border-color: #f5c7ca !important;
  background: #fff5f5 !important;
  transform: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #fff !important;
  border-color: var(--ddx-red) !important;
  background: var(--ddx-red) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  cursor: not-allowed !important;
  color: #b3b8c2 !important;
  border-color: transparent !important;
  background: transparent !important;
  opacity: .65;
}
.dataTables_wrapper .dataTables_paginate .ellipsis { display: inline-grid; width: 28px; height: 36px; place-items: center; color: #98a2b3; }
.loading { color: var(--ddx-red) !important; }
.table tbody td[colspan] { min-height: 120px; color: var(--ddx-muted); background: #fff !important; text-align: center; }
.table tbody td[colspan] .loading + span { color: var(--ddx-muted); font-size: 13px; }
@keyframes ddx-pulse { 50% { opacity: .42; } }
.skeleton { background: #eceef2 !important; animation: ddx-pulse 1.4s ease-in-out infinite; }

/* Shared table system for My DDX */
.ddx-table-shell { overflow: hidden; }
.ddx-table-shell > .card-body { padding: 0 !important; }
.ddx-table-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 18px 22px !important; border-bottom: 1px solid var(--ddx-line) !important; background: #fff !important; }
.ddx-table-toolbar h2 { margin: 0; color: var(--ddx-ink); font-size: 18px !important; font-weight: 780 !important; }
.ddx-table-toolbar p { margin: 4px 0 0; color: var(--ddx-muted); font-size: 12px; }
.ddx-data-table { width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important; }
.ddx-data-table thead th { height: 46px; padding: 12px 14px !important; color: #667085 !important; background: #f7f8fa !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .055em; white-space: nowrap; }
.ddx-data-table tbody td { padding: 14px !important; color: #344054; border-bottom: 1px solid #eceef2 !important; font-size: 12px; vertical-align: middle; }
.ddx-data-table tbody tr:last-child td { border-bottom: 0 !important; }
.ddx-data-table tbody tr:hover td { background: #fafafb !important; }
.ddx-data-table :where(.badge) { min-height: 24px; font-size: 10px; }
.ddx-data-table a { font-weight: 650; }
.ddx-detail-table { min-width: 560px; }
.ddx-detail-table tbody td:first-child { color: #667085; font-weight: 650; }
.ddx-detail-table tbody td:last-child { color: var(--ddx-ink); font-weight: 600; }
.ddx-table-shell .dataTables_wrapper { padding: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.ddx-table-shell .dataTables_filter, .ddx-table-shell .dataTables_length, .ddx-table-shell .dt-buttons { margin: 15px 20px !important; }
.ddx-table-shell .dataTables_filter { float: right; }
.ddx-table-shell .dataTables_info,
.ddx-table-shell .dataTables_paginate { padding-inline: 20px !important; }
.ddx-table-shell .dataTables_scroll { border-top: 1px solid var(--ddx-line); }
.ddx-table-shell .dataTables_scrollBody { scrollbar-width: thin; scrollbar-color: #c5c9d1 transparent; }
body[data-page="mydebit"] #testtable { min-width: 1450px; }
body[data-page="mydebit"] #testtable tbody tr { box-shadow: inset 3px 0 transparent; }
body[data-page="mydebit"] #testtable tbody tr.debit-row--paid { box-shadow: inset 3px 0 #22c55e; }
body[data-page="mydebit"] #testtable tbody tr.debit-row--unpaid { box-shadow: inset 3px 0 #f59e0b; }
body[data-page="mydebit"] #testtable tbody tr.debit-row--overdue { box-shadow: inset 3px 0 var(--ddx-red); }
body[data-page="mydebit"] #testtable td:nth-child(n+7):nth-child(-n+11) { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 767px) {
  .ddx-table-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px !important; }
  .ddx-detail-table { min-width: 520px; }
  .ddx-data-table thead th, .ddx-data-table tbody td { padding: 12px !important; }
}

/* TailAdmin-inspired page treatments */
body[data-page] .drawer-content { min-height: 100vh; }
body[data-page] .drawer-content > .px-6,
body[data-page] .drawer-content > .p-4 { padding: 26px !important; }
body[data-page] .drawer-content > .px-6 { padding-top: 28px !important; padding-right: 26px !important; }
body[data-page] .drawer-content .shadow-lg,
body[data-page] .drawer-content .shadow-md,
body[data-page] .drawer-content .shadow { box-shadow: none !important; }

body[data-page="dashboard"] .drawer-content > .p-4 > .bg-base-100:first-child,
body[data-page="myshipments"] .drawer-content .bg-base-100.p-4,
body[data-page="mydebit"] .drawer-content .bg-base-100.p-4 {
  border: 1px solid var(--ddx-line) !important;
  border-radius: var(--ddx-radius) !important;
  background: #fff !important;
}

.ddx-logistics-dashboard { display: flex; flex-direction: column; gap: 22px; }
.ddx-logistics-dashboard > * { margin-bottom: 0 !important; }
.ddx-logistics-dashboard .dashboard-kpis { order: 1; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px; }
.ddx-logistics-dashboard .dashboard-kpis > .stat:nth-child(4) { display: none; }
.ddx-logistics-dashboard .dashboard-filter { order: 2; padding: 18px 22px !important; }
.ddx-logistics-dashboard .dashboard-primary-grid { order: 3; grid-template-columns: minmax(0, 1.9fr) minmax(320px, .9fr); gap: 22px; }
.ddx-logistics-dashboard .dashboard-activity-table { order: 5; }
.ddx-logistics-dashboard .dashboard-card { padding: 24px !important; }
.ddx-logistics-dashboard .dashboard-card > h2,
.ddx-logistics-dashboard .dashboard-card > div:first-child h2 { font-size: 18px !important; font-weight: 750 !important; }
.ddx-logistics-dashboard .dashboard-kpis .stat { position: relative; min-height: 132px; grid-template-columns: 62px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; align-content: center; }
.ddx-logistics-dashboard .dashboard-kpis .stat-figure { grid-column: 1; grid-row: 1 / span 3; }
.ddx-logistics-dashboard .dashboard-kpis .stat-title,
.ddx-logistics-dashboard .dashboard-kpis .stat-value,
.ddx-logistics-dashboard .dashboard-kpis .stat-desc { grid-column: 2; }
.ddx-logistics-dashboard .dashboard-kpis .stat-value { font-size: 28px !important; }
.ddx-logistics-dashboard .dashboard-kpis .stat-desc { color: var(--ddx-success) !important; font-size: 12px; }
.ddx-logistics-dashboard .dashboard-primary-grid > .dashboard-card:first-child .chart-container { min-height: 360px; }
.ddx-logistics-dashboard .dashboard-activity-table { padding: 0 !important; overflow: hidden; }
.ddx-logistics-dashboard .dashboard-activity-table > div:first-child { margin: 0 !important; padding: 22px 24px; border-bottom: 1px solid var(--ddx-line); }
.ddx-logistics-dashboard .dashboard-activity-table .overflow-x-auto { border: 0; border-radius: 0; }
.dashboard-table-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 96px; color: var(--ddx-muted); font-size: 13px; }

.dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.dashboard-card-heading h2 { margin: 0; color: var(--ddx-ink); font-size: 18px; font-weight: 750; }
.dashboard-card-heading p { margin: 4px 0 0; color: var(--ddx-muted); font-size: 13px; }
.dashboard-card-heading > a { color: #98a2b3; font-weight: 800; letter-spacing: 2px; }
.dashboard-period-label { padding: 10px 13px; border: 1px solid var(--ddx-line); border-radius: 10px; color: #475467; background: #fff; font-size: 12px; font-weight: 700; }
.dashboard-tracking-panel { padding: 12px !important; }
.dashboard-tracking-panel .dashboard-card-heading { padding: 8px 8px 0; }
.dashboard-map-preview { position: relative; height: 180px; overflow: hidden; border: 1px solid var(--ddx-line); border-radius: 14px; background: linear-gradient(135deg, #f3f4f6, #e7e9ed); }
.dashboard-map-preview::before, .dashboard-map-preview::after { content: ""; position: absolute; border: 2px solid rgba(255,255,255,.95); border-radius: 50%; }
.dashboard-map-preview::before { width: 240px; height: 90px; left: -35px; top: 32px; transform: rotate(-16deg); }
.dashboard-map-preview::after { width: 210px; height: 80px; right: -45px; bottom: 5px; transform: rotate(18deg); }
.dashboard-map-road { position: absolute; height: 3px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(152,162,179,.2); }
.dashboard-map-road.road-a { width: 110%; left: -8%; top: 45%; transform: rotate(-12deg); }
.dashboard-map-road.road-b { width: 85%; left: 10%; top: 64%; transform: rotate(24deg); }
.dashboard-map-road.road-c { width: 70%; left: 22%; top: 29%; transform: rotate(63deg); }
.dashboard-map-pin { position: absolute; left: 55%; top: 42%; display: grid; width: 34px; height: 34px; place-items: center; border: 7px solid #fff; border-radius: 50% 50% 50% 0; color: var(--ddx-red); background: var(--ddx-red); box-shadow: 0 8px 18px rgba(23,25,29,.18); transform: rotate(-45deg); }
.dashboard-map-preview small { position: absolute; left: 12px; bottom: 10px; padding: 5px 8px; border-radius: 7px; color: #475467; background: rgba(255,255,255,.9); font-weight: 700; }
.dashboard-tracking-meta { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 8px 14px; }
.dashboard-tracking-meta div { display: grid; gap: 3px; }
.dashboard-tracking-meta div span { color: var(--ddx-muted); font-size: 12px; }
.dashboard-tracking-meta strong { font-size: 18px; }
.dashboard-timeline { margin: 0; padding: 0 8px 8px; list-style: none; }
.dashboard-timeline li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 10px; min-height: 64px; }
.dashboard-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: -3px; border-left: 2px dotted #d0d5dd; }
.dashboard-timeline li > span { width: 14px; height: 14px; margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: #d0d5dd; box-shadow: 0 0 0 1px #d0d5dd; }
.dashboard-timeline li.done > span, .dashboard-timeline li.current > span { background: var(--ddx-red); box-shadow: 0 0 0 1px var(--ddx-red); }
.dashboard-timeline li div { display: grid; align-content: start; }
.dashboard-timeline li small { color: var(--ddx-muted); font-size: 11px; }
.dashboard-timeline li strong { margin-top: 2px; font-size: 13px; }
.dashboard-tracking-empty {
  display: grid;
  min-height: 310px;
  place-items: center;
  padding: 32px 20px;
  color: var(--ddx-muted);
  text-align: center;
}
.dashboard-tracking-empty[hidden] { display: none !important; }
.dashboard-tracking-empty strong { display: block; margin-bottom: 6px; color: var(--ddx-ink); font-size: 15px; }
.dashboard-tracking-empty p { max-width: 260px; margin-bottom: 16px; font-size: 13px; line-height: 1.55; }

@media (max-width: 1279px) {
  .ddx-logistics-dashboard .dashboard-primary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ddx-logistics-dashboard .dashboard-kpis { grid-template-columns: 1fr !important; }
}

body[data-page="myshipments"] .stats,
body[data-page="mydebit"] .stats { overflow: hidden; border: 1px solid var(--ddx-line) !important; background: #fff !important; }
body[data-page="myshipments"] .stats .stat + .stat,
body[data-page="mydebit"] .stats .stat + .stat { border-left: 1px solid var(--ddx-line); }

body[data-page="myshipments"] .dashboard-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
body[data-page="myshipments"] .dashboard-stats .stat {
  min-width: 0;
  min-height: 150px;
  border: 1px solid var(--ddx-line) !important;
  border-radius: var(--ddx-radius) !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,25,35,.04) !important;
}
body[data-page="myshipments"] .dashboard-stats .stat:hover {
  border-color: #d4d7dd !important;
  box-shadow: 0 12px 30px rgba(23,25,35,.07) !important;
  transform: translateY(-2px);
}
body[data-page="myshipments"] .dashboard-stats .stat-value {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(21px, 1.75vw, 30px) !important;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  body[data-page="myshipments"] .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

body[data-page="profile"] form > .space-y-12 { display: grid; gap: 20px; }
body[data-page="profile"] form > .space-y-12 > div {
  padding: 26px !important;
  border: 1px solid var(--ddx-line) !important;
  border-radius: var(--ddx-radius) !important;
  background: #fff;
}
body[data-page="profile"] form h2 { font-size: 18px !important; }
body[data-page="profile"] footer { border-top: 1px solid var(--ddx-line); background: transparent !important; color: var(--ddx-muted) !important; }

body[data-page="myshipments"] #f5Update {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  margin-bottom: 18px;
  border-radius: 12px;
}
body[data-page="myshipments"] #f5Update .alert { border: 1px solid #dbe5f4; background: #f5f8fc !important; color: #344054; }
body[data-page="myshipments"] #btnGroup { padding: 16px; border: 1px solid var(--ddx-line); border-radius: var(--ddx-radius); background: #fff; }
.order-date-filter > .card-body { display: flex; align-items: center; gap: 22px; padding: 18px 20px !important; }
.order-date-filter-heading { display: flex; min-width: 210px; align-items: center; gap: 12px; }
.order-date-filter-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--ddx-red); background: #fff1f2; }
.order-date-filter-icon svg { width: 21px; height: 21px; }
.order-date-filter-heading h2 { margin: 0; color: var(--ddx-ink); font-size: 15px; font-weight: 780; }
.order-date-filter-heading p { margin: 3px 0 0; color: var(--ddx-muted); font-size: 11px; }
.order-date-fields { display: flex; flex: 1; align-items: flex-end; gap: 10px; }
.order-date-field { display: grid; flex: 1; gap: 5px; }
.order-date-field > span { color: #667085; font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.order-date-field > div { position: relative; }
.order-date-field .input { width: 100%; min-height: 42px; height: 42px; padding-right: 38px; font-size: 12px; }
.order-date-field svg { position: absolute; top: 50%; right: 12px; width: 17px; height: 17px; color: #98a2b3; pointer-events: none; transform: translateY(-50%); }
.order-date-separator { padding-bottom: 11px; color: #98a2b3; font-size: 15px; }
.order-date-clear { flex: 0 0 auto; align-self: flex-end; min-height: 42px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; color: #667085; background: transparent; font-size: 11px; font-weight: 750; }
.order-date-clear:hover { color: var(--ddx-red); border-color: #fecdd0; background: #fff5f5; }
body[data-page="myshipments"] .order-insights-grid .card { min-height: 390px; }
body[data-page="myshipments"] .order-insights-grid .card-body { padding: 24px !important; }
body[data-page="myshipments"] .collapse { margin-bottom: 14px; border: 1px solid var(--ddx-line); border-radius: var(--ddx-radius) !important; background: #fff !important; }
body[data-page="myshipments"] .collapse-title { font-weight: 750; }
body[data-page="myshipments"] footer { margin-top: 24px; border-top: 1px solid var(--ddx-line); background: transparent !important; color: var(--ddx-muted) !important; }
body[data-page="mydebit"] footer { position: static !important; margin-top: 24px; border-top: 1px solid var(--ddx-line); background: transparent !important; color: var(--ddx-muted) !important; }

body[data-page="myshipments"] .order-table-shell { overflow: hidden; }
body[data-page="myshipments"] .order-table-shell > .card-body { padding: 0 !important; }
.order-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--ddx-line); }
.order-table-toolbar h2 { margin: 0; color: var(--ddx-ink); font-size: 18px; font-weight: 780; letter-spacing: -.025em; }
.order-table-toolbar p { margin: 4px 0 0; color: var(--ddx-muted); font-size: 12px; }
body[data-page="myshipments"] .order-table-shell .tabs { flex: 0 1 auto; justify-content: flex-start; }
body[data-page="myshipments"] .order-table-shell .dataTables_wrapper { padding: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body[data-page="myshipments"] .order-table-shell .dt-buttons,
body[data-page="myshipments"] .order-table-shell .dataTables_filter { margin: 16px 20px 14px !important; }
body[data-page="myshipments"] .order-table-shell .dt-buttons { display: inline-flex; flex-wrap: wrap; gap: 7px; }
body[data-page="myshipments"] .order-table-shell .dataTables_filter { float: right; }
body[data-page="myshipments"] .order-table-shell #example { min-width: 1260px; border-top: 1px solid var(--ddx-line); }
body[data-page="myshipments"] .order-table-shell #example :where(th,td) { padding: 15px 14px !important; vertical-align: middle; }
body[data-page="myshipments"] .order-table-shell #example tbody td { color: #344054; font-size: 12px; }
body[data-page="myshipments"] .order-table-shell #example tbody tr { transition: box-shadow .18s, transform .18s; }
body[data-page="myshipments"] .order-table-shell #example tbody tr:hover { box-shadow: inset 3px 0 var(--ddx-red); }
body[data-page="myshipments"] .order-table-shell #example th:nth-child(1) { min-width: 105px; }
body[data-page="myshipments"] .order-table-shell #example th:nth-child(2) { min-width: 110px; }
body[data-page="myshipments"] .order-table-shell #example th:nth-child(3) { min-width: 165px; }
body[data-page="myshipments"] .order-table-shell #example th:nth-child(4) { min-width: 155px; }
body[data-page="myshipments"] .order-table-shell #example th:nth-child(7) { min-width: 140px; }
body[data-page="myshipments"] .order-table-shell #example th:nth-child(9) { min-width: 145px; }
body[data-page="myshipments"] .order-table-shell #example th:last-child { min-width: 190px; }
.order-tracking-cell { display: flex; align-items: center; gap: 7px; }
.order-tracking-code { overflow: hidden; max-width: 118px; color: var(--ddx-red); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.order-tracking-code:hover { text-decoration: underline; }
.order-copy-btn { min-height: 26px; padding: 3px 7px; border: 1px solid var(--ddx-line); border-radius: 7px; color: #667085; background: #fff; font-size: 10px; font-weight: 750; }
.order-copy-btn:hover { color: var(--ddx-red); border-color: rgba(217,39,46,.35); background: #fff5f5; }
.order-payment-cell { display: grid; justify-items: start; gap: 4px; }
.order-payment-date { color: #344054; font-weight: 700; white-space: nowrap; }
.order-payment-meta { color: var(--ddx-muted); font-size: 10px; }
.order-status-pill {
  display: inline-flex;
  min-height: 28px;
  max-width: 132px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.order-status-pill > i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }
.order-status--success { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.order-status--transit { color: #b4232a; border-color: #fecdd0; background: #fff1f2; }
.order-status--pending { color: #475467; border-color: #d0d5dd; background: #f8f9fb; }
.order-status--info { color: #026aa2; border-color: #b9e6fe; background: #f0f9ff; }
.order-status--danger { color: #b54708; border-color: #fedf89; background: #fffaeb; }
.order-status--neutral { color: #475467; border-color: #e4e7ec; background: #f9fafb; }
.order-actions { display: flex; align-items: center; justify-content: center; gap: 7px; }
.order-actions-secondary { display: flex; align-items: center; gap: 5px; }
.order-actions .btn { width: 34px; height: 34px; min-height: 34px; padding: 0 !important; }
body[data-page="myshipments"] .order-table-shell .dataTables_info,
body[data-page="myshipments"] .order-table-shell .dataTables_paginate { padding-inline: 20px !important; }

@media (max-width: 1100px) {
  .order-table-toolbar { align-items: flex-start; flex-direction: column; }
  body[data-page="myshipments"] .order-table-shell .tabs { width: 100%; overflow-x: auto; }
  .order-date-filter > .card-body { align-items: stretch; flex-wrap: wrap; }
  .order-date-filter-heading { width: 100%; }
  .order-date-fields { min-width: min(100%, 460px); }
}

@media (max-width: 767px) {
  body[data-page] .drawer-content > .px-6,
  body[data-page] .drawer-content > .p-4 { padding: 16px !important; }
  .order-date-filter > .card-body, .order-date-fields { flex-direction: column; }
  .order-date-fields, .order-date-field, .order-date-clear { width: 100%; }
  .order-date-separator { display: none; }
  .order-date-clear { align-self: stretch; }
  body[data-page="myshipments"] .stats .stat + .stat,
  body[data-page="mydebit"] .stats .stat + .stat { border-left: 0; border-top: 1px solid var(--ddx-line); }
  body[data-page="myshipments"] .dashboard-stats { grid-template-columns: 1fr !important; gap: 14px; }
  body[data-page="myshipments"] .dashboard-stats .stat + .stat { border-left: 1px solid var(--ddx-line); }
}

@media (min-width: 1024px) {
  .drawer.lg\:drawer-open { grid-template-columns: var(--ddx-sidebar) minmax(0, 1fr) !important; }
  body.ddx-sidebar-collapsed .drawer.lg\:drawer-open { grid-template-columns: 88px minmax(0, 1fr) !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder > aside,
  body.ddx-sidebar-collapsed .drawer-side > aside { width: 88px !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder aside > div:first-child,
  body.ddx-sidebar-collapsed .drawer-side aside > div:first-child { justify-content: center; padding-inline: 10px !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder aside > div:first-child img,
  body.ddx-sidebar-collapsed .drawer-side aside > div:first-child img { width: 54px !important; margin: 0 !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder aside > div:first-child > div,
  body.ddx-sidebar-collapsed .drawer-side aside > div:first-child > div,
  body.ddx-sidebar-collapsed .menu-title,
  body.ddx-sidebar-collapsed .sidebar-placeholder aside > div:last-child { display: none !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu,
  body.ddx-sidebar-collapsed .menu-sidebar { padding-inline: 12px !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu li,
  body.ddx-sidebar-collapsed .menu-sidebar li { position: relative; }
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu li > a,
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu li > button,
  body.ddx-sidebar-collapsed .menu-sidebar li > a,
  body.ddx-sidebar-collapsed .menu-sidebar li > button { justify-content: center; padding-inline: 0 !important; }
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu li > :is(a,button) > span,
  body.ddx-sidebar-collapsed .menu-sidebar li > :is(a,button) > span {
    position: absolute; left: calc(100% + 12px); top: 50%; z-index: 90; display: none; width: max-content; margin: 0 !important; padding: 7px 10px; border: 1px solid var(--ddx-line); border-radius: 8px; color: #fff; background: #25282c; box-shadow: 0 8px 20px rgba(23,25,29,.14); font-size: 12px; transform: translateY(-50%);
  }
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu li > :is(a,button):hover > span,
  body.ddx-sidebar-collapsed .sidebar-placeholder .menu li > :is(a,button):focus-visible > span,
  body.ddx-sidebar-collapsed .menu-sidebar li > :is(a,button):hover > span,
  body.ddx-sidebar-collapsed .menu-sidebar li > :is(a,button):focus-visible > span { display: block; }
}

@media (max-width: 1023px) {
  :root { --ddx-sidebar: 280px; }
  .navbar-placeholder, .drawer-content > .sticky:first-child { min-height: 64px !important; padding-inline: 16px !important; }
  .ddx-global-search { width: min(360px, 42vw); margin-inline: 16px auto; }
  .ddx-global-search kbd { display: none; }
  .drawer-side { z-index: 80 !important; }
  .drawer-side > aside { box-shadow: 16px 0 48px rgba(23,25,29,.12) !important; }
  .navbar-placeholder > div { padding-inline: 12px !important; }
}

@media (max-width: 767px) {
  .navbar-placeholder { gap: 8px; }
  .ddx-global-search { display: none !important; }
  .navbar-placeholder > div:last-child { margin-left: auto; }
  body[data-page] .drawer-content > .px-6,
  body[data-page] .drawer-content > .p-4 { padding: 16px !important; }
  body[data-page="myshipments"] .stats,
  body[data-page="mydebit"] .stats { width: 100%; }
  body[data-page="myshipments"] .tabs,
  body[data-page="mydebit"] .tabs {
    display: flex;
    width: 100%;
    max-width: calc(100vw - 64px);
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  body[data-page="myshipments"] .tabs .tab,
  body[data-page="mydebit"] .tabs .tab { flex: 0 0 auto; white-space: nowrap; }
  body[data-page="myshipments"] .card-body > .flex.flex-wrap.justify-between,
  body[data-page="myshipments"] .card-body > .flex.flex-wrap.justify-between > div { width: 100%; }
  body[data-page="myshipments"] .card-body > .flex.flex-wrap.justify-between > div { display: grid; grid-template-columns: 1fr; }
  body[data-page="myshipments"] .card-body > .flex.flex-wrap.justify-between :is(.select,.btn) { width: 100%; }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dt-buttons,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate { float: none !important; width: 100%; margin: 8px 0 !important; text-align: left !important; }
  .dataTables_wrapper .dataTables_filter label { display: grid; gap: 6px; }
  .dataTables_wrapper .dataTables_filter input { width: 100% !important; max-width: none !important; margin-left: 0 !important; }
  .dataTables_wrapper .dt-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
  .dataTables_wrapper .dataTables_info { min-height: 44px; padding: 10px 16px 4px !important; border-top: 1px solid var(--ddx-line); }
  .dataTables_wrapper .dataTables_paginate {
    min-height: 58px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 16px 12px !important;
    border-top: 0;
    white-space: nowrap;
  }
  .dataTables_wrapper .dataTables_paginate .first,
  .dataTables_wrapper .dataTables_paginate .last { display: none !important; }
  body[data-page="profile"] form > .space-y-12 > div { padding: 20px !important; }
  body[data-page="profile"] form .grid { grid-template-columns: 1fr !important; }
  body[data-page="mydebit"] #testtable,
  body[data-page="myshipments"] #example { min-width: 980px; }
}

/* Password recovery and error pages */
.ddx-chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 90; font-family: inherit; }
.ddx-chatbot-launcher { display: inline-flex; min-height: 50px; align-items: center; gap: 9px; padding: 0 18px; color: #fff; border: 0; border-radius: 999px; background: var(--ddx-red); box-shadow: 0 14px 34px rgba(185,25,33,.25); font-size: 13px; font-weight: 750; cursor: pointer; }
.ddx-chatbot-launcher:hover { background: var(--ddx-red-dark); transform: translateY(-2px); }
.ddx-chatbot-launcher svg { width: 21px; height: 21px; }
.ddx-chatbot.is-open .ddx-chatbot-launcher { visibility: hidden; opacity: 0; }
.ddx-chatbot-panel { position: absolute; right: 0; bottom: 0; overflow: hidden; width: min(380px, calc(100vw - 32px)); border: 1px solid var(--ddx-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(23,25,35,.18); }
.ddx-chatbot-panel[hidden] { display: none !important; }
.ddx-chatbot-header { display: grid; grid-template-columns: 42px minmax(0,1fr) 34px; align-items: center; gap: 11px; padding: 15px 16px; color: #fff; background: #202227; }
.ddx-chatbot-avatar { display: grid; width: 42px; height: 42px; overflow: hidden; place-items: center; border-radius: 12px; background: #fff; }
.ddx-chatbot-avatar img { width: 34px; height: 34px; object-fit: contain; }
.ddx-chatbot-header strong, .ddx-chatbot-header span { display: block; }
.ddx-chatbot-header strong { font-size: 14px; }
.ddx-chatbot-header span { margin-top: 3px; color: #d0d5dd; font-size: 10px; }
.ddx-chatbot-header span i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #12b76a; }
.ddx-chatbot-close { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: #fff; border: 0; border-radius: 9px; background: rgba(255,255,255,.08); font-size: 23px; line-height: 1; cursor: pointer; }
.ddx-chatbot-close:hover { background: rgba(255,255,255,.16); }
.ddx-chatbot-conversation { max-height: min(520px, calc(100vh - 190px)); overflow-y: auto; padding: 18px 16px; background: #f8f9fb; scrollbar-width: thin; }
.ddx-chat-message { width: fit-content; max-width: 88%; margin-bottom: 10px; padding: 11px 13px; border-radius: 14px; font-size: 12px; line-height: 1.55; }
.ddx-chat-message--bot { color: #344054; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; background: #fff; }
.ddx-chat-message--user { margin-left: auto; color: #fff; border-bottom-right-radius: 4px; background: var(--ddx-red); }
.ddx-chat-message a { display: block; width: fit-content; margin-top: 8px; color: var(--ddx-red); font-weight: 750; }
.ddx-chatbot-answer--form .ddx-chat-message--bot,
.ddx-chatbot-answer--results .ddx-chat-message--bot { width: 100%; max-width: 100%; }
.ddx-chat-quote-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ddx-line); }
.ddx-chat-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ddx-chat-form-grid label { display: grid; gap: 5px; color: #475467 !important; font-size: 10px; font-weight: 700; }
.ddx-chat-form-wide { grid-column: 1 / -1; }
.ddx-chat-form-grid :is(input,select) { width: 100%; height: 37px; min-width: 0; padding: 0 9px; color: #344054; border: 1px solid #d9dce3; border-radius: 8px; background: #fff; font: inherit; }
.ddx-chat-form-grid :is(input,select):focus { border-color: var(--ddx-red); box-shadow: 0 0 0 3px rgba(217,39,46,.1); outline: 0; }
.ddx-chat-quote-form > button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: #fff; border: 0; border-radius: 9px; background: var(--ddx-red); font-size: 11px; font-weight: 750; cursor: pointer; }
.ddx-chat-quote-form > button:hover { background: var(--ddx-red-dark); }
.ddx-chat-form-error { min-height: 0; margin: 8px 0 0; color: #b42318; font-size: 10px; line-height: 1.45; }
.ddx-chat-loading { display: inline-flex; align-items: center; gap: 7px; }
.ddx-chat-loading::before { width: 12px; height: 12px; content: ''; border: 2px solid #e5e7eb; border-top-color: var(--ddx-red); border-radius: 50%; animation: spin .8s linear infinite; }
.ddx-chat-quote-results { display: grid; gap: 7px; margin-top: 10px; }
.ddx-chat-quote-results article { display: grid; grid-template-columns: minmax(0,1fr) auto 48px; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--ddx-line); border-radius: 10px; background: #fff; }
.ddx-chat-quote-results article div { min-width: 0; }
.ddx-chat-quote-results article div:nth-child(2) { text-align: right; }
.ddx-chat-quote-results :is(strong,span,b,small) { display: block; }
.ddx-chat-quote-results strong { overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ddx-chat-quote-results span,.ddx-chat-quote-results small { margin-top: 2px; color: #667085; font-size: 9px; }
.ddx-chat-quote-results b { color: var(--ddx-red); font-size: 10px; white-space: nowrap; }
.ddx-chat-quote-results button { min-height: 30px; padding: 0 8px; color: var(--ddx-red); border: 1px solid #f0b9bd; border-radius: 8px; background: #fff5f5; font-size: 9px; font-weight: 750; cursor: pointer; }
.ddx-chat-quote-results button:hover { color: #fff; background: var(--ddx-red); }
.ddx-chat-quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.ddx-chat-quote-actions button { min-height: 38px; padding: 7px 9px; color: #475467; border: 1px solid var(--ddx-line); border-radius: 9px; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.ddx-chat-quote-actions button:first-child { color: #fff; border-color: var(--ddx-red); background: var(--ddx-red); }
.ddx-chat-quote-actions button:hover { color: var(--ddx-red); border-color: #f0b9bd; background: #fff5f5; }
.ddx-chat-quote-actions button:first-child:hover { color: #fff; background: var(--ddx-red-dark); }
.ddx-chatbot-caption { margin: 16px 0 8px; color: #667085; font-size: 11px; font-weight: 650; }
.ddx-chatbot-questions { display: grid; gap: 7px; }
.ddx-chatbot-questions button { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #344054; border: 1px solid var(--ddx-line); border-radius: 11px; background: #fff; font-size: 11px; font-weight: 650; text-align: left; cursor: pointer; }
.ddx-chatbot-questions button:hover { color: var(--ddx-red); border-color: #f0b9bd; background: #fff7f7; }
.ddx-chatbot-questions button span { color: #98a2b3; font-size: 19px; }
.ddx-chatbot-footer { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; color: #98a2b3; border-top: 1px solid var(--ddx-line); background: #fff; font-size: 10px; }
.ddx-chatbot-footer a { color: var(--ddx-red); font-weight: 750; }
@media (max-width: 640px) {
  .ddx-chatbot { right: 16px; bottom: 16px; }
  .ddx-chatbot-launcher span { display: none; }
  .ddx-chatbot-launcher { width: 50px; padding: 0; justify-content: center; }
  .ddx-chatbot-panel { position: fixed; right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* Password recovery and error pages */
.ddx-forgot {
  min-height: 100vh;
  background: radial-gradient(circle at 78% 22%, rgba(217,39,46,.2), transparent 30%), linear-gradient(135deg, #17191d, #2b2d31) !important;
}
.ddx-forgot .main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.ddx-forgot .container { width: min(100%, 480px); }
.ddx-forgot .wrapper { padding: clamp(28px, 5vw, 44px) !important; border: 1px solid rgba(255,255,255,.24) !important; border-radius: var(--ddx-radius-lg) !important; background: #fff !important; box-shadow: 0 30px 80px rgba(0,0,0,.3) !important; }
.ddx-forgot .wrapper::before { content: "MY DDX"; display: block; margin-bottom: 12px; color: var(--ddx-red); font-size: 12px; font-weight: 850; letter-spacing: .2em; }
.ddx-auth-logo { display: block; width: 150px; height: 74px; object-fit: contain; object-position: left center; }
.ddx-auth-logo-card { width: 112px; height: 54px; margin-bottom: 16px; }
.ddx-forgot .wrapper h1 { color: var(--ddx-ink) !important; letter-spacing: -.035em; }
.ddx-forgot .wrapper h1 b { color: var(--ddx-ink) !important; }
.ddx-forgot .form { gap: 18px; }
.ddx-forgot #forgot_btn { color: #fff !important; border: 0 !important; border-radius: var(--ddx-radius-sm) !important; background: var(--ddx-red) !important; }
.ddx-forgot #forgot_btn:hover { background: var(--ddx-red-dark) !important; }

.ddx-error-page { min-height: 100vh; background: radial-gradient(circle at 50% 0, rgba(217,39,46,.08), transparent 35%), var(--ddx-canvas) !important; }
.ddx-error-page section { background: transparent !important; }
.ddx-error-page section > .container > div { max-width: 540px !important; padding: 42px; border: 1px solid var(--ddx-line); border-radius: var(--ddx-radius-lg); background: #fff; box-shadow: var(--ddx-shadow); }
.ddx-error-page section p:first-child { color: #fff; background: var(--ddx-red) !important; }

@media (max-width: 640px) {
  .drawer-content > .p-4, .drawer-content > .px-6 { padding: 16px !important; }
  .stat { padding: 18px !important; }
  .modal-box { width: calc(100% - 24px) !important; padding: 20px !important; }
  .table :where(th,td) { padding: 12px !important; }
  .navbar-placeholder h1 { max-width: 150px; overflow: hidden; font-size: 16px !important; text-overflow: ellipsis; white-space: nowrap; }
  .navbar-placeholder .btn-circle { width: 38px !important; height: 38px !important; min-height: 38px !important; }
  .navbar-placeholder .flex.items-center.gap-3 { gap: 3px !important; }
  .navbar-placeholder #theme-dropdown-container { display: none; }
  .ddx-logistics-dashboard .dashboard-filter > div { align-items: stretch !important; }
  .ddx-logistics-dashboard .dashboard-filter .flex { width: 100%; }
  .ddx-logistics-dashboard .dashboard-filter .btn { flex: 1; }
  .dashboard-map-preview { height: 150px; }
  .ddx-logistics-dashboard .dashboard-card { padding: 18px !important; }
  .ddx-logistics-dashboard .dashboard-activity-table > div:first-child { padding: 18px; }
  .ddx-logistics-dashboard .dashboard-activity-table > div:first-child h2 { font-size: 17px !important; }
  .dashboard-card-heading { gap: 12px; }
  .dashboard-period-label { display: none; }
  .chart-container { min-height: 260px; }
  .modal-box { max-height: calc(100dvh - 24px); overflow-y: auto; }
  body[data-page="myshipments"] .order-insights-grid .card { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Authentication pages */
body.ddx-auth { min-height: 100vh; background: #17191d !important; }
.ddx-auth .hero { overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #17191d 0%, #25282c 58%, #321b1e 100%); }
.ddx-auth .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,25,29,.94), rgba(31,32,34,.68) 58%, rgba(69,22,25,.68)); }
.ddx-auth .hero video { opacity: .2; filter: grayscale(1) contrast(1.12); }
.ddx-auth .hero-content { position: relative; z-index: 1; width: min(1080px, calc(100% - 32px)); gap: clamp(32px, 7vw, 96px); }
.ddx-auth .hero-content > .text-center { flex: 1; }
.ddx-auth .hero-content .card { width: min(100%, 500px) !important; max-width: 500px !important; border: 1px solid rgba(255,255,255,.32) !important; border-radius: var(--ddx-radius-lg) !important; box-shadow: 0 30px 80px rgba(0,0,0,.28) !important; }
.ddx-auth .card-body { padding: clamp(26px, 4vw, 44px) !important; }
.ddx-auth .card-body::before { content: "MY DDX"; display: block; margin-bottom: 20px; color: var(--ddx-red); font-size: 12px; font-weight: 850; letter-spacing: .2em; }
.ddx-auth .form-control { display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: 100%; }
.ddx-auth .form-control + .form-control { margin-top: 14px; }
.ddx-auth .form-control .form-control { margin-top: 4px; }
.ddx-auth .form-control > .label { display: flex; width: 100%; padding: 2px 0 !important; }
.ddx-auth .form-control > .input { width: 100%; }
.ddx-auth .cursor-pointer.label { flex-direction: row; justify-content: flex-start; gap: 10px; }
.ddx-auth .link { color: var(--ddx-red) !important; }
.ddx-auth #btn_login, .ddx-auth #signup_btn { width: 100%; }
.ddx-auth form { width: 100%; }
.ddx-auth .text-center > p { max-width: 520px; color: rgba(255,255,255,.78) !important; font-size: 17px; line-height: 1.7; }
.ddx-auth .toast { z-index: 100; }

@media (max-width: 1023px) {
  .ddx-auth .hero-content { padding-block: 42px; }
  .ddx-auth .hero-content > .text-center > .ddx-auth-logo, .ddx-auth .hero-content > .text-center > p { display: none; }
}
