:root {
    --bg: #09111d;
    --bg-strong: #0e1726;
    --panel: rgba(15, 23, 42, 0.9);
    --panel-strong: rgba(17, 26, 44, 0.96);
    --panel-soft: rgba(11, 18, 32, 0.84);
    --line: rgba(143, 166, 187, 0.16);
    --line-strong: rgba(143, 166, 187, 0.28);
    --ink: #e6eef8;
    --ink-soft: #cad7e5;
    --muted: #8fa6bb;
    --accent: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.14);
    --sun: #f59e0b;
    --navy: #8fc2ff;
    --white: #f8fbff;
    --control: rgba(18, 29, 48, 0.96);
    --control-hover: rgba(24, 37, 61, 0.98);
    --surface-soft: rgba(20, 32, 52, 0.82);
    --surface-muted: rgba(14, 22, 37, 0.94);
    --success-soft: rgba(34, 197, 94, 0.14);
    --warning-soft: rgba(245, 158, 11, 0.16);
    --danger-soft: rgba(248, 113, 113, 0.16);
    --chart-ink: #dce8f5;
    --chart-muted: #8fa6bb;
    --chart-grid: rgba(143, 166, 187, 0.16);
    --chart-surface-border: #0f172a;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

body[data-company="alfaparf"] {
    --accent: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, 0.14);
}

body[data-company="santa_clara"] {
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.14);
}

body[data-company="cora"] {
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.14);
}

body[data-company="kert"] {
    --accent: #a78bfa;
    --accent-soft: rgba(167, 139, 250, 0.14);
}

body[data-company="cinco"] {
    --accent: #34d399;
    --accent-soft: rgba(52, 211, 153, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79, 195, 247, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 34%),
        linear-gradient(180deg, #08101a 0%, var(--bg) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(143, 166, 187, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 166, 187, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 40px));
    margin: 32px auto 48px;
}

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(79, 195, 247, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(6, 11, 22, 0.98), rgba(8, 14, 28, 0.98));
}

.auth-screen[hidden] {
    display: none !important;
}

.page-shell[hidden] {
    display: none !important;
}

body.bootstrap-login #app-shell {
    display: none !important;
}

body.bootstrap-login #auth-screen {
    display: grid !important;
}

body.bootstrap-dashboard #auth-screen {
    display: none !important;
}

body.bootstrap-dashboard #app-shell {
    display: block !important;
}

.public-city-shell[hidden] {
    display: none !important;
}

body.bootstrap-public {
    background: #b7d0d5;
}

body.bootstrap-public::before {
    display: none;
}

.public-city-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
}

.public-city-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px clamp(16px, 3vw, 40px);
    background: rgba(238, 245, 243, 0.96);
    border-bottom: 1px solid #b7cece;
}

.public-city-brand {
    color: #173e49;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.public-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    background: #146c80;
    font-weight: 700;
    text-decoration: none;
}

.public-city-main {
    width: 100%;
    min-width: 0;
    padding: 12px;
}

.public-city-host {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 88px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.public-city-host::after {
    display: none !important;
}

.auth-card {
    width: min(520px, 100%);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.98), rgba(10, 16, 30, 0.96));
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 10px 0 12px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.auth-card p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form .field {
    display: grid;
    gap: 8px;
}

.auth-form .field span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(225, 235, 246, 0.72);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--control);
    color: var(--ink);
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(79, 195, 247, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.14);
}

.auth-submit {
    margin-top: 4px;
}

.auth-status {
    margin: 0;
    min-height: 1.2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-card,
.panel,
.kpi-card {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-card,
.panel {
    border-radius: var(--radius-lg);
}

.collapsible-block {
    position: relative;
}

.block-collapse-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
    background: var(--control);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.block-collapse-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.block-collapse-icon {
    font-size: 1rem;
    line-height: 1;
}

.block-collapse-bar {
    display: none;
    align-items: center;
    min-height: 40px;
    padding-right: 52px;
}

.block-collapse-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
}

.collapsible-block.is-collapsed {
    min-height: 0;
    padding: 16px 18px;
}

.collapsible-block.is-collapsed::after {
    display: none;
}

.collapsible-block.is-collapsed > :not(.block-collapse-bar):not(.block-collapse-toggle) {
    display: none !important;
}

.collapsible-block.is-collapsed > .block-collapse-bar {
    display: flex;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 26px;
    overflow: hidden;
}

.hero-card.system-shell {
    position: relative;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
}

.hero-card.system-shell::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 212, 191, 0.08), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(79, 195, 247, 0.08), transparent 22%);
    opacity: 0.9;
}

.system-shell-copy,
.system-preview {
    position: relative;
    z-index: 1;
}

.system-shell-copy {
    display: grid;
    gap: 16px;
    align-content: start;
}

.system-shell-copy-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.system-title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.system-lead {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

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

.system-chip {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(14, 22, 37, 0.96), rgba(10, 16, 28, 0.98));
}

.system-chip span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.system-chip strong {
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.35;
}

.system-actions {
    margin-top: 2px;
}

.hero-os-field {
    min-width: 220px;
}

.system-preview {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(143, 166, 187, 0.16);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.88), rgba(12, 19, 33, 0.98));
}

.system-preview-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.system-preview-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: var(--ink);
    background: rgba(45, 212, 191, 0.12);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-preview-tag.is-soft {
    border-color: rgba(143, 166, 187, 0.18);
    background: rgba(18, 29, 48, 0.92);
    color: var(--ink-soft);
}

.system-preview-window {
    border-radius: 20px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 24, 0.98));
}

.system-preview-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(143, 166, 187, 0.12);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(143, 166, 187, 0.5);
}

.system-dot:first-child {
    background: rgba(45, 212, 191, 0.8);
}

.system-terminal-lines {
    display: grid;
    gap: 10px;
    padding: 16px 14px 18px;
}

.system-terminal-lines p {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.system-terminal-lines p::before {
    content: ">";
    margin-right: 8px;
    color: var(--accent);
    font-weight: 800;
}

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

.system-preview-card {
    display: grid;
    gap: 6px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(18, 29, 48, 0.92);
}

.system-preview-card span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.system-preview-card strong {
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.35;
}

.hero-card > .block-collapse-toggle,
.hero-card > .block-collapse-bar {
    display: none !important;
}

.hero-card::after {
    display: none;
}

.hero-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.eyebrow,
.mini-label,
.kpi-label,
.future-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
}

.panel-head h2,
.selection-head h3 {
    margin: 10px 0 12px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.04;
}

.panel-note,
.chart-caption,
.map-caption,
.future-card p,
.selection-content p,
.detail-meta {
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
}

.hero-company-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--control);
}

.hero-company-field span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-company-field select {
    min-width: 150px;
    border: 0;
    padding: 0;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    background: transparent;
}

.hero-company-field select:focus {
    outline: none;
}

.ghost-button,
.secondary-button,
.text-button,
.icon-button,
.selection-chip,
.client-item,
.client-item-name {
    font: inherit;
}

.ghost-button {
    border: 1px solid rgba(143, 166, 187, 0.25);
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
    background: rgba(18, 29, 48, 0.96);
    transition: border-color 0.2s ease, background 0.2s ease;
    box-shadow: none;
}

.ghost-button:hover {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(24, 37, 61, 0.98);
}

.danger-button {
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    color: #fecaca;
    background: var(--danger-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.danger-button:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.44);
    box-shadow: 0 12px 26px rgba(248, 113, 113, 0.12);
}

.secondary-button,
.icon-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
    background: var(--control);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.secondary-button:hover,
.icon-button:hover,
.text-button:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.32);
    background: var(--control-hover);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.ghost-button:disabled,
.secondary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ghost-button:disabled:hover,
.secondary-button:disabled:hover {
    transform: none;
    background: inherit;
    border-color: var(--line);
    box-shadow: none;
}

.text-button {
    border: 0;
    padding: 0;
    font-weight: 800;
    cursor: pointer;
    color: var(--accent);
    background: transparent;
}

.small-button {
    padding: 8px 14px;
    font-size: 0.88rem;
}

#freq-new-order,
[data-frequency-add-order] {
    border-color: rgba(74, 222, 128, 0.42);
    color: #d9fbe6;
    background: linear-gradient(180deg, rgba(17, 70, 43, 0.96), rgba(15, 58, 36, 0.96));
    min-width: 56px;
    min-height: 56px;
    padding: 0 18px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#freq-new-order:hover,
[data-frequency-add-order]:hover,
#freq-new-order:focus-visible,
[data-frequency-add-order]:focus-visible {
    border-color: rgba(74, 222, 128, 0.72);
    background: linear-gradient(180deg, rgba(20, 84, 51, 0.98), rgba(16, 67, 42, 0.98));
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 14px;
}

.desktop-nav-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1;
}

.desktop-nav-back-button {
    min-width: 88px;
    padding-inline: 14px;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: rgba(79, 195, 247, 0.12);
}

.status-pill.is-hidden {
    display: none !important;
}

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

.kpi-card {
    border-radius: var(--radius-md);
    min-height: 136px;
    padding: 20px 18px 18px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.kpi-card:hover {
    transform: none;
    box-shadow: none;
}

.kpi-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: clamp(1.08rem, 1.35vw, 1.58rem);
    line-height: 0.98;
    letter-spacing: 0.005em;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.frequency-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.frequency-kpi-card {
    position: relative;
    min-height: 142px;
    padding: 15px 16px 16px;
    border-radius: 20px;
    overflow: hidden;
}

.frequency-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: rgba(23, 63, 116, 0.14);
}

.frequency-kpi-card strong {
    margin: 10px 0 8px;
    font-size: clamp(1.28rem, 1.58vw, 1.8rem);
    line-height: 0.98;
}

.frequency-kpi-card .kpi-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.frequency-kpi-card p {
    margin: 0;
}

.frequency-kpi-card.is-hot {
    background: linear-gradient(180deg, rgba(8, 32, 18, 0.92), rgba(15, 23, 42, 0.96));
    border-color: rgba(34, 197, 94, 0.18);
}

.frequency-kpi-card.is-hot::before {
    background: rgba(17, 129, 77, 0.28);
}

.frequency-kpi-card.is-watch {
    background: linear-gradient(180deg, rgba(49, 34, 8, 0.94), rgba(15, 23, 42, 0.96));
    border-color: rgba(245, 158, 11, 0.18);
}

.frequency-kpi-card.is-watch::before {
    background: rgba(186, 130, 8, 0.28);
}

.frequency-kpi-card.is-reactivate {
    background: linear-gradient(180deg, rgba(48, 17, 17, 0.94), rgba(15, 23, 42, 0.96));
    border-color: rgba(248, 113, 113, 0.18);
}

.frequency-kpi-card.is-reactivate::before {
    background: rgba(207, 69, 54, 0.28);
}

