html, body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #F4F7FD;
    color: #0B2E6F;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Kezdőlap (A terv: világos kártyák kék ikonnal és menüpont-címkékkel) */
.home {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 40rem;
}

.home-greeting {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3E5A8C;
}

.home-title {
    margin: 0.35rem 0 0;
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0B2E6F;
}

.home-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.home-tile {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.125rem;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    box-shadow: 0 1px 2px rgba(11, 46, 111, 0.06), 0 8px 24px rgba(11, 46, 111, 0.06);
}

.home-tile-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: #0B2E6F;
    text-decoration: none;
}

.home-tile-head:hover {
    color: #0B2E6F;
}

.home-tile-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-tile-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-tile-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.home-tile-description {
    font-size: 0.875rem;
    color: #3E5A8C;
}

.home-tile-chevron {
    color: #7C93BC;
    flex-shrink: 0;
}

.home-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #EAF1FF;
    color: #1F4FB8;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.home-chip:hover {
    background: #D9E6FF;
    color: #1F4FB8;
}

/* Kategóriaoldal: menüpont-kártyák */
.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    border-left: 0.4rem solid var(--tile-color);
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.menu-card:hover {
    color: inherit;
    background: #f8f9fa;
}

.menu-card-icon {
    font-size: 2rem;
}

.menu-card-title {
    display: block;
    font-weight: 600;
}

.menu-card-description {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Egészség */
.food-results {
    max-height: 22rem;
    overflow-y: auto;
}

.diary-entry:last-child {
    border-bottom: none !important;
}

.weight-chart {
    width: 100%;
    height: auto;
    max-height: 16rem;
}

/* Pénzügy */
.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.5rem;
}

.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
    background: #fff;
    text-align: left;
}

.account-card.selected {
    border-color: #2f9e44;
    box-shadow: 0 0 0 0.15rem rgba(47, 158, 68, 0.3);
}

.account-card.total {
    background: #2f9e44;
    border-color: #2f9e44;
    color: #fff;
}

.month-label {
    min-width: 9rem;
    text-align: center;
}

/* Munka */
.project-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.project-dot.large {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.note-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.note-body {
    font-family: inherit;
}

.timer-card.running {
    border-color: #2f9e44;
    background: #ebfbee;
}

/* Adófolyószámla-egyeztetés */
.tax-table {
    font-size: 0.85rem;
}

.tax-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    white-space: nowrap;
    vertical-align: middle;
}

.tax-table td {
    white-space: nowrap;
}

.tax-table .cell {
    width: 7.5rem;
    text-align: right;
}

.tax-table .cell-note {
    width: 9rem;
}

.tax-table .sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}

.tax-table .opening-row td {
    background: #f8f9fa;
}

.tax-table .issue-ok {
    background: #ebfbee;
    color: #2b8a3e;
    font-weight: 600;
}

.tax-table .issue-bad {
    background: #fff5f5;
    color: #c92a2a;
    font-weight: 600;
}

/* Pénzügyi ikon kis kék négyzetben (listák) */
.finance-icon-chip {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Közös: felcsúszó szerkesztőlap és űrlapelemei (eredetileg a Pénztárcák oldalé) --- */

.fs-page {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    max-width: 40rem;
}

.fs-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1F4FB8;
    text-decoration: none;
}

.fs-title {
    margin: 0.25rem 0 0;
    font-size: 1.625rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0B2E6F;
}

/* Lapfülek (szegmentált váltó) */
.fs-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 16px;
    background: #E3EBFA;
}

.fs-tabs button {
    height: 44px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
}

.fs-tabs button.active {
    background: #FFFFFF;
    color: #0B2E6F;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(11, 46, 111, 0.12);
}

/* Összesítő */
.fs-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1.125rem;
    border-radius: 22px;
    background: #1F5BD8;
    color: #FFFFFF;
}

.fs-total-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #DCE7FF;
}

.fs-total-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Pénztárcák */
.fs-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.fs-wallet {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
}

.fs-wallet:hover, .fs-category:hover {
    border-color: #A9C0EA;
}

.fs-wallet.archived, .fs-category.archived {
    opacity: 0.6;
}

.fs-wallet-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fs-wallet-name {
    font-size: 1rem;
    font-weight: 700;
}

.fs-wallet-sub {
    font-size: 0.8125rem;
    color: #3E5A8C;
}

.fs-wallet-balance {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.fs-wallet-balance.negative {
    color: #B42318;
}

.fs-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
    border-radius: 20px;
    border: 1.5px dashed #A9C0EA;
    background: transparent;
    color: #1F4FB8;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
}

.fs-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: #3E5A8C;
}

/* Ikonnégyzetek */
.fs-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-icon.small {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.fs-icon.large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.fs-icon.solid {
    background: #1F5BD8;
    color: #FFFFFF;
}

/* Kategóriák */
.fs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fs-section-head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #3E5A8C;
}

.fs-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    border: none;
    background: none;
    color: #1F4FB8;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
}

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

.fs-category {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    padding: 0.625rem;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
}

/* Alulról felcsúszó szerkesztőlap */
.fs-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 46, 111, 0.45);
    z-index: 1040;
}

.fs-sheet {
    position: fixed;
    /* Középre: margin auto (nem transform, mert az a lapon belül nyíló másik lapot is elmozdítaná). */
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
    width: 100%;
    max-width: 32rem;
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem 1.75rem;
    border-radius: 28px 28px 0 0;
    background: #FFFFFF;
    color: #0B2E6F;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    z-index: 1050;
    box-shadow: 0 -8px 32px rgba(11, 46, 111, 0.18);
}

.fs-handle {
    align-self: center;
    width: 40px;
    height: 5px;
    border-radius: 999px;
    background: #D6E2F7;
}

.fs-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fs-sheet-head h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.fs-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #F4F7FD;
    color: #0B2E6F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-field {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fs-field.grow {
    flex-grow: 1;
}

.fs-field label, .fs-field legend {
    padding: 0;
    margin: 0 0 2px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3E5A8C;
}

.fs-input {
    height: 52px;
    box-sizing: border-box;
    padding: 0 1rem;
    border-radius: 14px;
    border: 1px solid #DCE6F8;
    font: inherit;
    font-size: 1rem;
    color: #0B2E6F;
    outline: none;
}

.fs-input:focus, .fs-input-group:focus-within {
    border: 1.5px solid #1F5BD8;
}

.fs-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 52px;
    box-sizing: border-box;
    padding: 0 1rem;
    border-radius: 14px;
    border: 1px solid #DCE6F8;
}

.fs-input-group input {
    flex-grow: 1;
    min-width: 0;
    border: none;
    font: inherit;
    font-size: 1rem;
    color: #0B2E6F;
    outline: none;
}

.fs-input-group span {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #3E5A8C;
}

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

.fs-currencies button, .fs-icon-grid button {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-currencies button.more {
    color: #3E5A8C;
}

.fs-currencies button.active, .fs-icon-grid button.active {
    border: 2px solid #1F5BD8;
    background: #EAF1FF;
    color: #1F4FB8;
    font-weight: 800;
}

.fs-name-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.fs-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.fs-icon-grid button {
    height: 48px;
    border-radius: 14px;
}

.fs-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.fs-primary, .fs-secondary, .fs-danger {
    border: none;
    border-radius: 16px;
    font: inherit;
    font-weight: 700;
}

.fs-primary {
    height: 54px;
    background: #1F5BD8;
    color: #FFFFFF;
    font-size: 1rem;
}

.fs-secondary {
    height: 48px;
    background: transparent;
    color: #1F4FB8;
    font-size: 0.9375rem;
}

.fs-danger {
    height: 48px;
    background: #FFF4F4;
    color: #B42318;
    font-size: 0.9375rem;
}

.fs-primary:disabled, .fs-secondary:disabled, .fs-danger:disabled {
    opacity: 0.6;
}

/* Kategória fejléc és felső fülsor (az almenüket váltja ki) */
.cat-header {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.cat-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-back {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-back:hover {
    color: #1F4FB8;
    border-color: #A9C0EA;
}

.cat-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0B2E6F;
}

.cat-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #DCE6F8;
}

.cat-tabs::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3E5A8C;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.cat-tab:hover {
    color: #1F4FB8;
}

.cat-tab.active {
    color: #0B2E6F;
    font-weight: 800;
    border-bottom-color: #1F5BD8;
}

/* Tételek: kör a kategóriákkal */
.wheel {
    position: relative;
    width: calc(100% + 2rem);
    max-width: 420px;
    margin: 0.5rem auto 0;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 390 / 405;
}

.wheel-center {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 32%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.wheel-center svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wheel-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
}

.wheel-center-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #3E5A8C;
}

.wheel-center-total {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0B2E6F;
    white-space: nowrap;
}

.wheel-item {
    position: absolute;
    width: 84px;
    transform: translate(-50%, -22px);
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: #0B2E6F;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.wheel-bubble {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    border-radius: 15px;
    border: 1.5px solid #DCE6F8;
    background: #FFFFFF;
    color: #3E5A8C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(11, 46, 111, 0.08);
}

.wheel-item:hover .wheel-bubble {
    box-shadow: 0 4px 12px rgba(11, 46, 111, 0.18);
}

.wheel-name {
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 13px;
    white-space: nowrap;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wheel-amount {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 13px;
    color: #3E5A8C;
    white-space: nowrap;
}

/* Keretállapot az ikon hátterén */
.budget-none { background: #FFFFFF; border-color: #DCE6F8; color: #3E5A8C; }
.budget-ok { background: #EAF1FF; border-color: #EAF1FF; color: #1F5BD8; }
.budget-warn { background: #FFE3C2; border-color: #FFC98A; color: #8A3B00; }
.budget-over { background: #C4320A; border-color: #C4320A; color: #FFFFFF; }
.budget-income { background: #1F5BD8; border-color: #1F5BD8; color: #FFFFFF; }

.wheel-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #3E5A8C;
}

.wheel-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wheel-legend i {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.budget-bar {
    height: 8px;
    border-radius: 999px;
    background: #DCE6F8;
    overflow: hidden;
}

.budget-bar div {
    height: 8px;
    border-radius: 999px;
}

.fs-chip {
    height: 40px;
    padding: 0 0.875rem;
    border-radius: 999px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fs-chip.active {
    border: 1px solid #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
    font-weight: 700;
}

.fs-input.big, .fs-input-group.big input {
    font-size: 1.5rem;
    font-weight: 800;
}

.fs-input-group.big {
    height: 58px;
}

textarea.fs-input {
    height: auto;
    padding: 0.75rem 1rem;
    resize: none;
}

/* --- Telefonos app: alsó menüsáv (a hamburger menü helyett) --- */
.page-app main {
    padding-bottom: 104px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    padding: 6px 4px 8px;
    background: #FFFFFF;
    border-top: 1px solid #DCE6F8;
    box-shadow: 0 -6px 20px rgba(11, 46, 111, 0.06);
}

.bottom-nav-item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5B6F94;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover {
    color: #5B6F94;
}

.bottom-nav-pill {
    width: 56px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-item.active,
.bottom-nav-item.active:hover {
    color: #1F5BD8;
    font-weight: 800;
}

.bottom-nav-item.active .bottom-nav-pill {
    background: #EAF1FF;
}

.bottom-nav-secure,
.bottom-nav-secure:hover {
    color: #1F5BD8;
    font-weight: 700;
}

.bottom-nav-circle {
    position: relative;
    width: 60px;
    height: 60px;
    margin-top: -28px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(31, 91, 216, 0.35);
}

.bottom-nav-secure.active,
.bottom-nav-secure.active:hover {
    color: #0B2E6F;
}

.bottom-nav-secure.active .bottom-nav-circle {
    background: #0B2E6F;
}

.bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
    padding: 0 5px;
    border-radius: 11px;
    border: 2px solid #FFFFFF;
    background: #C2410C;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Az appban a kategóriafejléc bal oldalán az LD jelvény visz a kezdőlapra. */
.cat-home-badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 0.25rem;
    border-radius: 12px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.cat-home-badge:hover {
    color: #FFFFFF;
    background: #1F4FB8;
}

/* Kezdőlap: függő belépési kérés */
.home-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 18px;
    background: #0B2E6F;
    color: #FFFFFF;
    text-decoration: none;
}

.home-alert:hover {
    color: #FFFFFF;
}

.home-alert-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: #C9D8F5;
}

.home-alert-text strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
}

/* Biztonság oldal */
.sec {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 32rem;
}

.sec-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sec-heading {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3E5A8C;
}

.sec-empty,
.sec-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.sec-empty-icon,
.sec-row-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-empty-text,
.sec-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: #3E5A8C;
}

.sec-empty-text strong,
.sec-row-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0B2E6F;
}

.sec-request {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 1.375rem 1.25rem 1.25rem;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    box-shadow: 0 8px 24px rgba(11, 46, 111, 0.06);
}

.sec-request-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3E5A8C;
}

.sec-code {
    display: flex;
    gap: 0.625rem;
}

.sec-code span {
    width: 64px;
    height: 80px;
    border-radius: 18px;
    background: #EAF1FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.875rem;
    font-weight: 800;
    color: #0B2E6F;
}

.sec-request-hint {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #3E5A8C;
}

.sec-approve,
.sec-deny,
.sec-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 16px;
    font: inherit;
    font-size: 0.95rem;
}

.sec-approve {
    height: 52px;
    border: 0;
    background: #1F5BD8;
    color: #FFFFFF;
    font-weight: 800;
}

.sec-deny {
    height: 48px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #A3330A;
    font-weight: 700;
}

.sec-logout {
    height: 48px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #0B2E6F;
    font-weight: 700;
}

.sec-approve:disabled,
.sec-deny:disabled {
    opacity: 0.6;
}

/* Belépés a gépen (QR): nagy gomb a Biztonság tetején és a jóváhagyó oldal. */
.sec-scan {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #1F5BD8;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(31, 91, 216, 0.25);
}

.sec-scan:hover {
    color: #FFFFFF;
}

.sec-scan span {
    display: flex;
    flex-direction: column;
}

.sec-scan strong {
    font-size: 1rem;
}

.sec-scan small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.qrl-dl {
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    font-size: 0.85rem;
}

.qrl-dl dt {
    color: #3E5A8C;
    font-weight: 500;
}

.qrl-dl dd {
    margin: 0;
    color: #10203F;
    font-weight: 600;
}

.qrl-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #10203F;
}

.qrl-check input {
    width: 20px;
    height: 20px;
}

.qrl-done {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #E3F4EF;
    color: #0B5B54;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrl-title {
    font-size: 1.15rem;
    color: #0B2E6F;
}

.qrl-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* --- Az appban a fülsor van legfelül, címsor nélkül; az elején az LD jelvény --- */
.cat-bar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -1.1rem -1.5rem 1rem;
    padding: 6px 14px 0 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #DCE6F8;
}

.cat-bar .cat-home-badge {
    width: 34px;
    height: 34px;
    margin: 0 0 4px;
    border-radius: 10px;
    font-size: 0.8125rem;
}

.cat-bar .cat-tabs {
    flex-grow: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

/* --- Pénzügy (a tervek szerint) --- */
.fin {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 34rem;
}

.fin-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #EAF1FF;
}

.fin-seg button {
    height: 38px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
}

.fin-seg button.active {
    background: #FFFFFF;
    color: #0B2E6F;
    box-shadow: 0 1px 3px rgba(11, 46, 111, 0.12);
}

.fin-seg.small button {
    height: 32px;
    font-size: 0.8125rem;
    border-radius: 9px;
}

.fin-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin-toolbar .fin-seg {
    flex-grow: 1;
}

.fin-month-btn {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.fin-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 4px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    font-size: 0.9375rem;
    font-weight: 800;
}

.fin-stepper button {
    width: 44px;
    height: 40px;
    border: none;
    background: none;
    color: #3E5A8C;
    font: inherit;
    font-size: 1.25rem;
}

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

/* Kategória buborék: halvány háttér, alulról a kategória színével töltődik (a keret felhasználtsága). */
.cat-bubble {
    position: relative;
    flex-shrink: 0;
    width: var(--size, 54px);
    height: var(--size, 54px);
    border-radius: 50%;
    background: var(--tint);
    color: var(--c);
}

.cat-bubble > span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-bubble > .cat-bubble-fill {
    inset: auto 0 0 0;
    height: var(--fill, 0%);
    overflow: hidden;
    border-radius: 0 0 var(--size, 54px) var(--size, 54px);
    background: var(--c);
    display: block;
}

.cat-bubble.full > .cat-bubble-fill {
    border-radius: 50%;
}

.cat-bubble .cat-bubble-fill > span {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--size, 54px);
    height: var(--size, 54px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.cat-bubble.over {
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #B42318;
}

.cat-bubble.selected {
    box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--c);
}

/* Áttekintés: kategóriák a gyűrű körül */
.fin-ov-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(124px, auto);
    gap: 8px 4px;
}

.fin-ov-center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mindig kör: a középső két oszlop szélességéhez igazodik (keskeny telefonon kisebb), legfeljebb 172 px. */
.fin-ring {
    position: relative;
    flex-shrink: 0;
    width: min(172px, 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
}

.fin-ring-inner {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: #F4F7FD;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.fin-ring-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3E5A8C;
}

.fin-ring-total {
    font-size: clamp(1rem, 5.2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fin-ring-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1F5BD8;
}

.fin-slot {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: #0B2E6F;
    text-decoration: none;
}

.fin-slot:hover {
    color: #0B2E6F;
}

.fin-slot-name {
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fin-slot-amount {
    font-size: 0.78rem;
    font-weight: 800;
}

.fin-slot-sub {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #5B6F94;
    text-align: center;
}

.fin-slot.over .fin-slot-amount, .fin-slot.over .fin-slot-sub {
    color: #B42318;
}

.fin-slot.add {
    color: #3E5A8C;
}

.fin-slot-add {
    width: 54px;
    height: 54px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px dashed #A9C0EA;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kártyák, listák */
.fin-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.fin-card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.fin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.fin-muted {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #3E5A8C;
}

.fin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #3E5A8C;
}

.fin-search input {
    flex-grow: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    color: #0B2E6F;
}

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

.fin-sum > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.fin-sum span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #3E5A8C;
}

.fin-sum strong {
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fin-sum .income {
    color: #1E6B3C;
}

.fin-sum .primary {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.fin-sum .primary span {
    color: #DCE6F8;
}

.fin-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fin-pill {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

.fin-pill.active {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
    font-weight: 700;
}

.fin-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fin-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3E5A8C;
}

.fin-group-head .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.fin-list {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    overflow: hidden;
}

.fin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-top: 1px solid #EEF3FB;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    text-decoration: none;
}

.fin-row:first-child {
    border-top: none;
}

.fin-row:hover {
    color: inherit;
}

.fin-row.muted {
    opacity: 0.75;
}

.fin-row-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
}

.fin-chipicon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fin-row-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fin-row-title {
    font-size: 0.875rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fin-row-sub {
    font-size: 0.75rem;
    color: #3E5A8C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fin-row-sub.late {
    color: #B42318;
    font-weight: 700;
}

.fin-amount {
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
}

.fin-amount.income {
    color: #1E6B3C;
}

.fin-amount.transfer {
    color: #3E5A8C;
    font-weight: 700;
}

.fin-amount small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #5B6F94;
}

.fin-empty {
    padding: 18px 16px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px dashed #C9D8F5;
    color: #3E5A8C;
    font-size: 0.875rem;
    text-align: center;
}

.fin-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 26;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(31, 91, 216, 0.35);
}

.page-app .fin-fab {
    bottom: 96px;
}

/* Kék / sötétkék összesítő kártya */
.fin-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #1F5BD8;
    color: #FFFFFF;
}

.fin-hero.dark {
    background: #0B2E6F;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.fin-hero-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fin-hero-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #DCE6F8;
}

.fin-hero.dark .fin-hero-label {
    color: #C9D8F5;
}

.fin-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.fin-hero-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fin-hero-ring {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fin-hero-ring span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.fin-hero-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.fin-hero-bar div {
    height: 8px;
    border-radius: 4px;
    background: #FFFFFF;
}

.fin-small-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    border: none;
    background: #EAF1FF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fin-small-btn.danger {
    background: #B42318;
    color: #FFFFFF;
}

.fin-small-btn:disabled {
    opacity: 0.6;
}

.fin-done {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #E3F1E8;
    color: #1E6B3C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fin-section-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

/* Célok */
.fin-goal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.fin-goal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
}

.fin-goal-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
}

.fin-goal-ring span {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fin-goal-name {
    font-size: 0.9375rem;
    font-weight: 800;
}

.fin-goal-pct {
    font-size: 1rem;
    font-weight: 800;
}

.fin-goal-pct.done {
    color: #1E6B3C;
}

.fin-goal-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #3E5A8C;
}

.fin-goal-foot > span {
    flex-grow: 1;
}

.fin-goal-foot .done {
    color: #1E6B3C;
    font-weight: 700;
}

/* Megtakarítás */
.fin-target {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fin-target-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fin-big-ring {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
}

.fin-big-ring > span {
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 800;
}

.fin-big-ring small {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #3E5A8C;
}

.fin-bars {
    position: relative;
    height: 170px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.fin-bars-target {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed #1F5BD8;
    opacity: 0.55;
}

.fin-bar {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #3E5A8C;
}

.fin-bar > div {
    width: 100%;
    border-radius: 8px 8px 4px 4px;
    box-sizing: border-box;
}

.fin-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.75rem;
    color: #3E5A8C;
}

.fin-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fin-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    box-sizing: border-box;
}

.fin-legend i.line {
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

.fin-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: #F4F7FD;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.fin-tag {
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 12px;
    background: #FDE7D4;
    color: #8A3A0A;
    font-size: 0.72rem;
    font-weight: 800;
}

.fin-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8125rem;
}

.fin-lines > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin-lines > div > span:nth-child(2) {
    flex-grow: 1;
}

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

.fin-kpis > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #EAF1FF;
}

.fin-kpis > div.warm {
    background: #FDF0E6;
}

.fin-kpis span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3E5A8C;
}

.fin-kpis strong {
    font-size: 1rem;
    font-weight: 800;
    color: #1F5BD8;
}

.fin-kpis .warm strong {
    color: #B5470B;
}

.fin-kpis.solid > div {
    background: #1F5BD8;
    color: #FFFFFF;
}

.fin-kpis.solid > div:last-child {
    background: #0B2E6F;
}

.fin-kpis.solid span {
    color: #DCE6F8;
}

.fin-kpis.solid strong {
    color: #FFFFFF;
    font-size: 1.1875rem;
}

.fin-meter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8125rem;
}

.fin-meter > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.fin-meter-track {
    height: 10px;
    border-radius: 5px;
    background: #EEF3FB;
    overflow: hidden;
}

.fin-meter-track div {
    height: 10px;
    border-radius: 5px;
}

.fin-meter small {
    font-size: 0.75rem;
}

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

/* Tanulás (pl. Párbeszéd): telefonon a tananyag és a témakör egymás alatt, hogy a hosszú nevek kiférjenek. */
@media (max-width: 719.98px) {
    .pj-main > .fin-two {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fin-stepper-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 4px;
    border-radius: 14px;
    border: 1px solid #DCE6F8;
    font-size: 0.9375rem;
    font-weight: 800;
}

.fin-stepper-box button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #F4F7FD;
    color: #0B2E6F;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 800;
}

.fin-range {
    width: 100%;
    height: 28px;
    accent-color: #1F5BD8;
}

.fin-wide-btn {
    height: 50px;
    border: none;
    border-radius: 16px;
    background: #EAF1FF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
}

/* Felcsúszó lapok kiegészítői */
.fin-cat-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -1.25rem;
    padding: 6px 1.25rem;
}

.fin-cat-pick {
    flex-shrink: 0;
    width: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0B2E6F;
}

.fin-cat-pick.active {
    font-weight: 800;
}

.fin-budget-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #F4F7FD;
    font-size: 0.78rem;
    font-weight: 700;
}

.fin-budget-box > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.fin-budget-box > div:first-child span:last-child {
    color: #3E5A8C;
}

.fin-budget-track {
    height: 8px;
    border-radius: 4px;
    background: #DCE6F8;
    overflow: hidden;
}

.fin-budget-track div {
    height: 8px;
    border-radius: 4px;
}

.fin-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #F4F7FD;
}

.fin-preview > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fin-preview strong {
    font-size: 1.0625rem;
    font-weight: 800;
}

.fin-preview span {
    font-size: 0.78rem;
    color: #3E5A8C;
}

.fin-swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    justify-items: center;
}

.fin-swatches button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fin-swatches button.active {
    box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--c);
}

