/* OrdersRedesign.css — premium aesthetics + micro-animations
   Ported from xpressconsole; trimmed to only the classes the
   redesigned multipleOrders.js (and its peers) consume here. */

/* ---------- Page background ---------- */
.orders-workspace-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important;
}

/* ---------- Cards ---------- */
.orders-card {
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(62, 73, 84, 0.04),
              0 4px 12px -2px rgba(62, 73, 84, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
}
.orders-card:hover {
  box-shadow: 0 16px 35px -8px rgba(62, 73, 84, 0.08),
              0 6px 16px -3px rgba(62, 73, 84, 0.03) !important;
}

.orders-card .MuiOutlinedInput-root {
  font-size: 13px !important;
  border-radius: 10px !important;
}
.orders-card .MuiOutlinedInput-input {
  font-size: 13px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}
.orders-card .MuiInputLabel-root {
  font-size: 13px !important;
}
.orders-card .MuiInputLabel-root.MuiInputLabel-shrink {
  font-size: 11.5px !important;
}

/* ---------- Section title bar (gradient strip + h-title) ---------- */
.section-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title-bar::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1890ff, #096dd9);
  flex-shrink: 0;
}
.section-title-bar--accent::before {
  background: linear-gradient(180deg, #a855f7, #65387a);
}
.section-title-bar .MuiTypography-root {
  margin-bottom: 0 !important;
  line-height: 1.2;
}

/* ---------- Delivery preferences card ---------- */
.delivery-prefs-card {
  background: linear-gradient(135deg, #ffffff 0%, #fbfcff 100%) !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 14px !important;
}
.delivery-prefs-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.delivery-prefs-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.delivery-prefs-sub {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  text-align: right;
  line-height: 1.2;
}
.delivery-prefs-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.delivery-prefs-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.delivery-prefs-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: #64748b;
}

/* ---------- Pricing summary card ---------- */
.pricing-summary-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
}
.pricing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.pricing-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  letter-spacing: -0.01em;
}
.pricing-subtitle {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---------- Total charge badge ---------- */
.total-charge-badge {
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(101, 56, 122, 0.10) 100%);
  border: 1px solid rgba(101, 56, 122, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.total-charge-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.total-charge-icon {
  font-size: 13px;
  color: #65387A;
  flex-shrink: 0;
}
.total-charge-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #65387A;
}
.total-charge-val {
  font-size: 20px;
  font-weight: 800;
  color: #65387A;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Gradient action button ---------- */
.gradient-btn-create {
  background: linear-gradient(135deg, #1890ff 0%, #65387a 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  min-height: 38px !important;
  box-shadow: 0 4px 12px -3px rgba(24, 144, 255, 0.30),
              0 2px 4px rgba(101, 56, 122, 0.10) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.gradient-btn-create .MuiButton-startIcon,
.gradient-btn-create .MuiButton-endIcon {
  margin: 0 !important;
}
.gradient-btn-create:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 18px -4px rgba(24, 144, 255, 0.40),
              0 3px 8px rgba(101, 56, 122, 0.18) !important;
}
.gradient-btn-create:active { filter: brightness(0.98); }
.gradient-btn-create.Mui-disabled,
.gradient-btn-create:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* ---------- Compact header inputs (Location/Client/Business) ---------- */
.header-compact-tf .MuiOutlinedInput-root {
  border-radius: 10px !important;
  height: 40px !important;
  padding-left: 10px !important;
  font-size: 12.5px !important;
  background: #ffffff;
}
.header-compact-tf .MuiOutlinedInput-input {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  font-size: 12.5px !important;
}
.header-compact-tf .MuiInputLabel-root {
  font-size: 11.5px !important;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #64748b !important;
}
.header-compact-tf .MuiInputLabel-shrink {
  transform: translate(12px, -7px) scale(0.82) !important;
  background: #ffffff;
  padding: 0 4px;
}
.header-compact-tf .MuiOutlinedInput-notchedOutline { border-color: #e2e8f0; }
.header-compact-tf:hover .MuiOutlinedInput-notchedOutline { border-color: #cbd5e1; }
.header-compact-tf .Mui-focused .MuiOutlinedInput-notchedOutline { border-width: 1.5px !important; }

.header-compact-input .MuiAutocomplete-endAdornment {
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  display: inline-flex;
  align-items: center;
  height: auto;
  gap: 2px;
}
.header-compact-input .MuiAutocomplete-endAdornment .MuiSvgIcon-root {
  font-size: 16px;
  display: block;
}
.header-compact-input .MuiAutocomplete-clearIndicator,
.header-compact-input .MuiAutocomplete-popupIndicator {
  padding: 3px !important;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8 !important;
}
.header-compact-input .MuiAutocomplete-clearIndicator:hover,
.header-compact-input .MuiAutocomplete-popupIndicator:hover {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #475569 !important;
}
.header-compact-input .MuiAutocomplete-popupIndicator { margin-right: 0; }
.header-compact-input .MuiOutlinedInput-root {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 60px !important;
}
.header-compact-input .MuiAutocomplete-input {
  padding: 4px 4px 4px 0 !important;
  height: auto !important;
}
