
[hidden] { display: none !important; }
:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #18212f;
    --muted: #667085;
    --line: #dde3ea;
    --primary: #2457d6;
    --primary-dark: #1742ad;
    --success: #12805c;
    --warning: #b76a00;
    --danger: #b42318;
    --shadow: 0 12px 34px rgba(24, 33, 47, .08);
    --radius: 18px;
}
* { box-sizing: border-box; }
html { min-width: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main, section, article, form, fieldset, .page-shell, .topbar, .topbar > *, .page-heading > * { min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p, strong, span { overflow-wrap: anywhere; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(18px, 4vw, 52px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 1rem; }
.brand span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.topbar nav a, .topbar nav button { min-height: 40px; border: 0; background: transparent; color: #475467; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: .88rem; }
.topbar nav a:hover, .topbar nav a.active, .topbar nav button:hover { background: #eef3ff; color: var(--primary); }
.topbar nav form { margin: 0; }
.page-shell { width: min(1380px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 54px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 5px 0 8px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); max-width: 720px; }
.eyebrow { color: var(--primary); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid transparent; border-radius: 11px; padding: 10px 16px; font-weight: 800; transition: .18s ease; text-align: center; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: #fff; border-color: var(--line); color: #344054; }
.button.danger { background: #fff1f0; border-color: #fecdca; color: var(--danger); }
.alert { margin: 0 0 18px; padding: 13px 15px; border-radius: 12px; border: 1px solid; font-weight: 700; overflow-wrap: anywhere; }
.alert-success { color: #05603a; background: #ecfdf3; border-color: #abefc6; }
.alert-error { color: #912018; background: #fef3f2; border-color: #fecdca; }
.alert-warning { color: #854a0e; background: #fffaeb; border-color: #fedf89; }
.empty-state { width: 100%; padding: 38px; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; padding: 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.status-pending { background: #fff4e5; color: #9a5b00; }
.status-approved { background: #eafaf3; color: #087454; }
.order-number { color: var(--primary); font-weight: 900; font-size: .78rem; letter-spacing: .05em; }
label { display: grid; gap: 7px; color: #344054; font-weight: 800; font-size: .88rem; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #cfd7e2; border-radius: 11px; background: #fff; color: var(--text); padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,87,214,.12); }
small { color: var(--muted); }
@media (max-width: 900px) {
    .topbar { position: static; align-items: stretch; flex-direction: column; gap: 12px; padding-block: 13px; }
    .topbar nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .topbar nav a, .topbar nav button { width: 100%; height: 100%; padding: 10px 8px; white-space: normal; line-height: 1.2; text-align: center; background: #f8fafc; border: 1px solid #edf0f4; }
    .topbar nav form { width: 100%; }
    .page-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .page-shell { width: min(100% - 20px, 1380px); padding: 22px 0 38px; }
    .topbar { padding: 12px 10px; }
    .topbar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand { align-items: center; text-align: center; }
    .brand span { max-width: 100%; }
    .page-heading { gap: 16px; margin-bottom: 18px; }
    .page-heading > * { width: 100%; }
    .page-heading h1 { font-size: clamp(1.55rem, 9vw, 2rem); }
    .button { width: 100%; }
    .empty-state { padding: 28px 18px; }
}
@media (max-width: 380px) {
    .page-shell { width: min(100% - 14px, 1380px); }
    .topbar { padding-inline: 7px; }
    .topbar nav { gap: 5px; }
    .topbar nav a, .topbar nav button { font-size: .78rem; padding-inline: 5px; }
}