.fin-icon-pick {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.fin-icon-pick button {
    height: 46px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #F4F7FD;
    color: #3E5A8C;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fin-icon-pick button.active {
    border-color: var(--c);
    background: var(--tint);
    color: var(--c);
}

.fin-actions-row {
    display: flex;
    gap: 10px;
}

.fin-actions-row .fs-primary {
    flex-grow: 1;
}

.fin-actions-row .fs-danger, .fin-actions-row .fs-secondary {
    height: 54px;
    padding: 0 16px;
}

/* A logó (AppLogo) a saját kék hátterével érkezik, a jelvény-keretek csak helyet adnak neki. */
.app-logo {
    display: block;
    flex-shrink: 0;
}

.cat-home-badge, .cat-home-badge:hover, .brand-badge {
    background: transparent;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 1rem;
}

/* --- Egészség (a tervek szerint). A kártyák, listák, fülek és a + gomb a fin-* elemeket használják. --- */
.hl-kcal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hl-ring {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    border-radius: 50%;
}

.hl-ring > span {
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hl-ring strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hl-ring small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #3E5A8C;
}

.hl-ring.over strong {
    color: #B42318;
}

.hl-macros {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hl-macros-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.hl-macro {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hl-macro > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.75rem;
    color: #3E5A8C;
}

.hl-macro > div:first-child span:first-child {
    font-weight: 700;
    color: #0B2E6F;
}

.hl-track {
    height: 7px;
    border-radius: 4px;
    background: #EEF3FB;
    overflow: hidden;
}

.hl-track > div {
    height: 7px;
    border-radius: 4px;
}

.hl-meal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.hl-meal-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hl-meal-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
}

.hl-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-meal-name {
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-add {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 0;
    border-top: 1px solid #EEF3FB;
    font-size: 0.8125rem;
}

.hl-entry-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hl-entry-text strong {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-entry-text span {
    font-size: 0.72rem;
    color: #5B6F94;
}

.hl-remove {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: #FFF4F4;
    color: #B42318;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Étel hozzáadása */
.hl-search-row {
    display: flex;
    gap: 8px;
}

.hl-search-row .fin-search {
    flex-grow: 1;
    height: 48px;
}

.hl-scan {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 14px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-results {
    max-height: 36vh;
    overflow-y: auto;
}

.hl-results .fin-row.active {
    background: #EAF1FF;
}

.hl-selected {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #F4F7FD;
}

.hl-selected-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.hl-selected-head strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-selected-head span {
    font-size: 0.75rem;
    color: #3E5A8C;
    white-space: nowrap;
}

.hl-portions {
    display: flex;
    gap: 6px;
}

.hl-portions button {
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    padding: 0 6px;
    border-radius: 12px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hl-portions button.active {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

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

.hl-boxes > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 8px 0;
    border-radius: 12px;
    background: #FFFFFF;
}

.hl-boxes strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-boxes span {
    font-size: 0.6875rem;
    color: #3E5A8C;
}

.hl-boxes > div.primary {
    background: #1F5BD8;
    color: #FFFFFF;
}

.hl-boxes > div.primary span {
    color: #DCE6F8;
}

.hl-protein { color: #B42318; }
.hl-carbs { color: #1F6FAE; }
.hl-fat { color: #8A5A00; }

/* Élelmiszerek: makrósáv (energia szerinti arány) */
.hl-food-bar {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #EEF3FB;
}

.hl-food-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}

.hl-food-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hl-off {
    height: 18px;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 9px;
    background: #E3F1E8;
    color: #1E6B3C;
    font-size: 0.625rem;
    font-weight: 800;
    vertical-align: middle;
}

/* Testsúly */
.hl-weight-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: #1F5BD8;
    color: #FFFFFF;
}

.hl-weight-hero > div:first-child {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.hl-weight-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hl-badge {
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8125rem;
    font-weight: 800;
}

.hl-light {
    font-size: 0.78rem;
    color: #DCE6F8;
}

.hl-chart {
    display: block;
    width: 100%;
    overflow: visible;
}

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

.hl-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.hl-tile-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3E5A8C;
}

.hl-tile-value {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.hl-tile-value strong {
    font-size: 1.375rem;
    font-weight: 800;
}

.hl-tile-value span {
    font-size: 0.78rem;
    font-weight: 800;
}

.hl-good { color: #1E6B3C; }
.hl-bad { color: #B5470B; }
.hl-neutral { color: #5B6F94; }

/* Edzés */
.hl-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.hl-week > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 0;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.hl-week > div.today {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.hl-week small {
    font-size: 0.6875rem;
    font-weight: 700;
    opacity: 0.85;
}

.hl-week strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-week i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
}

.hl-week i.done {
    background: #2F9E5B;
}

.hl-week > div.today i.done {
    background: #FFFFFF;
}

.hl-activity-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #1F5BD8;
    color: #FFFFFF;
}

.hl-activity-ring {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 50%;
}

.hl-activity-ring > span {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #1F5BD8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hl-activity-ring strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.hl-activity-ring small {
    font-size: 0.66rem;
    font-weight: 600;
    color: #DCE6F8;
}

.hl-activity-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hl-activity-text > strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.78rem;
    color: #DCE6F8;
}

.hl-kpis strong {
    color: #FFFFFF;
    font-size: 0.9375rem;
}

.hl-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hl-steps-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.hl-steps-head strong {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hl-steps-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 64px;
}

.hl-steps-bars > div {
    border-radius: 6px 6px 3px 3px;
    background: #DCE6F8;
}

.hl-steps-bars > div.met {
    background: #2F9E5B;
}

.hl-steps-bars > div.today {
    background: #1F5BD8;
}

.hl-sync {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #EAF1FF;
    color: #0B2E6F;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.hl-sync > span {
    flex-grow: 1;
}

.hl-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #E3F1E8;
    color: #1E6B3C;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Profil */
.hl-goal-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.hl-goal-hero .fin-hero-row span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #C9D8F5;
}

.hl-goal-value {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hl-goal-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: #C9D8F5;
}

.hl-goal-lines > span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.hl-goal-lines strong {
    color: #FFFFFF;
    font-weight: 700;
}

.hl-goal-macros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.hl-goal-macros > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.6875rem;
    color: #C9D8F5;
}

.hl-goal-macros strong {
    font-size: 0.9375rem;
    color: #FFFFFF;
}

.hl-warning {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    line-height: 1.4;
}

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

.hl-fields .fs-input {
    height: 44px;
    padding: 0 10px;
    font-weight: 800;
}

.hl-saved {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E6B3C;
    text-align: center;
}

.hl-sync > svg, .hl-tip > svg {
    flex-shrink: 0;
}

/* --- Tápanyagok: napi kártya, részletes oldal, adag-tápanyagok, űrlap --- */

.hl-nut-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
    text-decoration: none;
}

.hl-nut-card:hover {
    color: #0B2E6F;
}

.hl-nut-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-nut-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1F5BD8;
}

.hl-nut-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.hl-nut-chip {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.hl-nut-chip-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3E5A8C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hl-nut-chip strong {
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.hl-nut-mini, .hl-nut-track {
    position: relative;
    display: block;
    height: 5px;
    border-radius: 3px;
    background: #EEF3FB;
    overflow: hidden;
}

.hl-nut-mini > span, .hl-nut-track > span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 3px;
}

.hl-nut-goal {
    font-size: 0.66rem;
    color: #5B6F94;
    white-space: nowrap;
}

.hl-nut-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #F4F7FD;
    font-size: 0.78rem;
    line-height: 1.35;
}

.hl-nut-dots {
    display: flex;
    flex-shrink: 0;
    gap: 3px;
}

.hl-nut-dots > span {
    width: 6px;
    height: 18px;
    border-radius: 3px;
}

.hl-detail-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    margin: -1.1rem -1.5rem 1rem;
    padding: 0 12px;
    background: #FFFFFF;
    border-bottom: 1px solid #DCE6F8;
    color: #0B2E6F;
}

.page-app .hl-detail-head {
    position: sticky;
    top: 0;
    z-index: 25;
}

.hl-detail-head a {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B2E6F;
}

.hl-detail-head h1 {
    flex-grow: 1;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
}

.hl-detail-head > span {
    padding-right: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3E5A8C;
    white-space: nowrap;
}

.hl-nut-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.hl-nut-hero-counts {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hl-nut-hero-counts > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.72rem;
    color: #C7D7F5;
}

.hl-nut-hero-counts strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

.hl-nut-hero-counts strong.low {
    color: #FFB37A;
}

.hl-nut-hero-text {
    max-width: 130px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #DCE6F8;
}

.hl-nut-group {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    overflow: hidden;
}

.hl-nut-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 16px 6px;
}

.hl-nut-group-head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-nut-group-head span {
    font-size: 0.72rem;
    color: #5B6F94;
}

.hl-nut-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-top: 1px solid #EEF3FB;
    background: #FFFFFF;
    font: inherit;
    color: inherit;
    text-align: left;
}

.hl-nut-row.open {
    background: #F7FAFF;
}

.hl-nut-row-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
}

.hl-nut-row-name {
    flex-grow: 1;
    font-size: 0.84rem;
    font-weight: 700;
}

.hl-nut-row-amount {
    font-size: 0.75rem;
    color: #3E5A8C;
    white-space: nowrap;
}

.hl-nut-row-pct {
    width: 46px;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 800;
}

.hl-nut-row .hl-nut-track {
    width: 100%;
    height: 7px;
    border-radius: 4px;
}

.hl-nut-row-more {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #3E5A8C;
}

.hl-nut-row-more strong {
    color: #0B2E6F;
}

.hl-nut-gap {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #FFF4E5;
    color: #6B3D00;
    font-size: 0.78rem;
    line-height: 1.45;
}

.hl-nut-gap svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.hl-nut-gap a {
    color: #6B3D00;
    font-weight: 800;
}

.hl-nut-foot {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #5B6F94;
}

/* Forráscímke a találatoknál */
.hl-tag {
    height: 18px;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 0.625rem;
    font-weight: 800;
    vertical-align: 1px;
}

.hl-tag.own { background: #EAF1FF; color: #1F5BD8; }
.hl-tag.usda { background: #E3F1E8; color: #1E6B3C; }
.hl-tag.off { background: #FFF4E5; color: #8A5A00; }

.hl-portion-nut {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFFFFF;
}

.hl-portion-nut-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #3E5A8C;
    text-transform: uppercase;
}

.hl-portion-nut-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hl-portion-nut-chips > span {
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 13px;
    background: #F4F7FD;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0B2E6F;
}

.hl-portion-nut-chips > span.strong {
    background: #E3F1E8;
    color: #1E6B3C;
}

.hl-portion-nut-note {
    font-size: 0.72rem;
    color: #6B3D00;
}

/* Élelmiszer űrlap */
.hl-label-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #F4F7FD;
}

.hl-label-box-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 800;
}

.hl-label-box-head span:last-child {
    font-size: 0.72rem;
    font-weight: 500;
    color: #5B6F94;
}

.hl-label-box .fs-input-group {
    background: #FFFFFF;
    height: 46px;
}

.hl-micro {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid #DCE6F8;
    overflow: hidden;
}

.hl-micro-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 14px;
    border: none;
    background: #FFFFFF;
    font: inherit;
    color: #0B2E6F;
    text-align: left;
}

.hl-micro-head > span {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hl-micro-head strong {
    font-size: 0.875rem;
    font-weight: 800;
}

.hl-micro-head span span {
    font-size: 0.75rem;
}

.hl-micro-head .unset { color: #8A5A00; }
.hl-micro-head .set { color: #1E6B3C; }

.hl-micro-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #EEF3FB;
}

.hl-fill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed #9DBCF7;
    background: #FFFFFF;
    font: inherit;
    color: #0B2E6F;
    text-align: left;
}

.hl-fill.filled {
    border-color: #2F9E5B;
    background: #F3FAF5;
}

.hl-fill > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hl-fill strong {
    font-size: 0.8125rem;
    font-weight: 800;
}

.hl-fill > span:last-child span {
    font-size: 0.72rem;
    color: #3E5A8C;
}

.hl-fill-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #E3F1E8;
    color: #1E6B3C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-micro-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #3E5A8C;
    text-transform: uppercase;
}

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

.hl-micro-field {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 42px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    min-width: 0;
}

.hl-micro-field:focus-within {
    border: 1.5px solid #1F5BD8;
}

.hl-micro-field.filled {
    background: #F3FAF5;
}

.hl-micro-field > span {
    flex-shrink: 0;
    max-width: 70px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #3E5A8C;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hl-micro-field input {
    flex-grow: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    color: #0B2E6F;
    text-align: right;
}

.hl-micro-field small {
    font-size: 0.7rem;
    color: #5B6F94;
}

.fs-danger.hl-delete {
    height: 48px;
}

/* A felcsúszó lap maga görget: a tartalma (pl. a találati lista, az étkezés-választó) ne nyomódjon össze. */
.fs-sheet > * {
    flex-shrink: 0;
}

.hl-macros-head span:last-child {
    white-space: nowrap;
}

/* --- Receptek --- */

.hl-tag.recipe { background: #ECEEFB; color: #3F4DB8; }

.hl-recipe-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #ECEEFB;
    color: #4B5BC9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-recipe-icon.small {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.hl-recipe-row {
    padding-top: 11px;
    padding-bottom: 11px;
}

.hl-chooser-title {
    margin: 0 0 -4px;
    font-size: 1.3rem;
    font-weight: 800;
}

.hl-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    font: inherit;
    color: #0B2E6F;
    text-align: left;
}

.hl-choice.recipe {
    border: 1.5px solid #4B5BC9;
    background: #F7F8FE;
}

.hl-choice > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hl-choice strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-choice > span:last-child span {
    font-size: 0.78rem;
    color: #3E5A8C;
}

