:root {
    --orange: #e45712;
    --orange-dark: #b8440d;
    --orange-soft: #fff0e7;
    --yellow: #e45712;
    --navy: #2d2926;
    --navy-deep: #1d1a18;
    --navy-soft: #f1ebe6;
    --ink: #292522;
    --muted: #746b64;
    --muted-light: #9b918a;
    --canvas: #fbfaf8;
    --surface: #ffffff;
    --line: #e9e3de;
    --line-soft: #f3efec;
    --blue: #b8440d;
    --blue-soft: #fff0e7;
    --red: #b8440d;
    --red-soft: #fff0e7;
    --amber: #b8440d;
    --amber-soft: #fff0e7;
    --shadow: 0 16px 38px rgba(54, 43, 35, 0.08);
    --sidebar-width: 238px;
    --topbar-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(230, 95, 17, 0.3);
    outline-offset: 2px;
}

.admin-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 30% 0, rgba(228, 87, 18, 0.13), transparent 28%),
        linear-gradient(175deg, #332e2a 0%, var(--navy-deep) 70%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar::after {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 3px;
    height: 28%;
    content: '';
    background: linear-gradient(transparent, var(--orange), transparent);
    opacity: 0.7;
}

.sidebar-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 11px;
    padding: 14px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 13px 13px 5px 13px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.brand-icon::after {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 10px;
    height: 10px;
    content: '';
    background: #fff3eb;
    border: 3px solid var(--navy-deep);
    border-radius: 50%;
}

.sidebar-brand strong,
.sidebar-brand small,
.sidebar-user strong,
.sidebar-user small,
.profile-copy strong,
.profile-copy small {
    display: block;
}

.sidebar-brand strong {
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.sidebar-brand small {
    margin-top: 3px;
    color: #a99d94;
    font-size: 9px;
    font-weight: 600;
}

.sidebar-close,
.menu-button {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
}

.sidebar-close {
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 11px 22px;
    scrollbar-width: thin;
}

.nav-group {
    margin-top: 17px;
}

.nav-label {
    margin: 0 11px 8px;
    color: #82766e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 12px;
    margin-bottom: 3px;
    padding: 0 13px;
    color: #b9afa7;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link i {
    width: 18px;
    color: #8f837b;
    text-align: center;
    font-size: 14px;
    transition: color 160ms ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.nav-link:hover i {
    color: var(--orange);
}

.nav-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(230, 95, 17, 0.24), rgba(230, 95, 17, 0.08));
    border-color: rgba(228, 87, 18, 0.24);
}

.nav-link.is-active::before {
    position: absolute;
    left: -1px;
    width: 3px;
    height: 20px;
    content: '';
    background: var(--orange);
    border-radius: 0 3px 3px 0;
}

.nav-link.is-active i {
    color: #ff9b67;
}

.sidebar-footer {
    padding: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.avatar {
    display: inline-grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-user strong {
    font-size: 11px;
}

.sidebar-user small {
    margin-top: 3px;
    color: #9c8f86;
    font-size: 8px;
}

.site-button,
.logout-button {
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
    color: #aa9d94;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.site-button {
    margin-top: 8px;
    color: #fff;
    background: rgba(228, 87, 18, 0.16);
    border-color: rgba(228, 87, 18, 0.35);
    text-decoration: none;
}

.site-button:hover {
    background: var(--orange);
}

.logout-button:hover {
    color: #fff;
    border-color: rgba(228, 87, 18, 0.55);
}

.admin-main {
    display: flex;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(16, 40, 63, 0.08);
    backdrop-filter: blur(16px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar h1 {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    letter-spacing: -0.02em;
}

.topbar h1::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    content: '';
    background: var(--orange);
    border-radius: 2px;
    transform: rotate(45deg);
}

.menu-button {
    color: var(--navy);
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 40, 63, 0.08);
}

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

.current-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #81766e;
    font-size: 10px;
    font-weight: 650;
}

.current-date i {
    color: var(--orange);
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 7px 4px 4px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.avatar-small {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    font-size: 10px;
    border-radius: 9px;
}

.profile-copy {
    min-width: 62px;
    text-align: left;
}

.profile-copy strong {
    font-size: 10px;
}

.profile-copy small {
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 7px;
}

.profile-button > i {
    color: #a09790;
    font-size: 8px;
}

.primary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    color: #fff;
    background: linear-gradient(135deg, #ef681f, var(--orange-dark));
    border: 0;
    border-radius: 11px;
    box-shadow: 0 10px 22px rgba(185, 69, 8, 0.22);
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(185, 69, 8, 0.3);
}

.content {
    width: 100%;
    max-width: 1640px;
    flex: 1;
    align-self: center;
    padding: 34px;
}

.control-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.eyebrow,
.panel-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow i {
    margin-right: 5px;
}

.control-intro h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(29px, 3.2vw, 45px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.control-intro h2 span {
    color: var(--orange);
}

.control-intro p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.intro-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.shift-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6e645d;
    font-size: 9px;
    font-weight: 700;
}

.shift-status i,
.live-label i {
    width: 7px;
    height: 7px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(228, 87, 18, 0.12);
}

.operations-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(230px, 0.65fr);
    gap: 18px;
    margin-bottom: 34px;
}

.command-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(145deg, #39322e, var(--navy-deep));
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px 22px 22px 7px;
    box-shadow: 0 22px 44px rgba(9, 28, 46, 0.19);
}

.command-glow {
    position: absolute;
    top: -90px;
    right: 10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(230, 95, 17, 0.24), transparent 66%);
    pointer-events: none;
}

