:root {
    --bg: #f7efe2;
    --bg-soft: #fff8ee;
    --card: rgba(255, 251, 244, 0.88);
    --card-strong: rgba(255, 248, 236, 0.97);
    --text: #1f1a17;
    --muted: #6f6257;
    --line: rgba(31, 26, 23, 0.14);
    --accent: #ef8f00;
    --accent-dark: #b45e00;
    --steel: #2f4858;
    --success: #2f7b59;
    --danger: #b53c31;
    --warning: #c06d00;
    --shadow: 0 24px 70px rgba(53, 37, 16, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(239, 143, 0, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(47, 72, 88, 0.16), transparent 28%),
        linear-gradient(160deg, #fff7eb 0%, #f7efe2 45%, #f2e6d5 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 22px;
    border-right: 1px solid rgba(31, 26, 23, 0.08);
    background: linear-gradient(180deg, rgba(255, 249, 240, 0.92), rgba(249, 241, 228, 0.88));
    backdrop-filter: blur(18px);
}

.sidebar-card,
.content-card,
.hero-card,
.metric-card,
.auth-card,
.role-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.brand-block {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mini img {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(31, 26, 23, 0.08);
    padding: 6px;
}

.brand-mini strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.brand-mini span {
    color: var(--muted);
    font-size: 0.9rem;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: var(--muted);
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    transform: translateX(3px);
    background: rgba(239, 143, 0, 0.1);
    color: var(--text);
}

.nav-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-dark);
}

.sidebar-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.main {
    padding: 28px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.page-kicker {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(47, 72, 88, 0.08);
    color: var(--steel);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-title {
    margin: 10px 0 6px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.language-switcher {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.language-pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--muted);
}

.language-pill.active {
    background: var(--text);
    color: #fff6ed;
}

.user-chip {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-chip strong {
    display: block;
    font-size: 0.95rem;
}

.user-chip span {
    color: var(--muted);
    font-size: 0.82rem;
}

.btn,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn:hover,
.btn-link:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ffb33b);
    color: #20160e;
    box-shadow: 0 16px 30px rgba(239, 143, 0, 0.25);
}

.btn-secondary {
    background: rgba(31, 26, 23, 0.08);
    color: var(--text);
}

.btn-danger {
    background: rgba(181, 60, 49, 0.12);
    color: var(--danger);
}

.btn-dark {
    background: var(--text);
    color: #fff6ed;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.flash {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.flash.success {
    border-color: rgba(47, 123, 89, 0.2);
    background: rgba(231, 250, 240, 0.8);
}

.flash.error {
    border-color: rgba(181, 60, 49, 0.2);
    background: rgba(255, 235, 233, 0.86);
}

.flash.info {
    border-color: rgba(47, 72, 88, 0.18);
    background: rgba(232, 241, 245, 0.84);
}

.dashboard-grid {
    display: grid;
    gap: 22px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    padding: 18px;
}

.metric-card .metric-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.metric-card .metric-value {
    margin-top: 12px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-family: var(--font-heading);
}

.section-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.hero-card {
    padding: 24px;
}

.pipeline-shell {
    margin-top: 22px;
    display: grid;
    gap: 24px;
}

.pipeline-header-row {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 22px;
    align-items: center;
}

.brand-totem {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.brand-totem img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    padding: 10px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

.brand-totem strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.pipeline-track {
    position: relative;
    min-height: 220px;
    padding: 46px 10px 30px;
}

.pipeline-track::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 120px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(31, 26, 23, 0.25), rgba(31, 26, 23, 0.8));
}

.pipeline-track::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 120px;
    width: 120px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(239, 143, 0, 0.85), rgba(239, 143, 0, 0.05));
}

.shipment-marker {
    position: absolute;
    left: calc(20px + (100% - 40px) * (var(--left, 0) / 100));
    top: 120px;
    transform: translate(-50%, calc(-72px - (var(--stack, 0) * 62px)));
    width: 158px;
    transition: transform 280ms ease;
}

.shipment-card {
    padding: 14px 14px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 26, 23, 0.12);
    box-shadow: 0 20px 35px rgba(31, 26, 23, 0.12);
}

.shipment-card strong {
    display: block;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.shipment-card span,
.shipment-card small {
    display: block;
    color: var(--muted);
}

.shipment-card small {
    margin-top: 8px;
    font-size: 0.78rem;
}

.shipment-icon {
    width: 42px;
    height: 42px;
    color: var(--text);
    margin-bottom: 10px;
}

.pipeline-empty {
    padding: 28px;
    border-radius: 24px;
    border: 1px dashed var(--line);
    text-align: center;
    color: var(--muted);
}

.split-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
}

.content-card {
    padding: 22px;
}

.production-list,
.arrival-list,
.activity-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.production-item,
.arrival-item,
.activity-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.production-item {
    grid-template-columns: 48px 1fr;
    align-items: start;
}

.production-icon {
    width: 40px;
    height: 40px;
    color: var(--warning);
}

