:root {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
    --portal-bg: #f4f7fe;
    --portal-surface: rgba(22, 22, 22, 0.78);
    --portal-surface-strong: #161616;
    --portal-line: rgba(255, 255, 255, 0.1);
    --portal-line-strong: rgba(255, 255, 255, 0.18);
    --portal-text: #f7efe5;
    --portal-muted: #cabfb3;
    --portal-accent: #ff6a00;
    --portal-accent-strong: #ff8f1f;
    --portal-accent-soft: #ffd0ad;
    --portal-sidebar: #d9dfee;
    --portal-sidebar-text: #6c7999;
    --portal-sidebar-muted: #6c7999;
    --portal-success: #f8b24f;
    --portal-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--portal-text);
    font-family: var(--font-sans);
}

body.auth-page-body {
    background:
        radial-gradient(circle at top left, rgba(65, 123, 214, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(36, 79, 134, 0.18), transparent 26%),
        linear-gradient(180deg, #061224 0%, #0b1b35 54%, #102546 100%);
}

body.portal-page-body {
    background: #f4f7fe;
    font-size: var(--portal-user-text-size, 16px);
}

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

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px);
}

.auth-panel {
    position: relative;
    overflow: hidden;
    padding: 4rem;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.4)),
        linear-gradient(135deg, #0b1830 0%, #10213f 45%, #16305b 100%);
}

.auth-panel::before,
.auth-panel::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
}

.auth-panel::before {
    inset: 8% auto auto -6%;
    width: 18rem;
    height: 18rem;
    background: rgba(76, 137, 226, 0.22);
}

.auth-panel::after {
    inset: auto 4% 12% auto;
    width: 22rem;
    height: 22rem;
    background: rgba(36, 79, 134, 0.2);
}

.auth-copy {
    position: relative;
    max-width: 34rem;
}

.auth-copy::after {
    content: 'SMASH';
    position: absolute;
    right: -1rem;
    bottom: -4rem;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8fb8ff;
}

.auth-copy h1,
.portal-body h1 {
    margin: 0;
    line-height: 0.95;
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -0.05em;
}

.auth-copy p {
    margin: 1.5rem 0 0;
    max-width: 28rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--portal-muted);
}