.command-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 27px 10px;
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b8aaa0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.command-header h3 {
    margin: 8px 0 0;
    font-size: 16px;
}

.command-time {
    color: #ff9b67;
    text-align: right;
    font-size: 16px;
    font-weight: 750;
}

.command-time small {
    display: block;
    margin-top: 4px;
    color: #8e8178;
    font-size: 7px;
    font-weight: 650;
}

.command-body {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 188px;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 22px;
    padding: 10px 27px 20px;
}

.active-count strong,
.active-count span,
.active-count small {
    display: block;
}

.active-count strong {
    color: #fff;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.08em;
}

.active-count span {
    margin-top: 4px;
    color: #f8f2ed;
    font-size: 13px;
    font-weight: 700;
}

.active-count small {
    margin-top: 11px;
    color: #ff9b67;
    font-size: 8px;
    font-weight: 700;
}

.route-radar {
    position: relative;
    height: 150px;
}

.route-line {
    position: absolute;
    top: 73px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), #ff9b67);
    transform-origin: left center;
    box-shadow: 0 0 12px rgba(228, 87, 18, 0.28);
}

.line-one {
    left: 11%;
    width: 38%;
    transform: rotate(-12deg);
}

.line-two {
    left: 47%;
    width: 40%;
    transform: rotate(13deg);
}

.route-node {
    position: absolute;
    display: grid;
    gap: 2px;
    min-width: 62px;
    justify-items: center;
    color: #fff;
    font-size: 8px;
}

.route-node > i {
    width: 14px;
    height: 14px;
    margin-bottom: 5px;
    background: var(--orange);
    border: 4px solid #4a3d35;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(228, 87, 18, 0.18);
}

.route-node b {
    font-size: 9px;
}

.route-node small {
    color: #92847a;
    font-size: 7px;
}

.node-mersin {
    left: 0;
    top: 73px;
}

.node-ankara {
    left: 42%;
    top: 40px;
}

.node-istanbul {
    right: 0;
    top: 84px;
}

