498 lines
8.3 KiB
CSS
498 lines
8.3 KiB
CSS
.orders-page {
|
|
background-color: var(--bg);
|
|
}
|
|
|
|
.orders-content {
|
|
padding: 16px;
|
|
padding-bottom: 90px;
|
|
}
|
|
|
|
.home-content {
|
|
padding: 16px;
|
|
padding-bottom: 90px;
|
|
}
|
|
|
|
.section-label {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--text-mid);
|
|
text-transform: uppercase;
|
|
margin-bottom: 12px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.latest-order-section {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.latest-order-card {
|
|
background: var(--surface);
|
|
border-radius: 24px;
|
|
padding: 20px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.latest-order-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.latest-order-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.order-main-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.order-number {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.order-date {
|
|
font-size: 12px;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.order-status-badge {
|
|
background: var(--green-light);
|
|
color: var(--green);
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.latest-qr-wrapper {
|
|
background: var(--bg);
|
|
padding: 16px;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.mini-qr {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.qr-hint-text {
|
|
font-size: 11px;
|
|
color: var(--text-mid);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.order-items-summary {
|
|
font-size: 14px;
|
|
color: var(--text-dark);
|
|
line-height: 1.4;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px dashed var(--border);
|
|
}
|
|
|
|
.order-total-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.amount-text {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* Previous Orders List */
|
|
.previous-orders-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.orders-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.order-item-list {
|
|
background: var(--surface);
|
|
padding: 14px;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.order-icon-bg {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--bg);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.order-list-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.order-list-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.order-list-number {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.order-list-price {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.order-list-bottom {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 11px;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.list-chevron {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Modal / Overlay */
|
|
.order-detail-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 2000;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.order-detail-modal {
|
|
width: 100%;
|
|
background: var(--surface);
|
|
border-radius: 24px 24px 0 0;
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { transform: translateY(100%); }
|
|
to { transform: translateY(0); }
|
|
}
|
|
|
|
.close-details {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.modal-header {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.modal-header p {
|
|
font-size: 12px;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-qr-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 32px;
|
|
padding: 24px;
|
|
background: var(--bg);
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.modal-qr-hint {
|
|
font-size: 13px;
|
|
color: var(--text-mid);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.regenerate-sync-btn {
|
|
margin-top: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
transition: all 0.2s ease;
|
|
width: fit-content;
|
|
}
|
|
|
|
.regenerate-sync-btn:active {
|
|
transform: scale(0.95);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.regenerate-sync-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.regenerate-sync-btn.loading {
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.modal-info-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.info-item .label { color: var(--text-mid); }
|
|
.info-item .value { font-weight: 600; color: var(--text-dark); }
|
|
.info-item .status-completed { color: var(--green); }
|
|
|
|
.modal-items-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.modal-items-section h4 {
|
|
font-size: 15px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.modal-item-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.modal-total-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--bg);
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.empty-orders {
|
|
padding: 80px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
color: var(--text-light);
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-icon {
|
|
margin-bottom: 20px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Repeat Order Button */
|
|
.repeat-order-btn {
|
|
width: 100%;
|
|
padding: 16px;
|
|
background-color: var(--primary);
|
|
color: white;
|
|
border-radius: 16px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-top: 24px;
|
|
border: none;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 15px rgba(35, 22, 81, 0.2);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.repeat-order-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.repeat-order-btn.mini {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
font-size: 13px;
|
|
background-color: var(--primary-light);
|
|
color: var(--primary);
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Stock Alert Modal */
|
|
.stock-alert-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 3000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.stock-alert-modal {
|
|
background: var(--surface);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
border-radius: 28px;
|
|
padding: 32px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
|
|
animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
}
|
|
|
|
@keyframes modalPop {
|
|
from { transform: scale(0.8); opacity: 0; }
|
|
to { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
.alert-icon-wrapper {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: #fff1f2;
|
|
color: #e11d48;
|
|
border-radius: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.stock-alert-modal h3 {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: var(--text-dark);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.stock-alert-modal p {
|
|
font-size: 14px;
|
|
color: var(--text-mid);
|
|
margin-bottom: 20px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.unavailable-items-list {
|
|
width: 100%;
|
|
background: var(--bg);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
margin-bottom: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.unavailable-item-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: #e11d48;
|
|
background: var(--bg);
|
|
padding: 8px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.alert-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-proceed {
|
|
width: 100%;
|
|
padding: 16px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 16px;
|
|
font-weight: 700;
|
|
border: none;
|
|
}
|
|
|
|
.btn-discard {
|
|
width: 100%;
|
|
padding: 16px;
|
|
background: var(--bg);
|
|
color: var(--text-mid);
|
|
border-radius: 16px;
|
|
font-weight: 700;
|
|
border: 1px solid var(--border);
|
|
}
|