.auth-card {
    margin: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 2rem;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.auth-card-inner,
.portal-main {
    width: 100%;
}

.auth-card h2 {
    margin: 0;
    font-size: 2rem;
}

.auth-card p {
    margin: 0.75rem 0 0;
    color: var(--portal-muted);
    line-height: 1.6;
}

.demo-note,
.flash-message {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
}

.demo-note {
    border: 1px dashed rgba(248, 178, 79, 0.26);
    background: rgba(248, 178, 79, 0.08);
    color: var(--portal-success);
}

.flash-message {
    border: 0;
    background: rgb(32 107 136 / 8%);
    color: #29487f;
    border-radius: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-card .flash-message {
    color: #ffffff;
}

.flash-message::before {
    content: "i";
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(41, 72, 127, 0.28);
    color: #29487f;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.auth-activity-strip {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auth-activity-strip span {
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff4e8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-grid {
    margin-top: 1.75rem;
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field label,
.checkbox-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--portal-line);
    border-radius: 1rem;
    color: var(--portal-text);
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field input:focus {
    outline: none;
    border-color: rgba(76, 137, 226, 0.65);
    box-shadow: 0 0 0 4px rgba(76, 137, 226, 0.16);
}

.error-text {
    color: #ff9d59;
    font-size: 0.88rem;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--portal-muted);
}

.checkbox-label input {
    accent-color: var(--portal-accent);
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button-primary {
    color: #f5f8ff;
    font-weight: 800;
    background: #272727;
    box-shadow: none;
}

.button-secondary {
    color: var(--portal-sidebar-text);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-primary:hover {
    background: #1f1f1f;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 58px 230px minmax(0, 1fr);
    transition: grid-template-columns 240ms ease;
}

.portal-shell.is-collapsed,
.portal-shell.nav-panel-collapsed {
    grid-template-columns: 58px 0 minmax(0, 1fr);
}

.portal-sidebar-initial-collapsed .portal-shell {
    grid-template-columns: 58px 0 minmax(0, 1fr);
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0;
    overflow: visible;
    color: #abb6c5;
    background: #1a2b44;
    box-shadow: 1px 0 30px rgba(22, 39, 73, 0.42);
    border-right: 1px solid #c6c6c7;
    transition: padding 240ms ease;
    z-index: 160;
}

.portal-brand {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0;
    border-bottom: 1px solid rgba(171, 182, 197, 0.18);
    position: relative;
}

.portal-brand-logo {
    width: 28px;
    max-width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.portal-nav p,
.portal-note p {
    color: #9eabc0;
}

.portal-nav {
    margin-top: 0;
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: visible;
    position: relative;
    min-height: 0;
    scrollbar-width: none;
}

.portal-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.portal-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    background: linear-gradient(180deg, rgba(26,43,68,0), rgba(26,43,68,.92) 78%, rgba(26,43,68,1));
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.portal-nav[data-can-scroll="1"][data-scroll-bottom="0"]::after {
    opacity: 1;
}

.portal-nav a,
.portal-nav .is-active {
    width: 100%;
    min-height: 42px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: #abb6c5;
    position: relative;
}

.portal-nav a:hover {
    color: #edf4ff;
    background: rgba(255, 255, 255, 0.08);
}

.portal-nav a:hover .portal-nav-icon {
    color: #edf4ff;
}

.portal-nav a.is-active,
.portal-nav .is-active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 3px 0 0 #83b4ff;
}

.portal-nav-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #abb6c5;
}

.portal-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-nav .is-active .portal-nav-icon {
    color: #ffffff;
}

.portal-nav-label {
    display: none;
}

.portal-note {
    display: none;
}

.portal-sidebar-footer {
    margin-top: auto;
    padding: 6px 0 8px;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 100%;
}

.portal-sidebar-separator {
    width: calc(100% - 12px);
    height: 1px;
    background: rgba(171, 182, 197, 0.18);
}

.portal-sidebar-action {
    border: 0;
    background: transparent;
    color: #abb6c5;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.portal-sidebar-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-sidebar-action:hover {
    color: #edf4ff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.portal-sidebar-toggle {
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #edf4ff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.portal-sidebar-toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .42s ease;
}

.portal-shell.is-collapsed .portal-brand {
    padding: 0;
    justify-content: center;
}

.portal-shell.is-collapsed .portal-brand-copy,
.portal-shell.is-collapsed .portal-note,
.portal-shell.is-collapsed .portal-nav-label {
    display: none;
}

.portal-shell.is-collapsed .portal-brand-logo {
    width: 28px;
    height: 28px;
    max-width: 28px;
}

.portal-shell.is-collapsed .portal-nav {
    padding: 8px 0;
    overflow: visible;
}

.portal-shell.is-collapsed .portal-nav a {
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 10px 0;
    position: relative;
}

.portal-shell.is-collapsed .portal-sidebar-toggle {
    width: 32px;
}

.portal-nav a {
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 10px 0;
    position: relative;
}

.portal-nav a .portal-nav-icon {
    margin: 0 auto;
}

.portal-shell.is-collapsed .portal-sidebar-toggle-icon {
    transform: rotate(180deg);
}

.portal-hover-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    background: #1e3f8a;
    color: #eef4ff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    padding: 8px 10px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 430;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.portal-hover-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.portal-content {
    padding: 1.5rem;
    background: var(--portal-bg);
}

.nav-panel {
    background: #ffffff;
    min-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 120;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    box-shadow: 1px 1px 3px rgb(39 70 131 / 20%);
    transition: width .28s ease, opacity .22s ease, transform .28s ease;
}

.nav-panel-head {
    padding: 16px 13px 12px;
    border-bottom: 1px solid #edf1f7;
    display: grid;
    gap: 12px;
}

.nav-panel-ai-search {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.nav-panel .search-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nav-panel-ai-search input {
    width: 100%;
    max-width: 100%;
    height: 36px;
    background: #f4f7fe;
    border: 0;
    box-shadow: none;
    padding: 0 12px 0 34px;
    border-radius: 10px;
    color: #374565;
    box-sizing: border-box;
    font-size: 14px;
}

.nav-panel-ai-search input:hover,
.nav-panel-ai-search input:focus {
    background: #e8eefb;
    color: #374565;
    outline: none;
    box-shadow: none;
}

.nav-panel-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #ffffff;
    box-sizing: border-box;
}

.nav-panel-shortcut {
    min-height: 54px;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    background: #f4f7fe;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 8px 8px;
    color: #374565;
    text-align: center;
    transition: background .18s ease, box-shadow .18s ease;
}

.nav-panel-shortcut:hover {
    background: #e8eefb;
    box-shadow: none;
}

.nav-panel-shortcut svg {
    width: 20px;
    height: 20px;
    stroke: #51617b;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.nav-panel-shortcut:hover svg {
    transform: scale(1.1);
}

.nav-panel-shortcut span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.nav-panel-groups {
    overflow-y: auto;
    padding: 12px 6px 14px;
    scrollbar-width: thin;
    scrollbar-color: #b7c1d0 transparent;
}

.nav-panel-groups::-webkit-scrollbar {
    width: 6px;
}

.nav-panel-groups::-webkit-scrollbar-thumb {
    background: #b7c1d0;
    border-radius: 999px;
}

.nav-panel-group + .nav-panel-group {
    margin-top: 18px;
}

.nav-panel-group-head {
    width: 100%;
    margin-bottom: 8px;
    padding: 0 12px 0 6px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

.nav-panel-group-head span {
    color: #324d76;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.nav-panel-group-head svg {
    width: 14px;
    height: 14px;
    stroke: #9eb0c7;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .28s ease;
}

.nav-panel-group.is-active .nav-panel-group-head svg {
    transform: rotate(90deg);
}

.nav-panel-group-items.nav-panel-sidebar-links {
    display: none;
    overflow: hidden;
}

.nav-panel-group.is-active .nav-panel-group-items.nav-panel-sidebar-links {
    display: grid;
}

.nav-panel-sidebar-links {
    gap: 2px;
}

.nav-panel-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 0;
    color: #7c8aa0;
    font-size: 12px;
    transition: background .18s ease, color .18s ease;
    min-width: 0;
}

.nav-panel-nav-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7c8aa0;
    opacity: 1;
    visibility: visible;
}

.nav-panel-nav-link:hover {
    background: #eef3fb;
    color: #304568;
}

.nav-panel-nav-link:hover .nav-panel-nav-label {
    color: #304568;
    opacity: 1;
    visibility: visible;
}

.nav-panel-nav-link.active {
    color: #244f86;
    font-weight: 600;
}

.nav-panel-nav-link.active .nav-panel-nav-label {
    color: #244f86;
    opacity: 1;
    visibility: visible;
}

.nav-panel-sidebar-links .nav-panel-nav-link,
.nav-panel-sidebar-links .nav-panel-nav-label {
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-panel-sidebar-links .nav-panel-nav-link {
    color: #7c8aa0 !important;
}

.nav-panel-sidebar-links .nav-panel-nav-label {
    color: #7c8aa0 !important;
}

.nav-panel-sidebar-links .nav-panel-nav-link:hover,
.nav-panel-sidebar-links .nav-panel-nav-link:hover .nav-panel-nav-label {
    color: #304568 !important;
}

.nav-panel-sidebar-links .nav-panel-nav-link.active,
.nav-panel-sidebar-links .nav-panel-nav-link.active .nav-panel-nav-label {
    color: #244f86 !important;
}

.nav-panel-nav-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.nav-panel-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-panel-footer {
    padding: 10px 9px 12px;
    border-top: 1px solid #edf1f7;
    background: rgba(255, 255, 255, 0.85);
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
}

.nav-panel-user-chip {
    min-width: 0;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
    display: grid;
    gap: 4px;
}

.nav-panel-user-chip strong {
    color: #2b3674;
    font-size: 13px;
    line-height: 1.2;
}

.nav-panel-user-chip span {
    color: #6c7999;
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-shell.nav-panel-collapsed .nav-panel {
    width: 0;
    opacity: 0;
    transform: translateX(-14px);
    pointer-events: none;
    border-right-width: 0;
}

.portal-sidebar-initial-collapsed .nav-panel {
    width: 0;
    opacity: 0;
    transform: translateX(-14px);
    pointer-events: none;
    border-right-width: 0;
}

.topbar {
    min-height: 68px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--portal-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -1.5rem -1.5rem 0;
    padding: 6px 1.5rem;
    transition: box-shadow 0.18s ease;
}

.topbar.is-scrolled {
    box-shadow: 0 8px 18px rgba(39, 70, 131, 0.12);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 4px 6px;
    flex: 0 0 auto;
}

.portal-preferences-shell {
    width: min(92vw, 540px);
    max-width: 540px;
}

.manifest-booking-dialog-card.force-password-reset-shell {
    width: fit-content;
    max-width: min(92vw, 540px);
}

.force-password-reset-form {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(180px, 220px);
    align-items: start;
    gap: 0.85rem;
    padding: 40px;
}

.force-password-reset-form .user-dialog-field {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.force-password-reset-form .user-dialog-field span {
    color: #5c6980;
    font-size: 0.69rem;
    font-weight: 700;
}

.force-password-reset-form input {
    width: 100%;
    height: 2rem;
    min-width: 0;
    padding: 0.4rem 0.62rem;
    border: 1px solid #d2dae6;
    border-radius: 4px;
    background: #fff;
    color: #223041;
    font-size: 0.76rem;
}

.force-password-reset-fields {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.force-password-reset-requirements {
    display: grid;
    gap: 0.22rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f3f6fa;
    color: #445468;
    font-size: 0.78rem;
}

.force-password-reset-requirements strong {
    color: #27364a;
    font-size: 0.8rem;
}

.force-password-reset-actions {
    margin-top: 0;
    padding-top: 0;
    justify-content: flex-start;
}

.force-password-reset-submit {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.38rem 0.72rem;
    font-size: 0.74rem;
}

.portal-preferences-form {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem 1.1rem;
}

.portal-preferences-group {
    display: grid;
    gap: 0.55rem;
}

.portal-preferences-group-title {
    color: #314052;
    font-size: 0.74rem;
    font-weight: 700;
}

.portal-preferences-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.portal-preferences-option-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    padding: 0.8rem 0.75rem;
    border: 1px solid #d6dce7;
    border-radius: 10px;
    background: #fff;
    color: #314052;
    cursor: pointer;
    text-align: center;
}

.portal-preferences-option-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.portal-preferences-option-card:has(input:checked) {
    border-color: #244f86;
    background: #f3f7fe;
    box-shadow: inset 0 0 0 1px #244f86;
}

.portal-preferences-option-card strong {
    font-size: 0.74rem;
}

.portal-preferences-option-card small {
    color: #6b7788;
    font-size: 0.68rem;
}

.portal-preferences-width-diagram {
    width: 100%;
    max-width: 6.8rem;
    height: 3rem;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.22rem;
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
    background: #f4f7fb;
}

.portal-preferences-width-diagram span {
    display: block;
    height: 0.34rem;
    border-radius: 999px;
    background: #8aa5cf;
}

.portal-preferences-width-diagram-default span:nth-child(1) { width: 86%; }
.portal-preferences-width-diagram-default span:nth-child(2) { width: 100%; }
.portal-preferences-width-diagram-default span:nth-child(3) { width: 72%; }

.portal-preferences-width-diagram-narrow span:nth-child(1) { width: 70%; }
.portal-preferences-width-diagram-narrow span:nth-child(2) { width: 84%; }
.portal-preferences-width-diagram-narrow span:nth-child(3) { width: 58%; }

.portal-preferences-width-diagram-wide span:nth-child(1) { width: 92%; }
.portal-preferences-width-diagram-wide span:nth-child(2) { width: 100%; }
.portal-preferences-width-diagram-wide span:nth-child(3) { width: 84%; }

.portal-preferences-option-grid-text {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-preferences-text-sample {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 2.2rem;
    color: #244f86;
    font-weight: 800;
    line-height: 1;
}

.search-wrap {
    width: 280px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    border: 0;
    background: #f1f4fb;
    border-radius: 999px;
    height: 34px;
    padding: 0 14px 0 36px;
    color: #4a5568;
}

.search-ai-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    stroke: #4d6ea8;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    z-index: 2;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.icon-btn,
.icon-btn svg,
.icon-btn path {
    cursor: pointer;
}

.topbar-customize-btn,
.topbar-customize-btn svg,
.topbar-customize-btn path {
    cursor: pointer;
}

.icon-btn svg {
    width: 17px;
    height: 17px;
    stroke: #6a7896;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover {
    background: #eef3fb;
}

.user-chip {
    position: relative;
    padding-bottom: 6px;
    margin-bottom: -6px;
}

.user-chip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.user-popover-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    padding: 4px 9px 4px 10px;
}

.user-popover-top-copy {
    min-width: 0;
}

.user-popover-name,
.user-popover-email {
    margin: 0;
    line-height: 1.2;
}

.user-popover-name {
    color: #374565;
    font-size: 12px;
    font-weight: 700;
}

.user-popover-top .avatar {
    order: 3;
}

.user-popover-caret {
    order: 2;
}

.user-popover-caret {
    color: #73819b;
    font-size: 19px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-popover-links {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    min-width: 180px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid #d9dfeb;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(20, 34, 63, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    transform: translateY(2px);
}

.user-chip:hover .user-popover-links,
.user-chip:focus-within .user-popover-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.user-popover-link,
.user-popover-logout {
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #40506f;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.user-popover-link:hover,
.user-popover-logout:hover {
    background: #eef3fb;
    color: #2e4370;
}

.cv-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    padding: 0 30px 0 30px;
    min-height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3147a6, #2b429d);
    position: relative;
    margin: 0;
    overflow: visible;
}

.cv-tab {
    min-height: 36px;
    padding: 7px 19px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(244, 248, 255, 0.96);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.14s ease, color 0.14s ease;
}

.cv-tab svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.cv-tab:hover {
    background: rgba(18, 31, 91, 0.28);
    color: #bfe0ff;
}

.cv-tab-home + .cv-tab:hover,
.cv-tab-home + .cv-tab.active {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.cv-tab-home + .cv-tab:hover::before,
.cv-tab-home + .cv-tab.active::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    bottom: 0;
    width: 26px;
    background: inherit;
    border-radius: 999px 0 0 999px;
    z-index: -1;
}

.cv-tab.active {
    background: rgba(18, 31, 91, 0.38);
    color: #fff;
    box-shadow: none;
}

.cv-tab-home {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f79d6, #1f6dcb);
    border: 4px solid #fff;
    color: #fff;
    z-index: 2;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.manifest-columns-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dashboard-page {
    gap: 1.25rem;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-metric-card,
.dashboard-trend-card,
.dashboard-panel-card {
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(44, 76, 141, 0.08);
}

.dashboard-metric-card {
    padding: 1.1rem 1.15rem;
}

.dashboard-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-metric-head strong,
.dashboard-section-head h2,
.dashboard-section-head h3 {
    margin: 0;
    color: #384766;
}

.dashboard-metric-value,
.dashboard-panel-metric {
    margin-top: 0.7rem;
    color: #1f2940;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1;
}

.dashboard-metric-card p,
.dashboard-section-head p {
    margin: 0.5rem 0 0;
    color: #8694ad;
    font-size: 0.85rem;
}

.dashboard-trend-card {
    padding: 1.25rem;
}

.dashboard-chart-shell {
    margin-top: 0.85rem;
    border: 1px solid #e5ebf6;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.dashboard-chart {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-chart-grid-line,
.dashboard-chart-grid-vertical {
    stroke: rgba(111, 144, 204, 0.18);
    stroke-width: 1;
}

.dashboard-chart-line {
    fill: none;
    stroke: #284d9b;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-chart-area {
    fill: rgba(75, 137, 255, 0.2);
}

.dashboard-chart-node {
    fill: #fff;
    stroke: #284d9b;
    stroke-width: 4;
}

.dashboard-chart-label {
    fill: #8090af;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-panel-card {
    padding: 1rem 1.1rem;
    min-height: 190px;
}

.dashboard-panel-metric-small {
    font-size: 2rem;
}

.dashboard-activity-list {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.dashboard-activity-list li {
    display: grid;
    gap: 0.2rem;
    color: #5d6b84;
    font-size: 0.84rem;
}

.dashboard-activity-list li strong {
    color: #26344d;
}

.dashboard-activity-list li em {
    color: #8d9bb2;
    font-style: normal;
    font-size: 0.76rem;
}

.dashboard-activity-list .is-empty {
    color: #8d9bb2;
}

.dashboard-quick-links {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.dashboard-quick-links a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    background: #f4f7fe;
    color: #2f4b82;
    font-size: 0.86rem;
    font-weight: 700;
}

.user-management-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: start;
}

.user-management-form label,
.user-management-form .user-management-venues {
    min-width: 0;
}

.user-management-venues {
    grid-column: 1 / -1;
}

.manifest-table-input {
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid #d2dae6;
    border-radius: 4px;
    background: #fff;
    color: #223041;
    font-size: 0.74rem;
}

.manifest-table-multiselect {
    min-width: 12rem;
    min-height: 4.4rem;
}

.manifest-group-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.user-dialog-shell {
    max-width: 760px;
}

.user-dialog-body {
    padding: 1rem 1.15rem 1.1rem;
}

.user-dialog-field {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.user-dialog-field-wide {
    grid-column: 1 / -1;
}

.user-dialog-venue-list {
    display: grid;
    gap: 0.35rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.45rem 0.55rem;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #fff;
}

.user-dialog-venue-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: #334256;
    white-space: nowrap;
}

.user-dialog-venue-option input {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    width: 0.76rem;
    height: 0.76rem;
    margin: 0;
    transform: scale(0.72);
    transform-origin: center;
}

.user-dialog-venue-option span {
    white-space: nowrap;
}

.user-management-form label span,
.user-management-venues > span {
    color: #5c6980;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.user-management-form input,
.user-management-form select {
    width: 100%;
    height: 2rem;
    min-width: 0;
    padding: 0.4rem 0.62rem;
    border: 1px solid #d2dae6;
    border-radius: 4px;
    background: #fff;
    color: #223041;
    font-size: 0.76rem;
}

.user-venue-picker {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.user-venue-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.8rem;
    max-height: 13rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d2dae6;
    border-radius: 4px;
    background: #fff;
    overflow: auto;
}

.user-venue-checkbox {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    color: #273445;
    font-size: 0.72rem;
    cursor: pointer;
}

.user-venue-checkbox input {
    width: 0.72rem;
    height: 0.72rem;
    margin: 0;
    flex: 0 0 auto;
}

.user-venue-checkbox span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dialog-actions {
    gap: 0.55rem;
    margin-top: auto;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.user-dialog-button {
    min-width: 5.8rem;
    height: 1.95rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #c9d3e0;
    border-radius: 3px;
    background: #fff;
    color: #314052;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.user-dialog-button:hover {
    background: #f3f6fb;
    border-color: #aebccd;
    color: #223143;
}

.manifest-color-chip {
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 4px;
    background: var(--chip-color);
    flex: 0 0 auto;
}

.manifest-color-chip-row {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    gap: 0.45rem;
    width: max-content !important;
    min-width: max-content;
    color: #314052;
    font-size: 0.74rem;
    white-space: nowrap !important;
    line-height: 1;
}

.manifest-color-chip-row > span {
    flex: 0 0 auto;
    white-space: nowrap !important;
}

.manifest-color-chip-row > span:last-child {
    display: inline-flex;
    align-items: center;
}

.manifest-rule-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.manifest-rule-dialog-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem 0.85rem;
    align-items: start;
}

.manifest-rule-dialog-form > .user-dialog-field:nth-of-type(1),
.manifest-rule-dialog-form > .user-dialog-field:nth-of-type(2) {
    grid-column: span 3;
}

.manifest-rule-dialog-form > .user-dialog-field:nth-of-type(3),
.manifest-rule-dialog-form > .user-dialog-field:nth-of-type(4),
.manifest-rule-dialog-form > .user-dialog-field:nth-of-type(5) {
    grid-column: span 2;
}

.manifest-rule-dialog-form .user-dialog-field input[type='text'] {
    width: 100%;
}

.manifest-rule-dialog-form .user-dialog-field input[type='color'] {
    width: 2.5rem;
    height: 2.2rem;
    padding: 0.18rem;
    border: 1px solid #d2dae6;
    border-radius: 6px;
    background: #fff;
}

.manifest-rule-color-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manifest-rule-color-inputs input[type='text'] {
    flex: 1 1 auto;
}

.manifest-rule-active-toggle {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.1rem;
    padding-top: 0;
}

.manifest-rule-active-toggle input {
    width: 0.82rem;
    height: 0.82rem;
    margin: 0;
}

.manifest-rule-active-toggle span {
    color: #314052;
    font-size: 0.74rem;
    font-weight: 600;
}

.crew-filter-form {
    grid-template-columns: 180px 140px 220px 78px;
    align-items: end;
    width: max-content;
    max-width: 100%;
}

.crew-dialog-form {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.8rem;
    column-gap: 6px;
    align-items: stretch;
    width: 100%;
}

.user-dialog-inline-check {
    padding-top: 1.55rem;
}

.crew-dialog-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.crew-dialog-column {
    display: flex;
    flex: 0 0 calc(50% - 3px);
    max-width: calc(50% - 3px);
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
    padding: 0.9rem 1rem 1rem;
    background: #f4f7fb;
    border-radius: 8px;
}

.crew-dialog-panel {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.crew-dialog-column:first-child .crew-dialog-panel {
    border-right: 0;
}

.crew-dialog-panel-wide {
    flex: 1 1 100%;
    width: 100%;
    padding: 0.9rem 1rem 1rem;
    background: #f4f7fb;
    border-radius: 8px;
}

.crew-dialog-panel-heading {
    margin-bottom: 0.7rem;
    color: #314052;
    font-size: 0.74rem;
    font-weight: 700;
}

.crew-dialog-panel-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.crew-dialog-panel-heading-row .crew-dialog-panel-heading {
    margin-bottom: 0;
}

.crew-dialog-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem 0.85rem;
    align-items: start;
}

.crew-dialog-form .user-dialog-field select,
.crew-dialog-form .user-dialog-field input {
    width: 100%;
}

.crew-dialog-form .user-dialog-venue-option input {
    -webkit-appearance: checkbox;
    appearance: auto;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 0 0 12px !important;
    transform: none !important;
    vertical-align: middle;
}

.crew-dialog-form .user-dialog-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0;
    margin-top: -0.15rem;
}

.crew-dialog-form .user-dialog-inline-check input {
    width: 0.82rem;
    height: 0.82rem;
    margin: 0;
}

.crew-dialog-form .user-dialog-inline-check span {
    color: #314052;
    font-size: 0.74rem;
    font-weight: 600;
}

.crew-dialog-form .user-dialog-actions {
    margin-top: 0.15rem;
    flex: 1 1 100%;
    grid-column: 1 / -1;
}

.crew-dialog-active-toggle {
    margin-top: 0;
    white-space: nowrap;
}

.user-row-edit-button {
    cursor: pointer;
}

@media (max-width: 1200px) {
    .dashboard-summary-grid,
    .dashboard-lower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dashboard-summary-grid,
    .dashboard-lower-grid,
    .user-management-form {
        grid-template-columns: 1fr;
    }

    .user-management-venues,
    .user-dialog-field-wide {
        grid-column: auto;
    }

    .user-venue-checklist {
        grid-template-columns: 1fr;
    }

    .manifest-rule-dialog-form,
    .crew-dialog-form {
        grid-template-columns: 1fr;
    }
}

.cv-tab-home svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.cv-tab-home:hover {
    transform: translateY(-50%) scale(1.12);
    background: linear-gradient(180deg, #3a89ea, #2677d8);
    color: #fff;
}

.cv-tab-home.active {
    background: linear-gradient(180deg, #2f79d6, #1f6dcb);
    color: #fff;
}

.cv-tabs .cv-tab:last-child {
    border-right: 0;
}

.portal-header {
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--portal-line);
    border-radius: 1.5rem;
    background: rgba(22, 22, 22, 0.84);
    backdrop-filter: blur(12px);
}

.portal-header p,
.stat-card p,
.panel-card p,
.activity-list span {
    margin: 0;
    color: var(--portal-muted);
}

.portal-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    color: #ffffff;
    background: #244f86;
}

.portal-body {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.hero-card,
.panel-card,
.stat-card {
    border: 1px solid var(--portal-line);
    border-radius: 1.75rem;
    background: var(--portal-surface-strong);
    box-shadow: var(--portal-shadow);
}

.hero-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(210, 91, 45, 0.22) 0%, transparent 68%);
}

.hero-card p {
    position: relative;
    max-width: 42rem;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--portal-muted);
}

.stats-grid,
.content-grid {
    display: grid;
    gap: 1.5rem;
}

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

.content-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
}

.stat-card,
.panel-card {
    padding: 1.4rem;
}

.stat-card strong {
    display: block;
    margin-top: 0.75rem;
    font-size: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.activity-list,
.quick-links {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.activity-list li,
.quick-links li {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 106, 0, 0.08);
}

.activity-list strong,
.quick-links strong {
    display: block;
    margin-bottom: 0.35rem;
}

@media (max-width: 1024px) {
    .auth-shell,
    .portal-shell,
    .content-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        min-height: 22rem;
        padding: 2rem 1.5rem 0;
    }

    .portal-sidebar {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .auth-card,
    .portal-content,
    .portal-sidebar {
        margin: 0;
        padding: 1.25rem;
    }

    .auth-shell {
        gap: 1rem;
    }

    .portal-header,
    .form-row,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

.manifest-shell {
    min-height: 100vh;
    background: #f4f7fe;
    color: #202833;
    font-size: 12px;
}

.manifest-page-header,
.manifest-toolbar,
.manifest-toolbar-actions,
.manifest-filter-meta,
.manifest-group-header,
.manifest-group-meta,
.manifest-row-actions {
    display: flex;
    align-items: center;
}

.manifest-page-header,
.manifest-toolbar,
.manifest-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

.manifest-filterbar {
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.manifest-content {
    padding-left: 0;
    padding-right: 0;
}

.manifest-page-header {
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    border-bottom: 0;
    background: transparent;
    flex-wrap: nowrap;
}

.manifest-page-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.manifest-page-title > div {
    min-width: 0;
}

.manifest-page-icon {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.manifest-page-header h1 {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1;
}

.manifest-eyebrow {
    margin: 0;
    font-size: 0.68rem;
    color: #4d5568;
}

.portal-page-heading {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1;
    color: #202833;
}

.manifest-user {
    gap: 0.85rem;
    flex-wrap: nowrap;
    font-size: 0.82rem;
}

.manifest-logout-link {
    padding: 0;
    border: 0;
    color: #2160ad;
    font-size: 0.78rem;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
}

.manifest-toolbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #d6dce4;
    background: #f8fafc;
}

.manifest-toolbar strong {
    display: block;
    font-size: 0.9rem;
}

.manifest-toolbar span {
    color: #697587;
    font-size: 0.78rem;
}

.manifest-toolbar-actions {
    gap: 0.5rem;
}

.manifest-columns-picker {
    position: relative;
}

.manifest-columns-picker summary {
    list-style: none;
    cursor: pointer;
}

.manifest-columns-picker summary::-webkit-details-marker {
    display: none;
}

.manifest-columns-popover {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 220;
    width: 34rem;
    padding: 0.7rem;
    border: 1px solid #d6dce4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(18, 28, 45, 0.12);
}

.manifest-columns-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e1e6ee;
}

.manifest-columns-header strong {
    font-size: 0.78rem;
}

.manifest-columns-header span {
    color: #6b7788;
    font-size: 0.68rem;
}

.manifest-columns-form {
    margin-top: 0.6rem;
}

.manifest-columns-list {
    display: grid;
    gap: 0.45rem;
    max-height: 20rem;
    overflow-y: auto;
}

.manifest-columns-list-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.manifest-columns-section + .manifest-columns-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e7ebf2;
}

.manifest-columns-list-split .manifest-columns-section + .manifest-columns-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.manifest-columns-section-title {
    margin-bottom: 0.45rem;
    color: #617187;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manifest-columns-section-title-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.manifest-columns-panel {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    height: 100%;
    max-height: 16.5rem;
    overflow-y: auto;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    background: #f3f6fa;
}

.manifest-columns-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #202833;
    font-size: 0.78rem;
}

.manifest-columns-option input {
    width: auto;
    height: auto;
    margin: 0;
}

.manifest-columns-checkbox {
    cursor: pointer;
}

.manifest-filter-form > .manifest-custom-column-product-picker {
    grid-column: 1 / -1;
}

.manifest-columns-setup-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #244f86;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: right;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.manifest-columns-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.manifest-columns-action-button {
    flex: 1 1 0;
    padding: 0.42rem 0.68rem;
    border: 1px solid #ccd5e0;
    border-radius: 3px;
    background: #fff;
    color: #223041;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.manifest-columns-action-button:hover {
    background: #f3f6fb;
    border-color: #b7c2d1;
}

.manifest-columns-empty {
    padding: 0.2rem 0;
    color: #6b7788;
    font-size: 0.74rem;
}

.manifest-icon-button {
    padding: 0.42rem 0.68rem;
    border: 1px solid #ccd5e0;
    border-radius: 3px;
    background: #fff;
    color: #223041;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.manifest-filterbar {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.admin-filter-heading {
    padding: 0 0 0.35rem;
    margin-bottom: 0;
}

.admin-filter-heading-title strong {
    color: #8f9cae;
}

.manifest-filters-picker {
    position: relative;
}

.manifest-filters-picker summary {
    list-style: none;
}

.manifest-filters-picker summary::-webkit-details-marker {
    display: none;
}

.manifest-filters-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: min(100%, 36rem);
    cursor: pointer;
}

.manifest-filters-trigger-icon {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid #ccd5e0;
    border-radius: 3px;
    background: #fff;
    color: #223041;
    flex: 0 0 auto;
}

.manifest-filters-trigger-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.manifest-filters-bar {
    min-width: 0;
    height: 2rem;
    padding: 0.3rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #ccd5e0;
    border-radius: 3px;
    background: #fff;
    color: #223041;
}

.manifest-filters-bar strong {
    font-size: 0.74rem;
    white-space: nowrap;
}

.manifest-filters-bar span {
    min-width: 0;
    color: #617187;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manifest-filters-popover {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 220;
    width: min(52rem, calc(100vw - 10rem));
    border: 1px solid #d6dce4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(18, 28, 45, 0.14);
    overflow: hidden;
}

.manifest-filters-popover-head {
    padding: 0.95rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5eaf1;
}

.manifest-filters-popover-head strong {
    font-size: 1.15rem;
    color: #111827;
}

.manifest-filters-popover-head span {
    display: block;
    margin-top: 0.15rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.manifest-filters-close {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.manifest-filters-close:hover {
    background: #f3f6fa;
}

.manifest-filter-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(240px, 0.85fr);
}

.manifest-filter-panel {
    min-width: 0;
    padding: 1rem;
}

.manifest-filter-panel-left {
    border-right: 1px solid #eef2f7;
    background: #fff;
}

.manifest-filter-panel-right {
    background: #fbfcfe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifest-filter-search {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.manifest-filter-search span {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #617187;
}

.manifest-filter-search input {
    width: 100%;
    height: 2.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    color: #1f2b38;
    font-size: 0.88rem;
    background: #fff;
}

.manifest-filter-card {
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.manifest-filter-card-fill {
    margin-top: 0;
    height: 100%;
}

.manifest-filter-card-title {
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid #edf2f7;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.manifest-filter-form-compact {
    padding: 10px 0px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manifest-filter-grid {
    display: grid;
    gap: 0.75rem;
    align-items: start;
}

.manifest-filter-grid label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.38rem;
    min-width: 0;
}

.manifest-filter-grid input,
.manifest-filter-grid select {
    width: 100%;
}

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

.manifest-filter-grid-date label:nth-child(3) {
    grid-column: 1 / -1;
}

.manifest-filter-grid-product {
    grid-template-columns: 1fr;
}

.manifest-filter-date-actions {
    padding: 0 0.85rem 0.85rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.manifest-filter-preview-empty {
    max-width: 23rem;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
}

.manifest-filter-preview-empty strong {
    color: #111827;
    font-size: 1rem;
}

.manifest-filter-preview-empty p {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.55;
}

.manifest-filter-preview-list {
    width: 100%;
    max-width: 23rem;
    display: grid;
    gap: 0.8rem;
}

.manifest-filter-preview-list > strong {
    color: #111827;
    font-size: 1rem;
}

.manifest-filter-preview-items {
    display: grid;
    gap: 0.55rem;
}

.manifest-filter-preview-item {
    padding: 0.75rem 0.8rem;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    background: #fff;
    display: grid;
    gap: 0.18rem;
}

.manifest-filter-preview-item > span {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
}

.manifest-filter-preview-item > strong {
    color: #1f2b38;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.manifest-filter-preview-graphic {
    position: relative;
    width: 9rem;
    height: 7rem;
    margin-bottom: 0.45rem;
}

.manifest-filter-preview-graphic span {
    position: absolute;
    border-radius: 999px;
}

.manifest-filter-preview-graphic span:nth-child(1) {
    inset: 0 auto auto 1rem;
    width: 6.25rem;
    height: 1.25rem;
    border: 2px dashed #9aa8bb;
    border-color: #9aa8bb transparent transparent transparent;
    transform: rotate(10deg);
}

.manifest-filter-preview-graphic span:nth-child(2) {
    inset: 2.1rem 2.1rem auto auto;
    width: 2.1rem;
    height: 2.8rem;
    border: 2px dashed #9aa8bb;
    border-color: #9aa8bb transparent transparent transparent;
    transform: rotate(-18deg);
}

.manifest-filter-preview-graphic span:nth-child(3) {
    inset: auto 1.3rem 0 1.3rem;
    height: 3.1rem;
    border: 1.5px solid #94a3b8;
    border-radius: 0 0 12px 12px;
    background:
        linear-gradient(90deg, #ffffff 0 50%, #eff3f8 50% 100%);
    box-shadow: 0 10px 20px rgba(148, 163, 184, 0.12);
}

.manifest-filters-popover-actions {
    grid-column: 1 / -1;
    padding: 0.85rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e5eaf1;
    background: #fff;
}

.manifest-filters-popover-actions .button-primary {
    min-height: 2.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
}

.manifest-smash-button {
    gap: 0.42rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.manifest-apply-button {
    background: #244f86;
    border-color: #244f86;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
}

.manifest-apply-button:hover {
    background: #1e4270;
    border-color: #1e4270;
}

.manifest-smash-button img {
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
}

.manifest-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 0.65rem;
    align-items: end;
}

.manifest-filter-form label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.45rem;
}

.manifest-filter-form span {
    flex: 0 0 auto;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #617187;
}

.manifest-filter-form input,
.manifest-filter-form select {
    width: auto;
    min-width: 0;
    height: 2.15rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cfd7e1;
    border-radius: 3px;
    color: #1f2b38;
    font-size: 0.74rem;
    background: #fff;
}

.manifest-filter-form input[type='date'] {
    min-width: 10.5rem;
}

.manifest-filter-form .button-primary {
    width: 100%;
    min-height: 2.15rem;
    height: 2.15rem;
    padding: 0.45rem 0.72rem;
    border-radius: 3px;
    box-shadow: none;
    font-size: 0.74rem;
    white-space: nowrap;
}

.manifest-filterbar > .manifest-filter-form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.manifest-filterbar > .manifest-filter-form label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid #d5ddea;
    border-radius: 6px;
    background: #ffffff;
    white-space: nowrap;
}

.manifest-filterbar > .manifest-filter-form span {
    font-size: 0.65rem;
    color: #667791;
}

.manifest-filterbar > .manifest-filter-form input,
.manifest-filterbar > .manifest-filter-form select {
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #233247;
}

.manifest-filterbar > .manifest-filter-form input:focus,
.manifest-filterbar > .manifest-filter-form select:focus {
    outline: none;
}

.manifest-filterbar > .manifest-filter-form input[type='date'] {
    min-width: 8.9rem;
}

.manifest-filterbar > .manifest-filter-form .button-primary {
    width: auto;
    min-width: 0;
    height: 2.15rem;
    min-height: 2.15rem;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #d5ddea;
    border-color: #d5ddea;
    color: #233247;
}

.manifest-filterbar > .manifest-filter-form .button-primary:hover {
    background: #f8fafc;
    border-color: #c8d1df;
}

.manifest-filters-popover .manifest-filter-grid label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.38rem;
    min-width: 0;
    white-space: normal;
}

.manifest-filters-popover .manifest-filter-grid-product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
}

.manifest-filter-meta {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: #617187;
    font-size: 0.72rem;
}

.manifest-columns-picker-inline {
    position: relative;
}

.manifest-columns-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.manifest-columns-button-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-grid;
    place-items: center;
}

.manifest-columns-button-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
}

.manifest-warning {
    color: #b14f16;
}

.manifest-content {
    padding-top: 0.7rem;
    padding-bottom: 2rem;
    display: grid;
    gap: 0.7rem;
}

.manifest-color-rules-shell {
    font-size: 11px;
}

.manifest-color-rules-shell .manifest-page-header h1 {
    font-size: 0.98rem;
}

.manifest-color-rules-shell .manifest-group-title h2 {
    font-size: 1rem;
}

.manifest-color-rules-shell .manifest-group-meta,
.manifest-color-rules-shell .manifest-filter-meta,
.manifest-color-rules-shell .manifest-user,
.manifest-color-rules-shell .manifest-logout-link,
.manifest-color-rules-shell .flash-message {
    font-size: 0.7rem;
}

.manifest-rule-scroll {
    overflow-x: auto;
}

.manifest-rule-form {
    grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) 92px 92px 92px 70px 74px 92px;
    gap: 0.45rem;
    min-width: 900px;
}