.moving-truck {
    position: absolute;
    left: 28%;
    top: 47px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.command-footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.command-footer > span {
    display: grid;
    min-height: 72px;
    grid-template-columns: 25px auto;
    grid-template-rows: auto auto;
    align-content: center;
    padding: 10px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.command-footer > span:last-child {
    border-right: 0;
}

.command-footer i {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--orange);
}

.command-footer b {
    font-size: 12px;
}

.command-footer small {
    color: #988b82;
    font-size: 7px;
}

.metric-rail {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

.metric-card {
    position: relative;
    display: grid;
    min-height: 104px;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    padding: 17px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.metric-card::after {
    position: absolute;
    right: -16px;
    bottom: -22px;
    width: 65px;
    height: 65px;
    content: '';
    background: #f8eee7;
    border-radius: 50%;
    opacity: 0.7;
}

.metric-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border: 1px solid #f6d5c2;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1;
}

.metric-icon i {
    display: block;
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

.tone-blue,
.tone-red,
.tone-amber,
.tone-green {
    color: var(--blue);
    background: var(--blue-soft);
    border-color: #f6d5c2;
}

.metric-card > div > strong,
.metric-card > div > span {
    display: block;
}

.metric-card strong {
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.metric-card div span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 650;
}

.metric-card > small {
    position: relative;
    z-index: 1;
    align-self: start;
    color: #9a8f87;
    font-size: 7px;
    font-weight: 750;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.section-heading h3,
.returns-card h3,
.action-dock h3 {
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    letter-spacing: -0.03em;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--orange-dark);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
    gap: 18px;
    margin-bottom: 20px;
}

.shipment-board,
.returns-card,
.route-focus,
.action-dock {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.shipment-board {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px 18px 7px 18px;
}

.board-tabs {
    display: flex;
    min-height: 62px;
    align-items: flex-end;
    gap: 24px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line-soft);
}

.board-tabs button {
    position: relative;
    height: 62px;
    padding: 0;
    color: #8d827a;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 9px;
    font-weight: 750;
}

.board-tabs button span {
    margin-left: 5px;
    padding: 3px 6px;
    background: #f2ece7;
    border-radius: 999px;
    font-size: 7px;
}

.board-tabs button.is-active {
    color: var(--navy);
}

.board-tabs button.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    content: '';
    background: var(--orange);
    border-radius: 3px 3px 0 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th,
td {
    padding: 16px 17px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    font-size: 10px;
}

th {
    color: #9a8f87;
    background: #fbf8f5;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fffaf6;
}

.shipment-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipment-identity > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 10px 10px 3px 10px;
    font-size: 11px;
}

.shipment-identity strong,
.shipment-identity small {
    display: block;
}

.shipment-identity strong {
    color: var(--navy);
    font-size: 10px;
}

.shipment-identity small {
    margin-top: 4px;
    color: #91867e;
    font-size: 8px;
}

.route-copy {
    color: #655b54;
    font-size: 9px;
    font-weight: 650;
}

.muted-cell {
    color: #948981;
    font-size: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 750;
}

.status-pill::before {
    width: 5px;
    height: 5px;
    content: '';
    background: currentColor;
    border-radius: 50%;
}

.status-blue {
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.status-amber {
    color: #755d4e;
    background: #f2ebe5;
}

.status-green {
    color: #4f4945;
    background: #ece8e4;
}

.icon-button {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: var(--navy);
    background: #f2ece7;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 9px;
}

.icon-button:hover {
    color: #fff;
    background: var(--orange);
}

.activity-stack {
    display: grid;
    align-content: start;
    gap: 14px;
}

.returns-card {
    overflow: hidden;
    border-radius: 18px 18px 18px 7px;
}

.returns-card header {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.panel-kicker {
    margin-bottom: 5px;
    font-size: 7px;
}

.returns-card header button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--navy);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 9px;
}

.return-list {
    display: grid;
}

.return-row {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    color: var(--ink);
    text-align: left;
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
}

.return-row:last-child {
    border-bottom: 0;
}

.return-row:hover {
    background: #fffaf6;
}

.return-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    background: var(--navy);
    border-radius: 10px 10px 3px 10px;
    font-size: 10px;
}

.return-copy {
    min-width: 0;
    flex: 1;
}

.return-copy strong,
.return-copy small {
    display: block;
}

.return-copy strong {
    margin-bottom: 4px;
    font-size: 9px;
}

.return-copy small {
    overflow: hidden;
    color: #91867e;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.return-date {
    color: #9b9088;
    font-size: 7px;
}

.route-focus {
    display: grid;
    min-height: 88px;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-radius: 7px 16px 16px 16px;
}

.route-focus-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 13px 13px 4px 13px;
}

.route-focus div small,
.route-focus div strong,
.route-focus div span {
    display: block;
}

.route-focus div small {
    color: #9a8f87;
    font-size: 7px;
}

.route-focus div strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 10px;
}

.route-focus div span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7px;
}

.route-trend {
    color: var(--orange-dark);
    font-size: 8px;
    font-weight: 800;
}

.action-dock {
    display: grid;
    grid-template-columns: minmax(185px, 0.6fr) 2fr;
    align-items: center;
    gap: 22px;
    padding: 18px 20px;
    border-left: 4px solid var(--orange);
    border-radius: 7px 17px 17px 7px;
}

.dock-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dock-actions button {
    display: flex;
    min-height: 61px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: var(--ink);
    text-align: left;
    background: #f8f4f1;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    cursor: pointer;
}

.dock-actions button:hover {
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-color: #f5c3a3;
}

.dock-actions i {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    color: #fff;
    background: var(--navy);
    border-radius: 10px 10px 3px 10px;
    font-size: 10px;
}

.dock-actions strong,
.dock-actions small {
    display: block;
}

.dock-actions strong {
    margin-bottom: 4px;
    font-size: 9px;
}

.dock-actions small {
    color: #938880;
    font-size: 7px;
}

