new chnages in ui

This commit is contained in:
2026-05-27 15:22:45 +05:30
parent 8c2248974e
commit 15f15958e6
4 changed files with 1206 additions and 456 deletions

View File

@@ -5,7 +5,7 @@
/* ============================================== */
.location-panel {
position: relative;
padding: 16px 18px 16px 18px;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid #eef2f6;
background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
@@ -39,10 +39,10 @@
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 22px;
padding-bottom: 18px;
margin-bottom: 12px;
padding-bottom: 10px;
border-bottom: 1px dashed #e2e8f0;
}
@@ -154,16 +154,16 @@
}
.lp-badge {
width: 42px;
height: 42px;
border-radius: 12px;
width: 34px;
height: 34px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-size: 15px;
color: #fff;
flex-shrink: 0;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}
.pickup-panel .lp-badge {
@@ -177,25 +177,26 @@
}
.lp-title {
font-size: 18px;
font-size: 15px;
font-weight: 700;
color: #1e293b;
line-height: 1.2;
}
.lp-subtitle {
font-size: 13.5px;
font-size: 11.5px;
color: #94a3b8;
margin-top: 3px;
margin-top: 1px;
}
.lp-action-btn {
text-transform: none !important;
font-weight: 600 !important;
font-size: 13.5px !important;
border-radius: 10px !important;
padding: 7px 14px !important;
font-size: 12px !important;
border-radius: 8px !important;
padding: 5px 11px !important;
letter-spacing: 0.2px !important;
min-height: 30px !important;
}
.pickup-panel .lp-action-btn {
@@ -264,12 +265,12 @@
display: flex;
align-items: center;
gap: 8px;
font-size: 12.5px;
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.8px;
letter-spacing: 0.7px;
text-transform: uppercase;
color: #64748b;
margin-bottom: 14px;
margin-bottom: 8px;
}
.field-group-caption::after {
@@ -723,48 +724,53 @@
/* MUI Field Sizing — Readable on large screens */
/* ============================================== */
/* Bump TextField input + label sizes inside Pickup/Drop panels and order cards */
/* Compact TextField input + label sizes inside Pickup/Drop panels and order cards */
.location-panel .MuiOutlinedInput-root,
.orders-card .MuiOutlinedInput-root {
font-size: 14.5px !important;
font-size: 13px !important;
border-radius: 10px !important;
}
.location-panel .MuiOutlinedInput-input,
.orders-card .MuiOutlinedInput-input {
font-size: 14.5px !important;
padding-top: 11px !important;
padding-bottom: 11px !important;
font-size: 13px !important;
padding-top: 9px !important;
padding-bottom: 9px !important;
}
.location-panel .MuiInputLabel-root,
.orders-card .MuiInputLabel-root {
font-size: 14.5px !important;
font-size: 13px !important;
}
/* When label is shrunk (floating up), keep it slightly smaller for the float effect */
.location-panel .MuiInputLabel-root.MuiInputLabel-shrink,
.orders-card .MuiInputLabel-root.MuiInputLabel-shrink {
font-size: 13px !important;
font-size: 11.5px !important;
}
/* MUI helper text (validation / hints under fields) */
.location-panel .MuiFormHelperText-root,
.orders-card .MuiFormHelperText-root {
font-size: 12.5px !important;
font-size: 11px !important;
margin-top: 3px !important;
}
/* Autocomplete options dropdown */
.MuiAutocomplete-popper .MuiAutocomplete-option {
font-size: 14.5px !important;
font-size: 13px !important;
padding-top: 6px !important;
padding-bottom: 6px !important;
min-height: 34px !important;
}
/* Card section titles (h5 / h6) inside order cards — bump slightly for hierarchy */
/* Card section titles (h5 / h6) inside order cards — tighter hierarchy */
.orders-card .MuiTypography-h5 {
font-size: 19px !important;
font-size: 15px !important;
}
.orders-card .MuiTypography-h6 {
font-size: 16.5px !important;
font-size: 13.5px !important;
}
.orders-card:hover {
@@ -900,99 +906,209 @@
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
border: 1px solid #eef2f6;
height: 380px;
min-height: 380px;
height: 260px;
min-height: 260px;
}
/* Premium Cost & Metrics Dashboard */
.map-preview-wrapper .leaflet-container {
height: 100% !important;
min-height: 0 !important;
}
.map-preview-wrapper > div {
min-height: 0 !important;
}
/* Premium Cost & Metrics Dashboard — compact professional layout */
.pricing-summary-card {
background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
border: 1px solid #eef2f6 !important;
border-radius: 16px !important;
padding: 20px !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;
}
.price-metric-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px dashed #e2e8f0;
padding: 7px 0;
border-bottom: 1px solid #f5f7fa;
}
.price-metric-item:last-child {
.price-metric-item:last-of-type {
border-bottom: none;
padding-bottom: 4px;
}
.price-metric-label {
font-size: 14.5px;
font-size: 12.5px;
color: #475569;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
gap: 10px;
min-width: 0;
}
.price-metric-icon {
width: 26px;
height: 26px;
flex-shrink: 0;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 12px;
}
.price-metric-icon.icon-distance {
background: rgba(24, 144, 255, 0.10);
color: #1890ff;
}
.price-metric-icon.icon-base {
background: rgba(34, 197, 94, 0.10);
color: #16a34a;
}
.price-metric-icon.icon-rate {
background: rgba(245, 158, 11, 0.12);
color: #d97706;
}
.price-metric-sub {
color: #94a3b8;
font-weight: 500;
font-size: 11.5px;
}
.price-metric-value {
font-size: 16px;
font-size: 13.5px;
font-weight: 700;
color: #1e293b;
display: inline-flex;
align-items: baseline;
gap: 2px;
white-space: nowrap;
}
.price-metric-value.highlight {
color: #1890ff;
}
.price-metric-unit {
font-size: 11px;
font-weight: 500;
color: #94a3b8;
margin-left: 2px;
}
.total-charge-badge {
background: linear-gradient(135deg, rgba(24, 144, 255, 0.08) 0%, rgba(101, 56, 122, 0.08) 100%);
border: 1px solid rgba(24, 144, 255, 0.15);
border-radius: 12px;
padding: 16px;
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;
flex-direction: column;
align-items: center;
margin-top: 16px;
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: 13px;
font-size: 11.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
letter-spacing: 0.6px;
color: #65387A;
margin-bottom: 6px;
}
.total-charge-val {
font-size: 32px;
font-size: 20px;
font-weight: 800;
color: #65387A;
line-height: 1.1;
letter-spacing: -0.01em;
white-space: nowrap;
}
/* Gradient Action Button */
/* Gradient Action Button — compact professional */
.gradient-btn-create {
background: linear-gradient(135deg, #1890ff 0%, #65387a 100%) !important;
color: #ffffff !important;
font-weight: 600 !important;
border-radius: 12px !important;
padding: 12px 28px !important;
box-shadow: 0 8px 20px -4px rgba(24, 144, 255, 0.3) !important;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !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 {
transform: translateY(-2px) !important;
box-shadow: 0 12px 28px -4px rgba(24, 144, 255, 0.45), 0 4px 10px rgba(101, 56, 122, 0.2) !important;
transform: translateY(-1px) !important;
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 {
transform: translateY(0) !important;
filter: brightness(0.98);
}
.gradient-btn-create.Mui-disabled,
.gradient-btn-create:disabled {
background: #cbd5e1 !important;
background: #e2e8f0 !important;
color: #94a3b8 !important;
box-shadow: none !important;
cursor: not-allowed !important;
@@ -1261,8 +1377,8 @@
}
.map-preview-wrapper {
height: 300px;
min-height: 300px;
height: 220px;
min-height: 220px;
}
.weight-card-btn {
@@ -1299,4 +1415,464 @@
main:has(.orders-workspace-bg) {
padding: 16px !important;
}
}
/* ============================================== */
/* Compact header dropdowns (Location / Client / Business Location) */
/* ============================================== */
.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;
}
/* Autocomplete-specific tweaks: vertically center the clear / popup icons */
.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;
}
/* Title row alignment tweak for tighter header */
.page-header-row {
min-height: 0 !important;
}
/* ============================================== */
/* Delivery Preferences Card */
/* (Special Dispatch Notes + SMS Updates) */
/* ============================================== */
.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;
}
/* SMS toggle tile — a card-like clickable strip */
.sms-toggle-tile {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 8px 12px;
border-radius: 10px;
border: 1px solid #eef2f6;
background: #fafbfc;
cursor: pointer;
user-select: none;
transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.sms-toggle-tile:hover {
border-color: #cbd5e1;
background: #ffffff;
}
.sms-toggle-tile.is-active {
background: linear-gradient(135deg, rgba(24, 144, 255, 0.06) 0%, rgba(101, 56, 122, 0.05) 100%);
border-color: rgba(24, 144, 255, 0.28);
box-shadow: 0 3px 10px -3px rgba(24, 144, 255, 0.18);
}
.sms-toggle-left {
display: inline-flex;
align-items: center;
gap: 9px;
min-width: 0;
}
.sms-toggle-icon {
width: 28px;
height: 28px;
flex-shrink: 0;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #eef2f6;
color: #94a3b8;
transition: all 0.2s ease;
}
.sms-toggle-tile.is-active .sms-toggle-icon {
background: linear-gradient(135deg, #1890ff, #65387a);
color: #ffffff;
box-shadow: 0 3px 10px rgba(101, 56, 122, 0.22);
}
.sms-toggle-title {
font-size: 12.5px !important;
font-weight: 700 !important;
color: #1e293b !important;
line-height: 1.2 !important;
letter-spacing: -0.005em;
}
.sms-toggle-sub {
font-size: 10.5px !important;
color: #94a3b8 !important;
font-weight: 500 !important;
margin-top: 1px !important;
line-height: 1.2 !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sms-toggle-tile .MuiSwitch-root {
flex-shrink: 0;
}
/* ============================================== */
/* Pickup → Drop Two-Step Stepper */
/* ============================================== */
.route-stepper {
display: flex;
align-items: stretch;
gap: 0;
padding: 4px;
margin-bottom: 12px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border: 1px solid #e2e8f0;
border-radius: 12px;
}
.route-step {
flex: 1;
display: flex;
align-items: center;
gap: 10px;
padding: 6px 10px;
border-radius: 9px;
cursor: pointer;
transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
user-select: none;
background: transparent;
outline: none;
}
.route-step:hover {
background: rgba(255, 255, 255, 0.6);
}
.route-step.is-active {
background: #ffffff;
box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
transform: translateY(-1px);
}
.route-step.is-locked {
cursor: not-allowed;
opacity: 0.6;
}
.route-step.is-locked:hover {
background: transparent;
}
.route-step-index {
width: 26px;
height: 26px;
flex-shrink: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 12px;
color: #94a3b8;
background: #ffffff;
border: 1.5px solid #e2e8f0;
transition: all 0.22s ease;
}
.step-pickup.is-active .route-step-index {
background: linear-gradient(135deg, #1890ff, #096dd9);
border-color: transparent;
color: #ffffff;
box-shadow: 0 4px 12px rgba(24, 144, 255, 0.32);
}
.step-drop.is-active .route-step-index {
background: linear-gradient(135deg, #a855f7, #65387a);
border-color: transparent;
color: #ffffff;
box-shadow: 0 4px 12px rgba(101, 56, 122, 0.32);
}
.step-pickup.is-done:not(.is-active) .route-step-index {
background: rgba(34, 197, 94, 0.12);
border-color: rgba(34, 197, 94, 0.35);
color: #16a34a;
}
.route-step-text {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.route-step-title {
font-size: 13px !important;
font-weight: 700 !important;
color: #1e293b !important;
letter-spacing: -0.01em;
}
.route-step.is-locked .route-step-title {
color: #94a3b8 !important;
}
.route-step-sub {
font-size: 10.5px !important;
font-weight: 500 !important;
color: #94a3b8 !important;
margin-top: 1px !important;
}
.route-step-connector {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 0 6px;
position: relative;
min-width: 28px;
}
.route-step-line {
width: 100%;
height: 2px;
background: #e2e8f0;
border-radius: 2px;
transition: background 0.3s ease;
}
.route-step-connector.is-done .route-step-line {
background: linear-gradient(90deg, #1890ff, #a855f7);
}
.route-step-line-arrow {
position: absolute;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
background: #ffffff;
border: 1.5px solid #e2e8f0;
color: #cbd5e1;
font-size: 10px;
transition: all 0.3s ease;
}
.route-step-connector.is-done .route-step-line-arrow {
border-color: rgba(168, 85, 247, 0.4);
color: #a855f7;
}
/* Step navigation footer inside each panel */
.step-nav {
margin-top: 12px;
padding-top: 10px;
border-top: 1px dashed #e2e8f0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
}
.step-nav-hint {
font-size: 11.5px !important;
color: #64748b !important;
font-weight: 500 !important;
}
.step-nav-btn {
text-transform: none !important;
font-weight: 600 !important;
border-radius: 8px !important;
padding: 6px 14px !important;
font-size: 12px !important;
letter-spacing: 0.01em !important;
transition: all 0.22s ease !important;
min-height: 32px !important;
}
.step-nav-next {
background: linear-gradient(135deg, #1890ff, #65387a) !important;
color: #ffffff !important;
box-shadow: 0 6px 18px -6px rgba(101, 56, 122, 0.35) !important;
}
.step-nav-next:hover {
filter: brightness(1.05);
transform: translateY(-1px);
box-shadow: 0 10px 22px -8px rgba(101, 56, 122, 0.45) !important;
}
.step-nav-next.Mui-disabled {
background: #e2e8f0 !important;
color: #94a3b8 !important;
box-shadow: none !important;
}
.step-nav-back {
color: #475569 !important;
background: #f1f5f9 !important;
border: 1px solid #e2e8f0 !important;
}
.step-nav-back:hover {
background: #e2e8f0 !important;
color: #1e293b !important;
}
@media (max-width: 599px) {
.route-step-sub {
display: none !important;
}
.route-step {
padding: 8px 10px;
gap: 8px;
}
.route-step-index {
width: 28px;
height: 28px;
font-size: 13px;
}
.step-nav {
flex-direction: column-reverse;
align-items: stretch;
}
.step-nav-btn {
width: 100%;
}
}