.manifest-rule-form label {
    gap: 0.3rem;
}

.manifest-rule-form span {
    font-size: 0.58rem;
    white-space: nowrap;
}

.manifest-rule-form input,
.manifest-rule-form select {
    height: 1.9rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
}

.manifest-rule-form input[type='color'] {
    padding: 0.15rem;
    cursor: pointer;
}

.manifest-inline-checkbox {
    height: 1.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0.95rem;
}

.manifest-inline-checkbox input {
    width: auto;
    height: auto;
    margin: 0;
}

.manifest-inline-sync-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.manifest-inline-sync-form select {
    height: 1.9rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #cfd7e1;
    border-radius: 3px;
    background: #fff;
    color: #364357;
    font-size: 0.7rem;
}

.manifest-inline-checkbox span {
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.68rem;
}

.manifest-rule-form .button-primary {
    min-height: 1.9rem;
    height: 1.9rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
}

.manifest-rule-body {
    padding: 0.65rem 0.75rem;
}

.manifest-rule-edit-form {
    grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) 92px 92px 92px 70px 74px 128px;
}

.crew-member-form {
    grid-template-columns:
        110px
        120px
        minmax(200px, 1.5fr)
        125px
        150px
        120px
        92px
        70px
        minmax(180px, 1.5fr)
        74px
        92px;
    min-width: 1380px;
}