.hl-choice-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-choice-icon.food { background: #EAF1FF; color: #1F5BD8; }
.hl-choice-icon.recipe { background: #ECEEFB; color: #4B5BC9; }

.hl-pick-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-pick-head > span {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hl-pick-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.hl-pick-head > span > span {
    font-size: 0.75rem;
    color: #3E5A8C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-add-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hl-add-boxes > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFFFFF;
}

.hl-add-boxes small {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3E5A8C;
}

.hl-add-boxes strong {
    font-size: 1rem;
    font-weight: 800;
}

.fs-input.hl-strong-input {
    font-weight: 800;
}

.hl-field-label {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3E5A8C;
}

.hl-stepper {
    display: flex;
    align-items: center;
    height: 52px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid #DCE6F8;
    overflow: hidden;
}

.hl-stepper button {
    width: 46px;
    height: 100%;
    flex-shrink: 0;
    border: none;
    background: #F4F7FD;
    color: #1F5BD8;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 800;
}

.hl-stepper button:disabled {
    color: #9DB0D3;
}

.hl-stepper span {
    flex-grow: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.hl-recipe-hint {
    margin-top: -8px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #5B6F94;
}

.hl-recipe-sum {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.hl-recipe-seg {
    display: flex;
    padding: 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.hl-recipe-seg button {
    flex: 1 1 0;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #DCE6F8;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 800;
}

.hl-recipe-seg button.active {
    background: #FFFFFF;
    color: #0B2E6F;
}

.hl-recipe-kcal {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hl-recipe-kcal strong {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hl-recipe-kcal span {
    font-size: 0.875rem;
    font-weight: 700;
    color: #C7D7F5;
}

.hl-recipe-macros {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hl-recipe-macros > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.hl-recipe-macros strong {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.hl-recipe-macros strong.p { color: #FFB4B4; }
.hl-recipe-macros strong.c { color: #9FD3FF; }
.hl-recipe-macros strong.f { color: #FFD27A; }

.hl-recipe-macros small {
    font-size: 0.7rem;
    color: #C7D7F5;
}

.hl-recipe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hl-recipe-chips > span {
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
}

.hl-recipe-chips > span.strong {
    background: #E3F1E8;
    color: #1E6B3C;
}

.hl-recipe-per100 {
    font-size: 0.72rem;
    color: #C7D7F5;
}

.hl-recipe-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: -8px;
}

.hl-recipe-list-head h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
}

.hl-recipe-list-head span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.hl-recipe-list {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid #DCE6F8;
    overflow: hidden;
}

.hl-recipe-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 8px 9px 14px;
    border-top: 1px solid #EEF3FB;
}

.hl-recipe-item:first-child {
    border-top: none;
}

.hl-recipe-item-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hl-recipe-item-name {
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 700;
}

.hl-recipe-item-name > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-recipe-item-name .hl-tag {
    flex-shrink: 0;
    height: 17px;
    font-size: 0.6rem;
}

.hl-recipe-item-sub {
    font-size: 0.72rem;
    color: #3E5A8C;
}

.hl-recipe-grams {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 36px;
    border-radius: 11px;
    background: #F4F7FD;
}

.hl-recipe-grams button {
    width: 30px;
    height: 36px;
    border: none;
    background: none;
    color: #1F5BD8;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 800;
}

.hl-recipe-grams span {
    min-width: 50px;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.hl-recipe-remove {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: none;
    color: #8296B8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-recipe-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border: none;
    border-top: 1px dashed #9DBCF7;
    background: #F7FAFF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
}

.hl-recipe-list .hl-recipe-add:first-child {
    border-top: none;
}

.hl-unit-seg {
    display: flex;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 11px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.hl-unit-seg button {
    height: 28px;
    padding: 0 11px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
}

.hl-unit-seg button.active {
    background: #1F5BD8;
    color: #FFFFFF;
}

.hl-portions.four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hl-recipe-item-sub {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hl-recipe-item-sub .hl-tag {
    margin-left: 0;
    height: 17px;
    font-size: 0.6rem;
}

/* --- Munka (a tervek szerint) --- */

.wk-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.wk-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.wk-card-head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
}

.wk-card-head > span {
    font-size: 0.75rem;
    color: #5B6F94;
    white-space: nowrap;
}

.wk-card-head > span strong {
    color: #0B2E6F;
}

.wk-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wk-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
}

.wk-group-head h2 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 800;
}

.wk-group-head h2.late {
    color: #B4410C;
}

.wk-group-head > span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.wk-white {
    background: #FFFFFF;
}

/* Kék és sötét kártyák */
.wk-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: none;
    border-radius: 22px;
    background: #1F5BD8;
    color: #FFFFFF;
    font: inherit;
    text-align: left;
}

.wk-hero > small, .wk-hero small {
    font-size: 0.78rem;
    color: #DCE6F8;
}

.wk-hero > strong, .wk-hero-row strong {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.wk-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.wk-hero-row > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wk-hero-row small.right {
    text-align: right;
    font-size: 0.75rem;
}

.wk-delta {
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.wk-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: #DCE6F8;
}

.wk-split {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.wk-split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.72rem;
    color: #DCE6F8;
}

.wk-split-legend span, .wk-dot-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wk-split-legend i, .wk-dot-label i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 3px;
}

.wk-dark {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.wk-dark small {
    font-size: 0.75rem;
    color: #C7D7F5;
}

.wk-dark small.muted, .wk-dark .muted {
    color: #9DB0D3;
}

.wk-dark h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
}

.wk-dark-pair, .wk-dark-three {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.wk-dark-pair > span, .wk-dark-three > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.wk-dark-pair strong, .wk-dark-three strong {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.wk-dark-three strong {
    font-size: 0.84rem;
}

.wk-dark-pair > span.light, .wk-dark-three > span.light {
    background: #FFFFFF;
    color: #0B2E6F;
}

.wk-dark-pair > span.light small, .wk-dark-three > span.light small {
    color: #3E5A8C;
}

.wk-dark-pair > span.light strong, .wk-dark-three > span.light strong {
    color: #1F5BD8;
}

.wk-dark-kv {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8125rem;
}

.wk-dark-kv span {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wk-dark-kv span span {
    color: #C7D7F5;
}

.wk-three-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wk-three-stats > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wk-three-stats strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.wk-three-stats strong.orange { color: #FFB37A; }
.wk-three-stats strong.green { color: #9FE0B5; }

/* Választógombok (ügyfél, iroda, határidő) */
.wk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wk-chip {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 18px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    max-width: 100%;
}

.wk-chip i {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 5px;
}

.wk-chip.active {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.wk-chip.active i {
    background: #FFFFFF !important;
}

.wk-chip.active-soft {
    border-color: #1F5BD8;
    background: #EAF1FF;
    color: #0B2E6F;
}

.wk-chip.done {
    opacity: 0.55;
}

.wk-chip-box {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 5px;
    border: 2px solid #9DB0D3;
    background: #FFFFFF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-chip.active-soft .wk-chip-box, .wk-chip.done .wk-chip-box {
    border-color: #1F5BD8;
}

.wk-date {
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 18px;
    border: 1px solid #DCE6F8;
    font: inherit;
    font-size: 0.8125rem;
    color: #0B2E6F;
}

.wk-title-input {
    border: 1.5px solid #1F5BD8;
    font-weight: 800;
}

.wk-textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.45;
}

.wk-textarea.big {
    min-height: 160px;
}

.wk-hint-tight {
    margin-top: -10px;
}

.fin-seg.wk-prio button.active.high {
    background: #B4410C;
    color: #FFFFFF;
}

.wk-checklist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border-radius: 14px;
    background: #F4F7FD;
}

.wk-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 8px;
    border: none;
    border-radius: 10px;
    background: none;
    font: inherit;
    font-size: 0.84rem;
    color: #0B2E6F;
    text-align: left;
}

.wk-step-box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 6px;
    border: 2px solid #9DB0D3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-step-box svg {
    visibility: hidden;
}

.wk-step.done {
    color: #8296B8;
    text-decoration: line-through;
}

.wk-step.done .wk-step-box {
    border-color: #2F9E5B;
    background: #2F9E5B;
}

.wk-step.done .wk-step-box svg {
    visibility: visible;
}

/* Feladatok */
.wk-timer-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #0B2E6F;
    color: #FFFFFF;
    text-decoration: none;
}

.wk-timer-strip:hover {
    color: #FFFFFF;
}

.wk-timer-strip-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #2F9E5B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-timer-strip-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wk-timer-strip-text small {
    font-size: 0.72rem;
    font-weight: 700;
    color: #C7D7F5;
}

.wk-timer-strip-text strong {
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-timer-strip-clock {
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.wk-gen-row {
    display: flex;
    gap: 8px;
}

.wk-gen {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 12px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1.5px solid #4B5BC9;
    color: #0B2E6F;
    text-decoration: none;
}

.wk-gen:hover {
    color: #0B2E6F;
}

.wk-gen svg {
    flex-shrink: 0;
}

.wk-gen > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wk-gen strong {
    font-size: 0.8125rem;
    font-weight: 800;
}

.wk-gen small {
    font-size: 0.7rem;
    color: #3E5A8C;
}

.wk-gen-templates {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    background: #ECEEFB;
    color: #3F4DB8;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
}

.wk-gen-templates.wide {
    flex-grow: 1;
    min-height: 40px;
}

.wk-task {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    border-top: 1px solid #EEF3FB;
}

.wk-task:first-child {
    border-top: none;
}

/* Telefon: a futó stopper feladata erős kék háttérrel és bal oldali sávval. */
.wk-task.run {
    background: #CFE0FF;
    border-radius: 12px;
    box-shadow: inset 4px 0 0 #1F5BD8;
}

.wk-check {
    width: 44px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-check > span {
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 11px;
    border: 2px solid #9DB0D3;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-check > span svg {
    visibility: hidden;
}

.wk-check.late > span {
    border-color: #E8792E;
}

.wk-check.done > span {
    border-color: #2F9E5B;
    background: #2F9E5B;
}

.wk-check.done > span svg {
    visibility: visible;
}

.wk-task-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
}

.wk-task-title {
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-task-title.done {
    color: #8296B8;
    text-decoration: line-through;
}

.wk-task-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 0.72rem;
    color: #3E5A8C;
}

.wk-task-meta .late {
    color: #B4410C;
    font-weight: 800;
}

.wk-badge-high {
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 11px;
    background: #FDECE3;
    color: #B4410C;
    font-size: 0.66rem;
    font-weight: 800;
}

/* Sablonok, generálás */
.wk-start-month {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #4B5BC9;
    color: #FFFFFF;
    text-decoration: none;
}

.wk-start-month:hover {
    color: #FFFFFF;
}

.wk-start-month > span:nth-child(2) {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wk-start-month strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.wk-start-month small {
    font-size: 0.75rem;
    color: #E3E6FA;
}

.wk-start-month-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-template {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.wk-template.picked {
    border-color: #9DBCF7;
}

.wk-template-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
}

.wk-template-head > span:first-child {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wk-template-head strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.wk-template-head small {
    font-size: 0.75rem;
    color: #3E5A8C;
}

.wk-rec {
    height: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.69rem;
    font-weight: 800;
}

.wk-template-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #F4F7FD;
    font-size: 0.78rem;
}

.wk-template-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-template-steps i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 4px;
    border: 2px solid #9DB0D3;
}

.wk-template-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wk-template-clients span {
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 12px;
    background: #EAF1FF;
    color: #1F5BD8;
    font-size: 0.69rem;
    font-weight: 700;
}

.wk-template-foot {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #5B6F94;
}

.wk-template-foot button {
    padding: 0;
    border: none;
    background: none;
    color: #1F5BD8;
    font: inherit;
    font-weight: 800;
}

.wk-steps-edit {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wk-step-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wk-step-edit .fs-input {
    flex-grow: 1;
    min-width: 0;
    height: 44px;
}

.wk-steps-edit .hl-recipe-add {
    border: 1px dashed #9DBCF7;
    border-radius: 14px;
}

.wk-info {
    padding: 10px 12px;
    border-radius: 14px;
    background: #ECEEFB;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #2E3A8C;
}

.wk-gen-page {
    padding-bottom: 150px;
}

.wk-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px 22px;
    background: #FFFFFF;
    border-top: 1px solid #DCE6F8;
    box-shadow: 0 -8px 20px rgba(11, 46, 111, 0.08);
}

.wk-sticky-cta > span {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.wk-sticky-cta > span > span {
    color: #3E5A8C;
}

.page-app .wk-sticky-cta {
    bottom: calc(76px + env(safe-area-inset-bottom));
}

.wk-head-link {
    width: auto !important;
    padding: 0 10px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #1F5BD8 !important;
    text-decoration: none;
}

.wk-head-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: none;
    color: #3E5A8C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-head-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wk-head-text h1 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-head-text small {
    font-size: 0.75rem;
    color: #3E5A8C;
}

/* Megbízások */
.wk-office-row {
    padding-top: 12px;
    padding-bottom: 12px;
}

.wk-office-icon, .wk-pkg-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-pkg-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ECEEFB;
    color: #4B5BC9;
}

.wk-office-mine {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.wk-office-mine strong {
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.wk-office-mine .blue, .wk-office-mine small.blue {
    color: #1F5BD8;
}

.wk-office-mine small {
    font-size: 0.69rem;
    color: #5B6F94;
}

.wk-office-mine small.blue {
    font-weight: 700;
}

.wk-pct {
    height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border-radius: 10px;
    background: #EAF1FF;
    color: #1F5BD8;
    font-size: 0.66rem;
    font-weight: 800;
}

.wk-ranking {
    gap: 9px;
}

.wk-ranking a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}

.wk-ranking-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
    color: #5B6F94;
}

.wk-ranking-line > span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-ranking-line strong {
    color: #0B2E6F;
    font-weight: 800;
    white-space: nowrap;
}

.wk-ranking-line > span strong {
    font-weight: 700;
}

.wk-bar {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: #EEF3FB;
    overflow: hidden;
}

.wk-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
}

.wk-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wk-share-row > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wk-share-stepper {
    display: flex;
    align-items: center;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
}

.wk-share-stepper button {
    width: 38px;
    height: 42px;
    border: none;
    background: none;
    color: #FFFFFF;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 800;
}

.wk-share-stepper strong {
    min-width: 52px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
}

.wk-client-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-top: 1px solid #EEF3FB;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    text-decoration: none;
}

.wk-client-row:first-child {
    border-top: none;
}

.wk-client-row:hover {
    color: inherit;
}

.wk-type {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.wk-type.small {
    width: auto;
    height: 24px;
    padding: 0 9px;
    margin-right: 8px;
    border-radius: 12px;
    font-size: 0.72rem;
}

.wk-price {
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.wk-kv {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #EEF3FB;
    font-size: 0.8125rem;
}

.wk-kv span {
    width: 108px;
    flex-shrink: 0;
    color: #3E5A8C;
}

.wk-kv strong {
    flex-grow: 1;
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.wk-billing {
    gap: 0;
    padding-bottom: 6px;
}

.wk-billing .wk-card-head {
    padding-bottom: 8px;
    align-items: center;
}

.wk-soft-btn {
    height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: #EAF1FF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.wk-link-btn {
    padding: 0;
    border: none;
    background: none;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.wk-link-btn.danger {
    color: #B42318;
}

.wk-package-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-package-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #F4F7FD;
    font-size: 0.78rem;
}

.wk-package-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wk-package-line strong {
    white-space: nowrap;
}

.wk-package-total {
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #DCE6F8;
    font-size: 0.84rem;
}

.wk-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wk-qty input {
    width: 56px;
    height: 34px;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0B2E6F;
    text-align: right;
}

.wk-qty span {
    font-size: 0.72rem;
    color: #3E5A8C;
    white-space: nowrap;
}

.wk-month-bars {
    display: grid;
    gap: 4px;
    align-items: end;
    height: 64px;
}

.wk-month-bars > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wk-month-bars > span > span {
    width: 100%;
    border-radius: 5px;
}

.wk-month-bars small {
    font-size: 0.6rem !important;
}

.wk-month-row {
    padding-top: 11px;
    padding-bottom: 11px;
}

.wk-expected {
    color: #1F5BD8;
    font-weight: 800;
}

.wk-sheet-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.wk-sheet-title h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.wk-sheet-title small {
    font-size: 0.75rem;
    color: #3E5A8C;
}

.wk-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wk-color {
    width: 34px;
    height: 34px;
    border: 3px solid #FFFFFF;
    border-radius: 17px;
    box-shadow: 0 0 0 1px #DCE6F8;
}

.wk-color.active {
    box-shadow: 0 0 0 2px #0B2E6F;
}

/* Számlacsomag-szerkesztő */
.wk-pkg-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #EEF3FB;
}

.wk-pkg-item:first-child {
    border-top: none;
}

.wk-pkg-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-pkg-name {
    flex-grow: 1;
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    color: #0B2E6F;
}

.wk-pkg-item-row strong {
    font-size: 0.84rem;
    white-space: nowrap;
}

.wk-pkg-unit {
    width: 52px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
    font: inherit;
    font-size: 0.8125rem;
    color: #0B2E6F;
}

.wk-pkg-x {
    color: #5B6F94;
    font-size: 0.8125rem;
}

.wk-pkg-price {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
}

.wk-pkg-price input {
    flex-grow: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0B2E6F;
    text-align: right;
}

.wk-pkg-price small {
    font-size: 0.72rem;
    color: #5B6F94;
}

.wk-perclient {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3E5A8C;
    text-align: left;
}

.wk-switch {
    width: 38px;
    height: 22px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 3px;
    border-radius: 11px;
    background: #C3CEE3;
    display: flex;
    justify-content: flex-start;
}

.wk-switch > span {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #FFFFFF;
}

.wk-perclient.on .wk-switch, .wk-switch.on {
    background: #1F5BD8;
    justify-content: flex-end;
}

.wk-total-dark, .wk-mine-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.wk-mine-card {
    background: #1F5BD8;
}

.wk-total-dark > span, .wk-mine-card > span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wk-total-dark small, .wk-mine-card small {
    font-size: 0.75rem;
    color: #DCE6F8;
}

.wk-total-dark small.muted, .wk-mine-card small.muted {
    font-size: 0.7rem;
    color: #9DB0D3;
}

.wk-mine-card small.muted {
    color: #C7D7F5;
}

.wk-total-dark strong, .wk-mine-card strong {
    font-size: 1.3rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Havi számla */
.wk-inv-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 10px 14px;
    border-top: 1px solid #EEF3FB;
}

.wk-inv-line:first-child {
    border-top: none;
}

.wk-inv-line > strong {
    font-size: 0.84rem;
    white-space: nowrap;
}

.wk-inv-new {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #EEF3FB;
    background: #F7FAFF;
}

.wk-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #F4F7FD;
    font-size: 0.8125rem;
}

.wk-totals > span {
    display: flex;
    justify-content: space-between;
}

.wk-totals > span.muted {
    color: #3E5A8C;
}

.wk-totals > span.big {
    padding-top: 6px;
    border-top: 1px solid #DCE6F8;
    font-size: 0.9375rem;
}

/* Értékelés */
.wk-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wk-kpis > section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    min-width: 0;
}

.wk-kpis small {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3E5A8C;
}

.wk-kpis strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.wk-kpis strong.blue { color: #1F5BD8; }
.wk-kpis strong.green { color: #1E6B3C; }
.wk-kpis strong.late { color: #B4410C; }

.wk-kpis span {
    font-size: 0.69rem;
    color: #5B6F94;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wk-weeks {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    height: 120px;
}

.wk-weeks-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1.5px dashed #9DB0D3;
}

.wk-week {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wk-week-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    height: 100px;
}

.wk-week-bars span {
    flex: 1 1 0;
    border-radius: 5px 5px 2px 2px;
}

.wk-week small {
    font-size: 0.62rem;
    color: #5B6F94;
    white-space: nowrap;
}

.wk-donut-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.wk-donut, .wk-ring {
    position: relative;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    border-radius: 50%;
}

.wk-donut > span, .wk-ring > span {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wk-donut strong {
    font-size: 0.875rem;
    font-weight: 800;
}

.wk-donut small {
    font-size: 0.66rem;
    color: #3E5A8C;
}

.wk-donut-legend {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-donut-legend > strong {
    font-size: 0.9375rem;
    font-weight: 800;
}

.wk-donut-legend > span {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.78rem;
}

.wk-donut-legend > span > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.wk-donut-legend i {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 3px;
}

.wk-donut-legend small {
    font-size: 0.69rem;
    color: #5B6F94;
}

.wk-ontime {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
}

.wk-ontime > span:first-child {
    width: 40px;
    color: #3E5A8C;
}

.wk-ontime-bar {
    flex-grow: 1;
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #EEF3FB;
}

.wk-ontime > strong {
    width: 36px;
    text-align: right;
}

.wk-insights > span {
    display: flex;
    gap: 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.wk-insights b {
    color: #9DBCF7;
}

.wk-hbars {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 4px;
}

.wk-avg {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1.5px dashed #9DB0D3;
}

.wk-hbar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
}

.wk-hbar-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
}

.wk-hbar-label .bold {
    font-weight: 800;
}

.wk-hbar .wk-bar {
    height: 10px;
}

.wk-client-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wk-client-head > span:nth-child(2) {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wk-client-head strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.wk-grade {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 800;
}

.wk-grade.big {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.35rem;
}

.wk-trend {
    font-size: 0.75rem;
    font-weight: 800;
    color: #DCE6F8;
    white-space: nowrap;
}

.wk-trend.up { color: #9FE0B5; }
.wk-trend.down { color: #FFB37A; }

.wk-six {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    height: 60px;
}

.wk-six > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.wk-six > span > span {
    width: 100%;
    border-radius: 5px;
}

.wk-six small {
    font-size: 0.6rem !important;
}

/* Munkaidő */
.wk-timer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #1F5BD8;
    color: #FFFFFF;
}

.wk-timer.stopped {
    background: #0B2E6F;
}

.wk-timer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wk-timer-top small {
    font-size: 0.75rem;
    font-weight: 700;
    color: #DCE6F8;
    white-space: nowrap;
}

.wk-timer-chip {
    min-width: 0;
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-timer-chip i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #9DBCF7;
}

.wk-timer-clock {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.wk-timer-desc {
    font-size: 0.875rem;
    font-weight: 600;
    color: #DCE6F8;
}

.wk-timer-btn {
    height: 50px;
    border: none;
    border-radius: 15px;
    background: #FFFFFF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wk-timer-btn.stop {
    color: #B4410C;
}

.wk-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    height: 92px;
}

.wk-weekday {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wk-weekday small {
    font-size: 0.62rem;
    font-weight: 600;
    color: #5B6F94;
    white-space: nowrap;
}

.wk-weekday small.today {
    color: #0B2E6F;
    font-weight: 800;
}

.wk-weekday-bar {
    position: relative;
    width: 100%;
    height: 54px;
    border-radius: 8px;
    background: #EEF3FB;
    overflow: hidden;
}

.wk-weekday-bar span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
}

.wk-month-balance {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #EEF3FB;
    font-size: 0.78rem;
}

.wk-month-balance > span:first-child {
    color: #3E5A8C;
}

.wk-month-balance .blue { color: #1F5BD8; }
.wk-month-balance .green { color: #1E6B3C; }

.wk-entry {
    padding-top: 10px;
    padding-bottom: 10px;
}

.wk-entry-stripe {
    width: 4px;
    align-self: stretch;
    flex-shrink: 0;
    border-radius: 2px;
}

.wk-running {
    color: #1F5BD8;
}

/* Szabadság */
.wk-leave-hero {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.wk-ring {
    width: 96px;
    height: 96px;
}

.wk-ring > span {
    inset: 10px;
    background: #1F5BD8;
}

.wk-ring strong {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.wk-ring small {
    font-size: 0.69rem !important;
}

.wk-leave-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wk-leave-text strong {
    font-size: 1.05rem !important;
    font-weight: 800;
    letter-spacing: 0;
}

.wk-leave-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wk-leave-chips span {
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 700;
}

.wk-calendar {
    padding: 12px 14px 14px;
}

.wk-cal-stepper {
    border: none;
    height: 36px;
    padding: 0;
}

.wk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
}

.wk-cal-head {
    font-size: 0.69rem;
    font-weight: 700;
    color: #5B6F94;
}

.wk-cal-day {
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

.wk-cal-day.weekend { color: #8296B8; }
.wk-cal-day.vacation { background: #1F5BD8; color: #FFFFFF; }
.wk-cal-day.sick { background: #E8792E; color: #FFFFFF; }
.wk-cal-day.other { background: #4B5BC9; color: #FFFFFF; }
.wk-cal-day.holiday { background: #FDECE3; color: #B4410C; box-shadow: inset 0 0 0 1px #E8792E; }

.wk-cal-day.today {
    font-weight: 800;
    box-shadow: inset 0 0 0 2px #1F5BD8;
}

.wk-cal-day.selected {
    box-shadow: inset 0 0 0 2px #0B2E6F;
}

.wk-legend-holiday {
    background: #FDECE3 !important;
    box-shadow: inset 0 0 0 1px #E8792E;
}

.wk-cal-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #F4F7FD;
    font-size: 0.78rem;
}

.wk-upcoming-badge {
    width: 44px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.wk-upcoming-badge.holiday {
    background: #FDECE3;
    color: #B4410C;
}

/* Jegyzetek */
.wk-pin-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.wk-pin-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid;
    font: inherit;
    color: #0B2E6F;
    text-align: left;
}

.wk-pin-card strong {
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.3;
}

.wk-pin-card > span {
    flex-grow: 1;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #3E5A8C;
    overflow: hidden;
}

.wk-pin-card small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.69rem;
    font-weight: 700;
}

.wk-pin-card small i {
    width: 7px;
    height: 7px;
    border-radius: 4px;
}

.wk-note-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.wk-note-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wk-note-line strong {
    flex-grow: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-note-line small {
    font-size: 0.72rem;
    color: #5B6F94;
    white-space: nowrap;
}

.wk-note-row .wk-dot-label {
    font-size: 0.69rem;
    font-weight: 700;
}

/* Folyószámla */
.fin-seg.wk-year-seg {
    flex-shrink: 0;
    grid-auto-columns: auto;
}

.fin-seg.wk-year-seg button {
    padding: 0 12px;
}

.wk-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    background: #FFFFFF;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0B2E6F;
}

.wk-sheet-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.wk-sheet-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-sheet-line > strong {
    flex-grow: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-sheet-line > small {
    margin-left: auto;
    font-size: 0.72rem;
    color: #5B6F94;
    white-space: nowrap;
}

.wk-status {
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 11px;
    font-size: 0.69rem;
    font-weight: 800;
    white-space: nowrap;
}

.wk-status.bad { background: #FDECE3; color: #B4410C; }
.wk-status.ok { background: #E3F1E8; color: #1E6B3C; }

.wk-taxes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wk-taxes span {
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 7px;
    background: #F4F7FD;
    font-size: 0.69rem;
    font-weight: 700;
    color: #3E5A8C;
}

/* --- Munka: havi elszámolás, díjtáblák --- */

.wk-sec {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3E5A8C;
}

.wk-center {
    text-align: center;
}

.wk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wk-tag {
    padding: 5px 11px;
    border-radius: 999px;
    background: #EAF1FF;
    color: #1F5BD8;
    font-size: 0.78rem;
    font-weight: 800;
}

.wk-tag.orange {
    background: #FFF1E8;
    color: #A8460F;
}

.wk-tag.green {
    background: #E3F1E8;
    color: #1E6B3C;
}

.wk-settle-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 4px 0;
}

.wk-settle-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.wk-settle-head span {
    font-size: 0.7rem;
    color: #5B6F94;
    text-align: right;
}

.wk-serial-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 76px 44px;
    gap: 8px;
    align-items: center;
}

.wk-serial-caps span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #5B6F94;
    text-align: right;
}

.wk-serial-label {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.wk-serial-name {
    height: 44px;
    padding: 0 10px;
    font-size: 0.875rem;
}

.fs-input.wk-num {
    height: 44px;
    min-width: 0;
    padding: 0 8px;
    border-radius: 12px;
    background: #F7F9FE;
    font-weight: 700;
    text-align: right;
}

.fs-input.wk-num.prev, .fs-input.wk-num[readonly] {
    background: #EEF2FA;
    color: #3E5A8C;
}

.fs-input.wk-num.minus {
    color: #A8460F;
}

.wk-serial-diff {
    font-size: 0.9375rem;
    color: #1F5BD8;
    text-align: right;
}

.wk-settle-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
    align-items: center;
}

.wk-settle-input label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wk-settle-input strong {
    font-size: 0.9375rem;
}

.wk-settle-input small {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #5B6F94;
}

.wk-items-card {
    gap: 4px;
}

.wk-items-card > strong {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wk-items-tier {
    align-self: flex-start;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
}

.wk-line, .wk-line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9375rem;
    color: #0B2E6F;
}

.wk-line > span, .wk-line-row > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.wk-line small, .wk-line-row small {
    font-size: 0.72rem;
    font-weight: 500;
    color: #5B6F94;
}

.wk-line strong, .wk-line-row strong {
    flex-shrink: 0;
}

.wk-line.big {
    font-size: 1.05rem;
}

.wk-line-sep {
    height: 1px;
    background: #DCE6F8;
}

.wk-line.wk-mine {
    padding: 12px;
    border-radius: 14px;
    background: #EAF1FF;
    color: #1F5BD8;
}

.wk-line-row {
    min-height: 52px;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #EDF1F9;
    background: none;
    font: inherit;
}

.wk-line-row:last-of-type {
    border-bottom: none;
}

.wk-line-row:disabled {
    color: #0B2E6F;
    opacity: 1;
}

.wk-tier-box {
    display: flex;
    flex-direction: column;
    padding: 4px 14px;
    border-radius: 14px;
    background: #F7F9FE;
}

.wk-tier-box .wk-line {
    padding: 8px 0;
    border-bottom: 1px solid #EDF1F9;
    font-size: 0.875rem;
}

.wk-tier-box .wk-line:last-child {
    border-bottom: none;
}

.wk-acc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 4px 0;
    border: none;
    border-bottom: 1px solid #EDF1F9;
    background: none;
    font: inherit;
    text-align: left;
    color: inherit;
}

.wk-acc-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

.wk-acc-icon.bank {
    background: #EAF1FF;
    color: #1F5BD8;
}

.wk-acc-icon.cash {
    background: #FFF1E8;
    color: #A8460F;
}

.wk-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-tier-row {
    display: grid;
    grid-template-columns: 62px 12px 66px minmax(0, 1fr) 32px;
    gap: 6px;
    align-items: center;
}

.wk-tier-dash {
    text-align: center;
    color: #5B6F94;
}

.wk-tier-fee {
    height: 44px;
    padding: 0 10px;
    border-radius: 12px;
}

.wk-tier-fee input {
    width: 100%;
    text-align: right;
    font-weight: 700;
}

.wk-example {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #EAF1FF;
    font-size: 0.8rem;
    line-height: 1.45;
}

.wk-example strong {
    color: #1F5BD8;
}

.wk-warn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #F5D9C6;
    border-radius: 18px;
    background: #FFF7F1;
    font-size: 0.8rem;
    line-height: 1.4;
}

.wk-warn > span {
    flex: 1;
}

.wk-warn a {
    flex-shrink: 0;
    font-weight: 800;
    color: #1F5BD8;
    text-decoration: none;
}

.wk-settle-progress {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.wk-split > span {
    flex-shrink: 0;
}

.wk-office-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 0;
    color: #0B2E6F;
    text-decoration: none;
}

.wk-office-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.wk-office-head span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.wk-income-row {
    gap: 12px;
}

.wk-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 5px;
}

.wk-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}

.wk-pill.ok {
    background: #E3F1E8;
    color: #1E6B3C;
}

.wk-pill.est {
    background: #FFF1E8;
    color: #A8460F;
}

.wk-pill.missing {
    background: #F1F3F8;
    color: #5B6F94;
}

.wk-settle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
    font: inherit;
    text-align: left;
    color: inherit;
}

.wk-settle-switch.on {
    border: 2px solid #1F5BD8;
    background: #F5F8FF;
}

.wk-settle-switch-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wk-settle-switch-text strong {
    font-size: 0.9375rem;
}

.wk-settle-switch-text small {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #5B6F94;
}

.wk-settle-switch-text em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1F5BD8;
}

.wk-settle-tag {
    padding: 1px 7px;
    border-radius: 999px;
    background: #EAF1FF;
    color: #1F5BD8;
    font-weight: 700;
}

/* Az új sor neve a teljes szélességet kapja, a sorszámok alatta. */
.wk-serial-row.new .wk-serial-name {
    grid-column: 1 / -1;
}

.wk-serial-row.new .fs-input.wk-num.prev {
    grid-column: 2;
}

.wk-card-head .wk-sec {
    font-size: 0.75rem;
}

/* A lebegő + gomb ne takarja a lista utolsó sorát. */
.fin:has(~ .fin-fab) {
    padding-bottom: 96px;
}

/* --- Munka: stopper a feladaton, munkakategóriák --- */

.wk-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wk-cat-chip {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #DCE6F8;
    border-radius: 19px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
}

.wk-cat-chip i {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 5px;
}

.wk-cat-chip.on {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.wk-cat-chips:not(.dark) .wk-cat-chip.on i {
    background: #FFFFFF !important;
}

.wk-cat-chips.dark .wk-cat-chip {
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #FFFFFF;
}

.wk-cat-chips.dark .wk-cat-chip.on {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: #0B2E6F;
}

.wk-ttimer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.wk-ttimer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wk-ttimer-top small {
    font-size: 0.75rem;
    color: #B9C8EA;
    text-align: right;
}

.wk-ttimer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
    font-weight: 700;
}

.wk-ttimer-status i {
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background: #9DB0D3;
}

.wk-ttimer-status i.on {
    background: #4ADE80;
}

.wk-ttimer-clock {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wk-ttimer-other {
    font-size: 0.75rem;
    color: #FFD9C2;
}

.wk-ttimer-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-ttimer-cats small {
    font-size: 0.72rem;
    color: #B9C8EA;
}

.wk-ttimer-btn {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 16px;
    background: #FFFFFF;
    color: #1F5BD8;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
}

.wk-ttimer-btn.stop {
    color: #B4501C;
}

.wk-cat-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #EEF2FA;
}

.wk-cat-bar.big {
    height: 14px;
    border-radius: 7px;
}

.wk-cat-bar > span {
    flex-shrink: 0;
}

.wk-cat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.8rem;
}

.wk-cat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wk-cat-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.wk-cat-legend.light {
    color: #C7D7F5;
    font-size: 0.72rem;
}

.wk-tentries {
    display: flex;
    flex-direction: column;
}

.wk-tentry {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    border-bottom: 1px solid #EDF1F9;
    font-size: 0.875rem;
}

.wk-tentry:last-child {
    border-bottom: none;
}

.wk-tentry > i {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 5px;
}

.wk-tentry > span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wk-tentry small {
    font-size: 0.72rem;
    color: #5B6F94;
}

.wk-timer-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
}

.wk-timer-task > span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wk-timer-task strong {
    font-size: 0.875rem;
}

.wk-timer-task small {
    font-size: 0.72rem;
    color: #B9C8EA;
}

.wk-cat-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wk-cat-line-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.875rem;
}

.wk-cat-line-head > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.wk-cat-line-head i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.wk-cat-line-head small {
    margin-left: 6px;
    font-weight: 500;
    color: #5B6F94;
}

.wk-cat-track {
    display: block;
    height: 10px;
    border-radius: 5px;
    background: #EEF2FA;
    overflow: hidden;
}

.wk-cat-track > span {
    display: block;
    height: 100%;
    border-radius: 5px;
}

.wk-cat-tag {
    align-self: flex-start;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
}

.wk-cat-table {
    display: flex;
    flex-direction: column;
}

.wk-cat-trow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px 104px;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid #EDF1F9;
    font-size: 0.875rem;
}

.wk-cat-trow:last-child {
    border-bottom: none;
}

.wk-cat-trow > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-width: 0;
}

.wk-cat-trow i {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 3px;
}

.wk-cat-trow strong, .wk-cat-trow em {
    text-align: right;
}

.wk-cat-trow em {
    font-style: normal;
    font-weight: 700;
    color: #1F5BD8;
}

.wk-cat-trow em.none {
    font-size: 0.72rem;
    font-weight: 500;
    color: #8A96AE;
}

.wk-cat-trow.caps {
    min-height: 22px;
    border-bottom: none;
}

.wk-cat-trow.caps span {
    justify-content: flex-end;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5B6F94;
}

.wk-cat-list {
    display: flex;
    flex-direction: column;
}

.wk-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0;
    border: none;
    border-bottom: 1px solid #EDF1F9;
    background: none;
    font: inherit;
    text-align: left;
    color: inherit;
}

.wk-cat-row > i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
}

.wk-cat-row > span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wk-cat-row strong {
    font-size: 0.9375rem;
}

.wk-cat-row small {
    font-size: 0.72rem;
    color: #5B6F94;
}

.wk-cat-row.archived {
    opacity: 0.6;
}

.wk-cat-edit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #EDF1F9;
}

.wk-cat-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.wk-cat-actions .wk-soft-btn {
    height: 52px;
    padding: 0 18px;
}

/* --- Tanulás --- */

.ln-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ln-hero-top > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ln-hero-top strong {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.ln-hero-top strong span {
    font-size: 1.05rem;
    font-weight: 600;
    color: #DCE6F8;
}

.ln-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.ln-streak strong {
    font-size: 1.35rem !important;
}

.ln-streak small {
    font-size: 0.66rem !important;
    white-space: nowrap;
}

.ln-goal-bar {
    display: block;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.ln-goal-bar > span {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: #FFFFFF;
}

.ln-goal-bar.light {
    background: #DCE5F5;
}

.ln-goal-bar.light > span {
    background: #1F5BD8;
}

.ln-days {
    display: flex;
    justify-content: space-between;
}

.ln-days > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #DCE6F8;
}

.ln-days > span.today {
    color: #FFFFFF;
    font-weight: 800;
}

.ln-days i {
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.ln-days i.met {
    background: #FFFFFF;
    color: #1F5BD8;
}

.ln-days i.now {
    background: none;
    border: 2px dashed #FFFFFF;
}

.ln-due {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0B2E6F;
    color: #FFFFFF;
    text-decoration: none;
}

.ln-due-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.ln-due-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ln-due-text strong {
    font-size: 1rem;
}

.ln-due-text small {
    font-size: 0.75rem;
    color: #B9C8EA;
}

.ln-done-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #1E8A6E;
    color: #FFFFFF;
}

.ln-done-card small {
    font-size: 0.8rem;
    color: #D9F2EA;
}

.ln-kind-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ln-mat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 6px 0;
    border-bottom: 1px solid #EDF1F9;
    color: #0B2E6F;
    text-decoration: none;
}

.ln-mat-row:last-child {
    border-bottom: none;
}

.ln-mat-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ln-mat-text strong {
    font-size: 0.9375rem;
}

.ln-mat-text small {
    font-size: 0.75rem;
    color: #5B6F94;
}

.ln-prog {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: #EEF2FA;
    overflow: hidden;
}

.ln-prog > span {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.ln-prog.big {
    height: 8px;
}

.ln-deadline, .ln-link {
    min-height: 40px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: #0B2E6F;
    text-decoration: none;
    font-size: 0.875rem;
}

.ln-link strong {
    color: #1F5BD8;
}

.ln-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #DCE6F8;
    border-radius: 20px;
    background: #FFFFFF;
    color: #0B2E6F;
    text-decoration: none;
}

.ln-item.done {
    opacity: 0.75;
}

.ln-item-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ln-tag {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.ln-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.75rem;
    color: #5B6F94;
}

.ln-detail-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    color: #FFFFFF;
}

.ln-detail-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ln-detail-top > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ln-detail-top small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.ln-detail-top small.right {
    text-align: right;
    max-width: 52%;
    line-height: 1.4;
}

.ln-detail-top strong {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ln-detail-top strong span {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.ln-stepper {
    display: flex;
    gap: 8px;
}

.ln-stepper button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
}

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

.ln-three > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.ln-three small {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
}

.ln-three strong {
    font-size: 1.05rem;
}

.ln-detail-btn {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 16px;
    background: #FFFFFF;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0 16px;
}

.ln-detail-btn svg {
    flex-shrink: 0;
}

.ln-detail-btn span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ln-topics {
    display: flex;
    flex-direction: column;
}

.ln-topic {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #EDF1F9;
}

.ln-topic:last-child {
    border-bottom: none;
}

.ln-topic-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    color: #0B2E6F;
}

.ln-topic-main:disabled {
    opacity: 1;
}

.ln-box {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ln-box.done {
    background: #1E8A6E;
    color: #FFFFFF;
}

.ln-box.now {
    border: 2px solid #D9622B;
}

.ln-box.todo {
    border: 2px solid #C9D5EC;
}

.ln-topic-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
}

.ln-topic-text small {
    font-size: 0.72rem;
    color: #5B6F94;
}

.ln-add-topic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.ln-add-topic .fs-input {
    height: 46px;
}

.ln-add-topic .wk-soft-btn {
    height: 46px;
}

.ln-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    height: 120px;
    align-items: end;
}

.ln-week > span {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.72rem;
    color: #5B6F94;
}

.ln-week > span.today {
    color: #0B2E6F;
    font-weight: 800;
}

.ln-week-bar {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 8px;
    background: #EEF2FA;
    overflow: hidden;
}

.ln-week-bar i {
    display: block;
    flex-shrink: 0;
}

.ln-wide {
    height: 48px;
    width: 100%;
}

.ln-two-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ln-two-btns .wk-soft-btn {
    height: 48px;
}

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

.ln-kpis > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: #F7F9FE;
}

.ln-kpis small {
    font-size: 0.66rem;
    color: #5B6F94;
}

.ln-kpis strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.ln-kpis strong em {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5B6F94;
}

.ln-kpis > span > em {
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 700;
}

.ln-kpis em.up {
    color: #1E6B3C;
}

.ln-kpis em.down {
    color: #B4410C;
}

.ln-state {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ln-review-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.75rem;
    color: #5B6F94;
}

.ln-review-head span:first-child {
    font-weight: 700;
    color: #0B2E6F;
}

.ln-review-days {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 4px;
    height: 96px;
    align-items: end;
}

.ln-review-days > span {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.ln-review-days small {
    height: 12px;
    font-size: 0.6rem;
    color: #5B6F94;
}

.ln-review-days > span.today small {
    color: #0B2E6F;
    font-weight: 800;
}

.ln-review-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    background: #EEF2FA;
    overflow: hidden;
}

.ln-review-bar i {
    display: block;
    flex-shrink: 0;
}

.ln-deck-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid #EDF1F9;
}

.ln-deck-row {
    gap: 12px;
}

.ln-deck-stripe {
    width: 10px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 5px;
}

.ln-due-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #EAF1FF;
    color: #1F5BD8;
    font-size: 0.8rem;
    font-weight: 800;
}

.ln-due-badge.done {
    background: #E3F1E8;
    color: #1E6B3C;
}

.ln-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ln-card-row .fin-row-sub {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ln-card-state {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5B6F94;
}

.ln-card-state.new {
    color: #1F5BD8;
}

.ln-card-state.due {
    color: #B4410C;
}

.ln-card-state.learned {
    color: #1E6B3C;
}

.ln-review-progress {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 0.8rem;
    color: #5B6F94;
}

.ln-review-progress span:first-child {
    font-weight: 700;
    color: #0B2E6F;
}

.ln-flash {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
    padding: 24px;
    border: 1px solid #DCE6F8;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(14, 42, 99, 0.08);
}

.ln-flash strong {
    font-size: 1.3rem;
    line-height: 1.35;
    white-space: pre-line;
}

.ln-flash-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3E5A8C;
}

.ln-flash-label.answer {
    color: #1E8A6E;
}

.ln-flash-sep {
    height: 1px;
    background: #DCE6F8;
}

.ln-flash-answer {
    font-size: 1.05rem;
    line-height: 1.5;
    white-space: pre-line;
}

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

.ln-rate button {
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    border-radius: 14px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
}

.ln-rate small {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.85;
}

.ln-rate .again {
    background: #FDECE3;
    color: #B4410C;
}

.ln-rate .hard {
    background: #FFF4E5;
    color: #8A5A00;
}

.ln-rate .good {
    background: #E3F1E8;
    color: #1E6B3C;
}

.ln-rate .easy {
    background: #EAF1FF;
    color: #1F5BD8;
}

.ln-finish {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    border-radius: 24px;
    background: #1E8A6E;
    color: #FFFFFF;
}

.ln-finish strong {
    font-size: 1.3rem;
}

.ln-finish small {
    font-size: 0.85rem;
    color: #D9F2EA;
}

.ln-finish-btn {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #FFFFFF;
    color: #16705A;
    font-weight: 800;
    text-decoration: none;
}

.ln-pill-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 5px;
}