.admin-footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 34px;
    color: #978c84;
    background: var(--canvas);
    border-top: 1px solid rgba(16, 40, 63, 0.08);
    font-size: 8px;
}

.sidebar-overlay {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.swal2-popup {
    border-radius: 18px !important;
    font-family: 'Inter', sans-serif !important;
}

.swal-form {
    text-align: left;
}

.swal-form label {
    display: block;
    margin: 10px 2px 5px;
    color: #665c55;
    font-size: 11px;
    font-weight: 700;
}

.swal-form .swal2-input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    font-size: 12px;
}

.swal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    text-align: left;
}

.detail-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px;
    background: #f7f2ee;
    border-radius: 10px;
}

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

.detail-list strong {
    font-size: 12px;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #f7f4f1;
}

.login-shell {
    display: grid;
    width: min(980px, 100%);
    min-height: 610px;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(45, 35, 29, 0.14);
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 18%, rgba(228, 87, 18, 0.34), transparent 30%),
        linear-gradient(155deg, #39312c, #1d1a18);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    font-size: 14px;
}

.login-brand small {
    margin-top: 4px;
    color: #b6aaa1;
    font-size: 8px;
}

.login-brand-panel h1 {
    margin: 12px 0 16px;
    font-size: clamp(38px, 5vw, 57px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.login-brand-panel h1 em {
    color: #ff7a39;
    font-style: normal;
}

.login-brand-panel p {
    max-width: 330px;
    margin: 0;
    color: #b9ada5;
    font-size: 11px;
    line-height: 1.75;
}

.login-security {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a89b92;
    font-size: 8px;
    font-weight: 700;
}

.login-security i {
    color: #ff7a39;
}

.login-form-panel {
    display: grid;
    place-items: center;
    padding: 44px;
}

.login-card {
    width: min(390px, 100%);
}

.login-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(228, 87, 18, 0.24);
}

.login-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.login-heading p {
    margin: 8px 0 25px;
    color: var(--muted);
    font-size: 10px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 17px;
    padding: 12px 13px;
    color: #9b3f32;
    background: #fff0ed;
    border: 1px solid #f3cec6;
    border-radius: 11px;
    font-size: 9px;
    line-height: 1.5;
}

.login-field {
    display: grid;
    gap: 7px;
    margin-top: 15px;
    color: #514943;
    font-size: 9px;
    font-weight: 750;
}

.login-input {
    display: grid;
    min-height: 49px;
    grid-template-columns: 38px 1fr;
    align-items: center;
    background: #faf8f6;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.login-input i {
    color: var(--orange);
    text-align: center;
    font-size: 11px;
}

.login-input input {
    width: 100%;
    height: 47px;
    padding: 0 13px 0 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.login-submit {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    color: #fff;
    background: var(--orange);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(228, 87, 18, 0.22);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.login-demo {
    margin: 16px 0 0;
    color: #9a8f87;
    text-align: center;
    font-size: 8px;
}

.login-demo strong {
    color: #6f655e;
}

.module-intro {
    align-items: center;
}

.module-intro h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
}

.module-board {
    min-height: 280px;
}

.module-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px;
    padding: 14px 16px;
    color: #9b3f32;
    background: #fff0ed;
    border: 1px solid #f3cec6;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 650;
}

.module-empty {
    height: 170px;
    color: #9b9088;
    text-align: center;
}

.message-cell {
    max-width: 330px;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.settings-grid .route-focus {
    min-height: 110px;
}

.module-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    padding: 14px 16px;
    color: #38634b;
    background: #edf8f1;
    border: 1px solid #cde8d7;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.maintenance-settings {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.maintenance-setting-copy {
    display: flex;
    align-items: center;
    gap: 15px;
}

.maintenance-setting-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 14px;
}

.maintenance-setting-copy h3 {
    margin: 0;
    color: var(--navy);
    font-size: 16px;
}

.maintenance-setting-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
}

.maintenance-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.maintenance-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.maintenance-switch span {
    position: relative;
    width: 50px;
    height: 28px;
    background: #d8d0ca;
    border-radius: 999px;
    transition: background 180ms ease;
}

.maintenance-switch span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    content: '';
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(45, 35, 29, 0.2);
    transition: transform 180ms ease;
}

.maintenance-switch input:checked + span {
    background: var(--orange);
}

.maintenance-switch input:checked + span::after {
    transform: translateX(22px);
}

.maintenance-switch b {
    min-width: 38px;
    color: var(--navy);
    font-size: 9px;
}

.maintenance-message-field {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
    color: #5f554f;
    font-size: 9px;
    font-weight: 750;
}

