:root {
    --app-bg: #f4f6f8;
    --panel-border: #d9e0e7;
    --ink: #17202a;
    --muted: #65717f;
    --accent: #0d6efd;
    --sidebar-bg: #1f2428;
    --sidebar-bg-soft: #2a3036;
    --sidebar-text: #d7dde5;
    --sidebar-muted: #909ba8;
    --topbar-height: 70px;
    --sidebar-width: 260px;
}

body {
    background: var(--app-bg);
    color: var(--ink);
}

h1 .fa-fw,
h2 .fa-fw,
.section-strip .fa-fw,
.form-section-title .fa-fw {
    margin-right: 0.45rem;
}

.app-shell-body {
    overflow-x: hidden;
}

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

.app-sidebar {
    background: var(--sidebar-bg);
    bottom: 0;
    color: var(--sidebar-text);
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: var(--sidebar-width);
    z-index: 1040;
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: var(--topbar-height);
    padding: 1.1rem 1.35rem;
}

.sidebar-brand a,
.auth-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.sidebar-role {
    color: var(--sidebar-muted);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.sidebar-nav {
    padding: 0.85rem 0.75rem 1.25rem;
}

.sidebar-section {
    color: var(--sidebar-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 1rem 0.7rem 0.45rem;
    text-transform: uppercase;
}

.sidebar-link {
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--sidebar-text);
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.18rem;
    padding: 0.68rem 0.72rem;
    text-decoration: none;
    width: 100%;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link.active {
    background: var(--sidebar-bg-soft);
    color: #fff;
}

.sidebar-link.active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 0.68rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
}

.sidebar-fa {
    font-size: 0.92rem;
}

.sidebar-collapse-toggle {
    background: transparent;
    text-align: left;
}

.sidebar-chevron {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    height: 7px;
    margin-left: auto;
    transform: rotate(45deg);
    width: 7px;
}

.sidebar-submenu {
    margin: 0 0 0.35rem 1.75rem;
}

.sidebar-submenu .sidebar-link {
    border-radius: 6px;
    color: #c1c9d2;
    font-size: 0.92rem;
    padding: 0.45rem 0.6rem;
}

.sidebar-submenu .sidebar-icon {
    background: transparent;
    color: #aeb8c4;
    flex-basis: 24px;
    height: 24px;
    width: 24px;
}

.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.app-topbar,
.auth-navbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    gap: 0.9rem;
    min-height: var(--topbar-height);
    padding: 0 1.5rem;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.auth-navbar {
    justify-content: space-between;
}

.auth-brand {
    color: var(--ink);
}

.auth-shell-body {
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(16, 168, 138, 0.08)),
        #eef2f6;
}

.login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--topbar-height) - 3rem);
    padding: 2rem 0;
}

.auth-main-plain .login-shell {
    min-height: 100vh;
    padding: 1.5rem 0;
}

.login-card {
    background: #fff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    max-width: 1040px;
    overflow: hidden;
    width: min(100%, 1040px);
}

.login-brand-panel {
    background:
        linear-gradient(160deg, rgba(13, 110, 253, 0.22), rgba(16, 168, 138, 0.16)),
        #1f2428;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
}

.login-brand-panel::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 0;
}

.login-brand-panel > * {
    position: relative;
    z-index: 1;
}

.login-brand-mark,
.login-form-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
}

.login-brand-mark {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    height: 54px;
    margin-bottom: 1.4rem;
    width: 54px;
}

.login-brand-mark .fa-fw {
    font-size: 1.45rem;
    margin: 0;
}

.login-eyebrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.login-brand-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.login-brand-copy {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 420px;
}

.login-signal-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
}

.login-signal {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    display: flex;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.8rem;
}

.login-signal .fa-fw {
    color: #9fe8d7;
    margin: 0;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.login-form-head {
    align-items: center;
    display: flex;
    gap: 0.95rem;
    margin-bottom: 1.5rem;
}

.login-form-icon {
    background: #eaf2ff;
    color: var(--accent);
    flex: 0 0 46px;
    height: 46px;
    width: 46px;
}

.login-form-icon .fa-fw {
    margin: 0;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .form-control {
    border-color: #cfd8e3;
    padding-left: 2.8rem;
}

.login-input-wrap .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.14);
}

