:root {
    --sidebar-width: 270px;
    --sidebar-collapsed: 84px;
    --topbar-height: 76px;
    --ink: #17223b;
    --muted: #6f7b91;
    --line: #e7ebf2;
    --canvas: #f4f6fa;
    --surface: #ffffff;
    --primary: #2356d8;
    --primary-dark: #1947bf;
    --sidebar: #111b31;
    --sidebar-soft: #1b2944;
    --green: #16a779;
    --orange: #f59b23;
    --red: #e65362;
    --violet: #7968df;
    --shadow: 0 10px 30px rgba(30, 45, 75, 0.06);
    --radius: 16px;
    --border-color: var(--line);
    --surface-soft: #f7f9fc;
    --text-muted: var(--muted);
}

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

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(35, 86, 216, 0.3);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.app-sidebar {
    position: fixed;
    z-index: 1040;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(65, 105, 225, 0.2), transparent 27%),
        var(--sidebar);
    color: #dce4f5;
    transition: width 220ms ease, transform 220ms ease;
}

.sidebar-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 23px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.brand-symbol {
    position: relative;
    display: grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: linear-gradient(145deg, #4779ff, #2454dc);
    box-shadow: 0 8px 18px rgba(22, 64, 178, 0.35);
}

.brand-symbol span {
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.95);
}

.brand-symbol span:first-child {
    grid-row: 1 / 3;
}

.brand-symbol span:last-child {
    opacity: 0.62;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
    white-space: nowrap;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: -0.4px;
}

.brand-copy small {
    margin-top: 5px;
    color: #8796b4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.sidebar-scroll {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 23px 14px;
    scrollbar-width: thin;
    scrollbar-color: #33425d transparent;
}

.nav-eyebrow {
    margin: 0 13px 9px;
    color: #6f7d99;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-eyebrow-secondary {
    margin-top: 28px;
}

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

.nav-item,
.nav-subitem {
    width: 100%;
    border: 0;
    color: #aebbd2;
    text-align: left;
    text-decoration: none;
}

.nav-item {
    position: relative;
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 13px;
    padding: 10px 13px;
    border-radius: 10px;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 150ms ease, background 150ms ease;
}

.nav-item > i:first-child {
    width: 20px;
    min-width: 20px;
    color: #7788a8;
    font-size: 18px;
    text-align: center;
    transition: color 150ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.nav-item:hover > i:first-child,
.nav-item:focus-visible > i:first-child {
    color: #b8c7e3;
}

.nav-item.active {
    background: linear-gradient(90deg, #285bd9, #2352ca);
    color: #fff;
    box-shadow: 0 8px 18px rgba(10, 39, 111, 0.24);
}

.nav-item.active > i:first-child {
    color: #fff;
}

.nav-label {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
}

.nav-chevron {
    font-size: 11px;
    transition: transform 180ms ease;
}

.nav-group.is-open .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    display: grid;
    gap: 2px;
    padding: 4px 0 8px 46px;
}

.nav-submenu[hidden] {
    display: none;
}

.nav-subitem {
    display: flex;
    min-height: 35px;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: transparent;
    font-size: 12.5px;
}

.nav-subitem:hover,
.nav-subitem:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-subitem.active {
    background: rgba(74, 118, 238, 0.14);
    color: #b8cbff;
    font-weight: 750;
}

.empty-menu-message {
    margin: 14px 13px 0;
    color: #73819d;
    font-size: 10px;
    line-height: 1.55;
}

.nav-count {
    display: inline-grid;
    min-width: 24px;
    height: 20px;
    place-items: center;
    border-radius: 6px;
    background: rgba(74, 118, 238, 0.22);
    color: #9bb8ff;
    font-size: 10px;
    font-weight: 800;
}

.sidebar-footer {
    display: flex;
    min-height: 69px;
    align-items: center;
    gap: 11px;
    padding: 13px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #c1cbe0;
    white-space: nowrap;
}

.sidebar-footer .nav-label {
    display: flex;
    flex-direction: column;
}

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

.sidebar-footer small {
    color: #74839f;
    font-size: 10px;
}

.sync-indicator,
.status-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3bd09e;
    box-shadow: 0 0 0 4px rgba(59, 208, 158, 0.12);
}

.app-page {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left 220ms ease;
}