.crew-member-edit-form {
    grid-template-columns:
        110px
        120px
        minmax(200px, 1.5fr)
        125px
        150px
        120px
        92px
        70px
        minmax(180px, 1.5fr)
        74px
        128px;
}

.product-edit-form {
    grid-template-columns:
        minmax(180px, 1.3fr)
        120px
        140px
        minmax(220px, 1.4fr)
        minmax(220px, 1.4fr)
        minmax(240px, 1.7fr)
        minmax(220px, 1.4fr)
        110px;
    min-width: 1500px;
}

.product-variant-row {
    margin-top: 0.55rem;
}

.product-variant-form {
    grid-template-columns:
        minmax(180px, 1.4fr)
        120px
        120px
        90px
        90px
        82px
        82px
        82px
        82px
        74px
        74px
        110px;
    min-width: 1450px;
}

.product-table-row-parent td {
    background: #fff;
    border-top: 2px solid #c7d4e5;
}

.product-table-row-variant td {
    background: #f8fbff;
    border-top-color: #e4ecf7;
}

.product-table-id-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.product-variant-toggle,
.product-variant-toggle-placeholder {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.product-variant-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f7086;
    cursor: pointer;
}

.product-variant-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.product-variant-toggle[aria-expanded='true'] svg {
    transform: rotate(90deg);
}