.desktop-stage {
    position: relative;
    display: grid;
    gap: 18px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(143, 166, 187, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(79, 195, 247, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(10, 16, 28, 0.8), rgba(8, 14, 24, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.desktop-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(143, 166, 187, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 166, 187, 0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
    opacity: 0.8;
}

.desktop-stage > * {
    position: relative;
    z-index: 1;
}

.desktop-stage-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.desktop-stage-head h2 {
    margin: 8px 0 0;
    font-family: inherit;
    font-size: clamp(1.28rem, 1.8vw, 1.86rem);
    line-height: 1.04;
}

.desktop-folders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(10, 16, 28, 0.78);
}

.desktop-taskbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(143, 166, 187, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(9, 14, 24, 0.98), rgba(12, 19, 33, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.desktop-taskbar-start,
.desktop-taskbar-clock {
    display: grid;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(18, 29, 48, 0.88);
    border: 1px solid rgba(143, 166, 187, 0.14);
}

.desktop-taskbar-brand,
.desktop-taskbar-clock strong {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.desktop-taskbar-status,
.desktop-taskbar-clock-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.desktop-taskbar-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 auto;
}

.taskbar-button {
    border: 1px solid rgba(143, 166, 187, 0.18);
    border-radius: 14px;
    padding: 7px 10px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--ink-soft);
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.98), rgba(11, 18, 32, 0.98));
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.1;
    white-space: nowrap;
}

.taskbar-button:hover,
.taskbar-button.is-active {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.42);
    color: var(--ink);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.taskbar-button.is-active {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.18), rgba(18, 29, 48, 0.98));
}

.tab-button {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px 16px 14px 14px;
    padding: 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    color: var(--ink-soft);
    background: linear-gradient(180deg, rgba(20, 32, 52, 0.98), rgba(12, 19, 33, 0.98));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.desktop-folder-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
}

.desktop-folder-card::before,
.desktop-folder-card::after {
    display: none;
}

.desktop-folder-icon {
    position: relative;
    width: 32px;
    height: 24px;
    border-radius: 5px 5px 3px 3px;
    border: 1px solid rgba(143, 166, 187, 0.28);
    background: linear-gradient(180deg, rgba(38, 53, 79, 0.98), rgba(22, 34, 54, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.desktop-folder-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -6px;
    width: 14px;
    height: 6px;
    border-radius: 4px 4px 0 0;
    background: rgba(45, 212, 191, 0.28);
}

.desktop-folder-copy {
    display: grid;
    gap: 4px;
}

.desktop-folder-copy strong {
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.16;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.desktop-folder-copy small {
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tab-button:hover,
.tab-button.is-active {
    transform: none;
    border-color: rgba(45, 212, 191, 0.42);
    box-shadow: none;
}

.tab-button.is-active {
    color: var(--ink);
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.16), rgba(18, 29, 48, 0.98));
}

.dashboard-tab-panel {
    display: grid;
    gap: 20px;
    margin-top: 2px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(13, 20, 36, 0.96), rgba(10, 16, 30, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), var(--shadow);
}

.dashboard-tab-panel[hidden] {
    display: none !important;
}

.archive-panel {
    display: grid;
    gap: 18px;
}

.archive-folder-select {
    min-width: 220px;
    max-width: 280px;
    padding-inline: 14px;
}

.archive-shell {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.4fr) minmax(260px, 0.92fr);
    gap: 16px;
    align-items: start;
}

.archive-sidebar,
.archive-main,
.archive-downloads {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(12, 19, 33, 0.88);
}

.archive-folder-list,
.archive-file-list,
.archive-download-list {
    display: grid;
    gap: 10px;
}

.archive-note-composer {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(12, 19, 33, 0.9);
}

.archive-note-composer[hidden] {
    display: none !important;
}

.archive-note-composer .field {
    margin-bottom: 0;
}

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

.archive-note-grid textarea {
    min-height: 180px;
    resize: vertical;
}

.archive-folder-card,
.archive-file-card,
.archive-download-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(9, 17, 29, 0.9);
}

.archive-folder-card {
    cursor: pointer;
}

.archive-folder-card.is-notes {
    border-color: rgba(45, 212, 191, 0.24);
    background: linear-gradient(180deg, rgba(10, 20, 30, 0.96), rgba(8, 15, 26, 0.94));
}

.archive-folder-card.is-active {
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08);
}

.archive-folder-head,
.archive-file-head,
.archive-download-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.archive-folder-head strong,
.archive-file-head strong,
.archive-download-head strong {
    color: var(--ink);
    line-height: 1.35;
}

.archive-folder-meta,
.archive-file-meta,
.archive-download-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.archive-folder-actions,
.archive-file-actions,
.archive-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.archive-folder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(45, 212, 191, 0.12);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.archive-folder-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.archive-empty-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
}

.archive-file-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.archive-file-toolbar .panel-note {
    margin: 0;
}

.archive-download-card {
    border-color: rgba(79, 195, 247, 0.2);
}

.archive-download-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(45, 212, 191, 0.12);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.archive-file-toolbar {
    flex-wrap: wrap;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.panel-ranking {
    position: sticky;
    top: 18px;
    align-self: start;
}

.panel {
    padding: 24px;
}

.panel-map {
    grid-row: auto;
}

.selection-panel-inline {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-soft);
}

.selection-panel-inline .selection-content {
    gap: 12px;
}

.selection-panel-inline .selection-summary,
.selection-panel-inline .client-focus-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.panel-head,
.selection-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-head-main {
    display: grid;
    gap: 8px;
}

.desktop-panel-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-tools,
.selection-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.panel-tools .panel-note {
    margin: 0;
}

.frequency-month-nav {
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    gap: 8px;
}

.frequency-period-tools {
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px 12px;
}

.frequency-panel-monthly .frequency-period-tools {
    align-items: center;
}

.frequency-month-nav .status-pill {
    white-space: nowrap;
}

.frequency-month-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.frequency-month-stepper .status-pill {
    min-width: 92px;
    justify-content: center;
}

.panel-head h2,
.selection-head h3 {
    font-size: clamp(1.4rem, 1.6vw, 1.9rem);
}

.panel-note {
    max-width: 28ch;
    font-size: 0.95rem;
    text-align: right;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(180px, 0.6fr));
    gap: 14px;
    margin: 22px 0 18px;
}

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

.field span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--ink);
    font: inherit;
    background: var(--control);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.54);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.map-layout {
    display: block;
}

.territory-map {
    min-height: 640px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: radial-gradient(circle at top, rgba(45, 212, 191, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(79, 195, 247, 0.08), rgba(79, 195, 247, 0));
}

.selection-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.selection-content {
    display: grid;
    gap: 18px;
}

.selection-summary,
.client-focus-card {
    display: grid;
    gap: 16px;
}

.selection-stat-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-box,
.detail-box {
    padding: 14px;
    border-radius: 18px;
    background: var(--surface-soft);
}

.stat-box strong,
.detail-box strong {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
}

.detail-box span,
.stat-box span,
.client-item-meta,
.client-item-city {
    color: var(--muted);
    font-size: 0.88rem;
}

.selection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-inline-actions {
    min-height: 44px;
}

.selection-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    background: var(--control);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.selection-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 119, 111, 0.45);
}

.selection-chip strong {
    display: block;
    color: var(--navy);
}

.client-focus-card h4,
.selection-summary h4 {
    margin: 0;
    font-size: 1rem;
}

.client-focus-card .client-name {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.22;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: rgba(79, 195, 247, 0.12);
}

.chart-wrap {
    position: relative;
    min-height: 320px;
    margin-top: 8px;
}

.chart-wrap-bar {
    min-height: 360px;
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-wrap canvas[hidden],
.chart-empty[hidden] {
    display: none !important;
}

.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 20px;
    color: var(--muted);
    background: rgba(9, 17, 29, 0.82);
}

.chart-caption,
.map-caption {
    margin: 16px 0 0;
    font-size: 0.94rem;
}

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

.frequency-charts-grid,
.frequency-highlight-grid,
.frequency-list {
    display: grid;
    gap: 16px;
}

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

body[data-company="alfaparf"] .frequency-panel-redundant {
    display: none;
}

body[data-company="alfaparf"] #tab-territory > .kpi-grid {
    display: none;
}

body[data-company="alfaparf"] .frequency-kpi-grid,
body[data-company="alfaparf"] .frequency-panel-compare,
body[data-company="alfaparf"] .frequency-panel-history,
body[data-company="alfaparf"] .frequency-panel-annual,
body[data-company="alfaparf"] .frequency-panel-goal,
body[data-company="alfaparf"] .frequency-panel-charts,
body[data-company="alfaparf"] .frequency-panel-highlights,
body[data-company="alfaparf"] .frequency-panel-client-list {
    display: none;
}

.frequency-history-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 14px;
}

.frequency-history-stat {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.frequency-history-stat strong {
    color: var(--navy);
    font-size: 1.22rem;
    line-height: 1.18;
}

.frequency-history-grid {
    display: grid;
    gap: 12px;
    max-height: 480px;
    overflow: auto;
    padding-right: 4px;
}

.panel-head-compact {
    margin-bottom: 14px;
}

.panel-head-compact h3 {
    margin: 0;
    font-size: 1.1rem;
}

.panel-head-compact .panel-note {
    max-width: 26ch;
    text-align: left;
}

.frequency-drilldown-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.frequency-drilldown-stat {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.frequency-drilldown-stat strong {
    color: var(--navy);
    font-size: 1.22rem;
    line-height: 1.18;
}

.frequency-drilldown-stat p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.frequency-drilldown-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.frequency-inline-toggle {
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 800;
    background: var(--control);
}

.frequency-inline-toggle:hover:not(:disabled),
.frequency-inline-toggle:focus-visible:not(:disabled) {
    border-color: rgba(45, 212, 191, 0.46);
    color: var(--ink);
    outline: none;
}

.frequency-inline-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.frequency-added-orders {
    display: grid;
    gap: 8px;
    margin-top: 2px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.frequency-added-orders[hidden] {
    display: none !important;
}

.frequency-added-order {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(9, 17, 29, 0.72);
}

.frequency-added-order strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.frequency-added-order p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.frequency-goal-inline {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(13, 21, 36, 0.9);
}

.frequency-goal-inline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.frequency-goal-inline-tools {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.frequency-goal-inline .chart-caption {
    margin: 0;
    max-width: none;
    font-size: 0.85rem;
    line-height: 1.45;
}

.frequency-goal-inline-wrap {
    min-height: 140px;
    margin-top: 0;
}

.frequency-goal-inline-wrap .chart-empty {
    border-radius: 14px;
}

.frequency-drilldown-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
}

body[data-company="alfaparf"] .frequency-history-summary {
    display: none;
}

body[data-company="alfaparf"] .frequency-drilldown-summary {
    grid-template-columns: 1fr;
}

body[data-company="alfaparf"] .frequency-drilldown-stat {
    padding: 12px 16px;
    min-height: auto;
}

body[data-company="alfaparf"] #freq-month-drilldown-note,
body[data-company="alfaparf"] #freq-month-drilldown-value-sub,
body[data-company="alfaparf"] #freq-month-drilldown-orders-sub,
body[data-company="alfaparf"] #freq-month-drilldown-buyers-sub,
body[data-company="alfaparf"] #freq-month-drilldown-added-sub {
    display: none;
}

body[data-company="alfaparf"] .frequency-drilldown-grid {
    grid-template-columns: 1fr;
}

body[data-company="alfaparf"] .frequency-drilldown-card-context {
    display: none;
}

body[data-company="alfaparf"] .frequency-drilldown-card {
    padding: 12px;
    border-radius: 18px;
}

body[data-company="alfaparf"] .frequency-drilldown-buyer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
}

body[data-company="alfaparf"] .frequency-drilldown-rank {
    min-width: 28px;
    min-height: 28px;
    font-size: 0.7rem;
}

body[data-company="alfaparf"] .frequency-drilldown-buyer-copy strong,
body[data-company="alfaparf"] .frequency-drilldown-buyer-meta strong {
    font-size: 0.92rem;
}

.frequency-drilldown-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
}

