-
@@ -541,8 +619,17 @@ async function submitReceipt() {
display: grid;
grid-template-columns: 40px 1fr 40px;
align-items: center;
- margin-bottom: 20px;
+ margin-bottom: 16px;
flex-shrink: 0;
+ gap: 4px;
+}
+
+.order-detail-page__nav-center {
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2px;
}
.order-detail-page__title {
@@ -551,6 +638,17 @@ async function submitReceipt() {
font-weight: 700;
text-align: center;
color: var(--color-text);
+ line-height: 1.35;
+}
+
+.order-detail-page__order-id {
+ margin: 0;
+ text-align: center;
+ font-size: 0.8125rem;
+ font-weight: 600;
+ line-height: 1.3;
+ color: var(--color-text-muted);
+ font-variant-numeric: tabular-nums;
}
.nav-btn {
@@ -584,14 +682,6 @@ async function submitReceipt() {
width: 100%;
}
-.order-detail-page__order-id {
- margin: -8px 0 16px;
- text-align: center;
- font-size: 0.875rem;
- font-weight: 600;
- color: var(--color-text-muted);
-}
-
.order-info-card {
background: var(--color-elevated);
border-radius: 20px;
@@ -713,7 +803,7 @@ async function submitReceipt() {
width: 100%;
}
-.order-detail-page__tracking-aside,
+.order-detail-page__tracking-hero,
.order-detail-page__tracking-main {
display: flex;
flex-direction: column;
@@ -722,11 +812,6 @@ async function submitReceipt() {
width: 100%;
}
-/* Mobile: status first (above content) */
-.order-detail-page__tracking-aside {
- order: -1;
-}
-
.tracking-card {
padding: 16px;
border: 1px solid var(--color-border);
@@ -741,10 +826,6 @@ async function submitReceipt() {
gap: 12px;
}
-.tracking-panel__title {
- display: none;
-}
-
.order-detail-page__tracking :deep(.status-hero) {
padding: 4px 0 8px;
}
@@ -761,13 +842,11 @@ async function submitReceipt() {
@media (min-width: 768px) {
.order-detail-page__tracking :deep(.status-hero) {
- align-items: flex-start;
- text-align: start;
- padding: 0 0 8px;
+ padding: 0;
}
.order-detail-page__tracking :deep(.status-hero__desc) {
- max-width: none;
+ max-width: 42rem;
}
}
@@ -844,26 +923,27 @@ async function submitReceipt() {
}
.order-detail-page__tracking {
- display: grid;
- /* RTL: first column (status) sits beside sidebar on the right */
- grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
- gap: 20px;
- align-items: start;
+ gap: 16px;
margin-top: 8px;
}
- .order-detail-page__tracking-aside {
- order: initial;
- position: sticky;
- top: 16px;
- }
-
.order-detail-page__tracking-main {
- gap: 16px;
+ gap: 14px;
}
.tracking-card--hero {
- padding: 20px;
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 16px;
+ align-items: stretch;
+ padding: 22px 24px;
+ }
+
+ .order-detail-page__tracking :deep(.tracking-summary) {
+ border-inline-start: none;
+ padding-inline-start: 0;
+ border-top: 1px solid var(--color-border);
+ padding-top: 16px;
}
.tracking-collapse {
@@ -875,26 +955,16 @@ async function submitReceipt() {
}
.tracking-collapse__trigger {
- display: none;
+ padding: 16px 20px;
}
.tracking-collapse__body {
- display: flex !important;
- padding: 20px;
- border-top: none;
+ padding: 0 20px 20px;
gap: 16px;
}
- .tracking-panel__title {
- display: block;
- margin: 0;
- font-size: 1rem;
- font-weight: 700;
- color: var(--color-text);
- }
-
- .tracking-collapse__section {
- padding-top: 0;
+ .tracking-collapse__section--flush {
+ max-width: 520px;
}
.tracking-collapse__section + .tracking-collapse__section,
@@ -909,10 +979,29 @@ async function submitReceipt() {
}
}
+@media (min-width: 1000px) {
+ .tracking-card--hero {
+ grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.75fr);
+ gap: 20px;
+ }
+
+ .order-detail-page__tracking :deep(.tracking-summary) {
+ border-top: none;
+ padding-top: 0;
+ border-inline-start: 1px solid var(--color-border);
+ padding-inline-start: 20px;
+ }
+}
+
@media (min-width: 1200px) {
- .order-detail-page__tracking {
- grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
- gap: 24px;
+ .tracking-card--hero {
+ grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
+ gap: 28px;
+ padding: 24px 28px;
+ }
+
+ .tracking-collapse__section--flush {
+ max-width: 560px;
}
}
@@ -1008,6 +1097,96 @@ async function submitReceipt() {
overflow-y: auto;
}
+.receipt-modal-overlay {
+ position: fixed;
+ inset: 0;
+ z-index: 1100;
+ display: flex;
+ align-items: flex-end;
+ justify-content: center;
+ padding: 0;
+ background: rgba(15, 23, 42, 0.52);
+ backdrop-filter: blur(8px);
+ -webkit-backdrop-filter: blur(8px);
+}
+
+.receipt-modal {
+ width: 100%;
+ max-height: 92dvh;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
+ background: var(--color-surface);
+ box-shadow: var(--shadow-md);
+}
+
+.receipt-modal__header {
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ padding: 14px 16px;
+ border-bottom: 1px solid var(--color-border);
+}
+
+.receipt-modal__title {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 700;
+ color: var(--color-text);
+}
+
+.receipt-modal__close {
+ width: 36px;
+ height: 36px;
+ border: none;
+ border-radius: var(--radius-sm);
+ background: transparent;
+ color: var(--color-text-muted);
+ font-size: 1.5rem;
+ line-height: 1;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.receipt-modal__close:hover {
+ background: var(--color-bg);
+ color: var(--color-text);
+}
+
+.receipt-modal__body {
+ flex: 1 1 auto;
+ min-height: 0;
+ overflow-y: auto;
+ padding: 16px;
+ padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
+}
+
+@media (min-width: 768px) {
+ .receipt-modal-overlay {
+ align-items: center;
+ padding: 24px;
+ }
+
+ .receipt-modal {
+ width: min(100%, 520px);
+ max-height: min(90dvh, 760px);
+ border-radius: var(--radius-lg);
+ }
+
+ .receipt-modal__header {
+ padding: 16px 20px;
+ }
+
+ .receipt-modal__body {
+ padding: 20px;
+ }
+}
+
.select-input {
width: 100%;
padding: 12px;
@@ -1020,6 +1199,41 @@ async function submitReceipt() {
border-color: var(--color-danger);
}
+.upload-box {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 120px;
+ border: 1.5px dashed var(--color-border);
+ border-radius: var(--radius-md);
+ background: var(--color-surface);
+ cursor: pointer;
+ overflow: hidden;
+ position: relative;
+}
+
+.upload-box--error {
+ border-color: var(--color-danger);
+}
+
+.upload-box__input {
+ position: absolute;
+ inset: 0;
+ opacity: 0;
+ cursor: pointer;
+}
+
+.upload-box__placeholder {
+ font-size: 0.875rem;
+ color: var(--color-text-muted);
+}
+
+.upload-box__preview {
+ max-width: 100%;
+ max-height: 140px;
+ object-fit: contain;
+}
+
.input-error-text {
color: var(--color-danger);
font-size: 0.8125rem;
diff --git a/src/views/profile/ProfileEditView.vue b/src/views/profile/ProfileEditView.vue
index 0da23c2..f833a23 100644
--- a/src/views/profile/ProfileEditView.vue
+++ b/src/views/profile/ProfileEditView.vue
@@ -98,6 +98,7 @@ async function save() {
label="کد ملی"
maxlength="10"
inputmode="numeric"
+ dir="ltr"
hint="برای ثبت چک الزامی است"
:error="fieldErrors.nationalId"
@update:model-value="clearField('nationalId')"