.product-variant-toggle-placeholder {
    display: inline-block;
}

.product-table-row-variant td:first-child {
    padding-left: 1.35rem;
    box-shadow: inset 16px 0 0 #f4f7fe;
}

.product-table-row-variant td:last-child {
    box-shadow: inset -10px 0 0 #f4f7fe;
}

.product-table-name-cell strong,
.product-table-indent strong {
    display: block;
    margin-bottom: 0.22rem;
}

.product-table-indent {
    padding-left: 2.35rem !important;
    position: relative;
}

.product-table-indent::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    width: 0.8rem;
    height: 1px;
    background: #9db0c7;
}

.manifest-table .product-table-row-separator td {
    height: 12px;
    padding: 0 !important;
    border-top: 0;
    background: #f4f7fe !important;
}

.product-table-html {
    max-width: 24rem;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.45;
}

.product-table-html-wrap {
    position: relative;
    max-width: 24rem;
}

.product-table-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 0.35rem);
    z-index: 40;
    width: min(28rem, 60vw);
    padding: 0.7rem 0.8rem;
    border: 1px solid #d2dae6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(18, 28, 45, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.product-table-html-wrap:hover .product-table-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.product-table-tooltip-body {
    color: #223041;
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-table-tooltip-body p {
    margin: 0 0 0.45rem;
}

.product-table-tooltip-body p:last-child {
    margin-bottom: 0;
}

.product-table-tooltip-body ul,
.product-table-tooltip-body ol {
    margin: 0.35rem 0 0.35rem 1rem;
    padding: 0;
}

.product-filter-form {
    width: max-content;
    max-width: 100%;
}

.product-filter-form label,
.crew-filter-form label {
    width: auto;
}

.product-filter-form input {
    width: 12rem;
}

.product-filter-form input,
.product-filter-form select,
.crew-filter-form input,
.crew-filter-form select {
    width: auto;
}

.product-filter-form .button-primary,
.crew-filter-form .button-primary {
    width: auto;
    min-width: 0;
    padding-left: 0.62rem;
    padding-right: 0.62rem;
}

.crew-filter-form input {
    width: 10.5rem;
}

.product-table-image-cell {
    width: 4.3rem;
    min-width: 4.3rem;
}

.product-table-image {
    display: block;
    width: 2.7rem;
    height: 2.7rem;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d6dde7;
    background: #fff;
}

.product-table-image-fallback {
    display: inline-block;
    color: #708197;
    font-size: 0.68rem;
}

.product-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem 1rem;
}

.product-table-count {
    color: #5f6e82;
    font-size: 0.74rem;
}

.product-table-pagination {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.product-page-link,
.product-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.35rem 0.68rem;
    border: 1px solid #d1d8e2;
    border-radius: 3px;
    background: #fff;
    color: #223041;
    font-size: 0.7rem;
    font-weight: 700;
}

.product-page-link.is-disabled {
    color: #91a0b4;
    background: #f7f9fc;
}

a.product-page-link {
    text-decoration: none;
}

a.product-page-link:hover {
    border-color: #aebccd;
    background: #f3f6fb;
    color: #223143;
}

.crew-member-card .manifest-group-header {
    padding-bottom: 0.7rem;
}

.crew-member-card .manifest-group-meta {
    padding: 0;
    background: transparent;
}

.venue-sync-form {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 120px;
    min-width: 0;
}

.venue-sync-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0 0.75rem 0.6rem;
}

.manifest-table .venue-sync-actions {
    min-width: 0;
    padding: 0;
}

.venue-sync-actions form {
    margin: 0;
}

.venue-sync-meta {
    display: grid;
    gap: 0.45rem;
    padding: 0 0.75rem 0.75rem;
}

.venue-sync-status-row,
.venue-sync-last-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.venue-sync-last-row strong {
    color: #526276;
    font-size: 0.7rem;
    font-weight: 700;
}

.venue-sync-last-row span,
.venue-sync-status-copy {
    color: #314052;
    font-size: 0.72rem;
}

.venue-sync-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.4rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.venue-sync-status-badge.status-idle {
    background: #eef2f7;
    color: #5f7086;
}

.venue-sync-status-badge.status-syncing {
    background: #e9f1ff;
    color: #244f86;
}

.venue-sync-status-badge.status-success {
    background: #e7f6ee;
    color: #2d7a4c;
}

.venue-sync-status-badge.status-failed {
    background: #fdecec;
    color: #b13b3b;
}

.venue-sync-actions .button-primary,
.venue-sync-actions .manifest-logout-link {
    min-height: 1.9rem;
    padding: 0.35rem 0.68rem;
    border: 1px solid #d1d8e2;
    border-radius: 3px;
    background: #fff;
    color: #223041;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.venue-sync-button {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.venue-sync-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
}

.venue-sync-button-icon svg {
    width: 0.9rem;
    height: 0.9rem;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.venue-sync-button-icon-spinner {
    display: none;
}

.venue-sync-button.is-syncing .venue-sync-button-icon-sync {
    display: none;
}

.venue-sync-button.is-syncing .venue-sync-button-icon-spinner {
    display: block;
    animation: venue-sync-spin 0.85s linear infinite;
}

.venue-sync-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.venue-sync-actions .button-primary {
    border-color: #272727;
    background: #272727;
    color: #fff;
}

.venue-sync-actions .button-primary:hover,
.venue-sync-actions .manifest-logout-link:hover {
    background: #eef2f7;
    color: #111827;
}

.venue-sync-actions .button-primary:hover {
    background: #1d1d1d;
    color: #fff;
}

.venue-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.venue-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.venue-dialog-section {
    padding: 0.95rem 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f4f7fb;
}

.venue-dialog-section-wide {
    width: 100%;
}

.venue-dialog-section-title {
    margin-bottom: 0.7rem;
    color: #314052;
    font-size: 0.74rem;
    font-weight: 700;
}

.venue-dialog-details {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.venue-dialog-details > div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.venue-dialog-details dt {
    color: #6a788d;
    font-size: 0.7rem;
    font-weight: 700;
}

.venue-dialog-details dd {
    margin: 0;
    color: #223041;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.venue-sync-history {
    padding: 0 0.75rem 0.2rem;
}

.venue-sync-history-title {
    margin-bottom: 0.45rem;
    color: #526276;
    font-size: 0.69rem;
    font-weight: 700;
}

.venue-sync-history-list {
    display: grid;
    gap: 0.3rem;
}

.venue-sync-history-row {
    display: grid;
    grid-template-columns: 88px 72px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.38rem 0.48rem;
    border-radius: 6px;
    background: #fff;
    color: #314052;
    font-size: 0.7rem;
}

.venue-sync-history-empty {
    color: #6b7788;
    font-size: 0.72rem;
}

@keyframes venue-sync-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.venue-create-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: start;
}

.venue-create-form .user-dialog-field,
.venue-create-form .user-dialog-field-wide {
    grid-column: 1 / -1;
}

.manifest-rule-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    padding-top: 0.95rem;
}

