@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --blue: #2563eb; --blue-dark: #1e40af; --ink: #172033; --muted: #64748b; --line: #e2e8f0; --soft: #eff6ff; --surface: #fff; --green: #0f9f6e; --orange: #c56a16; --red: #b83e43; font-family: 'Fira Sans', ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #fff7ed 100%); color: var(--ink); }
a, button, select { -webkit-tap-highlight-color: transparent; }
.orders-shell { width: min(1160px, calc(100% - 32px)); margin: auto; padding: 28px 0 54px; }
.orders-header { display: flex; align-items: center; justify-content: space-between; }
.orders-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-logo { display: block; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; object-position: center; background: #eff6ff; }
.brand-mark i { display: block; width: 5px; border-radius: 5px 5px 2px 2px; background: var(--blue); }
.brand-mark i:nth-child(1) { height: 10px; }.brand-mark i:nth-child(2) { height: 17px; }.brand-mark i:nth-child(3) { height: 13px; }
.orders-back { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }.orders-back:hover { color: var(--blue); }
.orders-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 72px 0 34px; }
.orders-kicker { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; line-height: .98; } h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -.035em; }
.orders-hero p:not(.orders-kicker) { max-width: 620px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.account-chip { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid #cbdcfb; border-radius: 13px; background: rgba(255,255,255,.72); color: var(--blue-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(15 159 110 / 12%); }.status-dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgb(184 62 67 / 12%); }
.orders-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }.orders-summary article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgb(30 64 175 / 5%); }.orders-summary span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }.orders-summary strong { font-size: 28px; letter-spacing: -.04em; }
.orders-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 14px 35px rgb(30 64 175 / 7%); }.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }.filter-field select { min-height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; color: var(--ink); background: #fff; outline: 0; font: inherit; }.filter-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); }
.orders-list { display: grid; gap: 12px; padding: 18px; }.order-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.order-card:hover { border-color: #b8cdfb; box-shadow: 0 8px 22px rgb(30 64 175 / 6%); }.order-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.order-id { margin: 0 0 5px; color: var(--ink); font-size: 16px; font-weight: 800; }.order-date { margin: 0; color: var(--muted); font-size: 12px; }.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }.status-pill.pending { color: #955b06; background: #fff4d6; }.status-pill.processing { color: #1d4ed8; background: #dbeafe; }.status-pill.success { color: #087451; background: #dff8ec; }.status-pill.rejected { color: #a12d34; background: #ffeaec; }
.order-details { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(120px, .65fr)); gap: 12px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.detail-block span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }.detail-block strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }.detail-block strong.delivery-missing { color: var(--muted); font-weight: 500; }.order-items { margin: 14px 0 0; color: #475569; font-size: 13px; line-height: 1.5; }
.orders-empty, .orders-forbidden { max-width: 500px; margin: 48px auto; padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.92); text-align: center; box-shadow: 0 14px 35px rgb(30 64 175 / 7%); }.orders-empty p, .orders-forbidden p { color: var(--muted); line-height: 1.6; }.empty-mark { width: 48px; height: 48px; margin: 0 auto 17px; border: 2px solid #9bbaf8; border-radius: 14px; background: #eff6ff; transform: rotate(8deg); }.empty-mark--lock { border-color: #f3b2b2; background: #fff0f0; }
.orders-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border-radius: 11px; color: #fff; background: var(--blue); font-weight: 800; text-decoration: none; }.orders-button:hover { background: var(--blue-dark); }
.orders-toast { position: fixed; right: 20px; bottom: 20px; z-index: 5; max-width: min(410px, calc(100% - 40px)); padding: 13px 16px; border-radius: 12px; color: #fff; background: #172033; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }.orders-toast.show { opacity: 1; transform: translateY(0); }.orders-toast.error { background: #a12d34; }
.orders-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 35px; color: #8693a7; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 800px) { .orders-shell { width: min(100% - 22px, 660px); padding-top: 20px; }.orders-hero { display: block; padding-top: 52px; }.account-chip { width: fit-content; margin-top: 20px; }.orders-summary { grid-template-columns: repeat(2, 1fr); }.orders-toolbar { display: block; padding: 18px; }.filter-field { display: block; margin-top: 16px; }.filter-field select { width: 100%; }.order-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .orders-header { align-items: start; }.orders-back { font-size: 12px; }.orders-summary { gap: 8px; }.orders-summary article { padding: 14px; }.orders-summary strong { font-size: 24px; }.orders-list { padding: 10px; }.order-card { padding: 15px; }.order-card-top { display: block; }.status-pill { margin-top: 12px; }.order-details { grid-template-columns: 1fr; }.orders-footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