.maintenance-message-field textarea {
    min-height: 84px;
    resize: vertical;
    padding: 12px 14px;
    color: var(--ink);
    background: #faf8f6;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    font-size: 11px;
    line-height: 1.6;
}

.integration-divider {
    height: 1px;
    grid-column: 1 / -1;
    background: var(--line-soft);
}

.chat-icon {
    background: var(--navy);
}

.integration-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.integration-fields label {
    display: grid;
    gap: 7px;
    color: #5f554f;
    font-size: 9px;
    font-weight: 750;
}

.integration-fields input {
    width: 100%;
    height: 45px;
    padding: 0 13px;
    color: var(--ink);
    background: #faf8f6;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    font-size: 10px;
}

.integration-fields input:focus,
.maintenance-message-field textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(228, 87, 18, 0.1);
}

.maintenance-settings > .primary-button {
    grid-column: 2;
    justify-self: end;
}

.maintenance-settings > .primary-button:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.55;
}

@media (max-width: 760px) {
    .login-body {
        padding: 0;
    }

    .login-shell {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
    }

    .login-brand-panel {
        min-height: 220px;
        padding: 24px;
    }

    .login-brand-panel > div {
        display: none;
    }

    .login-form-panel {
        padding: 34px 22px;
    }

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

    .maintenance-settings {
        grid-template-columns: 1fr;
    }

    .maintenance-settings > .primary-button {
        width: 100%;
        grid-column: 1;
    }

    .integration-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .operations-overview {
        grid-template-columns: 1fr;
    }

    .metric-rail {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .metric-card {
        grid-template-columns: 42px 1fr;
    }

    .metric-card > small {
        display: none;
    }

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

    .activity-stack {
        grid-template-columns: 1.3fr 0.7fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: min(310px, 88vw);
        transform: translateX(-105%);
        transition: transform 220ms ease;
        box-shadow: 18px 0 50px rgba(9, 28, 46, 0.28);
    }

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

    .sidebar-close,
    .menu-button {
        display: inline-flex;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        visibility: hidden;
        background: rgba(9, 28, 46, 0.52);
        opacity: 0;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .sidebar-visible {
        overflow: hidden;
    }

    .sidebar-visible .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .admin-main {
        margin-left: 0;
    }

    .topbar {
        padding: 0 20px;
    }

    .content {
        padding: 28px 20px;
    }
}

@media (max-width: 700px) {
    .current-date,
    .profile-copy,
    .profile-button > i {
        display: none;
    }

    .profile-button {
        padding: 3px;
        border: 0;
    }

    .control-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .intro-actions {
        justify-content: space-between;
    }

    .command-card {
        min-height: 0;
    }

    .command-body {
        grid-template-columns: 1fr;
    }

    .route-radar {
        height: 130px;
    }

    .active-count strong {
        font-size: 52px;
    }

    .metric-rail {
        grid-template-columns: 1fr;
    }

    .activity-stack {
        grid-template-columns: 1fr;
    }

    .action-dock {
        grid-template-columns: 1fr;
    }

    .dock-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .topbar {
        min-height: 68px;
        padding: 0 14px;
    }

    .topbar h1 {
        font-size: 12px;
    }

    .topbar h1::before {
        display: none;
    }

    .topbar-primary {
        width: 40px;
        min-height: 40px;
        padding: 0;
        font-size: 0;
    }

    .topbar-primary i {
        font-size: 11px;
    }

    .content {
        padding: 23px 14px;
    }

    .control-intro h2 {
        font-size: 32px;
    }

    .control-intro p {
        line-height: 1.65;
    }

    .shift-status {
        display: none;
    }

    .intro-actions .primary-button {
        width: 100%;
    }

    .command-header,
    .command-body {
        padding-right: 19px;
        padding-left: 19px;
    }

    .command-header h3 {
        font-size: 14px;
    }

    .command-footer > span {
        min-height: 66px;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 8px 4px;
        text-align: center;
    }

    .command-footer i {
        display: none;
    }

    .command-footer small {
        margin-top: 4px;
    }

    .route-node b {
        font-size: 8px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h3 {
        font-size: 14px;
    }

    .text-button {
        font-size: 0;
    }

    .text-button i {
        font-size: 11px;
    }

    .board-tabs {
        gap: 16px;
        padding: 0 15px;
    }

    .board-tabs button {
        font-size: 8px;
    }

    .return-row {
        padding: 11px 13px;
    }

    .return-date {
        display: none;
    }

    .admin-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 14px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