.manifest-rule-actions .button-primary,
.manifest-rule-delete {
    width: 100%;
}

.manifest-rule-delete {
    height: 1.9rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #d1d8e2;
    border-radius: 3px;
    color: #7f1d1d;
    background: #fff;
    white-space: nowrap;
}

.manifest-hidden-form {
    display: none;
}

.manifest-group {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid var(--manifest-border);
    border-radius: 3px;
    overflow: visible;
    background: #fff;
    box-shadow: none;
}

.manifest-color-rules-shell .manifest-group {
    background: transparent;
}

.manifest-color-rules-shell .manifest-group > .manifest-group-header,
.manifest-color-rules-shell .manifest-group > .manifest-group-meta {
    padding-left: 0;
    padding-right: 0;
}

.manifest-venue-group {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid var(--venue-border);
    border-radius: 3px;
    background: #fff;
    overflow: visible;
}

.manifest-venue-group-body {
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
    background: var(--venue-surface);
}

.manifest-group-header {
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.85rem 0.55rem;
    background: transparent;
}

.manifest-group-title {
    display: block;
}

.manifest-dot {
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: var(--manifest-accent);
}

.manifest-group-icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--manifest-accent);
    flex: 0 0 auto;
}

.manifest-group-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 1.8;
}

.manifest-group-title strong,
.manifest-table strong {
    display: block;
}

.manifest-group-venue-banner {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.75rem;
    border-bottom: 1px solid var(--venue-border);
    background: color-mix(in srgb, var(--venue-accent) 12%, #ffffff);
}

.manifest-group-venue-label,
.manifest-group-venue-name {
    display: inline-flex;
    align-items: center;
}

.manifest-group-venue-label {
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f6b80;
}

.manifest-group-venue-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2a3547;
}

.manifest-group-title strong {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: #8f9cae;
}

.manifest-group-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manifest-group-title h2 {
    margin: 0.15rem 0 0;
    font-size: 1.22rem;
    line-height: 1;
}

.manifest-book-button {
    padding: 0.42rem 0.7rem;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.75);
    color: #1f2b38;
    font-size: 0.74rem;
    font-weight: 800;
}

.manifest-group-meta {
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0 0.85rem 0.65rem;
    background: var(--manifest-surface);
    color: #4f5c70;
    font-size: 0.74rem;
}

.manifest-group-meta .is-highlight {
    color: var(--manifest-accent);
    font-weight: 800;
}

.manifest-table-wrap {
    overflow: visible;
    border: 1px solid #d7dde6;
    border-radius: 5px;
    background: #fff;
}

.manifest-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
    table-layout: auto;
}

.manifest-table th,
.manifest-table td {
    padding: 0.52rem 0.55rem;
    border: 1px solid #d7dde6;
    vertical-align: top;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.manifest-table th {
    background: #e9eef8;
    font-size: 0.68rem;
    color: #384556;
}

.manifest-table th.is-sorted {
    background: #dbe7fb;
    color: #244f86;
}

.manifest-table thead th {
    border-top: 0;
}

.manifest-table th:first-child,
.manifest-table td:first-child {
    border-left: 0;
}

.manifest-table th:last-child,
.manifest-table td:last-child {
    border-right: 0;
}

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

.manifest-table td {
    background: #fff;
    line-height: 1.3;
}

.manifest-table td.is-sorted {
    background: #f5f9ff;
}

.table-sort-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.table-sort-link:hover {
    color: #244f86;
}

.table-sort-link.is-active {
    color: #244f86;
}

.table-sort-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
    color: #9aa6b7;
    font-size: 0.56rem;
    line-height: 1;
}

.table-sort-indicator .sort-up,
.table-sort-indicator .sort-down {
    color: #9aa6b7;
}

.table-sort-link.is-active.sort-asc .table-sort-indicator .sort-up {
    color: #244f86;
}

.table-sort-link.is-active.sort-desc .table-sort-indicator .sort-down {
    color: #244f86;
}

.manifest-table td {
    line-height: 1.3;
}

.manifest-table td span {
    display: block;
    margin-top: 0.16rem;
    color: #677487;
    font-size: 0.68rem;
    line-height: 1.3;
}

.manifest-custom-value-popover {
    position: relative;
    display: inline-block;
    margin-top: 0.16rem;
}

.manifest-custom-value-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #677487;
    font-size: 0.68rem;
    line-height: 1.3;
    white-space: nowrap;
}

.manifest-custom-value-eye {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-grid;
    place-items: center;
    color: #244f86;
}

.manifest-custom-value-eye svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
}

.manifest-custom-value-card {
    position: absolute;
    top: calc(100% + 0.32rem);
    left: 0;
    z-index: 220;
    min-width: 18rem;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.7rem;
    display: none;
    border: 1px solid #d7dde6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 28, 45, 0.12);
}

.manifest-custom-value-popover.is-align-right .manifest-custom-value-card {
    left: auto;
    right: 0;
}

.manifest-custom-value-popover:hover .manifest-custom-value-card {
    display: grid;
    gap: 0.6rem;
}

.manifest-custom-value-item {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.manifest-custom-value-thumb {
    width: 4.2rem;
    height: 4.2rem;
    overflow: hidden;
    border: 1px solid #dbe2eb;
    border-radius: 4px;
    background: #f4f7fe;
    display: grid;
    place-items: center;
}

.manifest-custom-value-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manifest-custom-value-thumb span {
    margin: 0;
    color: #94a0b2;
    font-size: 0.62rem;
    text-align: center;
}

.manifest-custom-value-copy {
    min-width: 0;
}

.manifest-custom-value-copy strong {
    color: #263548;
    font-size: 0.8rem;
    line-height: 1.25;
}

.manifest-custom-value-copy span {
    margin-top: 0.12rem;
    font-size: 0.72rem;
}

.manifest-view-column,
.manifest-view-cell {
    width: 3.2rem;
    min-width: 3.2rem;
    text-align: center;
}

.manifest-view-button {
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d7dde6;
    border-radius: 3px;
    background: #fff;
    color: #405269;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.manifest-view-button:hover {
    border-color: #9eb2c9;
    background: #eef4fb;
    color: #244f86;
}

.manifest-view-button svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    stroke-width: 1.8;
}

.manifest-booking-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    display: none;
    padding: 1rem;
    box-sizing: border-box;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}

.manifest-booking-dialog[open] {
    display: grid;
    place-items: center;
}

.manifest-booking-dialog::backdrop {
    background: rgba(18, 28, 45, 0.32);
}

.manifest-booking-dialog-card {
    width: min(92vw, 980px);
    max-width: 980px;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 28px 60px rgba(18, 28, 45, 0.24);
}

.manifest-booking-dialog-header {
    padding: 1rem 1.15rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #d7dde6;
}

.manifest-booking-dialog-header h2 {
    margin: 0;
    color: #263548;
    font-size: 1.15rem;
}

.manifest-booking-dialog-header p {
    margin: 0.25rem 0 0;
    color: #66758b;
    font-size: 0.74rem;
}

.manifest-booking-dialog-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: #49586d;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.manifest-booking-dialog-close:hover {
    background: #f3f6fa;
    border-radius: 8px;
}

.manifest-booking-dialog-grid {
    padding: 1.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.95fr);
    gap: 1.2rem;
    align-items: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.manifest-custom-columns-dialog {
    width: 100vw;
    max-width: 100vw;
}

.manifest-custom-columns-shell {
    width: min(92vw, 980px);
    max-width: 980px;
    overflow: hidden;
}

.manifest-color-rules-shell .manifest-custom-columns-shell.user-dialog-shell {
    width: min(92vw, 620px);
    max-width: 620px;
}

.manifest-custom-columns-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.7fr);
    min-height: 540px;
}

.manifest-custom-columns-list-panel {
    padding: 1rem;
    border-right: 1px solid #dde3ec;
    background: #f7f9fc;
}

.manifest-custom-column-list-item {
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid #dde3ec;
    border-radius: 6px;
    background: #fff;
    color: #243445;
    text-align: left;
    cursor: pointer;
}

.manifest-custom-column-list-item strong,
.manifest-custom-column-list-item span {
    display: block;
}

.manifest-custom-column-list-item strong {
    font-size: 0.8rem;
}

.manifest-custom-column-list-item span {
    margin-top: 0.18rem;
    color: #6b7788;
    font-size: 0.7rem;
}

.manifest-custom-column-list-item.is-active {
    border-color: #244f86;
    background: rgba(36, 79, 134, 0.08);
}