.ln-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #DCE6F8;
    border-radius: 20px;
    background: #FFFFFF;
}

.ln-note-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    color: #0B2E6F;
}

.ln-note-main strong {
    font-size: 1rem;
}

.ln-note-main p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #2B3D63;
}

.ln-note-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.72rem;
    color: #5B6F94;
}

.ln-note-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 700;
}

.ln-note-label i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 4px;
}

.ln-note-foot .wk-soft-btn {
    flex-shrink: 0;
}

.wk-vat-fees {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
}

.wk-vat-fees label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3E5A8C;
}

.wk-vat-fees .fs-input-group {
    height: 46px;
}

.wk-items-card > small + small {
    margin-top: 4px;
}

/* --- Kezdőképernyő (dashboard, A terv + stopper sáv) --- */
.dash {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 40rem;
}
.dash-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.dash-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dash-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3E5A8C;
}
.dash-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash .home-alert {
    background: #FFF1E8;
    border: 1px solid #F6CDB4;
    color: #9A3412;
}
.dash .home-alert:hover {
    color: #9A3412;
}
.dash .home-alert-text,
.dash .home-alert-text strong {
    color: #9A3412;
}
.dash-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0B2E6F;
    color: #FFFFFF;
}
.dash-timer-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #7FB2FF;
    animation: dash-pulse 1.6s ease-in-out infinite;
}
@keyframes dash-pulse {
    50% { opacity: 0.35; }
}
.dash-timer-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    color: #FFFFFF;
    text-decoration: none;
}
.dash-timer-text:hover {
    color: #FFFFFF;
}
.dash-timer-text span {
    font-size: 0.75rem;
    color: #B9CCF0;
}
.dash-timer-text strong {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-timer-clock {
    font-size: 1.125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.dash-timer-stop {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 0;
    background: #FFFFFF;
    color: #0B2E6F;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}
.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 6px;
}
.dash-card-head h2,
.dash-quick h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}
.dash-card-head span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5B6F94;
}
.dash-empty {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #5B6F94;
}
.dash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #EEF3FC;
    color: #0B2E6F;
    text-decoration: none;
}
.dash-row:hover {
    color: #0B2E6F;
}
.dash-row-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-row-icon.urgent {
    background: #FFF1E8;
    color: #C2410C;
}
.dash-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
    color: #0B2E6F;
    text-decoration: none;
}
.dash-row-text:hover {
    color: #0B2E6F;
}
.dash-row-text strong {
    font-size: 0.875rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-row-text span {
    font-size: 0.75rem;
    color: #5B6F94;
}
.dash-tag {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: #C2410C;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
}
.dash-chevron {
    flex-shrink: 0;
    color: #8FA3C7;
}
.dash-btn {
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #C9D8F5;
    background: #FFFFFF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.dash-btn.primary {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}
.dash-btn.primary:hover {
    color: #FFFFFF;
}
.dash-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.dash-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
    text-decoration: none;
    min-width: 0;
}
.dash-tile:hover {
    color: #0B2E6F;
    border-color: #C9D8F5;
}
.dash-tile-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3E5A8C;
}
.dash-tile-label svg {
    color: #1F5BD8;
}
.dash-tile-value {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.dash-tile-value small {
    font-size: 0.78rem;
    font-weight: 600;
    color: #5B6F94;
}
.dash-tile-sub {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #5B6F94;
}
.dash-tile-warn {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C2410C;
}
.dash-tile-warn.calm {
    color: #3E5A8C;
}
.dash-bar {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #EAF1FF;
    overflow: hidden;
}
.dash-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #1F5BD8;
}
.dash-bar.over > span {
    background: #C2410C;
}
.dash-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.dash-quick-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 16px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #0B2E6F;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}
.dash-quick-grid a:hover {
    color: #0B2E6F;
}
.dash-quick-grid a > span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-nowrap {
    white-space: nowrap;
}
/* Egyben maradó részek, amelyek egymás mellé, vagy ha nem férnek, külön sorba kerülnek. */
.dash-wrap {
    display: flex;
    flex-wrap: wrap;
    column-gap: 4px;
}

/* ===================================================================================================
   Asztali (számítógépes) felület – csak a honlapon (.page-desk), 1024 px-től.
   Keskenyebb ablakban és a telefonos appban a korábbi (telefonos) megjelenés marad.
   =================================================================================================== */
.desk-side,
.desk-top,
.desk-only,
.desk-key-hint {
    display: none;
}

@media (min-width: 1024px) {
    .page-desk .desk-hide,
    .page-desk .mob-only {
        display: none !important;
    }

    .page-desk .desk-only {
        display: block;
    }

    .page-desk .desk-key-hint {
        display: inline;
        opacity: 0.7;
        font-weight: 600;
    }

    .page.page-desk {
        flex-direction: row;
        min-height: 100vh;
        background: #F4F7FD;
    }

    .page.page-desk > main {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .page.page-desk main > article.content {
        padding: 24px 32px 40px !important;
    }

    /* --- Oldalmenü --- */
    .page-desk .desk-side {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 256px;
        flex-shrink: 0;
        box-sizing: border-box;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 20px 14px;
        background: #FFFFFF;
        border-right: 1px solid #DCE6F8;
    }

    /* --- Felső sáv --- */
    .page-desk .desk-top {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        padding: 14px 32px;
        background: #FFFFFF;
        border-bottom: 1px solid #DCE6F8;
    }

    .page-desk .desk-split {
        display: flex;
    }

    .page-desk .desk-home,
    .page-desk .desk-stack-page {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Felcsúszó lapok asztalon: jobb oldali panel, a lista mellette látszik. */
    .page-desk .fs-backdrop {
        background: rgba(11, 46, 111, 0.04);
    }

    .page-desk .fs-sheet {
        left: auto;
        right: 0;
        top: 0;
        bottom: 0;
        margin: 0;
        transform: none;
        width: 440px;
        max-width: 440px;
        max-height: none;
        height: 100vh;
        padding: 20px 24px 28px;
        border-radius: 0;
        border-left: 1px solid #DCE6F8;
        box-shadow: -12px 0 32px rgba(11, 46, 111, 0.12);
    }

    .page-desk .fs-handle {
        display: none;
    }

    .page.page-desk main:has(.fs-sheet) > article.content {
        padding-right: 472px !important;
    }

    .page-desk .fin-actions-row .fs-secondary {
        border: 1px solid #C9D8F5;
    }
}

.desk-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 18px;
    color: #0B2E6F;
    text-decoration: none;
}

.desk-brand:hover {
    color: #0B2E6F;
}

.desk-brand strong {
    font-size: 1.06rem;
    font-weight: 800;
}

.desk-brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.desk-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #3E5A8C;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.desk-nav:hover {
    background: #F4F7FD;
    color: #0B2E6F;
}

.desk-nav.open {
    color: #0B2E6F;
    font-weight: 800;
}

.desk-nav.open svg {
    color: #1F5BD8;
}

.desk-nav.on-home {
    background: #EAF1FF;
    color: #1F5BD8;
    font-weight: 800;
}

/* Piros számláló a fő menüben (pl. olvasatlan levelek az E-mailek mellett) */
.desk-nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.desk-sub {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px 0 40px;
    border-radius: 8px;
    color: #5B6F94;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.desk-sub:hover {
    background: #F4F7FD;
    color: #0B2E6F;
}

.desk-sub.on {
    background: #EAF1FF;
    color: #1F5BD8;
    font-weight: 800;
}

.desk-side-fill {
    flex-grow: 1;
    min-height: 16px;
}

/* A Kezdőlap és a területek között. */
.desk-side-sep {
    display: block;
    height: 1px;
    margin: 8px 12px;
    background: #E3EAF7;
}

.desk-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px 0;
    margin-top: 8px;
    border-top: 1px solid #EEF3FC;
}

.desk-user-badge {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.desk-user-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.desk-user-text strong {
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-user-text span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.desk-top-title {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 200px;
}

.desk-top-title span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3E5A8C;
}

.desk-top-title h1 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    color: #0B2E6F;
}

/* Gombok, mezők és apró elemek */
.desk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #C9D8F5;
    background: #FFFFFF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.desk-btn:hover {
    border-color: #1F5BD8;
    color: #1F5BD8;
}

.desk-btn.primary {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.desk-btn.primary:hover {
    background: #1A4FBE;
    color: #FFFFFF;
}

.desk-btn.dark {
    border-color: #0B2E6F;
    background: #0B2E6F;
    color: #FFFFFF;
}

.desk-btn.danger {
    border-color: #F6CDB4;
    color: #9A3412;
}

.desk-btn.small {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.desk-btn.grow {
    flex-grow: 1;
}

.desk-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.desk-icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #5B6F94;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.desk-icon-btn:hover,
.desk-icon-btn.soft {
    background: #F4F7FD;
    color: #0B2E6F;
}

.desk-muted {
    font-size: 0.75rem;
    color: #5B6F94;
}

.desk-warn {
    color: #C2410C;
}

.desk-fill {
    flex-grow: 1;
}

.desk-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #F4F7FD;
    color: #3E5A8C;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.desk-tag.late {
    background: #FFF1E8;
    color: #9A3412;
}

.desk-tag.ok {
    background: #EAF1FF;
    color: #1F5BD8;
}

/* Kereső */
.desk-search {
    position: relative;
}

.desk-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 340px;
    max-width: 100%;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
    background: #F4F7FD;
    color: #5B6F94;
    margin: 0;
}

.desk-search-box.page {
    width: 300px;
}

.desk-search-box.wide {
    flex: 1 1 260px;
    width: auto;
    height: 38px;
    background: #FFFFFF;
}

.desk-search-box:focus-within {
    border-color: #1F5BD8;
    background: #FFFFFF;
}

.desk-search-box input {
    flex-grow: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    color: #0B2E6F;
    outline: none;
}

.desk-search-box kbd {
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #5B6F94;
}

/* Saját gombos oldalon a kereső és a stopper keskenyebb; szűk ablakban a kereső ikon, ami fókuszra balra kinyílik. */
.desk-search.compact .desk-search-box {
    width: 220px;
}

.desk-search.compact .desk-search-box kbd {
    display: none;
}

.desk-timer.compact {
    max-width: 260px;
}

@media (max-width: 1699.98px) {
    .desk-search.compact {
        width: 40px;
        height: 40px;
    }

    .desk-search.compact .desk-search-box {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 61;
        width: 40px;
        max-width: none;
        padding: 0 11px;
        overflow: hidden;
        cursor: pointer;
        transition: width 0.15s ease;
    }

    .desk-search.compact .desk-search-box svg {
        flex-shrink: 0;
    }

    .desk-search.compact .desk-search-box input {
        width: 0;
    }

    .desk-search.compact .desk-search-box:focus-within {
        width: 320px;
        cursor: text;
    }

    .desk-search.compact .desk-search-results {
        left: auto;
        right: 0;
    }
}

.desk-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 420px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 60;
    padding: 6px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    box-shadow: 0 16px 40px rgba(11, 46, 111, 0.16);
}

.desk-search-group {
    padding: 8px 10px 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5B6F94;
}

.desk-search-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 10px;
    color: #0B2E6F;
    text-decoration: none;
}

.desk-search-item strong {
    font-size: 0.875rem;
}

.desk-search-item span {
    font-size: 0.75rem;
    color: #5B6F94;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-search-item:hover,
.desk-search-item.sel {
    background: #EAF1FF;
    color: #0B2E6F;
}

.desk-search-empty {
    padding: 12px;
    font-size: 0.85rem;
    color: #5B6F94;
}

/* Futó stopper a felső sávban */
.desk-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    max-width: 380px;
    padding: 0 6px 0 12px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #0B2E6F;
    color: #FFFFFF;
}

/* A tanulási stopper: zöldeskék, hogy ne keveredjen a munka-stopperrel. */
.desk-timer.study {
    background: #0F766E;
}

.desk-timer-stop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.desk-studystart {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desk-studystart select {
    width: auto;
    max-width: 220px;
    height: 40px;
}

.desk-timer-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #7FB2FF;
    animation: dash-pulse 1.6s ease-in-out infinite;
}

.desk-timer a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.desk-timer strong {
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.desk-timer button {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 0;
    background: #FFFFFF;
    color: #0B2E6F;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* „+ Új” menü */
.desk-new {
    position: relative;
}

.desk-menu-shield {
    position: fixed;
    inset: 0;
    z-index: 55;
}

.desk-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    z-index: 60;
    padding: 6px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    box-shadow: 0 16px 40px rgba(11, 46, 111, 0.16);
}

.desk-menu a {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 10px;
    color: #0B2E6F;
    text-decoration: none;
}

.desk-menu a:hover {
    background: #EAF1FF;
    color: #0B2E6F;
}

.desk-menu strong {
    font-size: 0.875rem;
}

.desk-menu span {
    font-size: 0.75rem;
    color: #5B6F94;
}

/* Hónapléptető */
.desk-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
}

.desk-stepper button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1F5BD8;
    font-size: 1.1rem;
    font-weight: 700;
}

.desk-stepper button:hover {
    background: #EAF1FF;
}

.desk-stepper strong {
    min-width: 120px;
    text-align: center;
    font-size: 0.875rem;
    color: #0B2E6F;
}

/* Kártyák, táblázatok, szűrők */
.desk-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
}

a.desk-card {
    text-decoration: none;
}

a.desk-card:hover {
    color: #0B2E6F;
    border-color: #C9D8F5;
    box-shadow: 0 6px 18px rgba(11, 46, 111, 0.06);
}

.desk-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.desk-card-head h2,
.desk-card-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
}

.desk-card-title {
    font-size: 0.9375rem;
}

.desk-card-head span {
    font-size: 0.8125rem;
    color: #5B6F94;
}

.desk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.desk-chip {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.desk-chip:hover {
    border-color: #C9D8F5;
}

.desk-chip.on {
    background: #0B2E6F;
    border-color: #0B2E6F;
    color: #FFFFFF;
}

.desk-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5B6F94;
}

.desk-select select,
.desk-input {
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    font: inherit;
    font-size: 0.8125rem;
    color: #0B2E6F;
}

.desk-input {
    height: 38px;
    border-radius: 10px;
}

.desk-table-box {
    overflow-x: auto;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
}

.desk-table {
    width: 100%;
    border-collapse: collapse;
    color: #0B2E6F;
}

.desk-table th {
    padding: 0 12px;
    border-bottom: 1px solid #DCE6F8;
    text-align: left;
    white-space: nowrap;
}

.desk-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #EEF3FC;
    font-size: 0.875rem;
    white-space: nowrap;
}

.desk-table tbody tr {
    cursor: pointer;
}

.desk-table tbody tr:hover td {
    background: #F7FAFF;
}

.desk-table tbody tr.sel td {
    background: #EAF1FF;
}

/* A futó stopper feladata: az egész sor erős kék háttérrel és bal oldali sávval (a kijelölésnél erősebb). */
.desk-table tbody tr.run td,
.desk-table tbody tr.run:hover td {
    background: #CFE0FF;
}

.desk-table tbody tr.run.sel td {
    background: #BCD3FF;
}

.desk-table tbody tr.run td:first-child {
    box-shadow: inset 4px 0 0 #1F5BD8;
}

.desk-table tbody tr.run .desk-cell-title strong {
    color: #0B2E6F;
}

.desk-table tbody tr.done .desk-cell-title strong {
    color: #8FA3C7;
    text-decoration: line-through;
}

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

.desk-table .right {
    text-align: right;
}

.desk-table .center {
    text-align: center;
}

.desk-table .narrow {
    width: 36px;
}

.desk-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.desk-sort {
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B6F94;
    cursor: pointer;
}

.desk-sort:hover {
    color: #0B2E6F;
}

.desk-cell-title {
    white-space: normal !important;
    min-width: 200px;
}

.desk-cell-title strong {
    margin-right: 6px;
}

.desk-note {
    display: block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-table-empty {
    padding: 28px 12px !important;
    text-align: center;
    color: #5B6F94;
    cursor: default;
}

.desk-amount {
    font-weight: 700;
}

.desk-amount.income {
    color: #1F5BD8;
    font-weight: 800;
}

.desk-amount.transfer {
    color: #5B6F94;
    font-weight: 600;
}

.desk-amount small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #5B6F94;
}

.desk-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1F5BD8;
    animation: dash-pulse 1.6s ease-in-out infinite;
}

.desk-hint {
    font-size: 0.75rem;
    color: #5B6F94;
}

/* Lista + jobb oldali részletpanel */
.desk-split {
    gap: 20px;
    align-items: flex-start;
}

.desk-split-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.desk-panel {
    position: sticky;
    top: 92px;
    flex: 0 0 380px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #0B2E6F;
}

.desk-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.desk-panel-head > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
}

.desk-panel-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B6F94;
}

.desk-panel-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

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

.desk-facts > div {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F4F7FD;
    font-size: 0.8125rem;
}

.desk-facts span {
    color: #5B6F94;
    font-weight: 600;
}

.desk-facts .late {
    background: #FFF1E8;
    color: #9A3412;
}

.desk-facts .late span {
    color: #9A3412;
}

.desk-panel-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F4F7FD;
}

.desk-panel-timer span {
    flex-grow: 1;
    font-size: 0.8125rem;
    color: #3E5A8C;
}

.desk-panel-timer strong {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.desk-panel-timer.on {
    background: #0B2E6F;
    color: #FFFFFF;
}

.desk-panel-timer.on span {
    color: #B9CCF0;
}

.desk-panel-timer.on .desk-btn {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: #0B2E6F;
}

.desk-panel-sec {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desk-panel-sec h3,
.desk-panel-box h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
}

.desk-panel-sec h3 span {
    margin-left: 6px;
    font-weight: 600;
    color: #5B6F94;
}

.desk-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.875rem;
    cursor: pointer;
}

.desk-check input {
    width: 16px;
    height: 16px;
}

.desk-check .done {
    color: #8FA3C7;
    text-decoration: line-through;
}

.desk-panel-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #DCE6F8;
}

.desk-panel-box .desk-btn {
    align-self: flex-start;
}

.desk-panel-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desk-textarea {
    font: inherit;
    font-size: 0.875rem;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #DCE6F8;
    resize: vertical;
    color: #0B2E6F;
}

.desk-panel-actions {
    display: flex;
    gap: 8px;
}

/* Kezdőlap */
.desk-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.desk-kpi-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3E5A8C;
}

.desk-kpi-head span {
    font-weight: 600;
    color: #5B6F94;
}

.desk-kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.desk-kpi-value small {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5B6F94;
}

.desk-kpi-sub {
    font-size: 0.8125rem;
    color: #5B6F94;
}

.desk-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 16px;
}

.desk-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.desk-rows {
    display: flex;
    flex-direction: column;
}

.desk-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    border-top: 1px solid #EEF3FC;
}

.desk-row-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    color: #0B2E6F;
    text-decoration: none;
}

.desk-row-text:hover {
    color: #1F5BD8;
}

.desk-row-text strong {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-row-text span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.desk-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1F5BD8;
}

.desk-dot.urgent {
    background: #C2410C;
}

.desk-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.desk-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 150px;
    min-width: 0;
    padding: 10px 8px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #F4F7FD;
}

.desk-day.today {
    background: #FFFFFF;
    border: 2px solid #1F5BD8;
}

.desk-day-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B6F94;
}

.desk-day.today .desk-day-name {
    color: #1F5BD8;
    font-weight: 800;
}

.desk-day-chip {
    padding: 4px 6px;
    border-radius: 6px;
    background: #EAF1FF;
    color: #1F5BD8;
    font-size: 0.6875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-day-chip.urgent {
    background: #FFF1E8;
    color: #9A3412;
    font-weight: 700;
}

.desk-week-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8125rem;
    color: #5B6F94;
}

.desk-week-foot strong {
    color: #0B2E6F;
}

.desk-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desk-bar-row {
    display: grid;
    grid-template-columns: 110px 1fr 100px;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
}

.desk-bar-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-bar-value {
    text-align: right;
    font-weight: 700;
}

.desk-bar-value.over {
    color: #C2410C;
}

.desk-chart {
    width: 100%;
    height: 120px;
}

.desk-stack {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    background: #EAF1FF;
}

.desk-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.8125rem;
}

.desk-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.desk-legend i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 3px;
}

/* Tételek: összesítő sáv */
.desk-sums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.desk-sum {
    gap: 2px;
    padding: 14px 16px;
    border-radius: 14px;
}

.desk-sum span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B6F94;
}

.desk-sum strong {
    font-size: 1.375rem;
    font-weight: 800;
}

.desk-sum strong.accent {
    color: #1F5BD8;
}

.desk-sum strong.over {
    color: #C2410C;
}

.desk-top-title span a {
    color: #1F5BD8;
    text-decoration: none;
}

/* Folyószámlához kötött lépés („Adóegyenlegek egyeztetése”): a lépés alatt a folyószámla és az átvezetés gombja. */
.wk-step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px 6px 38px;
}

.wk-step-link {
    border: 1px solid #DCE6F8;
    border-radius: 999px;
    background: #F4F8FF;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
}

.wk-step-link:disabled {
    opacity: .6;
}

/* A lépés melletti gombok egymás alatt (egyforma szélesen), hogy a lépés szövege ne szoruljon össze. */
.desk-step-links {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.desk-step-links .desk-btn {
    justify-content: center;
}

/* Kiértesítés lépés: „Levél kitöltése” (kék) / „Levél megnyitása”, előtte az állapot (NoticeLetterLink). */
.wk-step-link, .desk-step-links .desk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wk-step-link.nl-primary, .desk-btn.nl-primary {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.nl-status {
    align-self: center;
    color: #15803D;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Lépés #címke-gombja (StepTags): a feladat kapcsolódó jegyzeteinek ablakát nyitja. */
.step-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

/* Függő elszámolások (asztal) */
.pend-card {
    gap: 6px;
}

.pend-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.pend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-top: 1px solid #EEF3FC;
    color: inherit;
    text-decoration: none;
}

.pend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Elszámolás: a lezárás hónapja (asztal) */
.dst-settled {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
}

/* ÁFA-gyakoriság címke (VatTag): havi kék, negyedéves lila, éves zöldeskék, nincs szürke. */
.vat-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}

.vat-tag.m {
    background: #E3ECFF;
    color: #1B4FC4;
}

.vat-tag.q {
    background: #F0E8FF;
    color: #6D28D9;
}

.vat-tag.y {
    background: #DDF3EF;
    color: #0F6B63;
}

.vat-tag.n {
    background: #F1F4F9;
    color: #6B7A95;
}

/* Munkarend-szerkesztő (WorkScheduleEditor) a munkaidő-beállításokban. */
.ws {
    gap: 8px;
}

.ws-item {
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    background: #FFFFFF;
    overflow: hidden;
}

.ws-item.open {
    border-color: #9DB8EE;
}

.ws-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 8px 14px;
    border: 0;
    background: none;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
}

.ws-head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-head-text strong {
    font-size: 0.875rem;
}

.ws-head-text small {
    font-size: 0.75rem;
    color: #5B6F94;
}

.ws-chev {
    font-size: 0.6875rem;
    color: #5B6F94;
}

.ws-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 14px 14px;
    border-top: 1px solid #EEF3FC;
}

.ws-from {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 0;
    font-size: 0.8125rem;
    font-weight: 700;
}

.ws-day {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border-bottom: 1px solid #F1F4F9;
}

.ws-day-name {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
    flex-shrink: 0;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.ws-day-name input {
    width: 20px;
    height: 20px;
}

.ws-day.off .ws-day-name span {
    color: #8FA3C7;
}

.ws-time {
    width: 100px;
    min-width: 0;
    padding: 6px 8px;
}

.ws-dash {
    color: #5B6F94;
}

.ws-hours {
    margin-left: auto;
    font-size: 0.8125rem;
    color: #3E5A8C;
    white-space: nowrap;
}

.ws-none {
    font-size: 0.8125rem;
    color: #8FA3C7;
}

.ws-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 6px;
    font-size: 0.875rem;
}

.ws-remove {
    border: 0;
    background: none;
    color: #C2410C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Felugró ablak (asztal): a lapok (.fs-backdrop 1040, .fs-sheet 1050) alatt, hogy a benne nyíló lap fölé kerüljön. */
.ld-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(11, 46, 111, 0.45);
}

.ld-modal {
    position: fixed;
    z-index: 1035;
    top: 4vh;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(1180px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px 24px 28px;
    border-radius: 20px;
    background: #F4F7FD;
    box-shadow: 0 24px 60px rgba(11, 46, 111, 0.28);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ld-modal-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5B6F94;
}

.ld-modal-sep::after {
    content: "";
    flex: 1;
    border-top: 1px solid #DCE6F8;
}

/* ---- Hívásfigyelés ---- */

/* Rögzítő lap (CallRecordSheet) */
.cr-call {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #EEF4FF;
}

.cr-call.new {
    background: #FFF1E8;
}

.cr-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #1F5BD8;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-call.new .cr-icon {
    background: #C2410C;
}

.cr-call-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cr-call-text strong {
    font-size: 0.9375rem;
}

.cr-call-text span {
    font-size: 0.8125rem;
    color: #3E5A8C;
}

.cr-call.new .cr-call-text span {
    color: #9A3412;
}

.cr-ok {
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803D;
}

.cr-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    overflow: hidden;
}

.cr-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-top: 1px solid #EEF3FC;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
}

.cr-opt:first-child {
    border-top: 0;
}

.cr-opt i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
}

.cr-opt.office {
    color: #3E5A8C;
}

.cr-opt.sel {
    background: #EEF4FF;
    font-weight: 700;
}

.cr-check {
    margin-left: auto;
    color: #1F5BD8;
}