.topbar {
    position: sticky;
    z-index: 1010;
    top: 0;
    display: flex;
    height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.topbar-start,
.topbar-actions {
    display: flex;
    align-items: center;
}

.topbar-start {
    min-width: 0;
    gap: 18px;
}

.topbar-actions {
    gap: 11px;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #5d6980;
    transition: background 150ms ease, color 150ms ease, border 150ms ease;
}

.icon-button:hover {
    border-color: #d8deea;
    background: #f8f9fc;
    color: var(--ink);
}

.menu-button {
    font-size: 20px;
}

.sidebar-close {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #dce4f5;
}

.global-search {
    position: relative;
    display: flex;
    width: min(440px, 42vw);
    height: 43px;
    align-items: center;
}

.global-search > i {
    position: absolute;
    z-index: 1;
    left: 14px;
    color: #8e98aa;
}

.global-search input {
    width: 100%;
    height: 100%;
    padding: 0 68px 0 41px;
    border: 1px solid #e0e5ee;
    border-radius: 11px;
    outline: 0;
    background: #f7f8fb;
    color: var(--ink);
    font-size: 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.global-search input:focus {
    border-color: rgba(35, 86, 216, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(35, 86, 216, 0.1);
}

.global-search input::placeholder {
    color: #9ba5b6;
}

.global-search kbd {
    position: absolute;
    right: 10px;
    padding: 3px 6px;
    border: 1px solid #dfe4ec;
    border-radius: 5px;
    background: #fff;
    color: #8c96a8;
    box-shadow: none;
    font-family: inherit;
    font-size: 9px;
}

.notification-button {
    position: relative;
    border-color: transparent;
    font-size: 17px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--red);
}

.topbar-divider {
    width: 1px;
    height: 30px;
    margin: 0 2px;
    background: var(--line);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.user-menu:hover {
    background: #f6f8fb;
}

.avatar,
.mini-avatar {
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, #dfe8ff, #edf2ff);
    color: var(--primary);
    font-weight: 800;
}

.avatar {
    width: 38px;
    height: 38px;
    font-size: 11px;
}

.user-copy {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    line-height: 1.3;
}

.user-copy strong {
    font-size: 12px;
}

.user-copy small {
    color: var(--muted);
    font-size: 10px;
}

.user-menu > i {
    color: #929cad;
    font-size: 10px;
}

.main-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 31px 30px 20px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.page-date {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 7px;
    color: #7c879b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.status-live {
    width: 7px;
    height: 7px;
    box-shadow: none;
}

.page-heading h1 {
    margin: 0;
    color: #17223b;
    font-size: clamp(25px, 2.2vw, 32px);
    font-weight: 750;
    letter-spacing: -1px;
}

.page-heading p:not(.page-date) {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.page-heading p strong {
    color: #39455d;
}

.heading-actions,
.table-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.heading-actions .btn {
    min-height: 42px;
    padding: 9px 15px;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 6px 15px rgba(35, 86, 216, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.btn-soft {
    border: 1px solid #dfe4ed;
    background: #fff;
    color: #4d596f;
}

.btn-soft:hover {
    border-color: #ccd4e2;
    background: #f8f9fb;
    color: var(--ink);
}

.metric-card,
.panel-card {
    border: 1px solid rgba(221, 227, 237, 0.9);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-card {
    position: relative;
    height: 100%;
    min-height: 181px;
    overflow: hidden;
    padding: 20px 20px 18px;
}

.metric-card-alert::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 62px;
    height: 62px;
    border-radius: 0 0 0 62px;
    background: rgba(245, 155, 35, 0.07);
    content: "";
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.metric-icon,
.attention-icon {
    display: inline-grid;
    place-items: center;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
}

.metric-icon-blue { background: #eaf0ff; color: var(--primary); }
.metric-icon-green { background: #e7f8f2; color: var(--green); }
.metric-icon-violet { background: #efedff; color: var(--violet); }
.metric-icon-orange { background: #fff2df; color: var(--orange); }

.metric-trend {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.metric-trend i {
    font-size: 14px;
}

.metric-trend.positive { background: #eaf8f3; color: #138964; }
.metric-trend.negative { background: #fff0f1; color: #d74756; }
.metric-trend.neutral { background: #f2f3f7; color: #69758b; }

.metric-card > p {
    margin: 0 0 3px;
    color: #727e93;
    font-size: 11px;
    font-weight: 650;
}

.metric-value {
    color: #17223b;
    font-size: 27px;
    font-weight: 780;
    letter-spacing: -0.9px;
    line-height: 1.2;
}

.metric-value span {
    margin-left: 2px;
    font-size: 16px;
}

.metric-card > small {
    display: block;
    margin-top: 5px;
    color: #8a94a7;
    font-size: 10px;
}

.metric-card > small strong {
    color: #5e6a80;
    font-weight: 700;
}

.metric-progress {
    height: 4px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 99px;
    background: #edf0f5;
}

.metric-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.progress-blue { background: var(--primary); }
.progress-green { background: var(--green); }
.progress-violet { background: var(--violet); }
.w-76 { width: 76%; }
.w-81 { width: 81%; }
.w-94 { width: 94%; }

.metric-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #dc6e18;
    font-size: 10px;
    font-weight: 750;
}

.panel-card {
    height: 100%;
    padding: 22px 23px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-header h2 {
    margin: 0;
    color: #202a41;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.2px;
}

.panel-header p {
    margin: 4px 0 0;
    color: #8b95a6;
    font-size: 10.5px;
}

.segmented-control,
.table-filters {
    display: flex;
    padding: 3px;
    border-radius: 8px;
    background: #f0f2f6;
}

.segmented-control button,
.table-filters button {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #818b9e;
    font-size: 10px;
    font-weight: 700;
}

.segmented-control button {
    padding: 5px 9px;
}

.segmented-control button.active,
.table-filters button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 7px rgba(25, 37, 61, 0.08);
}

.chart-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 21px;
}

.chart-summary > div {
    display: flex;
    flex-direction: column;
}

.chart-summary > div > span {
    color: #8c96a8;
    font-size: 10px;
}

.chart-summary strong {
    color: #1d2840;
    font-size: 22px;
    letter-spacing: -0.7px;
}

.chart-summary strong small {
    color: #8d97a9;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

.summary-badge {
    padding: 5px 8px;
    border-radius: 7px;
    background: #eaf8f3;
    color: #138964;
    font-size: 9px;
    font-weight: 750;
}

.bar-chart {
    display: flex;
    height: 190px;
    margin-top: 12px;
    padding-top: 11px;
}

.chart-axis {
    display: flex;
    width: 32px;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 24px;
    color: #a0a9b9;
    font-size: 8px;
}

.chart-plot {
    position: relative;
    min-width: 0;
    flex: 1;
}

.grid-lines {
    position: absolute;
    inset: 0 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-lines span {
    width: 100%;
    border-top: 1px dashed #e9edf3;
}

.bar-columns {
    position: absolute;
    z-index: 1;
    inset: 0 3px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 12px;
}

.bar-item {
    display: flex;
    min-width: 24px;
    max-width: 48px;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.bar {
    position: relative;
    width: 100%;
    max-width: 26px;
    min-height: 12px;
    margin: 0 auto 8px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #8aa7f5, #5f82df);
    opacity: 0.78;
    transition: height 300ms ease, opacity 150ms ease, transform 150ms ease;
}

.bar:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.bar span {
    position: absolute;
    top: -20px;
    left: 50%;
    display: none;
    padding: 2px 4px;
    border-radius: 4px;
    background: #17223b;
    color: #fff;
    font-size: 8px;
    transform: translateX(-50%);
}

.bar:hover span,
.bar:focus span {
    display: block;
}

.bar-item.current .bar {
    background: linear-gradient(180deg, #4674ed, #2356d8);
    box-shadow: 0 6px 12px rgba(35, 86, 216, 0.2);
    opacity: 1;
}

.bar-item small {
    height: 18px;
    color: #929cad;
    font-size: 8.5px;
}

.bar-item.current small {
    color: var(--primary);
    font-weight: 800;
}

.h-54 { height: 54%; }
.h-58 { height: 58%; }
.h-63 { height: 63%; }
.h-68 { height: 68%; }
.h-74 { height: 74%; }
.h-78 { height: 78%; }
.h-88 { height: 88%; }

.panel-menu {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-color: transparent;
}

.attention-list {
    display: grid;
    margin-top: 13px;
}

.attention-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: transparent;
    color: inherit;
    text-align: left;
}

.attention-item:hover strong {
    color: var(--primary);
}

.attention-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 15px;
}

.attention-danger { background: #fff0f1; color: var(--red); }
.attention-warning { background: #fff3e2; color: var(--orange); }
.attention-violet { background: #f0edff; color: var(--violet); }

.attention-item > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.attention-item strong {
    overflow: hidden;
    color: #334057;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 150ms ease;
}

.attention-item small {
    overflow: hidden;
    margin-top: 2px;
    color: #929cad;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attention-time {
    color: #9da6b6;
    font-size: 8.5px;
}

.panel-link {
    width: 100%;
    margin-top: 15px;
    padding: 9px;
    border: 1px solid #e3e7ef;
    border-radius: 9px;
    background: #f9fafc;
    color: #59657b;
    font-size: 10px;
    font-weight: 750;
}

.panel-link:hover {
    border-color: #d7deea;
    background: #f4f6fa;
    color: var(--primary);
}

.shipments-panel {
    height: auto;
    min-height: 410px;
    padding: 0;
    overflow: hidden;
}

.table-panel-header {
    align-items: center;
    padding: 21px 23px 16px;
}

.table-filters button {
    min-width: 58px;
    padding: 6px 10px;
}

.table-responsive-wrapper {
    border-top: 1px solid #edf0f4;
}

div.dt-container {
    padding-bottom: 2px;
}

div.dt-container div.dt-layout-row {
    margin: 0;
}

div.dt-container div.dt-layout-row:first-child {
    display: none;
}

div.dt-container div.dt-layout-row:last-child {
    align-items: center;
    padding: 14px 22px;
    border-top: 1px solid #edf0f4;
}

div.dt-container .dt-info {
    padding: 0 !important;
    color: #8a94a6;
    font-size: 9.5px;
}

div.dt-container .dt-paging .pagination {
    gap: 3px;
    margin: 0;
}

div.dt-container .dt-paging .page-link {
    min-width: 29px;
    min-height: 29px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #7c879a;
    font-size: 9px;
    text-align: center;
}

div.dt-container .dt-paging .active > .page-link {
    border-color: #dfe6fa;
    background: #edf2ff;
    color: var(--primary);
    font-weight: 800;
}

#shipmentsTable {
    margin: 0 !important;
}

#shipmentsTable thead th {
    padding: 11px 15px;
    border-bottom: 1px solid #e8ecf2;
    background: #f8f9fb;
    color: #8c96a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    white-space: nowrap;
}

#shipmentsTable thead th:first-child,
#shipmentsTable tbody td:first-child {
    padding-left: 23px;
}

#shipmentsTable tbody td {
    padding: 13px 15px;
    border-color: #edf0f4;
    color: #5f6b80;
    font-size: 10.5px;
    vertical-align: middle;
}

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

#shipmentsTable tbody tr:hover td {
    background: #fbfcfe;
}

.shipment-code {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.shipment-code:hover {
    text-decoration: underline;
}

.client-name,
.forecast-time {
    color: #435066;
    font-weight: 650;
}

.route-cell,
.driver-cell {
    display: inline-flex;
    align-items: center;
}

.route-cell {
    gap: 6px;
    white-space: nowrap;
}

.route-cell i {
    color: #abb3c0;
    font-size: 9px;
}

.route-cell strong {
    color: #445167;
    font-weight: 650;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.status-badge > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-success { background: #e9f8f3; color: #138b66; }
.status-primary { background: #eaf0ff; color: var(--primary); }
.status-danger { background: #fff0f1; color: #d84d5b; }
.status-warning { background: #fff4e4; color: #cf7817; }
.status-secondary { background: #f0f2f5; color: #727e91; }

.driver-cell {
    gap: 7px;
    white-space: nowrap;
}

.mini-avatar {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #eef1f6;
    color: #667288;
    font-size: 8px;
}

.priority-text {
    color: #7f8a9d;
    font-size: 9px;
}

.row-action {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    background: #fff;
    color: #8691a3;
}

.row-action:hover {
    border-color: #d9e1f3;
    background: #f5f8ff;
    color: var(--primary);
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    border: 0;
    background: var(--primary);
    box-shadow: none;
    font-family: inherit;
    line-height: 14px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    padding: 23px 2px 0;
    color: #9aa3b2;
    font-size: 9px;
}

.dashboard-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid #f2d6a8;
    border-radius: 10px;
    background: #fff8e9;
    color: #a36512;
    font-size: 10.5px;
}

.module-placeholder {
    display: grid;
    min-height: 330px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.module-placeholder-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 15px;
    background: #edf2ff;
    color: var(--primary);
    font-size: 23px;
}

.module-placeholder h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.module-placeholder p {
    max-width: 540px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.module-placeholder code {
    color: var(--primary);
}

.module-content {
    min-width: 0;
}

.toast {
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(23, 34, 59, 0.16);
}

.toast-body {
    color: #4d596f;
    font-size: 11px;
}

.dropdown-menu {
    border-color: #e6eaf1;
    border-radius: 11px;
    font-size: 12px;
}

.dropdown-item {
    padding: 8px 14px;
}

.ui-autocomplete {
    z-index: 1100;
    max-height: 320px;
    margin: 6px 0 0;
    padding: 7px;
    overflow-y: auto;
    border: 1px solid #e0e5ee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 34, 59, 0.14);
    list-style: none;
}

.ui-menu-item-wrapper {
    padding: 9px 11px;
    border: 0 !important;
    border-radius: 8px;
    color: #536077;
    font-size: 11px;
    cursor: pointer;
}

.ui-state-active {
    margin: 0 !important;
    background: #eef3ff !important;
    color: var(--primary) !important;
}

.ui-helper-hidden-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sidebar-overlay {
    display: none;
}

/* Autenticação */
.login-page {
    min-height: 100dvh;
    overflow-x: hidden;
    background: #f5f7fb;
}

.login-shell {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(390px, 46%) minmax(480px, 54%);
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    background:
        radial-gradient(circle at 14% 15%, rgba(79, 122, 239, 0.28), transparent 28%),
        radial-gradient(circle at 88% 86%, rgba(35, 86, 216, 0.18), transparent 30%),
        linear-gradient(145deg, #121e38 0%, #0e172a 58%, #101a30 100%);
    color: #fff;
}

.login-brand-panel::before,
.login-brand-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    content: "";
}

.login-brand-panel::before {
    top: 18%;
    right: -160px;
    width: 420px;
    height: 420px;
}

.login-brand-panel::after {
    right: -70px;
    bottom: -100px;
    width: 250px;
    height: 250px;
}

.login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.login-brand .brand-symbol,
.login-mobile-brand .brand-symbol {
    width: 39px;
    min-width: 39px;
    height: 39px;
}

.login-brand .brand-copy strong,
.login-mobile-brand .brand-copy strong {
    font-size: 22px;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    margin: auto 0;
    padding: 70px 0;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(126, 160, 255, 0.2);
    border-radius: 99px;
    background: rgba(66, 107, 219, 0.11);
    color: #a9c0ff;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.login-brand-content h1 {
    max-width: 470px;
    margin: 24px 0 15px;
    color: #fff;
    font-size: clamp(35px, 4vw, 54px);
    font-weight: 750;
    letter-spacing: -2px;
    line-height: 1.06;
}

.login-brand-content > p {
    max-width: 455px;
    margin: 0;
    color: #9daac2;
    font-size: 14px;
    line-height: 1.75;
}

.login-benefits {
    display: grid;
    gap: 18px;
    margin-top: 40px;
}

.login-benefits > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-benefits > div > span {
    display: inline-grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(137, 166, 239, 0.13);
    border-radius: 10px;
    background: rgba(95, 130, 220, 0.1);
    color: #9db7fb;
    font-size: 15px;
}

.login-benefits p {
    display: flex;
    margin: 0;
    flex-direction: column;
}

.login-benefits strong {
    color: #dde5f6;
    font-size: 11.5px;
}

.login-benefits small {
    margin-top: 2px;
    color: #7787a4;
    font-size: 9.5px;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #687997;
    font-size: 9px;
    font-weight: 650;
}

.login-brand-footer span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35d29d;
    box-shadow: 0 0 0 4px rgba(53, 210, 157, 0.09);
}

.login-form-panel {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 45px clamp(28px, 7vw, 110px);
    background:
        radial-gradient(circle at 90% 10%, rgba(35, 86, 216, 0.045), transparent 24%),
        #f8f9fc;
}

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

.login-mobile-brand {
    display: none;
    align-items: center;
    gap: 11px;
    margin-bottom: 48px;
}

.login-mobile-brand .brand-copy strong {
    color: var(--ink);
}

.login-heading > p {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    color: #17223b;
    font-size: clamp(28px, 3vw, 35px);
    font-weight: 760;
    letter-spacing: -1.2px;
}

.login-heading > span {
    display: block;
    margin-top: 8px;
    color: #8791a3;
    font-size: 12px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 11px 13px;
    border: 1px solid #f4d4d8;
    border-radius: 10px;
    background: #fff4f5;
    color: #b83f4c;
    font-size: 10.5px;
}

.login-alert i {
    margin-top: 1px;
}

.login-form {
    display: grid;
    gap: 20px;
    margin-top: 33px;
}

.form-field label,
.field-label-row > button {
    font-size: 10.5px;
    font-weight: 750;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #455167;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-label-row > button {
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
}

.input-shell {
    position: relative;
    display: flex;
    height: 49px;
    align-items: center;
}

.input-shell > i {
    position: absolute;
    z-index: 1;
    left: 15px;
    color: #9aa4b5;
    font-size: 15px;
}

.input-shell input {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 43px;
    border: 1px solid #dde3ed;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-shell input::placeholder {
    color: #a6afbe;
}

.input-shell input:focus {
    border-color: rgba(35, 86, 216, 0.52);
    box-shadow: 0 0 0 3px rgba(35, 86, 216, 0.09);
}

.password-toggle {
    position: absolute;
    z-index: 2;
    right: 7px;
    display: inline-grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8e99aa;
}

.password-toggle:hover {
    background: #f5f7fa;
    color: var(--ink);
}

.login-submit {
    display: flex;
    width: 100%;
    height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2f65e5, #1f51cf);
    color: #fff;
    box-shadow: 0 10px 22px rgba(35, 86, 216, 0.2);
    font-size: 11.5px;
    font-weight: 750;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.login-submit:hover {
    box-shadow: 0 13px 26px rgba(35, 86, 216, 0.25);
    transform: translateY(-1px);
}

.login-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 29px 0 0;
    color: #9aa3b2;
    font-size: 9.5px;
    text-align: center;
}

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

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

    .login-form-panel {
        padding: 38px 24px;
    }

    .login-mobile-brand {
        display: flex;
    }
}

@media (max-width: 479.98px) {
    .login-form-panel {
        align-items: start;
        padding: 28px 18px;
    }

    .login-mobile-brand {
        margin-bottom: 55px;
    }
}

@media (min-width: 992px) {
    body.sidebar-collapsed .app-sidebar {
        width: var(--sidebar-collapsed);
    }

    body.sidebar-collapsed .app-page {
        margin-left: var(--sidebar-collapsed);
    }

    body.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        padding-inline: 0;
    }

    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .nav-chevron,
    body.sidebar-collapsed .nav-eyebrow,
    body.sidebar-collapsed .nav-submenu {
        display: none;
    }

    body.sidebar-collapsed .sidebar-scroll {
        padding-inline: 12px;
    }

    body.sidebar-collapsed .nav-item {
        justify-content: center;
        padding-inline: 10px;
    }

    body.sidebar-collapsed .sidebar-footer {
        justify-content: center;
        padding-inline: 0;
    }
}

@media (max-width: 1199.98px) {
    .main-content {
        padding-inline: 23px;
    }

    .topbar {
        padding-inline: 23px;
    }

    .attention-panel {
        min-height: auto;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        width: min(294px, 86vw);
        box-shadow: 18px 0 42px rgba(8, 17, 35, 0.2);
        transform: translateX(-105%);
    }

    body.sidebar-open {
        overflow: hidden;
    }

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

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

    .sidebar-overlay {
        position: fixed;
        z-index: 1030;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(11, 20, 37, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 200ms ease;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        padding-inline: 20px;
    }

    .global-search {
        width: min(440px, 50vw);
    }

    .main-content {
        padding: 26px 20px 18px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --topbar-height: 68px;
    }

    .topbar {
        gap: 10px;
        padding-inline: 14px;
    }

    .topbar-start {
        flex: 1;
        gap: 9px;
    }

    .global-search {
        width: 100%;
    }

    .global-search input {
        padding-right: 15px;
    }

    .global-search kbd,
    .user-copy,
    .user-menu > i,
    .topbar-divider {
        display: none;
    }

    .topbar-actions {
        gap: 3px;
    }

    .user-menu {
        padding: 1px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .heading-actions {
        width: 100%;
    }

    .heading-actions .btn {
        flex: 1;
    }

    .table-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .table-actions {
        align-items: stretch;
        justify-content: space-between;
    }

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

    .table-filters button {
        min-width: auto;
        white-space: nowrap;
    }

    .chart-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .bar-columns {
        gap: 6px;
    }

    div.dt-container div.dt-layout-row:last-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding-inline: 13px;
    }

    .global-search input::placeholder {
        color: transparent;
    }

    .notification-button {
        display: none;
    }

    .metric-card {
        min-height: 171px;
    }

    .panel-card {
        padding: 19px 16px;
    }

    .shipments-panel {
        padding: 0;
    }

    .table-panel-header {
        padding: 18px 16px 14px;
    }

    .table-actions > .btn {
        font-size: 0;
    }

    .table-actions > .btn i {
        font-size: 14px;
    }

    .summary-badge {
        align-self: flex-start;
    }

    .bar-chart {
        height: 175px;
    }

    .chart-axis {
        width: 24px;
    }

    .bar-columns {
        inset-inline: 0;
    }

    .bar-item {
        min-width: 15px;
    }

    .bar {
        max-width: 21px;
    }

    .page-footer {
        flex-direction: column;
        gap: 3px;
    }
}

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

/* Cadastro de clientes */
.client-alert { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; }
.client-list-card, .client-editor { padding: 0; overflow: hidden; }
.client-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--border-color); }
.client-card-heading h2 { margin: 3px 0; font-size: 1.35rem; }
.client-card-heading p, .form-section > p { margin: 0; color: var(--text-muted); }
.section-kicker { color: var(--primary); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .82rem; text-decoration: none; }
.client-id { padding: 7px 11px; color: var(--text-muted); background: var(--surface-soft); border-radius: 8px; font-size: .76rem; }
.client-table { margin: 0 !important; }
.client-table thead th { padding-block: 13px; }
.client-table td:first-child strong, .client-table td:first-child small { display: block; }
.client-table td:first-child small { margin-top: 3px; color: var(--text-muted); font-size: .75rem; }
.client-status { display: inline-flex; padding: 5px 9px; border-radius: 30px; color: #697386; background: #eef1f5; font-size: .7rem; font-weight: 700; }
.client-status.is-active { color: #087f5b; background: #dff8ef; }
.client-list-card div.dt-container { padding: 0 24px 20px; }
.client-list-card div.dt-container div.dt-layout-row:first-child { margin: 15px 0; }
.client-list-card .dt-search input { min-width: 230px; border: 1px solid var(--border-color) !important; border-radius: 9px; }
.client-tabs { display: flex; gap: 5px; padding: 0 28px; border-bottom: 1px solid var(--border-color); overflow-x: auto; }
.client-tabs li { flex: 1; min-width: 120px; }
.client-tabs button { width: 100%; padding: 15px 12px; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); background: transparent; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.client-tabs button i { margin-right: 7px; }
.client-tabs button.active { color: var(--primary); border-color: var(--primary); }
.client-tabs button:disabled { opacity: .4; }
.form-section { padding: 26px 28px; border-bottom: 1px solid var(--border-color); }
.form-section h3 { margin: 0 0 18px; font-size: 1rem; }
.client-form label, .bling-form label { display: block; margin-bottom: 7px; color: var(--text-muted); font-size: .75rem; font-weight: 650; }
.client-form .form-control, .client-form .form-select, .bling-form .form-control { min-height: 43px; border-color: var(--border-color); border-radius: 9px; }
.form-switch-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 9px; }
.form-switch-line small { display: block; color: var(--text-muted); font-size: .7rem; }
.section-title-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-title-action h3 { margin: 0; }
.client-form-actions, .bling-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 28px; background: var(--surface-soft); }
.empty-state { width: 100%; padding: 38px 15px; color: var(--text-muted); text-align: center; border: 1px dashed var(--border-color); border-radius: 11px; }
.empty-state i { display: block; margin-bottom: 8px; font-size: 1.6rem; }
.empty-state p { margin: 0; }
.bling-tab-content:has(.tab-pane:not(.active)) { display: none; }
.bling-section { border-bottom: 0; }
.bling-form { margin-bottom: 22px; padding: 20px; background: var(--surface-soft); border: 1px solid var(--border-color); border-radius: 12px; }
.bling-form-actions { margin: 18px -20px -20px; padding: 15px 20px; border-radius: 0 0 12px 12px; }
.bling-grid { display: grid; gap: 12px; }
.bling-card { display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--border-color); border-radius: 12px; }
.bling-logo { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: white; background: #18b6a4; border-radius: 11px; font-size: 1.2rem; font-weight: 800; }
.bling-card-body { flex: 1; min-width: 0; }
.bling-card-title { display: flex; align-items: center; gap: 10px; }
.bling-card h4 { margin: 0; font-size: .9rem; }
.bling-card p { margin: 6px 0; color: var(--text-muted); font-size: .73rem; }
.bling-meta { display: flex; gap: 17px; color: var(--text-muted); font-size: .72rem; }
.bling-meta span { display: inline-flex; align-items: center; gap: 5px; }
.module-data-table { margin: 0 !important; }
.installment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 13px; }
.installment-item { padding: 13px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.installment-item > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.stock-pill { display: flex; min-width: 130px; flex-direction: column; padding: 10px 15px; color: var(--primary); background: #eef3ff; border-radius: 11px; text-align: right; }
.stock-pill small { color: var(--muted); font-size: .68rem; }
.stock-pill strong { font-size: 1.15rem; }
.movement-type { display: inline-flex; padding: 4px 8px; border-radius: 20px; font-size: .7rem; font-weight: 700; }
.movement-type.in { color: #087f5b; background: #dff8ef; }
.movement-type.out { color: #b42335; background: #ffe8eb; }
.entry-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.xml-upload-card, .manual-method { display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.xml-upload-card > div, .manual-method > div { flex: 1; }
.xml-upload-card strong, .manual-method strong, .xml-upload-card small, .manual-method small { display: block; }
.xml-upload-card small, .manual-method small { color: var(--muted); font-size: .7rem; }
.entry-method-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: var(--primary); background: #eef3ff; border-radius: 10px; font-size: 1.15rem; }
.xml-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 28px 0; padding: 12px 15px; color: #087f5b; background: #e8faf3; border-radius: 10px; }
.entry-items { display: grid; gap: 12px; }
.entry-item { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(110px, .7fr)) 38px; align-items: end; gap: 10px; padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.entry-item-main small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.entry-remove { margin-bottom: 3px; color: var(--red); }
.source-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--surface-soft); border-radius: 20px; font-size: .69rem; font-weight: 700; }
.supplier-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.supplier-check { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 12px 14px; cursor: pointer; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.supplier-check:hover { border-color: #b9caff; }
.supplier-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.supplier-check > span { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; color: transparent; background: var(--surface); border: 1px solid #cbd3e1; border-radius: 6px; }
.supplier-check input:focus-visible + span { outline: 3px solid rgba(35,86,216,.3); outline-offset: 2px; }
.supplier-check input:checked + span { color: white; background: var(--primary); border-color: var(--primary); }
.supplier-check strong, .supplier-check small { display: block; }
.supplier-check strong { font-size: .78rem; }
.supplier-check small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.readonly-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: #5f6878; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: .72rem; font-weight: 750; }
.entry-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.entry-detail-summary article { min-width: 0; padding: 15px 18px; background: var(--surface); }
.entry-detail-summary small, .entry-detail-summary strong { display: block; }
.entry-detail-summary small { margin-bottom: 4px; color: var(--muted); font-size: .67rem; }
.entry-detail-summary strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.entry-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem !important; }
.entry-detail-items { display: grid; gap: 12px; }
.entry-detail-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.entry-detail-product { display: grid; grid-template-columns: 42px minmax(220px, 1.5fr) repeat(4, minmax(110px, .6fr)); align-items: center; gap: 13px; padding: 14px 16px; background: var(--surface); }
.entry-detail-product small, .entry-detail-product strong { display: block; }
.entry-detail-product small { color: var(--muted); font-size: .66rem; }
.entry-detail-product strong { margin-top: 2px; font-size: .77rem; }
.entry-item-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--primary); background: #eef3ff; border-radius: 9px; }
.entry-detail-positions { display: grid; gap: 1px; padding: 1px; background: var(--line); border-top: 1px solid var(--line); }
.entry-detail-positions > div { display: grid; grid-template-columns: 24px minmax(220px, 1fr) 130px 130px; align-items: center; gap: 10px; padding: 11px 16px; background: var(--surface-soft); }
.entry-detail-positions > div > i { color: var(--primary); }
.entry-detail-positions span small, .entry-detail-positions span strong { display: block; }
.entry-detail-positions span small { color: var(--muted); font-size: .65rem; }
.entry-detail-positions span strong { font-size: .73rem; }
.permissions-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 28px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.permissions-toolbar strong, .permissions-toolbar small { display: block; }
.permissions-toolbar small { color: var(--muted); font-size: .72rem; }
.permission-toolbar-actions { display: flex; gap: 8px; }
.permission-sections { display: grid; gap: 16px; padding: 22px 28px 28px; }
.permission-section { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.permission-section-title { display: flex; align-items: center; gap: 12px; padding: 15px 17px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.permission-section-title > div { flex: 1; }
.permission-section-title h3, .permission-section-title p { margin: 0; }
.permission-section-title h3 { font-size: .88rem; }
.permission-section-title p { color: var(--muted); font-size: .69rem; }
.permission-section-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; color: var(--primary); background: #e9efff; border-radius: 9px; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); }
.permission-option { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 11px 14px; cursor: pointer; background: var(--surface); transition: background 150ms ease; }
.permission-option:hover, .permission-option.is-checked { background: #f5f8ff; }
.permission-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.permission-check { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; color: transparent; border: 1px solid #cbd3e1; border-radius: 6px; }
.permission-option input:focus-visible + .permission-check { outline: 3px solid rgba(35,86,216,.3); outline-offset: 2px; }
.permission-option input:checked + .permission-check { color: white; background: var(--primary); border-color: var(--primary); }
.permission-option input:disabled + .permission-check { opacity: .7; }
.permission-copy { min-width: 0; }
.permission-copy strong, .permission-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permission-copy strong { font-size: .78rem; }
.permission-copy small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.form-section-hint { margin: -10px 0 18px; color: var(--muted); font-size: .76rem; }
.bling-store-summary { display: flex; min-width: 105px; flex-direction: column; padding: 9px 14px; color: var(--primary); background: #eef3ff; border-radius: 11px; text-align: right; }
.bling-store-summary strong { font-size: 1.15rem; }
.bling-store-summary small { color: var(--muted); font-size: .68rem; }
.bling-account-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; padding: 18px 28px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.bling-account-strip article { display: flex; align-items: center; gap: 11px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.bling-account-strip article > div { flex: 1; min-width: 0; }
.bling-account-strip strong, .bling-account-strip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bling-account-strip strong { font-size: .77rem; }
.bling-account-strip small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.bling-account-strip small i { margin-right: 4px; }
.operation-inline { display: flex; max-width: 720px; gap: 10px; }
.operation-inline .format-select { max-width: 130px; }
.picking-actions { display: flex; gap: 9px; }
.picking-actions .form-select { min-width: 145px; }
.picking-history { margin-top: 18px; padding: 0; overflow: hidden; }
.picking-history .table { margin-bottom: 0; }
.entry-positions { grid-column: 1 / -1; padding: 13px; background: #eef3ff; border-radius: 10px; }
.entry-positions-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.entry-positions-title small { flex: 1; color: var(--muted); font-size: .69rem; }
.position-allocation { display: grid; grid-template-columns: minmax(240px, 1fr) 170px 38px; gap: 9px; margin-top: 8px; }
.print-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.print-choice { display: flex; flex-direction: column; gap: 5px; padding: 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.print-choice:hover { color: var(--primary); background: #f5f8ff; border-color: #b9caff; }
.print-choice > i { color: var(--primary); font-size: 1.4rem; }
.print-choice small { color: var(--muted); font-size: .7rem; }
.conference-result { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 22px; margin: 20px 28px 28px; padding: 20px; background: #e8faf3; border: 1px solid #b8ebd8; border-radius: 12px; }
.conference-product { display: flex; align-items: center; gap: 13px; }
.conference-product h3, .conference-product p { margin: 0; }
.conference-product small, .conference-product p { color: var(--muted); }
.scan-input { min-height: 52px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; letter-spacing: .04em; }
.stock-map-filter { padding: 0; overflow: hidden; }
.stock-period { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--primary); background: #eef3ff; border-radius: 9px; font-size: .75rem; font-weight: 700; }
.stock-filter-grid { display: grid; grid-template-columns: minmax(180px,1.35fr) repeat(2,minmax(170px,1fr)) minmax(135px,.55fr) auto; align-items: end; gap: 13px; }
.stock-filter-actions { display: flex; gap: 8px; }
.stock-map-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 16px 0; }
.stock-map-metrics article { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.stock-map-metrics span,.stock-map-metrics strong,.stock-map-metrics small { display: block; }
.stock-map-metrics span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.stock-map-metrics span i { margin-right: 6px; color: var(--primary); }
.stock-map-metrics strong { margin: 6px 0 1px; font-size: 1.35rem; }
.stock-map-metrics small { color: var(--muted); font-size: .68rem; }
.stock-map-table { overflow: visible; }
.coverage-badge { display: inline-flex; padding: 5px 9px; color: #087f5b; background: #dff8ef; border-radius: 20px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.coverage-badge.is-low { color: #9a6700; background: #fff3cd; }
.coverage-badge.is-neutral { color: #697386; background: #eef1f5; }
.stock-position-code { display: inline-flex; padding: 5px 8px; color: var(--primary); background: #eef3ff; border-radius: 7px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-weight: 750; }
.stock-map-table td:nth-child(2) small { display: block; margin-top: 4px; color: var(--muted); white-space: nowrap; }
.stock-map-note { display: flex; gap: 7px; margin: 14px 4px 0; color: var(--muted); font-size: .72rem; }
.delivery-filter { padding: 0; overflow: hidden; }
.delivery-filter-grid { display: grid; grid-template-columns: minmax(210px,1.3fr) 150px 150px minmax(160px,.8fr) auto; align-items: end; gap: 13px; }
.delivery-table { overflow: visible; }
.delivery-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: .67rem; white-space: nowrap; }
.delivery-status { display: inline-flex; padding: 5px 9px; border-radius: 20px; font-size: .69rem; font-weight: 700; white-space: nowrap; }
.delivery-status.is-waiting { color: #697386; background: #eef1f5; }
.delivery-status.is-progress { color: #9a6700; background: #fff3cd; }
.delivery-status.is-ready { color: #087f5b; background: #dff8ef; }
.delivery-status.is-closed { color: #2256d8; background: #e9efff; }
.delivery-status.is-late { color: #b42335; background: #ffe8eb; }
.delivery-status.is-neutral { color: #697386; background: #eef1f5; }
.delivery-heading-actions, .delivery-row-actions { display: flex; align-items: center; gap: 8px; }
.delivery-contract-strip { display: flex; align-items: center; gap: 13px; margin: 16px 0 0; padding: 14px 17px; color: var(--primary); background: #eef3ff; border: 1px solid #dbe5ff; border-radius: 12px; }
.delivery-contract-strip > i { font-size: 1.35rem; }
.delivery-contract-strip strong, .delivery-contract-strip small { display: block; }
.delivery-contract-strip small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.delivery-secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.delivery-secondary-grid .panel-card { min-width: 0; overflow: hidden; }
.delivery-secondary-grid .client-card-heading { padding: 20px 22px; }
.sla-exp { display: block; margin-top: 5px; font-size: .67rem; white-space: nowrap; }
.closure-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 22px 0; }
.closure-summary > div { padding: 14px; border: 1px solid #bbb; }
.closure-summary span, .closure-summary strong { display: block; }
.closure-summary span { margin-bottom: 4px; color: #555; font-size: .7rem; }
.closure-total { font-size: 1.05rem; font-weight: 800; }
.closure-cancelled { position: fixed; top: 42%; left: 16%; z-index: 10; color: rgba(180,20,35,.17); font-size: 7rem; font-weight: 900; letter-spacing: .08em; transform: rotate(-25deg); pointer-events: none; }
.print-document { max-width: 980px; margin: 0 auto; padding: 34px; background: white; color: #111; }
.print-document > header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid #111; }
.print-document h1 { margin: 2px 0; font-size: 1.8rem; }
.print-document h2 { margin: 24px 0 12px; font-size: 1.15rem; }
.print-order { margin-bottom: 18px; padding: 13px; border: 1px solid #bbb; break-inside: avoid; }
.print-order > div { display: flex; justify-content: space-between; margin-bottom: 9px; }
.print-document table { width: 100%; border-collapse: collapse; }
.print-document th, .print-document td { padding: 7px; border: 1px solid #bbb; text-align: left; }
.print-document footer { margin-top: 25px; color: #555; font-size: .72rem; }

/* Coletor móvel de conferência */
.collector-body { min-height: 100dvh; margin: 0; color: #eef4ff; background: #0c1425; }
.collector-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left)); background: rgba(12,20,37,.96); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.collector-brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.collector-brand > span:last-child, .collector-brand strong, .collector-brand small { display: block; }
.collector-brand strong { font-size: 1rem; letter-spacing: -.02em; }
.collector-brand small { color: #9baccc; font-size: .65rem; }
.collector-user { display: flex; align-items: center; gap: 12px; color: #aebbd4; font-size: .72rem; }
.collector-user > span { display: inline-flex; align-items: center; gap: 6px; }
.collector-user > a { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: rgba(255,255,255,.08); border-radius: 10px; text-decoration: none; }
.collector-main { display: grid; width: min(760px, 100%); gap: 13px; margin: 0 auto; padding: 16px max(14px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.collector-picking-bar, .collector-progress, .collector-next, .collector-stage, .collector-confirm { background: #151f34; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.collector-picking-bar { padding: 15px; }
.collector-picking-bar label { display: block; margin-bottom: 7px; color: #9facc4; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.collector-picking-bar .form-select { min-height: 48px; color: #f7f9ff; background-color: #0f192b; border-color: rgba(255,255,255,.13); }
.collector-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px; }
.collector-progress div small, .collector-progress div strong { display: block; }
.collector-progress div small { color: #91a0bc; font-size: .67rem; }
.collector-progress div strong { margin-top: 2px; font-size: .92rem; }
.collector-progress > div:nth-child(2) { text-align: right; }
.collector-progress-track { grid-column: 1 / -1; overflow: hidden; height: 6px; background: #0b1425; border-radius: 20px; }
.collector-progress-track span { display: block; height: 100%; background: linear-gradient(90deg,#3c72f1,#39d6a2); border-radius: inherit; transition: width 250ms ease; }
.collector-next { display: flex; align-items: center; gap: 12px; padding: 14px 15px; }
.collector-next-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: #63e6be; background: rgba(57,214,162,.12); border-radius: 11px; }
.collector-next div { min-width: 0; }
.collector-next small, .collector-next strong, .collector-next div > span { display: block; }
.collector-next small { color: #8f9db7; font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; }
.collector-next strong { margin: 2px 0; color: #63e6be; font-size: .86rem; }
.collector-next div > span { overflow: hidden; color: #c1cbe0; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.collector-stage { overflow: hidden; }
.collector-stepper { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; padding: 14px 15px; background: #111b2e; border-bottom: 1px solid rgba(255,255,255,.08); }
.collector-stepper > div { display: flex; align-items: center; justify-content: center; gap: 6px; color: #6f7d98; }
.collector-stepper > div span { display: grid; width: 25px; height: 25px; place-items: center; background: rgba(255,255,255,.06); border-radius: 50%; font-size: .64rem; font-weight: 800; }
.collector-stepper > div strong { font-size: .66rem; }
.collector-stepper > div.active { color: white; }
.collector-stepper > div.active span { background: #3d72ed; box-shadow: 0 0 0 5px rgba(61,114,237,.14); }
.collector-stepper > div.done { color: #58dbb0; }
.collector-stepper > div.done span { background: rgba(57,214,162,.14); }
.collector-stepper > i { color: #495770; font-size: .65rem; }
.collector-camera { position: relative; overflow: hidden; aspect-ratio: 4 / 3; min-height: 280px; background: #050a12; }
.collector-camera video { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.collector-camera video.is-running { opacity: 1; }
.collector-camera-frame { position: absolute; inset: 20% 11%; pointer-events: none; }
.collector-camera-frame::before, .collector-camera-frame::after, .collector-camera-frame span::before, .collector-camera-frame span::after { position: absolute; width: 38px; height: 38px; content: ''; border-color: #63e6be; border-style: solid; filter: drop-shadow(0 0 5px rgba(99,230,190,.45)); }
.collector-camera-frame::before { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 10px 0 0; }
.collector-camera-frame::after { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 10px 0 0; }
.collector-camera-frame span::before { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 10px; }
.collector-camera-frame span::after { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 10px; }
.collector-camera-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 30px; color: #7d8ba6; text-align: center; }
.collector-camera-empty i { margin-bottom: 10px; font-size: 2rem; }
.collector-camera-empty strong, .collector-camera-empty small { display: block; }
.collector-camera-empty strong { color: #c1cbe0; font-size: .82rem; }
.collector-camera-empty small { margin-top: 4px; font-size: .67rem; }
.collector-camera-status { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 9px 12px; color: white; background: rgba(5,10,18,.76); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; font-size: .7rem; font-weight: 700; text-align: center; backdrop-filter: blur(8px); }
.collector-actions { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; padding: 13px; }
.collector-actions .btn { min-height: 46px; }
.collector-actions .btn-soft { color: #dbe4f7; background: #202c43; border-color: rgba(255,255,255,.1); }
.collector-actions .btn-soft.active { color: #fff4bf; background: #5e4b14; }
.collector-manual { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; padding: 0 13px 13px; }
.collector-manual label { margin-bottom: 5px; color: #98a6be; font-size: .65rem; }
.collector-manual .form-control { color: white; background: #0e182a; border-color: rgba(255,255,255,.13); }
.collector-readings { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
.collector-readings article { min-width: 0; padding: 13px 15px; background: #111b2e; }
.collector-readings span, .collector-readings strong { display: block; }
.collector-readings span { color: #8593ad; font-size: .64rem; }
.collector-readings span i { margin-right: 5px; color: #5d8cff; }
.collector-readings strong { overflow: hidden; margin-top: 3px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.collector-confirm { padding: 26px 18px 18px; text-align: center; }
.collector-success-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 12px; place-items: center; color: #63e6be; background: rgba(57,214,162,.13); border-radius: 18px; font-size: 1.7rem; }
.collector-confirm > small { color: #63e6be; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.collector-confirm h1 { margin: 7px 0 3px; font-size: 1.25rem; }
.collector-confirm > p { color: #a8b5cd; font-size: .78rem; }
.collector-confirm form { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.collector-confirm form > label { color: #9daac1; font-size: .7rem; font-weight: 700; }
.collector-confirm form > small { color: #8492ab; font-size: .66rem; text-align: center; }
.collector-quantity { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; }
.collector-quantity button { color: white; background: #243149; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; }
.collector-quantity input { min-height: 58px; color: white; background: #0e182a; border-color: rgba(255,255,255,.14); font-size: 1.4rem; font-weight: 800; text-align: center; }
.collector-confirm-button { min-height: 54px; margin-top: 4px; font-weight: 800; }
.collector-confirm form > .btn-soft { min-height: 45px; color: #d3dced; background: #202c43; border-color: rgba(255,255,255,.1); }
.collector-message { position: fixed; right: 14px; bottom: max(18px,env(safe-area-inset-bottom)); left: 14px; z-index: 50; display: flex; align-items: center; width: min(620px,calc(100% - 28px)); gap: 11px; margin-inline: auto; padding: 14px 16px; color: white; border-radius: 13px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.collector-message.is-success { background: #087f5b; }
.collector-message.is-error { background: #a42638; }
.collector-message > i { font-size: 1.25rem; }
.collector-message strong, .collector-message span { display: block; }
.collector-message strong { font-size: .79rem; }
.collector-message span { margin-top: 2px; font-size: .68rem; opacity: .88; }

/* Etiqueta imprimível da posição */
.position-label-body { min-height: 100vh; margin: 0; padding: 24px; color: #101318; background: #e9edf3; }
.position-label-toolbar { display: flex; justify-content: center; gap: 9px; margin-bottom: 18px; }
.position-label-sheet { display: grid; grid-template-columns: minmax(0,1fr) 270px; width: min(860px,100%); min-height: 360px; margin: 0 auto; padding: 28px; background: white; border: 3px solid #111; }
.position-label-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 12px 28px 12px 8px; border-right: 2px solid #111; }
.position-label-copy small { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.position-label-copy h1 { margin: 8px 0; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: clamp(2.8rem,8vw,5.4rem); font-weight: 950; letter-spacing: -.07em; line-height: .95; overflow-wrap: anywhere; }
.position-label-copy h2 { margin: 10px 0 4px; font-size: 1.45rem; }
.position-label-copy p { margin: 0; color: #4b5563; font-size: .95rem; }
.position-label-qr { display: grid; place-items: center; padding-left: 25px; }
.position-label-qr svg { display: block; width: 100%; height: auto; }
.position-label-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 20px; padding-top: 12px; border-top: 1px solid #999; font-size: .68rem; }

@media (max-width: 767.98px) {
    .client-card-heading, .section-title-action { align-items: stretch; flex-direction: column; }
    .client-card-heading { padding: 20px; }
    .client-tabs { padding-inline: 14px; }
    .form-section { padding: 22px 18px; }
    .client-form-actions { position: sticky; bottom: 0; z-index: 3; padding: 14px 18px; }
    .bling-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .entry-methods { grid-template-columns: 1fr; padding: 18px; }
    .xml-upload-card { align-items: flex-start; flex-wrap: wrap; }
    .entry-item { grid-template-columns: 1fr 1fr; }
    .entry-item-main { grid-column: 1 / -1; }
    .entry-detail-summary { grid-template-columns: 1fr 1fr; }
    .entry-detail-product { grid-template-columns: 38px 1fr; }
    .entry-detail-product > div:nth-child(n+3) { padding-top: 8px; border-top: 1px solid var(--line); }
    .entry-detail-positions > div { grid-template-columns: 22px 1fr; }
    .entry-detail-positions > div > span:nth-child(n+3) { padding-top: 6px; }
    .xml-summary { align-items: flex-start; flex-direction: column; margin-inline: 18px; }
    .permissions-toolbar, .permission-section-title { align-items: flex-start; flex-direction: column; }
    .permissions-toolbar { padding-inline: 18px; }
    .permission-sections { padding-inline: 18px; }
    .permission-toolbar-actions { width: 100%; }
    .permission-toolbar-actions .btn { flex: 1; }
    .permission-grid { grid-template-columns: 1fr; }
    .bling-account-strip { grid-template-columns: 1fr; padding-inline: 18px; }
    .operation-inline, .picking-actions { align-items: stretch; flex-direction: column; }
    .operation-inline .format-select { max-width: none; }
    .position-allocation, .conference-result, .print-choice-grid { grid-template-columns: 1fr; }
    .entry-positions-title { align-items: flex-start; flex-direction: column; }
    .stock-filter-grid, .stock-map-metrics { grid-template-columns: 1fr; }
    .delivery-filter-grid { grid-template-columns: 1fr; }
    .delivery-heading-actions { align-items: stretch; flex-direction: column; }
    .delivery-secondary-grid, .closure-summary { grid-template-columns: 1fr; }
    .stock-filter-actions .btn { flex: 1; }
    .collector-user > span { display: none; }
    .collector-manual { grid-template-columns: 1fr; }
    .collector-actions { grid-template-columns: 1fr 1fr; }
    .collector-main-action { grid-column: 1 / -1; }
    .position-label-sheet { grid-template-columns: 1fr; }
    .position-label-copy { padding: 0 0 20px; border-right: 0; border-bottom: 2px solid #111; }
    .position-label-qr { padding: 20px 0 0; }
}

@media print {
    .no-print { display: none !important; }
    .print-document { max-width: none; padding: 0; }
    .position-label-body { padding: 0; background: white; }
    .position-label-sheet { width: 100%; min-height: 0; margin: 0; break-inside: avoid; }
    @page { margin: 12mm; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .entry-item { grid-template-columns: 2fr 1fr 1fr; }
    .entry-item > :nth-child(4), .entry-item > :nth-child(5) { grid-row: 2; }
    .stock-filter-grid { grid-template-columns: 1fr 1fr; }
    .delivery-filter-grid { grid-template-columns: 1fr 1fr; }
    .stock-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .stock-map-metrics { grid-template-columns: 1fr 1fr; }
}