.manifest-custom-columns-editor-panel {
    min-width: 0;
    padding: 1rem 1.1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.manifest-custom-column-editor {
    display: none;
    flex: 1 1 auto;
}

.manifest-custom-column-editor.is-active {
    display: flex;
    flex-direction: column;
}

.manifest-custom-column-editor .manifest-filter-form {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 0.8rem;
    align-content: start;
}

.manifest-custom-column-editor .manifest-filter-form > label {
    max-width: 100%;
}

.manifest-custom-column-editor .manifest-filter-form > label:nth-of-type(1),
.manifest-custom-column-editor .manifest-filter-form > label:nth-of-type(2) {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.manifest-custom-column-editor .manifest-custom-column-product-picker {
    grid-column: 1 / -1;
    flex: 1 1 auto;
}

.manifest-custom-column-product-picker {
    margin-top: 0.75rem;
}

.manifest-custom-column-search {
    margin-top: 0.65rem;
    margin-bottom: 0;
}

.manifest-custom-column-search span {
    display: none;
}

.manifest-custom-column-picker-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 0.45rem;
}

.manifest-custom-column-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.manifest-custom-column-side,
.manifest-custom-column-selected-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.manifest-custom-column-products {
    max-height: 320px;
    padding: 0.75rem;
    border: 1px solid #dde3ec;
    border-radius: 6px;
    overflow-y: auto;
    background: #fbfcfe;
}

.manifest-custom-column-products.is-selected {
    background: #fff;
}

.manifest-custom-column-selected-panel {
    min-width: 0;
}

.manifest-custom-product-option {
    width: 100%;
    padding: 0.55rem;
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    border: 1px solid #e1e6ee;
    border-radius: 6px;
    background: #fff;
    color: #243445;
    text-align: left;
    cursor: pointer;
}

.manifest-custom-product-option + .manifest-custom-product-option {
    margin-top: 0.45rem;
}

.manifest-custom-product-option.is-selected {
    display: none;
}

.manifest-custom-product-thumb {
    width: 2.8rem;
    height: 2.8rem;
    overflow: hidden;
    border: 1px solid #dde3ec;
    border-radius: 4px;
    background: #f4f7fe;
    display: grid;
    place-items: center;
}

.manifest-custom-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manifest-custom-product-thumb span {
    color: #94a0b2;
    font-size: 0.55rem;
    text-align: center;
}

.manifest-custom-product-copy {
    min-width: 0;
}

.manifest-custom-product-copy strong,
.manifest-custom-product-copy span {
    display: block;
}

.manifest-custom-product-copy strong {
    color: #263548;
    font-size: 0.74rem;
    line-height: 1.25;
}

.manifest-custom-product-copy span {
    margin-top: 0.12rem;
    color: #6b7788;
    font-size: 0.66rem;
    line-height: 1.25;
}

.manifest-custom-column-empty {
    color: #6b7788;
    font-size: 0.7rem;
}

.manifest-custom-column-products.is-selected .manifest-custom-product-option {
    display: grid;
}

.manifest-custom-column-products small {
    color: #6b7788;
}

.manifest-custom-column-delete-form {
    display: none;
}

.manifest-columns-actions-end {
    margin-top: auto;
    justify-content: flex-end;
    padding-top: 0.9rem;
}

.manifest-columns-actions-end .button-primary,
.manifest-columns-actions-end .manifest-columns-reset {
    flex: 0 0 auto;
    min-width: 7.5rem;
    height: 1.9rem;
    padding: 0.35rem 0.62rem;
}

.manifest-columns-actions-end .manifest-columns-reset {
    color: #6b7788;
}

.manifest-booking-panel,
.manifest-booking-actions-panel {
    min-width: 0;
}

.manifest-booking-stats-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.manifest-booking-panel-heading {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.manifest-booking-panel-heading strong {
    display: block;
    color: #263548;
    font-size: 0.96rem;
}

.manifest-booking-panel-heading p {
    margin: 0.16rem 0 0;
    color: #708096;
    font-size: 0.7rem;
}

.manifest-booking-status {
    padding: 0.22rem 0.48rem;
    border-radius: 3px;
    background: #eef4fb;
    color: #244f86;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.manifest-booking-product {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 1px solid #d7dde6;
    border-radius: 3px;
    background: #fafcff;
}

.manifest-booking-product strong {
    display: block;
    color: #1f2b38;
    font-size: 0.82rem;
}

.manifest-booking-product p {
    margin: 0.18rem 0 0;
    color: #66758b;
    font-size: 0.7rem;
}

.manifest-booking-payment {
    margin-bottom: 0.9rem;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    border: 1px solid #d7dde6;
    border-radius: 3px;
    background: #fff;
}

.manifest-booking-payment span,
.manifest-booking-details dt,
.manifest-booking-list dt {
    display: block;
    color: #708096;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.manifest-booking-payment strong,
.manifest-booking-details dd,
.manifest-booking-list dd {
    margin: 0.12rem 0 0;
    display: block;
    color: #263548;
    font-size: 0.78rem;
    font-weight: 700;
}

.manifest-booking-payment-due strong {
    color: #b52b2b;
}

.manifest-booking-section {
    margin-top: 0.9rem;
    padding: 0.8rem;
    border: 1px solid #d7dde6;
    border-radius: 3px;
    background: #fff;
}

.manifest-booking-section-title {
    margin-bottom: 0.55rem;
    color: #344255;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.manifest-booking-details {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.9rem;
}

.manifest-booking-details div,
.manifest-booking-list div {
    min-width: 0;
}

.manifest-booking-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.manifest-booking-list dd {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.manifest-booking-action-list {
    display: grid;
    gap: 0.45rem;
}

.manifest-booking-action {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid #d6e0ed;
    border-radius: 3px;
    background: #eef4fb;
    color: #244f86;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.manifest-booking-action:hover {
    background: #e2edf9;
}

.manifest-booking-products {
    display: grid;
    gap: 0.65rem;
}

.manifest-booking-product-card {
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid #dde4ee;
    border-radius: 8px;
    background: #f8fbff;
}

.manifest-booking-product-media {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 8px;
    overflow: hidden;
    background: #eaf0f7;
}

.manifest-booking-product-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.manifest-booking-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #6e7c8f;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.manifest-booking-product-copy {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.manifest-booking-product-copy strong {
    display: block;
    color: #223041;
    font-size: 0.8rem;
}

.manifest-booking-product-copy p,
.manifest-booking-product-copy span {
    margin: 0;
    color: #627287;
    font-size: 0.72rem;
}

.manifest-crew-form {
    display: grid;
    gap: 0.32rem;
    position: relative;
}

.manifest-crew-picker {
    position: relative;
}

.manifest-crew-picker summary {
    list-style: none;
}

.manifest-crew-picker summary::-webkit-details-marker {
    display: none;
}

.manifest-crew-trigger {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0;
    color: #202833;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.manifest-crew-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #202833;
}

.manifest-crew-trigger-icon {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-grid;
    place-items: center;
}

.manifest-crew-trigger-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
}

.manifest-crew-popover {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 200;
    width: 13rem;
    padding: 0.55rem;
    border: 1px solid #d7dde6;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 28, 45, 0.12);
}

.manifest-crew-popover-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e4e9f0;
    color: #384556;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manifest-crew-checklist {
    display: grid;
    gap: 0.32rem;
    margin-bottom: 0.45rem;
}

.manifest-crew-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1f2b38;
    font-size: 0.68rem;
}

.manifest-crew-option input {
    width: auto;
    height: auto;
    margin: 0;
}

.manifest-crew-button {
    width: 100%;
    padding: 0.32rem 0.45rem;
    border: 1px solid #cfd7e1;
    border-radius: 3px;
    background: #eef4fb;
    color: #2160ad;
    font-size: 0.64rem;
    font-weight: 700;
    cursor: pointer;
}

.manifest-crew-empty {
    display: grid;
    gap: 0.35rem;
    color: #1f2b38;
    font-size: 0.68rem;
}

.manifest-crew-empty strong {
    font-size: 0.68rem;
    font-weight: 400;
    color: #1f2b38;
}

.manifest-crew-empty a {
    color: #2160ad;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

.manifest-row-actions {
    gap: 0.45rem;
    flex-wrap: wrap;
}

.manifest-row-actions a,
.manifest-row-actions span {
    padding: 0.2rem 0.38rem;
    border-radius: 3px;
    background: #eef4fb;
    color: #2160ad;
    font-size: 0.64rem;
    font-weight: 700;
}

.is-due,
.is-paid {
    display: inline-flex;
    padding: 0.16rem 0.3rem;
    border-radius: 3px;
    font-weight: 800;
}

.is-due {
    color: #fff;
    background: #c8342f;
}

.is-paid {
    color: #1d6f43;
    background: #daf4e1;
}

.dashboard-page {
    display: grid;
    gap: 1rem;
}

.dashboard-shell {
    display: grid;
    gap: 1rem;
}

.dashboard-header-actions {
    justify-content: flex-end;
    margin: 0;
}

.dashboard-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.2rem;
}

.dashboard-reset-layout-button {
    height: 1.85rem;
    padding: 0.3rem 0.62rem;
    border: 1px solid #ccd5e0;
    border-radius: 3px;
    background: #fff;
    color: #223041;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-reset-layout-button:hover {
    background: #f3f6fb;
    border-color: #b7c2d1;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.dashboard-primary,
.dashboard-sidecards {
    display: grid;
    gap: 12px;
    min-width: 0;
    align-content: start;
    align-items: stretch;
}

.dashboard-sidecards {
    width: 100%;
    max-width: none;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    align-items: stretch;
}

.kpi-grid > .card {
    min-width: 0;
}

.kpi-grid > .dashboard-card-span-wide {
    grid-column: span 2;
}

.kpi-grid > .dashboard-card-span-tall {
    grid-row: span 2;
}

.dashboard-sidecards > .dashboard-card-span-wide,
.dashboard-primary > .dashboard-card-span-wide {
    width: 100%;
}

.dashboard-sidecards > .dashboard-card-span-tall,
.dashboard-primary > .dashboard-card-span-tall {
    min-height: 320px;
}

.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.two-col > * {
    flex: 1 1 280px;
    min-width: 0;
}

.dashboard-page .card {
    align-self: stretch;
    background: #fff;
    border: 1px solid #e0e7f4;
    border-radius: 6px;
    box-shadow: 1px 1px 3px rgb(39 70 131 / 20%);
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.dashboard-page .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.dashboard-page .card-head h3 {
    margin: 0;
    font-size: 16px;
    color: #2b3674;
    font-weight: 600;
}

.dashboard-page .card-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.dashboard-page .card-tools {
    position: relative;
}

.dashboard-page .card-subtitle {
    margin: -2px 0 10px;
    color: #7182a1;
    font-size: 13px;
}

.dashboard-page .chart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4f7fe;
    color: #60718f;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-page .chart-toggle input {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 16px;
    margin: 0;
    border-radius: 999px;
    background: #cfd8e8;
    position: relative;
    cursor: pointer;
    transition: background 0.18s ease;
}

.dashboard-page .chart-toggle input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.18s ease;
}

.dashboard-page .chart-toggle input:checked {
    background: #f59e0b;
}

.dashboard-page .chart-toggle input:checked::after {
    transform: translateX(12px);
}

.dashboard-page .chart-toggle:hover {
    background: #ebf0fa;
}

.dashboard-page .chart-toggle:has(input:checked) {
    background: #fff1dc;
}

.dashboard-page .chart-toggle input:checked + span {
    color: #b66a00;
}

.dashboard-page .card-menu-btn {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    display: grid;
    align-content: center;
    gap: 2px;
    cursor: pointer;
}

