/* Samostatný vzhled archivu objednávek. */
:root {
    --navy: #074d73;
    --blue: #0877ad;
    --blue-light: #eaf5fa;
    --ink: #163142;
    --muted: #687b87;
    --line: #d9e3e9;
    --paper: #ffffff;
    --background: #eef5f8;
    --green: #17854b;
    --red: #b43b3b;
    color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--ink); font: 16px/1.5 "Manrope", Arial, Helvetica, sans-serif; }
a { color: var(--blue); }
.site-header { background: var(--paper); border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 176px; height: auto; }
.brand span { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 18px; }
.brand strong { font-size: 18px; }
.brand small { color: var(--muted); }
.account { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.account form { margin: 0; }
.admin-badge { display: inline-block; margin-left: 6px; border-radius: 999px; background: var(--navy); padding: 3px 8px; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.link-button { border: 0; padding: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.login-layout { min-height: 570px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 72px; align-items: center; }
.intro { max-width: 650px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0 0 18px; color: var(--navy); font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -.03em; }
h2 { margin: 0 0 8px; color: var(--navy); font-size: 25px; }
.intro > p:not(.eyebrow) { max-width: 610px; margin: 0 0 30px; color: #4e6674; font-size: 19px; }
.new-shop, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.new-shop { padding: 13px 20px; }
.new-shop.small { padding: 10px 16px; font-size: 14px; }
.login-card, .content-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 38px rgba(16, 61, 84, .08); }
.login-card { padding: 38px; }
.muted { margin: 0; color: var(--muted); }
.login-form { display: grid; gap: 8px; margin-top: 26px; }
.login-form label { margin-top: 8px; font-size: 14px; font-weight: 700; }
.login-form input { width: 100%; height: 48px; border: 1px solid #bdccd4; border-radius: 5px; padding: 0 13px; color: var(--ink); font: inherit; outline: none; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 119, 173, .14); }
.primary-button { min-height: 50px; margin-top: 16px; border: 0; font: inherit; cursor: pointer; }
.primary-button:hover, .new-shop:hover { background: var(--navy); }
.help { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.alert { margin-top: 22px; border-left: 4px solid var(--red); border-radius: 4px; background: #fff1f1; padding: 12px 14px; color: #872929; }
.content-card { padding: 38px; }
.page-heading, .detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.page-heading h1, .detail-heading h1, .empty-state h1 { font-size: clamp(30px, 4vw, 42px); }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.detail-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: 6px; padding: 9px 15px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.secondary-button:hover { background: var(--blue-light); }
.admin-search { margin: -4px 0 28px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfc; padding: 18px; }
.admin-search label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 14px; font-weight: 700; }
.admin-search > div { display: flex; align-items: center; gap: 10px; }
.admin-search input { min-width: 0; height: 48px; flex: 1; border: 1px solid #bdccd4; border-radius: 5px; padding: 0 13px; color: var(--ink); font: inherit; outline: none; }
.admin-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 119, 173, .14); }
.admin-search .primary-button { min-width: 110px; margin-top: 0; padding: 0 18px; }
.clear-search { padding: 10px 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 700; text-decoration: none; }
.admin-customer { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfc; padding: 16px 18px; }
.admin-customer > span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.admin-customer small { margin-left: auto; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; background: #f5f9fb; color: #536b79; font-size: 12px; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 17px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #fbfdfe; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.product-link { color: var(--ink); text-decoration-color: #a9c4d2; text-underline-offset: 3px; }
.product-link:hover { color: var(--blue); }
.number { text-align: right; white-space: nowrap; }
.action { text-align: right; white-space: nowrap; }
.action a { font-weight: 700; }
.status { display: inline-block; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-green { background: #e2f5ea; color: #12683b; }
.status-blue { background: #e5f2fa; color: #075c88; }
.status-orange { background: #fff0d9; color: #8c5507; }
.status-red { background: #fde8e8; color: #963030; }
.status-gray { background: #edf0f2; color: #59666e; }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.order-meta div { display: flex; flex-direction: column; padding: 18px; background: #f8fbfc; }
.order-meta span { margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.detail-total { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 24px 4px 0; color: var(--muted); }
.detail-total strong { color: var(--navy); font-size: 25px; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-state p { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; }
.pagination a { font-weight: 700; }
.pagination span { color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid #cfdee5; padding: 25px 0 35px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
    .header-inner { width: min(100% - 28px, 1180px); padding: 14px 0; }
    .brand img { width: 130px; }
    .brand span { display: none; }
    .account { align-items: flex-end; flex-direction: column; gap: 3px; text-align: right; }
    main { width: min(100% - 28px, 1180px); padding: 30px 0 50px; }
    .login-layout { min-height: 0; grid-template-columns: 1fr; gap: 32px; }
    .intro > p:not(.eyebrow) { font-size: 17px; }
    .login-card, .content-card { padding: 24px; }
    .page-heading, .detail-heading { align-items: stretch; flex-direction: column; }
    .page-actions { align-items: stretch; flex-direction: column; }
    .detail-actions { align-items: stretch; }
    .page-actions a { width: 100%; }
    .admin-search > div { align-items: stretch; flex-direction: column; }
    .admin-search .primary-button { width: 100%; }
    .admin-customer { align-items: flex-start; flex-direction: column; gap: 4px; }
    .admin-customer small { margin-left: 0; }
    .new-shop.small { align-self: flex-start; }
    .order-meta { grid-template-columns: 1fr; }
    th, td { padding: 13px 12px; }
    footer { width: min(100% - 28px, 1180px); align-items: flex-start; flex-direction: column; }
}