.frequency-drilldown-buyers,
.frequency-drilldown-context-grid {
    display: grid;
    gap: 10px;
}

.frequency-drilldown-buyer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: left;
    color: inherit;
    background: rgba(14, 22, 37, 0.9);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.frequency-drilldown-buyer:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.frequency-drilldown-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    color: #06101c;
    font-size: 0.76rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8fc2ff, var(--accent));
}

.frequency-drilldown-buyer-copy,
.frequency-drilldown-buyer-meta,
.frequency-drilldown-context-item {
    display: grid;
    gap: 4px;
}

.frequency-drilldown-buyer-copy strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.frequency-drilldown-buyer-copy small,
.frequency-drilldown-buyer-meta small,
.frequency-drilldown-context-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
}

.frequency-drilldown-buyer-meta {
    text-align: right;
}

.frequency-drilldown-buyer-meta strong,
.frequency-drilldown-context-item strong {
    color: var(--navy);
    font-size: 1rem;
}

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

.frequency-drilldown-context-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(9, 17, 29, 0.72);
}

.frequency-drilldown-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.frequency-month-matrix {
    display: grid;
    gap: 10px;
    min-width: 980px;
}

.frequency-month-matrix-head,
.frequency-month-row {
    display: grid;
    grid-template-columns: 72px repeat(12, minmax(66px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.frequency-month-matrix-year,
.frequency-month-matrix-month {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 12px;
    background: rgba(12, 19, 33, 0.86);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.frequency-month-matrix-year {
    justify-content: flex-start;
    padding-inline: 8px;
}

.frequency-month-row {
    grid-template-columns: 72px repeat(12, minmax(66px, 1fr));
}

.frequency-month-year {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    background: rgba(12, 19, 33, 0.92);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.frequency-month-cell {
    display: grid;
    gap: 4px;
    min-height: 82px;
    padding: 10px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: left;
    color: inherit;
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.94), rgba(17, 26, 44, 0.98));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.frequency-month-cell.is-heat-1 {
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.92), rgba(17, 26, 44, 0.98));
}

.frequency-month-cell.is-heat-2 {
    background: linear-gradient(180deg, rgba(17, 30, 49, 0.96), rgba(17, 26, 44, 0.98));
}

.frequency-month-cell.is-heat-3 {
    background: linear-gradient(180deg, rgba(20, 41, 61, 0.98), rgba(17, 26, 44, 0.98));
}

.frequency-month-cell.is-heat-4 {
    background: linear-gradient(180deg, rgba(21, 58, 76, 0.98), rgba(17, 26, 44, 0.98));
    border-color: rgba(45, 212, 191, 0.28);
}

.frequency-month-cell.is-heat-5 {
    background: linear-gradient(180deg, rgba(23, 84, 92, 0.98), rgba(17, 26, 44, 0.98));
    border-color: rgba(45, 212, 191, 0.42);
}

.frequency-month-cell:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.32);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.frequency-month-cell.is-active {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.frequency-month-cell strong {
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.frequency-month-cell span {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.1;
    color: var(--ink);
}

.frequency-month-cell small {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
}

.frequency-month-cell.is-empty {
    opacity: 0.42;
    cursor: default;
}

.frequency-month-cell.is-empty:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.frequency-month-cell.is-empty span {
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--muted);
}

.frequency-highlight-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

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

.frequency-highlight-card,
.frequency-item {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
}

.frequency-highlight-card {
    gap: 8px;
    padding: 16px 18px;
}

.frequency-highlight-button {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.frequency-highlight-button:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.38);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.frequency-highlight-card strong {
    font-size: 1rem;
}

.frequency-highlight-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.frequency-item-head,
.frequency-item-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.frequency-item-title {
    flex-direction: column;
}

.frequency-item-title h3,
.frequency-highlight-card strong {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

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

.frequency-status-chip,
.frequency-city-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.frequency-status-chip {
    color: var(--navy);
    background: rgba(23, 63, 116, 0.08);
}

.frequency-status-chip.is-aquecido,
.frequency-status-chip.is-comprou,
.frequency-status-chip.is-ativo {
    color: var(--accent);
    background: rgba(15, 119, 111, 0.12);
}

.frequency-status-chip.is-atencao,
.frequency-status-chip.is-aberto {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
}

.frequency-status-chip.is-reativar,
.frequency-status-chip.is-bloqueado {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.14);
}

.frequency-status-chip.is-sem-data,
.frequency-status-chip.is-sem-pedido {
    color: var(--muted);
    background: rgba(96, 112, 134, 0.12);
}

.frequency-city-link {
    border: 0;
    cursor: pointer;
    color: var(--ink-soft);
    background: rgba(79, 195, 247, 0.14);
}

.frequency-city-link:hover {
    transform: translateY(-1px);
}

.frequency-muted {
    align-self: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.frequency-empty-inline {
    position: static;
    min-height: 140px;
}

.frequency-order-stack {
    display: grid;
    gap: 12px;
}

.frequency-order-stack.is-compact {
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.84), rgba(17, 26, 44, 0.94));
}

.frequency-order-line {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(110px, 0.9fr) minmax(92px, 0.8fr) minmax(80px, 0.7fr) minmax(72px, auto);
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.frequency-order-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.frequency-order-line-head {
    padding-top: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.frequency-order-line strong {
    color: var(--navy);
    font-size: 1rem;
}

.frequency-order-line span {
    color: var(--muted);
    line-height: 1.4;
}

.frequency-order-line.is-manual strong {
    color: var(--accent);
}

.frequency-order-line-action {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.frequency-order-line-action .small-button {
    min-width: 42px;
    justify-content: center;
}

.frequency-order-line-action .danger-button.small-button {
    padding-inline: 12px;
}

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

.frequency-comparison-card {
    display: grid;
    gap: 10px;
    min-height: 148px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.frequency-comparison-card strong {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.05;
    color: var(--ink);
}

.frequency-comparison-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.frequency-comparison-card.is-goal {
    border-top: 6px solid #11a7c9;
}

.frequency-delta {
    font-size: 1.4rem;
    font-weight: 800;
}

.frequency-delta.is-positive,
.frequency-table-delta.is-positive {
    color: #11814d;
}

.frequency-delta.is-negative,
.frequency-table-delta.is-negative {
    color: #cf4536;
}

.frequency-delta.is-neutral,
.frequency-table-delta.is-neutral {
    color: var(--muted);
}

.frequency-goal-tools {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-items: end;
}

.frequency-goal-period-tools {
    align-items: flex-end;
}

.frequency-goal-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.frequency-goal-summary .status-pill {
    white-space: nowrap;
}

.frequency-goal-editor {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-top: 6px;
}

.frequency-goal-editor .field {
    flex: 1 1 280px;
}

.frequency-goal-wrap {
    min-height: 300px;
}

.frequency-table-shell {
    display: grid;
    gap: 12px;
}

.frequency-table {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel-strong);
}

.frequency-table-accordion {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.frequency-table-item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12, 19, 33, 0.9);
}

.frequency-table-item.is-open {
    border-color: rgba(79, 195, 247, 0.34);
}

.frequency-table-item-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.frequency-table-summary {
    display: grid;
    gap: 4px;
}

.frequency-table-summary strong {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.24;
}

.frequency-table-summary small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.3;
}

.frequency-table-summary-pill {
    justify-self: start;
    margin-top: 2px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: rgba(79, 195, 247, 0.12);
}

.frequency-row-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.frequency-table-item.is-open .frequency-row-toggle {
    transform: rotate(180deg);
}

.frequency-table-item-body {
    display: grid;
    gap: 10px;
}

.frequency-table-item-body[hidden] {
    display: none !important;
}

.frequency-table-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.frequency-table-detail-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 16, 28, 0.82);
}

.frequency-table-detail-item strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.frequency-table-detail-item small {
    color: var(--muted);
    font-size: 0.78rem;
}

.frequency-table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) repeat(4, minmax(110px, 0.95fr)) minmax(220px, 1.3fr);
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

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

.frequency-table-row.is-head {
    background: rgba(45, 212, 191, 0.08);
}

.frequency-table-row.is-head span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.frequency-table-row span {
    min-width: 0;
    color: var(--ink);
    line-height: 1.45;
}

.frequency-table-row.is-muted {
    background: rgba(12, 19, 33, 0.92);
}

.frequency-table-name {
    display: grid;
    gap: 4px;
}

.frequency-table-name strong {
    color: var(--navy);
    font-size: 0.98rem;
}

.frequency-table-name small {
    color: var(--muted);
    font-size: 0.84rem;
}

.frequency-table-money-date {
    display: grid;
    gap: 3px;
}

.frequency-table-money-date strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.frequency-table-money-date small {
    color: var(--muted);
    font-size: 0.82rem;
}

.frequency-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.frequency-table-actions .small-button {
    min-width: 78px;
    justify-content: center;
}

.frequency-table-actions [data-frequency-add-order] {
    min-width: 64px;
    min-height: 52px;
    font-size: 1.2rem;
}

.frequency-expand-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.frequency-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--control);
}

.activity-log {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.activity-log-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.92), rgba(17, 26, 44, 0.96));
}

.activity-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.activity-log-head strong {
    color: var(--navy);
}

.activity-log-head span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
    text-align: right;
}

.activity-log-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.frequency-order-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.84), rgba(17, 26, 44, 0.94));
}

.frequency-order-card.is-editing {
    border-color: rgba(15, 119, 111, 0.35);
    box-shadow: inset 0 0 0 1px rgba(15, 119, 111, 0.12);
}