.cr-none {
    padding: 12px 14px;
    font-size: 0.8125rem;
    color: #5B6F94;
}

.cr-remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F4F7FD;
    font-size: 0.8125rem;
}

.cr-remember input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.cr-remember > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cr-remember > span > span {
    color: #5B6F94;
}

.cr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cr-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: #F4F7FD;
    color: #3E5A8C;
    font-size: 0.75rem;
    font-weight: 700;
}

.cr-chip.on {
    background: #EEF4FF;
    color: #1F5BD8;
}

.cr-ignore {
    height: 44px;
    border: 0;
    background: none;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Rögzítetlen hívások (PendingCalls) */
.pc-card {
    border-color: #F6CDB2;
}

.pc-sum {
    color: #9A3412 !important;
    font-weight: 700;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    border-top: 1px solid #EEF3FC;
}

.pc-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-text strong {
    font-size: 0.875rem;
}

.pc-text span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.pc-go {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #1F5BD8;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 800;
}

.pc-x {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    background: #FFFFFF;
    color: #5B6F94;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-hint {
    padding-top: 6px;
    font-size: 0.75rem;
    color: #5B6F94;
}

.pc-compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: #0B2E6F;
    text-decoration: none;
}

/* Hívásfigyelés beállításai (CallMonitorSettings) */
.cm {
    gap: 10px;
}

.cm-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #EEF4FF;
}

.cm-main > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cm-main > span > span {
    font-size: 0.75rem;
    color: #3E5A8C;
}

.cm-main input {
    width: 24px;
    height: 24px;
    margin: 0;
}

.cm-sub {
    font-size: 0.8125rem;
    font-weight: 700;
}

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

.cm-seg button {
    height: 44px;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    background: #FFFFFF;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
}

.cm-seg button.on {
    border-color: #1F5BD8;
    background: #EEF4FF;
    color: #1F5BD8;
    font-weight: 800;
}

.cm-work {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
}

.cm-work-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #DCE6F8;
    font-weight: 600;
}

.cm-work-box input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.cm-perm {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #DCE6F8;
    font-size: 0.8125rem;
}

.cm-perm > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cm-perm strong.ok {
    color: #15803D;
}

.cm-perm strong.no {
    color: #C2410C;
}

.cm-link {
    border: 0;
    background: none;
    padding: 0;
    color: #1F5BD8;
    font: inherit;
    font-weight: 700;
}

.cm-none,
.cm-ign {
    color: #5B6F94;
}

/* Asztal: telefonszámok és kommunikáció az ügyfél adatlapján */
.dc-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

@media (max-width: 1300px) {
    .dc-two {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cp-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.cp-head > span {
    white-space: nowrap;
}

.cp-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-form .desk-input {
    flex: 1 1 160px;
    min-width: 0;
}

.cp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #EEF3FC;
}

.cp-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-text strong {
    font-size: 0.875rem;
}

.cp-text > span {
    font-size: 0.75rem;
    color: #5B6F94;
}

.cp-del {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #C2410C;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-error {
    font-size: 0.8125rem;
    color: #C2410C;
}

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

.cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.cc-table th {
    padding: 6px 8px;
    border-bottom: 1px solid #DCE6F8;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B6F94;
}

.cc-table td {
    padding: 8px;
    border-bottom: 1px solid #EEF3FC;
}

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

.cc-table .r {
    text-align: right;
    white-space: nowrap;
}

.cc-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #F1F4F9;
    color: #3E5A8C;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.cc-tag.in {
    background: #EEF4FF;
    color: #1F5BD8;
}

.cc-tag.out {
    background: #F0E8FF;
    color: #6D28D9;
}

/* A feladatpanel „Teljes nézet” gombja a cím mellett. */
.desk-panel-full {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    text-decoration: none;
    white-space: nowrap;
}

/* ---- Havi könyvelés teljes nézet (asztal) ---- */

.desk-btn.ok {
    background: #15803D;
    border-color: #15803D;
    color: #FFFFFF;
}

.desk-btn.ok:hover {
    background: #116B33;
    color: #FFFFFF;
}

/* 1. Folyamat sáv */
.sx-progress {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 20px;
}

.sx-stage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sx-bar {
    height: 6px;
    border-radius: 3px;
    background: #DCE6F8;
}

.sx-bar.done {
    background: #15803D;
}

.sx-bar.warn {
    background: #F59E0B;
}

.sx-bar.prog {
    background: linear-gradient(to right, #1F5BD8 var(--p), #DCE6F8 var(--p));
}

.sx-stage strong {
    font-size: 0.8125rem;
}

.sx-stage strong.muted {
    color: #5B6F94;
}

.sx-note {
    font-size: 0.75rem;
    color: #5B6F94;
}

.sx-note.warn {
    color: #9A3412;
}

/* Közös fejléc és sorok a kártyákon */
.sx-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sx-head h2,
.sx-card h2,
.sx-missing h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.sx-head h2 .warn {
    color: #C2410C;
}

.sx-actions {
    display: flex;
    gap: 8px;
}

.sx-link,
.sx-more {
    border: 0;
    background: none;
    padding: 0;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.sx-card {
    gap: 8px;
}

.sx-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8125rem;
}

.sx-line a {
    font-weight: 700;
    text-decoration: none;
}

.sx-line .ok,
.sx-line strong.ok {
    color: #15803D;
    font-weight: 700;
}

.sx-line .warn,
.sx-line strong.warn {
    color: #C2410C;
    font-weight: 700;
}

.sx-line .muted {
    color: #5B6F94;
}

.sx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sx-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: #F1F4F9;
    color: #3E5A8C;
    font-size: 0.6875rem;
    font-weight: 700;
}

.sx-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.sx-pill.ok {
    background: #E8F6EE;
    color: #15803D;
}

.sx-pill.diff {
    background: #FFF1E8;
    color: #C2410C;
}

.sx-pill.none {
    background: #F1F4F9;
    color: #5B6F94;
}

.sx-error {
    font-size: 0.8125rem;
    color: #C2410C;
}

/* 2. Hiányzó bizonylatok */
.sx-add {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sx-add .desk-input {
    flex: 1 1 260px;
    min-width: 0;
}

.sx-missing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #EEF3FC;
    font-size: 0.8125rem;
}

.sx-missing-row input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.sx-missing-text {
    flex: 1;
    min-width: 0;
}

.sx-missing-row.arrived .sx-missing-text {
    color: #8FA3C7;
    text-decoration: line-through;
}

.sx-missing-meta {
    font-size: 0.75rem;
    color: #5B6F94;
    white-space: nowrap;
}

.sx-x {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #8FA3C7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sx-x:hover {
    background: #FFF1E8;
    color: #C2410C;
}

/* Sorszámok és bér (összecsukva) */
.sx-serials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sx-serials > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F4F7FD;
    font-size: 0.8125rem;
}

.sx-serials small {
    color: #5B6F94;
}

/* 3. Idő a tervhez mérve */
.sx-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sx-time > strong {
    font-size: 1.375rem;
    font-weight: 800;
}

.sx-time-bar {
    flex: 1;
    height: 10px;
    border-radius: 6px;
    background: #EEF3FC;
    overflow: hidden;
}

.sx-time-bar > span {
    display: block;
    height: 100%;
    background: #1F5BD8;
}

.sx-time-bar > span.over {
    background: #F59E0B;
}

.sx-entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
    font-size: 0.75rem;
    color: #3E5A8C;
}

/* 7. Előző hónapok */
.sx-prev {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    font-size: 0.75rem;
}

.sx-prev .h {
    color: #5B6F94;
}

.sx-prev .r {
    text-align: right;
}

/* 8. Jegyzetek */
.sx-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B6F94;
}

.sx-notearea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    font-size: 0.8125rem;
}

@media (max-width: 1200px) {
    .sx-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.sx-pill.period {
    background: #F1F4F9;
    color: #3E5A8C;
}

/* Jegyzetek (telefon): címkesor a szűréshez és a jegyzetek címkéi. */
.wk-tagrow {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.wk-tagpill {
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.wk-tagpill:first-child {
    border-color: #DCE6F8;
    background: #FFFFFF;
    color: #3E5A8C;
}

.wk-tagpill.on-all {
    border-color: #0B2E6F;
    color: #0B2E6F;
}

.wk-note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wk-note-tags span {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Formázott jegyzet (RichNoteEditor, NoteContent; noteeditor.js) --- */
.note-rich {
    color: #1B2A44;
    font-size: 0.9375rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.note-rich > :first-child {
    margin-top: 0;
}

.note-rich p {
    margin: 0 0 10px;
}

.note-rich h2 {
    margin: 14px 0 8px;
    color: #0B2E6F;
    font-size: 1.1875rem;
    font-weight: 800;
}

.note-rich h3 {
    margin: 12px 0 6px;
    color: #0B2E6F;
    font-size: 1rem;
    font-weight: 800;
}

.note-rich blockquote {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #FFF1E8;
    color: #9A3412;
    font-weight: 600;
}

.note-rich ul, .note-rich ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.note-rich ul.checklist {
    padding-left: 0;
    list-style: none;
}

.note-rich ul.checklist > li {
    position: relative;
    padding-left: 28px;
}

.note-rich ul.checklist > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 2px solid #C9D6EE;
    border-radius: 5px;
    background: #FFFFFF;
    cursor: pointer;
}

.note-rich ul.checklist > li[data-checked="true"] {
    color: #5B6F94;
    text-decoration: line-through;
}

.note-rich ul.checklist > li[data-checked="true"]::before {
    border-color: #1F5BD8;
    background: #1F5BD8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.note-rich a {
    color: #1F5BD8;
}

.note-rich figure {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
}

.note-rich figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #DCE6F8;
    border-radius: 10px;
    background: #F1F4F9;
    cursor: zoom-in;
}

.note-rich figure.ni-s img {
    width: 240px;
}

.note-rich figure.ni-m img {
    width: 560px;
}

.note-rich figure.ni-l img {
    width: 100%;
}

.note-rich figure img:not([src]), .note-rich figure img.ne-missing {
    width: 240px;
    min-height: 120px;
}

.note-rich figcaption {
    color: #5B6F94;
    font-size: 0.8125rem;
}

.note-rich.compact {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #3E5A8C;
}

.note-rich.compact h2, .note-rich.compact h3 {
    font-size: 0.875rem;
    margin: 6px 0 4px;
}

.note-rich.compact p, .note-rich.compact ul, .note-rich.compact ol, .note-rich.compact blockquote {
    margin-bottom: 6px;
}

.note-rich.compact figure img, .note-rich.compact figure.ni-m img, .note-rich.compact figure.ni-l img {
    width: 150px;
    max-height: 100px;
    object-fit: cover;
}

/* Szerkesztő */
.ne {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.ne-toolbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    background: #F7FAFF;
}

.ne-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}

.ne-btn.wide {
    padding: 0 10px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.ne-btn:hover {
    background: #EEF4FF;
}

.ne-btn.on {
    background: #E3EBFA;
    color: #1F5BD8;
}

.ne-m-b {
    font-weight: 800;
}

.ne-m-i {
    font-style: italic;
    font-weight: 600;
}

.ne-m-u {
    text-decoration: underline;
    font-weight: 600;
}

.ne-m-s {
    text-decoration: line-through;
    font-weight: 600;
}

.ne-sep {
    width: 1px;
    height: 22px;
    margin: 0 4px;
    background: #DCE6F8;
}

.ne-fill {
    flex: 1;
}

.ne-keys {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 600;
}

.ne-blockwrap {
    position: relative;
}

.ne-block {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #DCE6F8;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.ne-blocks {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: 210px;
    padding: 6px;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(11, 46, 111, .14);
}

.ne-blocks button {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.ne-blocks button.on, .ne-blocks button:hover {
    background: #EEF4FF;
}

.ne-blocks .ne-b-h2 {
    font-size: 1.0625rem;
    font-weight: 800;
}

.ne-blocks .ne-b-h3 {
    font-weight: 800;
}

.ne-blocks .ne-b-blockquote {
    color: #9A3412;
    font-weight: 600;
}

.ne-wrap {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
}

.ne-body {
    flex: 1;
    min-height: 260px;
    overflow: auto;
    padding: 18px 22px;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    background: #FFFFFF;
    outline: none;
}

.ne-body:focus {
    border-color: #1F5BD8;
}

.ne-body figure.ne-selected img {
    outline: 2px solid #1F5BD8;
    outline-offset: 0;
}

.ne-body figure[data-uploading] img {
    opacity: .55;
}

.ne-body figcaption:empty::before {
    content: "kattints a felirat írásához";
    color: #8FA3C7;
}

.ne-drop::after {
    content: "Engedd el a képet a beszúráshoz";
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #1F5BD8;
    border-radius: 12px;
    background: rgba(238, 244, 255, .92);
    color: #1F5BD8;
    font-size: 0.9375rem;
    font-weight: 800;
    pointer-events: none;
}

.ne-imgbar {
    position: absolute;
    z-index: 20;
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
    background: #0B2E6F;
}

.ne-imgbar[hidden] {
    display: none;
}

.ne-imgbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.ne-imgbar button.on {
    background: #1F5BD8;
}

.ne-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.ne-notice.ok {
    background: #EAF7EF;
    color: #15803D;
}

.ne-notice.bad {
    background: #FFF1E8;
    color: #9A3412;
}

/* Telefonon: az eszköztár a szöveg alatt, a billentyűzet fölött (a lap aljához ragad). */
.ne.mobile .ne-toolbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
}

.ne.mobile .ne-btn, .ne.mobile .ne-block {
    min-width: 44px;
    height: 44px;
    font-size: 1rem;
}

.ne.mobile .ne-block {
    border: 0;
    background: transparent;
    font-weight: 800;
}

.ne.mobile .ne-blocks {
    position: fixed;
    top: auto;
    bottom: 120px;
    left: 16px;
}

/* A telefonos lapon a szerkesztő a saját magasságában (nem tölti ki a lapot), a szöveg legfeljebb a képernyő fele. */
.ne.mobile, .ne.mobile .ne-wrap {
    flex: none;
}

.ne.mobile .ne-body {
    min-height: 220px;
    max-height: 55vh;
    padding: 14px;
}

.ne-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1061;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px calc(28px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #FFFFFF;
    color: #0B2E6F;
}

.ne-sheet-back {
    z-index: 1060;
}

.ne-grip {
    align-self: center;
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: #DCE6F8;
}

.ne-sheet strong {
    padding: 6px 0;
    font-size: 1.0625rem;
}

.ne-sheet button {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: #F4F7FD;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: left;
}

.ne-sheet-hint {
    padding: 4px 2px;
    color: #5B6F94;
    font-size: 0.75rem;
}

/* Nagyító */
.ne-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    background: rgba(11, 46, 111, .82);
}

.ne-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: 10px;
    background: #FFFFFF;
}

.ne-lb-bar {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
}

.ne-lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    color: #FFFFFF;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ne-lb-x {
    font-size: 1.125rem;
}

.ne-lb-cap {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

/* --- Tanulási jegyzet: kitakarás és a kijelölés sávja (RichNoteEditor Cloze) --- */
.note-rich mark.cloze {
    padding: 1px 4px;
    border-radius: 4px;
    border-bottom: 2px solid #15803D;
    background: #D7F0E0;
    color: inherit;
}

.ne-cloze {
    background: #EAF7EF;
    color: #15803D;
}

.ne-card {
    background: #EEF4FF;
    color: #1F5BD8;
}

.ne-selbar {
    position: absolute;
    z-index: 25;
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
    background: #0B2E6F;
    box-shadow: 0 10px 24px rgba(11, 46, 111, .25);
}

.ne-selbar[hidden] {
    display: none;
}

.ne-selbar button {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.ne-selbar button.green {
    background: #15803D;
}

/* --- Gyakorlás (kvíz, lyukas szöveg, tétel, vizsga, beírós, villám) --- */
.pr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 16px 40px;
    color: #0B2E6F;
}

.pr-head, .pr-card, .pr-row {
    width: 100%;
    max-width: 980px;
    box-sizing: border-box;
}

.pr-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.pr-exit {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #C9D6EE;
    border-radius: 10px;
    background: #FFFFFF;
    color: #0B2E6F;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pr-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.pr-title strong {
    font-size: 1rem;
}

.pr-title small {
    color: #5B6F94;
    font-size: 0.75rem;
}

.pr-dots {
    display: grid;
    flex: 1;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    min-width: 160px;
}

.pr-dots i {
    height: 8px;
    border-radius: 4px;
    background: #E3EAF7;
}

.pr-dots i.cur {
    background: #1F5BD8;
}

.pr-dots i.ok {
    background: #15803D;
}

.pr-dots i.bad {
    background: #F59E0B;
}

.pr-bar {
    flex: 1;
    min-width: 120px;
    height: 8px;
    border-radius: 4px;
    background: #E3EAF7;
    overflow: hidden;
}

.pr-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #1F5BD8;
}

.pr-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: #EEF4FF;
    color: #1F5BD8;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.pr-chip.ok {
    background: #EAF7EF;
    color: #15803D;
}

.pr-chip.bad {
    background: #FFF1E8;
    color: #9A3412;
}

.pr-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 34px;
    border: 1px solid #DCE6F8;
    border-radius: 22px;
    background: #FFFFFF;
}

.pr-kicker {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.pr-q {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
}

.pr-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pr-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 8px 18px;
    border: 2px solid #DCE6F8;
    border-radius: 14px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.pr-opt:hover:not(:disabled) {
    border-color: #1F5BD8;
}

.pr-opt:disabled {
    cursor: default;
}

.pr-opt.ok {
    border-color: #15803D;
    background: #F2FAF5;
}

.pr-opt.bad {
    border-color: #F59E0B;
    background: #FFF8F2;
}

.pr-key {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #EEF4FF;
    color: #1F5BD8;
    font-size: 0.875rem;
    font-weight: 800;
}

.pr-opt.ok .pr-key {
    background: #15803D;
    color: #FFFFFF;
}

.pr-opt.bad .pr-key {
    background: #F59E0B;
    color: #FFFFFF;
}

.pr-mark {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 800;
    white-space: nowrap;
}

.pr-opt.ok .pr-mark {
    color: #15803D;
}

.pr-opt.bad .pr-mark {
    color: #9A3412;
}

.pr-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
    border-radius: 14px;
}

.pr-feedback.ok {
    background: #EAF7EF;
    color: #15803D;
}

.pr-feedback.close {
    background: #FEF9C3;
    color: #854D0E;
}

.pr-feedback.bad {
    background: #FFF1E8;
    color: #9A3412;
}

.pr-feedback span {
    flex: 1;
    min-width: 200px;
    color: #3E5A8C;
    font-size: 0.875rem;
}

.pr-btn {
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #1F5BD8;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.pr-btn.sec {
    border: 1px solid #C9D6EE;
    background: #FFFFFF;
    color: #0B2E6F;
    font-weight: 700;
}

.pr-btn:disabled {
    opacity: .6;
    cursor: default;
}

.pr-hint {
    color: #5B6F94;
    font-size: 0.8125rem;
    text-align: center;
}

.pr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pr-fill {
    flex: 1;
}

.pr-input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 2px solid #C9D6EE;
    border-radius: 12px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
}

.pr-input:focus {
    border-color: #1F5BD8;
    outline: none;
}

.pr-input.ok {
    border-color: #15803D;
}

.pr-input.close {
    border-color: #CA8A04;
}

.pr-input.bad {
    border-color: #F59E0B;
}

.pr-cloze {
    font-size: 1.125rem;
    line-height: 2.1;
}

.pr-cloze .cz-in {
    box-sizing: border-box;
    height: 36px;
    margin: 0 2px;
    padding: 0 8px;
    border: 0;
    border-bottom: 3px solid #1F5BD8;
    border-radius: 6px 6px 0 0;
    background: #EEF4FF;
    color: #0B2E6F;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    max-width: 100%;
}

.pr-cloze .cz-in:focus {
    outline: 2px solid #1F5BD8;
    outline-offset: 1px;
}

.pr-cloze .cz-in.ok {
    border-color: #15803D;
    background: #EAF7EF;
}

.pr-cloze .cz-in.close {
    border-color: #CA8A04;
    background: #FEF9C3;
}

.pr-cloze .cz-in.bad {
    border-color: #F59E0B;
    background: #FFF1E8;
}

.pr-finish {
    align-items: center;
    text-align: center;
}

.pr-finish strong.big {
    font-size: 3rem;
    line-height: 1;
}

.pr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF8F2;
    font-size: 0.8125rem;
}

.pr-list strong.exp {
    color: #15803D;
}

@media (max-width: 640px) {
    .pr {
        padding: 12px 12px 32px;
    }

    .pr-card {
        padding: 20px 18px;
    }

    .pr-q {
        font-size: 1.1875rem;
    }

    .pr-cloze {
        font-size: 1rem;
    }
}

/* --- Tanulás asztalon (DeskLearning*) --- */
.dl {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #0B2E6F;
}

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

.dl-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid #DCE6F8;
    border-radius: 16px;
    background: #FFFFFF;
}

.dl-stat small {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
}

.dl-stat strong {
    font-size: 1.625rem;
    line-height: 1.15;
}

.dl-stat strong span {
    font-size: 0.9375rem;
    font-weight: 600;
    opacity: .85;
}

.dl-stat > span {
    color: #5B6F94;
    font-size: 0.8125rem;
}

.dl-stat.blue {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.dl-stat.blue small, .dl-stat.blue > span {
    color: #FFFFFF;
    opacity: .85;
}

.dl-stat.orange {
    border-color: #FFF1E8;
    background: #FFF1E8;
    color: #9A3412;
}

.dl-stat.orange small, .dl-stat.orange > span {
    color: #9A3412;
}

.dl-stat.green {
    border-color: #EAF7EF;
    background: #EAF7EF;
    color: #15803D;
}

.dl-stat.green small, .dl-stat.green > span {
    color: #15803D;
}

.dl-stat .ok {
    color: #15803D;
    font-weight: 700;
}

.dl-meter {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .25);
}

.dl-meter span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #FFFFFF;
}

.dl-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
}

.dl-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.dl-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
    min-width: 0;
}

.dl-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
}

.dl-card-head h2, .dl-card > h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.dl-card-head span, .dl-muted {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 600;
}

.dl-card-head a {
    color: #1F5BD8;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}

.dl-rec {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
}

.dl-rec.blue {
    background: #F4F8FF;
}

.dl-rec.orange {
    background: #FFF8F2;
}

.dl-rec.green {
    background: #F2FAF5;
}

.dl-rec-ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8125rem;
}

.dl-rec.blue .dl-rec-ico {
    background: #1F5BD8;
    color: #FFFFFF;
}

.dl-rec.orange .dl-rec-ico {
    background: #FFE4D2;
    color: #9A3412;
}

.dl-rec.green .dl-rec-ico {
    background: #D7F0E0;
    color: #15803D;
}

.dl-rec-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.dl-rec-text strong {
    font-size: 0.875rem;
}

.dl-rec-text small {
    color: #5B6F94;
    font-size: 0.75rem;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #C9D6EE;
    border-radius: 10px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.dl-btn.primary {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
    font-weight: 800;
}

.dl-btn.soft {
    border-color: #EEF4FF;
    background: #EEF4FF;
    color: #1F5BD8;
    font-weight: 800;
}

.dl-btn.green {
    border-color: #EAF7EF;
    background: #EAF7EF;
    color: #15803D;
    font-weight: 800;
}

.dl-week {
    position: relative;
    display: grid;
    flex: 1;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 180px;
    padding-top: 10px;
}

.dl-goal-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed #C9D6EE;
}

.dl-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dl-day small {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
}

.dl-day small.today {
    color: #0B2E6F;
    font-weight: 800;
}

.dl-stack {
    display: flex;
    flex-direction: column-reverse;
    width: 34px;
    overflow: hidden;
    border-radius: 6px;
}

.dl-stack.empty {
    height: 4px;
    border-radius: 2px;
    background: #E3EAF7;
}

.dl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: #3E5A8C;
    font-size: 0.75rem;
    font-weight: 700;
}

.dl-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dl-legend i, .dl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 3px;
}

.dl-prog {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #0B2E6F;
    text-decoration: none;
}

.dl-prog > span:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.875rem;
}

.dl-prog > span:first-child span {
    color: #5B6F94;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.dl-bar {
    height: 8px;
    border-radius: 4px;
    background: #E3EAF7;
}

.dl-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
}

.dl-prog small.warn {
    color: #9A3412;
    font-size: 0.75rem;
    font-weight: 700;
}

.dl-rowline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #EEF2FA;
    color: #0B2E6F;
    font-size: 0.875rem;
    text-decoration: none;
}

.dl-rowline:last-child {
    border-bottom: 0;
}

.dl-rowline small {
    color: #5B6F94;
}

.dl-table {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
}

.dl-tr {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #EEF2FA;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.dl-tr.head {
    padding: 12px 18px;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .04em;
}

button.dl-tr {
    cursor: pointer;
}

.dl-tr.sel {
    background: #F4F8FF;
}

.dl-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dl-name > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dl-name strong {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.dl-name small {
    color: #5B6F94;
    font-size: 0.75rem;
}

.dl-seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #E3EAF7;
}

.dl-seg button {
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.dl-seg button.on {
    background: #FFFFFF;
}

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

.dl-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    background: #F4F7FD;
}

.dl-tile small {
    color: #5B6F94;
    font-size: 0.6875rem;
    font-weight: 800;
}

.dl-tile strong {
    font-size: 1.125rem;
}

.dl-tile.ok {
    background: #F2FAF5;
    color: #15803D;
}

.dl-tile.ok small {
    color: #15803D;
}

.dl-tile.warn {
    background: #FFF1E8;
    color: #9A3412;
}

.dl-tile.warn small {
    color: #9A3412;
}

.dl-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    white-space: nowrap;
}

.dl-alert {
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF1E8;
    color: #9A3412;
    font-size: 0.8125rem;
    font-weight: 700;
}

@media (max-width: 1250px) {
    .dl-cols {
        grid-template-columns: minmax(0, 1fr);
    }

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

/* --- Adótanácsadói feladatok (CaseExerciseView, CaseExerciseSheet, CaseImportSheet) --- */

.cx {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cx-text {
    padding: 16px 18px;
    border-radius: 14px;
    background: #F6F9FF;
    color: #0B2E6F;
    font-size: 0.9375rem;
    line-height: 1.6;
    white-space: pre-line;
}

.cx-part {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #DCE6F8;
    border-left-width: 4px;
    border-radius: 14px;
}

.cx-part.ok {
    border-left-color: #15803D;
}

.cx-part.part {
    border-left-color: #CA8A04;
}

.cx-part.bad {
    border-left-color: #F59E0B;
}

.cx-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cx-head > strong {
    flex: 1;
    min-width: 0;
}

.cx-num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #EEF4FF;
    color: #1F5BD8;
    font-size: 0.8125rem;
    font-weight: 800;
}

.cx-number {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 340px;
}

.cx-number .pr-input {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cx-number span {
    color: #5B6F94;
    font-weight: 700;
}

.cx-expected {
    color: #9A3412;
    font-size: 0.875rem;
}

.cx-area {
    height: auto;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    resize: vertical;
}

.cx-keys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
}

.cx-keys span {
    margin-right: 4px;
    color: #3E5A8C;
    font-weight: 800;
}

.cx-keys i {
    padding: 3px 9px;
    border-radius: 999px;
    font-style: normal;
    font-weight: 700;
}

.cx-keys i.ok {
    background: #EAF7EF;
    color: #15803D;
}

.cx-keys i.bad {
    background: #FFF1E8;
    color: #9A3412;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.cx-model, .cx-solution {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F6F9FF;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cx-model > div, .cx-solution > div {
    white-space: pre-line;
}

.cx-solution {
    background: #F2FAF5;
}

.cx-judge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.cx-judge-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #C9D6EE;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cx-judge-btn.on.ok {
    border-color: #15803D;
    background: #EAF7EF;
    color: #15803D;
}