.dashboard-page .card-menu-btn span {
    display: block;
    width: 14px;
    height: 1.5px;
    background: #a0aabf;
    border-radius: 2px;
}

.dashboard-page .card-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #fff;
    border: 1px solid #d9dfeb;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(19, 36, 66, 0.16);
    padding: 6px;
    z-index: 60;
}

.dashboard-page .card-menu.open {
    display: grid;
    gap: 2px;
}

.dashboard-card-submenu {
    position: relative;
}

.dashboard-card-submenu::after {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    width: 10px;
    height: 100%;
}

.dashboard-card-submenu-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-card-submenu-panel {
    position: absolute;
    right: calc(100% + 4px);
    left: auto;
    top: -4px;
    display: none;
    padding: 6px;
    border: 1px solid #d9dfeb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(19, 36, 66, 0.16);
    z-index: 70;
}

.dashboard-card-submenu:hover .dashboard-card-submenu-panel,
.dashboard-card-submenu:focus-within .dashboard-card-submenu-panel {
    display: block;
}

.dashboard-card-direction-pad {
    display: grid;
    grid-template-columns: repeat(3, 24px);
    gap: 3px;
    align-items: center;
    justify-content: start;
}

.dashboard-card-direction-center {
    display: grid;
    place-items: center;
    color: #b2bccd;
    font-size: 12px;
    line-height: 1;
}

.dashboard-card-direction-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #d9dfeb !important;
    border-radius: 6px !important;
    background: #f7f9fc !important;
    color: #50617f !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1;
    text-align: center !important;
}

.dashboard-card-direction-btn:hover {
    background: #eef3fb !important;
    color: #2f4d7d !important;
}

.dashboard-page .card-menu button {
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    color: #4f5f7f;
    cursor: pointer;
}

.dashboard-page .card-menu button:hover {
    background: #eef3fb;
    color: #2f4d7d;
}

.dashboard-page .draggable-card {
    cursor: grab;
}

.dashboard-page .draggable-card.dragging {
    opacity: 0.55;
}

.dashboard-page .drop-candidate {
    background: #edf0f4 !important;
}

.dashboard-page .kpi-value,
.dashboard-page .dashboard-panel-metric {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #1f2f5f;
}

.dashboard-page .kpi-sub {
    margin: 6px 0 8px;
    color: #7584a1;
    font-size: 12px;
}

.dashboard-page .kpi-sparkline {
    display: block;
    width: 100% !important;
    height: 42px !important;
    max-height: 42px !important;
}

.dashboard-page .chart-wrap,
.dashboard-page .dashboard-chart-wrap {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    position: relative;
    overflow: visible;
}

.dashboard-page .chart-wrap canvas,
.dashboard-page .dashboard-chart-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
}

.dashboard-chart-tooltip {
    position: absolute;
    z-index: 120;
    min-width: 170px;
    max-width: 240px;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: rgba(28, 39, 64, 0.97);
    color: #fff;
    box-shadow: 0 16px 30px rgba(17, 28, 51, 0.28);
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
    opacity: 0;
    transition: opacity 0.14s ease;
}

.dashboard-chart-tooltip.is-visible {
    opacity: 1;
}

.dashboard-chart-tooltip-title {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-chart-tooltip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.dashboard-chart-tooltip-row + .dashboard-chart-tooltip-row {
    margin-top: 0.25rem;
}

.dashboard-chart-tooltip-key {
    color: rgba(255, 255, 255, 0.74);
}

.dashboard-chart-tooltip-value {
    font-weight: 700;
    text-align: right;
}

.customer-filter-grid-single {
    grid-template-columns: 1fr !important;
}

.customer-filter-grid-single label {
    width: 100%;
}

.customer-filters-picker {
    position: relative;
}

.customer-filters-popover {
    width: min(38rem, calc(100vw - 6rem));
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(18, 28, 45, 0.12);
}

.customer-filters-popover .manifest-filters-popover-head {
    padding: 0.8rem 0.95rem;
}

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

.customer-filter-panel-main,
.customer-filter-panel-side {
    padding: 0.8rem 0.95rem;
}

.customer-filter-panel-main {
    background: #f3f6fa;
    border-bottom: 1px solid #edf1f6;
}

.customer-filter-panel-side {
    background: #ffffff;
    align-items: flex-start;
    justify-content: flex-start;
}

.customer-filter-card {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.customer-filter-card .manifest-filter-card-title {
    margin-bottom: 0.55rem;
}

.customer-filter-panel-main .manifest-filter-search {
    margin-bottom: 0;
}

.customer-filter-search-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.customer-filter-search-row span {
    margin: 0;
}

.customer-filter-panel-main .manifest-filter-search input,
.customer-filter-grid-single input,
.customer-filter-grid-single select {
    border-radius: 8px;
    height: 2rem;
}

.customer-filter-grid-single {
    gap: 3px;
}

.customer-filters-popover .customer-filter-grid-single label {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 3px 8px;
    border: 0;
    border-radius: 8px;
    background: #f2f5f9;
    white-space: nowrap;
}

.customer-filters-popover .customer-filter-grid-single label span {
    margin: 0;
    color: #53627d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.customer-filters-popover .customer-filter-grid-single label input,
.customer-filters-popover .customer-filter-grid-single label select {
    border: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    min-width: 0;
    box-shadow: none;
}

.customer-filters-popover .customer-filter-grid-single label input:focus,
.customer-filters-popover .customer-filter-grid-single label select:focus {
    outline: none;
}

.customer-filters-popover .manifest-filters-popover-actions {
    padding: 0.8rem 0.95rem;
}

.manifest-filters-popover-manifest {
    width: min(38rem, calc(100vw - 6rem));
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(18, 28, 45, 0.12);
}

.manifest-filters-popover-manifest .manifest-filters-popover-head {
    padding: 0.8rem 0.95rem;
}

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

.manifest-filter-panel-main-manifest,
.manifest-filter-panel-side-manifest {
    padding: 0.8rem 0.95rem;
}

.manifest-filter-panel-main-manifest {
    background: #f3f6fa;
    border-bottom: 1px solid #edf1f6;
}

.manifest-filter-panel-side-manifest {
    background: #ffffff;
    align-items: flex-start;
    justify-content: flex-start;
}

.manifest-filter-panel-main-manifest .manifest-filter-search {
    margin-bottom: 0;
}

.manifest-filter-panel-main-manifest .manifest-filter-search span {
    margin: 0;
}

.manifest-filter-panel-main-manifest .manifest-filter-search input,
.manifest-filter-panel-side-manifest .manifest-filter-grid-product input,
.manifest-filter-panel-side-manifest .manifest-filter-grid-product select {
    border-radius: 8px;
    height: 2rem;
}

.manifest-filter-panel-main-manifest .manifest-filter-grid-date {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manifest-filter-panel-main-manifest .manifest-filter-grid-date label:nth-child(3) {
    grid-column: auto;
}

.manifest-filter-card-manifest {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.manifest-filter-card-manifest .manifest-filter-card-title {
    margin-bottom: 0.55rem;
}

.manifest-filter-panel-side-manifest .manifest-filter-grid-product {
    gap: 3px;
}

.manifest-filter-panel-side-manifest .manifest-filter-grid-product label {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 3px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    white-space: nowrap;
}

.manifest-filter-panel-side-manifest .manifest-filter-grid-product label span {
    margin: 0;
    color: #53627d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.manifest-filter-panel-side-manifest .manifest-filter-grid-product label input,
.manifest-filter-panel-side-manifest .manifest-filter-grid-product label select {
    border: 0;
    background: #f3f6fa;
    padding: 3px 10px;
    width: 100%;
    min-width: 0;
    box-shadow: none;
}

.manifest-filter-panel-main-manifest .manifest-filter-search input,
.manifest-filter-panel-main-manifest .manifest-filter-grid-date input,
.manifest-filter-panel-main-manifest .manifest-filter-grid-date select {
    background: #f3f6fa;
    padding: 3px 10px;
}

.manifest-filter-panel-side-manifest .manifest-filter-grid-product label input:focus,
.manifest-filter-panel-side-manifest .manifest-filter-grid-product label select:focus {
    outline: none;
}

.manifest-filters-popover-manifest .manifest-filters-popover-actions {
    padding: 0.8rem 0.95rem;
}

.dashboard-page .bar-list {
    display: grid;
    gap: 8px;
}

.dashboard-page .bar-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #51617e;
}

.dashboard-page .bar-track {
    height: 8px;
    border-radius: 999px;
    background: #e7eefb;
    overflow: hidden;
}

.dashboard-page .bar-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4c8fe1, #2f7bf6);
}

.dashboard-page .dashboard-panel-metric-small {
    font-size: 2rem;
}

.dashboard-page .dashboard-activity-list {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.dashboard-page .dashboard-activity-list li {
    display: grid;
    gap: 0.2rem;
    color: #5d6b84;
    font-size: 0.84rem;
}

.dashboard-page .dashboard-activity-list li strong {
    color: #26344d;
}

.dashboard-page .dashboard-activity-list li em {
    color: #8d9bb2;
    font-style: normal;
    font-size: 0.76rem;
}

.dashboard-page .dashboard-activity-list .is-empty {
    color: #8d9bb2;
}

.dashboard-page .dashboard-quick-links {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.dashboard-page .dashboard-quick-links a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 6px;
    background: #f4f7fe;
    color: #2f4b82;
    font-size: 0.86rem;
    font-weight: 700;
}

.manifest-empty {
    padding: 2rem;
    border: 1px solid #c7d1dc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.manifest-empty h2 {
    margin: 0 0 0.5rem;
}

.manifest-empty p {
    margin: 0;
    color: #647184;
}

@media (max-width: 1100px) {
    .dashboard-main-layout {
        grid-template-columns: 1fr;
    }

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

    .manifest-filters-popover {
        width: min(28rem, calc(100vw - 2rem));
    }

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

    .manifest-filter-panel-left {
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
    }

    .manifest-rule-form,
    .manifest-rule-edit-form {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .manifest-page-header,
    .manifest-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .manifest-booking-dialog {
        width: min(96vw, 980px);
    }

    .manifest-booking-dialog-grid {
        grid-template-columns: 1fr;
    }

    .manifest-booking-payment,
    .manifest-booking-details {
        grid-template-columns: 1fr;
    }
}