.frequency-order-head,
.frequency-order-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.frequency-order-head strong,
.frequency-order-item-row strong {
    color: var(--navy);
}

.frequency-order-head span,
.frequency-order-item-row span {
    color: var(--muted);
    line-height: 1.45;
}

.frequency-order-items {
    display: grid;
    gap: 8px;
}

.panel-list {
    margin-top: 20px;
}

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

.client-list-empty {
    grid-column: 1 / -1;
}

.client-item {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-strong);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-item-compact {
    min-height: 0;
}

.client-item-compact .client-item-body {
    gap: 8px;
}

.client-item-compact .client-item-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.client-item-compact .client-item-actions {
    justify-content: flex-start;
}

.client-item-compact .client-item-name {
    font-size: 1.02rem;
}

.client-item-compact .client-photo-button {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    padding-inline: 12px;
    backdrop-filter: none;
}

.client-item.client-item-create {
    cursor: pointer;
    text-align: left;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    border-style: dashed;
    border-color: rgba(79, 195, 247, 0.34);
    background:
        radial-gradient(circle at top right, rgba(79, 195, 247, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(17, 26, 44, 0.96), rgba(11, 18, 32, 0.86));
}

.client-item.client-item-create:hover,
.client-item.client-item-create:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.68);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(45, 212, 191, 0.12);
    outline: none;
}

.client-item:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.42);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.client-item.is-selected {
    border-color: rgba(45, 212, 191, 0.58);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.client-item strong {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink);
}

.client-item-media {
    display: flex;
}

.client-item-compact .client-item-media {
    display: none;
}

.client-item-body {
    min-width: 0;
    display: grid;
    gap: 8px;
    align-content: start;
}

.client-item-create-body {
    justify-content: center;
    gap: 10px;
}

.client-photo-shell {
    position: relative;
    width: 100%;
    min-height: 190px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(79, 195, 247, 0.08), rgba(45, 212, 191, 0.14)),
        rgba(14, 22, 37, 0.92);
}

.client-photo,
.client-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: block;
    border-radius: 18px;
}

.client-photo {
    object-fit: cover;
}

.client-photo-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(215, 138, 52, 0.22), transparent 36%),
        linear-gradient(145deg, rgba(17, 26, 44, 0.96), rgba(22, 78, 99, 0.9));
}

.client-photo-placeholder span {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.client-create-shell {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    min-height: 190px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px dashed rgba(79, 195, 247, 0.42);
    background:
        radial-gradient(circle at top, rgba(45, 212, 191, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(16, 24, 41, 0.94), rgba(14, 78, 99, 0.78));
}

.client-create-plus {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.client-create-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(18, 29, 48, 0.86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.client-create-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18);
}
.client-photo-button {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.client-photo-button.has-image {
    background: rgba(18, 29, 48, 0.94);
}

.client-photo-button:disabled {
    cursor: not-allowed;
    opacity: 0.82;
    transform: none;
    box-shadow: none;
}

.client-item-header,
.client-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-item-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.client-item-name {
    padding: 0;
    border: 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
}

.client-item-name:hover {
    color: var(--accent);
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.future-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    border: 1px dashed var(--line);
    background: linear-gradient(180deg, rgba(17, 26, 44, 0.82), rgba(11, 18, 32, 0.62));
}

.future-step {
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--accent);
    background: rgba(15, 119, 111, 0.1);
}

.leaflet-control-zoom a {
    border-radius: 12px !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    background: var(--control) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--control-hover) !important;
}

.leaflet-control-attribution,
.leaflet-control-attribution a {
    color: var(--muted) !important;
    background: rgba(9, 17, 29, 0.78) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    color: var(--ink);
    background: rgba(17, 26, 44, 0.98);
}

.map-popup {
    display: grid;
    gap: 8px;
    min-width: 240px;
}

.map-popup strong {
    color: var(--navy);
}

.map-popup span {
    color: var(--muted);
    font-size: 0.88rem;
}

.map-popup-head,
.map-popup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.map-popup-caption {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.map-popup-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.72rem !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent) !important;
    background: rgba(45, 212, 191, 0.14);
}

.map-popup-icon-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink);
    background: var(--control);
}

.map-popup-icon-button:hover {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.map-edit-pin {
    position: relative;
}

.map-edit-pin-core {
    position: absolute;
    left: 8px;
    top: 10px;
    width: 18px;
    height: 18px;
    border: 3px solid #f8fbff;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 8px 18px rgba(17, 42, 70, 0.22);
}

.map-edit-pin-pencil {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #f8fbff;
    background: #0f172a;
    box-shadow: 0 6px 14px rgba(17, 42, 70, 0.18);
}

body.modal-open {
    overflow: hidden;
}

.dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: flex-start;
    justify-items: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(4, 8, 16, 0.68);
    backdrop-filter: blur(8px);
}

.dialog-backdrop[hidden] {
    display: none !important;
}

.edit-modal {
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    display: grid;
    gap: 20px;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(12, 19, 33, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.edit-modal-head,
.edit-actions,
.edit-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.edit-form {
    display: grid;
    gap: 18px;
}

.client-documents-panel {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.client-documents-head {
    align-items: flex-start;
}

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

.client-document-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(13, 20, 36, 0.92);
}

.client-document-card.has-value {
    border-color: rgba(45, 212, 191, 0.26);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.06);
}

.client-document-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.client-document-head strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    line-height: 1.35;
}

.client-document-state {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.client-document-card p,
.client-document-card small {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.client-document-card small {
    color: var(--ink-soft);
}

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

.client-document-note {
    font-size: 0.82rem;
    color: var(--muted);
}

.order-modal {
    width: min(1180px, 100%);
}

.order-summary {
    display: grid;
    gap: 12px;
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.order-calculator {
    margin-bottom: 16px;
}

.order-calculator-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(79, 195, 247, 0.08));
    border: 1px solid var(--line);
}

.order-calculator-card strong {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.7rem;
}

.order-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 18px;
}

.order-modal-main,
.order-modal-side {
    display: grid;
    gap: 16px;
}

.order-modal-side {
    padding-left: 8px;
    border-left: 1px solid var(--line);
}

.order-side-head {
    align-items: center;
}

.order-table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

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

.order-table th {
    background: rgba(45, 212, 191, 0.08);
    color: var(--ink);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.order-table tbody tr.is-editing {
    background: rgba(45, 212, 191, 0.08);
}

.order-table td strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
}

.order-table-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.14);
    color: #8ef0df;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-table-actions {
    width: 1%;
    white-space: nowrap;
}

.order-form {
    display: grid;
    gap: 16px;
}

.order-form .field input {
    font-size: 1rem;
}

.order-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.field-span-2 {
    grid-column: span 2;
}

.edit-help,
.edit-status {
    color: var(--muted);
    line-height: 1.6;
}

.order-modal .panel-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-modal .panel-note strong {
    color: var(--ink);
}

.order-modal .panel-note span {
    color: var(--muted);
}

.order-client-picker {
    display: grid;
    gap: 12px;
    align-content: start;
}

.order-client-picker .field {
    margin-bottom: 0;
}

.order-client-results {
    display: grid;
    gap: 10px;
}

.order-client-results-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.order-client-result {
    display: grid;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(13, 20, 36, 0.92);
    color: var(--ink);
}

.order-client-result strong {
    font-size: 0.95rem;
    line-height: 1.4;
}

.order-client-result small {
    color: var(--muted);
    line-height: 1.4;
}