.cx-judge-btn.on.bad {
    border-color: #F59E0B;
    background: #FFF1E8;
    color: #9A3412;
}

.cx-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 0;
    margin: 0;
    color: #3E5A8C;
    font-size: 0.8125rem;
    list-style: none;
}

.cx-legend b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 6px;
    background: #EEF4FF;
    color: #1F5BD8;
    font-size: 0.75rem;
}

.cx-table {
    display: flex;
    flex-direction: column;
}

.cx-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-bottom: 1px solid #EEF2FA;
    font-size: 0.875rem;
}

.cx-row.ok {
    background: #F2FAF5;
}

.cx-row.bad {
    background: #FFF7F0;
}

.cx-label {
    color: #5B6F94;
    font-weight: 800;
}

.cx-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cx-cat {
    width: 32px;
    height: 32px;
    border: 1px solid #C9D6EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
}

.cx-cat.on {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.cx-cat:disabled {
    cursor: default;
}

.cx-cat.on.ok {
    border-color: #15803D;
    background: #15803D;
}

.cx-cat.wrong {
    border-color: #F59E0B;
    background: #F59E0B;
}

.cx-cat.missed {
    border: 2px dashed #15803D;
    color: #15803D;
}

.cx-edit {
    padding: 12px;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
}

.cx-edit-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cx-edit-head .wk-chips {
    flex: 1;
}

.cx-edit-num {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.cx-edit-num label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
}

.ci-json {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.75rem;
}

.ci-file {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ci-file input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ci-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    font-size: 0.8125rem;
}

.ci-help {
    max-height: 260px;
    padding: 10px 12px;
    margin: 0;
    overflow: auto;
    border-radius: 10px;
    background: #F6F9FF;
    color: #0B2E6F;
    font-size: 0.6875rem;
    white-space: pre;
}

@media (max-width: 640px) {
    .cx-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .cx-cats {
        grid-column: 2;
    }

    .cx-text, .cx-part {
        padding: 12px 14px;
    }
}

/* --- Bekérés ablak (RequestDialog) --- */

.fs-backdrop.rq-backdrop {
    z-index: 1060;
}

.ld-modal.rq-dialog {
    z-index: 1065;
    top: 40px;
    width: min(980px, 94vw);
    max-height: calc(100vh - 80px);
    padding: 0;
    gap: 0;
    background: #FFFFFF;
    border-radius: 22px;
    color: #0B2E6F;
}

.rq-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #EEF2FA;
}

.rq-head-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rq-head h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
}

.rq-kicker, .rq-label {
    margin: 0;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.rq-kicker {
    font-size: 0.6875rem;
    letter-spacing: .08em;
}

.rq-label-note {
    font-weight: 600;
    letter-spacing: 0;
}

.rq-sub {
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.rq-muted {
    color: #5B6F94;
    font-size: 0.75rem;
}

.rq-close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #F3F6FC;
    color: #3E5A8C;
    cursor: pointer;
}

.rq-templates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 28px 0;
}

.rq-templates .rq-label {
    margin-right: 4px;
}

.rq-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #C9D6EE;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.rq-chip.on {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.rq-tag {
    padding: 1px 7px;
    border-radius: 999px;
    background: #FFF1E8;
    color: #9A3412;
    font-size: 0.6875rem;
}

.rq-chip.on .rq-tag {
    background: rgba(255, 255, 255, .2);
    color: #FFFFFF;
}

.rq-auto {
    margin-left: auto;
    color: #5B6F94;
    font-size: 0.75rem;
}

.rq-body {
    display: flex;
    gap: 24px;
    padding: 18px 28px;
}

.rq-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.rq-side {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 16px;
    width: 280px;
}

.rq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rq-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rq-grow {
    flex: 1;
    min-width: 0;
}

.rq-input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #C9D6EE;
    border-radius: 10px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
}

.rq-input:focus {
    border-color: #1F5BD8;
    outline: none;
}

.rq-row .rq-input {
    flex: 1;
    min-width: 0;
}

.rq-readonly {
    background: #F6F9FF;
}

.rq-subject {
    height: 44px;
    padding: 0 14px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.rq-text {
    height: 330px;
    padding: 14px 16px;
    border-radius: 12px;
    line-height: 1.6;
    resize: vertical;
}

.rq-noemail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF7F0;
    color: #9A3412;
    font-size: 0.75rem;
}

.rq-noemail .rq-input {
    border-color: #F5C9A8;
}

.rq-copy {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #C9D6EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.rq-copy.done, .rq-btn.done {
    border-color: #15803D;
    background: #EAF7EF;
    color: #15803D;
}

.rq-copy:disabled {
    opacity: .6;
    cursor: default;
}

.rq-seg {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: #EEF2FA;
}

.rq-seg button {
    flex: 1;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.rq-seg button.on {
    background: #FFFFFF;
    color: #0B2E6F;
    box-shadow: 0 1px 2px rgba(11, 46, 111, .15);
}

.rq-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.rq-check:hover:not(:disabled) {
    background: #F6F9FF;
}

.rq-check:disabled {
    cursor: default;
}

.rq-check-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rq-check-text strong {
    font-size: 0.8125rem;
}

.rq-check-text small {
    color: #5B6F94;
    font-size: 0.6875rem;
}

.rq-box {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid #C9D6EE;
    border-radius: 5px;
}

.rq-box.on {
    border-color: #1F5BD8;
    background: #1F5BD8;
}

.rq-prev {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F6F9FF;
    font-size: 0.8125rem;
}

.rq-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 28px 22px;
    border-top: 1px solid #EEF2FA;
}

.rq-record {
    flex: 1;
    width: auto;
    min-width: 280px;
}

.rq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #C9D6EE;
    border-radius: 12px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.rq-btn:hover {
    color: #0B2E6F;
}

.rq-btn.primary {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.rq-btn.primary:hover {
    color: #FFFFFF;
}

.rq-last {
    color: #5B6F94;
    font-size: 0.75rem;
}

@media (max-width: 760px) {
    .ld-modal.rq-dialog {
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 94vh;
        border-radius: 22px 22px 0 0;
    }

    .rq-head {
        padding: 16px 16px 10px;
    }

    .rq-head h2 {
        font-size: 1.1875rem;
    }

    .rq-templates {
        flex-wrap: nowrap;
        padding: 10px 16px 0;
        overflow-x: auto;
    }

    .rq-auto {
        display: none;
    }

    .rq-body {
        flex-direction: column;
        gap: 14px;
        padding: 12px 16px;
    }

    .rq-side {
        width: auto;
    }

    .rq-text {
        height: 260px;
    }

    .rq-copy {
        height: 36px;
    }

    .rq-foot {
        padding: 12px 16px 20px;
    }

    .rq-record {
        min-width: 100%;
    }

    .rq-foot .rq-btn {
        flex: 1;
        height: 48px;
    }
}

/* --- Bekérő sablonok oldal --- */

.rt {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 4px 0 24px;
    color: #0B2E6F;
}

.rt-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.rt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rt-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.rt-item.on {
    border-color: #1F5BD8;
    background: #EEF4FF;
}

.rt-item strong {
    font-size: 0.875rem;
}

.rt-item span, .rt-note {
    color: #5B6F94;
    font-size: 0.75rem;
    line-height: 1.5;
}

.rt-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    background: #FFFFFF;
}

.rt-note strong {
    color: #0B2E6F;
    font-size: 0.8125rem;
}

.rt-ph {
    display: inline-block;
    padding: 1px 6px;
    border: 0;
    border-radius: 6px;
    background: #EEF4FF;
    color: #1F5BD8;
    font: inherit;
    font-weight: 700;
}

button.rt-ph {
    cursor: pointer;
}

.rt-editor {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
}

.rt-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rt-chip {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #C9D6EE;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.rt-chip.on {
    border-color: #1F5BD8;
    background: #1F5BD8;
    color: #FFFFFF;
}

.rt-body {
    min-height: 300px;
    line-height: 1.7;
}

.rt-phs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #3E5A8C;
    font-size: 0.75rem;
    line-height: 1.6;
}

.rt-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rt-preview-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
}

.rt-preview-card strong {
    font-size: 0.875rem;
}

.rt-preview-card div {
    color: #3E5A8C;
    font-size: 0.8125rem;
    line-height: 1.6;
    white-space: pre-line;
}

@media (max-width: 1200px) {
    .rt-grid {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .rt-preview {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .rt {
        padding: 4px 16px 24px;
    }

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

    .rt-editor {
        padding: 16px;
    }
}

/* --- Igaz / hamis állítások (PracticeStatements) --- */

.ts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0 24px;
    color: #0B2E6F;
}

.ts-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ts-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
}

.ts-group h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.ts-group h2 span {
    margin-left: 6px;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
}

.ts-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 8px;
    border: 0;
    border-top: 1px solid #EEF2FA;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ts-row:hover {
    background: #F6F9FF;
}

.ts-row .pr-chip {
    flex-shrink: 0;
    min-width: 54px;
    text-align: center;
}

.ts-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ts-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.ts-text small {
    color: #5B6F94;
    font-size: 0.75rem;
    line-height: 1.5;
}

.pg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 640px) {
    .ts {
        padding: 4px 16px 24px;
    }

    .ts-group {
        padding: 14px;
    }
}

/* A nyitó egyenleg előjelének figyelmeztetése (folyószámla). */
.tg-open-warn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF7F0;
    color: #9A3412;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.tg-open-warn strong {
    font-size: 0.8125rem;
}

.tg-open-warn span {
    color: #7C2D12;
}

/* Pénzügy – áttekintés asztalon (fo-*); a kártyák és összesítők a Tanulás dl-* osztályai. */
.fo-cols {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.fo-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 26px;
}

.fo-ring {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 190px;
    border-radius: 50%;
}

.fo-ring-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: #FFFFFF;
    text-align: center;
}

.fo-ring-inner small {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
}

.fo-ring-inner small.warn {
    color: #9A3412;
    font-size: 0.6875rem;
}

.fo-ring-inner strong {
    font-size: 1.125rem;
}

.fo-bars {
    display: grid;
    flex: 1 1 260px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 6px 22px;
    min-width: 0;
}

.fo-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.fo-bar:hover strong {
    color: #1F5BD8;
}

.fo-bar-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
}

.fo-bar-top strong {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fo-bar-top span {
    color: #5B6F94;
    white-space: nowrap;
}

.fo-bar.over .fo-bar-top span {
    color: #9A3412;
    font-weight: 800;
}

.fo-bar.over .dl-bar {
    background: #FFE4D2;
}

.fo-line {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 150px 130px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #EEF2FA;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.fo-line:last-child {
    border-bottom: 0;
}

.fo-line:hover strong:first-of-type {
    color: #1F5BD8;
}

.fo-line > strong:first-of-type {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fo-line-cat {
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.fo-amount {
    text-align: right;
    white-space: nowrap;
}

.fo-amount.income {
    color: #15803D;
}

.fo-amount.transfer {
    color: #5B6F94;
}

.fo-two {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fo-two small {
    color: #5B6F94;
    font-size: 0.75rem;
}

.fo-neg {
    color: #B42318;
}

.fo-bill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #F4F8FF;
    font-size: 0.875rem;
}

.fo-bill.late {
    background: #FFF1E8;
    color: #9A3412;
}

.fo-bill.late small {
    color: #9A3412;
}

.dl-btn.fo-late-btn {
    border-color: #9A3412;
    background: #9A3412;
    color: #FFFFFF;
    font-weight: 800;
}

/* Pénzügy – havi keretek (bg-*). */
.bg-plan {
    display: flex;
    height: 14px;
    overflow: hidden;
    border-radius: 7px;
    background: #E3EAF7;
}

.bg-plan.big {
    height: 40px;
    border-radius: 10px;
}

.bg-plan span {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 12px;
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 800;
    white-space: nowrap;
}

.bg-plan:not(.big) span {
    padding: 0;
}

.bg-plan-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.bg-plan-foot > span {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.bg-income {
    width: 140px;
}

.bg-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1F5BD8;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.bg-ok {
    color: #15803D !important;
    font-weight: 800 !important;
}

.bg-warn {
    color: #9A3412 !important;
    font-weight: 800 !important;
}

.bg-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.bg-table {
    gap: 0;
}

.bg-tr {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(120px, 280px) 100px 90px 104px;
    gap: 14px;
    align-items: center;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid #EEF2FA;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
}

button.bg-tr {
    cursor: pointer;
}

button.bg-tr:hover strong:first-child, button.bg-tr:hover .fo-two strong {
    color: #1F5BD8;
}

.bg-tr.head {
    padding: 0 0 8px;
    border-bottom-color: #DCE6F8;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
}

.bg-tr.over {
    margin: 0 -10px;
    padding: 11px 10px;
    background: #FFF8F3;
}

.bg-tr.over small {
    color: #9A3412;
    font-weight: 700;
}

.bg-tr.foot {
    padding-top: 12px;
    border-top: 1px solid #DCE6F8;
    border-bottom: 0;
}

.bg-tr.foot > span {
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.bg-tr.muted {
    padding: 8px 0;
}

.bg-tr .right {
    text-align: right;
}

.bg-neg {
    color: #9A3412;
}

.bg-sub {
    padding: 16px 0 4px;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
}

.bg-empty {
    padding: 14px 0;
}

.bg-track {
    position: relative;
    display: block;
    height: 10px;
    border-radius: 5px;
    background: #E3EAF7;
}

.bg-track > span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 5px;
}

.bg-track > i {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #0B2E6F;
}

.bg-tr.over .bg-track {
    background: #FFE4D2;
}

.bg-chip {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.bg-chip.ok {
    background: #EAF7EF;
    color: #15803D;
}

.bg-chip.fast {
    background: #FFF1E8;
    color: #9A3412;
}

.bg-chip.over {
    background: #9A3412;
    color: #FFFFFF;
}

.bg-text {
    font-size: 0.8125rem !important;
    line-height: 1.5;
}

.bg-shift {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 11px;
    background: #F4F8FF;
    font-size: 0.875rem;
}

.bg-shift-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.bg-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
}

.bg-radio input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
}

.bg-radio span {
    display: flex;
    flex-direction: column;
}

.bg-radio small {
    color: #5B6F94;
    font-size: 0.75rem;
}

.bg-tip {
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF6EE;
    color: #7C2D12;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Telefonon */
.bg-mrow .fin-row-text {
    gap: 6px;
}

.bg-mrow .bg-track {
    height: 8px;
}

/* Pénzügy – beállítások asztalon (st-*). */
.fs-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
}

.st-table {
    display: flex;
    flex-direction: column;
}

.st-tr {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #EEF2FA;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
}

.st-tr:last-child {
    border-bottom: 0;
}

button.st-tr {
    cursor: pointer;
}

button.st-tr:hover strong {
    color: #1F5BD8;
}

.st-tr.head {
    padding: 0 0 6px;
    border-bottom-color: #DCE6F8;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
}

.st-tr.muted {
    opacity: .6;
}

.st-tr .right {
    text-align: right;
}

.st-tr.wallets {
    grid-template-columns: minmax(120px, 1fr) 60px 110px 120px;
}

.st-tr.rules {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 50px;
}

.st-tr.cats {
    grid-template-columns: 40px minmax(0, 1fr) 150px 120px;
}

.st-code {
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    padding: 3px 8px;
    border-radius: 7px;
    background: #F4F7FD;
    color: #0B2E6F;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8125rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.st-arrow {
    color: #7C93BC;
}

.st-bubble, .st-name {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.st-name:hover strong {
    color: #1F5BD8;
}

.st-name small {
    color: #5B6F94;
}

.st-budget {
    width: 130px;
    text-align: right;
}

.st-seg {
    margin: 0;
}

.st-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F4F8FF;
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.st-rule-edit {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #F4F8FF;
}

.st-rule-edit > span {
    grid-column: 1 / -1;
}

.dl-btn.st-danger {
    margin-left: auto;
    color: #B42318;
}

/* Pénzügy – számlák asztalon (bl-*). */
.bl-seg {
    margin: 0;
}

.bl-cols {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
}

.bl-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(84px, auto);
    gap: 6px;
}

.bl-day {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 6px 7px;
    border-radius: 10px;
    background: #F6F9FF;
}

.bl-day small {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
}

.bl-day.today {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 2px #1F5BD8;
}

.bl-day.today small {
    color: #1F5BD8;
    font-weight: 800;
}

.bl-ev {
    overflow: hidden;
    padding: 2px 5px;
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.bl-ev.late {
    background: #9A3412;
    color: #FFFFFF;
}

.bl-ev.soon {
    background: #FFE9D6;
    color: #9A3412;
}

.bl-ev.later {
    background: #E3ECFF;
    color: #1F5BD8;
}

.bl-ev.paid {
    background: #EAF7EF;
    color: #15803D;
    font-weight: 700;
    text-decoration: line-through;
}

.bl-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bl-link:hover strong {
    text-decoration: underline;
}

.bl-tr, .bl-yr {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #EEF2FA;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
}

.bl-tr {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 110px 90px 110px;
    cursor: pointer;
}

.bl-tr:hover strong:first-child {
    color: #1F5BD8;
}

.bl-tr.muted {
    opacity: .6;
}

.bl-yr {
    grid-template-columns: minmax(0, 1fr) 90px 100px;
}

.bl-tr.head, .bl-yr.head {
    padding: 0 0 6px;
    border-bottom-color: #DCE6F8;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: default;
}

.bl-yr:last-child {
    border-bottom: 0;
}

.bl-tr .right, .bl-yr .right {
    text-align: right;
}

.fo-ok {
    color: #15803D;
    font-weight: 700;
}

/* Pénzügy – célok asztalon (gl-*). */
.gl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
    padding: 18px 22px;
    border-radius: 18px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.gl-hero > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gl-hero-main {
    gap: 8px !important;
}

.gl-hero small {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: .8;
}

.gl-hero strong {
    overflow: hidden;
    font-size: 1.25rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gl-hero-main strong {
    font-size: 1.75rem;
}

.gl-hero strong span {
    font-size: 0.9375rem;
    font-weight: 600;
    opacity: .8;
}

.gl-hero > div > span:not(.dl-meter) {
    font-size: 0.75rem;
    opacity: .8;
}

.gl-hero .dl-meter {
    background: rgba(255, 255, 255, .22);
}

.gl-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

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

.gl-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #DCE6F8;
    border-radius: 18px;
    background: #FFFFFF;
    cursor: pointer;
}

.gl-card.sel {
    border: 2px solid #1F5BD8;
    padding: 17px 19px;
}

.gl-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gl-card-head .fo-two {
    flex: 1;
}

.gl-ring {
    width: 60px;
    height: 60px;
}

.gl-name {
    font-size: 1.0625rem;
}

.gl-pct {
    font-size: 1.25rem;
}

.gl-tip {
    padding: 10px 12px;
    border-radius: 12px;
    background: #F4F8FF;
    color: #0B2E6F;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.gl-tip.ok {
    background: #F2FAF5;
    color: #14532D;
}

.gl-tip.warn {
    background: #FFF1E8;
    color: #7C2D12;
}

.gl-tip.done {
    background: #EAF7EF;
    color: #15803D;
    font-weight: 700;
}

.gl-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.gl-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 180px;
    border: 2px dashed #C9D6EE;
    border-radius: 18px;
    background: transparent;
    color: #3E5A8C;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
}

.gl-new small {
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 600;
}

.gl-new:hover {
    border-color: #1F5BD8;
    color: #1F5BD8;
}

.gl-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 190px;
}

.gl-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gl-col span {
    width: 100%;
    border-radius: 5px;
}

.gl-col small {
    color: #5B6F94;
    font-size: 0.6875rem;
    font-weight: 700;
}

.gl-col small.now {
    color: #0B2E6F;
    font-weight: 800;
}

.gl-target {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed #C9D6EE;
}

.gl-target small {
    position: absolute;
    top: -18px;
    right: 0;
    color: #5B6F94;
    font-size: 0.6875rem;
    font-weight: 700;
}

.gl-sub {
    margin: 4px 0 0;
    font-size: 0.875rem;
    font-weight: 800;
}

/* Pénzügy – éves kimutatás (rp-*). */
.rp-income {
    color: #15803D;
}

.rp-table {
    gap: 0;
    overflow-x: auto;
    font-size: 0.8125rem;
}

.rp-tr {
    display: grid;
    grid-template-columns: 130px repeat(var(--rp-months, 12), minmax(38px, 1fr)) 76px 56px 70px;
    gap: 3px;
    align-items: center;
    min-width: 700px;
    padding: 5px 0;
    border-bottom: 1px solid #EEF2FA;
    text-align: right;
}

.rp-tr > :first-child {
    text-align: left;
}

.rp-tr.head {
    padding: 0 0 8px;
    border-bottom-color: #DCE6F8;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
}

.rp-tr.income {
    border-bottom: 2px solid #DCE6F8;
    color: #15803D;
    font-weight: 700;
}

.rp-tr.total {
    padding: 8px 0;
    border-top: 2px solid #DCE6F8;
    border-bottom-color: #DCE6F8;
    font-weight: 800;
}

.rp-tr.saved {
    margin-top: 4px;
    padding: 8px 6px;
    border-bottom: 0;
    border-radius: 8px;
    background: #F4F8FF;
    color: #1F5BD8;
    font-weight: 800;
}

.rp-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rp-cell {
    padding: 3px 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: right;
    cursor: pointer;
}

.rp-cell:hover {
    background: #EEF4FF;
    color: #1F5BD8;
}

.rp-cell.warm, .rp-warm {
    background: #FFF1E8;
}

.rp-cell.hot, .rp-hot {
    background: #FBC9A6;
    color: #7C2D12;
    font-weight: 800;
}

.rp-muted {
    color: #8FA3C7;
}

.rp-good {
    color: #15803D;
    font-weight: 700;
}

.rp-bad {
    color: #9A3412;
    font-weight: 700;
}

.rp-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 12px;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 600;
}

.rp-mob-year {
    justify-content: center;
    gap: 18px;
}

@media print {
    .desk-side, .desk-top, .sidebar, .desk-hide, .mob-only, #blazor-error-ui {
        display: none !important;
    }

    .page, main, article.content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
    }

    .rp-table {
        overflow: visible;
        border: 0;
    }

    .rp-cell {
        cursor: default;
    }
}

/* Pénzügy – bankkivonat importálása (im-*). */
.im-steps {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    font-weight: 800;
}

.im-steps li {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #E6EDF9;
    color: #5B6F94;
}

.im-steps li.active {
    background: #1F5BD8;
    color: #FFFFFF;
}

.im-steps li.done {
    background: #EAF7EF;
    color: #15803D;
}

.im-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: end;
}

.im-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 2px dashed #C9D6EE;
    border-radius: 14px;
    background: #F6F9FF;
    cursor: pointer;
}

.im-drop:hover {
    border-color: #1F5BD8;
}

.im-drop input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.im-drop small {
    color: #5B6F94;
}

.im-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #3E5A8C;
    font-size: 0.8125rem;
    font-weight: 700;
}

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

.im-preview {
    display: flex;
    flex-direction: column;
}

.im-prow {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 120px;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #EEF2FA;
    font-size: 0.8125rem;
}

.im-prow code, .im-text {
    overflow: hidden;
    color: #0B2E6F;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8125rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.im-prow strong {
    text-align: right;
}

.im-table {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.im-body {
    max-height: calc(100vh - 290px);
    overflow-y: auto;
}

.im-tr {
    display: grid;
    grid-template-columns: 36px 64px minmax(0, 1fr) 120px 210px 210px;
    gap: 12px;
    align-items: center;
    padding: 8px 18px;
    border-bottom: 1px solid #EEF2FA;
    font-size: 0.875rem;
}

.im-tr.head {
    padding: 10px 18px;
    border-bottom-color: #DCE6F8;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
}

.im-tr.off > :not(.im-check) {
    opacity: .55;
}

.im-tr .right {
    text-align: right;
}

.im-check {
    display: flex;
    margin: 0;
    cursor: pointer;
}

.im-check input {
    width: 18px;
    height: 18px;
}

.im-tr select {
    height: 36px;
    font-size: 0.8125rem;
}

.im-missing {
    border-color: #EA7A28 !important;
    background: #FFF8F3 !important;
}

.bg-chip.im-gray {
    background: #EEF2FA;
    color: #5B6F94;
}

.bg-chip.im-blue {
    background: #EEF4FF;
    color: #1F5BD8;
}

.im-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 18px;
    padding: 12px 18px;
    border-top: 1px solid #DCE6F8;
    background: #F6F9FF;
    color: #3E5A8C;
    font-size: 0.8125rem;
}

.im-done {
    align-items: center;
    padding: 48px 24px;
    text-align: center;
}

.im-done h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
}

.im-done > span:not(.im-done-icon) {
    max-width: 560px;
    color: #3E5A8C;
    font-size: 0.875rem;
    line-height: 1.6;
}

.im-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #EAF7EF;
    color: #15803D;
}

/* Pénzügy – megtakarítás asztalon (sv-*). */
.sv-ring-stat {
    flex-direction: row !important;
    align-items: center;
    gap: 14px !important;
}

.sv-ring {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

.sv-ring span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1F5BD8;
    font-size: 0.75rem;
    font-weight: 800;
}

.sv-ring-stat .fo-two small {
    color: #FFFFFF;
    opacity: .85;
}

.sv-ring-stat .fo-two strong {
    font-size: 1.375rem;
}

.sv-warn {
    color: #9A3412 !important;
    font-weight: 700;
}

.sv-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: start;
}

.sv-bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--sv-n, 12), minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 270px;
}

.sv-target {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed #7C93BC;
}

.sv-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sv-bar small {
    color: #3E5A8C;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.sv-bar small.cur {
    color: #0B2E6F;
    font-weight: 800;
}

.sv-bar > span {
    box-sizing: border-box;
    width: 100%;
    border-radius: 6px;
}

.sv-bar > span.met {
    background: #1F5BD8;
}

.sv-bar > span.under {
    background: #EA7A28;
}

.sv-bar > span.now {
    border: 2px dashed #7C93BC;
    background: #EAF1FF;
}

.sv-dash {
    box-sizing: border-box;
    border: 2px dashed #7C93BC;
}

.sv-causes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.sv-causes span {
    padding: 8px 12px;
    border-radius: 10px;
    background: #FFF6EE;
    color: #7C2D12;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.sv-input {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #C9D6EE;
    border-radius: 11px;
    background: #FFFFFF;
}

.sv-input input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
}

.sv-input span {
    color: #5B6F94;
}

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