.login-input-icon {
    color: var(--muted);
    left: 1rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: inline-flex;
    height: 100%;
    justify-content: center;
    padding: 0 1rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--accent);
}

.password-toggle .fa-fw {
    margin: 0;
}

.password-toggle .hide-icon,
.password-toggle.is-visible .show-icon {
    display: none;
}

.password-toggle.is-visible .hide-icon {
    display: inline;
}

.login-input-wrap.has-password-toggle .form-control {
    padding-right: 3.25rem;
}

.login-footnote {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.88rem;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.sidebar-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.sidebar-toggle:hover {
    background: #eef2f6;
}

.sidebar-toggle span {
    background: var(--ink);
    border-radius: 2px;
    display: block;
    height: 2px;
    width: 18px;
}

.topbar-search {
    max-width: 320px;
    position: relative;
    width: min(34vw, 320px);
}

.topbar-search .form-control {
    background: #f3f5f9;
    border-color: transparent;
    padding-left: 2.35rem;
}

.topbar-search-icon {
    color: var(--muted);
    left: 0.85rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.topbar-spacer {
    flex: 1;
}

.topbar-date {
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}

.notification-toggle {
    align-items: center;
    border: 1px solid var(--panel-border);
    display: inline-flex;
    gap: 0.45rem;
}

.notification-symbol {
    align-items: center;
    background: #eaf2ff;
    border-radius: 6px;
    color: var(--accent);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.btn .fa-fw,
.topbar-date .fa-fw {
    margin-right: 0.35rem;
}

.notification-dropdown {
    max-height: min(72vh, 520px);
    min-width: 340px;
    overflow-y: auto;
    padding: 0;
}

.notification-dropdown-head {
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.notification-dropdown-head a {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.notification-dropdown-item {
    border-bottom: 1px solid #eef2f6;
    padding: 0.8rem 0.9rem;
    white-space: normal;
}

.notification-dropdown-item.unread,
.notification-row.unread {
    background: #f3f8ff;
    border-color: #b8d6ff;
}

.notification-preview {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.notification-time {
    color: #8792a0;
    font-size: 0.76rem;
    margin-top: 0.3rem;
}

.notification-empty {
    color: var(--muted);
    padding: 1.2rem 0.9rem;
    text-align: center;
}

.notification-list {
    display: grid;
    gap: 0.75rem;
}

.notification-row {
    border-left: 4px solid transparent;
}

.notification-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-content-main {
    padding: 1.5rem;
}

.panel,
.metric-card,
.parcel-card {
    background: #fff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.panel {
    padding: 1rem;
}

.metric-card {
    border: 0;
    color: #fff;
    min-height: 104px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.metric-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 0.85rem;
    top: 0.85rem;
    width: 34px;
    z-index: 1;
}

.metric-icon .fa-fw {
    margin: 0;
}

.metric-card::after {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    content: "";
    height: 72px;
    position: absolute;
    right: -18px;
    top: -18px;
    transform: rotate(16deg);
    width: 92px;
}

.row > [class*="col"]:nth-child(8n+1) .metric-card {
    background: linear-gradient(135deg, #2f57d6, #2445a8);
}

.row > [class*="col"]:nth-child(8n+2) .metric-card {
    background: linear-gradient(135deg, #10a88a, #087965);
}

.row > [class*="col"]:nth-child(8n+3) .metric-card {
    background: linear-gradient(135deg, #e25555, #b93447);
}

.row > [class*="col"]:nth-child(8n+4) .metric-card {
    background: linear-gradient(135deg, #f0a12a, #c27412);
}

.row > [class*="col"]:nth-child(8n+5) .metric-card {
    background: linear-gradient(135deg, #7457d8, #5138a8);
}

.row > [class*="col"]:nth-child(8n+6) .metric-card {
    background: linear-gradient(135deg, #1689c7, #0d638f);
}

.row > [class*="col"]:nth-child(8n+7) .metric-card {
    background: linear-gradient(135deg, #2f855a, #246847);
}

.row > [class*="col"]:nth-child(8n) .metric-card {
    background: linear-gradient(135deg, #3e4c66, #253044);
}

.metric-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 2.2rem;
    padding-right: 2.6rem;
    position: relative;
    z-index: 1;
}

.metric-value {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
    position: relative;
    z-index: 1;
}

.parcel-card {
    padding: 1rem;
}

.qr-thumb {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
}

.qr-large {
    width: min(180px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #fff;
}

.seller-logo-preview {
    background: #fff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    height: 76px;
    max-width: 220px;
    object-fit: contain;
    padding: 0.5rem;
    width: auto;
}

.otp-code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0;
    background: #eef5ff;
    border: 1px solid #bfd7ff;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
}

.timeline {
    display: grid;
    gap: 0.75rem;
}

.timeline-item {
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
}

.exception-box {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.85rem;
    height: 100%;
}

.section-strip,
.form-section-title {
    background: #1f2428;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
}

.form-section-title {
    background: #eef2f6;
    color: var(--ink);
    border: 1px solid var(--panel-border);
}

.booking-form .form-label {
    color: #65717f;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.booking-form .form-control[readonly] {
    background: #f0f2f4;
}

.required::before {
    color: #dc3545;
    content: "* ";
}

.map-frame {
    width: 100%;
    min-height: 220px;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    background: #e4e2df;
}

.smart-route-map {
    background: #e4e8ee;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    min-height: min(64vh, 620px);
    overflow: hidden;
    width: 100%;
}

.smart-route-list {
    display: grid;
    gap: 0.65rem;
    max-height: 610px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.smart-route-stop {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
}

.smart-route-stop:hover,
.smart-route-stop:focus {
    border-color: #9cc5fe;
    color: var(--ink);
}

.smart-route-stop.missing {
    border-color: #ffd59a;
    display: block;
}

.route-order {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 0.86rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.route-stop-body {
    min-width: 0;
    overflow-wrap: anywhere;
    width: 100%;
}

.label-page {
    display: grid;
    justify-items: center;
}

.label-page .label-actions {
    justify-self: stretch;
}

.parcel-label {
    background: #fff;
    border: 1px solid #111827;
    color: #111827;
    font-size: 0.9rem;
    max-width: 560px;
    padding: 1rem;
    width: min(100%, 560px);
}

.label-header,
.label-brand,
.label-tracking-block,
.label-summary,
.label-footer {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.label-header,
.label-tracking-block,
.label-footer {
    border-bottom: 1px solid #111827;
    justify-content: space-between;
    padding-bottom: 0.75rem;
}

.label-brand {
    min-width: 0;
}

.label-logo,
.label-logo-fallback {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    height: 54px;
    width: 74px;
}

.label-logo {
    object-fit: contain;
    padding: 0.3rem;
}

.label-logo-fallback {
    align-items: center;
    background: #eef2f6;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 800;
    justify-content: center;
}

.label-company {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}

.label-muted {
    color: #5d6673;
    font-size: 0.78rem;
}

.label-status {
    text-align: right;
    white-space: nowrap;
}

.label-date {
    color: #5d6673;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.label-tracking-block {
    margin-top: 0.75rem;
}

.label-tracking {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.3rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.label-qr {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    flex: 0 0 118px;
    height: 118px;
    object-fit: contain;
    padding: 0.25rem;
}

.label-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.label-box {
    border: 1px solid #111827;
    border-radius: 6px;
    min-height: 156px;
    padding: 0.65rem;
}

.label-box-strong {
    border-width: 2px;
}

.label-box-title {
    color: #5d6673;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.label-name {
    font-size: 1rem;
    font-weight: 800;
}

.label-address {
    font-size: 0.82rem;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
}

.label-summary {
    border: 1px solid #111827;
    border-radius: 6px;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.65rem;
}

.label-summary div {
    display: grid;
    gap: 0.1rem;
}

.label-summary span {
    color: #5d6673;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.label-summary strong {
    font-size: 1rem;
}

.label-details {
    border-bottom: 1px solid #111827;
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.label-instruction {
    background: #fff7e6;
    border: 1px solid #f0cf8b;
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
}

.label-footer {
    border-bottom: 0;
    color: #5d6673;
    font-size: 0.75rem;
    padding: 0.75rem 0 0;
}

.bulk-labels {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.bulk-label-item {
    display: grid;
    gap: 0.6rem;
    justify-items: center;
    width: 100%;
}

.bulk-label-selector {
    align-items: center;
    background: #fff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    max-width: 560px;
    padding: 0.65rem 0.8rem;
    width: min(100%, 560px);
}

.api-token-box {
    background: #0f172a;
    border-radius: 8px;
    color: #d6f7ef;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
    padding: 0.8rem;
}

.api-doc-card {
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    height: 100%;
    padding: 0.9rem;
}

.api-doc-card + .api-doc-card {
    margin-top: 1rem;
}

.api-doc-card pre {
    background: #111827;
    border-radius: 8px;
    color: #e5eefb;
    margin: 0.65rem 0 0;
    overflow-x: auto;
    padding: 0.85rem;
    white-space: pre-wrap;
}

.review-cell {
    min-width: 220px;
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    main.container-fluid,
    .app-content-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .panel,
    .metric-card,
    .parcel-card {
        padding: 0.85rem;
    }

    .table {
        min-width: 760px;
    }

    .parcel-label {
        font-size: 0.82rem;
        padding: 0.75rem;
    }

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

    .label-summary {
        align-items: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 1.4rem;
    }

    .login-brand-copy {
        max-width: none;
    }

    .login-signal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .login-form-panel {
        padding: 1.4rem;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

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

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

    .sidebar-backdrop {
        background: rgba(15, 23, 42, 0.45);
        bottom: 0;
        display: none;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1030;
    }

    .sidebar-open .sidebar-backdrop {
        display: block;
    }

    .topbar-search {
        width: min(44vw, 260px);
    }
}

@media (min-width: 992px) {
    .sidebar-backdrop {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .app-topbar {
        gap: 0.55rem;
        padding: 0 0.75rem;
    }

    .topbar-date {
        display: none;
    }

    .topbar-search {
        flex: 1;
        max-width: none;
        width: auto;
    }

    .notification-toggle-text {
        display: none;
    }

    .notification-dropdown {
        min-width: min(92vw, 340px);
    }

    .login-shell {
        padding: 0.75rem 0;
    }

    .login-card {
        border-radius: 8px;
    }

    .login-signal-grid {
        grid-template-columns: 1fr;
    }

    .login-form-head {
        align-items: flex-start;
    }

    .smart-route-map {
        min-height: 380px;
    }
}

@media print {
    .app-sidebar,
    .app-topbar,
    .auth-navbar,
    .sidebar-backdrop,
    .btn,
    form,
    .alert {
        display: none !important;
    }

    body {
        background: #fff;
    }

    main.container-fluid {
        padding: 0;
    }

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

    .app-content-main {
        padding: 0;
    }

    .panel,
    .metric-card {
        border: 0;
        box-shadow: none;
        padding: 0.25rem;
    }

    .label-page {
        display: block;
    }

    .label-actions {
        display: none !important;
    }

    .parcel-label {
        border: 1px solid #111827;
        box-shadow: none;
        max-width: none;
        padding: 0.35rem;
        width: 100%;
    }

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

    .label-summary {
        display: flex;
    }

    .bulk-label-actions,
    .bulk-label-selector,
    .bulk-label-print-hidden {
        display: none !important;
    }

    .bulk-labels,
    .bulk-label-item {
        display: block;
    }

    .bulk-label-item {
        break-after: page;
        page-break-after: always;
    }

    .bulk-label-item:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}