.order-client-result-badge {
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.14);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-client-result.is-selected {
    border-color: rgba(45, 212, 191, 0.58);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.order-client-result:hover,
.order-client-result:focus-visible {
    border-color: rgba(45, 212, 191, 0.56);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
    outline: none;
}

.order-client-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.edit-status {
    font-size: 0.92rem;
    font-weight: 700;
}

.noscript-banner {
    padding: 16px;
    text-align: center;
    color: #fecaca;
    background: rgba(48, 17, 17, 0.98);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card,
.kpi-card,
.panel {
    animation: rise-in 0.55s ease both;
}

.kpi-card:nth-child(2) { animation-delay: 0.05s; }
.kpi-card:nth-child(3) { animation-delay: 0.1s; }
.kpi-card:nth-child(4) { animation-delay: 0.15s; }
.kpi-card:nth-child(5) { animation-delay: 0.2s; }

@media (max-width: 1220px) {
    .kpi-grid,
    .future-grid,
    .client-list,
    .frequency-comparison-grid,
    .frequency-highlight-grid,
    .frequency-list,
    .activity-log {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .workspace-grid,
    .hero-card,
    .map-layout,
    .frequency-charts-grid {
        grid-template-columns: 1fr;
    }

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

    .frequency-drilldown-summary,
    .frequency-drilldown-grid,
    .frequency-drilldown-context-grid {
        grid-template-columns: 1fr;
    }

    .archive-shell {
        grid-template-columns: 1fr;
    }

    .desktop-stage {
        padding: 16px;
    }

    .desktop-stage-head {
        align-items: flex-start;
    }

    .desktop-folders {
        padding: 10px;
    }

    .system-grid,
    .system-preview-grid {
        grid-template-columns: 1fr;
    }

    .frequency-month-matrix {
        min-width: 900px;
    }

    .panel-map {
        grid-row: auto;
    }

    .panel-note {
        text-align: left;
    }

    .panel-tools {
        justify-content: flex-start;
    }

    .archive-folder-select {
        max-width: none;
        width: 100%;
    }

    .desktop-taskbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .desktop-taskbar-apps {
        justify-content: stretch;
    }

    .taskbar-button {
        width: 100%;
        justify-content: flex-start;
    }

    .order-modal-layout,
    .order-summary-grid,
    .client-documents-grid {
        grid-template-columns: 1fr;
    }

    .frequency-table-row {
        grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(92px, 0.9fr)) minmax(170px, 1fr);
    }

    .order-modal-side {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(17, 42, 70, 0.08);
        padding-top: 16px;
    }
}

@media (max-width: 860px) {
    .dialog-backdrop {
        padding: 12px;
    }

    .edit-modal {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 20px;
        border-radius: 22px;
    }

    .page-shell {
        width: min(100% - 24px, 1440px);
        margin-top: 18px;
    }

    .kpi-grid,
    .client-list,
    .future-grid,
    .frequency-comparison-grid,
    .frequency-highlight-grid,
    .frequency-list,
    .activity-log,
    .frequency-charts-grid,
    .selection-stat-grid,
    .detail-grid,
    .frequency-detail-grid,
        .filter-grid,
        .frequency-filter-grid,
        .form-grid,
        .order-summary-grid,
        .client-documents-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .panel,
    .kpi-card {
        padding: 20px;
    }

    .dashboard-tab-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .hero-company-field {
        width: 100%;
        justify-content: space-between;
    }

    .hero-company-field select {
        min-width: 0;
        flex: 1;
    }

    .system-preview {
        padding: 16px;
    }

    .system-title {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .desktop-stage-head h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .desktop-folder-card {
        min-height: 84px;
    }

    .territory-map {
        min-height: 420px;
    }

    .field-span-2 {
        grid-column: span 1;
    }

    .edit-modal-head,
    .edit-actions,
    .edit-buttons,
    .archive-file-toolbar,
    .frequency-goal-editor,
    .frequency-goal-summary,
    .client-item-header,
    .client-item-actions,
    .frequency-item-head {
        align-items: stretch;
        flex-direction: column;
    }

    .frequency-goal-tools {
        justify-items: stretch;
    }

    .frequency-goal-summary {
        align-items: stretch;
    }

    .client-item {
        grid-template-columns: 1fr;
    }

    .client-photo-shell,
    .client-photo,
    .client-photo-placeholder {
        min-height: 220px;
    }

    .frequency-order-line,
    .frequency-order-line-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .frequency-order-line-action {
        justify-content: flex-start;
    }

    .frequency-table-row,
    .frequency-table-row.is-head {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .frequency-table-row.is-head {
        display: none;
    }

    .frequency-table-accordion {
        padding: 8px;
    }

    .frequency-table-item {
        padding: 10px;
    }

    .frequency-table-detail-grid {
        grid-template-columns: 1fr;
    }

    .frequency-table-actions {
        justify-content: flex-start;
    }

    .frequency-kpi-grid {
        grid-template-columns: 1fr;
    }

    .frequency-history-summary {
        grid-template-columns: 1fr;
    }

    .frequency-drilldown-summary,
    .frequency-drilldown-grid,
    .frequency-drilldown-context-grid {
        grid-template-columns: 1fr;
    }

    .frequency-month-matrix {
        min-width: 760px;
    }

    .frequency-drilldown-buyer {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .frequency-drilldown-buyer .secondary-button.small-button {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }
}

/* Retro desktop shell */
body.bootstrap-dashboard {
    font-family: "Silkscreen", "IBM Plex Sans", "Courier New", monospace;
    background: #090909;
    color: #111;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: default;
}

body.bootstrap-dashboard ::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

body.bootstrap-dashboard ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.bootstrap-dashboard ::-webkit-scrollbar-thumb {
    background-color: #dfdfdf;
    box-shadow:
        inset -1px -1px #0a0a0a,
        inset 1px 1px #fff,
        inset -2px -2px gray,
        inset 2px 2px #dfdfdf;
}

body.bootstrap-dashboard ::-webkit-scrollbar-corner {
    background: #dfdfdf;
}

body.bootstrap-dashboard::before {
    background-image:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 4px);
    background-size: auto;
    opacity: 0.42;
    mask-image: none;
}

body.bootstrap-dashboard .page-shell {
    position: relative;
    width: min(1460px, calc(100vw - 24px));
    min-height: calc(100vh - 24px);
    margin: 12px auto 56px;
}

body.bootstrap-dashboard #app-shell {
    position: relative;
    min-height: calc(100vh - 24px);
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 88px;
    border: 1px solid #8f8777;
    border-radius: 2px;
    background: #cdc6b3;
    box-shadow:
        inset 0 12px 0 8px #aca696,
        inset 0 -1px 0 rgba(255, 255, 255, 0.5),
        0 24px 44px rgba(0, 0, 0, 0.46);
}

body.bootstrap-dashboard #app-shell::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -52px;
    width: min(620px, 66%);
    height: 52px;
    transform: translateX(-50%);
    border-radius: 38px 38px 0 0;
    background: linear-gradient(180deg, #d7ccb4 0%, #bba788 100%);
    box-shadow:
        inset 0 10px 1px 6px #918973,
        0 10px 18px rgba(0, 0, 0, 0.24);
}

body.bootstrap-dashboard .hero-card.system-shell {
    display: none !important;
}

body.bootstrap-dashboard[data-desktop-view="home"] #app-shell {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #6a86d8;
    box-shadow: none;
}

body.bootstrap-dashboard[data-desktop-view="home"] #app-shell::after {
    display: none;
}

body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell {
    display: block !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #0e3e9f 0 13%, #6a86d8 13% 100%);
}

body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell::after {
    display: none;
}

body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell .system-shell-copy,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell .system-shell-copy-top,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell .system-grid,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell .system-preview,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell .hero-actions,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell #hero-total-clients,
body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell #hero-total-cities {
    display: none !important;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
}

body.bootstrap-dashboard[data-desktop-view="home"] {
    background:
        radial-gradient(circle at 18% 22%, rgba(124, 174, 255, 0.34), transparent 22%),
        radial-gradient(circle at 68% 42%, rgba(76, 118, 255, 0.22), transparent 28%),
        linear-gradient(180deg, #08133a 0%, #050816 100%);
}

body.bootstrap-dashboard[data-desktop-view="home"]::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 20%, rgba(186, 211, 255, 0.9), transparent 20%),
        radial-gradient(circle at 56% 36%, rgba(92, 143, 255, 0.42), transparent 28%),
        radial-gradient(circle at 46% 70%, rgba(64, 104, 212, 0.28), transparent 24%),
        linear-gradient(180deg, rgba(8, 42, 160, 0.72) 0%, rgba(55, 88, 194, 0.58) 54%, rgba(78, 119, 212, 0.58) 100%);
    filter: blur(30px) saturate(132%);
    opacity: 0.9;
    transform: scale(1.04);
    z-index: 0;
}

