/* =====================================================
   Movador Dokan Orders
   Order list, filters, and order details surfaces.
   ===================================================== */

body.movador-dokan-dashboard .dokan-orders-area,
body.movador-dokan-dashboard .dokan-order-listing,
body.movador-dokan-dashboard .dokan-order-details-wrap,
body.movador-dokan-dashboard .dokan-dashboard-layout .dokan-react-orders > div {
  background: #ffffff !important;
  border: 1px solid var(--mv-dokan-line) !important;
  border-radius: var(--mv-dokan-radius) !important;
  box-shadow: var(--mv-dokan-shadow-soft) !important;
}

body.movador-dokan-dashboard .dokan-order-filter-serach,
body.movador-dokan-dashboard .dokan-order-filter-serach .dokan-form-group,
body.movador-dokan-dashboard .dokan-orders-area .dokan-form-inline {
  gap: 10px !important;
}

body.movador-dokan-dashboard .dokan-orders-area .dokan-table,
body.movador-dokan-dashboard .dokan-table-order {
  border-radius: var(--mv-dokan-radius-sm) !important;
  overflow: hidden !important;
}

body.movador-dokan-dashboard .dokan-orders-area .dokan-table tbody tr:hover td,
body.movador-dokan-dashboard .dokan-table-order tbody tr:hover td {
  background: rgba(37, 99, 235, 0.035) !important;
}

body.movador-dokan-dashboard .dokan-orders-area .order-status,
body.movador-dokan-dashboard .dokan-order-status {
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 5px 10px !important;
}

body.movador-dokan-dashboard .dokan-order-details-wrap .dokan-panel-heading,
body.movador-dokan-dashboard .dokan-order-details-wrap .dokan-panel-title {
  color: var(--mv-dokan-ink) !important;
  font-weight: 850 !important;
}

body.movador-dokan-dashboard .dokan-order-details-wrap .dokan-panel {
  overflow: hidden !important;
}

/* =====================================================
   Movador Orders header cleanup
   Scope: Dokan Orders list only.
   Purpose: remove the large blue header block and style the real Export All button.
   ===================================================== */

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-dashboard-layout,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-dashboard-layout,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-dashboard-layout,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-dashboard-layout {
  padding: 0 !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-title,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-title,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-title,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-title {
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-actions,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin-left: auto !important;
  gap: 10px !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section h1,
body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section h2,
body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section h3,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section h1,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section h2,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section h3,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section h1,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section h2,
body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section h3,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section h1,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section h2,
body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: #0f172a !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(21px, 1.45vw, 25px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button,
body.movador-dokan-dashboard .dokan-orders-area input[name="dokan_order_export_all"],
body.dokan-dashboard-fullwidth-template .dokan-orders-area input[name="dokan_order_export_all"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.20) !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button svg,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button svg {
  color: #ffffff !important;
  stroke: currentColor !important;
}

body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button:hover,
body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button:focus-visible,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button:hover,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button:focus-visible,
body.movador-dokan-dashboard .dokan-orders-area input[name="dokan_order_export_all"]:hover,
body.movador-dokan-dashboard .dokan-orders-area input[name="dokan_order_export_all"]:focus-visible,
body.dokan-dashboard-fullwidth-template .dokan-orders-area input[name="dokan_order_export_all"]:hover,
body.dokan-dashboard-fullwidth-template .dokan-orders-area input[name="dokan_order_export_all"]:focus-visible {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25) !important;
  outline: none !important;
}

@media (max-width: 720px) {
  body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section,
  body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section,
  body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-title,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-title,
  body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-title,
  body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions,
  body.movador-dokan-dashboard:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-actions,
  body.dokan-dashboard-fullwidth-template:has(.dokan-orders-area) .dokan-header-title-section .dokan-header-actions {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-orders) .dokan-header-title-section .dokan-header-actions > .relative > button,
  body.movador-dokan-dashboard .dokan-orders-area input[name="dokan_order_export_all"],
  body.dokan-dashboard-fullwidth-template .dokan-orders-area input[name="dokan_order_export_all"] {
    min-height: 38px !important;
    padding: 0 15px !important;
    font-size: 12.5px !important;
  }
}