.sv-calc {
    display: grid;
    grid-template-columns: 56px repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #EEF2FA;
    font-size: 0.875rem;
    text-align: right;
}

.sv-calc > :first-child {
    text-align: left;
}

.sv-calc.head {
    padding: 4px 0 8px;
    border-bottom-color: #DCE6F8;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 800;
}

.sv-blue {
    color: #1F5BD8;
}

.sv-real {
    color: #9A3412;
}

.sv-note {
    background: #F4F8FF !important;
    color: #3E5A8C !important;
}

/* Keskenyebb asztali ablakban (1440 px alatt) a kétoszlopos pénzügyi nézetek egymás alá kerülnek. */
@media (max-width: 1439.98px) {
    .bg-cols, .fs-cols, .sv-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .gl-cols {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1279.98px) {
    .gl-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Pénzügy – kölcsönök a többi fülön (Tételek, Áttekintés, Számlák). */
.fin-loan-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #F1EEFC;
    color: #5B3FB8;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: .02em;
    vertical-align: middle;
}

a.fin-row-main, a.fin-row-main:hover {
    text-decoration: none;
    color: inherit;
}

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

.fo-loan-tiles > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F4F7FD;
}

.fo-loan-tiles small {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3E5A8C;
}

.fo-loan-tiles strong {
    font-size: 1.125rem;
    font-weight: 800;
}

.fo-loan-tiles > div.in {
    background: #F2FAF5;
}

.fo-loan-tiles > div.in small {
    color: #14532D;
}

.fo-loan-tiles > div.in strong {
    color: #15803D;
}

a.fo-loan-row {
    color: #0B2E6F;
    text-decoration: none;
}

a.fo-loan-row:hover {
    color: #1F5BD8;
}

a.fo-loan-row.late, a.fo-loan-row.late strong {
    color: #9A3412;
    font-weight: 700;
}

/* Élő frissítés: jelzés a sarokban, ha az adatok máshonnan (Claude, telefon, másik ablak) változtak. */
.live-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    max-width: min(440px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 14px;
    background: #0B2E6F;
    color: #FFFFFF;
    font-size: 0.875rem;
    box-shadow: 0 10px 30px rgba(11, 46, 111, .28);
    animation: live-toast-in .2s ease-out;
}

.live-toast-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #7FB2FF;
}

.live-toast-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.live-toast-btn {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
}

.live-toast-close {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #C9D8F5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.live-toast-close:hover {
    background: rgba(255, 255, 255, .12);
}

@keyframes live-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Folyószámla: NAV az OptiDeskből (NavImportSheet). */
@media (min-width: 1024px) {
    .page-desk .fs-sheet.nv-sheet {
        width: 560px;
        max-width: 560px;
    }

    .page.page-desk main:has(.nv-sheet) > article.content {
        padding-right: 592px !important;
    }
}

.nv-sheet {
    overflow-y: auto;
}

.nv-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #3E5A8C;
}

.nv-conn {
    font-size: 0.8125rem;
}

.nv-link {
    border: 0;
    padding: 0;
    background: none;
    color: #1F5BD8;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.nv-tax {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    background: #FFFFFF;
}

.nv-tax.off {
    background: #F6F9FF;
    opacity: .8;
}

.nv-tax-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.nv-tax-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nv-tax-name strong {
    font-size: 0.875rem;
    color: #0B2E6F;
}

.nv-tax-name small {
    font-size: 0.75rem;
    color: #5B6F94;
}

.nv-select {
    width: 190px;
    flex-shrink: 0;
    height: 38px;
    padding: 0 8px;
    font-size: 0.875rem;
}

.nv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.nv-table th {
    padding: 4px 6px;
    color: #5B6F94;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #DCE6F8;
}

.nv-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #EEF2FA;
    color: #0B2E6F;
}

.nv-table .n {
    text-align: right;
    white-space: nowrap;
}

.nv-table tr.out td {
    color: #8A9AB8;
}

.nv-old {
    margin-right: 6px;
    color: #8A9AB8;
}

.nv-new {
    color: #1F5BD8;
    font-weight: 800;
}

.nv-legend {
    margin: 0;
    font-size: 0.75rem;
    color: #5B6F94;
}

/* OptiDesk: az átvett feladatok és a sablonok jelölése. */
.desk-tag.od-tag {
    margin-left: 8px;
    background: #F1EEFC;
    color: #5B3FB8;
    vertical-align: middle;
}

.od-warn {
    color: #C2410C;
    font-weight: 800;
}

/* Megbízások: a díjszámla állapota az OptiDeskben. */
.da-od {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5B3FB8;
}

.da-od.ok {
    color: #15803D;
}

.da-od.warn {
    color: #C2410C;
}

button.da-od-send {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
/* Idő menüpont: Munkaidő · Szabadság · Napzárás fülsor */
.time-tabs {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 4px;
    border-radius: 12px;
    background: #E4ECFA;
    overflow-x: auto;
}

.time-tab {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    color: #3E5A8C;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.time-tab:hover {
    color: #0B2E6F;
}

.time-tab.on {
    background: #FFFFFF;
    color: #0B2E6F;
    font-weight: 800;
}

/* Kezdőlap: páratlan számú csempénél az utolsó a teljes sort kitölti (dash-tiles-odd). */
.dash-tiles > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* A Feladatok fülsora (TaskTabs, task-tabs-bar): Teendők · Levelek · Munkaidő · Segéd. */
.task-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    border-bottom: 1px solid #DCE6F8;
    overflow-x: auto;
}

.task-tab {
    flex-shrink: 0;
    padding: 11px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    color: #3E5A8C;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.task-tab:hover {
    color: #0B2E6F;
}

.task-tab.on {
    color: #1F5BD8;
    font-weight: 800;
    border-bottom-color: #1F5BD8;
}

@media (max-width: 767.98px) {
    .task-tabs {
        margin: 0 -16px 12px;
        padding: 0 10px;
    }

    .task-tab {
        padding: 11px 10px;
        font-size: 0.875rem;
    }
}

/* Feladatok → Teendők (asztal): generálás sáv, a hét napjai, nézetválasztó, csoportfejlécek, havi naptár (tk-week-strip). */
.tk-gen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #F3D9B1;
    background: #FFFAF2;
    font-size: 0.875rem;
}

.tk-gen b {
    color: #8A5300;
}

.tk-gen span {
    color: #3E5A8C;
}

.tk-gen .tk-gen-btn {
    background: #8A5300;
    border-color: #8A5300;
    color: #FFFFFF;
}

.tk-gen-link {
    font-weight: 700;
    text-decoration: none;
}

.tk-week {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.tk-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #0B2E6F;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tk-day small {
    font-size: 0.75rem;
    color: #4A5F86;
}

.tk-day b {
    font-size: 0.875rem;
}

.tk-day.today small {
    color: #1F5BD8;
    font-weight: 700;
}

.tk-day.on {
    border: 2px solid #1F5BD8;
    padding: 8px 11px;
    background: #F7FAFF;
}

.tk-day-bar {
    align-self: stretch;
    height: 4px;
    border-radius: 2px;
    background: #1F5BD8;
}

.tk-day-bar.late {
    background: #C2410C;
}

.tk-day-bar.empty {
    background: #DCE6F8;
}

.tk-views {
    display: inline-flex;
    border: 1px solid #DCE6F8;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
}

.tk-views button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.tk-views button.on {
    background: #0B2E6F;
    color: #FFFFFF;
    font-weight: 700;
}

.desk-table tr.tk-group td {
    padding: 8px 14px 6px;
    background: #F7FAFF;
    color: #3E5A8C;
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: default;
}

.tk-group-more {
    margin-left: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #1F5BD8;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.desk-table tr.tk-group.late td {
    background: #FFFAF6;
    color: #C2410C;
}

.tk-cal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
}

.tk-cal-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tk-cal-head strong {
    min-width: 150px;
    text-align: center;
}

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

.tk-cal-dow {
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #4A5F86;
}

.tk-cal-day {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #EEF2FA;
    min-width: 0;
}

.tk-cal-day small {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3E5A8C;
}

.tk-cal-day.out {
    background: #FAFBFE;
}

.tk-cal-day.out small {
    color: #A3B1CC;
}

.tk-cal-day.today {
    border-color: #1F5BD8;
}

.tk-cal-task,
.tk-cal-more {
    display: block;
    width: 100%;
    padding: 3px 6px;
    border: 0;
    border-radius: 6px;
    background: #EAF1FF;
    color: #0B2E6F;
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.tk-cal-task.late {
    background: #FFF1E8;
    color: #9A3412;
}

.tk-cal-task.done {
    background: #E7F6EC;
    color: #166534;
    text-decoration: line-through;
}

.tk-cal-task.sel {
    outline: 2px solid #1F5BD8;
}

.tk-cal-more {
    background: transparent;
    color: #1F5BD8;
    font-weight: 700;
}

/* A feladat teljes oldalán (TaskFull) a részletpanel széles, nem ragad és nem görget külön (desk-panel-full-mode). */
.desk-panel.full {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 22px 24px;
}

.desk-panel.full .desk-check {
    min-height: 40px;
}

/* desk-step-wide: a lépés alatti, teljes szélességű gombsor (pl. az ÁFA-gyakoriság választója), hogy a lépés szövege ne szoruljon össze. */
.desk-check:has(.desk-step-wide) {
    flex-wrap: wrap;
}

.desk-step-links.desk-step-wide {
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 26px;
}

/* Munkaterület (kezdőlap): sötét oldal és felső sáv, hogy a mozgó háttérrel egybefüggő legyen. */
@media (min-width: 1024px) {
    .page.page-desk:has(.ws) {
        background: #071C46;
    }

    .page-desk:has(.ws) .desk-top {
        background: rgba(7, 28, 70, 0.94);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .page-desk:has(.ws) .desk-top .desk-top-title span {
        color: #BFD3FF;
    }

    .page-desk:has(.ws) .desk-top .desk-top-title h1 {
        color: #FFFFFF;
    }
}

/* ===================================================================================================
   Projektek terület (pj-): projektlista és a projekt oldala (fülek, feladattábla, folyamatok, pénz, jegyzetek, idő).
   =================================================================================================== */
.pj {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #10203F;
}

.pj-mobhead {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pj-mobhead h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0B2E6F;
}

.pj-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #C9D6F2;
    background: #FFFFFF;
    color: #10203F;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pj-btn:hover {
    border-color: #1F5BD8;
}

.pj-btn.primary {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.pj-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.pj-link {
    border: 0;
    background: none;
    padding: 0;
    color: #1F5BD8;
    font-weight: 600;
    cursor: pointer;
}

.pj-muted {
    color: #5B6F94;
    font-size: 13px;
    margin: 0;
}

.pj-notice {
    padding: 10px 14px;
    border-radius: 10px;
    background: #E3F4EF;
    color: #0B5B54;
    font-size: 14px;
}

.pj-empty {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 640px;
}

.pj-empty h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.pj-empty p {
    margin: 0;
    color: #44557A;
    line-height: 1.55;
}

.pj-section {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5B6F94;
}

/* --- Projektkártyák a listában --- */
.pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.pj-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    color: #10203F;
    text-decoration: none;
}

.pj-card:hover {
    border-color: #1F5BD8;
    color: #10203F;
}

.pj-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
}

.pj-badge.big {
    width: 52px;
    height: 52px;
    font-size: 17px;
}

.pj-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pj-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pj-card-top strong {
    font-size: 16px;
}

.pj-card-desc {
    font-size: 13px;
    color: #44557A;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pj-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #5B6F94;
}

.pj-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #E3F4EF;
    color: #0B5B54;
}

.pj-status.onhold {
    background: #FDF0E1;
    color: #8A4A06;
}

.pj-status.done {
    background: #EEF2FA;
    color: #44557A;
}

/* --- A projekt oldala --- */
.pj-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pj-head-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    flex: 1 1 320px;
    min-width: 0;
}

.pj-head-text h1 {
    margin: 0;
    width: 100%;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0B2E6F;
}

.pj-links {
    font-size: 13px;
    color: #5B6F94;
    white-space: pre-line;
}

.pj-head-btns {
    gap: 8px;
}

.pj-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    border-bottom: 1px solid #DCE6F8;
}

.pj-tab {
    padding: 10px 2px;
    font-size: 14px;
    font-weight: 600;
    color: #5B6F94;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.pj-tab:hover {
    color: #0B2E6F;
}

.pj-tab.on {
    color: #0B2E6F;
    border-bottom-color: #1F5BD8;
}

.pj-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.pj-kpi {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pj-kpi > span {
    font-size: 12px;
    font-weight: 700;
    color: #5B6F94;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pj-kpi strong {
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pj-kpi strong.pj-kpi-text {
    font-size: 15px;
    font-weight: 700;
}

.pj-kpi strong.good,
.pj-table td.good {
    color: #0F766E;
}

.pj-kpi strong.warn {
    color: #B4530A;
}

.pj-kpi small {
    font-size: 12px;
    color: #5B6F94;
}

.pj-kpi-action {
    justify-content: center;
    align-items: flex-start;
}

.pj-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.pj-main {
    flex: 999 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pj-side {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pj-card-box {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pj-card-box h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.pj-box-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.pj-box-head a {
    font-size: 12px;
    font-weight: 600;
}

.pj-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.pj-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid #EEF2FA;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.pj-row:hover .pj-row-title {
    color: #1F5BD8;
}

.pj-row-title {
    font-size: 14px;
    font-weight: 600;
}

.pj-row-meta,
.pj-kc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 12px;
    color: #5B6F94;
}

.pj-ms {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #EEF2FA;
    font-size: 13px;
}

.pj-ms input[type=checkbox] {
    width: 18px;
    height: 18px;
}

.pj-ms.done .pj-ms-title {
    text-decoration: line-through;
    color: #5B6F94;
}

.pj-ms-date {
    width: 56px;
    flex-shrink: 0;
    font-weight: 700;
    color: #5B6F94;
}

.pj-ms-title {
    flex: 1;
    min-width: 0;
}

.pj-x {
    border: 0;
    background: none;
    color: #8A96AE;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.pj-x:hover {
    color: #B4530A;
    background: #FDF0E1;
}

.pj-ms-add {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.pj-ms-add .fs-input {
    flex: 1 1 140px;
    min-width: 0;
}

.pj-note-title {
    font-size: 14px;
}

/* --- Feladattábla --- */
.pj-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    align-items: start;
}

.pj-col {
    background: #EAF0FB;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pj-col-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #0B2E6F;
}

.pj-kc {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pj-kc.high {
    border-left: 3px solid #D4900F;
}

.pj-kc-title {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #10203F;
    cursor: pointer;
}

.pj-kc-title:hover {
    color: #1F5BD8;
    text-decoration: underline;
}

.pj-kc-bar {
    height: 5px;
    border-radius: 3px;
    background: #EEF2FA;
    overflow: hidden;
}

.pj-kc-bar > span {
    display: block;
    height: 100%;
    background: #1F5BD8;
}

.pj-kc-move {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.pj-mv {
    width: 32px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #DCE6F8;
    background: #FFFFFF;
    color: #44557A;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.pj-mv:hover {
    border-color: #1F5BD8;
    color: #1F5BD8;
}

.pj-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #F1F4FA;
    color: #44557A;
}

.pj-tag.warn {
    background: #FDF0E1;
    color: #8A4A06;
}

.pj-quick .fs-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
}

/* --- Folyamatok, pénz, jegyzetek, idő --- */
.pj-proc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    align-items: start;
}

.pj-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

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

.pj-year {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

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

.pj-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pj-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #5B6F94;
    padding: 8px 10px;
    border-bottom: 1px solid #DCE6F8;
}

.pj-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #EEF2FA;
}

.pj-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pj-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pj-chip {
    border: 1px solid #C9D6F2;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #44557A;
    cursor: pointer;
}

.pj-chip.on {
    background: #EAF1FE;
    border-color: #1F5BD8;
    color: #0B2E6F;
}

.pj-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    align-items: start;
}

.pj-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    padding: 14px 16px;
    color: inherit;
    cursor: pointer;
    min-width: 0;
}

.pj-note:hover {
    border-color: #1F5BD8;
}

.pj-note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pj-kind {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.pj-hb {
    display: grid;
    grid-template-columns: minmax(80px, 38%) 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.pj-hb-track {
    height: 10px;
    border-radius: 5px;
    background: #EEF2FA;
    overflow: hidden;
}

.pj-hb-track > span {
    display: block;
    height: 100%;
    border-radius: 5px;
}

@media (max-width: 1023px) {
    .pj-mobhead,
    .pj-head-btns {
        display: flex;
    }
}

/* ===================================================================================================
   Pénzügy: nettó vagyon (nw-) az áttekintés tetején, Befektetések oldal (iv-; a pj- elemeit is használja).
   =================================================================================================== */
.nw {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.nw-main,
.nw-part {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #10203F;
    text-decoration: none;
    min-width: 0;
}

.nw-part:hover {
    border-color: #1F5BD8;
    color: #10203F;
}

.nw-main {
    background: #0B2E6F;
    border-color: #0B2E6F;
    color: #FFFFFF;
}

.nw-main:hover {
    color: #FFFFFF;
}

.nw-k {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5B6F94;
}

.nw-main .nw-k,
.nw-main .nw-sub {
    color: #C9D6F2;
}

.nw strong {
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.nw-main strong {
    font-size: 26px;
}

.nw-sub {
    font-size: 12px;
    color: #5B6F94;
}

.nw-sub.good {
    color: #0F766E;
    font-weight: 600;
}

.nw-sub.warn {
    color: #B4530A;
    font-weight: 600;
}

.iv {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #10203F;
}

.iv-mobhead {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.iv-mobhead h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0B2E6F;
}

@media (max-width: 1023px) {
    .iv-mobhead {
        display: flex;
    }
}

.iv-row {
    cursor: pointer;
}

.iv-row:hover td {
    background: #F4F7FD;
}

.iv-sym {
    display: block;
    font-size: 11px;
    color: #5B6F94;
}

.iv-alloc {
    display: flex;
    gap: 2px;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #EEF2FA;
}

.iv-alloc > span {
    display: block;
    height: 100%;
}

.iv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: #44557A;
}

.iv-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px;
}

.iv-archived summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #44557A;
    padding-top: 8px;
}

.iv-chart {
    width: 100%;
    height: auto;
}

.iv-chart-foot {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #5B6F94;
}

.iv-claude .pj-actions {
    margin-top: 4px;
}

/* --- Befektetések › Osztalék (dv-) --- */
.pj-kpi.dv-main {
    background: #0B2E6F;
    border-color: #0B2E6F;
    color: #FFFFFF;
}

.pj-kpi.dv-main > span,
.pj-kpi.dv-main small {
    color: #C9D6F2;
}

.dv-goal-bar {
    height: 10px;
    border-radius: 5px;
    background: #EEF2FA;
    overflow: hidden;
}

.dv-goal-bar > span {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: #0F766E;
}

.dv-goal-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dv-goal-edit .fs-input {
    width: 160px;
}

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

.dv-cal-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dv-cal-nav h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    min-width: 150px;
    text-align: center;
}

.dv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dv-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.dv-dow {
    font-size: 11px;
    font-weight: 700;
    color: #5B6F94;
    text-align: center;
    padding: 4px 0;
}

.dv-day {
    min-height: 78px;
    border: 1px solid #EEF2FA;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #FFFFFF;
    min-width: 0;
}

.dv-day.off {
    background: #F8FAFE;
}

.dv-day.off .dv-dn {
    color: #A8B5CC;
}

.dv-day.today {
    border-color: #1F5BD8;
}

.dv-dn {
    font-size: 12px;
    font-weight: 700;
    color: #44557A;
}

.dv-ev {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 6px;
    padding: 2px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-legend .dv-ev {
    display: inline-block;
}

.dv-ev.pay {
    background: #E3F4EF;
    color: #0B5B54;
}

.dv-ev.received {
    background: #0F766E;
    color: #FFFFFF;
}

.dv-ev.ex {
    background: #EAF1FE;
    color: #0B2E6F;
}

.dv-ev.earn {
    background: #FDF0E1;
    color: #8A4A06;
}

.dv-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-top: 10px;
}

.dv-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dv-bar-col {
    width: 100%;
    max-width: 22px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
}

.dv-bar-col .rec {
    display: block;
    background: #0F766E;
    border-radius: 3px 3px 0 0;
}

.dv-bar-col .exp {
    display: block;
    background: #9DD7C8;
    border: 1px dashed #0F766E;
    box-sizing: border-box;
    border-radius: 3px 3px 0 0;
}

.dv-bar-m {
    font-size: 10px;
    color: #5B6F94;
}

.dv-bar-m.now {
    font-weight: 700;
    color: #0B2E6F;
}

.dv-next {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #EEF2FA;
    font-size: 14px;
}

.dv-muted {
    color: #5B6F94;
}

@media (max-width: 719px) {
    .dv-day {
        min-height: 54px;
    }

    .dv-ev {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* ===================================================================================================
   Tanulás: Mai adag (dp-), Párbeszéd (dg-), a tananyag asztali oldala (ml-; a pj- elemeit is használja).
   =================================================================================================== */
.dp {
    background: #0B2E6F;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

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

.dp-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dp-k {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #C9D6F2;
}

.dp-min {
    font-size: 28px;
    font-weight: 800;
}

.dp-sub {
    font-size: 14px;
    color: #C9D6F2;
    margin: 0;
}

.dp-start {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    color: #0B2E6F;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.dp-start:hover {
    color: #1F5BD8;
}

.dp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dp-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.dp-steps li.done {
    opacity: 0.7;
}

.dp-steps li.done a {
    text-decoration: line-through;
}

.dp-steps a {
    color: #FFFFFF;
    flex: 1;
    min-width: 0;
}

.dp-steps b {
    width: 30px;
    text-align: right;
}

.dp-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.dp-steps li.done .dp-check {
    background: #5EE0A8;
    border-color: #5EE0A8;
    color: #0B2E6F;
}

.dp-detail,
.dp-time {
    font-size: 12px;
    color: #C9D6F2;
}

/* Telefonon a lépés két sorban: pipa, darab, név, idő; alatta a témakörök (ne csússzanak egymásra). */
@media (max-width: 719.98px) {
    .dp-steps li {
        display: grid;
        grid-template-columns: 20px 28px minmax(0, 1fr) auto;
        grid-template-areas: "check count label time" ". . detail detail";
        column-gap: 10px;
        row-gap: 2px;
        line-height: 1.35;
    }

    .dp-steps .dp-check { grid-area: check; }
    .dp-steps b { grid-area: count; width: auto; }
    .dp-steps a { grid-area: label; }
    .dp-steps .dp-time { grid-area: time; white-space: nowrap; }
    .dp-steps .dp-detail { grid-area: detail; }
}

.dp-len {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #C9D6F2;
}

.dp-chip {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.dp-chip.on {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #0B2E6F;
}

.dg-intro {
    margin: 0;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #44557A;
}

.dg-mobtitle {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0B2E6F;
}

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

@media (max-width: 719px) {
    .dg-modes {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dg-mode {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #FFFFFF;
    color: #10203F;
    cursor: pointer;
}

.dg-mode b {
    font-size: 15px;
}

.dg-mode span {
    font-size: 12px;
    color: #5B6F94;
    line-height: 1.45;
}

.dg-mode.on {
    border-color: #1F5BD8;
    background: #EAF1FE;
}

.dg-len {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dg-sug {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #EEF2FA;
}

.dg-sug-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
}

.dg-sug-text span {
    color: #44557A;
}

.dg-sug-text small {
    font-size: 12px;
    color: #5B6F94;
}

.dg-sug-btns {
    display: flex;
    gap: 8px;
}

.dg-how {
    font-size: 13px;
    color: #44557A;
}

.dg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #EEF2FA;
    font-size: 14px;
    color: #10203F;
    text-decoration: none;
}

a.dg-row:hover .dg-title {
    color: #1F5BD8;
}

.dg-when {
    width: 80px;
    flex-shrink: 0;
    font-weight: 600;
    color: #5B6F94;
}

.dg-title {
    flex: 1;
    min-width: 0;
}

.dg-row b.warn {
    color: #B4530A;
}

.pj-kpi.ln-hero-kpi {
    color: #FFFFFF;
}

.pj-kpi.ln-hero-kpi > span,
.pj-kpi.ln-hero-kpi small {
    color: rgba(255, 255, 255, 0.85);
}

.pj-kpi.ml-link {
    text-decoration: none;
    color: #10203F;
}

.pj-kpi.ml-link:hover {
    border-color: #1F5BD8;
}

.ml-topic {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #EEF2FA;
}

.ml-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #C9D6F2;
    background: #FFFFFF;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    cursor: pointer;
}

.ml-box.now {
    border-color: #1F5BD8;
    background: #EAF1FE;
}

.ml-box.done {
    border-color: #0F766E;
    background: #0F766E;
}

.ml-topic-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.ml-topic-text small {
    font-size: 12px;
    color: #5B6F94;
}

.ml-deck {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #EEF2FA;
}

.ml-deck-text {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.ml-deck-text small {
    font-size: 12px;
    color: #5B6F94;
}

/* --- Zárás előtti ellenőrzés (cc-, ccs-) --- */
.cc {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc.compact {
    background: #FFF8F2;
    border-color: #F3D9C4;
    padding: 12px 14px;
    margin: 8px 0;
}

.cc-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.cc-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.cc-sum {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-hint {
    margin: 2px 0 4px;
    font-size: 13px;
    color: #5B6F94;
}

.cc-khead {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8A4A06;
}

.cc-none {
    margin: 6px 0 0;
    font-size: 14px;
    color: #0B5B54;
}

.cc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #EEF2FA;
}

.cc.compact .cc-row {
    border-top-color: #F3D9C4;
}

.cc-row.acked {
    opacity: 0.6;
}

.cc-text {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.cc-text small {
    font-size: 12px;
    color: #5B6F94;
    line-height: 1.45;
}

.cc-sev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.cc-sev.err {
    background: #FDECEC;
    color: #8A1C1C;
}

.cc-sev.warn {
    background: #FDF0E1;
    color: #8A4A06;
}

.cc-sev.ok {
    background: #E3F4EF;
    color: #0B5B54;
}

.cc-sev.info {
    background: #EAF1FE;
    color: #0B2E6F;
}

.cc-more {
    align-self: flex-start;
    border: 0;
    background: none;
    padding: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #1F5BD8;
    cursor: pointer;
}

.ccs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    text-decoration: none;
    color: #10203F;
    border: 1px solid #F3D9C4;
    background: #FFF8F2;
}

.ccs.err {
    border-color: #F2C4C4;
    background: #FDF3F3;
}

.ccs-k {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5B6F94;
}

.ccs strong {
    flex: 1;
    font-size: 15px;
}

.ccs-go {
    font-size: 13px;
    font-weight: 700;
    color: #1F5BD8;
}

.iv-day {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 4px 0 8px;
}

.iv-day > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iv-day small {
    font-size: 11px;
    font-weight: 700;
    color: #5B6F94;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.iv-day strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.iv-day .good strong {
    color: #0F766E;
}

.iv-day .warn strong {
    color: #B4530A;
}

/* ===================================================================================================
   Asszisztens (as-): emlékek, skillek, szabályok (CLAUDE.md), leírás (README) és a Claude-tálca.
   =================================================================================================== */
.as {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #10203F;
}

.as-mobhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.as-mobhead h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.as-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0;
    font-size: 14px;
    color: #44557A;
}

.as-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #E3F6F3;
    color: #0F5F58;
    font-size: 13px;
    font-weight: 600;
}

.as-sync.off {
    background: #EEF2FA;
    color: #44557A;
}

.as-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #DCE6F8;
}

.as-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-bottom: 3px solid transparent;
    color: #4A5D83;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.as-tab:hover {
    color: #10203F;
}

.as-tab.on {
    color: #0B2E6F;
    border-bottom-color: #1F5BD8;
}

.as-count {
    font-size: 12px;
    font-weight: 700;
    background: #E6EEFC;
    color: #1F4FB8;
    border-radius: 999px;
    padding: 1px 8px;
}

.as-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1099px) {
    .as-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.as-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.as-split {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 719px) {
    .as-split {
        grid-template-columns: minmax(0, 1fr);
    }
}

.as-card {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.as-empty h2,
.as-detail h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}

.as-empty p {
    margin: 0;
    color: #44557A;
}

.as-k {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #4A5D83;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.as-list {
    gap: 2px;
}

.as-list .as-k {
    padding: 8px 6px 4px;
}

.as-li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.as-li:hover {
    background: #F3F6FC;
}

.as-li.on {
    background: #EAF1FF;
    border-color: #BFD3FF;
}

.as-li b {
    font-size: 14px;
    color: #10203F;
}

.as-li span {
    font-size: 12px;
    color: #5B6F94;
}

.as-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.as-text {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #1D2C4D;
}

.as-muted {
    font-size: 12px;
    color: #5B6F94;
}

.as-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 8px;
    background: #EEF2FA;
    color: #44557A;
}

.as-tag.draft {
    background: #FDF3E1;
    color: #7A4A00;
}

.as-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #C9D6F2;
    background: #FFFFFF;
    color: #10203F;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.as-btn:hover {
    border-color: #1F5BD8;
}