body.bootstrap-dashboard[data-desktop-view="home"] .hero-card.system-shell {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 18%, rgba(178, 210, 255, 0.92), transparent 22%),
        radial-gradient(circle at 70% 40%, rgba(101, 147, 255, 0.44), transparent 28%),
        radial-gradient(circle at 54% 68%, rgba(63, 105, 221, 0.28), transparent 26%),
        linear-gradient(180deg, rgba(6, 47, 154, 0.84) 0%, rgba(45, 85, 193, 0.72) 54%, rgba(80, 121, 214, 0.72) 100%);
    filter: blur(24px) saturate(125%);
    opacity: 0.95;
    transform: scale(1.08);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-topbar {
    min-height: 120px;
    padding: 30px 26px 22px;
    background: linear-gradient(180deg, #0438a8 0%, #05308e 100%);
    display: flex;
    align-items: flex-start;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-topbar-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 64px;
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
    align-self: center;
    justify-self: center;
    padding: 56px 56px 52px;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.52), transparent 18%),
        linear-gradient(180deg, rgba(111, 143, 224, 0.92) 0%, rgba(106, 134, 216, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(17, 49, 134, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 20px 40px rgba(0, 0, 0, 0.14);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-left {
    display: grid;
    place-items: center;
    min-height: 560px;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-brand {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-logo {
    display: inline-grid;
    place-items: center;
    min-width: 240px;
    min-height: 120px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-family: "Silkscreen", monospace;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-copy {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-right {
    display: grid;
    gap: 18px;
    align-content: start;
    padding-top: 18px;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-company-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 78px;
    padding: 10px 18px 10px 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    cursor: pointer;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-company-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-company-thumb {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    background: rgba(89, 114, 214, 0.65);
    font-family: "Silkscreen", monospace;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-company-card strong {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 110px;
    padding: 20px 24px 18px;
    background: linear-gradient(180deg, #2534a7 0%, #17409c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-power-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #3f46bf 0%, #2631aa 100%);
    color: #fff;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen-note {
    margin: 0;
    max-width: 560px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
    text-align: right;
}

body.bootstrap-dashboard[data-desktop-view="home"] .page-shell {
    width: calc(100vw - 24px);
    max-width: none;
    margin: 12px auto 40px;
}

body.bootstrap-dashboard[data-desktop-view="home"] .desktop-stage {
    display: none !important;
}

body.bootstrap-dashboard[data-desktop-view="home"] .home-screen[hidden] {
    display: none !important;
}

body.bootstrap-dashboard[data-desktop-view="panel"] .hero-card.system-shell {
    display: none !important;
}

body.bootstrap-dashboard .desktop-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 980px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #837b6d;
    border-radius: 12px;
    background:
        var(--company-desktop-wallpaper, url("/assets/company-desktop-xp.png")) center center / cover no-repeat,
        linear-gradient(180deg, #7fb5ff 0%, #6ea8f4 58%, #5aab1e 59%, #4c8e18 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 32px rgba(0, 0, 0, 0.14);
}

body.bootstrap-dashboard .hero-os-field select {
    color: #111;
    background: linear-gradient(180deg, #f1ebde 0%, #ddd5c4 100%);
}

body.bootstrap-dashboard .hero-os-field option {
    color: #111;
    background: #f1ebde;
}

body.bootstrap-dashboard .hero-desktop-toggle {
    min-height: 38px;
    padding-inline: 14px;
}

body.bootstrap-dashboard .desktop-stage > * {
    position: relative;
    z-index: 1;
}

body.bootstrap-dashboard .desktop-create-folder {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 8;
    width: 46px;
    height: 46px;
    border: 2px outset #f4ecd9;
    border-radius: 4px;
    background: linear-gradient(180deg, #f4ecd9, #d7cebb);
    color: #111;
    font: 700 1.65rem/1 monospace;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
}

body.bootstrap-dashboard[data-desktop-view="panel"] .desktop-create-folder {
    display: none;
}

.desktop-folder-modal {
    width: min(460px, calc(100vw - 32px));
}

body.bootstrap-dashboard .desktop-stage-head {
    display: none;
}

body.bootstrap-dashboard .desktop-folders {
    position: absolute;
    inset: 20px;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

body.bootstrap-dashboard:not([data-desktop-folders-ready="true"]) .desktop-folders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
    grid-auto-rows: 136px;
    gap: 28px 30px;
    align-content: start;
    justify-content: start;
}

body.bootstrap-dashboard[data-desktop-view="panel"] .desktop-folders {
    display: none !important;
}

body.bootstrap-dashboard .desktop-folder-shell {
    position: absolute;
    width: 228px;
    height: 156px;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

body.bootstrap-dashboard:not([data-desktop-folders-ready="true"]) .desktop-folder-shell {
    position: relative;
    left: auto;
    top: auto;
}

body.bootstrap-dashboard[data-desktop-folder-move="true"] .desktop-folder-shell {
    cursor: grab;
}

body.bootstrap-dashboard[data-desktop-folder-move="true"] .desktop-folder-card {
    cursor: grab;
}

body.bootstrap-dashboard[data-desktop-folder-move="true"] .desktop-folder-edit {
    background: linear-gradient(180deg, #f2ead7, #d8cfbd);
}

body.bootstrap-dashboard .desktop-folder-shell.is-dragging {
    z-index: 6;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
    cursor: grabbing;
}

body.bootstrap-dashboard .desktop-folder-card {
    position: absolute;
    inset: 0 auto auto 0;
    width: 252px;
    min-height: 174px;
    padding: 16px 14px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    grid-template-columns: 70px minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9);
    user-select: none;
    touch-action: manipulation;
    -webkit-user-drag: none;
    pointer-events: auto;
    cursor: pointer;
}

body.bootstrap-dashboard .desktop-folder-card:hover,
body.bootstrap-dashboard .desktop-folder-card.is-active {
    transform: none;
    border: 0;
    box-shadow: none;
}

body.bootstrap-dashboard .desktop-folder-edit {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(40, 36, 30, 0.45);
    border-radius: 50%;
    background: linear-gradient(180deg, #efe7d4, #d8cfbd);
    color: #111;
    font-family: inherit;
    font-size: 0.68rem;
    cursor: pointer;
    pointer-events: auto;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.85),
        inset -1px -1px 0 rgba(0, 0, 0, 0.14);
}

body.bootstrap-dashboard .desktop-folder-edit:hover {
    background: linear-gradient(180deg, #f7f1e7, #e0d7c6);
}

body.bootstrap-dashboard .desktop-trash-shell {
    width: 238px;
    height: 170px;
}

body.bootstrap-dashboard .desktop-trash-card {
    justify-content: center;
    gap: 10px;
}

body.bootstrap-dashboard .desktop-trash-icon {
    position: relative;
    width: 50px;
    height: 52px;
    border: 1px solid #5f6a77;
    border-radius: 3px 3px 4px 4px;
    background:
        linear-gradient(180deg, #ecf2f7 0%, #bcc8d3 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.72),
        inset -1px -1px 0 rgba(0, 0, 0, 0.16),
        2px 2px 0 rgba(0, 0, 0, 0.08);
}

body.bootstrap-dashboard .desktop-trash-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    top: -8px;
    width: 38px;
    height: 10px;
    border-radius: 2px 2px 0 0;
    background: #dbe4ec;
}

body.bootstrap-dashboard .desktop-trash-icon::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 18px;
    height: 20px;
    border: 1px solid rgba(84, 93, 103, 0.65);
    border-top: 0;
    border-radius: 0 0 2px 2px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 18%, transparent 18% 100%),
        linear-gradient(90deg, transparent 0 26%, rgba(84, 93, 103, 0.24) 26% 29%, transparent 29% 49%, rgba(84, 93, 103, 0.24) 49% 52%, transparent 52% 72%, rgba(84, 93, 103, 0.24) 72% 75%, transparent 75% 100%);
}

body.bootstrap-dashboard .desktop-trash-card .desktop-folder-copy small {
    color: rgba(255, 255, 255, 0.9);
}

body.bootstrap-dashboard .desktop-folder-icon {
    width: 72px;
    height: 50px;
    border: 1px solid #a16f00;
    border-radius: 4px 4px 3px 3px;
    background: linear-gradient(180deg, #ffd84d 0%, #e1ae00 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.35),
        inset -1px -1px 0 rgba(0, 0, 0, 0.18),
        2px 2px 0 rgba(0, 0, 0, 0.08);
}

body.bootstrap-dashboard .desktop-folder-icon::before {
    left: 7px;
    top: -11px;
    width: 28px;
    height: 11px;
    border-radius: 3px 3px 0 0;
    background: #ffe082;
}

body.bootstrap-dashboard .desktop-folder-icon.has-custom-image {
    background-size: cover;
    background-position: center;
}

body.bootstrap-dashboard .desktop-folder-copy {
    gap: 4px;
    justify-self: start;
    text-align: left;
}

body.bootstrap-dashboard .desktop-folder-copy strong {
    font-size: 0.9rem;
    line-height: 1.16;
    letter-spacing: 0.015em;
    overflow-wrap: anywhere;
}

body.bootstrap-dashboard .desktop-folder-copy small {
    font-size: 0.64rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.86);
    overflow-wrap: anywhere;
}

body.bootstrap-dashboard .dashboard-tab-panel {
    position: relative;
    margin-top: 4px;
    margin-left: 164px;
    width: min(860px, calc(100% - 178px));
    height: calc(100% - 10px);
    min-height: 0;
    overflow: auto;
    padding: 14px;
    border: 1px solid #7f7769;
    border-radius: 2px;
    background: #cfc8b9;
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #7b7465,
        0 10px 24px rgba(0, 0, 0, 0.24);
    align-self: stretch;
}

body.bootstrap-dashboard[data-desktop-view="panel"] .dashboard-tab-panel {
    margin-left: 0;
    width: 100%;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head {
    margin: -14px -14px 14px;
    padding: 8px 10px;
    border-bottom: 1px solid #000;
    background: linear-gradient(180deg, #0f2d8f 0%, #081f74 100%);
    color: #fff;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .eyebrow,
body.bootstrap-dashboard .dashboard-tab-panel > .panel-head h2,
body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .panel-note {
    color: #fff;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .panel-note {
    max-width: 34ch;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .panel-tools {
    gap: 8px;
}

body.bootstrap-dashboard .panel {
    border: 1px solid #7f7769;
    border-radius: 2px;
    background: rgba(20, 20, 20, 0.86);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.04),
        inset -1px -1px 0 rgba(0, 0, 0, 0.22);
}

body.bootstrap-dashboard .panel-head h2,
body.bootstrap-dashboard .selection-head h3,
body.bootstrap-dashboard .desktop-stage-head h2 {
    font-family: inherit;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head h2,
body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .panel-note,
body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .eyebrow,
body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .mini-label {
    font-weight: 550;
    letter-spacing: 0.025em;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head h2 {
    font-size: clamp(1.08rem, 1.32vw, 1.68rem);
    line-height: 1.02;
}

body.bootstrap-dashboard .dashboard-tab-panel > .panel-head .panel-note {
    max-width: 24ch;
    font-size: 0.78rem;
    line-height: 1.25;
}

body.bootstrap-dashboard .kpi-card strong,
body.bootstrap-dashboard .frequency-kpi-card strong,
body.bootstrap-dashboard .panel-head h2,
body.bootstrap-dashboard .selection-head h3 {
    font-weight: 550;
    letter-spacing: 0.012em;
}

body.bootstrap-dashboard .kpi-card,
body.bootstrap-dashboard .frequency-history-stat,
body.bootstrap-dashboard .frequency-drilldown-stat,
body.bootstrap-dashboard .frequency-drilldown-card,
body.bootstrap-dashboard .archive-sidebar,
body.bootstrap-dashboard .archive-main,
body.bootstrap-dashboard .archive-downloads {
    border: 1px solid #7f7769;
    border-radius: 2px;
    background: rgba(221, 216, 202, 0.95);
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #8b8371;
    color: #111;
}

body.bootstrap-dashboard .panel-head,
body.bootstrap-dashboard .selection-head {
    align-items: center;
}

body.bootstrap-dashboard .panel-head h2,
body.bootstrap-dashboard .panel-head .panel-note,
body.bootstrap-dashboard .panel-head .mini-label {
    color: inherit;
}

body.bootstrap-dashboard .desktop-taskbar {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 4px 6px;
    border: 1px solid #8b8371;
    border-radius: 2px;
    background: linear-gradient(180deg, #bcb8ad 0%, #a9a59b 100%);
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #777069;
    align-self: stretch;
    margin-top: auto;
    overflow: visible;
}

body.bootstrap-dashboard .desktop-taskbar-start-wrap {
    position: relative;
    z-index: 6;
    flex: 0 0 auto;
}

body.bootstrap-dashboard .desktop-taskbar-start,
body.bootstrap-dashboard .desktop-taskbar-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #787167;
    border-radius: 2px;
    background: linear-gradient(180deg, #dad5ca 0%, #b7b2a6 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.8),
        inset -1px -1px 0 rgba(0, 0, 0, 0.14);
}

body.bootstrap-dashboard .desktop-taskbar-start {
    padding-right: 14px;
    cursor: pointer;
    min-width: 156px;
    pointer-events: auto;
}

body.bootstrap-dashboard .desktop-taskbar-back {
    justify-content: center;
    min-width: 92px;
    pointer-events: auto;
}

body.bootstrap-dashboard .taskbar-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.bootstrap-dashboard .desktop-taskbar-brand {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: #111;
}

body.bootstrap-dashboard .desktop-taskbar-brand::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 1px solid #4f4a43;
    background:
        linear-gradient(90deg, #d94f4f 0 50%, #3b82f6 50% 100%),
        linear-gradient(180deg, #f2cf62 0 50%, #38bdf8 50% 100%);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55);
}

body.bootstrap-dashboard .desktop-taskbar-status,
body.bootstrap-dashboard .desktop-taskbar-clock-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: #333;
}

body.bootstrap-dashboard .desktop-taskbar-brand,
body.bootstrap-dashboard .desktop-taskbar-clock strong,
body.bootstrap-dashboard .taskbar-button,
body.bootstrap-dashboard .desktop-folder-copy strong,
body.bootstrap-dashboard .desktop-folder-copy small,
body.bootstrap-dashboard .hero-card.system-shell .eyebrow,
body.bootstrap-dashboard .dashboard-tab-panel > .panel-head,
body.bootstrap-dashboard .panel-head h2,
body.bootstrap-dashboard .selection-head h3,
body.bootstrap-dashboard .panel-note {
    text-transform: none;
}

body.bootstrap-dashboard .desktop-taskbar-apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

body.bootstrap-dashboard[data-desktop-view="home"] .desktop-taskbar-apps {
    justify-content: flex-start;
}

body.bootstrap-dashboard[data-desktop-view="panel"] .desktop-taskbar-apps {
    justify-content: flex-start;
}

body.bootstrap-dashboard .taskbar-button {
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #787167;
    border-radius: 2px;
    background: linear-gradient(180deg, #d9d4c9 0%, #bcb6aa 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.8),
        inset -1px -1px 0 rgba(0, 0, 0, 0.12);
    color: #111;
    font-family: inherit;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    pointer-events: auto;
}

body.bootstrap-dashboard .taskbar-button-trash {
    gap: 8px;
}

body.bootstrap-dashboard .taskbar-button-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

body.bootstrap-dashboard .taskbar-button-icon-home {
    width: 16px;
    height: 14px;
}

body.bootstrap-dashboard .taskbar-button-icon-home::before {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 0;
    height: 7px;
    border: 1px solid #36404c;
    border-top: 0;
    border-radius: 1px 1px 2px 2px;
    background: linear-gradient(180deg, #dce3ea 0%, #b7c0ca 100%);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.7);
}

body.bootstrap-dashboard .taskbar-button-icon-home::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 0;
    width: 12px;
    height: 9px;
    clip-path: polygon(50% 0%, 100% 50%, 100% 100%, 0 100%, 0 50%);
    border: 1px solid #36404c;
    border-bottom: 0;
    background: linear-gradient(180deg, #f4f8fb 0%, #c5d0db 100%);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.85);
}

body.bootstrap-dashboard .taskbar-button-icon-trash {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #4f5a66;
    border-radius: 3px 3px 4px 4px;
    background:
        linear-gradient(180deg, #f2f4f7 0%, #c7d0d8 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.7),
        inset -1px -1px 0 rgba(0, 0, 0, 0.16);
}

body.bootstrap-dashboard .taskbar-button-icon-trash::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -4px;
    width: 10px;
    height: 4px;
    border-radius: 2px 2px 0 0;
    background: #d9dfe5;
}

body.bootstrap-dashboard .taskbar-button-icon-trash::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 6px;
    height: 7px;
    border: 1px solid rgba(67, 73, 78, 0.55);
    border-top: 0;
    border-radius: 0 0 2px 2px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 18%, transparent 18% 100%),
        linear-gradient(90deg, transparent 0 25%, rgba(67, 73, 78, 0.26) 25% 28%, transparent 28% 48%, rgba(67, 73, 78, 0.26) 48% 51%, transparent 51% 71%, rgba(67, 73, 78, 0.26) 71% 74%, transparent 74% 100%);
}

body.bootstrap-dashboard .taskbar-button:hover,
body.bootstrap-dashboard .taskbar-button.is-active {
    transform: none;
    border-color: #4d4a43;
    background: linear-gradient(180deg, #f0ebe0 0%, #c8c0b3 100%);
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 rgba(0, 0, 0, 0.18);
}

body.bootstrap-dashboard .taskbar-button.is-active {
    background: linear-gradient(180deg, #cfd7ea 0%, #aeb9d0 100%);
}

body.bootstrap-dashboard .desktop-taskbar-apps .taskbar-button:first-child {
    min-width: 34px;
    justify-content: center;
    padding-inline: 8px;
}

body.bootstrap-dashboard #desktop-folder-move-toggle {
    min-width: 42px;
    padding-inline: 10px;
}

body.bootstrap-dashboard #desktop-folder-move-toggle.is-active {
    background: linear-gradient(180deg, #d7e6ff 0%, #b2c8ea 100%);
}

body.bootstrap-dashboard .desktop-taskbar-clock strong {
    font-size: 0.68rem;
    color: #111;
}

body.bootstrap-dashboard .desktop-taskbar-clock {
    min-width: 96px;
    justify-content: space-between;
}

body.bootstrap-dashboard .desktop-start-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 4;
    display: grid;
    gap: 6px;
    width: 240px;
    padding: 10px;
    border: 1px solid #5a554c;
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(239, 236, 228, 0.98), rgba(194, 189, 176, 0.98));
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.9),
        inset -1px -1px 0 rgba(0, 0, 0, 0.18),
        0 12px 26px rgba(0, 0, 0, 0.28);
}

body.bootstrap-dashboard .desktop-start-menu[hidden] {
    display: none !important;
}

body.bootstrap-dashboard .desktop-start-menu-head {
    display: grid;
    gap: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

body.bootstrap-dashboard .desktop-start-menu-label {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    color: #444;
}

body.bootstrap-dashboard .desktop-start-menu-head strong {
    font-size: 0.7rem;
    color: #111;
}

body.bootstrap-dashboard .desktop-start-menu-sep {
    height: 1px;
    margin: 2px 0;
    background: rgba(0, 0, 0, 0.14);
}

body.bootstrap-dashboard .desktop-start-menu-item {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(85, 78, 66, 0.7);
    border-radius: 2px;
    background: linear-gradient(180deg, #ece7dc, #d4cebf);
    color: #111;
    font-family: inherit;
    font-size: 0.6rem;
    text-align: left;
    cursor: pointer;
}

body.bootstrap-dashboard .desktop-start-menu-item:hover {
    background: linear-gradient(180deg, #f7f2e8, #ddd6c6);
}

body.bootstrap-dashboard .filter-grid,
body.bootstrap-dashboard .frequency-filter-grid,
body.bootstrap-dashboard .workspace-grid,
body.bootstrap-dashboard .frequency-drilldown-grid,
body.bootstrap-dashboard .frequency-charts-grid,
body.bootstrap-dashboard .archive-shell {
    gap: 12px;
}

body.bootstrap-dashboard .panel-ranking {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: calc(100vh - 44px);
    overflow: auto;
}

body.bootstrap-dashboard .archive-panel {
    gap: 14px;
}

body.bootstrap-dashboard .archive-shell {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.35fr) minmax(190px, 0.78fr);
}

body.bootstrap-dashboard .archive-folder-list,
body.bootstrap-dashboard .archive-file-list,
body.bootstrap-dashboard .archive-download-list {
    max-height: 300px;
    overflow: auto;
}

body.bootstrap-dashboard .selection-panel-inline {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #7f7769;
    border-radius: 2px;
    background: rgba(221, 216, 202, 0.95);
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #8b8371;
}

body.bootstrap-dashboard .selection-panel-inline .selection-content {
    display: grid;
    gap: 12px;
}

body.bootstrap-dashboard .selection-panel-inline .selection-summary,
body.bootstrap-dashboard .selection-panel-inline .client-focus-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.bootstrap-dashboard .client-focus-source {
    margin: 0;
    color: #2f3d53;
    font-size: 0.82rem;
}

body.bootstrap-dashboard .client-focus-details {
    border: 1px solid #7f7769;
    border-radius: 2px;
    background: rgba(240, 236, 226, 0.88);
    padding: 10px 12px;
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #8b8371;
}

body.bootstrap-dashboard .client-focus-details > summary {
    list-style: none;
    cursor: pointer;
    color: #0c1a40;
    font-family: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.bootstrap-dashboard .client-focus-details > summary::-webkit-details-marker {
    display: none;
}

body.bootstrap-dashboard .client-focus-details[open] {
    margin-bottom: 2px;
}

body.bootstrap-dashboard .client-focus-details .detail-grid {
    margin-top: 10px;
}

body.bootstrap-dashboard .archive-empty-card,
body.bootstrap-dashboard .chart-empty {
    border-color: #7f7769;
    background: rgba(240, 236, 226, 0.95);
    color: #333;
}

body.bootstrap-dashboard .frequency-goal-inline,
body.bootstrap-dashboard .frequency-goal-editor,
body.bootstrap-dashboard .frequency-table-shell,
body.bootstrap-dashboard .frequency-history-grid,
body.bootstrap-dashboard .activity-log {
    background: rgba(240, 236, 226, 0.94);
    border: 1px solid #7f7769;
}

body.bootstrap-dashboard .frequency-inline-toggle,
body.bootstrap-dashboard .small-button,
body.bootstrap-dashboard .secondary-button,
body.bootstrap-dashboard .ghost-button,
body.bootstrap-dashboard .danger-button,
body.bootstrap-dashboard .text-button {
    font-family: inherit;
}

body.bootstrap-dashboard .edit-modal {
    border-radius: 2px;
    background: #cdc6b3;
    border: 1px solid #8f8777;
    box-shadow:
        inset 0 12px 0 8px #aca696,
        0 20px 40px rgba(0, 0, 0, 0.45);
}

body.bootstrap-dashboard .edit-modal-head {
    border-bottom: 1px solid #8f8777;
}

body.bootstrap-dashboard .order-modal {
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.98), rgba(14, 22, 37, 0.98));
    border-color: rgba(143, 166, 187, 0.2);
    box-shadow:
        inset 0 12px 0 8px rgba(15, 23, 42, 0.92),
        0 20px 40px rgba(0, 0, 0, 0.45);
    color: var(--ink);
}

body.bootstrap-dashboard .order-modal .edit-modal-head {
    border-bottom-color: rgba(143, 166, 187, 0.18);
}

body.bootstrap-dashboard .order-modal .panel-note,
body.bootstrap-dashboard .order-modal .edit-help,
body.bootstrap-dashboard .order-modal .edit-status,
body.bootstrap-dashboard .order-modal .order-client-hint,
body.bootstrap-dashboard .order-modal .order-client-result small,
body.bootstrap-dashboard .order-modal .order-table td,
body.bootstrap-dashboard .order-modal .order-table th {
    color: var(--ink-soft);
}

body.bootstrap-dashboard .order-modal .panel-note strong,
body.bootstrap-dashboard .order-modal .order-client-result strong,
body.bootstrap-dashboard .order-modal .order-table td strong,
body.bootstrap-dashboard .order-modal .order-calculator-card strong,
body.bootstrap-dashboard .order-modal h2,
body.bootstrap-dashboard .order-modal h3 {
    color: var(--ink);
}

body.bootstrap-dashboard .order-modal .order-summary-grid > *,
body.bootstrap-dashboard .order-modal .order-calculator-card,
body.bootstrap-dashboard .order-modal .order-table-wrap,
body.bootstrap-dashboard .order-modal .order-client-result,
body.bootstrap-dashboard .order-modal .order-form .field input,
body.bootstrap-dashboard .order-modal .order-client-search,
body.bootstrap-dashboard .order-modal .order-client-picker .field input {
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.98), rgba(10, 16, 28, 0.98));
    border-color: rgba(143, 166, 187, 0.2);
    color: var(--ink);
}

body.bootstrap-dashboard .order-modal .order-client-result {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.bootstrap-dashboard .order-modal .order-client-result-badge,
body.bootstrap-dashboard .order-modal .order-table-badge {
    color: #b8fff4;
}

body.bootstrap-dashboard .order-modal .order-table th {
    background: rgba(45, 212, 191, 0.08);
}

body.bootstrap-dashboard .order-modal .order-table tbody tr.is-editing {
    background: rgba(45, 212, 191, 0.06);
}

body.bootstrap-dashboard .order-modal .order-modal-side {
    border-left-color: rgba(143, 166, 187, 0.18);
}

body.bootstrap-dashboard .dialog-backdrop {
    background: rgba(0, 0, 0, 0.68);
}

body.bootstrap-dashboard {
    --ink: #eef5ff;
    --ink-soft: #d2def0;
    --muted: #8ea2bb;
    --line: rgba(143, 166, 187, 0.18);
    --line-strong: rgba(143, 166, 187, 0.3);
    --panel: rgba(11, 17, 29, 0.96);
    --panel-strong: rgba(14, 22, 37, 0.98);
    --panel-soft: rgba(11, 17, 29, 0.9);
    --surface-soft: rgba(14, 22, 37, 0.92);
    --surface-muted: rgba(9, 14, 24, 0.96);
    --control: rgba(17, 26, 44, 0.96);
    --control-hover: rgba(23, 35, 57, 0.98);
    --chart-ink: #eef5ff;
    --chart-muted: #9db1c8;
    --chart-grid: rgba(143, 166, 187, 0.14);
}

body.bootstrap-dashboard .dashboard-tab-panel {
    background: linear-gradient(180deg, #0d1424 0%, #0a1120 100%);
    border-color: #5e5763;
    color: var(--ink);
}

body.bootstrap-dashboard .panel {
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.98), rgba(13, 21, 36, 0.98));
    border-color: rgba(143, 166, 187, 0.18);
    color: var(--ink);
}

body.bootstrap-dashboard .kpi-card,
body.bootstrap-dashboard .frequency-history-stat,
body.bootstrap-dashboard .frequency-drilldown-stat,
body.bootstrap-dashboard .frequency-drilldown-card,
body.bootstrap-dashboard .archive-sidebar,
body.bootstrap-dashboard .archive-main,
body.bootstrap-dashboard .archive-downloads,
body.bootstrap-dashboard .selection-panel-inline,
body.bootstrap-dashboard .frequency-goal-inline,
body.bootstrap-dashboard .frequency-goal-editor,
body.bootstrap-dashboard .frequency-table-shell,
body.bootstrap-dashboard .frequency-history-grid,
body.bootstrap-dashboard .activity-log {
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.98), rgba(10, 16, 28, 0.98));
    border-color: rgba(143, 166, 187, 0.18);
    color: var(--ink);
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    grid-template-areas:
        "label details"
        "name details"
        "tags details"
        "source details"
        "actions actions";
    gap: 10px 14px;
    align-items: start;
    color: var(--ink);
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card > .mini-label {
    grid-area: label;
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card > .client-name {
    grid-area: name;
    margin: 0;
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card > .tag-row {
    grid-area: tags;
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card > .client-focus-source {
    grid-area: source;
    margin: 0;
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card > .client-focus-details {
    grid-area: details;
    margin: 0;
}

body.bootstrap-dashboard .selection-panel-inline .client-focus-card > .selection-inline-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.bootstrap-dashboard .client-focus-details {
    background: linear-gradient(180deg, rgba(14, 22, 37, 0.98), rgba(10, 16, 28, 0.98));
    border-color: rgba(143, 166, 187, 0.18);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.02),
        inset -1px -1px 0 rgba(0, 0, 0, 0.24);
}

body.bootstrap-dashboard .client-focus-details > summary {
    color: var(--ink-soft);
}

body.bootstrap-dashboard .panel-note,
body.bootstrap-dashboard .client-focus-source,
body.bootstrap-dashboard .detail-meta,
body.bootstrap-dashboard .archive-file-meta,
body.bootstrap-dashboard .archive-download-meta,
body.bootstrap-dashboard .frequency-muted,
body.bootstrap-dashboard .frequency-drilldown-buyer-copy small,
body.bootstrap-dashboard .frequency-drilldown-context-item p,
body.bootstrap-dashboard .frequency-comparison-card p,
body.bootstrap-dashboard .frequency-goal-inline .chart-caption,
body.bootstrap-dashboard .chart-caption {
    color: var(--muted);
}

body.bootstrap-dashboard .tag {
    color: var(--ink-soft);
    background: rgba(45, 212, 191, 0.12);
}

body.bootstrap-dashboard .chart-empty,
body.bootstrap-dashboard .archive-empty-card {
    background: rgba(10, 16, 28, 0.96);
    color: var(--ink-soft);
    border-color: rgba(143, 166, 187, 0.18);
}

body.bootstrap-dashboard .frequency-goal-wrap {
    min-height: 108px;
    margin-top: 4px;
}

body.bootstrap-dashboard .frequency-goal-inline {
    padding: 10px 12px;
    gap: 8px;
}

body.bootstrap-dashboard .frequency-goal-inline-wrap {
    min-height: 84px;
}

body.bootstrap-dashboard .frequency-goal-inline .chart-caption {
    margin-top: 0;
    font-size: 0.72rem;
}

body.bootstrap-dashboard .frequency-goal-tools,
body.bootstrap-dashboard .frequency-goal-summary,
body.bootstrap-dashboard .frequency-goal-period-tools {
    gap: 6px;
}

body.bootstrap-dashboard .frequency-goal-summary .status-pill {
    font-size: 0.72rem;
}

body.bootstrap-dashboard .frequency-goal-summary .small-button,
body.bootstrap-dashboard .frequency-goal-inline-tools .small-button {
    min-height: 30px;
}

body.bootstrap-dashboard .frequency-comparison-card.is-goal {
    min-height: 108px;
    padding: 12px 14px;
}

body.bootstrap-dashboard .frequency-comparison-card strong {
    font-size: 1.3rem;
}

body.bootstrap-dashboard .panel-ranking {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
}

@media (max-width: 1199px) {
    body.bootstrap-dashboard .dashboard-tab-panel {
        margin-left: 0;
        width: 100%;
    }

    body.bootstrap-dashboard .desktop-folders {
        position: static;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.bootstrap-dashboard .desktop-folder-card {
        width: auto;
    }

    body.bootstrap-dashboard .desktop-stage {
        min-height: 900px;
        padding-bottom: 20px;
    }

}

@media (max-width: 820px) {
    body.bootstrap-dashboard .hero-card.system-shell {
        grid-template-columns: 1fr;
    }

    body.bootstrap-dashboard .hero-card.system-shell .hero-actions {
        justify-content: stretch;
    }

    body.bootstrap-dashboard .hero-card.system-shell .hero-company-field {
        min-width: 0;
        width: 100%;
    }

    body.bootstrap-dashboard .desktop-stage {
        padding: 14px 12px 18px;
        min-height: 860px;
    }

    body.bootstrap-dashboard .desktop-folders {
        grid-template-columns: 1fr;
    }

    body.bootstrap-dashboard .desktop-taskbar {
        grid-template-columns: 1fr;
    }

    body.bootstrap-dashboard .desktop-taskbar-apps {
        justify-content: stretch;
    }

    body.bootstrap-dashboard .taskbar-button {
        width: 100%;
    }

    body.bootstrap-dashboard .archive-shell,
    body.bootstrap-dashboard .workspace-grid,
    body.bootstrap-dashboard .frequency-drilldown-grid,
    body.bootstrap-dashboard .frequency-charts-grid {
        grid-template-columns: 1fr;
    }

    body.bootstrap-dashboard .selection-panel-inline .client-focus-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "name"
            "tags"
            "source"
            "details"
            "actions";
    }
}
.mixideal-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    body.bootstrap-dashboard .page-shell {
        width: calc(100% - 16px);
        min-width: 0;
        margin: 8px auto 16px;
    }

    body.bootstrap-dashboard .desktop-stage {
        width: 100%;
        min-width: 0;
        min-height: max(620px, calc(100svh - 16px));
        padding: 12px;
        overflow: hidden;
        border-radius: 10px;
        background-position: center center;
    }

    body.bootstrap-dashboard .desktop-create-folder {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    body.bootstrap-dashboard .desktop-folders,
    body.bootstrap-dashboard:not([data-desktop-folders-ready="true"]) .desktop-folders {
        position: static;
        inset: auto;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 24px 12px;
        align-content: start;
        padding: 18px 4px 24px;
    }

    body.bootstrap-dashboard .desktop-folder-shell,
    body.bootstrap-dashboard:not([data-desktop-folders-ready="true"]) .desktop-folder-shell,
    body.bootstrap-dashboard .desktop-trash-shell {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        min-width: 0;
        height: 132px;
        transform: none !important;
    }

    body.bootstrap-dashboard .desktop-folder-card,
    body.bootstrap-dashboard .desktop-trash-card {
        position: relative;
        inset: auto;
        width: 100%;
        min-width: 0;
        min-height: 132px;
        padding: 8px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        text-align: center;
    }

    body.bootstrap-dashboard .desktop-folder-icon {
        flex: 0 0 auto;
        width: 58px;
        height: 42px;
    }

    body.bootstrap-dashboard .desktop-folder-icon::before {
        left: 6px;
        top: -9px;
        width: 24px;
        height: 9px;
    }

    body.bootstrap-dashboard .desktop-trash-icon {
        flex: 0 0 auto;
        width: 44px;
        height: 46px;
    }

    body.bootstrap-dashboard .desktop-trash-icon::before {
        left: 4px;
        width: 34px;
    }

    body.bootstrap-dashboard .desktop-trash-icon::after {
        left: 13px;
        top: 14px;
    }

    body.bootstrap-dashboard .desktop-folder-copy {
        width: min(100%, 132px);
        min-width: 0;
        justify-self: auto;
        text-align: center;
    }

    body.bootstrap-dashboard .desktop-folder-copy strong {
        font-size: clamp(0.72rem, 3.4vw, 0.84rem);
        line-height: 1.2;
        letter-spacing: 0.01em;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.bootstrap-dashboard .desktop-folder-copy small {
        display: none;
    }

    body.bootstrap-dashboard .desktop-folder-edit {
        top: 0;
        right: 2px;
        width: 28px;
        height: 28px;
    }

    body.bootstrap-dashboard .desktop-taskbar {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: auto;
        padding: 7px;
        overflow: visible;
    }

    body.bootstrap-dashboard .desktop-taskbar-start-wrap,
    body.bootstrap-dashboard .desktop-taskbar-start,
    body.bootstrap-dashboard .desktop-taskbar-back,
    body.bootstrap-dashboard .desktop-taskbar-apps,
    body.bootstrap-dashboard .desktop-taskbar-clock {
        width: 100%;
        min-width: 0;
    }

    body.bootstrap-dashboard .desktop-taskbar-start,
    body.bootstrap-dashboard .desktop-taskbar-back,
    body.bootstrap-dashboard .taskbar-button {
        min-height: 44px;
        padding: 7px 10px;
    }

    body.bootstrap-dashboard .desktop-taskbar-start {
        justify-content: flex-start;
    }

    body.bootstrap-dashboard .desktop-taskbar-apps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    body.bootstrap-dashboard .desktop-taskbar-apps .taskbar-button {
        width: 100%;
        justify-content: center;
        font-size: 0.68rem;
    }

    body.bootstrap-dashboard .desktop-taskbar-clock {
        justify-content: space-between;
        min-height: 38px;
        padding: 5px 10px;
    }

    body.bootstrap-dashboard .desktop-taskbar-brand {
        font-size: 0.76rem;
    }

    body.bootstrap-dashboard .desktop-taskbar-status,
    body.bootstrap-dashboard .desktop-taskbar-clock-label {
        font-size: 0.62rem;
        letter-spacing: 0.07em;
    }

    body.bootstrap-dashboard .desktop-start-menu {
        width: min(280px, calc(100vw - 46px));
        max-height: min(70svh, 460px);
        overflow-y: auto;
    }
}

.mixideal-report-list {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.mixideal-report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--panel-border, rgba(143, 166, 187, 0.18));
}

.mixideal-report-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .mixideal-report-grid {
        grid-template-columns: 1fr;
    }
}
