Files
baiyue-logistics-chat/static/css/admin_orders.css
T

64 lines
6.6 KiB
CSS

body.orders-page { min-height: 100vh; color: var(--text); background: #f5f7fa; }
.orders-topbar { height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(18px, 5vw, 64px); border-bottom: 1px solid var(--border); background: var(--surface); }
.orders-topbar .brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.orders-topbar .brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; }
.orders-topbar .brand-name { font-size: 14px; font-weight: 650; }
.orders-topbar nav { display: flex; align-items: center; gap: 20px; }
.orders-topbar nav a { color: var(--secondary); font-size: 13px; text-decoration: none; }
.orders-topbar nav a:hover { color: var(--brand); }
.orders-topbar nav button { min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--secondary); cursor: pointer; }
.orders-shell { width: min(980px, calc(100% - 40px)); margin: 44px auto 80px; }
.orders-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.orders-eyebrow { color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.orders-heading h1 { margin-top: 6px; font-size: clamp(25px, 4vw, 31px); letter-spacing: -.03em; }
.orders-heading p:last-child { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.template-link { flex-shrink: 0; padding: 10px 13px; border: 1px solid #d4e0f9; border-radius: 8px; background: #f3f7ff; color: var(--brand); font-size: 12px; text-decoration: none; }
.template-link:hover { background: #eaf1ff; }
.import-card { margin-bottom: 18px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: 0 8px 24px #19263d08; }
.card-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.card-heading h2 { font-size: 16px; font-weight: 650; }
.card-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.file-picker { position: relative; display: flex; align-items: center; gap: 13px; min-height: 84px; padding: 15px 18px; border: 1px dashed #c7d2e2; border-radius: 9px; background: #fbfcfe; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.file-picker:hover, .file-picker:focus-within { border-color: #91ace5; background: #f7f9ff; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 20px; }
.file-picker strong, .file-picker small { display: block; }
.file-picker strong { font-size: 13px; font-weight: 600; }
.file-picker small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.import-hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
.import-hint { margin-top: 12px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 20px; }
.button-primary { min-height: 40px; padding: 0 16px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.button-primary:hover:not(:disabled) { filter: brightness(.96); }
.button-primary:disabled { opacity: .55; cursor: wait; }
#import-status { color: var(--secondary); font-size: 12px; }
#import-status.is-error { color: var(--danger); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.summary-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfd; }
.summary-item span { display: block; color: var(--muted); font-size: 11px; }
.summary-item strong { display: block; margin-top: 5px; font-size: 20px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.table-scroll table { width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; }
.table-scroll th, .table-scroll td { padding: 11px 12px; border-bottom: 1px solid #edf0f4; font-size: 11px; white-space: nowrap; }
.table-scroll th { color: var(--muted); background: #fafbfd; font-weight: 550; }
.table-scroll tr:last-child td { border-bottom: 0; }
.row-duplicate { color: #99621a; }
.row-new { color: #39745f; }
.error-list { margin-top: 14px; padding: 12px 14px; border: 1px solid #f1d1d1; border-radius: 8px; background: #fff8f8; color: #9f3f43; font-size: 11px; line-height: 1.8; }
.error-list p + p { margin-top: 4px; }
.result-actions { justify-content: space-between; align-items: center; }
.result-actions .import-hint { margin-top: 0; }
.order-search-form { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(140px, .8fr) auto; align-items: end; gap: 12px; margin-bottom: 14px; }
.order-search-form label { display: grid; gap: 6px; color: var(--secondary); font-size: 12px; }
.order-search-form input, .order-search-form select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.button-secondary { min-height: 38px; padding: 0 13px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--secondary); font-size: 12px; cursor: pointer; }
.button-secondary:hover:not(:disabled) { border-color: #bac9e3; background: #f7f9fd; }
.button-secondary:disabled { opacity: .55; cursor: wait; }
#order-list-rows strong { font-weight: 600; }
#order-list-status { min-height: 18px; margin: 0 0 10px; }
#import-batch-rows button { white-space: nowrap; }
@media (max-width: 620px) { .orders-topbar { height: 56px; padding: 0 16px; } .orders-topbar nav { gap: 10px; } .orders-topbar nav a { font-size: 11px; } .orders-shell { width: calc(100% - 28px); margin: 28px auto 52px; } .orders-heading { align-items: flex-start; } .template-link { padding: 9px 10px; font-size: 11px; } .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .result-actions { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { .order-search-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .order-search-form { grid-template-columns: 1fr; } }