.as-btn.primary {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.as-btn.danger {
    background: #B42318;
    border-color: #B42318;
    color: #FFFFFF;
}

.as-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.as-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.as-confirm span {
    font-size: 13px;
    color: #44557A;
}

.as-del {
    align-self: flex-start;
    color: #B42318;
}

.as-skill {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #EEF2FA;
}

.as-skill-i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #EAF1FF;
    color: #1F5BD8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-skill-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.as-skill-text b {
    font-size: 15px;
}

.as-skill-text span {
    font-size: 13px;
    color: #44557A;
    line-height: 1.5;
}

.as-skill-text small {
    font-size: 12px;
    color: #5B6F94;
}

.as-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.as-doc-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.as-mono {
    margin: 0;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: #1D2C4D;
}

.as-editor {
    width: 100%;
    box-sizing: border-box;
    min-height: 360px;
    padding: 12px;
    border: 1px solid #C9D6F2;
    border-radius: 10px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #10203F;
    resize: vertical;
}

.as-editor:focus {
    outline: 2px solid #1F5BD8;
    outline-offset: 1px;
}

.as-sheet-body {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
}

.as-changes {
    border-top: 1px solid #EEF2FA;
    padding-top: 8px;
    font-size: 13px;
}

.as-changes > summary {
    cursor: pointer;
    font-weight: 600;
    color: #1F5BD8;
}

.as-change {
    padding: 8px 0;
    border-top: 1px solid #F1F4FA;
    line-height: 1.5;
}

.as-change details summary {
    cursor: pointer;
    color: #4A5D83;
    font-size: 12px;
}

.as-tray {
    background: #FFF8F2;
    border: 1px solid #F3D9C4;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-tray-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.as-tray-head strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #8A4A06;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.as-tray-head span {
    font-size: 13px;
    color: #6B4A2A;
}

.as-avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #D97757;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.as-prop {
    background: #FFFFFF;
    border: 1px solid #F3D9C4;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-prop strong {
    font-size: 14px;
}

.as-prop p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #2D3E62;
    white-space: pre-wrap;
}

/* ===================================================================================================
   Naptár (cal-): Google Naptár + LifeDesk-határidők; heti rács, napi lista, havi rács, Google-fiók.
   =================================================================================================== */
.cal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #10203F;
    --cal-g: #DCE8FF;
    --cal-g-ink: #0B2E6F;
    --cal-t: #FDEBD8;
    --cal-t-ink: #7A3B00;
    --cal-b: #E3F6F3;
    --cal-b-ink: #0B4A44;
}

.cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.cal-title {
    margin: 0 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
}

.cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    min-width: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid #C9D6F2;
    background: #FFFFFF;
    color: #10203F;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.cal-btn:hover {
    border-color: #1F5BD8;
    color: #0B2E6F;
}

.cal-btn.primary {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.cal-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.cal-seg {
    display: inline-flex;
    border: 1px solid #C9D6F2;
    border-radius: 9px;
    overflow: hidden;
}

.cal-seg a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #44557A;
    text-decoration: none;
    background: #FFFFFF;
}

.cal-seg a.on {
    background: #0B2E6F;
    color: #FFFFFF;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #44557A;
}

.cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cal .sw {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--cal-c, #1F5BD8);
}

.cal .sw.t {
    background: #E8913A;
}

.cal .sw.b {
    background: #2A9D8F;
}

.cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1099px) {
    .cal-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.cal-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cal-card {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cal-k {
    font-size: 12px;
    font-weight: 700;
    color: #4A5D83;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cal-k-sub {
    margin-top: 6px;
}

.cal-muted {
    margin: 0;
    font-size: 13px;
    color: #5B6F94;
    line-height: 1.5;
}

.cal-err {
    font-size: 12px;
    color: #B42318;
}

.cal-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

/* --- Heti rács --- */
.cal-week {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    overflow-x: auto;
}

.cal-wk-head,
.cal-wk-allday,
.cal-wk-body {
    display: grid;
    grid-template-columns: 52px repeat(7, minmax(96px, 1fr));
    min-width: 760px;
}

.cal-wk-head {
    border-bottom: 1px solid #E6ECF7;
}

.cal-dh {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    color: #44557A;
    border-left: 1px solid #E6ECF7;
    text-decoration: none;
}

.cal-dh b {
    display: block;
    margin: 2px auto 0;
    font-size: 19px;
    color: #10203F;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
}

.cal-dh.today b {
    background: #1F5BD8;
    color: #FFFFFF;
}

.cal-wk-allday {
    border-bottom: 1px solid #E6ECF7;
}

.cal-wk-lbl {
    font-size: 11px;
    color: #5B6F94;
    padding: 6px 6px 0 0;
    text-align: right;
}

.cal-ad-col {
    border-left: 1px solid #E6ECF7;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 28px;
    min-width: 0;
}

.cal-ad,
.cal-mc-e {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 6px;
    padding: 3px 6px;
    font: 600 12px Inter, system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    background: var(--cal-g);
    color: var(--cal-g-ink);
    box-shadow: inset 3px 0 0 var(--cal-c, #1F5BD8);
}

.cal-ad.t,
.cal-mc-e.t {
    background: var(--cal-t);
    color: var(--cal-t-ink);
    box-shadow: inset 3px 0 0 #E8913A;
}

.cal-ad.b,
.cal-mc-e.b {
    background: var(--cal-b);
    color: var(--cal-b-ink);
    box-shadow: inset 3px 0 0 #2A9D8F;
}

.cal-wk-body {
    padding-top: 8px;
    max-height: 640px;
    overflow-y: auto;
}

/* Asztalon a heti és a havi nézet kitölti az ablak magasságát (a fejléc, az eszközsor és a jelmagyarázat alatt);
   a heti nézet órái a rácson belül görgethetők. */
@media (min-width: 1024px) {
    .cal-week {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 232px);
        min-height: 520px;
    }

    .cal-week > .cal-wk-body {
        flex: 1;
        min-height: 0;
        max-height: none;
    }

    .cal-month {
        height: calc(100dvh - 232px);
        min-height: 560px;
        grid-template-rows: auto repeat(6, minmax(0, 1fr));
    }

    .cal-month .cal-mc {
        min-height: 0;
        overflow: hidden;
    }
}

.cal-hours span {
    display: block;
    height: var(--hour);
    font-size: 11px;
    color: #5B6F94;
    text-align: right;
    padding-right: 8px;
    box-sizing: border-box;
    transform: translateY(-7px);
}

.cal-col {
    position: relative;
    border-left: 1px solid #E6ECF7;
}

.cal-col.today {
    background: #F7FAFF;
}

.cal-slot {
    display: block;
    width: 100%;
    height: var(--hour);
    border: 0;
    border-top: 1px solid #EEF2FA;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.cal-slot:hover:not(:disabled) {
    background: rgba(31, 91, 216, 0.06);
}

.cal-slot:disabled {
    cursor: default;
}

.cal-ev {
    position: absolute;
    box-sizing: border-box;
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    font: 500 12px/1.35 Inter, system-ui, sans-serif;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    background: var(--cal-g);
    color: var(--cal-g-ink);
    box-shadow: inset 3px 0 0 var(--cal-c, #1F5BD8), 0 0 0 1px #FFFFFF;
}

.cal-ev b {
    display: block;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #D9480F;
    pointer-events: none;
}

.cal-now::before {
    content: "";
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D9480F;
}

/* --- Napi lista --- */
.cal-agenda {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-day.today {
    border-color: #1F5BD8;
}

.cal-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cal-day-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.cal-ag {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid #EEF2FA;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 14px;
    color: #10203F;
    cursor: pointer;
}

.cal-ag:hover {
    background: #F7FAFF;
}

.cal-ag-t {
    width: 86px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #4A5D83;
}

.cal-ag-t.all {
    color: #7A3B00;
}

.cal-ag-x {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    min-width: 0;
}

.cal-ag-x small {
    flex-basis: 100%;
    font-size: 12px;
    color: #5B6F94;
    padding-left: 18px;
}

/* --- Havi rács --- */
.cal-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 14px;
    overflow: hidden;
}

.cal-mh {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #4A5D83;
    text-align: center;
    border-bottom: 1px solid #E6ECF7;
}

.cal-mc {
    min-height: 104px;
    padding: 4px;
    border-top: 1px solid #EEF2FA;
    border-left: 1px solid #EEF2FA;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cal-mc.other {
    background: #FAFBFE;
}

.cal-mc.other .cal-mc-d {
    color: #8A9BBD;
}

.cal-mc-d {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: #10203F;
    text-decoration: none;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
}

.cal-mc.today .cal-mc-d {
    background: #1F5BD8;
    color: #FFFFFF;
}

.cal-mc-more {
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 719px) {
    .cal-mc {
        min-height: 64px;
    }

    .cal-mc-e {
        font-size: 10px;
        padding: 2px 3px;
    }
}

/* --- Oldalsáv: hangüzenet, Google-fiók --- */
.cal-voice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.cal-quote {
    background: #F3F6FC;
    border-radius: 10px;
    padding: 8px 10px;
    font-style: italic;
}

.cal-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cal-pill {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
    background: #EEF2FA;
    color: #44557A;
}

.cal-pill.ok {
    background: #E3F6F3;
    color: #0F5F58;
}

.cal-cb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    font-size: 14px;
}

.cal-cb input {
    width: 18px;
    height: 18px;
    accent-color: #1F5BD8;
}

.cal-code {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    background: #F3F6FC;
    font-size: 12px;
    word-break: break-all;
    user-select: all;
}

/* Nyilvános adatvédelmi tájékoztató (/adatvedelem). */
.privacy {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 0 40px;
    color: #10203F;
    line-height: 1.65;
}

.privacy h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 8px 0 4px;
}

.privacy h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 6px;
}

.privacy-lead {
    color: #5B6F94;
    font-size: 14px;
}

/* Naptár: az esemény részletezője (kattintásra, az oldalon marad). */
.cal-detail h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cal-detail .sw {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--cal-c, #1F5BD8);
}

.cal-detail .sw.t {
    background: #E8913A;
}

.cal-detail .sw.b {
    background: #2A9D8F;
}

.cal-dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
    font-size: 14px;
}

.cal-dl dt {
    font-size: 12px;
    font-weight: 700;
    color: #4A5D83;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
}

.cal-dl dd {
    margin: 0;
    color: #10203F;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cal-desc {
    white-space: pre-wrap;
    line-height: 1.55;
}

@media (max-width: 479px) {
    .cal-dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .cal-dl dd {
        margin-bottom: 8px;
    }
}

/* Naptár: munkaidő-réteg (a munkakategória színével) és az új tétel választója. */
.cal .sw.w,
.cal-detail .sw.w,
.cal-choose .sw.w {
    background: var(--cal-c, #6E59C9);
}

.cal-ev.w,
.cal-ad.w,
.cal-mc-e.w {
    background: #EFEDFA;
    color: #2E2463;
    box-shadow: inset 3px 0 0 var(--cal-c, #6E59C9), 0 0 0 1px #FFFFFF;
}

.cal-choose .sw {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 3px;
}

.cal-choose .sw.g {
    background: #1F5BD8;
}

.cal-pick {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid #DCE6F8;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: left;
    font: inherit;
    color: #10203F;
    cursor: pointer;
}

.cal-pick:hover {
    border-color: #1F5BD8;
    background: #F7FAFF;
}

.cal-pick b {
    display: block;
    font-size: 15px;
}

.cal-pick small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #5B6F94;
    line-height: 1.45;
}

.cal-acc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1F5BD8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cal-acc-toggle:hover {
    color: #0B2E6F;
}

/* E-mailek › Fiókok (ma-): a postafiókok listája és a fiók lapja. */
.ma-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #EEF2FA;
}

.ma-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ma-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ma-row-text b {
    font-size: 15px;
    color: #10203F;
}

.ma-row-text small {
    font-size: 12px;
    color: #5B6F94;
    overflow-wrap: anywhere;
}

.ma-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.ma-muted {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5B6F94;
}

.ma-hint {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F3F6FC;
    font-size: 13px;
    line-height: 1.55;
    color: #2D3E62;
}

.ma-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    font-size: 14px;
}

/* Táblázat a jegyzetben (tananyag: a PPT/PDF táblázatai) */
.note-rich table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0 12px;
    font-size: 0.95em;
    display: block;
    overflow-x: auto;
}

.note-rich th {
    background: #0B2E6F;
    color: #FFFFFF;
    text-align: left;
    padding: 7px 9px;
    font-weight: 700;
}

.note-rich td {
    border: 1px solid #DCE6F8;
    padding: 7px 9px;
    vertical-align: top;
}

.note-rich tr:nth-child(even) td {
    background: #F6F9FF;
}

/* Tananyag-dobozok (Tananyag-feldolgozó): a szabály a kék főkártya, benne külön kártyán az esetek (zöld) és a példák
   (narancs). */
.note-rich .nb-rule,
.note-rich .nb-case,
.note-rich .nb-example {
    position: relative;
    margin: 10px 0;
    padding: 26px 14px 10px;
    border-radius: 12px;
}

.note-rich .nb-rule {
    background: #F2F7FF;
    border: 2px solid #1F5BD8;
}

.note-rich .nb-case {
    margin-left: 18px;
    background: #EAF8F0;
    border: 1px solid #A9DCC0;
    border-left: 6px solid #0F8A5F;
}

.note-rich .nb-example {
    margin-left: 18px;
    background: #FFF4E5;
    border: 1px solid #F0C99B;
    border-left: 6px solid #E08A1E;
}

.note-rich .nb-rule .nb-case,
.note-rich .nb-rule .nb-example {
    margin: 10px 0 0;
    box-shadow: 0 2px 8px rgba(11, 46, 111, 0.08);
}

.note-rich .nb-rule::before,
.note-rich .nb-case::before,
.note-rich .nb-example::before {
    position: absolute;
    left: 14px;
    top: 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.note-rich .nb-rule::before {
    content: "SZABÁLY";
    color: #1F4FB8;
}

.note-rich .nb-case::before {
    content: "ESET";
    color: #0B5B3F;
}

.note-rich .nb-example::before {
    content: "PÉLDA";
    color: #8A4A06;
}

.note-rich .nb-rule > h3,
.note-rich .nb-case > h3,
.note-rich .nb-example > h3 {
    margin-top: 0;
}

@media (max-width: 719.98px) {
    .note-rich .nb-case,
    .note-rich .nb-example {
        margin-left: 8px;
    }
}

/* Felolvasás (a böngésző hangja) */
.read-aloud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.read-aloud button {
    border: 0;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    background: #1F5BD8;
    color: #FFFFFF;
    cursor: pointer;
}

.read-aloud button.soft {
    background: #EEF3FC;
    color: #1F4FB8;
}

.read-aloud select {
    border: 1px solid #DCE6F8;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    color: #3E5A8C;
    background: #FFFFFF;
}

.read-aloud small {
    font-size: 11.5px;
    color: #5B6F94;
}

.note-rich .read-aloud-on {
    background: #FFF3B0;
    border-radius: 6px;
}

/* Botond Cashbook-jelentése a munkaterületen, és a Cashbook-kártya részei */
.tw-report {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #BFE5DF;
    border-radius: 12px;
    background: #F0F9F8;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.tw-report b {
    color: #0F766E;
}

.tw-report span {
    white-space: pre-wrap;
}

.tw-stat .warn b {
    color: #8A4A06;
}

.tw-miss-list summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
}

.sh-ok {
    color: #0B5B54;
    font-weight: 600;
}

.sh-warn {
    color: #8A4A06;
}

/* Az egységes feladatkártya: ugyanaz a felépítés, mint a havi könyvelés munkaterülete (TaskFull, DeskTaskPanel, TaskMatesBar). */
.tc {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    background: #EEF2F9;
    overflow: auto;
}

.tc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #0B2E6F;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 2;
}

.tc-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-title b {
    font-size: 1.0625rem;
}

.tc-title small {
    color: #B9CBF0;
    font-size: 0.75rem;
}

.tc-x {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.tc-x:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.tc-timer {
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 0.8125rem;
    background: #1F5BD8;
    color: #FFFFFF;
    cursor: pointer;
    white-space: nowrap;
}

.tc-timer.on {
    background: #0F766E;
}

.tc-mates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 20px;
    background: #F9FBFF;
    border-bottom: 1px solid #DCE6F8;
}

.tc-mates-l {
    font-size: 0.75rem;
    color: #5B6F94;
    margin-right: 2px;
}

.tc-mate {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    color: #3E5A8C;
    text-decoration: none;
    white-space: nowrap;
}

.tc-mate:hover {
    background: #EEF3FC;
}

.tc-mate.done {
    background: #E3F4EF;
    border-color: #BFE5DF;
    color: #0B5B54;
}

.tc-mate.on,
.tc-mate.on:hover {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.tc-grow {
    flex: 1;
}

.tc-next {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1F4FB8;
    background: #EEF3FC;
    border-radius: 9px;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.tc-stages {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    background: #FFFFFF;
    border-bottom: 1px solid #DCE6F8;
}

.tc-st {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid #EEF2F9;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #10203F;
}

.tc-st:hover {
    background: #F7F9FE;
}

.tc-st-n {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5B6F94;
}

.tc-st b {
    font-size: 0.875rem;
}

.tc-st.done b {
    color: #0F766E;
}

.tc-st.on {
    background: #EAF1FE;
}

.tc-st.on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #1F5BD8;
}

.tc-bar {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: #EEF2F9;
    overflow: hidden;
}

.tc-bar i {
    display: block;
    height: 100%;
    background: #1F5BD8;
}

.tc-st.done .tc-bar i {
    background: #0F766E;
}

.tc-main {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 16px;
    padding: 16px 20px 40px;
    align-items: start;
}

.tc-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.tc-card {
    background: #FFFFFF;
    border: 1px solid #DCE6F8;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tc-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-head h2 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    color: #0B2E6F;
}

.tc-lbl {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5B6F94;
}

.tc-muted {
    margin: 0;
    color: #5B6F94;
    font-size: 0.75rem;
    line-height: 1.5;
}

.tc-add {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tc-add .desk-input {
    flex: 1;
    min-width: 0;
}

.tc-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tc-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.tc-line span {
    flex: 1;
    min-width: 0;
}

.tc-line b {
    color: #0B2E6F;
}

.tc-loading {
    padding: 20px;
}

.tc-alert {
    margin: 12px 20px 0;
}

.tc-fill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.tc-fill h2 {
    margin: 0;
    font-size: 1rem;
}

.tc-fill p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .tc-main {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 16px 32px;
    }

    .tc-stages {
        grid-auto-columns: minmax(130px, 1fr);
        overflow-x: auto;
    }

    .tc-top {
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .tc-title {
        order: -1;
        flex-basis: 100%;
    }

    .tc-mates {
        padding: 8px 16px;
    }
}

/* Az Aznap-ügyfél számlái a Cashbookból (CashbookInvoiceDesk). */
.cbi-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cbi-head h2 {
    margin: 0;
    font-size: 1rem;
    color: #0B2E6F;
}

.cbi-filt {
    display: flex;
    gap: 4px;
}

.cbi-filt button {
    border: 1px solid #DCE6F8;
    border-radius: 999px;
    background: #FFFFFF;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3E5A8C;
    cursor: pointer;
}

.cbi-filt button.on {
    background: #1F5BD8;
    border-color: #1F5BD8;
    color: #FFFFFF;
}

.cbi-error {
    color: #A23B3B;
    font-size: 0.8125rem;
    font-weight: 600;
}

.cbi-desk {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cbi-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 78vh;
    overflow: auto;
    padding-right: 2px;
}

.cbi-inv {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    border: 1px solid #E3EAF7;
    border-radius: 10px;
    background: #FFFFFF;
    padding: 7px 9px;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: left;
    color: #3E5A8C;
    cursor: pointer;
}

.cbi-inv b {
    font-size: 0.8125rem;
    color: #0B2E6F;
    word-break: break-word;
}

.cbi-inv:hover {
    background: #F7F9FE;
}

.cbi-inv.on {
    border-color: #1F5BD8;
    box-shadow: 0 0 0 2px #CFE0FF;
}

.cbi-tags {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.cbi-tags i {
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: #EEF3FC;
    color: #1F4FB8;
}

.cbi-tags i.ok {
    background: #E3F4EF;
    color: #0B5B54;
}

.cbi-tags i.warn {
    background: #FDF0E1;
    color: #8A4A06;
}

.cbi-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cbi-title {
    display: flex;
    flex-direction: column;
}

.cbi-title b {
    font-size: 1rem;
    color: #0B2E6F;
}

.cbi-title span {
    font-size: 0.8125rem;
    color: #3E5A8C;
}

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

.cbi-meta div {
    display: flex;
    flex-direction: column;
    background: #F4F7FD;
    border-radius: 9px;
    padding: 6px 9px;
    min-width: 0;
}

.cbi-meta div.wide {
    grid-column: 1 / -1;
}

.cbi-meta span {
    font-size: 0.6875rem;
    color: #5B6F94;
}

.cbi-meta b {
    font-size: 0.8125rem;
    color: #0B2E6F;
    overflow-wrap: anywhere;
}

.cbi-scroll {
    overflow-x: auto;
}

.cbi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.cbi-table th {
    text-align: left;
    font-size: 0.6875rem;
    color: #5B6F94;
    padding: 4px 6px;
    border-bottom: 1px solid #DCE6F8;
}

.cbi-table td {
    padding: 5px 6px;
    border-bottom: 1px solid #EEF2F9;
    vertical-align: top;
}

.cbi-table .r {
    text-align: right;
    white-space: nowrap;
}

.cbi-btns {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.cbi-xml summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1F4FB8;
}

.cbi-xml pre {
    max-height: 340px;
    overflow: auto;
    margin: 6px 0 0;
    padding: 8px;
    border-radius: 8px;
    background: #F4F7FD;
    font-size: 0.6875rem;
}

.cbi-image {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    position: sticky;
    top: 8px;
}

.cbi-imagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8125rem;
    color: #0B2E6F;
}

.cbi-image iframe {
    width: 100%;
    height: 78vh;
    border: 1px solid #DCE6F8;
    border-radius: 10px;
    background: #FFFFFF;
}

@media (max-width: 1300px) {
    .cbi-desk {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .cbi-image {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 760px) {
    .cbi-desk {
        grid-template-columns: minmax(0, 1fr);
    }

    .cbi-list {
        max-height: 260px;
    }
}

/* A hónap számláinak letöltése a kontírozás előtt (CashbookLoadScreen). */
.cbl {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 32px;
    border-radius: 16px;
    background: #0B2E6F;
    color: #FFFFFF;
}

.cbl h3 {
    margin: 0;
    font-size: 1.375rem;
    color: #FFFFFF;
}

.cbl small {
    color: #B9CBF0;
    font-size: 0.8125rem;
}

.cbl-prog {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.875rem;
}

.cbl-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cbl-track {
    height: 10px;
    border-radius: 6px;
    background: #274C93;
    overflow: hidden;
}

.cbl-track i {
    display: block;
    height: 100%;
    background: #5FD0B5;
    transition: width 0.4s;
}

.cbl-log {
    padding: 8px 11px;
    border-radius: 10px;
    background: #072355;
    color: #B9CBF0;
    font-size: 0.75rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.cbl-log b {
    color: #FFFFFF;
    font-weight: 600;
}

.cbl-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cbl-btn {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 8px 14px;
    background: #1F5BD8;
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cbl-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.cbl-btn.ghost {
    background: transparent;
    border-color: #6F8FCB;
}

.cbl-btn:hover {
    color: #FFFFFF;
}

.cbl-error {
    margin: 0;
    color: #FFC9C9;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Az önellenőrzési jegyzőkönyv nyomtatva (SelfCheckPrint): képernyőn nem látszik, nyomtatáskor csak ez. */
.sc-print {
    display: none;
}

@media print {
    body:has(.sc-print) * {
        visibility: hidden;
    }

    body:has(.sc-print) .ye {
        position: static !important;
        overflow: visible !important;
    }

    body .sc-print,
    body .sc-print * {
        visibility: visible;
    }

    body .sc-print {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        color: #000000;
        font-size: 10pt;
    }

    .sc-print h1 {
        margin: 0;
        font-size: 16pt;
        text-align: center;
    }

    .sc-print h2 {
        margin: 12pt 0 3pt;
        font-size: 11pt;
    }

    .sc-print h3 {
        margin: 6pt 0 2pt;
        font-size: 10pt;
    }

    .sc-print p {
        margin: 0 0 4pt;
    }

    .sc-print-sub {
        text-align: center;
    }

    .sc-print table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
        page-break-inside: avoid;
    }

    .sc-print th,
    .sc-print td {
        padding: 2pt 4pt;
        border: 1px solid #666666;
        text-align: left;
    }

    .sc-print .r {
        text-align: right;
    }

    .sc-print .tot td {
        font-weight: 700;
    }

    .sc-print-sign {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-top: 36pt;
        page-break-inside: avoid;
    }

    .sc-print-sign div {
        width: 200pt;
        padding-top: 3pt;
        border-top: 1px solid #000000;
        text-align: center;
    }
}

/* A postafiók aláírása */
.ma-signature {
    min-height: 240px;
}

.ma-signature-offer {
    align-self: flex-start;
    margin-top: 6px;
}