.production-item strong,
.arrival-item strong,
.activity-item strong {
    font-family: var(--font-heading);
}

.muted {
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(31, 26, 23, 0.08);
    color: var(--text);
}

.pill.warning {
    background: rgba(239, 143, 0, 0.15);
    color: var(--accent-dark);
}

.pill.danger {
    background: rgba(181, 60, 49, 0.12);
    color: var(--danger);
}

.pill.success {
    background: rgba(47, 123, 89, 0.14);
    color: var(--success);
}

.table-card,
.form-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--card-strong);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
}

.table-header,
.form-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    padding: 26px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(31, 26, 23, 0.14);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field small {
    color: var(--muted);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.checkbox-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.role-card {
    padding: 20px;
}

.role-card + .role-card {
    margin-top: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-layout {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.auth-hero {
    padding: 30px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(24, 24, 24, 0.94), rgba(47, 72, 88, 0.9)),
        #181818;
    color: #fff8ee;
    box-shadow: var(--shadow);
}

.auth-hero .page-title {
    color: #fff8ee;
}

.auth-hero p {
    color: rgba(255, 248, 238, 0.8);
}

.auth-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.auth-logos img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

.auth-card {
    padding: 28px;
}

.auth-card h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
}

.auth-card p {
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 18px;
}

.installer-grid {
    display: grid;
    gap: 22px;
}

.logo-preview {
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.text-right {
    text-align: right;
}

@media (max-width: 1180px) {
    .metrics-grid,
    .grid-two,
    .role-grid,
    .split-grid,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .pipeline-header-row {
        grid-template-columns: 1fr;
    }

    .brand-totem {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 980px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(31, 26, 23, 0.08);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .main,
    .sidebar,
    .auth-shell {
        padding: 18px;
    }

    .topbar,
    .table-header,
    .form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .shipment-marker {
        width: 132px;
    }

    .shipment-card {
        padding: 12px;
    }
}

/* Brabura support visual system: carbon header, white surfaces and orange actions. */
:root {
    --bg: #f5f5f7;
    --bg-soft: #fafafa;
    --card: #ffffff;
    --card-strong: #ffffff;
    --text: #1a1a1a;
    --muted: #86868b;
    --line: #e0e0e0;
    --accent: #e27c00;
    --accent-dark: #c96a00;
    --steel: #54595f;
    --success: #2d8a4e;
    --danger: #c0392b;
    --warning: #e27c00;
    --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 20px rgba(20, 20, 20, .05);
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --font-heading: "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-size: 15px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
}

.site-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 60px;
    padding: 0 24px;
    background: #1d1d1f;
    color: #fff;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .3px;
}

.site-brand:hover {
    text-decoration: none;
}

.site-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.site-topbar-center {
    flex: 1;
    color: #bdbdbd;
    font-size: 13px;
    text-align: center;
    letter-spacing: .02em;
}

.site-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.topbar-user {
    color: #e9e9e9;
    font-size: 14px;
    line-height: 1.2;
    text-align: right;
}

.topbar-user strong,
.topbar-user small {
    display: block;
}

.topbar-user small {
    margin-top: 4px;
    color: #9b9b9b;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.topbar-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar-language-link {
    color: #bdbdbd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.topbar-language-link:hover,
.topbar-language-link.active {
    color: var(--accent);
    text-decoration: none;
}

.topbar-logout,
.mobile-menu-toggle {
    border: 0;
    background: transparent;
    color: #cfcfcf;
    cursor: pointer;
}

.topbar-logout {
    padding: 8px 0 8px 4px;
    font-size: 13px;
}

.topbar-logout:hover {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    padding: 6px 10px 6px 0;
    font-size: 24px;
    line-height: 1;
}

.shell {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    position: static;
    width: 230px;
    height: auto;
    flex-shrink: 0;
    padding: 18px 0;
    border: 0;
    border-right: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
}

.brand-block {
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 24px;
}

.brand-mini {
    gap: 10px;
    padding: 9px 0;
}

.brand-mini img {
    width: 38px;
    height: 38px;
    padding: 3px;
    border-radius: 8px;
    border-color: var(--line);
}

.brand-mini strong {
    font-size: 13px;
    font-weight: 700;
}

.brand-mini span {
    margin-top: 2px;
    font-size: 11px;
}

.sidebar-nav {
    gap: 0;
}

.nav-link {
    min-height: 42px;
    padding: 10px 24px;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: #54595f;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    transform: none;
    background: #fcf4ef;
    color: var(--accent);
    text-decoration: none;
}

.nav-link.active {
    border-left-color: var(--accent);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.sidebar-footer {
    gap: 2px;
    margin: 22px 24px 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    color: var(--text);
}

.sidebar-caption {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.main {
    flex: 1;
    min-width: 0;
    max-width: 1320px;
    padding: 30px 36px;
}

.content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-kicker {
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.page-title {
    margin: 5px 0 6px;
    color: var(--text);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.page-subtitle {
    max-width: 760px;
    color: var(--muted);
}

.sidebar-card,
.content-card,
.hero-card,
.metric-card,
.role-card,
.table-card,
.form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.metric-card,
.content-card,
.hero-card,
.table-card,
.form-card,
.role-card {
    padding: 24px;
}

.metrics-grid {
    gap: 18px;
}

.metric-card .metric-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.metric-card .metric-value {
    margin-top: 8px;
    color: var(--text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.section-title {
    color: var(--text);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.section-subtitle,
.muted {
    color: var(--muted);
}

.btn,
.btn-link {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 600;
    box-shadow: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary,
.btn-ghost {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: #f6f6f4;
}

.btn-dark {
    background: #1d1d1f;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.flash {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.flash.success {
    background: #eafaf0;
    border-color: #bfe9cd;
    color: #1d6e3c;
}

.flash.error {
    background: #fdeceb;
    border-color: #f5c6c2;
    color: #a3271c;
}

.flash.info {
    background: #eef4fb;
    border-color: #cfe0f3;
    color: #23527c;
}

.pipeline-shell {
    margin-top: 22px;
}

.pipeline-header-row {
    grid-template-columns: 136px 1fr 136px;
    gap: 18px;
}

.brand-totem img {
    width: 86px;
    height: 86px;
    padding: 7px;
    border-radius: 12px;
    border-color: var(--line);
}

.brand-totem strong {
    font-size: 13px;
    font-weight: 700;
}

.pipeline-track {
    min-height: 210px;
}

.pipeline-track::before {
    height: 4px;
    background: #1d1d1f;
}

.pipeline-track::after {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), rgba(226, 124, 0, .05));
}

.shipment-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.shipment-card strong {
    font-size: 14px;
}

.shipment-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

.production-item,
.arrival-item,
.activity-item,
.history-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.production-item,
.arrival-item,
.activity-item {
    padding: 14px 16px;
}

.production-icon {
    color: var(--accent);
}

.pill {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #54595f;
    font-size: 12px;
    font-weight: 600;
}

.pill.warning {
    border-color: #f0d8c8;
    background: #fcf4ef;
    color: var(--accent-dark);
}

.pill.danger {
    border-color: #f5c6c2;
    background: #fdeceb;
    color: var(--danger);
}

.pill.success {
    border-color: #bfe9cd;
    background: #eafaf0;
    color: var(--success);
}

.data-table {
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom-color: var(--line);
    font-size: 14px;
}

.data-table th {
    background: #fafafa;
    color: #54595f;
    font-size: 12px;
    letter-spacing: .5px;
}

.data-table tr:hover td {
    background: #fcfbfa;
}

.field input,
.field select,
.field textarea {
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(226, 124, 0, .15);
    outline: none;
}

.field label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.checkbox-pill {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.empty-state,
.pipeline-empty {
    border-color: var(--line);
    border-radius: 10px;
    background: #fafafa;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1100px 780px at 88% 92%, rgba(226, 124, 0, .3), rgba(226, 124, 0, 0) 60%),
        radial-gradient(820px 640px at 12% 6%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 55%),
        #232222;
}

.auth-language {
    position: fixed;
    top: 18px;
    right: 22px;
    display: inline-flex;
    gap: 12px;
}

.auth-language-link {
    color: #cfcfcf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.auth-language-link:hover,
.auth-language-link.active {
    color: var(--accent);
    text-decoration: none;
}

.auth-layout {
    width: min(440px, 100%);
    display: block;
}

.auth-hero {
    display: none;
}

.auth-card {
    padding: 34px 32px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .3px;
    text-align: center;
}

.auth-brand img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-card h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 19px;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .site-topbar {
        min-height: 60px;
        padding: 0 14px;
    }

    .site-brand {
        min-width: 0;
        overflow: hidden;
        font-size: 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .site-topbar-center,
    .topbar-user {
        display: none;
    }

    .site-topbar-actions {
        margin-left: auto;
    }

    .shell {
        display: block;
        min-height: calc(100vh - 60px);
    }

    .sidebar {
        position: fixed;
        z-index: 60;
        top: 60px;
        bottom: 0;
        left: 0;
        width: 240px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    .main {
        max-width: none;
        padding: 20px;
    }
}

@media (max-width: 1180px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pipeline-header-row {
        grid-template-columns: 1fr;
    }

    .brand-totem {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .topbar-language-link:not(.active) {
        display: none;
    }

    .topbar-logout {
        font-size: 0;
    }

    .topbar-logout::after {
        content: "↗";
        font-size: 18px;
    }

    .main {
        padding: 14px;
    }

    .content-header,
    .table-header,
    .form-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-title {
        font-size: 20px;
    }

    .metric-card,
    .content-card,
    .hero-card,
    .table-card,
    .form-card,
    .role-card {
        padding: 16px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-card {
        padding: 28px 22px;
    }
}

@media (max-width: 420px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
