@import url("nc-input-placeholders.css?v=20261004-1");

:root {
    --nc-green: #295157;
    --nc-green-2: #466265;
    --nc-bg: #F5F5F7;
    --nc-card: #FFFFFF;
    --nc-surface: #FBFBFD;
    --nc-text: #1D1D1F;
    --nc-muted: #6E6E73;
    --nc-faint: #8E8E93;
    --nc-gold: #C6A35B;
    --nc-border: rgba(41, 81, 87, .12);
    --nc-shadow: 0 18px 45px rgba(29, 29, 31, .07);
    --nc-shadow-soft: 0 8px 24px rgba(29, 29, 31, .055);
    --nc-tabbar-height: 48px;
    --nc-tabbar-pad-x: 16px;
    --nc-tabbar-font-size: 13px;
    --nc-tabbar-weight: 600;
    --nc-tabbar-active-weight: 650;
    --nc-tabbar-border: 2px;
    --nc-tabbar-total-height: calc(var(--nc-tabbar-height) + var(--nc-tabbar-border));
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Sötét téma alapszínei (2026-10-22): a --nc-* tokenekre épülő elemek (címek, kártyák,
   keretek, halvány szövegek) sötét témában is olvashatók. Kiegészítés: nc-dark-theme.css. */
.dark {
    --nc-bg: #101112;
    --nc-card: rgb(24 24 27);
    --nc-surface: rgb(39 39 42);
    --nc-text: #f4f4f5;
    --nc-muted: #a1a1aa;
    --nc-faint: #8b8b93;
    --nc-border: rgba(255, 255, 255, .1);
    --nc-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    --nc-shadow-soft: 0 8px 24px rgba(0, 0, 0, .3);
}

html,
body,
.fi-body {
    font-family: var(--font-sans);
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body,
.fi-body,
.fi-main {
    background:
        radial-gradient(circle at 34% 0%, rgba(198, 163, 91, .09), transparent 25rem),
        linear-gradient(180deg, #fff 0%, var(--nc-bg) 42%, var(--nc-bg) 100%) !important;
    color: var(--nc-text);
}

.fi-main,
.fi-page,
.fi-page-content,
.fi-layout,
.fi-main-ctn {
    max-width: 100% !important;
    min-width: 0 !important;
}

.fi-page-content,
.fi-ta-content,
.fi-ta-table,
.fi-section-content,
.bd-table-wrap,
.or-table-wrap,
.nc-table-wrap,
.crm-kanban,
.module-subnav {
    max-width: 100% !important;
}

.fi-ta-content,
.bd-table-wrap,
.or-table-wrap,
.nc-table-wrap,
.crm-kanban,
.module-subnav:not(.module-subnav--with-menus) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.fi-ta-table table,
.nc-table,
.bd-table,
.or-table,
.crm-table {
    width: 100%;
    min-width: 780px;
}

.dark body,
.dark .fi-body,
.dark .fi-main {
    background:
        radial-gradient(circle at top left, rgba(198, 163, 91, .08), transparent 26rem),
        linear-gradient(180deg, #171717 0%, #101112 100%) !important;
}

.fi-sidebar {
    background: rgba(255, 255, 255, .84) !important;
    border-right: 1px solid var(--nc-border) !important;
    box-shadow: 18px 0 50px rgba(29, 29, 31, .045);
    backdrop-filter: blur(22px);
}

.dark .fi-sidebar {
    background: rgba(22, 24, 25, .9) !important;
    border-right-color: rgba(255, 255, 255, .08) !important;
}

.fi-logo,
.fi-sidebar-header {
    color: var(--nc-text) !important;
    font-weight: 850 !important;
    letter-spacing: -.02em;
}

.dark .fi-logo,
.dark .fi-sidebar-header {
    color: #F5F5F7 !important;
}

.fi-sidebar-group-label {
    color: var(--nc-faint) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

/* Egyetlen, modul-alapú oldalsáv: nincs külön csoport-szekció fejléc. */
.fi-sidebar-group-label,
.fi-sidebar-group-collapse-button {
    display: none !important;
}

.fi-sidebar-group {
    gap: 2px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.fi-sidebar-group + .fi-sidebar-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

.fi-sidebar-item a {
    border-radius: 16px !important;
    min-height: 42px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.fi-sidebar-item a:hover {
    background: rgba(41, 81, 87, .075) !important;
    color: var(--nc-green) !important;
}

.fi-sidebar-item-active a,
.fi-sidebar-item.fi-active a {
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2)) !important;
    color: white !important;
    box-shadow: 0 10px 24px rgba(41, 81, 87, .22);
}

.fi-sidebar-item-active a *,
.fi-sidebar-item.fi-active a *,
.fi-sidebar-item-active svg,
.fi-sidebar-item.fi-active svg {
    color: #fff !important;
    stroke: currentColor !important;
}

.fi-sidebar-item-active a .fi-sidebar-item-badge,
.fi-sidebar-item.fi-active a .fi-sidebar-item-badge,
.fi-sidebar-item-active a .fi-badge,
.fi-sidebar-item.fi-active a .fi-badge,
.fi-sidebar-item-active a .fi-sidebar-item-badge *,
.fi-sidebar-item.fi-active a .fi-sidebar-item-badge *,
.fi-sidebar-item-active a .fi-badge *,
.fi-sidebar-item.fi-active a .fi-badge * {
    color: #295157 !important;
    stroke: currentColor !important;
}

.fi-topbar,
.fi-header {
    background: rgba(255, 255, 255, .72) !important;
    border-color: rgba(41, 81, 87, .08) !important;
    backdrop-filter: blur(18px);
}

.dark .fi-topbar,
.dark .fi-header {
    background: rgba(18, 18, 20, .72) !important;
    border-color: rgba(255, 255, 255, .08) !important;
}

.fi-header-heading {
    color: var(--nc-text) !important;
    font-size: clamp(20px, 1.9vw, 26px) !important;
    font-weight: 650 !important;
    letter-spacing: -.015em !important;
    line-height: 1.2;
}

.dark .fi-header-heading {
    color: #F5F5F7 !important;
}

.fi-header-subheading {
    margin-top: 6px !important;
    max-width: 760px;
    color: var(--nc-muted) !important;
    font-size: 14px !important;
    font-weight: 450 !important;
    line-height: 1.5;
}

.dark .fi-header-subheading {
    color: #a8a8b3 !important;
}

.nc-ui-unified-head .fi-header {
    gap: 14px;
    padding: 2px 0 0;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none;
}

@media (min-width: 640px) {
    .nc-ui-unified-head .fi-header {
        align-items: flex-end;
    }
}

.fi-section,
.fi-ta,
.fi-fo-section,
.fi-wi-stats-overview-stat,
.fi-modal-window,
.fi-dropdown-panel,
.nc-card,
.bd-card,
.or-card,
.crm-card,
.crm-col {
    border: 1px solid var(--nc-border) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255) !important;
    box-shadow: var(--nc-shadow-soft) !important;
}

.dark .fi-section,
.dark .fi-ta,
.dark .fi-fo-section,
.dark .fi-wi-stats-overview-stat,
.dark .fi-modal-window,
.dark .fi-dropdown-panel,
.dark .nc-card,
.dark .bd-card,
.dark .or-card,
.dark .crm-card,
.dark .crm-col {
    background: rgba(28, 28, 30, .86) !important;
    border-color: rgba(255, 255, 255, .09) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22) !important;
}

.fi-section-header,
.fi-ta-header,
.fi-fo-section-header {
    background: transparent !important;
}

/* Filament ikonos űrlapfülek – egységes megjelenés */
.fi-sc-tabs,
.fi-fo-tabs {
    gap: 0.35rem;
}

.fi-sc-tabs-tab,
.fi-tabs-item,
.fi-fo-tabs-tab {
    gap: 0.45rem;
    font-weight: 650;
    letter-spacing: -.01em;
}

.fi-sc-tabs-tab.fi-active,
.fi-tabs-item.fi-active,
.fi-fo-tabs-tab.fi-active,
.fi-sc-tabs-tab[aria-selected="true"],
.fi-fo-tabs-tab[aria-selected="true"] {
    color: #295157 !important;
}

.fi-sc-tabs-tab.fi-active .fi-icon,
.fi-tabs-item.fi-active .fi-icon,
.fi-fo-tabs-tab.fi-active .fi-icon,
.fi-sc-tabs-tab[aria-selected="true"] .fi-icon,
.fi-fo-tabs-tab[aria-selected="true"] .fi-icon {
    color: #295157 !important;
}

.nc-tabbar-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: currentColor;
    opacity: .88;
}

.nc-tabbar > a.is-active .nc-tabbar-icon,
.nc-tabbar > button.is-active .nc-tabbar-icon,
.nc-tabbar-item.is-active .nc-tabbar-icon {
    color: #295157;
    opacity: 1;
}

.dark .nc-tabbar > a.is-active .nc-tabbar-icon,
.dark .nc-tabbar > button.is-active .nc-tabbar-icon,
.dark .nc-tabbar-item.is-active .nc-tabbar-icon {
    color: #9fd0d1;
}

.fi-ta-table,
.bd-table,
.or-table,
.nc-table,
.crm-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.fi-ta-row {
    transition: background .16s ease;
}

.fi-ta-row:hover {
    background: rgba(41, 81, 87, .045) !important;
}

.fi-ta-cell,
.fi-ta-header-cell,
.bd-table td,
.or-table td,
.nc-table td,
.crm-table td {
    border-color: rgba(41, 81, 87, .08) !important;
}

.fi-ta .fi-ta-header-cell .fi-ta-header-cell-label {
    font-size: 12px !important;
    font-weight: 850 !important;
    color: var(--nc-muted) !important;
}

.fi-ta .fi-ta-cell {
    font-size: 13px;
}

.bd-table th,
.or-table th,
.nc-table th,
.crm-table th {
    color: var(--nc-muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: none;
}

.fi-badge,
.bd-pill,
.or-badge {
    border-radius: 999px !important;
    font-weight: 780 !important;
    letter-spacing: 0 !important;
}

.fi-btn,
.bd-button,
.or-button,
.crm-btn,
.nc-action {
    border-radius: 14px !important;
    font-weight: 780 !important;
    box-shadow: none !important;
}

.fi-btn-color-primary,
.bd-button:not(.secondary):not(.danger):not(.nc-action-secondary):not(.nc-action-destructive),
.or-button:not(.secondary):not(.danger):not(.nc-action-secondary):not(.nc-action-destructive) {
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2)) !important;
    color: #fff !important;
}

.fi-btn-color-primary *,
.bd-button:not(.secondary):not(.danger):not(.nc-action-secondary):not(.nc-action-destructive) *,
.or-button:not(.secondary):not(.danger):not(.nc-action-secondary):not(.nc-action-destructive) * {
    color: #fff !important;
}

.fi-btn-color-primary:hover,
.bd-button:not(.secondary):not(.danger):not(.nc-action-secondary):not(.nc-action-destructive):hover,
.or-button:not(.secondary):not(.danger):not(.nc-action-secondary):not(.nc-action-destructive):hover {
    filter: brightness(1.04);
}

.ada-widget-action.nc-action {
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2)) !important;
    color: #fff !important;
}

.ada-widget-action.nc-action *,
.ada-widget-action.nc-action svg {
    color: #fff !important;
}

.fi-page > .nc-back-navigation {
    padding-top: 32px;
}

.fi-page > .nc-back-navigation + .fi-page-header-main-ctn {
    padding-top: 12px;
}

.nc-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid rgba(41, 81, 87, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(29, 29, 31, .045);
}

.fi-header .nc-back-button {
    margin: 0 0 10px;
}

.nc-page-head > .nc-back-button,
.nc-page-head-record > .nc-back-button {
    margin: 0 0 12px;
}

.nc-back-button:hover {
    background: rgba(41, 81, 87, .08);
    color: var(--nc-green);
}

.dark .nc-back-button {
    border-color: rgba(255, 255, 255, .11);
    background: rgba(28, 28, 30, .78);
    color: #D7E3E4;
}

.fi-input,
.fi-select-input,
.fi-textarea,
.nc-input,
.nc-select,
.nc-textarea,
.bd-field input,
.bd-field select,
.or-field input,
.or-field select {
    border-radius: 14px !important;
    border-color: rgba(41, 81, 87, .16) !important;
    background: rgba(251, 251, 253, .95) !important;
}

.dark .fi-input,
.dark .fi-select-input,
.dark .fi-textarea,
.dark .nc-input,
.dark .nc-select,
.dark .nc-textarea,
.dark .bd-field input,
.dark .bd-field select,
.dark .or-field input,
.dark .or-field select {
    background: rgba(39, 39, 42, .88) !important;
    border-color: rgba(255, 255, 255, .11) !important;
    color: #f4f4f5 !important;
}

.nc-kpi,
.fi-wi-stats-overview-stat {
    border-left: 0 !important;
    min-height: 112px;
}

.nc-kpi strong,
.crm-card b {
    letter-spacing: -.025em;
}

.bd-thumb,
.or-thumb,
.product-thumb {
    border-radius: 14px !important;
}

.nc-quickbar,
.bd-actions,
.or-actions {
    border-radius: 20px !important;
    border-color: var(--nc-border) !important;
    box-shadow: var(--nc-shadow) !important;
}

.nc-quickbar {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
}

.nc-quickbar .nc-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 40px;
    min-width: 0;
    padding: 6px 12px 6px 6px;
    border-radius: 12px !important;
    border: 1px solid rgba(41, 81, 87, .14) !important;
    background: #fff !important;
    color: rgb(30 41 59) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.nc-quickbar .nc-quick-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(41, 81, 87, .1);
    color: var(--nc-green) !important;
}

.nc-quickbar .nc-quick-action__icon svg,
.nc-quickbar .nc-quick-action__label {
    color: inherit !important;
}

.nc-quickbar .nc-quick-action__icon svg {
    width: 16px;
    height: 16px;
}

.nc-quickbar .nc-quick-action:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28) !important;
    background: rgba(41, 81, 87, .04) !important;
    color: var(--nc-green) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08) !important;
}

.nc-quickbar .nc-quick-action:hover .nc-quick-action__icon {
    background: var(--nc-green) !important;
    color: #fff !important;
}

.dark .nc-quickbar .nc-quick-action {
    border-color: rgba(255, 255, 255, .1) !important;
    background: rgb(39 39 42) !important;
    color: rgb(244 244 245) !important;
}

.dark .nc-quickbar .nc-quick-action__icon {
    background: rgba(255, 255, 255, .08);
    color: #d7e3e4 !important;
}

.dark .nc-quickbar .nc-quick-action:hover {
    background: rgb(30 30 33) !important;
    color: #fff !important;
}

.dark .nc-quickbar .nc-quick-action:hover .nc-quick-action__icon {
    background: var(--nc-green-2) !important;
    color: #fff !important;
}

.nc-quickbar .nc-action {
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(41, 81, 87, .12) !important;
    background: rgba(41, 81, 87, .08) !important;
    color: var(--nc-green) !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.nc-quickbar .nc-action,
.nc-quickbar .nc-action *,
.nc-quickbar .nc-action svg {
    color: var(--nc-green) !important;
}

.nc-quickbar .nc-action:hover {
    background: var(--nc-green) !important;
    color: #fff !important;
}

.nc-quickbar .nc-action:hover,
.nc-quickbar .nc-action:hover *,
.nc-quickbar .nc-action:hover svg {
    color: #fff !important;
}

.dark .nc-quickbar .nc-action {
    border-color: rgba(255, 255, 255, .1) !important;
    background: rgba(255, 255, 255, .06) !important;
    color: #D7E3E4 !important;
}

.dark .nc-quickbar .nc-action:hover {
    background: var(--nc-green-2) !important;
    color: #fff !important;
}

.nc-sidebar-user {
    position: relative;
    padding: 12px 16px 16px;
}

.nc-sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 10px 28px rgba(29, 29, 31, .06);
    backdrop-filter: blur(14px);
}

.nc-sidebar-user-trigger {
    cursor: pointer;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.nc-sidebar-user-trigger:hover,
.nc-sidebar-user-trigger[aria-expanded="true"] {
    border-color: rgba(40, 93, 92, .28);
    box-shadow: 0 12px 30px rgba(40, 93, 92, .1);
}

.nc-sidebar-user-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--nc-muted);
    transition: transform .16s ease;
}

.nc-sidebar-user-chevron.is-open {
    transform: rotate(180deg);
}

.nc-sidebar-user-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(100% - 4px);
    z-index: 50;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 40px rgba(29, 29, 31, .14);
    backdrop-filter: blur(18px);
}

.dark .nc-sidebar-user-menu {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(28, 28, 30, .96);
}

.nc-sidebar-user-menu-section {
    display: grid;
    gap: 4px;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(41, 81, 87, .1);
}

.dark .nc-sidebar-user-menu-section {
    border-bottom-color: rgba(255, 255, 255, .08);
}

.nc-sidebar-user-menu-label {
    padding: 4px 10px 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nc-muted);
}

.nc-sidebar-user-menu-hint {
    padding: 4px 10px 8px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--nc-muted);
}

.nc-sidebar-user-menu-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--nc-text);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease;
}

.nc-sidebar-user-menu-item:hover,
.nc-sidebar-user-menu-item.is-active-mode {
    background: rgba(40, 93, 92, .08);
    color: var(--nc-green);
}

.nc-sidebar-user-menu-item.danger {
    color: #b42318;
}

.nc-sidebar-user-menu-item.danger:hover {
    background: rgba(180, 35, 24, .08);
    color: #b42318;
}

.dark .nc-sidebar-user-menu-item {
    color: #F5F5F7;
}

.dark .nc-sidebar-user-card {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(28, 28, 30, .7);
}

.nc-sidebar-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2));
    color: white;
    font-size: 12px;
    font-weight: 850;
}

.nc-sidebar-user-meta {
    min-width: 0;
    flex: 1;
}

.nc-sidebar-user-name,
.nc-sidebar-user-role {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nc-sidebar-user-name {
    color: var(--nc-text);
    font-size: 13px;
    font-weight: 850;
}

.dark .nc-sidebar-user-name {
    color: #F5F5F7;
}

.nc-sidebar-user-role {
    color: var(--nc-muted);
    font-size: 12px;
}

.nc-sidebar-logout-form {
    margin-top: 8px;
}

.nc-sidebar-logout {
    width: 100%;
    height: 36px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .54);
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 780;
}

.dark .nc-sidebar-logout {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(39, 39, 42, .6);
    color: #D7E3E4;
}

.nc-sidebar-module-order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: var(--nc-green);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.nc-sidebar-module-order-icon svg {
    width: 16px;
    height: 16px;
}

.nc-sidebar-module-order-icon:hover {
    background: rgba(41, 81, 87, .06);
    border-color: rgba(41, 81, 87, .22);
    transform: translateY(-1px);
}

.dark .nc-sidebar-module-order-icon {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(39, 39, 42, .72);
    color: #D7E3E4;
}

.nc-workbench {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Modul listák: ugyanaz a fejléc + munkafelület mint a workbench oldalakon */
.fi-page:has(.nc-list-workbench) .fi-header {
    display: none !important;
}

.fi-resource-list-records-page .fi-page-content:has(.nc-list-workbench) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow-x: clip !important;
    max-width: 100%;
}

.fi-page-content:has(.nc-list-workbench) .fi-sc,
.fi-page-content:has(.nc-list-workbench) .fi-grid-col,
.fi-page-content:has(.nc-list-workbench) .fi-sc-component {
    min-width: 0;
    max-width: 100%;
}

.nc-list-workbench .nc-workbench-panel {
    margin: 0;
    max-width: 100%;
    overflow: visible;
}

.nc-list-workbench .module-subnav-wrap {
    margin: 0;
}

.nc-list-workbench .module-subnav-wrap.nc-tab-shell {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    background: transparent;
}

.nc-list-workbench .module-subnav-wrap.nc-tab-shell .nc-tabbar-row {
    border-radius: 0;
}

.nc-list-workbench .nc-workbench-surface {
    padding-top: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.nc-list-workbench .nc-workbench-surface > * {
    min-width: 0;
    max-width: 100%;
}

.nc-list-workbench .nc-workbench-surface > * + * {
    border-top: 1px solid rgba(41, 81, 87, .08);
    margin-top: 0;
    padding-top: 14px;
}

.dark .nc-list-workbench .nc-workbench-surface > * + * {
    border-top-color: rgba(255, 255, 255, .08);
}

.nc-list-workbench .fi-ta,
.nc-list-workbench .fi-ta .fi-ta-ctn {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.nc-list-workbench .fi-ta .fi-ta-filters-above-content-ctn {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.nc-list-workbench .ol-workbench {
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
}

.nc-list-workbench .ol-finance-grid,
.nc-list-workbench .ol-pipeline-card {
    min-width: 0;
    max-width: 100%;
}

.nc-list-workbench .ol-pipeline-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nc-list-workbench .ol-pipeline-stage.has-data {
    min-width: 0;
    max-width: none;
}

.nc-list-workbench .ol-pipeline-stage.is-empty {
    flex: 0 0 140px;
}

.nc-list-workbench .ol-pipeline-stage-bar {
    display: none !important;
}

.nc-list-workbench .fi-ta,
.nc-list-workbench .fi-ta .fi-ta-ctn,
.nc-list-workbench .fi-ta .fi-ta-main {
    min-width: 0;
    max-width: 100%;
}

.nc-list-workbench .fi-ta-content,
.nc-list-workbench .fi-ta-table {
    overflow-x: auto !important;
    max-width: 100%;
}

.nc-list-workbench .fi-ta-table table {
    width: 100%;
    min-width: 720px;
}

/* Import szállítmány lista: táblaarányok, cellák, mobil kártya — toolbar a közös prémium CSS-ből */
/* Filament 5: a table elem maga a .fi-ta-table (nincs belső nested table). */
.nc-list-workbench .isl-import-shipments-table .fi-ta-content-ctn {
    overflow-x: auto;
    max-width: 100%;
}

.nc-list-workbench .isl-import-shipments-table table.fi-ta-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
}

/* Rendelések lista: kompakt profilok, full-width detail, sticky order (full) */
.nc-orders-view-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0 0 0.85rem;
    padding: 0.15rem 0;
}

.nc-orders-view-toolbar__label {
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.nc-orders-view-segments {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    background: rgb(248 250 252);
}

.nc-orders-view-segments__item {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgb(71 85 105);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.2;
    padding: 0.45rem 0.7rem;
    border-radius: 0.55rem;
    cursor: pointer;
    min-height: 2.25rem;
}

.nc-orders-view-segments__item:hover {
    background: rgb(241 245 249);
    color: rgb(15 23 42);
}

.nc-orders-view-segments__item.is-active,
.nc-orders-view-segments__item[aria-selected="true"] {
    background: #fff;
    color: rgb(41 81 87);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.nc-orders-view-segments__item:focus-visible {
    outline: 2px solid rgb(41 81 87);
    outline-offset: 1px;
}

.nc-orders-view-toolbar__mobile-select {
    display: none;
    min-height: 2.5rem;
    min-width: 11.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.65rem;
    background: #fff;
    color: rgb(15 23 42);
    font-size: 0.875rem;
    font-weight: 650;
}

.nc-list-workbench .nc-orders-table .fi-ta-content-ctn,
.nc-list-workbench .nc-orders-table .fi-ta-content {
    max-width: 100%;
    position: relative;
}

.nc-list-workbench .nc-orders-view-daily .fi-ta-content-ctn,
.nc-list-workbench .nc-orders-view-finance .fi-ta-content-ctn,
.nc-list-workbench .nc-orders-view-procurement .fi-ta-content-ctn,
.nc-list-workbench .nc-orders-view-daily .fi-ta-content,
.nc-list-workbench .nc-orders-view-finance .fi-ta-content,
.nc-list-workbench .nc-orders-view-procurement .fi-ta-content {
    overflow-x: hidden;
}

.nc-list-workbench .nc-orders-view-full .fi-ta-content-ctn,
.nc-list-workbench .nc-orders-view-full .fi-ta-content {
    overflow-x: auto;
}

.nc-list-workbench .nc-orders-view-daily table.fi-ta-table,
.nc-list-workbench .nc-orders-view-finance table.fi-ta-table,
.nc-list-workbench .nc-orders-view-procurement table.fi-ta-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: auto;
}

.nc-list-workbench .nc-orders-view-full table.fi-ta-table {
    min-width: 1100px;
    width: max-content;
}

.nc-list-workbench .nc-orders-view-full .fi-ta-content-ctn::after {
    content: "További oszlopok jobbra";
    position: sticky;
    left: 100%;
    float: right;
    margin-top: -1.6rem;
    margin-right: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgb(248 250 252);
    border: 1px solid rgb(226 232 240);
    color: rgb(100 116 139);
    font-size: 0.68rem;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.nc-list-workbench .nc-orders-table .fi-ta-header-row > th,
.nc-list-workbench .nc-orders-table .fi-ta-row > td {
    background-color: #fff;
}

.dark .nc-list-workbench .nc-orders-table .fi-ta-header-row > th,
.dark .nc-list-workbench .nc-orders-table .fi-ta-row > td {
    background-color: rgb(24 24 27);
}

.nc-list-workbench .nc-orders-table .fi-ta-row:nth-child(even) > td {
    background-color: rgb(248 250 252);
}

.dark .nc-list-workbench .nc-orders-table .fi-ta-row:nth-child(even) > td {
    background-color: rgb(28 28 31);
}

.nc-list-workbench .nc-orders-table .fi-ta-row:hover > td,
.nc-list-workbench .nc-orders-table .fi-ta-row.fi-selected > td {
    background-color: rgb(248 250 252) !important;
}

.nc-list-workbench .nc-orders-table .fi-ta-row.nc-orders-row-expanded > td {
    background-color: rgb(252 252 253) !important;
    box-shadow: inset 0 -1px 0 rgb(226 232 240);
}

.dark .nc-list-workbench .nc-orders-table .fi-ta-row:hover > td,
.dark .nc-list-workbench .nc-orders-table .fi-ta-row.fi-selected > td,
.dark .nc-list-workbench .nc-orders-table .fi-ta-row.nc-orders-row-expanded > td {
    background-color: rgb(39 39 42) !important;
}

.nc-list-workbench .nc-orders-table .fi-ta-header-row > th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 3;
}

.nc-list-workbench .nc-orders-table .fi-ta-selection-cell,
.nc-list-workbench .nc-orders-table th.fi-ta-selection-cell {
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.75rem;
    padding-inline: 0.35rem !important;
}

.nc-list-workbench .nc-orders-table .fi-ta-actions-header-cell,
.nc-list-workbench .nc-orders-table tbody td.fi-ta-cell:has(> .fi-ta-actions) {
    width: 3.25rem;
    min-width: 3rem;
    max-width: 3.5rem;
    padding: 0.35rem 0.25rem !important;
    white-space: nowrap;
    vertical-align: middle;
}

.nc-list-workbench .nc-orders-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ta-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nc-list-workbench .nc-orders-table .nc-orders-actions-more {
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.nc-orders-col-identity {
    min-width: 12rem;
    max-width: 18rem;
    vertical-align: middle;
}

.nc-list-workbench .nc-orders-view-full .nc-orders-sticky-order {
    position: -webkit-sticky;
    position: sticky;
    left: 2.5rem;
    z-index: 4;
    background-color: #fff;
    box-shadow: 4px 0 10px -8px rgb(15 23 42 / 0.28);
}

.dark .nc-list-workbench .nc-orders-view-full .nc-orders-sticky-order {
    background-color: rgb(24 24 27);
}

.nc-list-workbench .nc-orders-view-full .fi-ta-row:nth-child(even) > .nc-orders-sticky-order {
    background-color: rgb(248 250 252);
}

.nc-list-workbench .nc-orders-view-full .fi-ta-row:hover > .nc-orders-sticky-order,
.nc-list-workbench .nc-orders-view-full .fi-ta-row.fi-selected > .nc-orders-sticky-order,
.nc-list-workbench .nc-orders-view-full .fi-ta-row.nc-orders-row-expanded > .nc-orders-sticky-order {
    background-color: rgb(252 252 253) !important;
}

.nc-orders-identity {
    display: grid;
    min-width: 0;
}

.nc-orders-identity__main {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
}

.nc-orders-identity__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    margin: -0.2rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.45rem;
    background: #fff;
    color: rgb(41 81 87);
    cursor: pointer;
    flex: 0 0 auto;
}

.nc-orders-identity__toggle:hover,
.nc-orders-identity__toggle[aria-expanded="true"] {
    background: rgb(248 250 252);
    border-color: rgb(41 81 87 / 0.3);
}

.nc-orders-identity__toggle:focus-visible {
    outline: 2px solid rgb(41 81 87);
    outline-offset: 2px;
}

.nc-orders-identity__icon {
    width: 0.9rem;
    height: 0.9rem;
}

.nc-orders-identity__text {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.nc-orders-identity__number {
    font-size: 0.9rem;
    font-weight: 750;
    color: rgb(41 81 87);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration: none;
}

.nc-orders-identity__number:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nc-orders-identity__number:focus-visible {
    outline: 2px solid rgb(41 81 87);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.nc-orders-identity__customer {
    font-size: 0.78rem;
    font-weight: 550;
    color: rgb(100 116 139);
    line-height: 1.3;
    overflow-wrap: anywhere;
    /* 2026-10-30: a Filament táblázat sorai „nowrap”-ok, így a hosszú vevőnév a szomszéd oszlopokra lógott
       (DUNA CENTER THERM …). Legfeljebb két sor, utána „…”; a teljes név a címkében (title) olvasható. */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nc-orders-identity__text {
    white-space: normal;
}

.nc-orders-identity__number {
    white-space: nowrap;
}

.nc-orders-col-gross,
.nc-orders-col-status,
.nc-orders-col-deadline {
    white-space: nowrap;
}

.nc-orders-col-next-action,
.nc-orders-col-financial-next {
    max-width: 12rem;
}

.nc-orders-col-documents {
    min-width: 9rem;
    max-width: 13rem;
    white-space: pre-line;
    font-size: 0.78rem;
    line-height: 1.35;
}

.nc-orders-status-primary .fi-badge {
    font-weight: 750;
}

.nc-orders-status-secondary .fi-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    font-weight: 600;
    opacity: 0.92;
}

.nc-orders-detail-bridge-header,
.nc-orders-detail-bridge-cell {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
}

.nc-orders-detail-phantom {
    display: none !important;
}

.nc-orders-detail-row > .nc-orders-detail-cell {
    padding: 0 !important;
    background: rgb(252 252 253) !important;
    border-top: 1px solid rgb(226 232 240);
    border-bottom: 1px solid rgb(226 232 240);
    vertical-align: top;
}

.nc-orders-detail {
    width: min(100%, 72rem);
    max-width: 100%;
    margin: 0;
    padding: 0.85rem 1rem 0.95rem;
    box-sizing: border-box;
    border-left: 3px solid rgb(41 81 87);
    background: #fff;
}

.nc-orders-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.nc-orders-detail__section {
    min-width: 0;
}

.nc-orders-detail__heading {
    margin: 0 0 0.45rem;
    color: rgb(100 116 139);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nc-orders-detail__heading--spaced {
    margin-top: 0.85rem;
}

.nc-orders-detail__list {
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.nc-orders-detail__row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    align-items: baseline;
}

.nc-orders-detail__row dt {
    margin: 0;
    color: rgb(100 116 139);
    font-size: 0.78rem;
    font-weight: 650;
}

.nc-orders-detail__row dd {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

.nc-orders-detail__next {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.35;
}

.nc-orders-detail__meta {
    display: block;
    margin-top: 0.15rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 550;
}

.nc-orders-detail__empty {
    margin: 0;
    color: rgb(100 116 139);
    font-size: 0.8rem;
}

.nc-orders-detail__docs {
    margin: 0;
    padding-left: 1.05rem;
    color: rgb(51 65 85);
    font-size: 0.8rem;
    display: grid;
    gap: 0.2rem;
}

@media (max-width: 1100px) {
    .nc-orders-detail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nc-orders-detail__grid {
        grid-template-columns: 1fr;
    }

    .nc-orders-view-segments {
        display: none;
    }

    .nc-orders-view-toolbar__mobile-select {
        display: inline-block;
    }

    .nc-list-workbench .nc-orders-view-full .fi-ta-content-ctn::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nc-list-workbench .nc-orders-view-daily .nc-orders-col-next-action,
    .nc-list-workbench .nc-orders-view-daily .nc-orders-col-deadline,
    .nc-list-workbench .nc-orders-view-daily .nc-orders-col-financial-next {
        display: none;
    }

    .nc-orders-col-identity {
        max-width: none;
    }

    .nc-orders-identity__toggle {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .nc-list-workbench .nc-orders-table .nc-orders-actions-more {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .nc-list-workbench .nc-orders-view-full .nc-orders-sticky-order {
        position: static;
        box-shadow: none;
        left: auto;
    }

    .nc-orders-detail {
        width: 100%;
        padding: 0.75rem;
    }

    .nc-orders-detail__row {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
}

.nc-list-workbench .isl-import-shipments-table .isl-col-shipment { width: 17%; }
.nc-list-workbench .isl-import-shipments-table .isl-col-status { width: 9%; }
.nc-list-workbench .isl-import-shipments-table .isl-col-suppliers { width: 15%; }
.nc-list-workbench .isl-import-shipments-table .isl-col-carrier { width: 11%; }
.nc-list-workbench .isl-import-shipments-table .isl-col-eta { width: 12%; }
.nc-list-workbench .isl-import-shipments-table .isl-col-relations { width: 11%; }
.nc-list-workbench .isl-import-shipments-table .isl-col-tasks { width: auto; }

.nc-list-workbench .isl-import-shipments-table .fi-ta-actions-header-cell,
.nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) {
    width: 84px;
    min-width: 80px;
    max-width: 88px;
    padding: 8px 6px !important;
    white-space: nowrap;
    text-align: end;
    vertical-align: middle;
}

.nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ta-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
    max-width: 76px;
    white-space: nowrap;
}

.nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-icon-btn,
.nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ac-icon-btn-action,
.nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ac-icon-btn-group {
    margin: 0 !important;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 10px;
    flex: 0 0 34px;
}

.nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 81, 87, .35);
}

.nc-list-workbench .isl-import-shipments-table .isl-col-shipment .fi-ta-text,
.nc-list-workbench .isl-import-shipments-table .isl-col-shipment .fi-ta-col,
.nc-list-workbench .isl-import-shipments-table .isl-col-carrier .fi-ta-text,
.nc-list-workbench .isl-import-shipments-table .isl-col-carrier .fi-ta-col,
.nc-list-workbench .isl-import-shipments-table .isl-col-eta .fi-ta-text,
.nc-list-workbench .isl-import-shipments-table .isl-col-eta .fi-ta-col {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.nc-list-workbench .isl-import-shipments-table .isl-relations-cell .fi-ta-text,
.nc-list-workbench .isl-import-shipments-table .isl-relations-cell .fi-ta-col {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.nc-list-workbench .isl-import-shipments-table .isl-relations-cell .fi-ta-text-description,
.nc-list-workbench .isl-import-shipments-table .isl-relations-cell .fi-ta-description {
    display: block;
    margin-top: 2px;
    line-height: 1.35;
}

.nc-list-workbench .isl-import-shipments-table .isl-suppliers-cell .fi-ta-text,
.nc-list-workbench .isl-import-shipments-table .isl-suppliers-cell .fi-ta-col {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
}

.nc-list-workbench .isl-import-shipments-table .isl-suppliers-cell .fi-ta-text-item,
.nc-list-workbench .isl-import-shipments-table .isl-suppliers-cell .fi-ta-text > span {
    display: inline;
}

.nc-list-workbench .isl-import-shipments-table .isl-suppliers-cell .fi-ta-text-description,
.nc-list-workbench .isl-import-shipments-table .isl-suppliers-cell .fi-ta-description {
    display: block;
    margin-top: 2px;
    line-height: 1.3;
}

.nc-list-workbench .isl-import-shipments-table .isl-tasks-cell {
    vertical-align: middle;
}

.nc-list-workbench .isl-import-shipments-table .isl-tasks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin: 0;
    padding: 3px 8px 3px 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(100, 116, 139, .1);
    color: rgb(71, 85, 105);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 81, 87, .35);
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge-icon,
.nc-list-workbench .isl-import-shipments-table .isl-task-badge .fi-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge-label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9.5rem;
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-info {
    background: rgba(59, 130, 246, .1);
    border-color: rgba(59, 130, 246, .18);
    color: rgb(37, 99, 235);
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-warning {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .22);
    color: rgb(180, 83, 9);
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-danger {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .2);
    color: rgb(185, 28, 28);
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-success {
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .18);
    color: rgb(21, 128, 61);
}

.nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-extra {
    background: rgba(148, 163, 184, .14);
    border-color: rgba(148, 163, 184, .22);
    color: rgb(71, 85, 105);
    font-weight: 800;
}

.dark .nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-info {
    background: rgba(59, 130, 246, .16);
    color: rgb(147, 197, 253);
}

.dark .nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-warning {
    background: rgba(245, 158, 11, .16);
    color: rgb(253, 186, 116);
}

.dark .nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-danger {
    background: rgba(239, 68, 68, .16);
    color: rgb(252, 165, 165);
}

.dark .nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-success {
    background: rgba(34, 197, 94, .16);
    color: rgb(134, 239, 172);
}

.dark .nc-list-workbench .isl-import-shipments-table .isl-task-badge.is-extra {
    background: rgba(148, 163, 184, .16);
    color: rgb(212, 212, 216);
}

@media (max-width: 390px) {
    .nc-list-workbench .isl-import-shipments-table .fi-ta-content-ctn {
        overflow-x: visible;
    }

    .nc-list-workbench .isl-import-shipments-table table.fi-ta-table {
        table-layout: auto;
        min-width: 0 !important;
        width: 100%;
    }

    .nc-list-workbench .isl-import-shipments-table table.fi-ta-table thead {
        display: none;
    }

    .nc-list-workbench .isl-import-shipments-table table.fi-ta-table tbody {
        display: grid;
        gap: 10px;
    }

    .nc-list-workbench .isl-import-shipments-table table.fi-ta-table tbody tr {
        display: grid;
        gap: 6px;
        padding: 12px;
        border: 1px solid rgba(41, 81, 87, .12);
        border-radius: 16px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
        max-width: 100%;
        overflow-x: hidden;
    }

    .dark .nc-list-workbench .isl-import-shipments-table table.fi-ta-table tbody tr {
        background: rgba(39, 39, 42, .88);
        border-color: rgba(255, 255, 255, .1);
        box-shadow: none;
    }

    .nc-list-workbench .isl-import-shipments-table table.fi-ta-table tbody td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .nc-list-workbench .isl-import-shipments-table .fi-ta-actions-header-cell,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: start;
    }

    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions),
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ta-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding-top: 6px !important;
        justify-content: flex-start;
    }

    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-btn,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-link,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) a,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ac-action,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-icon-btn,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ac-icon-btn-action,
    .nc-list-workbench .isl-import-shipments-table tbody td.fi-ta-cell:has(> .fi-ta-actions) .fi-ac-icon-btn-group {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        margin: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        flex: 0 0 44px;
    }

    .nc-list-workbench .isl-import-shipments-table .isl-task-badge {
        min-height: 32px;
        padding: 6px 10px 6px 8px;
        font-size: 12px;
    }

    .nc-list-workbench .isl-import-shipments-table .isl-task-badge-icon,
    .nc-list-workbench .isl-import-shipments-table .isl-task-badge .fi-icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }
}

/* Import szállítmány megtekintő: kompakt fejléc + következő teendő */
.fi-resource-import-shipments.fi-resource-view-record-page .fi-header-actions {
    flex-wrap: nowrap;
    gap: 8px;
}

.isl-view-header {
    display: grid;
    gap: 6px;
    margin-bottom: 4px;
}

.isl-view-back {
    display: inline-flex;
    width: fit-content;
    color: rgb(100 116 139);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.isl-view-back:hover,
.isl-view-back:focus-visible {
    color: rgb(41 81 87);
    text-decoration: underline;
}

.isl-view-title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.dark .isl-view-title {
    color: rgb(248 250 252);
}

.isl-view-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    color: rgb(71 85 105);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.dark .isl-view-subtitle {
    color: rgb(203 213 225);
}

.isl-view-eta {
    margin: 0;
    color: rgb(100 116 139);
    font-size: 12px;
    font-weight: 650;
}

.isl-view-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-left: 3px solid rgb(41 81 87);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.isl-view-next.is-warning {
    border-left-color: rgb(245 158 11);
    background: linear-gradient(180deg, rgb(255 253 247), rgb(255 255 255));
}

.isl-view-next.is-danger {
    border-left-color: rgb(220 38 38);
    background: linear-gradient(180deg, rgb(254 242 242), rgb(255 255 255));
}

.isl-view-next.is-success {
    border-left-color: rgb(22 163 74);
    background: linear-gradient(180deg, rgb(240 253 244), rgb(255 255 255));
}

.isl-view-next.is-info {
    border-left-color: rgb(37 99 235);
    background: linear-gradient(180deg, rgb(239 246 255), rgb(255 255 255));
}

.dark .isl-view-next {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(39, 39, 42, .88);
    box-shadow: none;
}

.dark .isl-view-next.is-warning { background: linear-gradient(180deg, rgba(245, 158, 11, .08), rgb(24 24 27)); }
.dark .isl-view-next.is-danger { background: linear-gradient(180deg, rgba(239, 68, 68, .08), rgb(24 24 27)); }
.dark .isl-view-next.is-success { background: linear-gradient(180deg, rgba(34, 197, 94, .08), rgb(24 24 27)); }
.dark .isl-view-next.is-info { background: linear-gradient(180deg, rgba(59, 130, 246, .08), rgb(24 24 27)); }

.isl-view-next-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.isl-view-next-kicker {
    color: rgb(100 116 139);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.isl-view-next-title {
    color: rgb(15 23 42);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
}

.dark .isl-view-next-title {
    color: rgb(248 250 252);
}

.isl-view-next-desc {
    margin: 0;
    color: rgb(71 85 105);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.dark .isl-view-next-desc {
    color: rgb(203 213 225);
}

.isl-view-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.isl-view-next-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: rgb(41 81 87);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.isl-view-next-cta:hover,
.isl-view-next-cta:focus-visible {
    filter: brightness(1.05);
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 81, 87, .28);
}

@media (max-width: 760px) {
    .fi-resource-import-shipments.fi-resource-view-record-page .fi-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .fi-resource-import-shipments.fi-resource-view-record-page .fi-header-actions > .fi-ac-btn-action,
    .fi-resource-import-shipments.fi-resource-view-record-page .fi-header-actions > .fi-ac-btn-group,
    .fi-resource-import-shipments.fi-resource-view-record-page .fi-header-actions .fi-btn {
        flex: 1 1 auto;
        min-height: 44px;
        justify-content: center;
    }

    .isl-view-next {
        flex-direction: column;
        align-items: stretch;
    }

    .isl-view-next-actions,
    .isl-view-next-cta {
        width: 100%;
    }
}

.isl-view-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
    align-items: stretch;
}

.isl-view-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    height: 100%;
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.isl-view-summary-card:hover,
.isl-view-summary-card:focus-visible {
    border-color: rgba(41, 81, 87, .45);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    outline: none;
}

.isl-view-summary-card.is-warning {
    border-color: rgba(245, 158, 11, .35);
    background: linear-gradient(180deg, rgba(255, 251, 235, .95), rgb(255 255 255));
}

.isl-view-summary-card.is-danger {
    border-color: rgba(239, 68, 68, .35);
    background: linear-gradient(180deg, rgba(254, 242, 242, .95), rgb(255 255 255));
}

.isl-view-summary-card.is-success {
    border-color: rgba(34, 197, 94, .28);
    background: linear-gradient(180deg, rgba(240, 253, 244, .9), rgb(255 255 255));
}

.isl-view-summary-card.is-info {
    border-color: rgba(59, 130, 246, .28);
}

.dark .isl-view-summary-card {
    background: linear-gradient(180deg, rgb(39 39 42), rgb(24 24 27));
    border-color: rgba(113, 113, 122, .4);
}

.dark .isl-view-summary-card.is-warning { background: linear-gradient(180deg, rgba(245, 158, 11, .08), rgb(24 24 27)); }
.dark .isl-view-summary-card.is-danger { background: linear-gradient(180deg, rgba(239, 68, 68, .08), rgb(24 24 27)); }
.dark .isl-view-summary-card.is-success { background: linear-gradient(180deg, rgba(34, 197, 94, .08), rgb(24 24 27)); }

.isl-view-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.isl-view-summary-label {
    color: rgb(100 116 139);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.isl-view-summary-severity {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgb(241 245 249);
    color: rgb(71 85 105);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.isl-view-summary-severity[data-severity="warning"] {
    background: rgba(245, 158, 11, .14);
    color: rgb(146 64 14);
}

.isl-view-summary-severity[data-severity="danger"] {
    background: rgba(239, 68, 68, .14);
    color: rgb(153 27 27);
}

.isl-view-summary-severity[data-severity="success"] {
    background: rgba(34, 197, 94, .14);
    color: rgb(21 128 61);
}

.isl-view-summary-severity[data-severity="info"] {
    background: rgba(59, 130, 246, .12);
    color: rgb(29 78 216);
}

.isl-view-summary-value {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.dark .isl-view-summary-value {
    color: rgb(248 250 252);
}

.isl-view-summary-meta {
    color: rgb(100 116 139);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.dark .isl-view-summary-meta {
    color: rgb(161 161 170);
}

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

@media (max-width: 560px) {
    .isl-view-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .isl-view-summary-card {
        min-height: 0;
    }
}

.isl-view-missing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 251, 235, .9), rgb(255 255 255));
}

.dark .isl-view-missing {
    background: linear-gradient(180deg, rgba(245, 158, 11, .08), rgb(24 24 27));
    border-color: rgba(245, 158, 11, .28);
}

.isl-view-missing-copy {
    display: grid;
    gap: 2px;
    min-width: 140px;
}

.isl-view-missing-kicker {
    color: rgb(146 64 14);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dark .isl-view-missing-kicker {
    color: rgb(253 186 116);
}

.isl-view-missing-title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.dark .isl-view-missing-title {
    color: rgb(248 250 252);
}

.isl-view-missing-chips {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.isl-view-missing-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgb(241 245 249);
    color: rgb(51 65 85);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.isl-view-missing-chip.is-warning {
    background: rgba(245, 158, 11, .16);
    color: rgb(146 64 14);
}

.isl-view-missing-chip.is-danger {
    background: rgba(239, 68, 68, .14);
    color: rgb(153 27 27);
}

.isl-view-missing-chip.is-info {
    background: rgba(59, 130, 246, .12);
    color: rgb(29 78 216);
}

.isl-view-missing-chip.is-more {
    background: rgba(100, 116, 139, .12);
    color: rgb(71 85 105);
}

.isl-view-missing-actions {
    margin-left: auto;
}

.isl-view-missing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgb(41 81 87);
    color: rgb(255 255 255);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.isl-view-missing-cta:hover,
.isl-view-missing-cta:focus-visible {
    background: rgb(30 64 68);
    outline: none;
}

@media (max-width: 760px) {
    .isl-view-missing {
        flex-direction: column;
        align-items: stretch;
    }

    .isl-view-missing-actions,
    .isl-view-missing-cta {
        width: 100%;
    }
}

.isl-view-open {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgb(255 255 255), rgb(248 250 252));
}

.dark .isl-view-open {
    background: linear-gradient(180deg, rgb(39 39 42), rgb(24 24 27));
    border-color: rgba(113, 113, 122, .4);
}

.isl-view-open-head {
    margin-bottom: 12px;
}

.isl-view-open-kicker {
    display: block;
    color: rgb(100 116 139);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.isl-view-open-title {
    margin: 2px 0 0;
    color: rgb(15 23 42);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.dark .isl-view-open-title {
    color: rgb(248 250 252);
}

.isl-view-open-empty {
    margin: 0;
    color: rgb(100 116 139);
    font-size: 13px;
    font-weight: 600;
}

.isl-view-check-list {
    display: grid;
    gap: 0;
}

.isl-view-check-list,
.isl-view-check-row,
.isl-view-check-copy,
.isl-view-check-meta {
    min-width: 0;
    max-width: 100%;
}

.isl-view-check-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: transparent;
}

.isl-view-check-row:last-child {
    border-bottom: 0;
}

.dark .isl-view-check-row {
    border-bottom-color: rgba(113, 113, 122, .28);
}

.isl-view-check-row.is-current {
    box-shadow: inset 2px 0 0 rgb(41 81 87);
    padding-left: 8px;
}

.isl-view-check-row.is-blocked {
    background: rgba(100, 116, 139, .04);
}

.isl-view-check-row.is-later {
    opacity: .78;
}

.isl-view-check-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: rgb(100 116 139);
}

.isl-view-check-icon[data-status="complete"] {
    color: rgb(21 128 61);
}

.isl-view-check-icon[data-status="open"] {
    color: rgb(41 81 87);
}

.isl-view-check-icon[data-status="blocked"] {
    color: rgb(71 85 105);
}

.isl-view-check-icon[data-status="later"] {
    color: rgb(148 163 184);
}

.isl-view-check-icon svg {
    width: 16px;
    height: 16px;
}

.isl-view-check-copy {
    display: grid;
    gap: 1px;
    flex: 1 1 0;
    min-width: 0;
}

.isl-view-check-title {
    color: rgb(15 23 42);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.dark .isl-view-check-title {
    color: rgb(248 250 252);
}

.isl-view-check-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: rgb(100 116 139);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.isl-view-check-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 1 auto;
    margin-left: auto;
}

.isl-view-check-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgb(241 245 249);
    color: rgb(71 85 105);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.isl-view-check-status[data-status="open"] {
    background: rgba(41, 81, 87, .12);
    color: rgb(41 81 87);
}

.isl-view-check-status[data-status="blocked"] {
    background: rgba(71, 85, 105, .16);
    color: rgb(51 65 85);
    border: 1px solid rgba(71, 85, 105, .22);
}

.isl-view-check-status[data-status="complete"] {
    background: rgba(34, 197, 94, .14);
    color: rgb(21 128 61);
}

.isl-view-check-status[data-status="later"] {
    background: transparent;
    color: rgb(148 163 184);
    border: 1px dashed rgba(148, 163, 184, .55);
}

.isl-view-check-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: rgb(41 81 87);
    color: rgb(255 255 255);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.isl-view-check-cta:hover,
.isl-view-check-cta:focus-visible {
    background: rgb(30 64 68);
    outline: none;
}

.isl-view-open-disclosure {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.isl-view-open-disclosure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 10px;
    background: rgb(248 250 252);
    color: rgb(51 65 85);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.isl-view-open-disclosure-btn:hover,
.isl-view-open-disclosure-btn:focus-visible {
    border-color: rgba(41, 81, 87, .4);
    outline: none;
}

.dark .isl-view-open-disclosure-btn {
    background: rgb(39 39 42);
    border-color: rgba(113, 113, 122, .4);
    color: rgb(228 228 231);
}

.isl-view-open-disclosure-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .12);
    color: rgb(71 85 105);
    font-size: 11px;
    font-weight: 750;
}

.isl-view-full-list {
    margin-top: 2px;
}

.isl-view-full-list .isl-view-check-row.is-complete {
    opacity: .88;
}

.isl-view-full-list .isl-view-check-row.is-later .isl-view-check-cta {
    background: rgb(100 116 139);
}

@media (max-width: 760px) {
    .isl-view-check-meta {
        width: 100%;
        margin-left: 28px;
        justify-content: flex-start;
    }

    .isl-view-check-cta {
        width: auto;
        min-height: 44px;
        padding: 0 14px;
    }
}

.nc-page-subtitle {
    margin: 0;
    color: var(--nc-muted);
    font-size: 15px;
}

.nc-page-head {
    display: grid;
    gap: 6px;
    padding: 2px 0 0;
    min-width: 0;
}

.nc-page-kicker {
    margin: 0;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
}

.nc-page-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.nc-page-head-copy {
    min-width: 0;
    flex: 1 1 240px;
}

.nc-page-title {
    margin: 0;
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 650;
    letter-spacing: -.015em;
    color: var(--nc-text);
    line-height: 1.2;
}

.nc-page-meta {
    margin: 6px 0 0;
    max-width: 760px;
    color: var(--nc-muted);
    font-size: 14px;
    font-weight: 450;
    line-height: 1.5;
}

.nc-page-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.nc-page-head-record {
    padding: 0;
}

.nc-page-head-record .nc-page-kicker {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 550;
}

.nc-ui-unified-head .fi-page:has(.nc-page-head) .fi-header-heading {
    display: none !important;
}

.nc-ui-unified-head .fi-page:has(.nc-page-head) .fi-header {
    display: none !important;
}

@media (max-width: 680px) {
    .nc-page-head {
        gap: 4px;
        padding: 0;
    }

    .nc-page-head > .nc-back-button,
    .nc-page-head-record > .nc-back-button,
    .fi-header .nc-back-button {
        min-height: 30px;
        margin-bottom: 6px;
        padding: 0 10px;
        font-size: 12px;
    }

    .nc-page-head-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .nc-page-head-copy {
        flex: 0 0 auto;
        width: 100%;
    }

    .nc-page-title,
    .fi-header-heading {
        font-size: 20px !important;
        line-height: 1.15;
    }

    .nc-page-meta,
    .fi-header-subheading {
        margin-top: 4px !important;
        font-size: 13px !important;
        line-height: 1.4;
    }

    .nc-page-head-actions,
    .fi-header-actions,
    .fi-page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nc-ui-unified-head .fi-header {
        gap: 8px;
        padding: 0;
    }

    .nc-workbench,
    .nc-list-workbench {
        gap: 10px;
    }

    .nc-list-workbench .nc-workbench-panel {
        overflow: visible;
    }

    .nc-tabbar-row {
        overflow: hidden;
    }

    .nc-tabbar-row .nc-tabbar,
    .nc-tabbar-row nav.hr-main-nav,
    .nc-tabbar-row nav.fn-main-nav {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nc-tabbar-row .nc-tabbar::-webkit-scrollbar,
    .nc-tabbar-row nav.hr-main-nav::-webkit-scrollbar,
    .nc-tabbar-row nav.fn-main-nav::-webkit-scrollbar {
        display: none;
    }

    .hr-hero,
    .nc-page-head-legacy {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hr-hero-copy h1,
    .fn-hero-copy h1 {
        font-size: 22px;
    }

    .hr-hero-copy p,
    .fn-hero-copy p {
        margin-top: 4px;
        font-size: 13px;
    }
}

.lead-header-card.nc-page-head-record {
    padding: 0;
}

.lead-header-card.nc-page-head-record > .nc-back-button {
    margin: 16px 18px 0;
}

.lead-header-card.nc-page-head-record .lead-hero {
    padding: 16px 18px 14px;
}

.lead-header-card.nc-page-head-record .nc-page-title {
    font-size: clamp(22px, 2.6vw, 32px);
}

.lead-header-card.nc-page-head-record .nc-page-kicker {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ── Egységes panel + fül sáv (lead munkalap mintája) ── */
.nc-panel,
.lead-card.lead-panel,
.lead-card:not(.lead-header-card):has(.nc-tabbar),
.lead-card:not(.lead-header-card):has(.lead-tabbar) {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    overflow: hidden;
    min-width: 0;
}

.dark .nc-panel,
.dark .lead-card.lead-panel,
.dark .lead-card:not(.lead-header-card):has(.nc-tabbar),
.dark .lead-card:not(.lead-header-card):has(.lead-tabbar) {
    background: rgba(30, 30, 34, .94);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.nc-workbench-panel {
    display: grid;
    min-width: 0;
}

.nc-tabbar-panel {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.dark .nc-tabbar-panel {
    background: rgba(30, 30, 34, .94);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.nc-tabbar-panel .nc-tabbar {
    border-radius: 22px 22px 0 0;
}

.nc-panel-content,
.lead-panel-content {
    padding: 14px 16px 16px;
    min-width: 0;
}

.nc-tabbar-shell,
.module-subnav-wrap,
.nc-tab-shell.module-subnav-wrap {
    min-width: 0;
}

.nc-list-module-nav {
    margin-bottom: 12px;
}

.nc-tabbar-row {
    display: flex;
    align-items: stretch;
    height: var(--nc-tabbar-height);
    min-height: var(--nc-tabbar-height);
    box-sizing: content-box;
    overflow: visible;
    background: linear-gradient(180deg, rgba(251, 251, 253, .98) 0%, rgba(255, 255, 255, .92) 100%);
    border-bottom: var(--nc-tabbar-border) solid rgba(41, 81, 87, .12);
}

.dark .nc-tabbar-row {
    background: linear-gradient(180deg, rgba(30, 30, 34, .98) 0%, rgba(24, 24, 27, .95) 100%);
    border-bottom-color: rgba(255, 255, 255, .1);
}

.nc-tabbar-row .nc-tabbar,
.nc-tabbar-row nav.hr-main-nav,
.nc-tabbar-row nav.fn-main-nav {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    min-height: 0 !important;
    max-height: 100%;
    border-bottom: 0 !important;
    background: transparent !important;
}

.nc-tabbar-row .nc-tabbar > a,
.nc-tabbar-row .nc-tabbar > button,
.nc-tabbar-row nav.hr-main-nav > a,
.nc-tabbar-row nav.fn-main-nav > a {
    height: 100%;
    min-height: 0 !important;
    max-height: 100%;
    box-sizing: border-box;
    align-items: center;
    line-height: 1.2;
}

.nc-tabbar-row .nc-tabbar > a::after,
.nc-tabbar-row .nc-tabbar > button::after,
.nc-tabbar-row nav.hr-main-nav > a::after,
.nc-tabbar-row nav.fn-main-nav > a::after {
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 3px;
}

.nc-tabbar-row .nc-nav-actions {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 var(--nc-tabbar-pad-x);
    border-top: 0;
    border-left: 1px solid rgba(41, 81, 87, .1);
    background: transparent;
    min-height: 0;
}

.dark .nc-tabbar-row .nc-nav-actions {
    border-left-color: rgba(255, 255, 255, .08);
    background: transparent;
}

.nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell) .nc-tabbar-row {
    border-radius: 0;
}

.module-subnav-wrap.nc-tab-shell .nc-tabbar-row {
    border-radius: 18px 18px 0 0;
}

.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .module-subnav-wrap .nc-tabbar-row {
    border-radius: 0;
    height: var(--nc-tabbar-height);
    min-height: var(--nc-tabbar-height);
    box-sizing: content-box;
}

.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .module-subnav-wrap .nc-tabbar-row .nc-tabbar > a {
    min-height: var(--nc-tabbar-height) !important;
    height: 100% !important;
}

.nc-workbench-panel > .nc-tabbar-shell,
.nc-workbench-panel > .module-subnav-wrap,
.nc-workbench-panel > .nc-tab-shell,
.hr-workbench-nav,
.fn-workbench-nav,
.nc-tabbar-panel {
    position: static;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

/* ── Egységes munkafelület: egy külső panel, lapos belső rétegek ── */
.nc-workbench-panel > :is(
    .module-subnav-wrap,
    .nc-tab-shell,
    .fn-workbench-nav,
    .hr-workbench-nav,
    .nc-workbench-nav
) {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

.nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell, .fn-workbench-nav, .hr-workbench-nav) :is(.nc-tabbar, .fn-main-nav, .hr-main-nav) {
    border-bottom: 0 !important;
}

.nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell, .fn-workbench-nav, .hr-workbench-nav) .nc-tabbar-row {
    border-bottom: var(--nc-tabbar-border) solid rgba(41, 81, 87, .12);
}

.dark .nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell, .fn-workbench-nav, .hr-workbench-nav) .nc-tabbar-row {
    border-bottom-color: rgba(255, 255, 255, .08);
}

.dark .nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell, .fn-workbench-nav, .hr-workbench-nav) :is(.nc-tabbar, .fn-main-nav, .hr-main-nav) {
    border-bottom-color: transparent;
}

.nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell, .fn-workbench-nav, .hr-workbench-nav) :is(.nc-tabbar, .fn-main-nav, .hr-main-nav) > a.is-active {
    background: transparent;
    box-shadow: inset 0 -3px 0 #295157;
}

.dark .nc-workbench-panel > :is(.module-subnav-wrap, .nc-tab-shell, .fn-workbench-nav, .hr-workbench-nav) :is(.nc-tabbar, .fn-main-nav, .hr-main-nav) > a.is-active {
    background: transparent;
    box-shadow: inset 0 -3px 0 #9fd0d1;
}

.nc-workbench-panel > :is(.fn-workbench-nav, .hr-workbench-nav, .nc-finance-section-context) :is(.fn-workbench-context, .hr-workbench-context) {
    border-radius: 0;
}

.nc-workbench-surface {
    display: grid;
    gap: 0;
    padding-top: 12px;
    min-width: 0;
}

.nc-workbench-surface > * + * {
    border-top: 1px solid rgba(41, 81, 87, .08);
    margin-top: 18px;
    padding-top: 18px;
}

.dark .nc-workbench-surface > * + * {
    border-top-color: rgba(255, 255, 255, .08);
}

.nc-workbench-surface :is(
    .sales-card.sales-section,
    .sales-section.sales-pipeline-compact,
    .crm-card.crm-section,
    .inst-card.inst-section,
    .fn-panel,
    .hr-panel,
    .dl-section,
    .bm-section,
    .module-panel,
    .proc-card:not(.proc-kpi),
    .nc-filter-panel:not(.is-flat),
    .nc-report-filter
) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

.nc-workbench-surface :is(
    .sales-card.sales-kpi,
    .crm-card.crm-kpi,
    .inst-card.inst-kpi,
    .proc-card.proc-kpi,
    .module-stat,
    .nc-settings-card,
    .fn-mini-stat,
    .hr-mini-stat,
    .fn-alert-card,
    .hr-alert-card,
    .nc-kpi-card
) {
    box-shadow: none !important;
    border-color: rgba(41, 81, 87, .08) !important;
    background: rgba(41, 81, 87, .03) !important;
}

.dark .nc-workbench-surface :is(
    .sales-card.sales-kpi,
    .crm-card.crm-kpi,
    .inst-card.inst-kpi,
    .proc-card.proc-kpi,
    .module-stat,
    .nc-settings-card,
    .fn-mini-stat,
    .hr-mini-stat,
    .fn-alert-card,
    .hr-alert-card,
    .nc-kpi-card
) {
    border-color: rgba(255, 255, 255, .08) !important;
    background: rgba(255, 255, 255, .04) !important;
}

.nc-workbench-surface .sales-module-card {
    background: rgba(41, 81, 87, .04) !important;
}

.nc-workbench-surface :is(
    .sales-row,
    .sales-order-stat,
    .crm-row,
    .crm-mini,
    .inst-row,
    .module-action-compact,
    .fn-click-card,
    .hr-click-card,
    .fn-due-row,
    .hr-data-row,
    .em-top-item
) {
    background: rgba(41, 81, 87, .03);
    border-color: rgba(41, 81, 87, .07);
    box-shadow: none;
}

.dark .nc-workbench-surface :is(
    .sales-row,
    .sales-order-stat,
    .crm-row,
    .crm-mini,
    .inst-row,
    .module-action-compact,
    .fn-click-card,
    .hr-click-card,
    .fn-due-row,
    .hr-data-row,
    .em-top-item
) {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .07);
}

.nc-workbench-surface .sales-pipeline-stage {
    background: rgba(41, 81, 87, .035);
    border-color: rgba(41, 81, 87, .08);
    box-shadow: none;
}

.dark .nc-workbench-surface .sales-pipeline-stage {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
}

.nc-workbench-surface .sales-pipeline-lead {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(41, 81, 87, .07);
    box-shadow: none;
}

.dark .nc-workbench-surface .sales-pipeline-lead {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .07);
}

/* Filament listák: fül + táblázat egy panelben */
.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap, .nc-list-module-nav) {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    overflow: hidden;
    padding: 0;
}

.dark .fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap, .nc-list-module-nav) {
    background: rgba(30, 30, 34, .94);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .module-subnav-wrap.nc-tab-shell {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    background: transparent;
}

.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .fi-ta,
.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .fi-ta .fi-ta-ctn {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .fi-ta .fi-ta-filters-above-content-ctn {
    border-top: 1px solid rgba(41, 81, 87, .08);
    margin-top: 0;
    padding-top: 12px;
}

.dark .fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .fi-ta .fi-ta-filters-above-content-ctn {
    border-top-color: rgba(255, 255, 255, .08);
}

.nc-tab-shell {
    overflow: hidden;
    min-width: 0;
}

.nc-workbench-panel > .nc-tab-shell .nc-tabbar-primary,
.nc-workbench-panel > nav.nc-tabbar-primary {
    border-radius: 22px 22px 0 0;
}

.nc-tabbar-secondary-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 14px 10px;
    border-top: 1px solid rgba(41, 81, 87, .1);
    background: rgba(251, 251, 253, .82);
}

.dark .nc-tabbar-secondary-wrap {
    background: rgba(24, 24, 27, .82);
    border-top-color: rgba(255, 255, 255, .08);
}

.nc-tabbar-secondary-label {
    flex: 0 0 auto;
    color: #6e6e73;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dark .nc-tabbar-secondary-label {
    color: #a8a8b3;
}

.nc-tabbar-secondary {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 2px 4px;
    align-items: center;
    overflow-x: auto;
    padding: 0;
    background: transparent;
    border: 0;
    -webkit-overflow-scrolling: touch;
}

.nc-tabbar-secondary > a,
.nc-tabbar-secondary > button {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 7px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #6e6e73;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.nc-tabbar-secondary > a:hover,
.nc-tabbar-secondary > button:hover {
    color: #295157;
    background: rgba(41, 81, 87, .06);
}

.nc-tabbar-secondary > a.is-active,
.nc-tabbar-secondary > button.is-active {
    color: #295157;
    font-weight: 900;
    background: rgba(41, 81, 87, .1);
}

.dark .nc-tabbar-secondary > a,
.dark .nc-tabbar-secondary > button {
    color: #a8a8b3;
}

.dark .nc-tabbar-secondary > a:hover,
.dark .nc-tabbar-secondary > button:hover,
.dark .nc-tabbar-secondary > a.is-active,
.dark .nc-tabbar-secondary > button.is-active {
    color: #e8f6f6;
    background: rgba(159, 208, 209, .1);
}

.nc-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 var(--nc-tabbar-pad-x);
    border-top: 1px solid rgba(41, 81, 87, .1);
    background: rgba(251, 251, 253, .82);
    min-height: var(--nc-tabbar-height);
}

.dark .nc-nav-actions {
    background: rgba(24, 24, 27, .82);
    border-top-color: rgba(255, 255, 255, .08);
}

.nc-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #295157;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.nc-nav-btn:hover {
    border-color: rgba(41, 81, 87, .28);
    background: rgba(41, 81, 87, .06);
}

.nc-nav-btn.is-active {
    background: rgba(41, 81, 87, .1);
    border-color: rgba(41, 81, 87, .24);
    color: #295157;
    font-weight: 900;
}

.nc-nav-btn-primary {
    background: #295157;
    border-color: #295157;
    color: #fff;
}

.nc-nav-btn-primary:hover {
    background: #3a666d;
    border-color: #3a666d;
    color: #fff;
}

.dark .nc-nav-btn {
    background: rgba(39, 39, 42, .88);
    border-color: rgba(255, 255, 255, .11);
    color: #d7e3e4;
}

.dark .nc-nav-btn.is-active {
    background: rgba(159, 208, 209, .12);
    border-color: rgba(159, 208, 209, .24);
    color: #e8f6f6;
}

.dark .nc-nav-btn-primary {
    background: #3a666d;
    border-color: #3a666d;
    color: #fff;
}

.nc-tabbar,
.lead-tabbar,
nav.module-subnav,
nav.hr-main-nav,
nav.fn-main-nav,
.crm-viewbar.nc-tabbar {
    display: flex;
    gap: 2px;
    align-items: stretch;
    min-height: var(--nc-tabbar-height);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    background: linear-gradient(180deg, rgba(251, 251, 253, .98) 0%, rgba(255, 255, 255, .92) 100%);
    border-bottom: 2px solid rgba(41, 81, 87, .12);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.dark .nc-tabbar,
.dark .lead-tabbar,
.dark nav.module-subnav,
.dark nav.hr-main-nav,
.dark nav.fn-main-nav,
.dark .crm-viewbar.nc-tabbar {
    background: linear-gradient(180deg, rgba(30, 30, 34, .98) 0%, rgba(24, 24, 27, .95) 100%);
    border-bottom-color: rgba(255, 255, 255, .1);
}

.nc-tabbar-item,
.lead-tabbar-item,
.nc-tabbar > a,
.nc-tabbar-primary > a,
.nc-tabbar > button,
.lead-tabbar > button,
.module-subnav > a,
.hr-main-nav > a,
.fn-main-nav > a,
.crm-viewbar.nc-tabbar > a,
.nc-report-tabs.nc-tabbar > a {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: var(--nc-tabbar-height);
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0 var(--nc-tabbar-pad-x);
    font: inherit;
    font-size: var(--nc-tabbar-font-size);
    font-weight: var(--nc-tabbar-weight);
    letter-spacing: -.01em;
    color: #6e6e73;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.nc-tabbar-item::after,
.lead-tabbar-item::after,
.nc-tabbar > a::after,
.nc-tabbar > button::after,
.lead-tabbar > button::after,
.module-subnav > a::after,
.hr-main-nav > a::after,
.fn-main-nav > a::after,
.crm-viewbar.nc-tabbar > a::after,
.nc-report-tabs.nc-tabbar > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -2px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    transition: background .18s ease, height .18s ease, box-shadow .18s ease;
}

.nc-tabbar-item:hover,
.lead-tabbar-item:hover,
.nc-tabbar > a:hover,
.nc-tabbar > button:hover,
.lead-tabbar > button:hover,
.module-subnav > a:hover,
.hr-main-nav > a:hover,
.fn-main-nav > a:hover,
.crm-viewbar.nc-tabbar > a:hover,
.nc-report-tabs.nc-tabbar > a:hover {
    color: #295157;
    background: rgba(41, 81, 87, .04);
}

.nc-tabbar-item.is-active,
.lead-tabbar-item.is-active,
.nc-tabbar > a.is-active,
.nc-tabbar > a.active,
.nc-tabbar > button.is-active,
.lead-tabbar > button.is-active,
.module-subnav > a.is-active,
.hr-main-nav > a.is-active,
.fn-main-nav > a.is-active,
.crm-viewbar.nc-tabbar > a.is-active,
.nc-report-tabs.nc-tabbar > a.active {
    color: #295157;
    font-weight: var(--nc-tabbar-active-weight);
    background: rgba(41, 81, 87, .07);
}

.nc-tabbar-item.is-active::after,
.lead-tabbar-item.is-active::after,
.nc-tabbar > a.is-active::after,
.nc-tabbar > a.active::after,
.nc-tabbar > button.is-active::after,
.lead-tabbar > button.is-active::after,
.module-subnav > a.is-active::after,
.hr-main-nav > a.is-active::after,
.fn-main-nav > a.is-active::after,
.crm-viewbar.nc-tabbar > a.is-active::after,
.nc-report-tabs.nc-tabbar > a.active::after {
    background: linear-gradient(90deg, #295157, #3a666d);
    height: 4px;
    box-shadow: 0 2px 10px rgba(41, 81, 87, .35);
}

.dark .nc-tabbar-item,
.dark .lead-tabbar-item,
.dark .nc-tabbar > a,
.dark .nc-tabbar > button,
.dark .lead-tabbar > button,
.dark .module-subnav > a,
.dark .hr-main-nav > a,
.dark .fn-main-nav > a,
.dark .crm-viewbar.nc-tabbar > a,
.dark .nc-report-tabs.nc-tabbar > a {
    color: #a8a8b3;
}

.dark .nc-tabbar-item:hover,
.dark .lead-tabbar-item:hover,
.dark .nc-tabbar > a:hover,
.dark .module-subnav > a:hover,
.dark .hr-main-nav > a:hover,
.dark .fn-main-nav > a:hover {
    color: #d4f0f1;
    background: rgba(255, 255, 255, .04);
}

.dark .nc-tabbar-item.is-active,
.dark .lead-tabbar-item.is-active,
.dark .nc-tabbar > a.is-active,
.dark .nc-tabbar > a.active,
.dark .module-subnav > a.is-active,
.dark .hr-main-nav > a.is-active,
.dark .fn-main-nav > a.is-active,
.dark .crm-viewbar.nc-tabbar > a.is-active,
.dark .nc-report-tabs.nc-tabbar > a.active {
    color: #e8f6f6;
    background: rgba(159, 208, 209, .08);
}

.dark .nc-tabbar-item.is-active::after,
.dark .lead-tabbar-item.is-active::after,
.dark .nc-tabbar > a.is-active::after,
.dark .module-subnav > a.is-active::after,
.dark .hr-main-nav > a.is-active::after,
.dark .fn-main-nav > a.is-active::after {
    background: linear-gradient(90deg, #9fd0d1, #6fb3b5);
    box-shadow: 0 2px 10px rgba(159, 208, 209, .25);
}

.nc-tabbar-badge,
.module-subnav-badge,
.hr-main-nav-badge,
.fn-main-nav-badge,
.crm-viewbar .crm-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    max-height: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(198, 163, 91, .18);
    color: #755f22;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.nc-tabbar-badge--warning {
    min-width: 18px;
    padding: 1px 5px;
    background: rgba(245, 158, 11, .16);
    color: #b45309;
}

.nc-tabbar-badge--danger {
    min-width: 18px;
    padding: 1px 5px;
    background: rgba(220, 38, 38, .12);
    color: #b91c1c;
}

.nc-tabbar-item.is-active .nc-tabbar-badge,
.module-subnav > a.is-active .module-subnav-badge,
.hr-main-nav > a.is-active .hr-main-nav-badge,
.fn-main-nav > a.is-active .fn-main-nav-badge,
.crm-viewbar.nc-tabbar > a.is-active .crm-count {
    background: rgba(41, 81, 87, .12);
    color: #295157;
}

/*
 * Levelezés belső mappalista: aktív badge kontraszt.
 * Felülírja a fenti általános .nc-tabbar-item.is-active .nc-tabbar-badge szabályt
 * (világos háttér + sötétzöld szám). Nem érinti a Filament fő navigációt.
 */
.nc-mailbox-folder-nav {
    --mailbox-active-badge-background: #f7f4ee;
    --mailbox-active-badge-foreground: #295157;
}

.nc-mailbox-folder-nav .nc-tabbar-item.is-active .nc-tabbar-badge,
.nc-mailbox-folder-nav button.nc-tabbar-item.is-active .nc-tabbar-badge,
.nc-mailbox-folder-nav .nc-mailbox-folder.is-active .nc-tabbar-badge,
.nc-mailbox-folder-nav button.is-active .nc-tabbar-badge {
    background: var(--mailbox-active-badge-background) !important;
    color: var(--mailbox-active-badge-foreground) !important;
    border: 1px solid rgba(41, 81, 87, .18) !important;
}

.dark .nc-tabbar-item.is-active .nc-tabbar-badge,
.dark .module-subnav > a.is-active .module-subnav-badge,
.dark .hr-main-nav > a.is-active .hr-main-nav-badge,
.dark .fn-main-nav > a.is-active .fn-main-nav-badge {
    background: rgba(159, 208, 209, .16);
    color: #d4f0f1;
}

.hr-workbench-nav,
.fn-workbench-nav {
    display: grid;
    gap: 0;
    overflow: visible;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.dark .hr-workbench-nav,
.dark .fn-workbench-nav {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.hr-workbench-nav .nc-tabbar-row,
.fn-workbench-nav .nc-tabbar-row {
    border: none;
    box-shadow: none;
    border-radius: 22px 22px 0 0;
}

.hr-workbench-nav .hr-main-nav,
.fn-workbench-nav .fn-main-nav {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.hr-workbench-nav:not(:has(.nc-nav-actions)) .nc-tabbar-row,
.fn-workbench-nav:not(:has(.nc-nav-actions)) .nc-tabbar-row {
    border-radius: 22px 22px 0 0;
}

.hr-workbench-context,
.fn-workbench-context {
    border-top: 1px solid rgba(41, 81, 87, .1);
    background: rgba(251, 251, 253, .72);
    border-radius: 0 0 22px 22px;
}

.dark .hr-workbench-context,
.dark .fn-workbench-context {
    background: rgba(24, 24, 27, .72);
    border-top-color: rgba(255, 255, 255, .08);
}

.nc-tabbar-secondary,
.hr-context-links,
.fn-context-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    min-width: 0;
}

.nc-tabbar-secondary a,
.hr-context-links a,
.fn-context-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nc-tabbar-secondary a:hover,
.hr-context-links a:hover,
.fn-context-links a:hover {
    color: #295157;
}

.nc-tabbar-secondary a.is-active,
.hr-context-links a.is-active,
.fn-context-links a.is-active {
    color: #295157;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .nc-tabbar-row {
        height: 40px;
        min-height: 40px;
    }

    .fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .module-subnav-wrap .nc-tabbar-row .nc-tabbar > a,
    .module-subnav-wrap .nc-tabbar-row .nc-tabbar > a {
        min-height: 40px !important;
    }

    .nc-tabbar,
    .lead-tabbar,
    nav.module-subnav,
    nav.hr-main-nav,
    nav.fn-main-nav {
        padding: 0 10px;
    }

    .nc-tabbar-item,
    .lead-tabbar-item,
    .module-subnav > a,
    .hr-main-nav > a,
    .fn-main-nav > a,
    .nc-tabbar > a,
    .nc-tabbar > button {
        padding: 0 12px;
        font-size: 12px;
    }
}

.nc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 10px;
}

.nc-kpi-card,
.nc-panel,
.nc-mini-card {
    border: 1px solid var(--nc-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--nc-shadow-soft);
}

.nc-kpi-card {
    min-width: 0;
    padding: 14px 16px;
}

a.nc-kpi-card,
.nc-kpi-card.nc-clickable {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

a.nc-kpi-card::after,
.nc-kpi-card.nc-clickable::after {
    content: "→";
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--nc-muted);
    font-weight: 900;
}

a.nc-kpi-card:hover,
.nc-kpi-card.nc-clickable:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .32);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .1);
}

a.nc-kpi-card.active {
    border-color: rgba(41, 81, 87, .38);
    background: linear-gradient(180deg, rgba(246, 248, 246, .98), rgba(255, 255, 255, .94));
    box-shadow: 0 18px 42px rgba(41, 81, 87, .12);
}

a.nc-kpi-card.active::after {
    color: var(--nc-green);
}

.nc-clickable-row {
    cursor: pointer;
}

.nc-clickable-row:hover td {
    background: rgba(41, 81, 87, .045);
}

.nc-kpi-card span,
.nc-mini-card span,
.nc-panel small,
.nc-list-row small,
.nc-table small {
    color: var(--nc-muted);
}

.nc-kpi-card strong {
    display: block;
    margin-top: 5px;
    color: var(--nc-text);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.nc-kpi-card small {
    display: block;
    margin-top: 5px;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 700;
}

.nc-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.sales-desk,
.sales-grid,
.sales-stack,
.sales-card,
.sales-row,
.nc-dashboard,
.nc-grid-main,
.nc-stack,
.nc-card {
    min-width: 0 !important;
    max-width: 100% !important;
}

.sales-grid,
.nc-grid-main {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .75fr) !important;
}

.sales-grid > aside .sales-row {
    grid-template-columns: minmax(0, 1fr) !important;
}

.sales-row strong,
.sales-row span,
.nc-alert,
.nc-list-row,
.nc-card {
    overflow-wrap: anywhere;
}

.nc-panel,
.nc-table,
.bd-table,
.fi-ta-table {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.nc-cell-nowrap,
.nc-table .nc-nowrap,
.bd-table .bd-nowrap {
    min-width: max-content;
    white-space: nowrap !important;
}

.nc-cell-title,
.nc-table .nc-title-cell,
.bd-table .bd-title-cell {
    min-width: 180px;
    max-width: 360px;
    white-space: normal !important;
    word-break: normal !important;
}

.nc-panel {
    min-width: 0;
    padding: 16px;
}

.nc-panel h2,
.nc-panel-head h2 {
    margin: 0;
    color: var(--nc-text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.nc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nc-panel-head a,
.nc-link {
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.nc-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.nc-table th,
.nc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(41, 81, 87, .08);
    text-align: left;
    vertical-align: middle;
    color: var(--nc-text);
    word-break: normal;
    overflow-wrap: normal;
}

.nc-table th {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 850;
}

.nc-table td {
    font-size: 13px;
}

.nc-line-clamp {
    display: -webkit-box;
    max-width: 340px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    color: var(--nc-green);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.nc-badge.success { background: rgba(16, 185, 129, .12); color: #047857; }
.nc-badge.warn { background: rgba(245, 158, 11, .14); color: #92400e; }
.nc-badge.danger { background: rgba(244, 63, 94, .12); color: #be123c; }
.nc-badge.info { background: rgba(59, 130, 246, .1); color: #1d4ed8; }

.nc-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.nc-mini-card {
    padding: 12px;
}

.nc-mini-card strong {
    display: block;
    margin-top: 4px;
    color: var(--nc-text);
    font-size: 20px;
}

.nc-empty {
    padding: 18px;
    border: 1px dashed rgba(41, 81, 87, .2);
    border-radius: 16px;
    color: var(--nc-muted) !important;
    text-align: center !important;
}

/* Egységes szűrő panel (workbench / modul oldalak) */
.nc-filter-panel {
    display: grid;
    gap: 0;
    padding: 14px 16px;
    border: 1px solid var(--nc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--nc-shadow-soft);
}

.dark .nc-filter-panel {
    background: rgba(24, 24, 27, .94);
}

.nc-filter-panel.is-flat {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 18px;
    border-bottom: 1px solid rgb(241 245 249);
    background: transparent;
}

.nc-panel > .nc-filter-panel.is-flat {
    margin: 0 0 12px;
    padding: 0 0 14px;
}

.dark .nc-filter-panel.is-flat {
    border-bottom-color: rgb(63 63 70);
}

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

.nc-filter-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(241 245 249);
}

.dark .nc-filter-top {
    border-bottom-color: rgb(63 63 70);
}

.nc-filter-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--nc-text);
}

.nc-filter-lead {
    margin: 4px 0 0;
    color: var(--nc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.nc-filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nc-filter-preset {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgb(248 250 252);
    color: rgb(71 85 105);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .14s ease, color .14s ease;
}

.nc-filter-preset:hover {
    background: rgba(41, 81, 87, .08);
    color: rgb(41 81 87);
}

.nc-filter-preset.is-active {
    background: rgba(41, 81, 87, .12);
    color: rgb(41 81 87);
    font-weight: 800;
}

.dark .nc-filter-preset {
    background: rgb(39 39 42);
    color: rgb(203 213 225);
}

.dark .nc-filter-preset.is-active {
    background: rgba(70, 98, 101, .35);
    color: rgb(226 232 240);
}

.nc-filter-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.nc-filter-field {
    display: grid;
    gap: 5px;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.nc-filter-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nc-muted);
    line-height: 1.2;
}

.nc-filter-control {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--nc-border);
    border-radius: 11px;
    background: #fff;
    color: var(--nc-text);
    box-sizing: border-box;
    transition: border-color .14s ease;
}

.nc-filter-control:focus-within {
    border-color: rgba(41, 81, 87, .38);
}

.nc-filter-control.is-autocomplete {
    position: relative;
    overflow: visible;
    z-index: 90;
}

.dark .nc-filter-control {
    background: rgb(24 24 27);
    border-color: rgb(63 63 70);
    color: rgb(248 250 252);
}

.nc-filter-control input:not([type="checkbox"]),
.nc-filter-control select,
.nc-filter-control textarea {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    outline: none;
}

.nc-filter-control select {
    appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    cursor: pointer;
}

.nc-filter-control input[type="month"],
.nc-filter-control input[type="date"] {
    cursor: pointer;
}

.nc-filter-field--period .nc-filter-control { min-width: 10.5rem; }
.nc-filter-field--user .nc-filter-control { min-width: 11.5rem; }
.nc-filter-field--module .nc-filter-control { min-width: 12.5rem; }
.nc-filter-field--type .nc-filter-control { min-width: 14rem; }
.nc-filter-field--unit .nc-filter-control { min-width: 10.5rem; }
.nc-filter-field--direction .nc-filter-control { min-width: 10rem; }
.nc-filter-field--payment .nc-filter-control { min-width: 11.5rem; }
.nc-filter-field--partner .nc-filter-control { min-width: 14rem; }
.nc-filter-field--amount .nc-filter-control { min-width: 10.5rem; }
.nc-filter-field--search .nc-filter-control { min-width: 16rem; }
.nc-filter-field--year .nc-filter-control { min-width: 6.5rem; }
.nc-filter-field--month .nc-filter-control { min-width: 6.5rem; }

.nc-filter-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgb(241 245 249);
}

.dark .nc-filter-foot {
    border-top-color: rgb(63 63 70);
}

.nc-filter-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nc-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: border-color .14s ease, background .14s ease;
}

.nc-filter-option:has(input:checked) {
    border-color: rgba(41, 81, 87, .28);
    background: rgba(41, 81, 87, .06);
    color: rgb(41 81 87);
}

.dark .nc-filter-option {
    background: rgb(24 24 27);
    border-color: rgb(63 63 70);
}

.dark .nc-filter-option:has(input:checked) {
    background: rgba(70, 98, 101, .22);
    color: rgb(226 232 240);
}

.nc-filter-checkbox {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 15px;
    accent-color: rgb(41 81 87);
    cursor: pointer;
}

.nc-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nc-filter-submit {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: rgb(41 81 87);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.nc-filter-submit:hover {
    background: rgb(31 61 66);
}

.nc-filter-reset,
.nc-filter-actions .nc-filter-reset {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.nc-filter-reset:hover {
    color: rgb(41 81 87);
    background: rgba(41, 81, 87, .06);
}

.nc-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.nc-filter-chip,
.nc-active-filters span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .07);
    color: rgb(41 81 87);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.nc-filter-chip em {
    color: var(--nc-muted);
    font-style: normal;
    font-weight: 900;
}

.nc-filter-details {
    width: 100%;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(251, 251, 253, .74);
}

.nc-filter-details summary {
    cursor: pointer;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 850;
}

.nc-filter-details .nc-filter-grid {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .nc-filter-grid { gap: 10px; }
    .nc-filter-field { width: 100%; max-width: 100%; }
    .nc-filter-field .nc-filter-control { width: 100%; min-width: 0 !important; }
    .nc-filter-foot { flex-direction: column; align-items: stretch; }
    .nc-filter-actions { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
    .nc-filter-top { flex-direction: column; align-items: flex-start; }
    .nc-filter-presets { gap: 5px; }
    .nc-filter-submit,
    .nc-filter-reset { flex: 1; justify-content: center; }
}

/* Filament táblázat felső szűrői – nc-filter-panel kinézet (lapos, a táblázat kártyáján belül) */
.fi-ta .fi-ta-ctn {
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
}

.fi-ta .fi-ta-filters-above-content-ctn {
    margin: 0;
    padding: 16px 18px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgb(241 245 249) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dark .fi-ta .fi-ta-filters-above-content-ctn {
    background: transparent !important;
    border-bottom-color: rgb(63 63 70) !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters {
    display: grid;
    gap: 12px;
}

.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-header {
    align-items: center;
    gap: 12px;
    padding-bottom: 0;
    border-bottom: 0;
}

.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--nc-text) !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-header .fi-link,
.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-header button {
    min-height: 34px;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--nc-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-header .fi-link:hover,
.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-header button:hover {
    color: rgb(41 81 87) !important;
    background: rgba(41, 81, 87, .06) !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn {
    display: none;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects > .fi-sc.fi-grid {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
    padding-top: 2px;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid rgb(241 245 249);
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles {
    border-top-color: rgb(63 63 70);
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles::before {
    content: 'Gyors szűrők';
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nc-muted);
    line-height: 1.2;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles > .fi-sc.fi-grid {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-grid-col {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-grid-col:nth-child(1) .fi-fo-field { min-width: 12.5rem; }
.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-grid-col:nth-child(2) .fi-fo-field { min-width: 14rem; }
.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-grid-col:nth-child(3) .fi-fo-field { min-width: 14rem; }
.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-grid-col:nth-child(4) .fi-fo-field { min-width: 12rem; }

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-field {
    display: grid;
    gap: 5px;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-field-label-col,
.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-field-content-col {
    width: 100%;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-field-label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nc-muted) !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-field-label-content {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-input-wrp {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--nc-border) !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-input-wrp {
    background: rgb(24 24 27) !important;
    border-color: rgb(63 63 70) !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-input-wrp:focus-within {
    border-color: rgba(41, 81, 87, .38) !important;
    box-shadow: none !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select-native .fi-select-input {
    min-height: 36px;
    padding: 0 24px 0 0;
    border: 0;
    background-color: transparent !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--nc-text) !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    cursor: pointer;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-ctn,
.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-btn {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-btn {
    padding: 0;
    color: var(--nc-text);
    text-align: left;
    cursor: pointer;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-value-ctn {
    display: flex;
    align-items: center;
    min-height: 36px;
    width: 100%;
    padding-right: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-value-label,
.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-placeholder {
    color: var(--nc-text) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-placeholder {
    color: var(--nc-muted) !important;
    font-weight: 500;
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select-native .fi-select-input {
    color: rgb(248 250 252) !important;
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-btn,
.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-value-label,
.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-placeholder {
    color: rgb(248 250 252) !important;
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-placeholder {
    color: rgb(161 161 170) !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-grid-col {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field {
    margin: 0;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label:hover {
    border-color: rgba(41, 81, 87, .22);
    background: rgba(41, 81, 87, .03);
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label {
    background: rgb(24 24 27);
    border-color: rgb(63 63 70);
    color: rgb(248 250 252);
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label:has(.fi-checkbox:checked) {
    border-color: rgba(41, 81, 87, .28);
    background: rgba(41, 81, 87, .06);
    color: rgb(41 81 87);
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label:has(.fi-checkbox:checked) {
    background: rgba(70, 98, 101, .22);
    color: rgb(226 232 240);
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label-content {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.fi-ta .fi-ta-filter-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-bottom: 1px solid rgb(241 245 249);
    border-radius: 0;
    background: transparent;
}

.dark .fi-ta .fi-ta-filter-indicators {
    border-bottom-color: rgb(63 63 70);
}

.fi-ta .fi-ta-filter-indicators .fi-badge {
    border-radius: 999px !important;
    background: rgba(41, 81, 87, .07) !important;
    color: rgb(41 81 87) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

@media (max-width: 900px) {
    .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-grid-col,
    .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-fo-field {
        width: 100%;
        min-width: 0 !important;
    }

    .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-selects .fi-input-wrp {
        width: 100%;
    }

    .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-toggles .fi-fo-field-label {
        white-space: normal;
    }
}

.nc-product-thumb,
.nc-product-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.nc-product-thumb {
    object-fit: cover;
    background: #eef1f2;
}

.nc-product-placeholder {
    border: 1px dashed rgba(41, 81, 87, .22);
    color: var(--nc-muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.nc-bar-row {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.nc-bar-row-sub {
    margin-top: 4px;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 2px solid rgba(184, 134, 11, .35);
}

.nc-bar-row-sub > div:first-child {
    font-size: 12px;
    color: var(--nc-muted);
}

.nc-bar-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--nc-text);
    font-size: 13px;
}

.nc-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
}

.nc-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2));
}

.nc-bar.gold span {
    background: linear-gradient(135deg, var(--nc-gold), #d9bd7a);
}

.nc-report-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 46px rgba(29, 29, 31, .055);
}

.nc-report-header.compact {
    align-items: center;
}

.nc-report-header span {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 850;
}

.nc-report-header h2 {
    margin: 4px 0;
    color: var(--nc-text);
    font-size: 22px;
    font-weight: 900;
}

.nc-report-header p {
    margin: 0;
    color: var(--nc-muted);
    font-size: 13px;
}

.nc-report-filter {
    margin-top: 0;
}

.nc-report-nav {
    margin-bottom: 0;
}

.nc-report-picker {
    margin: 0 0 16px;
}

.nc-report-picker.is-hub {
    margin-top: 4px;
}

.nc-report-picker-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.nc-report-picker-head p {
    margin: 6px 0 0;
    color: var(--nc-muted);
    font-size: 14px;
    max-width: 62ch;
}

.nc-report-picker-head.is-compact {
    margin-bottom: 8px;
}

.nc-report-picker-label {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Report workbench – lekerekített panelek, színkitöltéses KPI-k */
.nc-report-workbench .nc-report-sheet {
    display: grid;
    gap: 18px;
}

.nc-report-section {
    padding: 18px 20px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.nc-report-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nc-report-section-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.nc-report-section-head p {
    margin: 4px 0 0;
    color: var(--nc-muted);
    font-size: 13px;
}

.nc-report-section-head a {
    flex: 0 0 auto;
    color: #295157;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.nc-report-section-head a:hover {
    text-decoration: underline;
}

.nc-report-metric-row {
    display: grid;
    gap: 12px;
}

.nc-report-metric-row.cols-1 { grid-template-columns: 1fr; }
.nc-report-metric-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nc-report-metric-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nc-report-metric-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nc-report-metric-row.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nc-report-metric-row.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.nc-controlling-workbench .nc-controlling-sheet {
    display: grid;
    gap: 16px;
}

.nc-controlling-workbench .nc-controlling-footnotes {
    display: grid;
    gap: 8px;
}

.nc-controlling-workbench .nc-controlling-footnote {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid rgba(41, 81, 87, .24);
    background: rgba(248, 250, 252, .9);
    color: rgb(71, 85, 105);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-workbench .nc-report-metric.tone-positive .nc-report-metric-value {
    color: rgb(41, 81, 87);
}

.nc-controlling-workbench .nc-report-metric.tone-negative .nc-report-metric-value {
    color: rgb(201, 42, 42);
}

.nc-controlling-workbench .nc-report-metric.tone-negative-strong {
    border-color: rgba(201, 42, 42, .28);
    background: rgba(254, 242, 242, .72);
}

.nc-controlling-workbench .nc-report-metric.tone-negative-strong .nc-report-metric-label {
    color: rgb(127, 29, 29);
}

.nc-controlling-workbench .nc-report-metric.tone-negative-strong .nc-report-metric-value {
    color: rgb(185, 28, 28);
    font-size: 1.08rem;
}

.nc-controlling-workbench .nc-report-metric.is-filled:not(.tone-negative-strong) {
    border: 1px solid rgba(41, 81, 87, .1);
    background: rgba(255, 255, 255, .92);
    color: rgb(15, 23, 42);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.nc-controlling-workbench .nc-report-metric.is-filled:not(.tone-negative-strong) .nc-report-metric-label,
.nc-controlling-workbench .nc-report-metric.is-filled:not(.tone-negative-strong) .nc-report-metric-sub {
    color: rgb(100, 116, 139);
}

.nc-controlling-workbench .nc-report-metric.is-link {
    position: relative;
    padding-right: 34px;
}

.nc-controlling-workbench .nc-report-metric.is-link::after {
    content: '→';
    position: absolute;
    top: 16px;
    right: 16px;
    color: rgb(148, 163, 184);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.nc-controlling-workbench .nc-controlling-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nc-controlling-workbench .nc-controlling-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(41, 81, 87, .16);
    background: rgba(255, 255, 255, .92);
    color: rgb(41, 81, 87);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.nc-controlling-workbench .nc-controlling-nav-link:hover {
    background: rgba(248, 250, 252, .98);
}

.nc-controlling-targets {
    display: grid;
    gap: 16px;
}

.nc-controlling-targets-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.nc-controlling-targets-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: rgb(15, 23, 42);
}

.nc-controlling-targets-lead {
    margin: 6px 0 0;
    color: rgb(100, 116, 139);
    font-size: 14px;
    line-height: 1.5;
}

.nc-controlling-targets-back,
.nc-controlling-targets-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.nc-controlling-targets-back {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(41, 81, 87, .16);
    color: rgb(41, 81, 87);
}

.nc-controlling-targets-readonly {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(234, 179, 8, .24);
    background: rgba(255, 251, 235, .92);
    color: rgb(146, 64, 14);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-targets-form {
    display: grid;
    gap: 16px;
}

.nc-controlling-targets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nc-controlling-targets-field.is-wide {
    grid-column: 1 / -1;
}

.nc-controlling-targets-label {
    display: block;
    margin-bottom: 6px;
    color: rgb(100, 116, 139);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nc-controlling-targets-input,
.nc-controlling-targets-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(41, 81, 87, .16);
    background: rgba(255, 255, 255, .96);
    padding: 10px 12px;
    color: rgb(15, 23, 42);
    font-size: 14px;
}

.nc-controlling-targets-textarea {
    resize: vertical;
    min-height: 92px;
}

.nc-controlling-targets-input:disabled,
.nc-controlling-targets-textarea:disabled {
    background: rgba(248, 250, 252, .92);
    color: rgb(100, 116, 139);
}

.nc-controlling-targets-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nc-controlling-targets-btn.is-primary {
    background: rgb(41, 81, 87);
    color: #fff;
}

.nc-controlling-targets-btn.is-danger {
    background: rgba(254, 242, 242, .96);
    border-color: rgba(201, 42, 42, .18);
    color: rgb(185, 28, 28);
}

@media (max-width: 960px) {
    .nc-controlling-targets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nc-controlling-targets-grid {
        grid-template-columns: 1fr;
    }
}

.nc-controlling-plan {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(41, 81, 87, .1);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.nc-controlling-plan-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.nc-controlling-plan-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: rgb(15, 23, 42);
}

.nc-controlling-plan-lead,
.nc-controlling-plan-empty-note {
    margin: 6px 0 0;
    color: rgb(100, 116, 139);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-plan-meta {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, .96);
    border: 1px solid rgba(41, 81, 87, .1);
    color: rgb(71, 85, 105);
    font-size: 12px;
    font-weight: 700;
}

.nc-controlling-plan-empty {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .92);
    border: 1px dashed rgba(41, 81, 87, .16);
}

.nc-controlling-plan-empty-text {
    margin: 0;
    color: rgb(51, 65, 85);
    font-size: 14px;
    font-weight: 600;
}

.nc-controlling-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgb(41, 81, 87);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.nc-controlling-plan-wrap {
    overflow-x: auto;
}

.nc-controlling-plan-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.nc-controlling-plan-table th,
.nc-controlling-plan-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(41, 81, 87, .08);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.nc-controlling-plan-table thead th {
    color: rgb(100, 116, 139);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(248, 250, 252, .82);
}

.nc-controlling-plan-table tbody th {
    color: rgb(15, 23, 42);
    font-weight: 700;
    white-space: nowrap;
}

.nc-controlling-plan-table tbody td {
    color: rgb(51, 65, 85);
    white-space: nowrap;
}

.nc-controlling-plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.nc-controlling-plan-badge.is-good {
    background: rgba(236, 253, 245, .96);
    color: rgb(4, 120, 87);
}

.nc-controlling-plan-badge.is-warning {
    background: rgba(255, 251, 235, .96);
    color: rgb(180, 83, 9);
}

.nc-controlling-plan-badge.is-danger {
    background: rgba(254, 242, 242, .96);
    color: rgb(185, 28, 28);
}

.nc-controlling-plan-badge.is-missing,
.nc-controlling-plan-badge.is-neutral {
    background: rgba(241, 245, 249, .96);
    color: rgb(100, 116, 139);
}

.nc-controlling-comparison-block {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(41, 81, 87, .1);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.nc-controlling-comparison-block-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.nc-controlling-comparison-block-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: rgb(15, 23, 42);
}

.nc-controlling-comparison-block-lead {
    margin: 6px 0 0;
    color: rgb(100, 116, 139);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-comparison-block-meta {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, .96);
    border: 1px solid rgba(41, 81, 87, .1);
    color: rgb(71, 85, 105);
    font-size: 12px;
    font-weight: 700;
}

.nc-controlling-comparison-block-wrap {
    overflow-x: auto;
}

.nc-controlling-comparison-block-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.nc-controlling-comparison-block-table th,
.nc-controlling-comparison-block-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(41, 81, 87, .08);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.nc-controlling-comparison-block-table thead th {
    color: rgb(100, 116, 139);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(248, 250, 252, .82);
}

.nc-controlling-comparison-block-table tbody th {
    color: rgb(15, 23, 42);
    font-weight: 700;
    white-space: nowrap;
}

.nc-controlling-comparison-block-table tbody td {
    color: rgb(51, 65, 85);
    white-space: nowrap;
}

.nc-controlling-comparison-block-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.nc-controlling-comparison-block-badge.is-good {
    background: rgba(236, 253, 245, .96);
    color: rgb(4, 120, 87);
}

.nc-controlling-comparison-block-badge.is-danger {
    background: rgba(254, 242, 242, .96);
    color: rgb(185, 28, 28);
}

.nc-controlling-comparison-block-badge.is-neutral {
    background: rgba(241, 245, 249, .96);
    color: rgb(100, 116, 139);
}

.nc-controlling-trend {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(41, 81, 87, .1);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.nc-controlling-trend-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.nc-controlling-trend-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: rgb(15, 23, 42);
}

.nc-controlling-trend-lead {
    margin: 6px 0 0;
    color: rgb(100, 116, 139);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-trend-meta {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, .96);
    border: 1px solid rgba(41, 81, 87, .1);
    color: rgb(71, 85, 105);
    font-size: 12px;
    font-weight: 700;
}

.nc-controlling-trend-wrap {
    overflow-x: auto;
}

.nc-controlling-trend-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.nc-controlling-trend-table th,
.nc-controlling-trend-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(41, 81, 87, .08);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.nc-controlling-trend-table thead th {
    color: rgb(100, 116, 139);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(248, 250, 252, .82);
}

.nc-controlling-trend-table tbody th {
    min-width: 140px;
    color: rgb(15, 23, 42);
    font-weight: 700;
}

.nc-controlling-trend-table tbody td {
    color: rgb(51, 65, 85);
    white-space: nowrap;
}

.nc-controlling-trend-month {
    display: block;
    margin-bottom: 6px;
}

.nc-controlling-trend-bar {
    display: block;
    width: 100%;
    max-width: 120px;
    height: 6px;
    border-radius: 999px;
    background: rgba(226, 232, 240, .92);
    overflow: hidden;
}

.nc-controlling-trend-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(41, 81, 87, .72), rgba(41, 81, 87, .96));
}

.nc-controlling-trend-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nc-controlling-trend-summary-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .92);
    border: 1px solid rgba(41, 81, 87, .08);
}

.nc-controlling-trend-summary-label {
    color: rgb(100, 116, 139);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nc-controlling-trend-summary-card strong {
    color: rgb(15, 23, 42);
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 960px) {
    .nc-controlling-trend-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nc-controlling-trend-summary {
        grid-template-columns: 1fr;
    }
}

.nc-controlling-comparison-wrap {
    overflow-x: auto;
}

.nc-controlling-comparison {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.nc-controlling-comparison th,
.nc-controlling-comparison td {
    padding: 10px 12px;
    border-bottom: 1px solid rgb(226, 232, 240);
    text-align: right;
    white-space: nowrap;
}

.nc-controlling-comparison th:first-child,
.nc-controlling-comparison td:first-child {
    text-align: left;
}

.nc-controlling-comparison thead th {
    color: rgb(71, 85, 105);
    font-weight: 600;
    background: rgb(248, 250, 252);
}

.nc-controlling-comparison tbody th {
    color: rgb(51, 65, 85);
    font-weight: 500;
}

.nc-controlling-workbench .nc-controlling-ai-block {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(41, 81, 87, .1);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.nc-controlling-workbench .nc-controlling-ai-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.nc-controlling-workbench .nc-controlling-ai-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: rgb(15, 23, 42);
}

.nc-controlling-workbench .nc-controlling-ai-lead,
.nc-controlling-workbench .nc-controlling-ai-meta,
.nc-controlling-workbench .nc-controlling-ai-disclaimer {
    margin: 6px 0 0;
    color: rgb(100, 116, 139);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-workbench .nc-controlling-ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: rgb(41, 81, 87);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.nc-controlling-workbench .nc-controlling-ai-btn:disabled {
    opacity: .65;
    cursor: wait;
}

.nc-controlling-workbench .nc-controlling-ai-readonly {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .96);
    border: 1px dashed rgba(41, 81, 87, .16);
    color: rgb(100, 116, 139);
    font-size: 13px;
    font-weight: 600;
}

.nc-controlling-workbench .nc-controlling-ai-loading {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 246, 255, .96);
    border: 1px solid rgba(59, 130, 246, .18);
    color: rgb(30, 64, 175);
    font-size: 13px;
    font-weight: 600;
}

.nc-controlling-workbench .nc-controlling-ai-error {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(254, 242, 242, .96);
    border: 1px solid rgba(239, 68, 68, .18);
}

.nc-controlling-workbench .nc-controlling-ai-error-title {
    margin: 0;
    color: rgb(185, 28, 28);
    font-size: 14px;
    font-weight: 800;
}

.nc-controlling-workbench .nc-controlling-ai-error-text {
    margin: 0;
    color: rgb(127, 29, 29);
    font-size: 13px;
    line-height: 1.5;
}

.nc-controlling-workbench .nc-controlling-ai-empty {
    padding: 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .92);
    border: 1px dashed rgba(41, 81, 87, .16);
}

.nc-controlling-workbench .nc-controlling-ai-empty-text {
    margin: 0;
    color: rgb(71, 85, 105);
    font-size: 13px;
    font-weight: 600;
}

.nc-controlling-workbench .nc-controlling-ai-result {
    display: grid;
    gap: 14px;
}

.nc-controlling-workbench .nc-controlling-ai-summary-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.nc-controlling-workbench .nc-controlling-ai-section-title {
    margin: 0;
    color: rgb(15, 23, 42);
    font-size: 14px;
    font-weight: 800;
}

.nc-controlling-workbench .nc-controlling-ai-confidence {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.nc-controlling-workbench .nc-controlling-ai-confidence.is-high {
    background: rgba(236, 253, 245, .96);
    color: rgb(4, 120, 87);
}

.nc-controlling-workbench .nc-controlling-ai-confidence.is-medium {
    background: rgba(255, 251, 235, .96);
    color: rgb(180, 83, 9);
}

.nc-controlling-workbench .nc-controlling-ai-confidence.is-low {
    background: rgba(254, 242, 242, .96);
    color: rgb(185, 28, 28);
}

.nc-controlling-workbench .nc-controlling-ai-confidence.is-neutral {
    background: rgba(241, 245, 249, .96);
    color: rgb(100, 116, 139);
}

.nc-controlling-workbench .nc-controlling-ai-summary {
    margin: 0;
    color: rgb(51, 65, 85);
    font-size: 14px;
    line-height: 1.6;
}

.nc-controlling-workbench .nc-controlling-ai-section {
    display: grid;
    gap: 8px;
}

.nc-controlling-workbench .nc-controlling-ai-list {
    margin: 0;
    padding-left: 18px;
    color: rgb(51, 65, 85);
    font-size: 13px;
    line-height: 1.55;
}

.nc-controlling-workbench .nc-controlling-ai-list li + li {
    margin-top: 4px;
}

.nc-controlling-workbench .nc-controlling-ai-list.is-risk li::marker {
    color: rgb(185, 28, 28);
}

.nc-controlling-workbench .nc-controlling-ai-list.is-action li::marker {
    color: rgb(41, 81, 87);
}

.nc-controlling-workbench .nc-controlling-ai-list.is-question li::marker {
    color: rgb(100, 116, 139);
}

.nc-controlling-drilldown {
    display: grid;
    gap: 16px;
}

.nc-controlling-drilldown-head {
    display: grid;
    gap: 10px;
}

.nc-controlling-drilldown-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: rgb(41, 81, 87);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.nc-controlling-drilldown-back:hover {
    text-decoration: underline;
}

.nc-controlling-drilldown-title {
    margin: 0;
    color: rgb(15, 23, 42);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.nc-controlling-drilldown-meta {
    margin: 4px 0 0;
    color: rgb(100, 116, 139);
    font-size: 13px;
}

.nc-controlling-drilldown-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(248, 250, 252, .95);
    color: rgb(71, 85, 105);
    font-size: 13px;
}

.nc-controlling-drilldown-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgb(226, 232, 240);
    border-radius: 12px;
    background: rgb(255, 255, 255);
}

.nc-controlling-drilldown-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13px;
}

.nc-controlling-drilldown-table th,
.nc-controlling-drilldown-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgb(241, 245, 249);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.nc-controlling-drilldown-table thead th {
    color: rgb(71, 85, 105);
    font-weight: 600;
    background: rgb(248, 250, 252);
}

.nc-controlling-drilldown-table tbody th[scope="row"] {
    color: rgb(51, 65, 85);
    font-weight: 600;
}

.nc-controlling-drilldown-table td:nth-child(n+5),
.nc-controlling-drilldown-table th:nth-child(n+5) {
    text-align: right;
}

.nc-controlling-drilldown-link {
    color: rgb(41, 81, 87);
    font-weight: 600;
    text-decoration: none;
}

.nc-controlling-drilldown-link:hover {
    text-decoration: underline;
}

.nc-controlling-drilldown-empty {
    margin: 0;
    padding: 18px 16px;
    color: rgb(100, 116, 139);
    font-size: 14px;
}

.nc-controlling-drilldown-operating {
    display: grid;
    gap: 18px;
}

.nc-controlling-drilldown-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.nc-controlling-drilldown-summary-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
}

.nc-controlling-drilldown-summary-label {
    color: rgb(100, 116, 139);
    font-size: 12px;
    font-weight: 600;
}

.nc-controlling-drilldown-summary-card strong {
    color: rgb(15, 23, 42);
    font-size: 1.05rem;
    font-weight: 700;
}

.nc-controlling-drilldown-section {
    display: grid;
    gap: 10px;
}

.nc-controlling-drilldown-section-title {
    margin: 0;
    color: rgb(51, 65, 85);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .nc-controlling-drilldown-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nc-controlling-drilldown-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .nc-report-metric-row.cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nc-report-metric-row.cols-6,
    .nc-report-metric-row.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nc-report-metric {
    display: grid;
    gap: 6px;
    min-width: 0;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    transition: transform .16s ease, box-shadow .16s ease;
}

.nc-report-metric.is-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.nc-report-metric-label {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.nc-report-metric-value {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.nc-report-metric-sub {
    color: var(--nc-muted);
    font-size: 12px;
}

.nc-report-metric.is-filled {
    border: 0;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.nc-report-metric.is-filled .nc-report-metric-label,
.nc-report-metric.is-filled .nc-report-metric-sub {
    color: rgba(255, 255, 255, .88);
}

.nc-report-metric.is-filled.tone-success { background: linear-gradient(135deg, #2f9e44, #37b24d); }
.nc-report-metric.is-filled.tone-danger { background: linear-gradient(135deg, #e03131, #f03e3e); }
.nc-report-metric.is-filled.tone-info { background: linear-gradient(135deg, #1971c2, #228be6); }
.nc-report-metric.is-filled.tone-purple { background: linear-gradient(135deg, #6741d9, #7950f2); }
.nc-report-metric.is-filled.tone-warning { background: linear-gradient(135deg, #e67700, #f08c00); }
.nc-report-metric.is-filled.tone-neutral { background: linear-gradient(135deg, #495057, #868e96); }

.nc-report-picker-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.nc-report-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.nc-report-picker.is-hub .nc-report-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.nc-report-picker-row .nc-report-card,
.nc-report-picker-grid .nc-report-card {
    min-height: 118px;
}

.nc-report-picker.is-hub .nc-report-link-intro {
    margin-bottom: 10px;
}

.nc-report-link-intro {
    display: grid;
    gap: 2px;
}

.nc-report-link-intro strong {
    font-size: 13px;
    font-weight: 850;
}

.nc-report-link-intro span {
    color: var(--nc-muted);
    font-size: 13px;
}

.nc-report-split {
    display: grid;
    gap: 14px;
}

.nc-report-split-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nc-report-split-3 .nc-report-section {
    margin: 0;
    height: 100%;
}

.nc-report-chart {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.nc-report-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.nc-report-chart-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 850;
}

.nc-report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--nc-muted);
    font-size: 12px;
}

.nc-report-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 999px;
    vertical-align: middle;
}

.nc-report-chart-wrap {
    display: grid;
    gap: 8px;
}

.nc-report-line-chart {
    width: 100%;
    height: 220px;
    overflow: visible;
}

.nc-trend-line-chart .nc-report-chart-head.is-legend-only {
    justify-content: flex-end;
    margin-bottom: 4px;
}

.nc-trend-chart-body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
}

.nc-trend-chart-yaxis {
    position: relative;
    height: 192px;
    color: var(--nc-muted);
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.nc-trend-chart-yaxis span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    white-space: nowrap;
}

.nc-trend-chart-main {
    display: grid;
    gap: 8px;
    position: relative;
    min-height: 220px;
}

.nc-trend-chart-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nc-trend-chart-grid span {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(41, 81, 87, .1);
}

.nc-trend-chart-plot {
    position: relative;
    height: 192px;
    margin-bottom: 0;
}

.nc-trend-chart-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Hónapnevek a pontok alatt, azonos x-skálán (2026-11-02). */
.nc-trend-chart-xlabels {
    position: relative;
    height: 16px;
    color: var(--nc-muted);
    font-size: 11px;
}

.nc-trend-chart-xlabels span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nc-trend-chart-xlabels span:first-child {
    transform: none;
}

.nc-trend-chart-xlabels span:last-child:not(:first-child) {
    transform: translateX(-100%);
}

.nc-trend-chart-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-bottom: -4px;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
    z-index: 2;
    cursor: default;
}

.nc-trend-chart-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(41, 81, 87, .08);
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 750;
}

.nc-trend-chart-summary strong {
    color: var(--nc-text);
    font-weight: 850;
    white-space: nowrap;
}

.dark .nc-trend-chart-dot {
    border-color: rgba(28, 28, 30, .96);
}

.dark .nc-trend-chart-grid span {
    border-top-color: rgba(255, 255, 255, .08);
}

.dark .nc-trend-chart-summary {
    border-top-color: rgba(255, 255, 255, .08);
}

@media (max-width: 980px) {
    .nc-trend-chart-body {
        grid-template-columns: 1fr;
    }

    .nc-trend-chart-yaxis {
        display: none;
    }
}

.nc-report-chart-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
    color: var(--nc-muted);
    font-size: 11px;
    text-align: center;
}

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

.nc-report-donut-block {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.nc-report-donut-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.nc-report-donut-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 850;
}

.nc-report-donut-head span {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 750;
}

.nc-report-donut-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.nc-report-donut-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
}

.nc-report-donut-hole {
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
}

.nc-report-donut-legend {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
}

.nc-report-donut-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.nc-report-donut-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.nc-report-donut-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-report-rank-list {
    display: grid;
    gap: 8px;
}

.nc-report-rank-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(41, 81, 87, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: inherit;
    text-decoration: none;
    transition: background .14s ease, box-shadow .14s ease;
}

.nc-report-rank-row:hover {
    background: rgba(41, 81, 87, .04);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.nc-report-rank-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
}

.nc-report-rank-values {
    text-align: right;
}

.nc-report-rank-values strong {
    display: block;
    font-size: 12px;
    white-space: nowrap;
}

.nc-report-rank-values small {
    display: block;
    margin-top: 2px;
    color: var(--nc-muted);
    font-size: 11px;
    white-space: nowrap;
}

.nc-report-area-chart {
    width: 100%;
    height: 240px;
    overflow: visible;
}

.dark .nc-report-section,
.dark .nc-report-chart,
.dark .nc-report-donut-block {
    background: rgba(28, 28, 30, .82);
    border-color: rgba(255, 255, 255, .09);
}

.dark .nc-report-metric:not(.is-filled) {
    background: rgba(28, 28, 30, .82);
    border-color: rgba(255, 255, 255, .09);
}

.dark .nc-report-rank-row {
    background: rgba(28, 28, 30, .72);
    border-color: rgba(255, 255, 255, .08);
}

.dark .nc-report-donut-hole {
    background: rgba(28, 28, 30, .96);
}

.dark .nc-report-section-head a {
    color: #9fd0d1;
}

@media (max-width: 980px) {
    .nc-report-split-3,
    .nc-report-metric-row.cols-3,
    .nc-report-metric-row.cols-4 {
        grid-template-columns: 1fr;
    }

    .nc-report-metric-row.cols-2 {
        grid-template-columns: 1fr;
    }

    .nc-report-chart-split,
    .nc-report-donut-layout {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

.nc-filter-active {
    margin: 4px 0 0;
    color: #295157;
    font-size: 13px;
    font-weight: 750;
}

.dark .nc-filter-active {
    color: #9fd0d1;
}

.nc-report-filter.is-note {
    padding-bottom: 4px;
}

.nc-report-picker-groups {
    display: grid;
    gap: 14px;
}

.nc-report-picker-group h3 {
    margin: 0 0 8px;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nc-report-card {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 118px;
    padding: 16px 18px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nc-report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.nc-report-card strong {
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

.nc-report-card-badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .1);
    color: #295157;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.nc-report-card-desc {
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.5;
}

.nc-report-card-params {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 2px;
}

.nc-report-card-params span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .06);
    color: var(--nc-muted);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
}

.nc-report-card span {
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.nc-report-card:hover {
    border-color: rgba(41, 81, 87, .28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.nc-report-card.is-active {
    border-color: rgba(41, 81, 87, .42);
    background: rgba(41, 81, 87, .05);
    box-shadow: inset 0 0 0 1px rgba(41, 81, 87, .08);
}

.dark .nc-report-card {
    background: rgba(28, 28, 30, .82);
    border-color: rgba(255, 255, 255, .09);
}

.dark .nc-report-card.is-active {
    background: rgba(41, 81, 87, .18);
    border-color: rgba(159, 208, 209, .28);
}

.dark .nc-report-card-badge {
    background: rgba(159, 208, 209, .12);
    color: #9fd0d1;
}

.dark .nc-report-card-params span {
    background: rgba(255, 255, 255, .06);
}

@media (max-width: 640px) {
    .nc-report-picker-grid,
    .nc-report-picker.is-hub .nc-report-picker-grid,
    .nc-report-picker-row {
        grid-template-columns: 1fr;
    }
}

.nc-financial-filter-grid .nc-filter-control input[type="date"] {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.nc-financial-filter-foot {
    align-items: center;
    gap: 12px;
}

.nc-financial-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nc-financial-preset {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.nc-financial-preset.is-active,
.nc-financial-preset:hover {
    border-color: rgba(41, 81, 87, .34);
    background: rgba(41, 81, 87, .06);
}

.nc-financial-dashboard {
    display: grid;
    gap: 18px;
}

.nc-financial-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.nc-financial-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.nc-financial-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 16px 18px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.nc-financial-stat-card span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .92;
}

.nc-financial-stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.nc-financial-stat-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
}

.nc-financial-stat-icon svg {
    width: 22px;
    height: 22px;
}

.nc-financial-stat-card.tone-success { background: linear-gradient(135deg, #2f9e44, #37b24d); }
.nc-financial-stat-card.tone-danger { background: linear-gradient(135deg, #e03131, #f03e3e); }
.nc-financial-stat-card.tone-info { background: linear-gradient(135deg, #1971c2, #228be6); }
.nc-financial-stat-card.tone-purple { background: linear-gradient(135deg, #6741d9, #7950f2); }
.nc-financial-stat-card.tone-warning { background: linear-gradient(135deg, #e67700, #f08c00); }
.nc-financial-stat-card.tone-neutral { background: linear-gradient(135deg, #495057, #868e96); }

.nc-financial-chart-panel .nc-panel-head {
    align-items: center;
}

.nc-financial-chart-panel h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
}

.nc-financial-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--nc-muted);
}

.nc-financial-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 999px;
    vertical-align: middle;
}

.nc-financial-chart-wrap {
    display: grid;
    gap: 8px;
}

.nc-financial-chart {
    width: 100%;
    height: 220px;
    overflow: visible;
}

.nc-financial-chart-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
    color: var(--nc-muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 980px) {
    .nc-financial-stat-row {
        grid-template-columns: 1fr;
    }

    .nc-expense-stat-cards,
    .nc-expense-donut-grid {
        grid-template-columns: 1fr;
    }

    .nc-donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.nc-expense-statistics {
    display: grid;
    gap: 18px;
}

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

.nc-expense-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 16px 18px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.nc-expense-stat-card span {
    display: block;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nc-expense-stat-values strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.2;
}

.nc-expense-stat-values small {
    display: block;
    margin-top: 4px;
    color: var(--nc-muted);
    font-size: 13px;
}

.nc-expense-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
}

.nc-expense-stat-icon svg {
    width: 22px;
    height: 22px;
}

.nc-expense-stat-card.tone-success .nc-expense-stat-icon { background: #40c057; }
.nc-expense-stat-card.tone-info .nc-expense-stat-icon { background: #228be6; }
.nc-expense-stat-card.tone-danger .nc-expense-stat-icon { background: #fa5252; }

.nc-expense-annual-panel {
    margin-top: 0;
}

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

.nc-donut-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.nc-donut-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
}

.nc-donut-hole {
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
}

.dark .nc-donut-hole {
    background: rgba(28, 28, 30, .96);
}

.nc-donut-legend {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
}

.nc-donut-legend-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.nc-donut-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.nc-donut-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-donut-legend-row strong {
    font-size: 12px;
    white-space: nowrap;
}

.nc-donut-legend-row small {
    color: var(--nc-muted);
    white-space: nowrap;
}

.dark .nc-expense-stat-card {
    background: rgba(28, 28, 30, .82);
    border-color: rgba(255, 255, 255, .09);
}

.nc-filter-scope {
    margin: 4px 0 0;
    color: #6e6e73;
    font-size: 13px;
}

.nc-report-filter .nc-export-actions {
    margin-left: auto;
}

.nc-report-tabs,
.nc-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nc-report-tabs.single {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.nc-export-actions.compact {
    flex-wrap: nowrap;
}

.nc-report-tabs a,
.nc-export-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--nc-text);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.nc-report-tabs a.active,
.nc-report-tabs a:hover,
.nc-export-actions a:hover {
    border-color: rgba(41, 81, 87, .28);
    background: rgba(41, 81, 87, .08);
}

.nc-kpi-grid-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nc-kpi-primary {
    min-height: 132px;
}

.nc-kpi-primary strong {
    font-size: 30px;
}

.nc-report-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
    gap: 14px;
    align-items: stretch;
}

.nc-chart-panel {
    min-height: 360px;
}

.nc-column-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 230px;
    padding-top: 18px;
}

.nc-column-item {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 7px;
    min-width: 0;
    height: 230px;
}

.nc-column-value {
    min-height: 28px;
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
}

.nc-column-track {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 150px;
    border-radius: 14px;
    background: rgba(41, 81, 87, .06);
    overflow: hidden;
}

.nc-column-track span {
    width: 100%;
    min-height: 6px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, var(--nc-green-2), var(--nc-green));
}

.nc-column-item small {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.nc-chart-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

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

.nc-report-visual {
    min-width: 0;
}

.nc-report-visual.is-full {
    grid-column: 1 / -1;
}

.nc-report-visual.is-half {
    grid-column: span 1;
}

.nc-report-visual .nc-report-section {
    margin: 0;
    height: 100%;
}

.nc-report-visual .nc-report-metric-row {
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .nc-report-visuals {
        grid-template-columns: 1fr;
    }

    .nc-report-visual.is-half {
        grid-column: 1 / -1;
    }
}

.nc-invoice-monthly-chart .nc-invoice-chart-body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 56px;
    gap: 10px;
    min-height: 300px;
}

.nc-invoice-chart-yaxis {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    align-items: center;
    color: var(--nc-muted);
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    padding: 22px 0 78px;
}

.nc-invoice-chart-yaxis-right {
    text-align: left;
    color: #b8860b;
    padding-left: 2px;
}

.nc-invoice-chart-main {
    position: relative;
    min-height: 300px;
}

.nc-invoice-chart-grid {
    position: absolute;
    inset: 22px 0 78px;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    pointer-events: none;
}

.nc-invoice-chart-grid span {
    border-top: 1px dashed rgba(41, 81, 87, .1);
}

.nc-invoice-chart-columns {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    gap: 8px;
    align-items: end;
    height: 100%;
    min-height: 300px;
    padding: 22px 0 0;
}

.nc-invoice-chart-col {
    display: grid;
    grid-template-rows: auto 1fr 28px auto;
    gap: 4px;
    min-width: 0;
    height: 236px;
}

.nc-invoice-chart-col-top {
    min-height: 28px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.nc-invoice-chart-net-label {
    display: block;
    color: var(--nc-text);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    padding: 0 2px;
}

.nc-invoice-chart-bar-track {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 130px;
    border-radius: 10px 10px 0 0;
    background: transparent;
}

.nc-invoice-chart-col.is-empty .nc-invoice-chart-bar-track {
    background: rgba(41, 81, 87, .03);
    border: 1px dashed rgba(41, 81, 87, .08);
    border-bottom: 0;
}

.nc-invoice-chart-bar {
    width: min(100%, 32px);
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #4dabf7, #228be6);
    transition: height .2s ease;
}

.nc-invoice-chart-count-track {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 28px;
    border-top: 1px solid rgba(41, 81, 87, .08);
    background: rgba(250, 176, 5, .06);
    border-radius: 0 0 8px 8px;
}

.nc-invoice-chart-count-bar {
    width: min(100%, 18px);
    min-height: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #ffd43b, #fab005);
}

.nc-invoice-chart-col-foot {
    display: grid;
    gap: 2px;
    text-align: center;
    padding-top: 2px;
}

.nc-invoice-chart-col-foot strong {
    color: var(--nc-text);
    font-size: 11px;
    font-weight: 850;
}

.nc-invoice-chart-col-foot small {
    color: #b8860b;
    font-size: 10px;
    font-weight: 800;
}

.nc-invoice-chart-col-foot small.is-zero {
    color: var(--nc-muted);
    font-weight: 650;
}

.nc-hbar-chart .nc-hbar-list,
.nc-comparison-bars-list {
    display: grid;
    gap: 10px;
}

.nc-hbar-row {
    display: grid;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: transform .14s ease;
}

.nc-hbar-row:hover {
    transform: translateX(2px);
}

.nc-hbar-meta,
.nc-comparison-bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.nc-hbar-meta strong,
.nc-comparison-bar-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.nc-hbar-meta span,
.nc-comparison-bar-head span {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.nc-hbar-track,
.nc-comparison-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    overflow: hidden;
}

.nc-hbar-track span,
.nc-comparison-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nc-green-2), var(--nc-green));
}

.nc-comparison-bar-track.is-expense span {
    background: linear-gradient(90deg, #ff8787, #fa5252);
}

.nc-comparison-bars-meta {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 750;
}

.dark .nc-invoice-chart-col.is-empty .nc-invoice-chart-bar-track {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
}

.dark .nc-invoice-chart-grid span {
    border-top-color: rgba(255, 255, 255, .08);
}

.dark .nc-invoice-chart-count-track {
    background: rgba(250, 176, 5, .08);
    border-top-color: rgba(255, 255, 255, .08);
}

@media (max-width: 980px) {
    .nc-invoice-chart-body {
        grid-template-columns: 1fr;
    }

    .nc-invoice-chart-yaxis,
    .nc-invoice-chart-yaxis-right {
        display: none;
    }
}

.nc-chart-summary span {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(41, 81, 87, .055);
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 750;
}

.nc-chart-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--nc-text);
}

.nc-top-grid,
.nc-attention-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nc-attention-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.nc-compact-row,
.nc-attention-card {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    background: var(--nc-surface);
    color: inherit;
    text-decoration: none;
}

.nc-compact-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 7px;
}

.nc-compact-row strong {
    min-width: 0;
    color: var(--nc-text);
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nc-compact-row span,
.nc-attention-card span,
.nc-attention-card small {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 800;
}

.nc-attention-card strong {
    color: var(--nc-text);
    font-size: 22px;
    line-height: 1.1;
}

.nc-compact-row:hover,
.nc-attention-card:hover {
    border-color: rgba(41, 81, 87, .26);
    background: rgba(41, 81, 87, .055);
}

.nc-list {
    display: grid;
    gap: 8px;
}

.nc-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 16px;
    background: var(--nc-surface);
    color: var(--nc-text);
    text-decoration: none;
}

.nc-list-row span {
    min-width: 0;
}

.nc-list-row strong,
.nc-list-row small {
    display: block;
}

.dark .nc-kpi-card,
.dark .nc-panel,
.dark .nc-mini-card,
.dark .nc-report-header {
    background: rgba(28, 28, 30, .86);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.dark .nc-kpi-card strong,
.dark .nc-mini-card strong,
.dark .nc-panel h2,
.dark .nc-panel-head h2,
.dark .nc-report-header h2,
.dark .nc-table td,
.dark .nc-list-row,
.dark .nc-bar-row > div:first-child {
    color: #F5F5F7;
}

.dark .nc-page-subtitle,
.dark .nc-kpi-card span,
.dark .nc-kpi-card small,
.dark .nc-mini-card span,
.dark .nc-report-header p,
.dark .nc-report-header span,
.dark .nc-list-row small,
.dark .nc-table small,
.dark .nc-table th {
    color: #A1A1AA;
}

.dark a.nc-kpi-card.active,
.dark .nc-report-tabs a.active,
.dark .nc-report-tabs a:hover,
.dark .nc-export-actions a:hover,
.dark .nc-compact-row:hover,
.dark .nc-attention-card:hover {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.dark .nc-report-tabs a,
.dark .nc-export-actions a {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
    color: #F5F5F7;
}

.dark .nc-list-row,
.dark .nc-column-track,
.dark .nc-chart-summary span,
.dark .nc-compact-row,
.dark .nc-attention-card {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .09);
}

.dark .nc-chart-summary strong,
.dark .nc-compact-row strong,
.dark .nc-attention-card strong {
    color: #F5F5F7;
}

.dark .nc-table td,
.dark .nc-table th {
    border-color: rgba(255, 255, 255, .08);
}

.nc-notification-bell {
    position: relative;
    margin-left: .5rem;
    z-index: 10000;
}

.nc-notification-bell summary {
    list-style: none;
}

.nc-notification-bell summary::-webkit-details-marker {
    display: none;
}

.nc-notification-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    color: #295157;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.nc-notification-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

.nc-notification-icon {
    width: 18px;
    height: 18px;
}

.nc-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #D97706;
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

.nc-notification-panel {
    position: fixed;
    top: 86px;
    right: 24px;
    z-index: 10000;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100vh - 112px);
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    /* Teljesen fedő háttér, backdrop-filter nélkül (2026-09-11): a félig átlátszó panelen átütött az alatta
       lévő oldal, Safariban a felső sáv saját elmosásával egymásba ágyazva „szellemképet” rajzolt. */
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.nc-notification-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.nc-notification-panel__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.nc-notification-panel__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6B7280;
}

.nc-notification-link,
.nc-notification-item__actions button {
    border: 0;
    background: transparent;
    color: #295157;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
}

.nc-notification-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.nc-notification-filter-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nc-notification-filters label {
    flex: 0 0 auto;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    color: #4B5563;
    background: #F8FAFC;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.nc-notification-filters label:hover {
    border-color: rgba(41, 81, 87, .28);
    background: rgba(41, 81, 87, .08);
    color: #295157;
}

#nc-notification-filter-all:checked ~ .nc-notification-filters label[for="nc-notification-filter-all"],
#nc-notification-filter-important:checked ~ .nc-notification-filters label[for="nc-notification-filter-important"],
#nc-notification-filter-approval:checked ~ .nc-notification-filters label[for="nc-notification-filter-approval"],
#nc-notification-filter-overdue:checked ~ .nc-notification-filters label[for="nc-notification-filter-overdue"],
#nc-notification-filter-today:checked ~ .nc-notification-filters label[for="nc-notification-filter-today"],
#nc-notification-filter-system:checked ~ .nc-notification-filters label[for="nc-notification-filter-system"] {
    background: #295157;
    border-color: #295157;
    color: #fff;
}

.nc-notification-list {
    max-height: min(420px, calc(100vh - 270px));
    overflow-y: auto;
}

.nc-notification-item {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

#nc-notification-filter-important:checked ~ .nc-notification-list .nc-notification-item:not(.nc-filter-important),
#nc-notification-filter-approval:checked ~ .nc-notification-list .nc-notification-item:not(.nc-filter-approval),
#nc-notification-filter-overdue:checked ~ .nc-notification-list .nc-notification-item:not(.nc-filter-overdue),
#nc-notification-filter-today:checked ~ .nc-notification-list .nc-notification-item:not(.nc-filter-today),
#nc-notification-filter-system:checked ~ .nc-notification-list .nc-notification-item:not(.nc-filter-system) {
    display: none;
}

.nc-notification-item:hover {
    background: rgba(41, 81, 87, .045);
}

.nc-notification-item__meta,
.nc-notification-item__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6B7280;
}

.nc-notification-item__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
    color: #111827;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.nc-notification-item__title span,
.nc-priority-label {
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    color: #295157;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
}

.nc-notification-item p {
    margin: 4px 0 8px;
    color: #4B5563;
    font-size: 12px;
    line-height: 1.45;
}

.nc-notification-item__actions a {
    color: #295157;
    font-weight: 700;
    text-decoration: none;
}

.nc-priority-urgent {
    box-shadow: inset 3px 0 0 #DC2626;
}

.nc-priority-high {
    box-shadow: inset 3px 0 0 #D97706;
}

.nc-notification-empty {
    padding: 24px 16px;
    color: #6B7280;
    font-size: 13px;
    text-align: center;
}

.nc-notification-all {
    display: block;
    padding: 13px 16px;
    background: #F8FAFC;
    color: #295157;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.fi-sidebar-item-badge {
    border-radius: 999px !important;
    font-weight: 800 !important;
}

/* Aktív menüpont badge: világos háttér + sötétzöld szöveg (közös navigációs kontraszt). */
.fi-sidebar-item-active .fi-sidebar-item-badge,
.fi-sidebar-item.fi-active .fi-sidebar-item-badge,
.fi-sidebar-item-active a .fi-badge,
.fi-sidebar-item.fi-active a .fi-badge {
    background: #f7f4ee !important;
    background-color: #f7f4ee !important;
    color: #295157 !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-badge *,
.fi-sidebar-item.fi-active .fi-sidebar-item-badge *,
.fi-sidebar-item-active a .fi-badge *,
.fi-sidebar-item.fi-active a .fi-badge * {
    color: #295157 !important;
}

.dark .nc-notification-trigger,
.dark .nc-notification-panel {
    background: rgba(24, 24, 27, .96);
    border-color: rgba(255, 255, 255, .1);
}

.dark .nc-notification-panel {
    background: #18181b;
}

.dark .nc-notification-panel__title,
.dark .nc-notification-item__title {
    color: #F5F5F7;
}

.dark .nc-notification-panel__subtitle,
.dark .nc-notification-item p,
.dark .nc-notification-item__meta,
.dark .nc-notification-item__actions {
    color: #A1A1AA;
}

.dark .nc-notification-filters label,
.dark .nc-notification-all {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
}

@media (max-width: 1100px) {
    .nc-two-col,
    .sales-grid,
    .nc-grid-main,
    .nc-report-hero-grid,
    .nc-top-grid,
    .nc-report-header {
        grid-template-columns: 1fr !important;
    }

    .nc-report-filter {
        justify-content: flex-start;
    }

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

@media (max-width: 760px) {
    .nc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nc-column-chart {
        overflow-x: auto;
        grid-template-columns: repeat(12, minmax(48px, 1fr));
    }

    .nc-kpi-card strong {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .nc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .nc-chart-summary {
        grid-template-columns: 1fr;
    }

    .nc-notification-panel {
        top: 74px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 92px);
    }
}

/* Filament listák – egységes kereső és eszköztár */
.fi-resource-orders.fi-resource-list-records-page,
.fi-resource-purchase-orders.fi-resource-list-records-page,
.fi-resource-purchase-receipts.fi-resource-list-records-page,
.fi-resource-customers.fi-resource-list-records-page,
.fi-resource-import-shipments.fi-resource-list-records-page {
    --nc-list-search-width: min(100%, 420px);
    --nc-list-search-min-width: min(100%, 260px);
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-header-toolbar,
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-header-toolbar,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-header-toolbar,
.fi-resource-customers.fi-resource-list-records-page .fi-ta-header-toolbar,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-header-toolbar {
    justify-content: flex-end !important;
    gap: 12px 16px !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid rgb(241 245 249);
}

.dark .fi-resource-orders.fi-resource-list-records-page .fi-ta-header-toolbar,
.dark .fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-header-toolbar,
.dark .fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-header-toolbar,
.dark .fi-resource-customers.fi-resource-list-records-page .fi-ta-header-toolbar,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-header-toolbar {
    border-bottom-color: rgb(63 63 70);
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(1):not(:empty),
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(1):not(:empty),
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(1):not(:empty),
.fi-resource-customers.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(1):not(:empty),
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(1):not(:empty) {
    margin-inline-end: auto !important;
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(2),
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(2),
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(2),
.fi-resource-customers.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(2),
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-header-toolbar > :nth-child(2) {
    margin-inline-start: 0 !important;
    margin-inline-end: 10px !important;
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field,
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-search-field,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-search-field,
.fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-search-field {
    width: var(--nc-list-search-width);
    min-width: var(--nc-list-search-min-width);
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp {
    min-height: 48px;
    border-radius: 16px !important;
    border: 1.5px solid rgba(41, 81, 87, .22) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94)) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input,
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-search-field .fi-input,
.fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field .fi-input,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-search-field .fi-input {
    min-height: 46px;
    font-size: 15px !important;
    font-weight: 650 !important;
}

.fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within {
    border-color: rgba(41, 81, 87, .48) !important;
    box-shadow: 0 0 0 4px rgba(41, 81, 87, .10), 0 14px 30px rgba(15, 23, 42, .08) !important;
}

.dark .fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.dark .fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.dark .fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.dark .fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp,
.dark .fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp {
    background: linear-gradient(180deg, rgba(39, 39, 42, .95), rgba(24, 24, 27, .92)) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    box-shadow: none;
}

.dark .fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.dark .fi-resource-purchase-orders.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.dark .fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.dark .fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within,
.dark .fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-search-field .fi-input-wrp:focus-within {
    border-color: rgba(45, 212, 191, .42) !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .12) !important;
}

/* Import szállítmány / Bevételezések: AboveContent panel — Szűrők fejléc + Alkalmazás/Alaphelyzet/Szűrés */
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta:has(.nc-order-filter-toolbar) .fi-ta-filters-header,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta:has(.nc-order-filter-toolbar) .fi-ta-filters-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    margin-top: 2px;
}

.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn .fi-btn-color-danger,
.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn button[wire\:click="resetTableFiltersForm"],
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn .fi-btn-color-danger,
.fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn button[wire\:click="resetTableFiltersForm"] {
    --c-400: 148 163 184 !important;
    --c-500: 100 116 139 !important;
    --c-600: 71 85 105 !important;
    background: transparent !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, .28) !important;
    box-shadow: none !important;
}

.dark .fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn button[wire\:click="resetTableFiltersForm"],
.dark .fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn button[wire\:click="resetTableFiltersForm"] {
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, .28) !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar > .fi-sc.fi-grid,
.fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr);
}

@media (max-width: 1440px) {
    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar > .fi-sc.fi-grid,
    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid {
        grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr));
    }

    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar .fi-grid-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar > .fi-sc.fi-grid,
    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar > .fi-sc.fi-grid,
    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fi-resource-import-shipments.fi-resource-list-records-page .nc-order-filter-toolbar .fi-grid-col:first-child {
        grid-column: auto;
    }
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-import-filter-advanced {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(41, 81, 87, .1);
}

.dark .fi-resource-import-shipments.fi-resource-list-records-page .isl-import-filter-advanced {
    border-top-color: rgba(255, 255, 255, .08);
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-import-filter-advanced > .fi-section-content {
    display: grid;
    gap: 18px;
    padding-top: 10px !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-filter-section {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-filter-section + .isl-filter-section {
    padding-top: 14px !important;
    border-top: 1px solid rgba(148, 163, 184, .18) !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-filter-section .fi-section-header-heading {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    text-transform: none !important;
    color: #475569 !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-filter-section-grid > .fi-sc.fi-grid {
    gap: 12px 14px !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-import-filter-advanced .fi-fo-field-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #334155 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-warning-filter-grid > .fi-sc.fi-grid {
    gap: 8px 16px !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-warning-filter-grid .fi-fo-field {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-warning-filter-grid .fi-fo-field-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 550 !important;
    text-transform: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-header-toolbar {
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 8px 14px !important;
}

.fi-resource-import-shipments.fi-resource-list-records-page .isl-column-manager-trigger {
    min-height: 36px;
}

@media (max-width: 390px) {
    .fi-resource-import-shipments.fi-resource-list-records-page .isl-column-manager-trigger {
        display: none !important;
    }

    .fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn,
    .fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn {
        flex-direction: column;
        align-items: stretch;
    }

    .fi-resource-import-shipments.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn .fi-btn,
    .fi-resource-purchase-receipts.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn .fi-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .fi-resource-import-shipments.fi-resource-list-records-page .isl-warning-filter-grid > .fi-sc.fi-grid,
    .fi-resource-import-shipments.fi-resource-list-records-page .isl-filter-section-grid > .fi-sc.fi-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .fi-resource-purchase-receipts.fi-resource-list-records-page .nc-order-filter-toolbar > .fi-sc.fi-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .fi-resource-purchase-receipts.fi-resource-list-records-page .nc-filament-filter-toggles--inline > .fi-sc.fi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search {
    margin-bottom: 4px;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search .fi-fo-field {
    width: 100%;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search .fi-input-wrp {
    min-height: 48px;
    border-radius: 16px !important;
    border: 1.5px solid rgba(41, 81, 87, .22) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94)) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search .fi-input-wrp {
    background: linear-gradient(180deg, rgba(39, 39, 42, .92), rgba(24, 24, 27, .92)) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: none;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search .fi-input {
    min-height: 46px;
    font-size: 15px !important;
    font-weight: 650 !important;
}

.fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search .fi-input-wrp:focus-within {
    border-color: rgba(41, 81, 87, .48) !important;
    box-shadow: 0 0 0 4px rgba(41, 81, 87, .10), 0 14px 30px rgba(15, 23, 42, .08) !important;
}

.dark .fi-ta .fi-ta-filters-above-content-ctn .nc-filament-filter-search .fi-input-wrp:focus-within {
    border-color: rgba(45, 212, 191, .42) !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, .12) !important;
}

.fi-resource-customers.fi-resource-list-records-page .fi-ta-search-field {
    display: none !important;
}

.fi-resource-list-records-page .fi-ta:has(.nc-filament-filter-search) .fi-ta-search-field,
.fi-resource-list-records-page .fi-ta:has(.nc-document-filter-toolbar) .fi-ta-search-field,
.fi-resource-list-records-page .fi-ta:has(.nc-order-filter-toolbar) .fi-ta-search-field,
.fi-resource-orders.fi-resource-list-records-page .fi-ta-search-field {
    display: none !important;
}

/* Bizonylat / rendelés lista – kereső + fő szűrők egy sorban, teljes szélesség */
.fi-ta:has(.nc-document-filter-toolbar) .fi-ta-filters-above-content-ctn,
.fi-ta:has(.nc-order-filter-toolbar) .fi-ta-filters-above-content-ctn {
    padding: 10px 14px 8px !important;
    max-width: 100%;
    overflow: visible;
}

.fi-ta:has(.nc-document-filter-toolbar) .fi-ta-filters,
.fi-ta:has(.nc-order-filter-toolbar) .fi-ta-filters {
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.fi-ta:has(.nc-document-filter-toolbar) .fi-ta-filters-header,
.fi-ta:has(.nc-order-filter-toolbar) .fi-ta-filters-header {
    display: none;
}

.nc-document-filter-toolbar,
.nc-order-filter-toolbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nc-document-filter-toolbar > .fi-sc.fi-grid,
.nc-order-filter-toolbar > .fi-sc.fi-grid {
    display: grid !important;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 10px 14px;
    align-items: start;
}

.nc-document-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid,
.nc-order-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid {
    grid-template-columns: minmax(0, 1.75fr) repeat(4, minmax(0, 1fr));
}

.nc-document-filter-toolbar .fi-grid-col,
.nc-order-filter-toolbar .fi-grid-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.nc-document-filter-toolbar .fi-sc-component,
.nc-document-filter-toolbar [data-field-wrapper],
.nc-order-filter-toolbar .fi-sc-component,
.nc-order-filter-toolbar [data-field-wrapper] {
    min-width: 0;
    max-width: 100%;
}

.nc-document-filter-toolbar .fi-fo-field,
.nc-order-filter-toolbar .fi-fo-field {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 4px !important;
    align-items: start !important;
    width: 100%;
    min-width: 0;
}

.nc-document-filter-toolbar .fi-fo-field-label-col,
.nc-document-filter-toolbar .fi-fo-field-content-col,
.nc-order-filter-toolbar .fi-fo-field-label-col,
.nc-order-filter-toolbar .fi-fo-field-content-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
}

.nc-document-filter-toolbar .fi-fo-field-label-col,
.nc-order-filter-toolbar .fi-fo-field-label-col {
    grid-column: 1;
    grid-row: 1;
}

.nc-document-filter-toolbar .fi-fo-field-content-col,
.nc-order-filter-toolbar .fi-fo-field-content-col {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.nc-document-filter-toolbar .fi-fo-field-label,
.nc-order-filter-toolbar .fi-fo-field-label {
    display: block !important;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nc-muted) !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-document-filter-toolbar .fi-input-wrp,
.nc-document-filter-toolbar .fi-fo-select-native .fi-select-input,
.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input,
.nc-order-filter-toolbar .fi-input-wrp,
.nc-order-filter-toolbar .fi-fo-select-native .fi-select-input,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--nc-border) !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .14s ease;
}

.dark .nc-document-filter-toolbar .fi-input-wrp,
.dark .nc-document-filter-toolbar .fi-fo-select-native .fi-select-input,
.dark .nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input,
.dark .nc-order-filter-toolbar .fi-input-wrp,
.dark .nc-order-filter-toolbar .fi-fo-select-native .fi-select-input,
.dark .nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input {
    background: rgb(24 24 27) !important;
    border-color: rgb(63 63 70) !important;
}

.nc-document-filter-toolbar .fi-input-wrp:focus-within,
.nc-document-filter-toolbar .fi-fo-select-native .fi-select-input:focus-within,
.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input:focus-within,
.nc-order-filter-toolbar .fi-input-wrp:focus-within,
.nc-order-filter-toolbar .fi-fo-select-native .fi-select-input:focus-within,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input:focus-within {
    border-color: rgba(41, 81, 87, .38) !important;
    box-shadow: none !important;
}

.dark .nc-document-filter-toolbar .fi-input-wrp:focus-within,
.dark .nc-document-filter-toolbar .fi-fo-select-native .fi-select-input:focus-within,
.dark .nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input:focus-within,
.dark .nc-order-filter-toolbar .fi-input-wrp:focus-within,
.dark .nc-order-filter-toolbar .fi-fo-select-native .fi-select-input:focus-within,
.dark .nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) > .fi-select-input:focus-within {
    border-color: rgba(159, 208, 209, .42) !important;
}

.nc-document-filter-toolbar .fi-select-input-btn,
.nc-document-filter-toolbar .fi-select-input-ctn,
.nc-order-filter-toolbar .fi-select-input-btn,
.nc-order-filter-toolbar .fi-select-input-ctn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nc-document-filter-toolbar .fi-input,
.nc-order-filter-toolbar .fi-input {
    min-height: 34px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.nc-document-filter-toolbar .fi-fo-select-native .fi-select-input,
.nc-order-filter-toolbar .fi-fo-select-native .fi-select-input {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 24px 0 0;
    border: 0 !important;
    background-color: transparent !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--nc-text) !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    cursor: pointer;
    box-shadow: none !important;
}

.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-ctn,
.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-btn,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-ctn,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-btn {
    min-height: 34px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-value-label,
.nc-document-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-placeholder,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-value-label,
.nc-order-filter-toolbar .fi-fo-select:not(.fi-fo-select-native) .fi-select-input-placeholder {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .nc-document-filter-toolbar > .fi-sc.fi-grid,
    .nc-document-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid,
    .nc-order-filter-toolbar > .fi-sc.fi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nc-document-filter-toolbar .fi-grid-col:first-child,
    .nc-order-filter-toolbar .fi-grid-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .nc-document-filter-toolbar > .fi-sc.fi-grid,
    .nc-document-filter-toolbar:has(.fi-grid-col:nth-child(5)) > .fi-sc.fi-grid,
    .nc-order-filter-toolbar > .fi-sc.fi-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nc-document-filter-toolbar .fi-grid-col:first-child,
    .nc-order-filter-toolbar .fi-grid-col:first-child {
        grid-column: auto;
    }
}

.nc-document-filter-advanced {
    margin-top: 2px;
}

.nc-document-filter-advanced > .fi-section {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.nc-document-filter-advanced .fi-section-header {
    min-height: 0;
    padding: 0 !important;
}

.nc-document-filter-advanced .fi-section-header-heading {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--nc-muted) !important;
}

.nc-document-filter-advanced .fi-section-content {
    padding: 6px 0 0 !important;
    display: grid;
    gap: 8px;
}

.nc-filament-filter-selects--compact > .fi-sc.fi-grid {
    gap: 8px !important;
}

.nc-filament-filter-selects--compact .fi-fo-field-label {
    font-size: 11px;
    font-weight: 750;
}

.nc-filament-filter-selects--compact .fi-input-wrp {
    min-height: 34px;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.nc-filament-filter-toggles--inline {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: 0 !important;
}

.nc-filament-filter-toggles--inline::before {
    content: none !important;
    display: none !important;
}

.nc-filament-filter-toggles--inline > .fi-sc.fi-grid {
    gap: 6px !important;
}

.nc-filament-filter-toggles--inline .fi-fo-field-label {
    min-height: 32px;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    border-radius: 999px !important;
}

.nc-filament-filter-toggles--inline .fi-checkbox-input {
    width: 14px;
    height: 14px;
}

.fi-resource-warehouse-documents.fi-resource-list-records-page .fi-ta-search-field {
    display: none !important;
}

/* Felső szűrős listák – görgetésmentes, tömör oszlopok */
.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-page-content,
.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn),
.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-ctn,
.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-main {
    max-width: 100%;
    min-width: 0;
}

.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-content,
.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-table {
    overflow-x: visible !important;
    max-width: 100%;
}

.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-table table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-text-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.fi-resource-list-records-page .fi-ta:has(.fi-ta-filters-above-content-ctn) .fi-ta-filters-above-content-ctn {
    max-width: 100%;
}

/* HR munkapult */
.hr-desk {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--nc-text);
}

.hr-block-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.hr-subblock-title {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
}

/* Modul alfunkció navigáció – fül sáv (lásd nc-tabbar blokk fent) */
.nc-module-subnav-slot,
.products-subnav {
    margin: 0 0 12px;
}

.module-subnav-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow: visible;
}

.module-subnav-wrap.nc-tab-shell {
    overflow: visible;
}

.module-subnav-wrap .module-subnav {
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 10px 28px rgba(29, 29, 31, .045);
}

.dark .module-subnav-wrap .module-subnav {
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.module-subnav {
    max-height: none;
    align-items: stretch;
}

/* Modul alfunkció chip navigáció – legördülő csoportokkal */
.module-subnav-wrap--with-menus,
.nc-workbench-panel > :is(
    .module-subnav-wrap--with-menus,
    .fn-workbench-nav--with-menus,
    .hr-workbench-nav--with-menus
) {
    overflow: visible !important;
    /* 29, nem 30 (2026-09-11): a Filament felső sáv és a mobil oldalmenü is 30-as, és a fülsáv később jön a
       DOM-ban, így azonos szinten a fülsáv rajzolódott rájuk (Értesítések panel, mobil menü). */
    z-index: 29;
}

.fi-page-content:has(.module-subnav-wrap--with-menus),
.fi-page:has(.module-subnav-wrap--with-menus),
.fi-page-content:has(.fn-workbench-nav--with-menus),
.fi-page:has(.fn-workbench-nav--with-menus),
.fi-page-content:has(.hr-workbench-nav--with-menus),
.fi-page:has(.hr-workbench-nav--with-menus) {
    overflow: visible !important;
}

.nc-workbench-panel > :is(
    .module-subnav-wrap--with-menus,
    .fn-workbench-nav--with-menus,
    .hr-workbench-nav--with-menus
) .nc-nav-actions {
    position: relative;
    z-index: 4;
}

.module-subnav--with-menus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    max-height: none !important;
    overflow: visible !important;
    padding: 3px 2px 7px;
}

.module-subnav-wrap.nc-tab-shell {
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(29, 29, 31, .045);
    overflow: visible;
}

.dark .module-subnav-wrap.nc-tab-shell {
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.module-subnav-wrap.nc-tab-shell .nc-tabbar-row {
    border-radius: 18px 18px 0 0;
}

.module-subnav-wrap.nc-tab-shell:not(:has(.nc-nav-actions)) .nc-tabbar-row .nc-tabbar,
.module-subnav-wrap.nc-tab-shell:not(:has(.nc-nav-actions)) .nc-tabbar {
    border-bottom: 0 !important;
    border-radius: 0;
}

.module-subnav-wrap .nc-tabbar {
    gap: 0;
    padding: 0;
    background: transparent !important;
}

.dark .module-subnav-wrap .nc-tabbar {
    background: transparent !important;
}

.module-subnav-wrap .nc-tabbar > a {
    position: relative;
    margin: 0;
    min-height: var(--nc-tabbar-height);
    height: 100%;
    padding: 0 var(--nc-tabbar-pad-x);
    border-right: 1px solid rgba(41, 81, 87, .1);
    border-radius: 0;
    color: #6e6e73;
    font-weight: var(--nc-tabbar-weight);
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.module-subnav-wrap .nc-tabbar-row .nc-tabbar > a {
    min-height: var(--nc-tabbar-height) !important;
    height: 100% !important;
}

.module-subnav-wrap .nc-tabbar > a:last-child {
    border-right: 0;
}

.module-subnav-wrap .nc-tabbar > a::after {
    bottom: 0;
    height: 3px;
}

.module-subnav-wrap .nc-tabbar > a:hover {
    color: #295157;
    background: rgba(41, 81, 87, .05);
}

.module-subnav-wrap .nc-tabbar > a.is-active,
.fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .module-subnav-wrap .nc-tabbar > a.is-active,
.nc-workbench-panel .module-subnav-wrap .nc-tabbar > a.is-active {
    color: #295157;
    font-weight: var(--nc-tabbar-active-weight);
    background: transparent;
    box-shadow: inset 0 -3px 0 #295157;
    z-index: 1;
}

.module-subnav-wrap .nc-tabbar > a.is-active::after {
    height: 0;
    box-shadow: none;
}

.dark .module-subnav-wrap .nc-tabbar > a {
    border-right-color: rgba(255, 255, 255, .08);
    color: #a8a8b3;
}

.dark .module-subnav-wrap .nc-tabbar > a:hover {
    color: #e8f6f6;
    background: rgba(255, 255, 255, .04);
}

.dark .module-subnav-wrap .nc-tabbar > a.is-active,
.dark .fi-resource-list-records-page .fi-page-content:has(.module-subnav-wrap) .module-subnav-wrap .nc-tabbar > a.is-active,
.dark .nc-workbench-panel .module-subnav-wrap .nc-tabbar > a.is-active {
    color: #e8f6f6;
    background: transparent;
    box-shadow: inset 0 -3px 0 #9fd0d1;
}

.module-subnav-menu {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.nc-nav-actions .module-subnav-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: calc(var(--nc-tabbar-height) - 10px);
    padding: 0 12px;
    border: 1px solid rgba(41, 81, 87, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #295157;
    font-size: 12px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(29, 29, 31, .035);
}

.nc-nav-actions .module-subnav-menu > summary::-webkit-details-marker {
    display: none;
}

.nc-nav-actions .module-subnav-menu > summary::after {
    content: "▾";
    margin-left: 2px;
    font-size: 10px;
    opacity: .82;
}

.nc-nav-actions .module-subnav-menu > summary:hover,
.nc-nav-actions .module-subnav-menu[open]:not(.is-active) > summary {
    border-color: rgba(41, 81, 87, .28);
}

.nc-nav-actions .module-subnav-menu.is-active > summary,
.nc-nav-actions .module-subnav-menu.is-active[open] > summary {
    background: #295157;
    color: #fff;
    border-color: #295157;
    box-shadow: 0 12px 24px rgba(41, 81, 87, .15);
}

.module-subnav-menu-panel {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 8px);
    z-index: 1200;
    display: grid;
    gap: 4px;
    min-width: max(230px, 100%);
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.module-subnav-menu:last-of-type .module-subnav-menu-panel {
    left: auto;
    right: 0;
}

.module-subnav-menu-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 0;
    padding: 10px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 850;
    box-shadow: none;
    white-space: normal;
    text-decoration: none;
}

.module-subnav-menu-panel a:hover {
    background: rgba(41, 81, 87, .06);
    color: #295157;
}

.module-subnav-menu-panel a.is-active {
    background: rgba(41, 81, 87, .1);
    color: #295157;
}

.module-subnav-wrap--products-warehouse .module-subnav-menu-panel a {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.module-subnav-wrap--products-warehouse .module-subnav-menu-panel a > svg,
.module-subnav-wrap--products-warehouse .module-subnav-menu-panel a > .nc-tabbar-icon {
    flex: 0 0 auto;
}

.module-subnav-wrap--products-warehouse .module-subnav-menu-panel a > span:not(.nc-tabbar-badge) {
    flex: 1 1 auto;
    text-align: left;
}

.module-subnav-wrap--products-warehouse .module-subnav-menu-panel a > .nc-tabbar-badge {
    flex: 0 0 auto;
    margin-left: auto;
}

.dark .nc-nav-actions .module-subnav-menu > summary,
.dark .nc-nav-actions .module-subnav-menu.is-active > summary,
.dark .nc-nav-actions .module-subnav-menu.is-active[open] > summary {
    background: rgba(39, 39, 42, .88);
    border-color: rgba(255, 255, 255, .11);
    color: #d7e3e4;
    box-shadow: none;
}

.dark .nc-nav-actions .module-subnav-menu.is-active > summary,
.dark .nc-nav-actions .module-subnav-menu.is-active[open] > summary {
    background: #3a666d;
    border-color: #3a666d;
    color: #fff;
}

.dark .module-subnav-menu-panel {
    background: rgba(24, 24, 27, .98);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.dark .module-subnav-menu-panel a {
    color: #f5f5f7;
}

.dark .module-subnav-menu-panel a:hover,
.dark .module-subnav-menu-panel a.is-active {
    background: rgba(70, 98, 101, .24);
    color: #d7e3e4;
}

@media (max-width: 760px) {
    .nc-nav-actions .module-subnav-menu > summary {
        min-height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }
}

.hr-workbench-nav--with-menus .hr-main-nav {
    position: relative;
    z-index: 2;
    overflow-x: auto !important;
    flex-wrap: nowrap;
}

.hr-workbench-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 9px 14px 11px;
    border-top: 1px solid rgba(41, 81, 87, .1);
    background: rgba(41, 81, 87, .035);
    border-radius: 0 0 18px 18px;
}

.hr-workbench-context-label {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6e6e73;
}

.hr-context-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    min-width: 0;
}

.hr-context-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #295157;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

.hr-context-links a:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: rgba(41, 81, 87, .28);
    font-weight: 500;
    pointer-events: none;
}

.hr-context-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hr-context-links a.is-active {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hr-context-links-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(198, 163, 91, .22);
    color: #755f22;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.dark .hr-workbench-nav {
    background: rgba(24, 24, 27, .92);
}

.dark .hr-workbench-context {
    background: rgba(255, 255, 255, .03);
    border-top-color: rgba(255, 255, 255, .08);
}

.dark .hr-workbench-context-label {
    color: #a1a1aa;
}

.dark .hr-context-links a {
    color: #d4d4d8;
}

.dark .hr-context-links a:not(:last-child)::after {
    color: rgba(255, 255, 255, .18);
}

.hr-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hr-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.hr-section-nav a.is-active {
    border-color: rgba(41, 81, 87, .35);
    background: rgba(41, 81, 87, .08);
    color: var(--nc-green);
}

.hr-section-nav-badge {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(198, 163, 91, .18);
    font-size: 10px;
    font-weight: 900;
}

.hr-quick-actions-block {
    display: grid;
    gap: 10px;
}

.hr-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.hr-quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fff;
    color: var(--nc-text);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    transition: transform .16s ease, border-color .16s ease;
}

.hr-quick-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.hr-quick-action-btn.primary {
    background: #295157;
    border-color: #295157;
    color: #fff;
}

.hr-quick-action-btn em {
    color: var(--nc-muted);
    font-style: normal;
    font-weight: 900;
}

.hr-quick-action-btn.primary em {
    color: rgba(255, 255, 255, .75);
}

.hr-click-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hr-click-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.hr-card-arrow {
    display: block;
    margin-top: 4px;
    color: var(--nc-green);
    font-style: normal;
    font-size: 11px;
    font-weight: 850;
}

.hr-mini-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.hr-mini-stat {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fbfbfd;
    position: relative;
}

.hr-mini-stat strong {
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.hr-mini-stat span {
    font-size: 11px;
    font-weight: 800;
    color: var(--nc-muted);
}

.hr-mini-stat em {
    position: absolute;
    top: 10px;
    right: 10px;
    font-style: normal;
    color: var(--nc-muted);
    font-size: 12px;
}

.hr-presence-split {
    margin-top: 4px;
}

.hr-panel-nested {
    padding: 12px;
    background: #fbfbfd;
    box-shadow: none;
}

.hr-panel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hr-monthly-compact .hr-monthly-grid {
    margin-top: 0;
}

.hr-monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.hr-monthly-card {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fff;
}

.hr-monthly-card strong {
    font-size: 20px;
}

.hr-monthly-card span {
    font-size: 12px;
    font-weight: 800;
    color: var(--nc-muted);
}

.hr-monthly-card em {
    justify-self: end;
    font-style: normal;
    color: var(--nc-muted);
}

.hr-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.hr-link-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--nc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--nc-shadow-soft);
}

.hr-link-card strong {
    font-size: 15px;
}

.hr-link-card small {
    color: var(--nc-muted);
    font-size: 12px;
}

.hr-link-card em {
    margin-top: 4px;
    color: var(--nc-green);
    font-style: normal;
    font-size: 12px;
    font-weight: 850;
}

.dark .hr-main-nav,
.dark .hr-link-card,
.dark .hr-quick-action-btn,
.dark .hr-monthly-card {
    background: rgba(24, 24, 27, .92);
    border-color: rgba(255, 255, 255, .09);
}

.dark .hr-main-nav a.is-active {
    background: #466265;
    border-color: #466265;
}

.dark .hr-mini-stat,
.dark .hr-panel-nested {
    background: rgba(39, 39, 42, .72);
}

@media (max-width: 900px) {
    .hr-mini-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hr-mini-stat-row,
    .hr-quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.hr-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hr-hero-copy h1 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 900;
    letter-spacing: -.02em;
}

.hr-hero-copy p {
    max-width: 760px;
    margin: 6px 0 0;
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hr-hero-kicker {
    margin: 0 0 4px;
    color: var(--nc-green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hr-primary-action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--nc-green);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(41, 81, 87, .18);
}

.hr-quick-bar {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border: 1px solid var(--nc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--nc-shadow-soft);
}

.hr-quick-bar-label {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hr-quick-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.hr-quick-bar-action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-green);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.hr-quick-bar-action:hover {
    border-color: rgba(41, 81, 87, .28);
}

.hr-quick-bar-action.primary {
    background: #295157;
    border-color: #295157;
    color: #fff;
}

.hr-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hr-subnav {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--nc-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--nc-shadow-soft);
}

.hr-subnav-group {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
}

.hr-subnav-label {
    padding-top: 7px;
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hr-subnav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hr-subnav-items a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-green);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.hr-subnav-items a:hover {
    border-color: rgba(41, 81, 87, .28);
}

.hr-subnav-items a.is-active {
    background: #295157;
    border-color: #295157;
    color: #fff;
    box-shadow: 0 10px 22px rgba(41, 81, 87, .14);
}

.hr-subnav-badge,
.hr-view-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(198, 163, 91, .18);
    color: #755f22;
    font-size: 11px;
    font-weight: 900;
}

.hr-view-tabs a.is-active .hr-view-badge,
.hr-subnav-items a.is-active .hr-subnav-badge {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.dark .hr-subnav {
    background: rgba(24, 24, 27, .92);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: none;
}

.dark .hr-subnav-items a {
    background: rgba(28, 28, 30, .88);
    border-color: rgba(255, 255, 255, .1);
    color: #d7e3e4;
}

.dark .hr-subnav-items a.is-active {
    background: #466265;
    border-color: #466265;
    color: #fff;
}

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

.hr-category-card,
.hr-kpi-card,
.hr-panel,
.hr-stat-card,
.hr-approval-card,
.hr-export-card {
    border: 1px solid var(--nc-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--nc-shadow-soft);
}

.hr-category-card {
    display: grid;
    gap: 4px;
    min-height: 96px;
    padding: 15px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hr-category-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.hr-category-card span,
.hr-kpi-card span {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 800;
}

.hr-category-card strong,
.hr-kpi-card strong {
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.hr-category-card small,
.hr-kpi-card small {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 700;
}

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

.hr-kpi-card {
    display: grid;
    gap: 4px;
    min-height: 96px;
    padding: 14px 15px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.hr-kpi-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.hr-kpi-card strong {
    font-size: 24px;
}

.hr-panel {
    padding: 16px 18px;
}

.hr-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hr-panel h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.hr-panel-lead {
    margin: 4px 0 0;
    color: var(--nc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.hr-link,
.hr-link-inline {
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.hr-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hr-quick-action {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.hr-quick-action.primary {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}

.hr-risk-list,
.hr-data-list,
.hr-closing-list {
    display: grid;
    gap: 8px;
}

.hr-panel-head-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hr-risk-panel {
    padding-top: 14px;
    padding-bottom: 14px;
}

.hr-risk-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.hr-risk-summary-card {
    display: grid;
    gap: 4px;
    min-height: 88px;
    padding: 11px 12px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 14px;
    background: #fbfbfd;
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.hr-risk-summary-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .24);
    background: #fff;
}

.hr-risk-summary-card.warning { border-color: rgba(249, 115, 22, .22); }
.hr-risk-summary-card.danger { border-color: rgba(220, 38, 38, .2); }

.hr-risk-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hr-risk-summary-top strong {
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hr-risk-summary-title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.hr-risk-summary-card small {
    color: var(--nc-muted);
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-empty.compact {
    padding: 14px;
    font-size: 12px;
}

.dark .hr-risk-summary-card {
    background: rgba(39, 39, 42, .72);
    border-color: rgba(255, 255, 255, .08);
}

.dark .hr-risk-summary-card:hover {
    background: rgba(46, 46, 50, .86);
}

.hr-risk-row,
.hr-data-row,
.hr-closing-row {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 16px;
    background: #fbfbfd;
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease;
}

.hr-risk-row {
    grid-template-columns: minmax(0, 1.4fr) auto;
    border-left-width: 4px;
}

.hr-risk-row.warning,
.hr-risk-row.danger {
    border-left-color: #f97316;
}

.hr-risk-row.danger {
    border-left-color: #dc2626;
}

.hr-data-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) auto;
}

.hr-data-row.compact,
.hr-closing-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.hr-closing-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, .5fr) auto;
}

.hr-risk-row:hover,
.hr-data-row:hover,
.hr-closing-row:hover {
    border-color: rgba(41, 81, 87, .22);
    background: #fff;
}

.hr-risk-main strong,
.hr-data-main strong,
.hr-closing-main strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.hr-risk-main small,
.hr-data-main small,
.hr-data-mid small,
.hr-closing-main small {
    display: block;
    margin-top: 2px;
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.35;
}

.hr-risk-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.hr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.hr-pill.success { background: #ecfdf5; color: #047857; }
.hr-pill.warning { background: #fff7ed; color: #c2410c; }
.hr-pill.danger { background: #fef2f2; color: #b91c1c; }
.hr-pill.info { background: #eff6ff; color: #1d4ed8; }

.hr-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 14px;
    align-items: start;
}

.hr-stack {
    display: grid;
    gap: 14px;
}

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

.hr-stat-card {
    padding: 12px;
    box-shadow: none;
}

.hr-stat-card strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.hr-stat-card small {
    display: block;
    margin-top: 2px;
    color: var(--nc-muted);
    font-size: 12px;
}

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

.hr-approval-grid.wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hr-approval-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.hr-approval-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.hr-approval-card strong {
    font-size: 30px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hr-approval-card span {
    font-size: 14px;
    font-weight: 900;
}

.hr-approval-card small {
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.35;
}

.hr-approval-card em {
    margin-top: 6px;
    color: var(--nc-green);
    font-style: normal;
    font-size: 12px;
    font-weight: 850;
}

.hr-approval-card.warning { border-color: rgba(249, 115, 22, .24); }
.hr-approval-card.success { border-color: rgba(22, 163, 74, .2); }

.hr-closing-progress {
    display: grid;
    gap: 4px;
    justify-items: stretch;
}

.hr-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .1);
    overflow: hidden;
}

.hr-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #295157, #4f8f97);
}

.hr-closing-progress small {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.hr-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.hr-export-card {
    display: grid;
    gap: 6px;
    min-height: 120px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.hr-export-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.hr-export-card strong {
    font-size: 16px;
    font-weight: 900;
}

.hr-export-card small {
    color: var(--nc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.hr-export-card em {
    margin-top: auto;
    color: var(--nc-green);
    font-style: normal;
    font-size: 12px;
    font-weight: 850;
}

.hr-empty {
    padding: 20px;
    border: 1px dashed rgba(41, 81, 87, .18);
    border-radius: 16px;
    color: var(--nc-muted);
    text-align: center;
    font-size: 13px;
}

.hr-category-card.warning,
.hr-kpi-card.warning { border-color: rgba(249, 115, 22, .24); }
.hr-category-card.danger,
.hr-kpi-card.danger { border-color: rgba(220, 38, 38, .22); }
.hr-category-card.success,
.hr-kpi-card.success { border-color: rgba(22, 163, 74, .2); }
.hr-category-card.info,
.hr-kpi-card.info { border-color: rgba(37, 99, 235, .2); }

.dark .hr-category-card,
.dark .hr-kpi-card,
.dark .hr-panel,
.dark .hr-stat-card,
.dark .hr-approval-card,
.dark .hr-export-card {
    background: rgba(24, 24, 27, .92);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: none;
}

.dark .hr-view-tabs a {
    background: rgba(28, 28, 30, .88);
    border-color: rgba(255, 255, 255, .1);
    color: #d7e3e4;
}

.dark .hr-view-tabs a.is-active {
    background: #466265;
    border-color: #466265;
    color: #fff;
}

.dark .hr-risk-row,
.dark .hr-data-row,
.dark .hr-closing-row {
    background: rgba(39, 39, 42, .72);
    border-color: rgba(255, 255, 255, .08);
}

.dark .hr-quick-bar {
    background: rgba(24, 24, 27, .92);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: none;
}

.dark .hr-quick-bar-action {
    background: rgba(39, 39, 42, .9);
    border-color: rgba(255, 255, 255, .1);
    color: #d7e3e4;
}

.dark .hr-quick-bar-action.primary {
    background: #466265;
    border-color: #466265;
    color: #fff;
}

.dark .hr-quick-action {
    background: rgba(39, 39, 42, .9);
    border-color: rgba(255, 255, 255, .1);
    color: #d7e3e4;
}

.dark .hr-quick-action.primary {
    background: #f5f5f7;
    border-color: #f5f5f7;
    color: #1d1d1f;
}

@media (max-width: 1180px) {
    .hr-category-grid,
    .hr-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hr-subnav-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hr-subnav-label {
        padding-top: 0;
    }

    .hr-two-col,
    .hr-approval-grid {
        grid-template-columns: 1fr;
    }

    .hr-data-row,
    .hr-closing-row,
    .hr-risk-row {
        grid-template-columns: 1fr;
    }

    .hr-risk-meta {
        justify-items: start;
    }
}

@media (max-width: 680px) {
    .hr-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hr-quick-bar {
        align-items: flex-start;
    }

    .hr-quick-bar-actions {
        width: 100%;
    }

    .hr-category-grid,
    .hr-kpi-grid,
    .hr-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Pénzügyi munkapult */
.fn-desk {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--nc-text);
}

.fn-hero-copy h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: -.02em;
}

.fn-hero-kicker {
    margin: 0 0 6px;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 800;
}

.fn-hero-copy p:last-child {
    margin: 8px 0 0;
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.45;
}

.fn-block-title {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.fn-workbench-nav--with-menus {
    overflow: visible !important;
    z-index: 29; /* lásd .module-subnav-wrap--with-menus (2026-09-11) */
}

.fi-page-content:has(.fn-workbench-nav--with-menus),
.fi-page:has(.fn-workbench-nav--with-menus) {
    overflow: visible !important;
}

.fn-workbench-nav--with-menus .fn-main-nav {
    position: relative;
    z-index: 2;
    overflow-x: auto !important;
    flex-wrap: nowrap;
}

.fn-main-nav > a {
    flex: 0 0 auto;
}

.fn-workbench-context,
.nc-finance-section-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 9px 14px 11px;
    border-top: 1px solid rgba(41, 81, 87, .1);
    background: rgba(41, 81, 87, .035);
    border-radius: 0 0 18px 18px;
}

.fn-workbench-context-label,
.nc-finance-section-context-label {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6e6e73;
}

.fn-context-links,
.nc-finance-section-context-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    min-width: 0;
}

.fn-context-links a,
.nc-finance-section-context-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #295157;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

.fn-context-links a:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: rgba(41, 81, 87, .28);
    font-weight: 500;
    pointer-events: none;
}

.fn-context-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fn-context-links a.is-active {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fn-context-links-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(198, 163, 91, .22);
    color: #755f22;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.dark .fn-workbench-nav {
    background: rgba(24, 24, 27, .92);
}

.dark .fn-workbench-context {
    background: rgba(255, 255, 255, .03);
    border-top-color: rgba(255, 255, 255, .08);
}

.dark .fn-workbench-context-label {
    color: #a1a1aa;
}

.dark .fn-context-links a {
    color: #d4d4d8;
}

.dark .fn-context-links a:not(:last-child)::after {
    color: rgba(255, 255, 255, .18);
}

.fn-section-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(198, 163, 91, .2);
    color: #755f22;
    font-size: 11px;
    font-weight: 900;
}

.fn-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fn-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.fn-section-nav a.is-active {
    border-color: rgba(41, 81, 87, .35);
    background: rgba(41, 81, 87, .08);
    color: var(--nc-green);
}

.fn-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.fn-quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fff;
    color: var(--nc-text);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    transition: transform .16s ease, border-color .16s ease;
}

.fn-quick-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.fn-quick-action-btn.primary {
    background: #295157;
    border-color: #295157;
    color: #fff;
}

.fn-quick-action-btn em,
.fn-link-card em,
.fn-mini-stat em {
    color: var(--nc-muted);
    font-style: normal;
    font-weight: 900;
}

.fn-quick-action-btn.primary em { color: rgba(255, 255, 255, .75); }

.fn-click-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.fn-click-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
}

.fn-card-arrow,
.fn-link {
    color: var(--nc-green);
    font-style: normal;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.fn-panel {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--nc-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--nc-shadow-soft);
}

.fn-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.fn-panel-lead {
    margin: 4px 0 0;
    color: var(--nc-muted);
    font-size: 13px;
}

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

.fn-alert-card {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--nc-border);
    border-radius: 16px;
    background: #fff;
}

.fn-alert-card.danger { border-color: rgba(220, 38, 38, .24); }
.fn-alert-card.warning { border-color: rgba(249, 115, 22, .24); }
.fn-alert-card.info { border-color: rgba(37, 99, 235, .22); }

.fn-alert-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.fn-alert-title { font-size: 13px; font-weight: 850; }

.fn-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    background: rgba(41, 81, 87, .08);
    color: var(--nc-green);
}

.fn-pill.warning { background: #fff7ed; color: #c2410c; }
.fn-pill.danger { background: #fef2f2; color: #b91c1c; }
.fn-pill.success { background: #ecfdf5; color: #047857; }

.fn-due-list { display: grid; gap: 8px; }

.fn-due-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fff;
}

.fn-due-main small { color: var(--nc-muted); font-size: 11px; }

.fn-due-values { display: grid; gap: 4px; }

.fn-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    overflow: hidden;
}

.fn-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #295157, #466265);
}

.fn-bar.gold span { background: linear-gradient(90deg, #c6a35b, #e7c98d); }

.fn-mini-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fn-mini-stat-row.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.fn-mini-stat {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fff;
}

.fn-mini-stat.danger { border-color: rgba(220, 38, 38, .22); }
.fn-mini-stat.warning { border-color: rgba(249, 115, 22, .22); }

.fn-monthly-grid,
.fn-link-grid,
.fn-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.fn-monthly-card,
.fn-link-card,
.fn-export-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--nc-border);
    border-radius: 16px;
    background: #fff;
}

.fn-data-list .nc-list-row {
    border-radius: 12px;
    margin-bottom: 6px;
}

.fn-empty {
    padding: 18px;
    border: 1px dashed var(--nc-border);
    border-radius: 16px;
    color: var(--nc-muted);
    text-align: center;
}

.fn-empty.compact { padding: 12px; font-size: 13px; }

@media (max-width: 1100px) {
    .fn-alert-grid,
    .fn-mini-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fn-alert-grid,
    .fn-mini-stat-row,
    .fn-mini-stat-row.wide {
        grid-template-columns: 1fr;
    }

    .fn-due-row {
        grid-template-columns: 1fr;
    }
}

/* Cashflow naptár */
.fn-cashflow-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.fn-cashflow-summary-foot {
    display: grid;
    gap: 4px;
    color: var(--nc-muted);
    font-size: 13px;
}

.fn-cashflow-summary-foot p { margin: 0; }

.fn-cashflow-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fn-cashflow-period-switcher {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border: 1px solid var(--nc-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, .92) 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.fn-cashflow-period-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

.fn-cashflow-period-arrow:hover {
    background: rgba(41, 81, 87, .07);
}

.fn-cashflow-period-arrow.is-next {
    /* grouped layout */
}

.fn-cashflow-period-switcher > * + * {
    border-left: 1px solid var(--nc-border);
}

.fn-cashflow-period-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    color: var(--nc-green);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.fn-cashflow-period-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 44px;
    padding: 0 18px;
    color: var(--nc-text);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.01em;
    text-align: center;
    white-space: nowrap;
}

.fn-cashflow-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(41, 81, 87, .18);
    border-radius: 14px;
    background: #fff;
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.fn-cashflow-export-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .32);
    background: rgba(41, 81, 87, .04);
}

.fn-cashflow-export-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.fn-cashflow-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fn-cashflow-note {
    margin: 0;
    color: var(--nc-muted);
    font-size: 12px;
}

.fn-cashflow-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.fn-cashflow-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.fn-cashflow-cell {
    display: grid;
    gap: 6px;
    min-height: 108px;
    padding: 8px;
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
}

.fn-cashflow-cell.is-outside { opacity: .45; }
.fn-cashflow-cell.is-dimmed { opacity: .35; pointer-events: none; }
.fn-cashflow-cell.is-today { border-color: rgba(41, 81, 87, .45); box-shadow: inset 0 0 0 1px rgba(41, 81, 87, .12); }

.fn-cashflow-cell.risk-positive { border-left: 3px solid #2f855a; }
.fn-cashflow-cell.risk-negative { border-left: 3px solid #c05621; }
.fn-cashflow-cell.risk-critical { border-left: 3px solid #c53030; background: rgba(197, 48, 48, .04); }
.fn-cashflow-cell.risk-neutral { border-left: 3px solid #cbd5e0; }

.fn-cashflow-cell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.fn-cashflow-cell-lines {
    display: grid;
    gap: 2px;
    font-weight: 800;
}

.fn-cashflow-cell-lines .in { color: #2f855a; }
.fn-cashflow-cell-lines .out { color: #c05621; }
.fn-cashflow-cell-lines .net.pos { color: #2f855a; }
.fn-cashflow-cell-lines .net.neg { color: #c53030; }

.fn-cashflow-empty-day { color: var(--nc-muted); }

.fn-cashflow-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.fn-cashflow-week-col {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: #fff;
}

.fn-cashflow-item-list {
    display: grid;
    gap: 6px;
}

.fn-cashflow-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    background: #fff;
}

.fn-cashflow-item small {
    display: block;
    color: var(--nc-muted);
    font-size: 12px;
}

.fn-cashflow-list-group {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nc-border);
}

.fn-cashflow-list-group:last-child { border-bottom: 0; padding-bottom: 0; }

.fn-cashflow-list-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.fn-cashflow-list-subtitle {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    color: var(--nc-green);
}

.fn-cashflow-detail {
    border-color: rgba(41, 81, 87, .22);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.fn-cashflow-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nc-border);
}

.fn-cashflow-detail-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.fn-cashflow-detail-kicker {
    margin: 0;
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fn-cashflow-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fn-cashflow-detail-stat {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.fn-cashflow-detail-stat.in { color: #2f855a; border-color: rgba(47, 133, 90, .18); background: rgba(47, 133, 90, .06); }
.fn-cashflow-detail-stat.out { color: #c05621; border-color: rgba(192, 86, 33, .18); background: rgba(192, 86, 33, .06); }
.fn-cashflow-detail-stat.net { color: var(--nc-text); }
.fn-cashflow-detail-stat.risk-positive { color: #2f855a; border-color: rgba(47, 133, 90, .18); background: rgba(47, 133, 90, .06); }
.fn-cashflow-detail-stat.risk-negative { color: #c05621; border-color: rgba(192, 86, 33, .18); background: rgba(192, 86, 33, .06); }
.fn-cashflow-detail-stat.risk-critical { color: #c53030; border-color: rgba(197, 48, 48, .18); background: rgba(197, 48, 48, .06); }
.fn-cashflow-detail-stat.risk-neutral { color: var(--nc-muted); }

.fn-cashflow-detail-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(41, 81, 87, .16);
    border-radius: 999px;
    background: #fff;
    color: var(--nc-green);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
    flex-shrink: 0;
}

.fn-cashflow-detail-close:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 81, 87, .28);
    background: rgba(41, 81, 87, .05);
}

.fn-cashflow-detail-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(41, 81, 87, .08);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 1100px) {
    .fn-cashflow-summary-grid,
    .fn-cashflow-week-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fn-cashflow-summary-grid,
    .fn-cashflow-grid,
    .fn-cashflow-week-grid {
        grid-template-columns: 1fr;
    }

    .fn-cashflow-weekdays { display: none; }

    .fn-cashflow-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fn-cashflow-period-switcher {
        width: 100%;
    }

    .fn-cashflow-period-arrow {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 10px;
        font-size: 12px;
    }

    .fn-cashflow-period-arrow span:not(.fn-cashflow-period-icon) {
        display: none;
    }

    .fn-cashflow-period-current {
        flex: 1.4 1 0;
        min-width: 0;
        padding: 0 10px;
        font-size: 14px;
    }

    .fn-cashflow-export-btn {
        justify-content: center;
        width: 100%;
    }

    .fn-cashflow-detail-head {
        flex-direction: column;
    }

    .fn-cashflow-detail-close {
        width: 100%;
        justify-content: center;
    }
}

/* Központi vállalati naptár */
.cal-workbench { display: grid; gap: 18px; width: 100%; }
.cal-panel { border: 1px solid rgb(226 232 240); border-radius: 16px; background: white; padding: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.dark .cal-panel { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.cal-block-title { margin: 0; font-size: 18px; font-weight: 900; }
.cal-panel-lead { margin: 6px 0 0; color: rgb(100 116 139); font-size: 13px; }
.cal-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cal-summary-card { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid rgb(226 232 240); text-decoration: none; color: inherit; background: white; }
.cal-summary-card strong { font-size: 24px; color: rgb(15 23 42); }
.cal-summary-card span { font-size: 12px; font-weight: 800; color: rgb(100 116 139); }
.cal-tone-blue { border-left: 4px solid rgb(59 130 246); }
.cal-tone-green { border-left: 4px solid rgb(16 185 129); }
.cal-tone-orange { border-left: 4px solid rgb(249 115 22); }
.cal-tone-brown { border-left: 4px solid rgb(120 53 15); }
.cal-tone-purple { border-left: 4px solid rgb(168 85 247); }
.cal-tone-gold { border-left: 4px solid rgb(245 158 11); }
.cal-tone-danger { border-left: 4px solid rgb(244 63 94); }

.cal-operational-agenda { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid rgb(226 232 240); border-radius: 16px; background: rgb(255 255 255); }
.dark .cal-operational-agenda { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.cal-operational-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cal-operational-title { margin: 0; font-size: 17px; font-weight: 900; }
.cal-operational-lead { margin: 4px 0 0; font-size: 12px; color: rgb(100 116 139); }
.cal-management-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cal-management-kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgb(241 245 249); background: rgb(248 250 252); text-decoration: none; color: inherit; }
.cal-management-kpi span { font-size: 11px; font-weight: 700; color: rgb(100 116 139); }
.cal-management-kpi strong { font-size: 20px; font-weight: 900; color: rgb(15 23 42); }
.cal-management-kpi.danger { border-color: rgba(244,63,94,.25); background: rgba(244,63,94,.06); }
.cal-staff-today { padding: 10px 12px; border-radius: 12px; background: rgb(248 250 252); border: 1px solid rgb(241 245 249); }
.cal-staff-today h3 { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: rgb(71 85 105); }
.cal-staff-today ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cal-staff-today li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.cal-agenda-groups { display: grid; gap: 8px; }
.cal-agenda-group { border: 1px solid rgb(241 245 249); border-radius: 12px; background: rgb(252 252 253); overflow: hidden; }
.cal-agenda-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 800; list-style: none; }
.cal-agenda-group summary em { font-style: normal; font-size: 12px; font-weight: 800; color: rgb(100 116 139); background: white; border: 1px solid rgb(226 232 240); border-radius: 999px; padding: 2px 8px; }
.cal-agenda-items { display: grid; gap: 6px; padding: 0 8px 8px; }
.cal-agenda-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid rgb(241 245 249); background: white; text-decoration: none; color: inherit; }
.cal-agenda-item.is-overdue { border-color: rgba(244,63,94,.25); }
.cal-agenda-item-time { font-size: 11px; font-weight: 800; color: rgb(100 116 139); }
.cal-agenda-item-body strong { display: block; font-size: 13px; line-height: 1.3; }
.cal-agenda-item-body small { display: block; margin-top: 2px; font-size: 11px; color: rgb(100 116 139); }
.cal-agenda-item-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.cal-agenda-badge { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: rgb(241 245 249); color: rgb(71 85 105); }
.cal-agenda-badge.is-danger { background: rgba(244,63,94,.12); color: rgb(190 18 60); }
.cal-agenda-badge.is-muted { background: rgba(41,81,87,.08); color: rgb(41 81 87); }
.cal-event-badge--urgent { background: rgba(244,63,94,.12); color: rgb(190 18 60); }
.cal-event-badge--category { background: rgba(41,81,87,.08); color: rgb(41 81 87); }
.cal-empty-muted { color: rgb(100 116 139); font-size: 12px; }
.cal-blocked-audit-filters { display: grid; gap: 10px; margin-top: 4px; }
.cal-blocked-audit-side { margin-top: 8px; }
.cal-operational-subtitle { margin: 0 0 6px; font-size: 12px; font-weight: 800; color: rgb(71 85 105); }
.cal-blocked-audit-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; }
.cal-blocked-audit-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgb(248 250 252); }
.cal-blocked-audit-table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid rgb(241 245 249); border-radius: 12px; }
.cal-blocked-audit-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cal-blocked-audit-table th,
.cal-blocked-audit-table td { padding: 8px 10px; border-bottom: 1px solid rgb(241 245 249); text-align: left; vertical-align: top; }
.cal-blocked-audit-table th { font-size: 11px; font-weight: 800; color: rgb(100 116 139); background: rgb(248 250 252); }
.cal-blocked-audit-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.cal-severity-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.cal-severity-high { background: rgb(254 226 226); color: rgb(153 27 27); }
.cal-severity-critical { background: rgb(254 226 226); color: rgb(127 29 29); border: 1px solid rgb(252 165 165); }
.cal-severity-medium { background: rgb(254 243 199); color: rgb(146 64 14); }
.cal-severity-low { background: rgb(241 245 249); color: rgb(71 85 105); }
.cal-mailbox-draft-banner { display: grid; gap: 4px; margin-bottom: 10px; }
.cal-mailbox-draft-actions { margin: 6px 0 0; }

.cal-period-switcher { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.cal-period-switcher a,
.cal-period-switcher .cal-period-nav { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgb(226 232 240); text-decoration: none; color: rgb(51 65 85); font-size: 22px; background: #fff; cursor: pointer; padding: 0; }
.cal-period-switcher .cal-period-nav:hover { background: rgb(248 250 252); }
.cal-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-weekday { text-align: center; font-size: 12px; font-weight: 900; color: rgb(100 116 139); padding: 6px 0; }
.cal-day-cell { min-height: 110px; border: 1px solid rgb(241 245 249); border-radius: 12px; padding: 8px; color: inherit; background: rgb(248 250 252); display: grid; align-content: start; gap: 6px; position: relative; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; }
.cal-day-add { width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(41,81,87,.28); background: #fff; color: rgb(41 81 87); font-size: 17px; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: background .15s, color .15s, transform .15s; }
.cal-day-add:hover { background: rgb(41 81 87); color: #fff; transform: scale(1.05); }
.cal-day-add--compact { width: 22px; height: 22px; font-size: 15px; }
.cal-day-add--labeled { width: auto; height: auto; border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.cal-day-add--labeled span:first-child { font-size: 16px; line-height: 1; }
.cal-day-view-link { position: absolute; top: 34px; right: 8px; font-size: 10px; text-decoration: none; color: rgb(100 116 139); opacity: 0; transition: opacity .15s; border: 0; background: transparent; cursor: pointer; padding: 0; }
.cal-day-cell:hover .cal-day-view-link { opacity: 1; }
.cal-event-pill.is-system { border-style: dashed; }
.cal-event-pill.is-company { font-weight: 700; }
.cal-event-pill.is-secondary,
.cal-event-row.is-secondary {
    opacity: .72;
    font-size: 10px;
    font-weight: 500;
}
.cal-event-row.is-secondary strong { font-weight: 600; }
.cal-event-pill.is-reschedulable { box-shadow: inset 0 0 0 1px rgba(16,185,129,.35); cursor: grab; }
.cal-event-pill.is-reschedulable.is-dragging { opacity: .55; cursor: grabbing; }
.cal-event-pill.is-locked { opacity: .78; border-style: dashed; cursor: not-allowed; }
.cal-day-cell.is-drop-target, .cal-week-column.is-drop-target { outline: 2px dashed rgba(16,185,129,.55); outline-offset: -2px; background: rgba(16,185,129,.06); }
.cal-pill-tag { display: inline-block; margin-top: 2px; padding: 1px 4px; border-radius: 4px; font-size: 9px; font-weight: 800; line-height: 1.2; }
.cal-pill-tag.is-reschedulable-tag { background: rgba(16,185,129,.12); color: rgb(4 120 87); }
.cal-pill-tag.is-locked-tag { background: rgba(100,116,139,.12); color: rgb(71 85 105); }
.cal-pill-tag.is-conflict-tag { background: rgba(245,158,11,.15); color: rgb(180 83 9); }
.cal-event-pill.has-conflict { box-shadow: inset 0 0 0 1px rgba(245,158,11,.45); }
.cal-notification-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-top: 8px; }
.cal-modal-notification { width: min(640px, 100%); }
.cal-agenda-item--notification-task { border-left: 3px solid var(--nc-warning, #d97706); }
.cal-management-kpi.warning strong { color: var(--nc-warning, #d97706); }
.cal-week-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; border-bottom: 1px solid rgb(226 232 240); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.cal-week-head-main { display: grid; gap: 2px; min-width: 0; }
.cal-week-head.is-today { background: rgba(41,81,87,.08); }
.cal-week-grid { display: grid; grid-template-columns: repeat(7, minmax(128px, 1fr)); gap: 8px; overflow-x: auto; align-items: start; padding-bottom: 4px; }
.cal-week-column { display: flex; flex-direction: column; min-width: 168px; min-height: 240px; border: 1px solid rgb(241 245 249); border-radius: 12px; background: rgb(248 250 252); overflow: hidden; }
.dark .cal-week-column { background: rgba(39,39,42,.55); border-color: rgba(255,255,255,.08); }
.cal-week-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cal-all-day-block, .cal-timed-block, .cal-day-group, .cal-list-group { display: grid; gap: 6px; padding: 8px; min-width: 0; }
.cal-all-day-block { border-bottom: 1px dashed rgb(226 232 240); padding-bottom: 10px; }
.cal-timed-block { flex: 1; align-content: start; }
.cal-week-event.cal-event-pill { display: grid; gap: 2px; white-space: normal; line-height: 1.3; padding: 6px 8px; overflow: hidden; text-overflow: unset; text-decoration: none; border: 1px solid transparent; }
.cal-week-event-time { display: block; font-size: 10px; font-weight: 800; color: rgb(71 85 105); line-height: 1.2; }
.dark .cal-week-event-time { color: rgb(161 161 170); }
.cal-week-event-title { display: block; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.35; }
.cal-week-event.is-overdue { box-shadow: inset 0 0 0 1px rgba(244,63,94,.35); }
.cal-week-column .cal-empty-day { padding: 12px 8px; font-size: 11px; line-height: 1.35; }
.cal-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.42); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.cal-modal { width: min(520px, 100%); background: rgba(255,255,255,.98); border: 1px solid rgba(41,81,87,.12); border-radius: 18px; box-shadow: 0 18px 45px rgba(15,23,42,.18); }
.dark .cal-modal { background: rgba(30,30,34,.98); border-color: rgba(255,255,255,.1); box-shadow: none; }
.cal-modal-create { overflow: visible; }
.cal-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(41,81,87,.1); background: rgba(251,251,253,.88); border-radius: 18px 18px 0 0; }
.cal-modal-head-compact h2, .cal-modal-head > h2 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.02em; color: #1d1d1f; flex: 1; min-width: 0; }
.dark .cal-modal-head-compact h2, .dark .cal-modal-head > h2 { color: #f5f5f7; }
.cal-modal-head-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.dark .cal-modal-head { background: rgba(24,24,27,.88); border-bottom-color: rgba(255,255,255,.08); }
.cal-modal-form { display: block; }
.cal-modal-fields { display: grid; gap: 8px; padding: 12px 14px 14px; }
.cal-modal-fields-compact { gap: 7px; }
.cal-field { display: grid; gap: 4px; min-width: 0; }
.cal-field > span { font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #6e6e73; }
.dark .cal-field > span { color: #a8a8b3; }
.cal-modal-form input:not([type="checkbox"]), .cal-modal-form textarea, .cal-modal-form select { width: 100%; border: 1px solid rgba(41,81,87,.18); border-radius: 12px; background: #fff; padding: 8px 10px; color: #1d1d1f; font-size: 13px; font: inherit; min-width: 0; }
.dark .cal-modal-form input:not([type="checkbox"]), .dark .cal-modal-form textarea, .dark .cal-modal-form select { background: #18181b; border-color: rgba(255,255,255,.14); color: #f5f5f7; }
.cal-modal-form input:not([type="checkbox"]):focus, .cal-modal-form textarea:focus, .cal-modal-form select:focus { outline: none; border-color: rgba(41,81,87,.42); box-shadow: 0 0 0 2px rgba(41,81,87,.1); }
.cal-modal-form textarea { min-height: 52px; max-height: 80px; resize: vertical; }
.cal-field.cal-inline-check, .cal-field-check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; padding: 0; }
.cal-field-check > span { font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; color: #475569; }
.dark .cal-field-check > span { color: #d4d4d8; }
.cal-field-check input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: #295157; }
.cal-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-modal-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal-modal-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cal-modal-more { border: 1px solid rgba(41,81,87,.1); border-radius: 12px; background: #fbfbfd; overflow: hidden; }
.dark .cal-modal-more { background: rgba(39,39,42,.5); border-color: rgba(255,255,255,.08); }
.cal-modal-more summary { padding: 8px 10px; font-size: 12px; font-weight: 800; color: #295157; cursor: pointer; list-style: none; }
.cal-modal-more summary::-webkit-details-marker { display: none; }
.dark .cal-modal-more summary { color: #9fd0d1; }
.cal-modal-more-body { display: grid; gap: 8px; padding: 0 10px 10px; border-top: 1px solid rgba(41,81,87,.08); }
.cal-modal-more[open] summary { border-bottom: 1px solid rgba(41,81,87,.08); margin-bottom: 8px; }
.cal-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid rgba(41,81,87,.1); background: rgba(251,251,253,.88); }
.dark .cal-modal-actions { background: rgba(24,24,27,.88); border-top-color: rgba(255,255,255,.08); }
.cal-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border-radius: 999px; padding: 6px 12px; border: 1px solid rgba(41,81,87,.14); background: #fff; color: #295157; font-size: 12px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cal-btn-primary { background: #295157; color: #fff; border-color: #295157; }
.cal-btn-muted { background: transparent; border-color: transparent; color: #6e6e73; font-weight: 700; }
.dark .cal-btn { background: #27272a; border-color: rgba(255,255,255,.1); color: #f5f5f7; }
.dark .cal-btn-primary { background: #466265; border-color: #466265; color: #fff; }
.cal-help { margin: 0; font-size: 11px; color: #6e6e73; }
.cal-lead-picker { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: #fbfbfd; border: 1px solid rgba(41,81,87,.09); }
.cal-lead-results { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(41,81,87,.12); border-radius: 12px; max-height: 120px; overflow-y: auto; }
.cal-lead-results li + li { border-top: 1px solid rgba(41,81,87,.1); }
.cal-lead-results button { width: 100%; text-align: left; border: 0; background: #fff; padding: 8px 10px; font: inherit; cursor: pointer; font-size: 12px; }
.cal-lead-selected { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(41,81,87,.07); border: 1px solid rgba(41,81,87,.14); font-size: 12px; }
.cal-lead-clear { border: 0; background: transparent; font-size: 16px; cursor: pointer; color: #6e6e73; }
.cal-suggest-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.cal-modal-wide { width: min(640px, 100%); }
@media (max-width: 640px) { .cal-modal-row, .cal-modal-row-2, .cal-modal-row-3 { grid-template-columns: 1fr; } .cal-modal-head { flex-wrap: wrap; } .cal-modal-head-actions { width: 100%; justify-content: flex-end; } }
.cal-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.cal-link-label { font-weight: 800; color: rgb(51 65 85); min-width: 88px; }
.cal-btn-danger { background: rgba(254,226,226,.9); color: #991b1b; border: 1px solid rgba(239,68,68,.25); }
.cal-day-cell.is-outside { opacity: .45; }
.cal-day-cell.is-today { border-color: rgba(41,81,87,.35); box-shadow: inset 0 0 0 2px rgba(41,81,87,.12); }
.cal-day-cell.is-selected { background: rgba(41,81,87,.08); }
.cal-day-number { font-weight: 900; color: rgb(15 23 42); }
.cal-day-count { font-size: 10px; font-weight: 700; color: rgb(100 116 139); }
.cal-day-events { display: grid; gap: 4px; }
.cal-event-pill { display: block; font-size: 11px; line-height: 1.25; padding: 4px 6px; border-radius: 8px; background: rgba(59,130,246,.12); color: rgb(30 64 175); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-more { font-size: 11px; font-weight: 800; color: rgb(100 116 139); }
.cal-event-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgb(226 232 240); background: white; text-decoration: none; color: inherit; }
.cal-event-row.is-detailed { grid-template-columns: 88px 1fr auto; }
.cal-event-row.is-overdue { border-color: rgba(244,63,94,.35); }
.cal-event-time { font-size: 12px; font-weight: 800; color: rgb(100 116 139); }
.cal-event-body { display: grid; gap: 2px; }
.cal-event-body strong { font-size: 14px; }
.cal-event-body small { color: rgb(100 116 139); font-size: 12px; }
.cal-event-badge { font-size: 11px; font-weight: 900; color: rgb(190 18 60); background: rgba(244,63,94,.1); padding: 4px 8px; border-radius: 999px; }
.cal-color-blue, .cal-event-pill.cal-color-blue, .cal-event-row.cal-color-blue { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.18); }
.cal-color-green, .cal-event-pill.cal-color-green, .cal-event-row.cal-color-green { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.18); }
.cal-color-orange, .cal-event-pill.cal-color-orange, .cal-event-row.cal-color-orange { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.18); }
.cal-color-brown, .cal-event-pill.cal-color-brown, .cal-event-row.cal-color-brown { background: rgba(120,53,15,.1); border-color: rgba(120,53,15,.18); }
.cal-color-purple, .cal-event-pill.cal-color-purple, .cal-event-row.cal-color-purple { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.18); }
.cal-color-gold, .cal-event-pill.cal-color-gold, .cal-event-row.cal-color-gold { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.22); }
.cal-color-gray, .cal-event-pill.cal-color-gray, .cal-event-row.cal-color-gray { background: rgba(100,116,139,.1); border-color: rgba(100,116,139,.18); }
.cal-empty, .cal-empty-day { padding: 18px; border: 1px dashed rgb(203 213 225); border-radius: 12px; color: rgb(100 116 139); text-align: center; }
.cal-detail-panel { border: 1px solid rgb(226 232 240); border-radius: 16px; padding: 18px; background: white; display: grid; gap: 14px; }
.cal-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cal-detail-type { margin: 0 0 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.cal-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.cal-detail-grid dt { font-size: 12px; font-weight: 800; color: rgb(100 116 139); }
.cal-detail-grid dd { margin: 4px 0 0; font-weight: 700; color: rgb(15 23 42); }
.cal-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cal-detail-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; background: rgba(100,116,139,.12); color: rgb(51 65 85); }
.cal-detail-badge.danger { background: rgba(244,63,94,.12); color: rgb(190 18 60); }
.cal-detail-description h3 { margin: 0 0 8px; font-size: 13px; font-weight: 900; color: rgb(51 65 85); }
.cal-detail-description p { margin: 0; color: rgb(30 41 59); line-height: 1.5; white-space: pre-wrap; }
.cal-lead-card { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(41,81,87,.12); background: rgba(251,251,253,.92); }
.cal-lead-card-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-lead-card-main strong { font-size: 15px; color: rgb(15 23 42); }
.cal-lead-card-status { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: rgba(59,130,246,.12); color: rgb(30 64 175); }
.cal-lead-card-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 12px; margin: 0; }
.cal-lead-card-meta dt { font-size: 11px; font-weight: 800; color: rgb(100 116 139); }
.cal-lead-card-meta dd { margin: 2px 0 0; font-weight: 700; }
.cal-lead-card-meta a { color: rgb(41 81 87); text-decoration: none; }
.cal-lead-card-meta a:hover { text-decoration: underline; }
.cal-muted { color: rgb(100 116 139); }
.cal-alert.info { padding: 10px 12px; border-radius: 12px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.16); color: rgb(30 64 175); font-size: 13px; line-height: 1.45; }
.cal-alert.warning { padding: 10px 12px; border-radius: 12px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.18); color: rgb(146 64 14); font-size: 13px; line-height: 1.45; }
.cal-alert.success { padding: 10px 12px; border-radius: 12px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.16); color: rgb(21 128 61); font-size: 13px; line-height: 1.45; }
.cal-list-intro h2 { margin: 0 0 4px; font-size: 20px; }
@media (max-width: 900px) {
    .cal-month-grid { gap: 4px; }
    .cal-day-cell { min-height: 88px; padding: 6px; }
    .cal-week-grid { grid-template-columns: repeat(7, minmax(168px, 1fr)); }
    .cal-day-group .cal-event-row,
    .cal-list-group .cal-event-row { grid-template-columns: 1fr; }
}

/* Könyvjelzők modul */
.bm-workbench { display: grid; gap: 16px; width: 100%; }
.bm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bm-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-layout-toggle { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid rgba(41, 81, 87, .12); border-radius: 999px; background: rgba(255,255,255,.82); }
.bm-layout-btn { border: 0; background: transparent; color: #4b5563; font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.bm-layout-btn.is-active { background: #295157; color: #fff; }
.bm-filter-count { color: #6e6e73; font-size: 13px; font-weight: 700; }
.bm-section { display: grid; gap: 12px; }
.bm-section-head h2 { margin: 0; font-size: 18px; font-weight: 850; color: #1d1d1f; }
.bm-section-head p { margin: 4px 0 0; color: #6e6e73; font-size: 13px; }
.bm-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.bm-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.bm-card { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(41, 81, 87, .12); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 10px 28px rgba(29,29,31,.045); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.bm-card:hover { transform: translateY(-1px); border-color: rgba(41, 81, 87, .24); box-shadow: 0 15px 32px rgba(29,29,31,.075); }
.bm-card-compact { min-height: 0; }
.bm-card-link { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; color: inherit; text-decoration: none; }
.bm-card-icon { width: 44px; height: 44px; border-radius: 12px; background: #f5f5f7; display: grid; place-items: center; overflow: hidden; font-size: 20px; }
.bm-card-icon img { width: 24px; height: 24px; object-fit: contain; }
.bm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bm-card-body h3 { margin: 0; font-size: 15px; font-weight: 850; color: #1d1d1f; }
.bm-card-body p { margin: 6px 0 0; color: #6e6e73; font-size: 13px; line-height: 1.45; }
.bm-url { display: block; margin-top: 6px; color: #86868b; font-size: 11px; word-break: break-all; }
.bm-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bm-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: rgba(41,81,87,.08); color: #295157; font-size: 11px; font-weight: 800; }
.bm-badge-featured { background: rgba(198,163,91,.16); color: #72591f; }
.bm-badge-unit { background: rgba(59,130,246,.12); color: #1d4ed8; }
.bm-tag { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #f0f2f4; color: #52525b; font-size: 11px; font-weight: 750; }
.bm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(41,81,87,.14); background: #fff; color: #295157; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.bm-btn:hover { background: #295157; color: #fff; }
.bm-btn-primary { background: #295157; color: #fff; border-color: #295157; }
.bm-btn-muted { background: #f5f5f7; color: #4b5563; }
.bm-btn-small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.bm-empty { padding: 18px; border: 1px dashed rgba(41, 81, 87, .2); border-radius: 16px; color: #6e6e73; text-align: center; }
.bm-list-wrap { overflow-x: auto; }
.bm-list-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; }
.bm-list-table th { text-align: left; color: #6e6e73; font-weight: 800; border-bottom: 1px solid rgba(41, 81, 87, .12); padding: 8px; }
.bm-list-table td { border-bottom: 1px solid rgba(41, 81, 87, .08); padding: 10px 8px; vertical-align: middle; color: #1d1d1f; }
.bm-list-actions { display: flex; gap: 6px; justify-content: flex-end; }
.bm-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.bm-dashboard-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(226 232 240); border-radius: 12px; background: rgb(248 250 252); color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.bm-dashboard-link:hover { transform: translateY(-1px); border-color: rgba(41, 81, 87, .28); background: #fff; }
.bm-dashboard-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #fff; overflow: hidden; flex: 0 0 auto; }
.bm-dashboard-icon img { width: 18px; height: 18px; object-fit: contain; }
.bm-dashboard-copy strong { display: block; font-size: 13px; color: #1d1d1f; }
.bm-dashboard-copy small { display: block; margin-top: 2px; color: #6e6e73; font-size: 11px; }
.dark .bm-card, .dark .bm-layout-toggle { background: rgba(28,28,30,.82); border-color: rgba(255,255,255,.09); }
.dark .bm-card-body h3, .dark .bm-list-table td, .dark .bm-dashboard-copy strong { color: #f5f5f7; }
.dark .bm-card-body p, .dark .bm-section-head p, .dark .bm-url, .dark .bm-empty, .dark .bm-list-table th { color: #a1a1aa; }
.dark .bm-card-icon, .dark .bm-btn-muted, .dark .bm-dashboard-link { background: rgba(39,39,42,.72); border-color: rgba(255,255,255,.08); color: #f5f5f7; }
.dark .bm-layout-btn { color: #d4d4d8; }
.dark .bm-layout-btn.is-active { background: #466265; color: #fff; }
.dark .bm-filter-count { color: #a1a1aa; }
@media (max-width: 760px) { .bm-card-link { grid-template-columns: 1fr; } }

/* Dokumentumtár modul */
.dl-workbench { display: grid; gap: 16px; width: 100%; }
.dl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dl-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-layout-toggle { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid rgba(41, 81, 87, .12); border-radius: 999px; background: rgba(255,255,255,.82); }
.dl-layout-btn { border: 0; background: transparent; color: #4b5563; font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.dl-layout-btn.is-active { background: #295157; color: #fff; }
.dl-filter-count { color: #6e6e73; font-size: 13px; font-weight: 700; }
.dl-attention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.dl-attention-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(41, 81, 87, .12); border-radius: 16px; background: rgba(255,255,255,.88); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.dl-attention-card:hover { transform: translateY(-1px); border-color: rgba(41, 81, 87, .28); }
.dl-attention-card span { color: #6e6e73; font-size: 12px; font-weight: 700; }
.dl-attention-card strong { font-size: 22px; color: #1d1d1f; }
.dl-attention-danger { border-color: rgba(220, 38, 38, .18); background: rgba(254, 242, 242, .72); }
.dl-section { display: grid; gap: 12px; }
.dl-section-head h2 { margin: 0; font-size: 18px; font-weight: 850; color: #1d1d1f; }
.dl-section-head p { margin: 4px 0 0; color: #6e6e73; font-size: 13px; }
.dl-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.dl-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.dl-card { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(41, 81, 87, .12); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 10px 28px rgba(29,29,31,.045); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.dl-card:hover { transform: translateY(-1px); border-color: rgba(41, 81, 87, .24); box-shadow: 0 15px 32px rgba(29,29,31,.075); }
.dl-card-compact { min-height: 0; }
.dl-card-link { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; color: inherit; text-decoration: none; }
.dl-card-icon { width: 44px; height: 44px; border-radius: 12px; background: #f5f5f7; display: grid; place-items: center; font-size: 22px; }
.dl-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dl-card-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.dl-card-body h3 { margin: 0; font-size: 15px; font-weight: 850; color: #1d1d1f; }
.dl-card-body p { margin: 6px 0 0; color: #6e6e73; font-size: 13px; line-height: 1.45; }
.dl-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dl-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: rgba(41,81,87,.08); color: #295157; font-size: 11px; font-weight: 800; }
.dl-badge-featured { background: rgba(198,163,91,.16); color: #72591f; }
.dl-badge-confidential { background: rgba(127,29,29,.12); color: #991b1b; }
.dl-badge-unit { background: rgba(59,130,246,.12); color: #1d4ed8; }
.dl-badge-status { background: rgba(100,116,139,.12); color: #475569; }
.dl-badge-file { background: #f0f2f4; color: #52525b; }
.dl-badge-warning { background: rgba(245,158,11,.16); color: #92400e; }
.dl-badge-danger { background: rgba(239,68,68,.14); color: #b91c1c; }
.dl-related, .dl-expiry { margin-top: 8px; font-size: 12px; color: #6e6e73; }
.dl-link { color: #295157; font-weight: 800; text-decoration: none; }
.dl-link:hover { text-decoration: underline; }
.dl-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(41,81,87,.14); background: #fff; color: #295157; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.dl-btn:hover { background: #295157; color: #fff; }
.dl-btn-primary { background: #295157; color: #fff; border-color: #295157; }
.dl-btn-muted { background: #f5f5f7; color: #4b5563; }
.dl-btn-small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.dl-empty { padding: 18px; border: 1px dashed rgba(41, 81, 87, .2); border-radius: 16px; color: #6e6e73; text-align: center; }
.dl-list-wrap { overflow-x: auto; }
.dl-list-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13px; }
.dl-list-table th { text-align: left; color: #6e6e73; font-weight: 800; border-bottom: 1px solid rgba(41, 81, 87, .12); padding: 8px; }
.dl-list-table td { border-bottom: 1px solid rgba(41, 81, 87, .08); padding: 10px 8px; vertical-align: middle; color: #1d1d1f; }
.dl-list-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.dl-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 12px; }
.dl-dashboard-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(226 232 240); border-radius: 12px; background: rgb(248 250 252); color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.dl-dashboard-link:hover { transform: translateY(-1px); border-color: rgba(41, 81, 87, .28); background: #fff; }
.dl-dashboard-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #fff; flex: 0 0 auto; font-size: 18px; }
.dl-dashboard-copy strong { display: block; font-size: 13px; color: #1d1d1f; }
.dl-dashboard-copy small { display: block; margin-top: 2px; color: #6e6e73; font-size: 11px; }
.dark .dl-card, .dark .dl-layout-toggle, .dark .dl-attention-card { background: rgba(28,28,30,.82); border-color: rgba(255,255,255,.09); }
.dark .dl-card-body h3, .dark .dl-list-table td, .dark .dl-dashboard-copy strong, .dark .dl-attention-card strong { color: #f5f5f7; }
.dark .dl-card-body p, .dark .dl-section-head p, .dark .dl-empty, .dark .dl-list-table th, .dark .dl-attention-card span, .dark .dl-filter-count { color: #a1a1aa; }
.dark .dl-card-icon, .dark .dl-btn-muted, .dark .dl-dashboard-link { background: rgba(39,39,42,.72); border-color: rgba(255,255,255,.08); color: #f5f5f7; }
.dark .dl-layout-btn { color: #d4d4d8; }
.dark .dl-layout-btn.is-active { background: #466265; color: #fff; }
@media (max-width: 760px) { .dl-card-link { grid-template-columns: 1fr; } }

.fn-period-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fn-period-switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(41, 81, 87, .14); color: var(--nc-green); font-size: 13px; font-weight: 700; text-decoration: none; }
.fn-period-switch a.is-active { background: #295157; border-color: #295157; color: #fff; }
.fn-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fn-kpi-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(41, 81, 87, .12); background: #fff; text-decoration: none; color: inherit; min-height: 110px; }
.fn-kpi-card.danger { border-color: rgba(220, 38, 38, .25); background: rgba(254, 242, 242, .7); }
.fn-kpi-card.warning { border-color: rgba(217, 119, 6, .25); background: rgba(255, 251, 235, .85); }
.fn-kpi-card.success { border-color: rgba(22, 163, 74, .25); background: rgba(240, 253, 244, .85); }
.fn-kpi-card.info { border-color: rgba(37, 99, 235, .2); background: rgba(239, 246, 255, .85); }
.fn-kpi-label { font-size: 12px; font-weight: 700; color: #6e6e73; }
.fn-kpi-amount { font-size: 22px; font-weight: 850; color: #1d1d1f; line-height: 1.1; }
.fn-todo-list, .fn-payables-table, .fn-category-list, .fn-breakdown-list { display: grid; gap: 6px; }
.fn-breakdown-head {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(112px, 132px) minmax(190px, 1fr) 28px;
    gap: 12px;
    padding: 0 14px 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #8e8e93;
}
.fn-breakdown-head span:nth-child(2),
.fn-breakdown-head span:nth-child(3) { text-align: right; }
.fn-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(112px, 132px) minmax(190px, 1fr) 28px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .16s ease, transform .16s ease;
}
.fn-breakdown-row:hover {
    border-color: rgba(41, 81, 87, .28);
    transform: translateY(-1px);
}
.fn-breakdown-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.fn-breakdown-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 850;
}
.fn-breakdown-count {
    font-size: 11px;
    font-weight: 750;
    color: #8e8e93;
}
.fn-breakdown-amount {
    text-align: right;
}
.fn-breakdown-amount b {
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
}
.fn-breakdown-status {
    display: grid;
    gap: 2px;
    justify-items: end;
    font-size: 11px;
    line-height: 1.35;
    color: #475569;
}
.fn-breakdown-status em {
    font-style: normal;
    color: #8e8e93;
    margin-right: 4px;
}
.fn-breakdown-status--empty { visibility: hidden; }
.fn-breakdown-row .fn-card-arrow {
    justify-self: end;
    color: #8e8e93;
    font-style: normal;
    font-weight: 900;
}
.fn-todo-row, .fn-payable-row, .fn-category-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(41, 81, 87, .1); border-radius: 14px; background: #fff; text-decoration: none; color: inherit; }
.fn-payable-row { grid-template-columns: 1.2fr 1fr auto auto; }
.fn-payable-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #6e6e73; }
.fn-payable-values { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fn-bu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fn-bu-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(41, 81, 87, .12); background: #fff; text-decoration: none; color: inherit; }
.fn-bu-amount { font-size: 20px; font-weight: 850; }
.fn-two-col-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dark .fn-kpi-card, .dark .fn-todo-row, .dark .fn-payable-row, .dark .fn-category-row, .dark .fn-breakdown-row, .dark .fn-bu-card, .dark .fn-mini-stat { background: rgba(28, 28, 30, .82); border-color: rgba(255, 255, 255, .08); color: #f5f5f7; }
.dark .fn-kpi-amount, .dark .fn-bu-amount { color: #f5f5f7; }
.dark .fn-breakdown-count, .dark .fn-breakdown-head, .dark .fn-breakdown-status em { color: #a1a1aa; }
.dark .fn-breakdown-status { color: #d4d4d8; }
@media (max-width: 900px) {
    .fn-two-col-panels { grid-template-columns: 1fr; }
    .fn-payable-row { grid-template-columns: 1fr; }
    .fn-payable-values { align-items: flex-start; }
    .fn-breakdown-head { display: none; }
    .fn-breakdown-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main amount"
            "status arrow";
        row-gap: 6px;
    }
    .fn-breakdown-main { grid-area: main; }
    .fn-breakdown-amount { grid-area: amount; }
    .fn-breakdown-status { grid-area: status; justify-items: start; }
    .fn-breakdown-row .fn-card-arrow { grid-area: arrow; align-self: center; }
    .fn-breakdown-status--empty { display: none; }
}

/* Jogosultságkezelő */
.perm-desk { display: grid; gap: 16px; color: #1d1d1f; }
.perm-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.perm-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #6e6e73; text-transform: uppercase; letter-spacing: .04em; }
.perm-hero h1 { margin: 0; font-size: 28px; font-weight: 850; }
.perm-intro { margin: 8px 0 0; max-width: 720px; color: #6e6e73; line-height: 1.5; }
.perm-back-link { color: #295157; font-weight: 700; text-decoration: none; }
.perm-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.perm-users-panel, .perm-editor-panel { border: 1px solid rgba(41, 81, 87, .12); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(29,29,31,.045); }
.perm-users-panel { padding: 12px; max-height: calc(100vh - 220px); overflow: auto; }
.perm-editor-panel { padding: 16px; }
.perm-search-wrap { margin-bottom: 10px; }
.perm-search { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(41, 81, 87, .14); background: #fff; }
.perm-user-list { display: grid; gap: 8px; }
.perm-user-card { display: grid; gap: 4px; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid rgba(41, 81, 87, .1); background: #fbfbfd; text-align: left; cursor: pointer; }
.perm-user-card.is-active { border-color: rgba(41, 81, 87, .34); background: rgba(41, 81, 87, .06); }
.perm-user-card strong { font-size: 14px; }
.perm-user-card small { color: #6e6e73; font-size: 12px; }
.perm-user-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #6e6e73; }
.perm-user-summary { font-size: 12px; color: #295157; }
.perm-editor-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.perm-editor-head h2 { margin: 0; font-size: 22px; }
.perm-editor-head p { margin: 6px 0 0; color: #6e6e73; font-size: 13px; }
.perm-role-note { font-size: 12px !important; color: #295157 !important; }
.perm-template-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.perm-select { min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(41, 81, 87, .14); background: #fff; min-width: 220px; }
.perm-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 13px; font-weight: 650; }
.perm-alert.warning { background: rgba(255, 251, 235, .95); border: 1px solid rgba(217, 119, 6, .25); color: #92400e; }
.perm-alert.info { background: rgba(239, 246, 255, .95); border: 1px solid rgba(59, 130, 246, .25); color: #1e40af; }
.perm-permission-group { margin-bottom: 16px; }
.perm-group-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--nc-muted, #64748b); text-transform: uppercase; letter-spacing: .04em; }
.perm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.perm-count { font-size: 12px; color: #6e6e73; font-weight: 700; }
.perm-modules { display: grid; gap: 10px; max-height: calc(100vh - 420px); overflow: auto; padding-right: 4px; }
.perm-module { border: 1px solid rgba(41, 81, 87, .1); border-radius: 14px; background: #fff; overflow: hidden; }
.perm-module summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.perm-module summary::-webkit-details-marker { display: none; }
.perm-module-title { font-size: 15px; font-weight: 800; }
.perm-switch { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: #295157; }
.perm-module-body { padding: 0 14px 14px; border-top: 1px solid rgba(41, 81, 87, .08); }
.perm-module-actions { display: flex; gap: 12px; padding: 10px 0; }
.perm-link-btn { border: 0; background: none; color: #295157; font-size: 12px; font-weight: 750; cursor: pointer; padding: 0; }
.perm-link-btn.danger { color: #b91c1c; }
.perm-permission-grid { display: grid; gap: 8px; }
.perm-permission-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: rgba(41, 81, 87, .03); font-size: 13px; }
.perm-permission-row strong { display: block; font-weight: 750; }
.perm-permission-row small { display: block; margin-top: 2px; color: #6e6e73; }
.perm-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(41, 81, 87, .08); }
.perm-btn { min-height: 42px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(41, 81, 87, .14); background: #fff; color: #295157; font-size: 14px; font-weight: 800; cursor: pointer; }
.perm-btn.primary { background: #295157; border-color: #295157; color: #fff; }
.perm-btn.ghost { background: transparent; }
.perm-btn:disabled { opacity: .55; cursor: not-allowed; }
.perm-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.perm-pill.success { background: rgba(22, 163, 74, .12); color: #166534; }
.perm-pill.neutral { background: rgba(107, 114, 128, .12); color: #374151; }
.perm-empty { padding: 24px; text-align: center; color: #6e6e73; }
.perm-empty.large { min-height: 280px; display: flex; align-items: center; justify-content: center; }
.dark .perm-desk { color: #f5f5f7; }
.dark .perm-users-panel, .dark .perm-editor-panel, .dark .perm-module, .dark .perm-search, .dark .perm-select, .dark .perm-user-card, .dark .perm-btn { background: rgba(28,28,30,.82); border-color: rgba(255,255,255,.08); color: #f5f5f7; }
.dark .perm-user-card.is-active { background: rgba(45, 212, 191, .08); border-color: rgba(45, 212, 191, .24); }
.dark .perm-permission-row { background: rgba(255,255,255,.04); }
.dark .perm-btn.primary { background: #295157; color: #fff; }
.perm-desk--simple .perm-intro { max-width: 560px; }
.perm-unsaved-banner { padding: 10px 14px; border-radius: 12px; background: rgba(255, 251, 235, .95); border: 1px solid rgba(217, 119, 6, .25); color: #92400e; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.perm-role-chip { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: rgba(41, 81, 87, .08); color: #295157; font-style: normal; font-weight: 700; font-size: 11px; }
.perm-step-head { margin-bottom: 16px; }
.perm-step-head h2 { margin: 0; font-size: 22px; }
.perm-step-head p { margin: 6px 0 0; color: #6e6e73; font-size: 13px; }
.perm-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(41, 81, 87, .08); }
.perm-section h3 { margin: 0 0 12px; font-size: 16px; font-weight: 850; }
.perm-section h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #295157; }
.perm-template-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 10px; }
.perm-template-card { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(41, 81, 87, .12); background: #fff; text-align: left; cursor: pointer; font: inherit; }
.perm-template-card.is-active { border-color: rgba(41, 81, 87, .34); background: rgba(41, 81, 87, .06); }
.perm-template-card strong { font-size: 13px; }
.perm-template-desc { margin: 0 0 10px; color: #6e6e73; font-size: 13px; line-height: 1.45; }
.perm-template-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.perm-help { color: #6e6e73; font-size: 12px; max-width: 420px; line-height: 1.4; }
.perm-summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.perm-summary-card { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(41, 81, 87, .1); background: rgba(41, 81, 87, .03); }
.perm-summary-card span { display: block; font-size: 11px; color: #6e6e73; font-weight: 700; }
.perm-summary-card strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 900; }
.perm-module-lists { display: grid; gap: 10px; margin-top: 10px; font-size: 12px; color: #6e6e73; }
.perm-group { border: 1px solid rgba(41, 81, 87, .1); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.perm-group summary { padding: 10px 12px; cursor: pointer; font-weight: 800; list-style: none; background: rgba(41, 81, 87, .03); }
.perm-group summary::-webkit-details-marker { display: none; }
.perm-level-table { display: grid; gap: 8px; padding: 10px 12px 12px; }
.perm-level-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 220px); gap: 10px; align-items: center; }
.perm-level-label { font-size: 13px; font-weight: 650; }
.perm-level-select { min-width: 0; width: 100%; }
.perm-overrides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.perm-override-item { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(41, 81, 87, .04); font-size: 12px; margin-bottom: 6px; }
.perm-muted { margin: 0; color: #6e6e73; font-size: 12px; }
.perm-section-toggle { width: 100%; text-align: left; border: 0; background: rgba(41, 81, 87, .04); padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; color: #295157; }
.perm-special-category { margin-top: 12px; }
.perm-sticky-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 16px; margin-top: 12px; border-top: 1px solid rgba(41, 81, 87, .12); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.dark .perm-sticky-bar { background: rgba(28,28,30,.92); }
.perm-editor-panel { padding-bottom: 72px; }
@media (max-width: 960px) {
    .perm-level-row { grid-template-columns: 1fr; }
    .perm-sticky-bar { justify-content: stretch; }
    .perm-sticky-bar .perm-btn { flex: 1 1 calc(50% - 8px); }
}
.perm-preview { margin-bottom: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(41, 81, 87, .1); background: rgba(41, 81, 87, .03); }
.perm-preview h3 { margin: 0 0 10px; font-size: 15px; font-weight: 850; }
.perm-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; font-size: 12px; }
.perm-preview-grid strong { display: block; margin-bottom: 2px; color: #295157; }
.perm-preview-grid p { margin: 0; color: #6e6e73; line-height: 1.4; }
.perm-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.perm-source-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.perm-source-badge.tone-inherited { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.perm-source-badge.tone-allow { background: rgba(22, 163, 74, .12); color: #166534; }
.perm-source-badge.tone-deny { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.perm-source-badge.tone-none { background: rgba(107, 114, 128, .12); color: #4b5563; }
.perm-matrix-wrap { margin-bottom: 14px; }
.perm-matrix-wrap h3, .perm-special h3 { margin: 0 0 10px; font-size: 15px; font-weight: 850; }
.perm-matrix-scroll { overflow: auto; border: 1px solid rgba(41, 81, 87, .1); border-radius: 12px; }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
.perm-matrix th, .perm-matrix td { border-bottom: 1px solid rgba(41, 81, 87, .08); padding: 8px; text-align: center; }
.perm-matrix th[scope="row"] { text-align: left; font-weight: 800; white-space: nowrap; }
.perm-matrix thead th { background: rgba(41, 81, 87, .04); font-size: 11px; }
.perm-matrix-cell { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 900; }
.perm-matrix-cell.tone-inherited { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.perm-matrix-cell.tone-allow { background: rgba(22, 163, 74, .12); color: #166534; }
.perm-matrix-cell.tone-deny { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.perm-matrix-cell.tone-none { background: rgba(107, 114, 128, .08); color: #9ca3af; }
.perm-special { margin-bottom: 14px; }
.perm-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.perm-modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .45); }
.perm-modal { width: min(480px, 100%); padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px rgba(15, 23, 42, .18); }
.perm-modal h3 { margin: 0 0 8px; font-size: 18px; font-weight: 850; }
.perm-modal-warning { margin: 0 0 14px; color: #92400e; font-size: 13px; font-weight: 650; }
.perm-modal-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.perm-modal-options { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px; border: 1px solid rgba(41, 81, 87, .1); border-radius: 12px; font-size: 13px; }
.perm-modal-options legend { font-weight: 800; padding: 0 4px; }
.perm-modal-options label { display: flex; gap: 8px; align-items: center; font-weight: 650; }
.perm-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.user-perm-panel { margin-top: 20px; padding: 16px; border: 1px solid rgba(41, 81, 87, .12); border-radius: 18px; background: rgba(255,255,255,.92); }
.user-perm-panel h3 { margin: 0 0 10px; font-size: 18px; font-weight: 850; }
.user-perm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.user-perm-stat { padding: 10px 12px; border-radius: 12px; background: rgba(41, 81, 87, .04); font-size: 12px; }
.user-perm-stat strong { display: block; font-size: 18px; font-weight: 900; }
@media (max-width: 960px) {
    .perm-layout { grid-template-columns: 1fr; }
    .perm-users-panel { max-height: none; }
    .perm-modules { max-height: none; }
    .perm-module-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .perm-top-actions { width: 100%; }
}

/* OVIP modul-alapú jogosultságkezelő */
.perm-desk--ovip .perm-top-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.perm-user-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(41, 81, 87, .08); }
.perm-user-avatar { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: rgba(41, 81, 87, .08); color: #295157; font-weight: 900; font-size: 18px; }
.perm-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.perm-user-details h2 { margin: 0; font-size: 22px; }
.perm-user-details p { margin: 4px 0 0; color: #6e6e73; font-size: 13px; }
.perm-user-role-line { font-size: 12px !important; }
.perm-user-danger-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.perm-section.compact { margin-bottom: 12px; padding-bottom: 12px; }
.perm-module-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.perm-module-tab { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(41, 81, 87, .12); background: #fff; text-align: left; cursor: pointer; font: inherit; }
.perm-module-tab strong { font-size: 13px; }
.perm-module-tab small { font-size: 11px; font-weight: 700; color: #6e6e73; }
.perm-module-tab.is-active { border-color: rgba(41, 81, 87, .34); box-shadow: inset 0 0 0 1px rgba(41, 81, 87, .12); }
.perm-module-tab.tone-success { border-color: rgba(22, 163, 74, .28); background: rgba(22, 163, 74, .06); }
.perm-module-tab.tone-success small { color: #166534; }
.perm-module-tab.tone-info { border-color: rgba(59, 130, 246, .24); background: rgba(59, 130, 246, .06); }
.perm-module-tab.tone-info small { color: #1d4ed8; }
.perm-module-tab.tone-warning { border-color: rgba(245, 158, 11, .28); background: rgba(255, 251, 235, .8); }
.perm-module-tab.tone-warning small { color: #92400e; }
.perm-module-tab.tone-neutral { border-color: rgba(107, 114, 128, .18); background: rgba(107, 114, 128, .05); }
.perm-module-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.perm-module-head h3 { margin: 0; }
.perm-pill.tone-success { background: rgba(22, 163, 74, .12); color: #166534; }
.perm-pill.tone-info { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.perm-pill.tone-warning { background: rgba(245, 158, 11, .14); color: #92400e; }
.perm-pill.tone-neutral { background: rgba(107, 114, 128, .12); color: #374151; }
.perm-switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 14px; }
.perm-switch-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(41, 81, 87, .03); font-size: 13px; cursor: pointer; }
.perm-switch-copy { display: grid; gap: 4px; }
.perm-switch-copy strong { font-weight: 750; }
.perm-access-table-wrap { overflow: auto; border: 1px solid rgba(41, 81, 87, .1); border-radius: 12px; margin-bottom: 14px; }
.perm-access-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.perm-access-table th, .perm-access-table td { border-bottom: 1px solid rgba(41, 81, 87, .08); padding: 10px 12px; vertical-align: middle; }
.perm-access-table th[scope="row"] { text-align: left; font-weight: 700; }
.perm-access-table thead th { background: rgba(41, 81, 87, .04); font-size: 12px; text-align: center; }
.perm-cell-toggle { display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 100%; cursor: pointer; }
.perm-subsection { margin-top: 14px; }
.perm-subsection h4 { margin: 0 0 8px; font-size: 14px; font-weight: 850; }
.perm-special-block { margin-top: 12px; border: 1px solid rgba(41, 81, 87, .1); border-radius: 12px; padding: 0 12px 12px; }
.perm-special-block summary { padding: 10px 0; cursor: pointer; font-weight: 800; color: #295157; list-style: none; }
.perm-special-block summary::-webkit-details-marker { display: none; }
.perm-btn.danger, .perm-btn.primary.danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
@media (max-width: 960px) {
    .perm-user-head { grid-template-columns: 1fr; }
    .perm-user-danger-actions { align-items: stretch; }
}

/* HR heti beosztás tervező */
.sch-planner { display: grid; gap: 14px; }
.sch-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sch-summary-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--nc-border); border-radius: 14px; background: rgba(255,255,255,.92); }
.sch-summary-card span { color: var(--nc-muted); font-size: 11px; font-weight: 800; }
.sch-summary-card strong { font-size: 20px; font-weight: 900; }
.sch-summary-card.tone-warning { border-color: rgba(245,158,11,.25); }
.sch-summary-card.tone-info { border-color: rgba(59,130,246,.22); }
.sch-summary-card.tone-success { border-color: rgba(22,163,74,.22); }
.sch-hours-col { min-width: 110px; text-align: center; }
.sch-hours-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #f1f5f9; }
.sch-hours-badge.tone-success { background: #ecfdf5; color: #047857; }
.sch-hours-badge.tone-warning { background: #fff7ed; color: #c2410c; }
.sch-hours-badge.tone-danger { background: #fef2f2; color: #b91c1c; }
.sch-hours-badge.tone-empty { background: #f8fafc; color: #64748b; }
.sch-row-hours { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; }
.sch-day-copy-btn { margin-top: 4px; border: 0; background: transparent; cursor: pointer; font-size: 12px; opacity: .7; }
.sch-day-copy-btn:hover { opacity: 1; }
.sch-planner-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-planner-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--nc-border); border-radius: 18px; background: rgba(255,255,255,.92); }
.sch-week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sch-week-nav strong { font-size: 15px; font-weight: 900; }
.sch-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sch-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(41,81,87,.14); background: #fff; color: #295157; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; }
.sch-btn:hover { background: rgba(41,81,87,.06); }
.sch-btn.primary { background: #295157; border-color: #295157; color: #fff; }
.sch-btn.danger { background: rgba(254,242,242,.9); border-color: rgba(239,68,68,.25); color: #991b1b; }
.sch-btn.small { min-height: 30px; padding: 0 10px; font-size: 11px; }
.sch-grid-wrap { overflow: auto; border: 1px solid var(--nc-border); border-radius: 18px; background: #fff; }
.sch-grid { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 13px; }
.sch-grid th, .sch-grid td { border-bottom: 1px solid rgba(41,81,87,.08); padding: 8px; vertical-align: middle; text-align: center; }
.sch-grid thead th { background: rgba(41,81,87,.04); font-size: 12px; font-weight: 900; }
.sch-grid thead th small { display: block; color: var(--nc-muted); font-weight: 700; }
.sch-sticky-col { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left !important; min-width: 140px; font-weight: 900; }
.sch-actions-col { min-width: 120px; }
.sch-cell { display: grid; gap: 2px; width: 100%; min-height: 54px; padding: 8px; border-radius: 12px; border: 1px solid rgba(41,81,87,.1); background: #fbfbfd; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.sch-cell.readonly { cursor: default; }
.sch-cell small { color: var(--nc-muted); font-size: 10px; font-weight: 800; }
.sch-cell.is-empty { border-style: dashed; background: rgba(255,251,235,.5); }
.sch-cell.tone-neutral { background: #f8fafc; }
.sch-cell.tone-gray { background: #f1f5f9; color: #64748b; }
.sch-cell.tone-info { background: rgba(239,246,255,.95); border-color: rgba(59,130,246,.2); color: #1d4ed8; }
.sch-cell.tone-warning { background: rgba(255,251,235,.95); border-color: rgba(245,158,11,.25); color: #92400e; }
.sch-cell.tone-empty { background: rgba(255,251,235,.35); }
.sch-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.sch-legend-item { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; border: 1px solid rgba(41,81,87,.12); }
.sch-legend-item.tone-success { background: #ecfdf5; color: #047857; }
.sch-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 60; display: grid; place-items: center; padding: 20px; }
.sch-modal { width: min(560px, 100%); background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.25); display: grid; gap: 14px; max-height: 90vh; overflow: auto; }
.sch-modal.small { width: min(420px, 100%); }
.sch-modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sch-modal-head h2 { margin: 0; font-size: 18px; font-weight: 900; }
.sch-modal-head p { margin: 4px 0 0; color: var(--nc-muted); font-size: 13px; }
.sch-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-preset-btn { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(41,81,87,.14); background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.sch-modal-form { display: grid; gap: 12px; }
.sch-modal-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.sch-modal-form input, .sch-modal-form textarea, .sch-modal-form select { width: 100%; border: 1px solid rgb(226 232 240); border-radius: 10px; padding: 8px 10px; font: inherit; }
.sch-modal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sch-modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.sch-inline-check { display: flex !important; align-items: center; gap: 8px; }
.sch-employee-checks { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.sch-hint { margin: 0; color: var(--nc-muted); font-size: 12px; }
.sch-empty { padding: 18px; text-align: center; color: var(--nc-muted); }
.dark .sch-planner-toolbar, .dark .sch-grid-wrap, .dark .sch-modal, .dark .sch-sticky-col { background: rgba(24,24,27,.92); border-color: rgba(255,255,255,.09); color: #f5f5f7; }
.dark .sch-btn, .dark .sch-preset-btn { background: rgba(39,39,42,.9); border-color: rgba(255,255,255,.1); color: #d4d4d8; }
.dark .sch-btn.primary { background: #466265; border-color: #466265; color: #fff; }
@media (max-width: 760px) {
    .sch-modal-row { grid-template-columns: 1fr; }
    .sch-toolbar-actions { width: 100%; }
}

/* HR csapat szabadságnaptár */
.tlc-calendar { display: grid; gap: 14px; }
.tlc-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tlc-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.tlc-summary-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--nc-border); border-radius: 14px; background: rgba(255,255,255,.92); }
.tlc-summary-card span { color: var(--nc-muted); font-size: 11px; font-weight: 800; }
.tlc-summary-card strong { font-size: 20px; font-weight: 900; }
.tlc-summary-card.tone-info { border-color: rgba(59,130,246,.22); }
.tlc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--nc-border); border-radius: 18px; background: rgba(255,255,255,.92); }
.tlc-month-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tlc-month-nav strong { font-size: 15px; font-weight: 900; }
.tlc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(41,81,87,.14); background: #fff; color: #295157; font-size: 13px; font-weight: 800; cursor: pointer; }
.tlc-btn:hover { background: rgba(41,81,87,.06); }
.tlc-month-panel { padding: 14px; border: 1px solid var(--nc-border); border-radius: 18px; background: rgba(255,255,255,.92); }
.tlc-day-count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(41,81,87,.1); font-size: 10px; font-weight: 900; }
.tlc-event-pill { display: grid; gap: 1px; text-decoration: none; white-space: normal; line-height: 1.2; }
.tlc-event-pill strong { font-size: 10px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; }
.tlc-event-pill small { font-size: 9px; font-weight: 700; opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.tlc-event-pill.is-own { box-shadow: inset 0 0 0 2px rgba(41,81,87,.35); }
.tlc-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--nc-border); border-radius: 14px; background: rgba(255,255,255,.92); }
.tlc-legend-title { font-size: 11px; font-weight: 900; color: var(--nc-muted); margin-right: 4px; }
.tlc-legend-pill { display: inline-flex; font-size: 10px; padding: 4px 8px; }
.tlc-legend-pill.is-own { box-shadow: inset 0 0 0 2px rgba(41,81,87,.35); }
.dark .tlc-toolbar, .dark .tlc-month-panel, .dark .tlc-summary-card, .dark .tlc-legend { background: rgba(24,24,27,.92); border-color: rgba(255,255,255,.09); color: #f5f5f7; }
.dark .tlc-btn { background: rgba(39,39,42,.9); border-color: rgba(255,255,255,.1); color: #d4d4d8; }

.sar-report { display: grid; gap: 14px; }
.sar-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sar-filters { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--nc-border); border-radius: 18px; background: rgba(255,255,255,.92); }
.sar-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sar-field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--nc-muted); }
.sar-field select, .sar-field input[type="date"] { width: 100%; padding: 8px 10px; border: 1px solid var(--nc-border); border-radius: 10px; background: #fff; font-size: 13px; }
.sar-toggle-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sar-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.sar-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sar-summary-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--nc-border); border-radius: 14px; background: rgba(255,255,255,.92); }
.sar-summary-card span { color: var(--nc-muted); font-size: 11px; font-weight: 800; }
.sar-summary-card strong { font-size: 20px; font-weight: 900; }
.sar-summary-card.tone-warning { border-color: rgba(245,158,11,.25); }
.sar-summary-card.tone-danger { border-color: rgba(239,68,68,.25); }
.sar-summary-card.tone-info { border-color: rgba(59,130,246,.22); }
.sar-summary-card.tone-success { border-color: rgba(22,163,74,.22); }
.sar-table-wrap { overflow-x: auto; border: 1px solid var(--nc-border); border-radius: 18px; background: rgba(255,255,255,.92); }
.sar-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sar-table th, .sar-table td { padding: 10px 12px; border-bottom: 1px solid var(--nc-border); text-align: left; vertical-align: top; }
.sar-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--nc-muted); }
.sar-expand-btn { border: 0; background: transparent; cursor: pointer; font-size: 12px; padding: 0; }
.sar-detail-row td { background: #f8fafc; padding: 0; }
.sar-day-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sar-day-table th, .sar-day-table td { padding: 8px 10px; border-bottom: 1px solid var(--nc-border); }
.sar-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #f1f5f9; color: #334155; }
.sar-badge-sm { font-size: 10px; padding: 2px 6px; margin-left: 4px; }
.sar-badge.tone-success { background: #ecfdf5; color: #047857; }
.sar-badge.tone-warning { background: #fff7ed; color: #c2410c; }
.sar-badge.tone-danger { background: #fef2f2; color: #b91c1c; }
.sar-badge.tone-info { background: #eff6ff; color: #1d4ed8; }
.sar-badge.tone-gray { background: #f8fafc; color: #64748b; }
.sar-note { display: block; color: var(--nc-muted); margin-top: 2px; }
.dark .sar-filters, .dark .sar-table-wrap, .dark .sar-summary-card { background: rgba(24,24,27,.92); border-color: rgba(255,255,255,.09); color: #f5f5f7; }
.dark .sar-field select, .dark .sar-field input[type="date"] { background: rgba(39,39,42,.9); border-color: rgba(255,255,255,.1); color: #f5f5f7; }
.dark .sar-detail-row td { background: rgba(39,39,42,.5); }
@media (max-width: 760px) {
    .sar-table th:nth-child(n+4), .sar-table td:nth-child(n+4) { display: none; }
    .sar-table-desktop { display: none; }
    .sar-mobile-list { display: grid; gap: 10px; padding: 10px; }
}
@media (min-width: 761px) {
    .sar-mobile-list { display: none; }
}
.sar-mobile-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--nc-border); border-radius: 14px; background: #fff; }
.sar-mobile-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sar-mobile-stats { display: grid; gap: 4px; font-size: 12px; color: var(--nc-muted); }
.sar-mobile-days { display: grid; gap: 8px; margin-top: 8px; }
.sar-mobile-day { display: grid; gap: 4px; padding: 8px; border-radius: 10px; background: #f8fafc; font-size: 12px; }

.mhr-body { margin: 0; background: #f3f6f8; color: #0f172a; font-family: Inter, system-ui, sans-serif; }
.mhr-header, .mhr-main { max-width: 720px; margin: 0 auto; }
.mhr-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 16px 8px; }
.mhr-header h1 { margin: 0; font-size: 24px; }
.mhr-header-link { font-size: 13px; font-weight: 700; color: #0f766e; text-decoration: none; }
.mhr-main { padding: 0 16px 24px; }
.mhr-dashboard { display: grid; gap: 12px; }
.mhr-quick-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.mhr-quick-link { flex: 0 0 auto; padding: 10px 12px; border-radius: 999px; background: #fff; border: 1px solid #dbe3ea; font-size: 13px; font-weight: 700; text-decoration: none; color: #0f172a; }
.mhr-quick-link.primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.mhr-card { background: #fff; border: 1px solid #dbe3ea; border-radius: 18px; padding: 14px; display: grid; gap: 12px; }
.mhr-leave-calendar-link { padding: 0; overflow: hidden; }
.mhr-link-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: inherit; }
.mhr-link-card em { font-style: normal; font-size: 18px; font-weight: 900; color: #0f766e; }
.mhr-link-card small { display: block; margin-top: 4px; color: #64748b; font-size: 12px; font-weight: 600; }
.mhr-link-card:hover { background: rgba(15,118,110,.04); }
.mhr-card.compact { gap: 6px; }
.mhr-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mhr-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.mhr-card h2 { margin: 4px 0 0; font-size: 20px; }
.mhr-label { display: block; font-size: 11px; font-weight: 800; color: #64748b; margin-bottom: 4px; }
.mhr-info-grid { display: grid; gap: 12px; }
.mhr-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mhr-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; color: #0f172a; }
.mhr-btn.primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.mhr-btn.ghost { min-height: auto; padding: 8px 10px; font-size: 12px; }
.mhr-week-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.mhr-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #f1f5f9; }
.mhr-badge.tone-success { background: #ecfdf5; color: #047857; }
.mhr-badge.tone-warning { background: #fff7ed; color: #c2410c; }
.mhr-badge.tone-danger { background: #fef2f2; color: #b91c1c; }
.mhr-badge.tone-info { background: #eff6ff; color: #1d4ed8; }
.mhr-badge.tone-gray, .mhr-badge.tone-neutral { background: #f8fafc; color: #64748b; }
.mhr-alert { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.mhr-alert.tone-success { background: #ecfdf5; color: #047857; }
.mhr-alert.tone-warning { background: #fff7ed; color: #c2410c; }
.mhr-alert.tone-danger { background: #fef2f2; color: #b91c1c; }
.mhr-alert.tone-info { background: #eff6ff; color: #1d4ed8; }
.mhr-alert.tone-neutral { background: #f8fafc; color: #475569; }
.mhr-day-list { display: grid; gap: 10px; }
.mhr-day-card { padding: 12px; border-radius: 14px; border: 1px solid #e2e8f0; background: #f8fafc; display: grid; gap: 6px; }
.mhr-day-card.is-today { border-color: #0f766e; background: #ecfdf5; }
.mhr-day-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mhr-day-title { margin: 0; font-size: 16px; font-weight: 800; }
.mhr-note { display: block; color: #64748b; font-size: 12px; }
.mhr-form { display: grid; gap: 10px; }
.mhr-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #475569; }
.mhr-form input, .mhr-form select, .mhr-form textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 15px; box-sizing: border-box; }
.mhr-empty { padding: 12px; color: #64748b; font-size: 13px; }
.mhr-care-lead { padding: 10px 12px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; display: grid; gap: 4px; }
.mhr-care-lead strong { font-size: 16px; }
.mhr-dashboard--filament .mhr-header { display: none; }
.mhr-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mhr-field-wide { grid-column: 1 / -1; }
.mhr-hours { font-size: 18px; color: #0f766e; }
.mhr-list { display: grid; gap: 10px; }
.mhr-list-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.mhr-list-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mhr-link-btn { border: 0; background: transparent; color: #0f766e; font-size: 12px; font-weight: 800; cursor: pointer; }
.sar-reject-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sar-reject-form input { flex: 1; min-width: 220px; min-height: 38px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; }
@media (min-width: 900px) {
    .mhr-info-grid { grid-template-columns: 1fr 1fr; }
    .mhr-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hier-desk { display: grid; gap: 16px; color: #1d1d1f; }
.hier-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hier-kicker { margin: 0; font-size: 12px; font-weight: 700; color: #6e6e73; }
.hier-intro { margin: 6px 0 0; max-width: 640px; color: #6e6e73; font-size: 14px; }
.hier-top-actions, .hier-form-actions, .hier-sub-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hier-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border-radius: 10px; border: 1px solid #d2d2d7; background: #fff; color: #1d1d1f; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.hier-btn.primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.hier-btn.ghost { background: transparent; }
.hier-btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.hier-card { background: #fff; border: 1px solid #e5e5ea; border-radius: 16px; padding: 16px; display: grid; gap: 14px; }
.hier-card-head h2, .hier-manager-head h3 { margin: 0; font-size: 18px; }
.hier-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.hier-form-grid label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #6e6e73; }
.hier-form-grid select { width: 100%; min-height: 42px; border: 1px solid #d2d2d7; border-radius: 10px; padding: 8px 10px; font-size: 14px; background: #fff; }
.hier-checkbox { display: flex !important; flex-direction: row; align-items: center; gap: 8px; min-height: 42px; }
.hier-error { color: #b42318; font-size: 12px; font-weight: 600; }
.hier-cards-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.hier-manager-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.hier-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #eef2ff; display: grid; place-items: center; font-weight: 800; color: #4338ca; }
.hier-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hier-manager-head p, .hier-manager-head small { margin: 2px 0 0; color: #6e6e73; font-size: 13px; }
.hier-inline-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.hier-inline-add select { min-height: 38px; border: 1px solid #d2d2d7; border-radius: 10px; padding: 8px 10px; }
.hier-subordinate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hier-subordinate-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #ececf1; border-radius: 12px; background: #fafafa; }
.hier-sub-main { display: grid; gap: 4px; }
.hier-sub-main strong { font-size: 14px; }
.hier-sub-main small { color: #6e6e73; font-size: 12px; }
.hier-pill { display: inline-flex; width: fit-content; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.hier-pill.success { background: #ecfdf5; color: #047857; }
.hier-pill.warning { background: #fff7ed; color: #c2410c; }
.hier-pill.neutral { background: #f1f5f9; color: #475569; }
.hier-icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d2d2d7; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.hier-icon-btn.danger { color: #b42318; border-color: #fecaca; background: #fff5f5; }
.hier-empty { padding: 18px; text-align: center; color: #6e6e73; font-size: 14px; }
.hier-empty.large { min-height: 120px; display: grid; place-items: center; }
.hier-empty.inline { background: transparent; border: none; padding: 8px 0; text-align: left; }
.hier-tree, .hier-tree ul { list-style: none; margin: 0; padding: 0; }
.hier-tree-node { margin-left: calc(var(--depth, 0) * 18px); padding-left: 12px; border-left: 2px solid #e5e5ea; margin-top: 8px; }
.hier-tree-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; }
.user-hier-panel, .user-hier-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ececf1; }
.user-hier-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.user-hier-stat { min-width: 120px; padding: 10px 12px; border-radius: 12px; background: #f5f5f7; }
.user-hier-stat span { display: block; font-size: 12px; color: #6e6e73; }
.user-hier-stat strong { font-size: 18px; }
.user-hier-note { font-size: 13px; color: #c2410c; margin: 8px 0 0; }
.user-hier-block ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.dark .hier-desk, .dark .hier-card { color: #f5f5f7; background: rgba(24,24,27,.92); border-color: rgba(255,255,255,.09); }
.dark .hier-btn { background: rgba(39,39,42,.9); border-color: rgba(255,255,255,.1); color: #f5f5f7; }
.dark .hier-form-grid select, .dark .hier-inline-add select { background: rgba(39,39,42,.9); border-color: rgba(255,255,255,.1); color: #f5f5f7; }
.dark .hier-subordinate-list li { background: rgba(39,39,42,.55); border-color: rgba(255,255,255,.08); }



/* Platform Operations workbench */
.nc-platform-operation-confirmation-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: .875rem;
}

.po-workbench .nc-workbench-surface {
    padding: 20px;
}

.po-section {
    min-width: 0;
}

.po-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.po-section-head h2 {
    margin: 0;
    color: var(--nc-text);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.po-section-head p:not(.po-section-kicker) {
    margin: 4px 0 0;
    color: var(--nc-muted);
    font-size: 13px;
}

.po-section-kicker {
    margin: 0 0 3px;
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

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

.po-status-card {
    display: flex;
    min-height: 122px;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.po-kpi-top,
.po-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.po-kpi-top > span {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 750;
}

.po-status-card .po-kpi-operation {
    font-size: 18px;
    line-height: 1.25;
}

.po-operation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.po-operation-card,
.po-health-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.po-operation-card {
    min-height: 320px;
}

.po-card-head > div {
    min-width: 0;
}

.po-card-head h3 {
    margin: 0;
    color: var(--nc-text);
    font-size: 16px;
    font-weight: 850;
}

.po-card-head p {
    margin: 5px 0 0;
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.po-card-actions {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin-top: auto;
}

.po-muted {
    color: var(--nc-muted);
    font-size: 12px;
}

.po-compact-list {
    display: grid;
    gap: 5px;
    max-height: 112px;
    margin: 0;
    padding-left: 18px;
    overflow-y: auto;
    color: var(--nc-text);
    font-size: 12px;
}

.po-compact-list li {
    overflow-wrap: anywhere;
}

.po-details {
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    background: rgba(41, 81, 87, .025);
}

.po-details summary {
    padding: 10px 12px;
    color: var(--nc-text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.po-details ul {
    display: grid;
    gap: 5px;
    max-height: 180px;
    margin: 0;
    padding: 0 12px 12px 30px;
    overflow-y: auto;
    font-size: 11px;
}

.po-info-note,
.po-warning-note {
    padding: 11px 12px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 13px;
    background: rgba(37, 99, 235, .045);
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.po-warning-note {
    border-color: rgba(217, 119, 6, .2);
    background: rgba(255, 251, 235, .8);
    color: #92400e;
}

.po-action-list {
    display: grid;
    gap: 8px;
}

.po-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    background: rgba(41, 81, 87, .025);
}

.po-action-row > div {
    min-width: 0;
}

.po-action-row strong,
.po-action-row small {
    display: block;
}

.po-action-row strong {
    color: var(--nc-text);
    font-size: 13px;
}

.po-action-row small {
    margin-top: 3px;
    color: var(--nc-muted);
    font-size: 11px;
    line-height: 1.35;
}

.po-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

#po-queue-diagnostics {
    grid-column: 1 / -1;
}

.po-queue-named-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 8px;
}

.po-queue-named-card {
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(41, 81, 87, .02);
}

.po-queue-named-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.po-queue-named-meta {
    display: grid;
    gap: 4px;
    margin: 0;
}

.po-queue-named-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.po-queue-named-meta dt {
    color: var(--nc-muted);
    font-weight: 650;
}

.po-queue-named-meta dd {
    margin: 0;
    font-weight: 750;
}

.po-queue-subhead {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 750;
}

.po-queue-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 8px 0 12px;
    font-size: 12px;
}

.po-queue-filters label {
    display: grid;
    gap: 4px;
    color: var(--nc-muted);
}

.po-queue-filters select,
.po-queue-cleanup input {
    min-height: 36px;
    border: 1px solid rgba(41, 81, 87, .16);
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.po-queue-pager,
.po-queue-cleanup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.po-queue-jobs small {
    display: block;
    color: var(--nc-muted);
}

.po-definition-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid rgba(41, 81, 87, .09);
    border-radius: 14px;
    overflow: hidden;
}

.po-definition-list > div {
    display: grid;
    grid-template-columns: minmax(145px, .85fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    background: rgba(41, 81, 87, .02);
}

.po-definition-list > div + div {
    border-top: 1px solid rgba(41, 81, 87, .08);
}

.po-definition-list dt {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 700;
}

.po-definition-list dd {
    margin: 0;
    color: var(--nc-text);
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.po-audit-table-wrap {
    width: 100%;
    min-width: 0;
}

.po-audit-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.po-audit-table th {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(41, 81, 87, .12);
    color: var(--nc-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.po-audit-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(41, 81, 87, .07);
    color: var(--nc-text);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.po-audit-table th:first-child { width: 22%; }
.po-audit-table th:nth-child(2) { width: 11%; }
.po-audit-table th:nth-child(3) { width: 14%; }
.po-audit-table th:nth-child(4),
.po-audit-table th:nth-child(5) { width: 13%; }
.po-audit-table th:nth-child(6) { width: 10%; }
.po-audit-table th:last-child { width: 17%; }

.po-audit-table td > strong,
.po-audit-table td > small {
    display: block;
}

.po-audit-table td > small {
    max-width: 180px;
    margin-top: 4px;
    color: var(--nc-muted);
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.po-audit-details summary {
    color: var(--nc-green);
    font-weight: 800;
    cursor: pointer;
}

.po-audit-details > div {
    margin-top: 8px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(41, 81, 87, .045);
}

.po-audit-details p {
    margin: 0;
    font-size: 11px;
}

.po-audit-details pre {
    max-height: 150px;
    margin: 6px 0 0;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}

.dark .po-details,
.dark .po-action-row,
.dark .po-definition-list {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
}

.dark .po-definition-list > div {
    background: rgba(255, 255, 255, .02);
}

.dark .po-definition-list > div + div,
.dark .po-audit-table th,
.dark .po-audit-table td {
    border-color: rgba(255, 255, 255, .08);
}

.dark .po-info-note {
    border-color: rgba(96, 165, 250, .16);
    background: rgba(59, 130, 246, .08);
    color: #cbd5e1;
}

.dark .po-warning-note {
    border-color: rgba(251, 191, 36, .18);
    background: rgba(245, 158, 11, .08);
    color: #fcd34d;
}

.dark .po-audit-details > div {
    background: rgba(255, 255, 255, .04);
}

@media (max-width: 1180px) {
    .po-status-grid,
    .po-operation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-operation-card:last-child {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

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

    .po-queue-named-grid {
        grid-template-columns: 1fr;
    }

    .po-audit-table .po-col-secondary {
        display: none;
    }

    .po-audit-table th:first-child { width: 27%; }
    .po-audit-table th:nth-child(2) { width: 15%; }
    .po-audit-table th:nth-child(3) { width: 18%; }
    .po-audit-table th:nth-child(4) { width: 20%; }
    .po-audit-table th:last-child { width: 20%; }
}

@media (max-width: 680px) {
    .po-workbench .nc-workbench-surface {
        padding: 12px;
    }

    .po-status-grid,
    .po-operation-grid {
        grid-template-columns: 1fr;
    }

    .po-operation-card:last-child {
        grid-column: auto;
    }

    .po-operation-card {
        min-height: auto;
    }

    .po-card-head,
    .po-action-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .po-action-row {
        width: 100%;
    }

    .po-definition-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .po-audit-table th:nth-child(3),
    .po-audit-table td:nth-child(3) {
        display: none;
    }

    .po-audit-table {
        font-size: 11px;
    }

    .po-audit-table th,
    .po-audit-table td {
        padding-right: 6px;
        padding-left: 6px;
    }

    .po-audit-table th:first-child { width: 34%; }
    .po-audit-table th:nth-child(2) { width: 20%; }
    .po-audit-table th:nth-child(4) { width: 25%; }
    .po-audit-table th:last-child { width: 21%; }
}

/* Import reset section only. Other platform-operation cards stay on .po-operation-card. */
.po-import-reset {
    min-width: 0;
    max-width: 100%;
}

.po-import-reset-head {
    align-items: flex-start;
    flex-wrap: wrap;
}

.po-import-reset-head > div:first-child {
    flex: 1 1 16rem;
    min-width: 0;
}

.po-import-reset-badge {
    flex: 0 0 auto;
    max-width: 100%;
}

.po-import-reset-badge .fi-badge,
.po-import-reset-badge .fi-badge-label {
    flex-shrink: 0;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.po-import-reset-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    min-height: 0;
}

.po-import-reset-form,
.po-import-reset-result {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.po-import-reset-block h3,
.po-import-reset-summary h3,
.po-import-reset-danger h3 {
    margin: 0 0 10px;
    color: var(--nc-text);
    font-size: 14px;
    font-weight: 850;
}

.po-import-reset-modes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.po-import-reset-mode,
.po-import-reset-ack,
.po-import-reset-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.po-import-reset-mode {
    padding: 12px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 14px;
    background: rgba(41, 81, 87, .025);
}

.po-import-reset-mode:has(input:checked) {
    border-color: rgba(41, 81, 87, .45);
    background: rgba(41, 81, 87, .07);
}

.po-import-reset-mode input,
.po-import-reset-ack input,
.po-import-reset-choice input {
    width: 1rem;
    height: 1rem;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.po-import-reset-mode span,
.po-import-reset-ack span,
.po-import-reset-choice span {
    min-width: 0;
}

.po-import-reset-mode strong,
.po-import-reset-ack strong {
    display: block;
    color: var(--nc-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.po-import-reset-mode small,
.po-import-reset-ack small {
    display: block;
    margin-top: 4px;
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.po-import-reset-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.po-import-reset-fields.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.po-import-reset-block,
.po-import-reset-field {
    min-width: 0;
}

.po-import-reset-label {
    margin: 0 0 8px;
    color: var(--nc-text);
    font-size: 13px;
    font-weight: 800;
}

.po-import-reset .fi-input-wrp,
.po-import-reset input[type="text"] {
    width: 100%;
    max-width: 100%;
}

.po-import-reset-choices {
    display: grid;
    gap: 8px;
}

.po-import-reset-choice {
    padding: 4px 2px;
    color: var(--nc-text);
    font-size: 13px;
    line-height: 1.4;
}

.po-import-reset-record-list {
    max-height: 18rem;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 14px;
    background: rgba(41, 81, 87, .02);
}

.po-import-reset-ack {
    padding: 12px;
    border: 1px solid rgba(41, 81, 87, .12);
    border-radius: 14px;
    background: rgba(41, 81, 87, .025);
}

.po-import-reset-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.po-import-reset-actions .fi-btn:disabled,
.po-import-reset-actions .fi-btn[disabled] {
    cursor: not-allowed;
    opacity: .55;
}

.po-import-reset-error {
    margin: 0;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.45;
}

.po-import-reset-note {
    margin: 0;
    color: var(--nc-text);
    font-size: 13px;
    line-height: 1.5;
}

.po-import-reset-status {
    margin: 0;
    padding: 11px 12px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.po-import-reset-status.is-success {
    border: 1px solid rgba(22, 101, 52, .2);
    background: rgba(220, 252, 231, .7);
    color: #166534;
}

.po-import-reset-status.is-partial,
.po-import-reset-status.is-stopped,
.po-import-reset-status.is-running {
    border: 1px solid rgba(217, 119, 6, .22);
    background: rgba(255, 251, 235, .85);
    color: #92400e;
}

.po-import-reset-status.is-failed {
    border: 1px solid rgba(185, 28, 28, .22);
    background: rgba(254, 242, 242, .85);
    color: #991b1b;
}

.po-import-reset-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.po-import-reset-counts > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(41, 81, 87, .1);
    border-radius: 14px;
    background: rgba(41, 81, 87, .025);
}

.po-import-reset-counts span {
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.po-import-reset-counts strong {
    color: var(--nc-text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

.po-import-reset-details .po-import-reset-detail-body {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.po-import-reset-details p,
.po-import-reset-reason-list {
    margin: 0;
    color: var(--nc-text);
    font-size: 12px;
    line-height: 1.5;
}

.po-import-reset-reason-list {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px 28px;
}

.po-import-reset-detail-body code {
    overflow-wrap: anywhere;
}

.po-import-reset-table-wrap {
    max-width: 100%;
    max-height: 24rem;
    margin: 0 12px 12px;
    overflow: auto;
}

.po-import-reset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.po-import-reset-table th,
.po-import-reset-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(41, 81, 87, .08);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.po-import-reset-table th {
    color: var(--nc-muted);
    font-size: 11px;
    font-weight: 800;
}

.po-import-reset-danger {
    padding: 14px;
    border: 1px solid rgba(185, 28, 28, .28);
    border-radius: 14px;
    background: rgba(254, 242, 242, .72);
}

.po-import-reset-danger p {
    margin: 0;
    color: #7f1d1d;
    line-height: 1.5;
}

.dark .po-import-reset-mode,
.dark .po-import-reset-ack,
.dark .po-import-reset-record-list,
.dark .po-import-reset-counts > div {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
}

.dark .po-import-reset-mode:has(input:checked) {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
}

.dark .po-import-reset-status.is-success {
    border-color: rgba(74, 222, 128, .25);
    background: rgba(22, 101, 52, .2);
    color: #bbf7d0;
}

.dark .po-import-reset-status.is-partial,
.dark .po-import-reset-status.is-stopped,
.dark .po-import-reset-status.is-running {
    border-color: rgba(251, 191, 36, .25);
    background: rgba(245, 158, 11, .12);
    color: #fcd34d;
}

.dark .po-import-reset-status.is-failed,
.dark .po-import-reset-danger {
    border-color: rgba(248, 113, 113, .3);
    background: rgba(127, 29, 29, .22);
    color: #fecaca;
}

.dark .po-import-reset-danger p,
.dark .po-import-reset-error {
    color: #fecaca;
}

.dark .po-import-reset-table th,
.dark .po-import-reset-table td {
    border-color: rgba(255, 255, 255, .08);
}

@media (max-width: 900px) {
    .po-import-reset-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .po-import-reset-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Customer order shortages worklist */
.cos-workbench { display: grid; gap: 12px; max-width: 100%; overflow-x: hidden; }
.cos-workbench .nc-module-subnav-slot { margin: 2px 0 4px; }
.cos-back-link { font-weight: 750; }
.cos-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.cos-kpi {
    display: grid;
    gap: 2px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: rgb(255 255 255);
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.cos-kpi.is-active {
    border-color: rgb(41 81 87);
    box-shadow: inset 0 0 0 1px rgb(41 81 87);
    background: rgb(248 250 252);
}
.cos-kpi-label { color: rgb(100 116 139); font-size: 11px; font-weight: 750; }
.cos-kpi-value { color: rgb(15 23 42); font-size: 15px; font-weight: 850; line-height: 1.2; }
.dark .cos-kpi { background: rgb(24 24 27); border-color: rgba(113, 113, 122, .4); }
.dark .cos-kpi-value { color: rgb(248 250 252); }
.cos-meta-row { display: grid; gap: 4px; margin: 2px 0 4px; }
.cos-missing-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.cos-meta-label { color: rgb(100 116 139); font-size: 12px; font-weight: 700; }
.cos-coverage-secondary { margin: 0; color: rgb(100 116 139); font-size: 12px; font-weight: 600; }
.cos-filter-panel {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: rgb(255 255 255);
}
.dark .cos-filter-panel { background: rgb(24 24 27); border-color: rgba(113, 113, 122, .4); }
.cos-filter-primary {
    display: grid;
    grid-template-columns: 4fr 2fr 2fr 2fr;
    gap: 10px;
}
.cos-filter-secondary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.cos-filter-field { display: grid; gap: 4px; min-width: 0; }
.cos-filter-label { color: rgb(100 116 139); font-size: 11px; font-weight: 750; }
.cos-filter-field input,
.cos-filter-field select {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 9px;
    background: rgb(248 250 252);
    color: inherit;
    font: inherit;
}
.cos-filter-disclosure {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 9px;
    background: rgb(248 250 252);
    color: rgb(51 65 85);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.cos-filter-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cos-active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cos-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgb(241 245 249);
    color: rgb(51 65 85);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.cos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
}
.cos-btn:disabled { opacity: .45; cursor: not-allowed; }
.cos-btn-primary { background: rgb(41 81 87); color: #fff; }
.cos-btn-secondary { background: #fff; border-color: rgba(148, 163, 184, .35); color: rgb(51 65 85); }
.cos-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cos-toolbar-count { color: rgb(100 116 139); font-size: 13px; font-weight: 700; }
.cos-more-actions { position: relative; }
.cos-more-actions > summary {
    list-style: none;
    cursor: pointer;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: rgb(71 85 105);
}
.cos-more-actions > summary::-webkit-details-marker { display: none; }
.cos-more-actions-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 160px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.cos-more-actions-menu button {
    width: 100%;
    text-align: left;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.cos-bulk-bar {
    position: sticky;
    bottom: 12px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: rgb(248 250 252);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.cos-bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cos-table-wrap { max-width: 100%; overflow-x: hidden; }
.cos-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}
.cos-col-check { width: 40px; }
.cos-col-order { width: 14%; }
.cos-col-product { width: 19%; }
.cos-col-shortage { width: 15%; }
.cos-col-supplier { width: 17%; }
.cos-col-procurement { width: auto; }
.cos-col-actions { width: 78px; }
.cos-table th {
    text-align: left;
    color: rgb(100 116 139);
    font-weight: 800;
    border-bottom: 1px solid rgb(226 232 240);
    padding: 8px 6px;
    vertical-align: bottom;
}
.cos-table td {
    color: rgb(30 41 59);
    border-bottom: 1px solid rgb(241 245 249);
    padding: 8px 6px;
    vertical-align: top;
    min-width: 0;
}
.cos-table tbody tr:hover { background: rgb(248 250 252); }
.cos-link { color: rgb(41 81 87); font-weight: 800; text-decoration: none; }
.cos-muted { display: block; margin-top: 2px; color: rgb(100 116 139); font-size: 11px; font-weight: 600; }
.cos-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.cos-shortage { display: block; font-weight: 850; }
.cos-shortage.is-warning { color: rgb(146 64 14); }
.cos-shortage.is-critical { color: rgb(185 28 28); }
.cos-shortage.is-covered { color: rgb(21 128 61); }
.cos-shortage.is-partial { color: rgb(29 78 216); }
.cos-supplier-cell { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.cos-supplier-info { display: inline-flex; color: rgb(148 163 184); flex: 0 0 auto; }
.cos-td-check { width: 40px; }
.cos-td-actions { width: 78px; }
.cos-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: #fff;
    color: rgb(41 81 87);
    text-decoration: none;
    cursor: pointer;
}
.cos-mobile-cards { display: none; }
.cos-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: #fff;
}
.cos-card-head { display: flex; gap: 10px; align-items: flex-start; }
.cos-card-shortage { margin: 0; font-weight: 850; color: rgb(146 64 14); }
.cos-card-cta { margin-top: 4px; min-height: 44px; }
.cos-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cos-modal {
    width: min(520px, 100%); background: #fff; border-radius: 16px; padding: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
}
.cos-modal-wide { width: min(720px, 100%); }
.cos-modal h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.cos-modal dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 16px; font-size: 13px; }
.cos-modal dt { color: rgb(100 116 139); font-weight: 800; }
.cos-preview-group { border: 1px solid rgb(226 232 240); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.cos-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 1100px) {
    .cos-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cos-filter-primary,
    .cos-filter-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cos-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cos-filter-primary,
    .cos-filter-secondary { grid-template-columns: 1fr; }
    .cos-table { display: none; }
    .cos-mobile-cards { display: grid; gap: 10px; }
    .cos-bulk-bar { bottom: 8px; }
    .cos-btn,
    .cos-icon-btn,
    .cos-card-cta { min-height: 44px; }
    .cos-icon-btn { width: 44px; height: 44px; }
}

/*
 * Product Import wizard action bar.
 *
 * Filament admin loads this stylesheet (not Vite resources/css/app.css).
 * position:sticky cannot pin here: html/body/.fi-body use overflow-x:hidden
 * (computed overflow-y:auto scroll containment) and inactive wizard steps use
 * overflow:hidden. Filament's own .fi-sc-actions.fi-sticky uses position:fixed.
 *
 * Same .fi-sc-wizard-footer node stays in the DOM (no cloned Tovább/Vissza).
 * JS (nc-product-import-wizard-footer.js) unpins 200px before the natural footer
 * would meet the viewport (hysteresis), so the bar does not vibrate at the edge.
 */

/* Mapping row: left = source facts, right = three aligned controls (~50%). */
.nc-product-import-mapping-row {
    align-items: stretch;
}

.nc-product-import-mapping-source {
    box-sizing: border-box;
    height: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(248 250 252);
}

.dark .nc-product-import-mapping-source {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.nc-product-import-mapping-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 767px) {
    .nc-product-import-mapping-row {
        row-gap: 1rem;
    }
}

.nc-product-import-wizard.fi-sc-wizard {
    --nc-wizard-footer-h: 4.75rem;
    padding-bottom: var(--nc-wizard-footer-h);
}

.nc-product-import-wizard.fi-sc-wizard.nc-wizard-footer-unpinned {
    padding-bottom: 0.25rem;
}

.nc-product-import-wizard.fi-sc-wizard > .fi-sc-wizard-footer {
    position: fixed;
    bottom: 0;
    z-index: 40;
    box-sizing: border-box;
    margin-top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: auto;
    border-top: 1px solid rgb(226 232 240);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(29, 29, 31, .06);
}

.fi-sidebar.fi-sidebar-open ~ .fi-main-ctn .nc-product-import-wizard.fi-sc-wizard > .fi-sc-wizard-footer {
    inset-inline-start: var(--sidebar-width);
}

.dark .nc-product-import-wizard.fi-sc-wizard > .fi-sc-wizard-footer {
    border-top-color: rgba(255, 255, 255, .1);
    background: rgba(24, 24, 27, .94);
}

.nc-product-import-wizard.fi-sc-wizard.nc-wizard-footer-unpinned > .fi-sc-wizard-footer {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 0.75rem;
    box-shadow: none;
    border-radius: 0;
}

@media (min-width: 48rem) {
    .nc-product-import-wizard.fi-sc-wizard:not(.nc-wizard-footer-unpinned) > .fi-sc-wizard-footer {
        bottom: 1rem;
        margin-inline: 0.75rem;
        width: auto;
        border-radius: 0.75rem;
        box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.12);
    }

    .nc-product-import-wizard.fi-sc-wizard:not(.nc-wizard-footer-unpinned) {
        padding-bottom: calc(var(--nc-wizard-footer-h) + 1rem);
    }
}

@media (max-width: 640px) {
    .nc-product-import-wizard.fi-sc-wizard > .fi-sc-wizard-footer {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Sales Assistant — compact clickable row actions */
.nc-sales-assistant-workbench .nc-sa-quote-link {
    display: inline;
    white-space: nowrap;
}

.nc-sales-assistant-workbench .nc-sa-quote-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nc-sales-assistant-workbench .nc-sa-quote-link:focus-visible {
    outline: 2px solid rgba(41, 81, 87, .35);
    outline-offset: 2px;
    border-radius: 4px;
}

.nc-sales-assistant-workbench .nc-row-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    max-width: none;
    white-space: nowrap;
}

.nc-sa-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 10px;
    border: 1px solid rgba(41, 81, 87, .18);
    background: rgba(251, 251, 253, .98);
    color: rgb(30 41 59);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background .12s ease, border-color .12s ease, filter .12s ease, opacity .12s ease;
}

.nc-sa-action:hover {
    border-color: rgba(41, 81, 87, .34);
    background: #fff;
}

.nc-sa-action:focus-visible {
    outline: 2px solid rgba(41, 81, 87, .35);
    outline-offset: 2px;
}

.nc-sa-action:disabled,
.nc-sa-action[disabled] {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.nc-sa-action__spinner {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: currentColor;
    animation: nc-sa-spin .7s linear infinite;
    flex: 0 0 auto;
}

.nc-sa-action--secondary .nc-sa-action__spinner,
.nc-filter-submit .nc-sa-action__spinner {
    border-color: rgba(41, 81, 87, .2);
    border-top-color: var(--nc-green, rgb(41 81 87));
}

.nc-sa-action--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2));
    color: #fff;
}

.nc-sa-action--primary:hover {
    filter: brightness(1.04);
    background: linear-gradient(135deg, var(--nc-green), var(--nc-green-2));
    color: #fff;
}

.nc-sa-action--secondary {
    background: rgba(241, 245, 249, .95);
}

.nc-sa-action--danger {
    border-color: rgba(185, 28, 28, .28);
    background: rgba(254, 242, 242, .95);
    color: rgb(153 27 27);
}

.nc-sa-action--danger:hover {
    border-color: rgba(185, 28, 28, .42);
    background: rgba(254, 226, 226, .98);
}

.nc-sa-action--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, .45);
    color: rgb(100 116 139);
}

.nc-sa-action--ghost:hover {
    background: rgba(248, 250, 252, .95);
    color: rgb(51 65 85);
}

.nc-sa-more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.nc-sales-assistant-workbench .nc-sa-more .fi-dropdown-trigger {
    display: inline-flex;
}

.nc-sa-more__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(41, 81, 87, .18);
    background: rgba(251, 251, 253, .98);
    color: rgb(71 85 105);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .12s ease, border-color .12s ease;
}

.nc-sa-more__trigger:hover {
    border-color: rgba(41, 81, 87, .34);
    background: #fff;
    color: rgb(30 41 59);
}

.nc-sa-more__trigger:focus-visible {
    outline: 2px solid rgba(41, 81, 87, .35);
    outline-offset: 2px;
}

.dark .nc-sa-action {
    background: rgba(39, 39, 42, .92);
    border-color: rgba(255, 255, 255, .12);
    color: rgb(244 244 245);
}

.dark .nc-sa-action--primary {
    color: #fff;
}

.dark .nc-sa-action--danger {
    background: rgba(127, 29, 29, .28);
    border-color: rgba(248, 113, 113, .35);
    color: rgb(254 202 202);
}

.dark .nc-sa-action--ghost {
    background: transparent;
    color: rgb(161 161 170);
}

.dark .nc-sa-more__trigger {
    background: rgba(39, 39, 42, .92);
    border-color: rgba(255, 255, 255, .12);
    color: rgb(212 212 216);
}

.dark .nc-sa-more__trigger:hover {
    background: rgba(39, 39, 42, .98);
    color: rgb(244 244 245);
}

@media (max-width: 760px) {
    .nc-sales-assistant-workbench .nc-row-actions {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .nc-sa-action,
    .nc-sa-more__trigger {
        min-height: 36px;
    }

    .nc-sa-more__trigger {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }
}

/* Sales Assistant — AI follow-up draft panel (full-width below table) */
.nc-sales-assistant-ai-draft {
    width: 100%;
    margin-top: 12px;
}

.nc-sales-assistant-ai-draft .nc-panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nc-sales-assistant-ai-draft__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.nc-sales-assistant-ai-draft__heading {
    min-width: 0;
    flex: 1 1 auto;
}

.nc-sales-assistant-ai-draft__heading .nc-section-title {
    margin: 0;
}

.nc-sales-assistant-ai-draft__heading .nc-meta-line {
    margin: 4px 0 0;
}

.nc-sales-assistant-ai-draft__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nc-border, rgba(41, 81, 87, .16));
    border-radius: 10px;
    background: transparent;
    color: var(--nc-muted, rgb(100 116 139));
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.nc-sales-assistant-ai-draft__close:hover {
    color: var(--nc-text, rgb(15 23 42));
    border-color: rgba(41, 81, 87, .35);
}

.nc-sales-assistant-ai-draft__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.nc-sales-assistant-ai-draft__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.nc-sales-assistant-ai-draft__control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nc-sales-assistant-ai-draft__textarea {
    min-height: 240px;
    resize: vertical;
    line-height: 1.5;
    white-space: pre-wrap;
}

.nc-sales-assistant-ai-draft__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.nc-sales-assistant-ai-draft__footer .nc-filter-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 760px) {
    .nc-sales-assistant-ai-draft__footer {
        flex-direction: column-reverse;
    }

    .nc-sales-assistant-ai-draft__footer .nc-filter-submit,
    .nc-sales-assistant-ai-draft__footer .nc-filter-reset {
        width: 100%;
        justify-content: center;
    }

    .nc-sales-assistant-ai-draft__textarea {
        min-height: 200px;
    }
}


.nc-sales-assistant-ai-draft__loading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 0;
}

.nc-sales-assistant-ai-draft__spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(41, 81, 87, .18);
    border-top-color: var(--nc-green, rgb(41 81 87));
    animation: nc-sa-spin .7s linear infinite;
    flex: 0 0 auto;
}

.nc-sales-assistant-ai-draft__regen-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--nc-muted, rgb(100 116 139));
}

@keyframes nc-sa-spin {
    to { transform: rotate(360deg); }
}

/* Shared nc-modal used by Sales Assistant lost-reason + AI Focus dialogs */
.nc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, .45);
}

.nc-modal {
    position: fixed;
    z-index: 81;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid var(--nc-border, rgba(41, 81, 87, .16));
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    box-sizing: border-box;
}

.dark .nc-modal {
    background: rgb(24 24 27);
    border-color: rgb(63 63 70);
}

.nc-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.nc-modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.nc-modal-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nc-border, rgba(41, 81, 87, .16));
    border-radius: 10px;
    background: transparent;
    color: var(--nc-muted, rgb(100 116 139));
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.nc-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.nc-modal-body .nc-input,
.nc-modal-body .nc-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nc-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/*
 * Oldalfejléc lenyíló (pl. Termékek → „További műveletek”, 2026-09-10).
 * A modul fülsáv (sticky, lenyílókkal z-index 29) később jön a DOM-ban, ezért eddig eltakarta
 * a fejléc lenyíló paneljét. Ha a fejlécben lenyíló van, a fejléc a fülsáv fölé kerül, de a
 * Filament felső sáv (sticky, z-index 30) alatt marad. Csak az ilyen oldalakat érinti.
 */
.fi-header:has(.fi-dropdown) {
    position: relative;
    z-index: 29;
}

.fi-page:has(.fi-header .fi-dropdown) .module-subnav-wrap,
.fi-page:has(.fi-header .fi-dropdown) .module-subnav-wrap--with-menus {
    z-index: 28;
}

/*
 * Felső sáv lenyílói az oldal fölött (2026-09-11): a Filament felső sáv (z-index 30) és a lenyílós modul fülsáv
 * (z-index 30) azonos szinten van, és a fülsáv később jön a DOM-ban, ezért eltakarta az Értesítések panelt
 * (és a globális kereső találatait). Amíg a felső sávban lenyíló nyitva van vagy fókuszban van, a felső sáv
 * az oldal saját rétegei (fülsáv, rögzített sávok, oldalon belüli lenyílók: legfeljebb 40) fölé kerül.
 * A saját modalok (60–80) így is fölötte maradnak; a panel a mellé kattintásra és Esc-re bezárul
 * (notification-bell.blade.php), így a Filament modaljait (40) sem takarja.
 */
.fi-topbar-ctn:has(details[open]),
.fi-topbar-ctn:focus-within {
    z-index: 45;
}

/*
 * Mobil / tablet oldalmenü (2026-09-11): a kinyitott menü és a sötétítő réteg a Filament alapján 30-as, ezért az
 * oldal 30–40-es rétegei (fülsáv, rögzített összesítő sávok, lenyílók) rárajzolódtak. Kinyitva a menü mindenek
 * fölött van (a saját modalok 60–80 kivételével), és nem átlátszó, hogy az alatta lévő oldal ne üssön át.
 */
@media (max-width: 63.999rem) {
    .fi-sidebar-close-overlay {
        z-index: 44;
    }

    .fi-sidebar.fi-sidebar-open {
        z-index: 45;
        background: #fff !important;
    }

    .dark .fi-sidebar.fi-sidebar-open {
        background: #161819 !important;
    }
}

/*
 * Másodlagos (szürke) fejlécgombok (2026-09-11): a téma a box-shadow-t kikapcsolja, így a Filament szürke gombjának
 * kerete eltűnt, és fehér háttéren nem látszott gombnak (pl. Termék → „Árfigyelés”, „Megosztás tablettel”,
 * „További műveletek”). Keret és háttér borderrel, a színes (elsődleges) gombokat nem érinti.
 */
.fi-header-actions-ctn .fi-btn:not(.fi-color):not(.fi-outlined) {
    background: #fff !important;
    border: 1px solid rgb(203 213 225) !important;
    color: rgb(15 23 42) !important;
}

.fi-header-actions-ctn .fi-btn:not(.fi-color):not(.fi-outlined):hover {
    background: rgb(248 250 252) !important;
    border-color: rgb(148 163 184) !important;
}

.fi-header-actions-ctn .fi-btn:not(.fi-color):not(.fi-outlined) > .fi-icon {
    color: rgb(15 118 110) !important;
}

.dark .fi-header-actions-ctn .fi-btn:not(.fi-color):not(.fi-outlined) {
    background: rgb(39 39 42) !important;
    border-color: rgb(82 82 91) !important;
    color: rgb(244 244 245) !important;
}

.dark .fi-header-actions-ctn .fi-btn:not(.fi-color):not(.fi-outlined):hover {
    background: rgb(63 63 70) !important;
}

.dark .fi-header-actions-ctn .fi-btn:not(.fi-color):not(.fi-outlined) > .fi-icon {
    color: rgb(94 234 212) !important;
}


/* Secondary menus never compete with save / the next workflow action. */
body .nc-action-secondary,
body .nc-action-secondary.fi-btn,
body .nc-action-secondary > .fi-dropdown-trigger > .fi-btn {
    background: #fff !important;
    background-image: none !important;
    color: #295157 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}
body .nc-action-secondary:hover { background: #f1f5f9 !important; }
body .nc-action-destructive {
    background: transparent !important;
    background-image: none !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    box-shadow: none !important;
}
body .nc-action-destructive:hover { background: #fff1f2 !important; }
body :is(.nc-action-secondary, .nc-action-destructive):focus-visible {
    outline: 2px solid #295157; outline-offset: 3px;
}
body.dark .nc-action-secondary, .dark body .nc-action-secondary {
    background: #27272a !important; color: #e4e4e7 !important; border-color: #52525b !important;
}
body.dark .nc-action-secondary:hover, .dark body .nc-action-secondary:hover { background: #3f3f46 !important; }
body.dark .nc-action-destructive, .dark body .nc-action-destructive { color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark .nc-action-destructive:hover, .dark body .nc-action-destructive:hover { background: #450a0a !important; }
body .nc-action-secondary > :is(svg, .fi-icon), body .nc-action-destructive > :is(svg, .fi-icon) { color: currentColor !important; }

/* ==========================================================================
   Naptár – napi használatú elrendezés (2. lépés, 2026-09-13)
   Eszköztár, rétegchipek, jelmagyarázat, oldalsó részletpanel, mobil.
   ========================================================================== */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-bottom: 1px solid rgb(226 232 240); background: rgb(250 250 250); }
.dark .cal-toolbar { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.cal-toolbar--simple { border-bottom: 0; }
.cal-toolbar-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-toolbar-period { gap: 4px; }
.cal-toolbar-period .cal-period-nav { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgb(226 232 240); color: rgb(51 65 85); font-size: 20px; background: #fff; cursor: pointer; padding: 0; line-height: 1; }
.cal-toolbar-period .cal-period-nav:hover, .cal-toolbar-today:hover { background: rgb(241 245 249); }
.cal-toolbar-today { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgb(226 232 240); background: #fff; color: #295157; font-size: 12px; font-weight: 800; cursor: pointer; }
.cal-toolbar-label { margin-left: 8px; font-size: 15px; font-weight: 900; color: rgb(15 23 42); white-space: nowrap; }
.dark .cal-toolbar-label { color: #f5f5f7; }
.cal-toolbar-views, .cal-toolbar-scope { border: 1px solid rgb(203 213 225); padding: 4px; border-radius: 12px; background: rgb(241 245 249); gap: 2px; }
.dark .cal-toolbar-views, .dark .cal-toolbar-scope { background: rgb(39 39 42); }
.cal-toolbar-tab { min-height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: rgb(71 85 105); font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.cal-toolbar-tab.is-active { background: #295157; color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.dark .cal-toolbar-tab { color: rgb(161 161 170); }
.dark .cal-toolbar-tab.is-active { background: #356970; color: #fff; }
.cal-toolbar-tab:not(.is-active):hover { background: rgba(41,81,87,.1); }
.cal-toolbar button:focus-visible, .cal-toolbar a:focus-visible, .cal-toolbar summary:focus-visible { outline: 2px solid #295157; outline-offset: 3px; }
.dark .cal-toolbar button:focus-visible, .dark .cal-toolbar a:focus-visible, .dark .cal-toolbar summary:focus-visible { outline-color: #9dd2d8; }
.cal-toolbar-select { height: 30px; border-radius: 9px; border: 1px solid rgb(226 232 240); background: #fff; font-size: 12px; font-weight: 700; padding: 0 8px; max-width: 180px; }
.cal-toolbar-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgb(226 232 240); background: #fff; color: rgb(71 85 105); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.cal-toolbar-chip.is-active { background: #295157; border-color: #295157; color: #fff; }
.cal-toolbar-actions { margin-left: auto; }
.cal-toolbar-more { position: relative; }
.cal-toolbar-more summary { list-style: none; cursor: pointer; user-select: none; }
.cal-toolbar-more summary::-webkit-details-marker { display: none; }
.cal-toolbar-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; display: grid; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid rgb(226 232 240); background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.12); }
.dark .cal-toolbar-menu { background: rgb(39 39 42); border-color: rgb(63 63 70); }
.cal-toolbar-menu a, .cal-toolbar-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; color: rgb(30 41 59); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cal-toolbar-menu a:hover, .cal-toolbar-menu button:hover { background: rgb(241 245 249); }
.cal-toolbar-menu .is-danger { color: rgb(190 18 60); }
.dark .cal-toolbar-menu a, .dark .cal-toolbar-menu button { color: #f5f5f7; }

/* rétegchipek és jelmagyarázat */
.cal-kind-dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: currentColor; margin-right: 6px; flex-shrink: 0; }
.cal-kind-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid rgb(226 232 240); background: #fff; color: rgb(100 116 139); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; opacity: .6; }
.cal-kind-chip.is-active { opacity: 1; color: rgb(15 23 42); }
.cal-kind-chip.cal-color-blue .cal-kind-dot, .cal-detail-type.cal-color-blue .cal-kind-dot { color: rgb(37 99 235); }
.cal-kind-chip.cal-color-green .cal-kind-dot, .cal-detail-type.cal-color-green .cal-kind-dot { color: rgb(5 150 105); }
.cal-kind-chip.cal-color-brown .cal-kind-dot, .cal-detail-type.cal-color-brown .cal-kind-dot { color: rgb(120 53 15); }
.cal-kind-chip.cal-color-orange .cal-kind-dot, .cal-detail-type.cal-color-orange .cal-kind-dot { color: rgb(234 88 12); }
.cal-kind-chip.cal-color-gray .cal-kind-dot, .cal-detail-type.cal-color-gray .cal-kind-dot { color: rgb(100 116 139); }
.cal-kind-chip.cal-color-purple .cal-kind-dot, .cal-detail-type.cal-color-purple .cal-kind-dot { color: rgb(147 51 234); }
.cal-kind-chip.cal-color-blue.is-active { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); }
.cal-kind-chip.cal-color-green.is-active { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); }
.cal-kind-chip.cal-color-brown.is-active { background: rgba(120,53,15,.1); border-color: rgba(120,53,15,.3); }
.cal-kind-chip.cal-color-orange.is-active { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.3); }
.cal-kind-chip.cal-color-gray.is-active { background: rgba(100,116,139,.1); border-color: rgba(100,116,139,.3); }
.cal-kind-chip.cal-color-purple.is-active { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.3); }

/* elrendezés: rács + oldalsó részletpanel */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-layout.has-detail { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
.cal-layout-main { min-width: 0; display: grid; gap: 4px; }
.cal-layout-side { position: sticky; top: 76px; min-width: 0; }
.cal-detail-panel { padding: 16px; gap: 12px; }
.cal-detail-head-main { min-width: 0; }
.cal-detail-head h2 { margin: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.cal-detail-type { display: inline-flex; align-items: center; }
.cal-detail-close { width: 32px; height: 32px; padding: 0; font-size: 20px; flex-shrink: 0; }
.cal-detail-facts { display: grid; gap: 8px; margin: 0; }
.cal-detail-facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; }
.cal-detail-facts dt { font-size: 11px; font-weight: 800; color: rgb(100 116 139); text-transform: uppercase; letter-spacing: .04em; }
.cal-detail-facts dd { margin: 0; font-size: 13px; font-weight: 700; color: rgb(15 23 42); overflow-wrap: anywhere; }
.dark .cal-detail-facts dd { color: #f5f5f7; }
.cal-detail-contact { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 700; }
.cal-detail-note { font-size: 12px; margin: 0; }
.cal-detail-more { position: relative; }
.cal-detail-more .cal-toolbar-menu { right: auto; left: 0; }

/* havi rács pill és cella finomítás */
.cal-day-cell { gap: 4px; }
.cal-day-cell.is-weekend { background: rgb(245 246 248); }
.dark .cal-day-cell.is-weekend { background: rgb(30 30 33); }
.cal-day-number { border: 0; background: transparent; padding: 2px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.cal-day-number:hover { background: rgba(41,81,87,.1); }
.cal-day-cell.is-today .cal-day-number { background: #295157; color: #fff; }
.cal-day-events { display: grid; gap: 3px; }
.cal-event-pill { display: flex; align-items: baseline; gap: 4px; width: 100%; text-align: left; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.cal-event-pill .cal-pill-time { font-size: 10px; font-weight: 800; color: rgb(71 85 105); flex-shrink: 0; }
.cal-event-pill .cal-pill-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cal-event-pill.is-selected, .cal-event-row.is-selected { outline: 2px solid #295157; outline-offset: 1px; }
.cal-event-pill.is-done, .cal-event-row.is-done { opacity: .55; text-decoration: line-through; }
.cal-event-pill.is-overdue { box-shadow: inset 0 0 0 1px rgba(244,63,94,.45); }
.cal-pill-flag { margin-left: auto; font-size: 10px; font-weight: 900; color: rgb(180 83 9); flex-shrink: 0; }
.cal-more { border: 0; background: transparent; text-align: left; padding: 2px 4px; cursor: pointer; }
.cal-more:hover { color: #295157; }
.cal-week-head-main { border: 0; background: transparent; text-align: left; cursor: pointer; padding: 0; font: inherit; color: inherit; }
.cal-week-event-meta { display: block; font-size: 10px; color: rgb(100 116 139); }
.cal-event-row { width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.cal-event-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cal-event-time small { display: block; font-size: 10px; color: rgb(100 116 139); font-weight: 700; }
.cal-calendar.cal-drop-target.is-drop-target { outline: 2px dashed rgba(16,185,129,.55); outline-offset: -2px; }

@media (max-width: 1100px) {
    .cal-layout.has-detail { grid-template-columns: minmax(0, 1fr); }
    .cal-layout-side { position: fixed; inset: auto 0 0 0; z-index: 40; max-height: 70vh; overflow: auto; padding: 0 8px 8px; }
    .cal-layout-side .cal-detail-panel { border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(15,23,42,.18); }
}
@media (max-width: 760px) {
    .cal-toolbar { gap: 8px; padding: 8px; }
    .cal-toolbar-period { flex-wrap: wrap; min-width: 0; max-width: 100%; }
    .cal-toolbar-label { font-size: 13px; margin-left: 4px; white-space: normal; flex-basis: 100%; }
    .cal-toolbar-views { flex: 1 1 100%; flex-wrap: nowrap; }
    .cal-toolbar-views .cal-toolbar-tab { flex: 1; padding: 0 8px; }
    .cal-layout, .cal-layout-main, .cal-calendar, .cal-workbench { min-width: 0; max-width: 100%; }
    .cal-event-row { grid-template-columns: 1fr; gap: 4px; }
    .cal-event-badges { justify-content: flex-start; }
    .cal-toolbar-kinds { order: 10; flex: 1 1 100%; min-width: 0; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .cal-toolbar { max-width: 100%; min-width: 0; }
    .cal-toolbar-actions { margin-left: 0; }
    .cal-day-cell { min-height: 64px; padding: 4px; }
    .cal-event-pill .cal-pill-time { display: none; }
    .cal-detail-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Naptár – órasávos heti / napi nézet és személysávok (3. lépés, 2026-09-13)
   ========================================================================== */
.cal-calendar--time { padding: 0; overflow: hidden; }
.cal-calendar--time .cal-empty--inline { margin: 12px; }
.cal-time-grid { --cal-axis: 56px; display: grid; gap: 0; min-width: 0; }
.cal-time-grid-head, .cal-time-grid-allday, .cal-time-grid-body { display: grid; grid-template-columns: var(--cal-axis) repeat(var(--cal-cols), minmax(0, 1fr)); }
.cal-time-grid--week .cal-time-grid-head, .cal-time-grid--week .cal-time-grid-allday, .cal-time-grid--week .cal-time-grid-body { grid-template-columns: var(--cal-axis) repeat(var(--cal-cols), minmax(96px, 1fr)); }
.cal-time-grid--lanes .cal-time-grid-head, .cal-time-grid--lanes .cal-time-grid-allday, .cal-time-grid--lanes .cal-time-grid-body { grid-template-columns: var(--cal-axis) repeat(var(--cal-cols), minmax(140px, 1fr)); }
.cal-time-grid--week, .cal-time-grid--lanes { overflow-x: auto; }
.cal-time-grid-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid rgb(226 232 240); }
.dark .cal-time-grid-head { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.cal-time-corner { border-right: 1px solid rgb(241 245 249); }
.cal-time-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 6px; border-right: 1px solid rgb(241 245 249); min-width: 0; }
.cal-time-head.is-today { background: rgba(41,81,87,.07); }
.cal-time-head-main { display: flex; align-items: baseline; gap: 6px; min-width: 0; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.cal-time-head-main span { font-size: 11px; font-weight: 800; color: rgb(100 116 139); text-transform: uppercase; }
.cal-time-head-main strong { font-size: 16px; font-weight: 900; }
.cal-time-head.is-today .cal-time-head-main strong { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: #295157; color: #fff; font-size: 13px; }
.cal-time-lane-name { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-time-grid-allday { border-bottom: 1px solid rgb(226 232 240); background: rgb(250 250 250); }
.dark .cal-time-grid-allday { background: rgb(30 30 33); border-color: rgb(63 63 70); }
.cal-time-allday-label { display: flex; align-items: flex-start; padding: 6px 6px 6px 8px; font-size: 10px; font-weight: 800; color: rgb(100 116 139); text-transform: uppercase; letter-spacing: .04em; }
.cal-time-allday { display: grid; gap: 3px; padding: 4px; min-height: 30px; border-right: 1px solid rgb(241 245 249); min-width: 0; }
.cal-time-allday.is-drop-target { outline: 2px dashed rgba(16,185,129,.55); outline-offset: -2px; background: rgba(16,185,129,.06); }
.cal-time-grid-body { position: relative; }
.cal-time-axis { border-right: 1px solid rgb(241 245 249); }
.cal-time-axis-hour { position: relative; }
.cal-time-axis-hour span { position: absolute; top: -7px; right: 6px; font-size: 10px; font-weight: 800; color: rgb(100 116 139); }
.cal-time-axis-hour:first-child span { top: 2px; }
.cal-time-column { position: relative; border-right: 1px solid rgb(241 245 249); min-width: 0; background-image: repeating-linear-gradient(to bottom, rgb(241 245 249) 0, rgb(241 245 249) 1px, transparent 1px, transparent var(--cal-hour-height)); }
.dark .cal-time-column { background-image: repeating-linear-gradient(to bottom, rgb(63 63 70) 0, rgb(63 63 70) 1px, transparent 1px, transparent var(--cal-hour-height)); border-color: rgb(63 63 70); }
.cal-time-column.is-today { background-color: rgba(41,81,87,.035); }
.cal-time-column.is-drop-target { outline: 2px dashed rgba(16,185,129,.55); outline-offset: -2px; background-color: rgba(16,185,129,.06); }
.cal-time-now { position: absolute; left: 0; right: 0; height: 2px; background: rgb(220 38 38); z-index: 2; pointer-events: none; }
.cal-time-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 999px; background: rgb(220 38 38); }
.cal-time-event { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 3px 6px; border-radius: 8px; border: 1px solid transparent; overflow: hidden; text-align: left; cursor: pointer; font-family: inherit; line-height: 1.2; z-index: 1; box-shadow: 0 1px 2px rgba(15,23,42,.08); background: rgba(100,116,139,.12); }
.cal-time-event:hover, .cal-time-event:focus-visible { z-index: 4; box-shadow: 0 4px 12px rgba(15,23,42,.18); }
.cal-time-event.is-compact { flex-direction: row; align-items: center; gap: 4px; padding: 2px 6px; }
.cal-time-event-time { font-size: 10px; font-weight: 800; color: rgb(71 85 105); white-space: nowrap; }
.cal-time-event-title { font-size: 11px; font-weight: 700; color: rgb(15 23 42); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-time-event.is-compact .cal-time-event-title { white-space: nowrap; display: block; }
.cal-time-event-meta { font-size: 10px; color: rgb(100 116 139); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-time-event.is-reschedulable { cursor: grab; box-shadow: inset 0 0 0 1px rgba(16,185,129,.3), 0 1px 2px rgba(15,23,42,.08); }
.cal-time-event.is-reschedulable.is-dragging { opacity: .55; cursor: grabbing; }
.cal-time-event.is-selected { outline: 2px solid #295157; outline-offset: 1px; z-index: 3; }
.cal-time-event.is-overdue { box-shadow: inset 0 0 0 1px rgba(244,63,94,.45); }
.cal-time-event.is-done { opacity: .55; }
.cal-time-event.is-done .cal-time-event-title { text-decoration: line-through; }
.cal-time-event.has-conflict { box-shadow: inset 0 0 0 1px rgba(245,158,11,.5); }
.cal-time-event.continues-before { border-top-left-radius: 2px; border-top-right-radius: 2px; border-top-style: dashed; }
.cal-time-event.continues-after { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-bottom-style: dashed; }
.cal-time-event .cal-pill-flag { position: absolute; right: 4px; top: 2px; }
.cal-time-event.cal-color-blue { background: rgba(59,130,246,.16); border-color: rgba(59,130,246,.35); }
.cal-time-event.cal-color-green { background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.35); }
.cal-time-event.cal-color-orange { background: rgba(249,115,22,.16); border-color: rgba(249,115,22,.35); }
.cal-time-event.cal-color-brown { background: rgba(120,53,15,.14); border-color: rgba(120,53,15,.3); }
.cal-time-event.cal-color-purple { background: rgba(168,85,247,.16); border-color: rgba(168,85,247,.35); }
.cal-time-event.cal-color-gray { background: rgba(100,116,139,.14); border-color: rgba(100,116,139,.3); }
.dark .cal-time-event-title { color: #f5f5f7; }
.dark .cal-time-event-time { color: rgb(161 161 170); }
.cal-time-drop-ghost { position: absolute; left: 2px; right: 2px; min-height: 26px; border-radius: 8px; border: 2px dashed rgb(5 150 105); background: rgba(16,185,129,.18); box-shadow: 0 0 0 9999px rgba(255,255,255,0); z-index: 50; pointer-events: none; }
.cal-time-drop-ghost::before { content: ''; position: absolute; left: -2px; right: -2px; top: -2px; height: 3px; background: rgb(5 150 105); border-radius: 3px; }
.cal-time-drop-ghost::after { content: attr(data-label); position: absolute; left: 3px; top: 3px; padding: 2px 8px; border-radius: 6px; background: rgb(5 150 105); color: #fff; font-size: 12px; font-weight: 900; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 6px rgba(15,23,42,.25); }
.cal-time-column.is-drop-target .cal-time-event { opacity: .5; }

@media (max-width: 760px) {
    .cal-time-grid { --cal-axis: 40px; }
    .cal-time-axis-hour span { right: 3px; font-size: 9px; }
    .cal-time-grid--week .cal-time-grid-head, .cal-time-grid--week .cal-time-grid-allday, .cal-time-grid--week .cal-time-grid-body { grid-template-columns: var(--cal-axis) repeat(var(--cal-cols), minmax(120px, 1fr)); }
    .cal-time-head-main strong { font-size: 14px; }
    .cal-time-event-meta { display: none; }
}

/* Safari: csak nem-űrlapelem húzható; a pill és az órasávos blokk div[role=button] */
.cal-event-pill, .cal-time-event { user-select: none; -webkit-user-select: none; }
.cal-event-pill.is-reschedulable, .cal-time-event.is-reschedulable { -webkit-user-drag: element; }
.cal-event-pill:focus-visible, .cal-time-event:focus-visible { outline: 2px solid #295157; outline-offset: 1px; }

/* Naptár – időtartam húzása (2026-09-14) */
.cal-time-event { padding-bottom: 6px; }
.cal-time-event-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; cursor: ns-resize; touch-action: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.cal-time-event-resize::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: currentColor; opacity: 0; transition: opacity .12s; }
.cal-time-event:hover .cal-time-event-resize::after, .cal-time-event.is-resizing .cal-time-event-resize::after { opacity: .5; }
.cal-time-event.is-resizing { z-index: 6; box-shadow: 0 6px 16px rgba(15,23,42,.22); cursor: ns-resize; user-select: none; }
.cal-resize-label { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgb(5 150 105); color: #fff; font-size: 11px; font-weight: 900; line-height: 1.3; white-space: nowrap; pointer-events: none; }
@media (max-width: 760px) {
    .cal-time-event-resize { height: 14px; }
    .cal-time-event-resize::after { opacity: .35; }
}

/*
 * Mapping profile editor action bar.
 *
 * EditRecord enables Filament .fi-sc-actions.fi-sticky (position:fixed + Alpine
 * content width), the same mechanism the Product Import wizard footer follows.
 * Same Save/Cancel nodes stay in the DOM (no cloned submit). Admin loads this
 * file, not Vite resources/css/app.css.
 */
.nc-mapping-profile-edit-page.fi-resource-edit-record-page {
    --nc-mapping-profile-footer-h: 4.75rem;
    padding-bottom: calc(var(--nc-mapping-profile-footer-h) + env(safe-area-inset-bottom, 0px));
}

.nc-mapping-profile-edit-page .fi-sc-actions.fi-sticky .fi-ac {
    z-index: 20;
    box-sizing: border-box;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    overflow-x: hidden;
    border-top: 1px solid rgb(226 232 240);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.dark .nc-mapping-profile-edit-page .fi-sc-actions.fi-sticky .fi-ac {
    border-top-color: rgba(255, 255, 255, .1);
    background: rgba(24, 24, 27, .94);
}

body:has(.fi-modal.fi-modal-open) .nc-mapping-profile-edit-page .fi-sc-actions.fi-sticky .fi-ac {
    z-index: 10;
}

@media (max-width: 640px) {
    .nc-mapping-profile-edit-page .fi-sc-actions.fi-sticky .fi-ac {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        column-gap: 0.5rem;
    }
}

/* Lead list: scoped controls and wrapping; other module tables keep their layout. */
.nc-leads-create.fi-btn {
    background: #295157 !important;
    color: #fff !important;
}
.nc-leads-create.fi-btn:hover { background: #203f44 !important; }
.nc-leads-table .fi-fo-field-wrp-label {
    text-transform: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.4;
}
.nc-leads-table .fi-fo-field-wrp-label span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
.nc-leads-table .nc-order-filter-toolbar > .fi-sc.fi-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
}
.nc-leads-table .fi-ta-cell { padding-inline: 12px; }
.nc-leads-table .fi-ta-text-item { overflow-wrap: anywhere; }
.nc-leads-table .fi-badge { white-space: normal; }
.nc-leads-table .nc-leads-quick-filters { padding-block: 4px 8px; }
@media (max-width: 1100px) {
    .nc-leads-table .nc-order-filter-toolbar > .fi-sc.fi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .nc-leads-table .nc-order-filter-toolbar > .fi-sc.fi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.nc-list-workbench .nc-leads-table table.fi-ta-table {
    width: 100%;
    min-width: 1000px;
    table-layout: fixed;
}
.nc-leads-table .fi-ta-header-cell { white-space: normal; }
.nc-leads-table .fi-ta-cell:first-child,
.nc-leads-table .fi-ta-header-cell:first-child { width: 36px; }
.nc-leads-table .fi-ta-cell:last-child,
.nc-leads-table .fi-ta-actions-header-cell { width: 132px; }
.nc-leads-table .fi-ta-text,
.nc-leads-table .fi-ta-text-item,
.nc-leads-table .fi-ta-text-item-label {
    white-space: normal !important;
    overflow-wrap: break-word;
    min-width: 0;
}
.nc-leads-table .fi-ta-text-has-badges .fi-badge {
    display: inline-flex;
    max-width: 100%;
    height: auto;
    padding: 5px 8px;
    border-radius: 6px !important;
    line-height: 1.4;
    white-space: normal !important;
    overflow-wrap: normal;
    text-align: left;
}
.nc-leads-table .fi-ta-text-item.fi-ta-text-has-badges {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}
.nc-leads-table .fi-ta-text { padding-inline: 0; }
.nc-leads-table .fi-badge-label-ctn,
.nc-leads-table .fi-badge-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
.nc-list-workbench .nc-leads-table table.fi-ta-table:has(thead tr > :nth-child(10)) {
    min-width: 1600px;
    table-layout: auto;
}

/* Visszatérő vevők (2026-10-21) */
.vv-workbench { display: grid; gap: 12px; }
.vv-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vv-kpi { display: grid; gap: 2px; min-height: 72px; padding: 10px 12px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 12px; background: rgb(255 255 255); text-align: left; cursor: pointer; }
.vv-kpi:focus-visible { outline: 2px solid var(--nc-green); outline-offset: 2px; }
.vv-kpi.is-active { border-color: var(--nc-green); box-shadow: inset 0 0 0 1px var(--nc-green); background: rgb(248 250 252); }
.vv-kpi-label { display: inline-flex; align-items: center; gap: 6px; color: rgb(100 116 139); font-size: 12px; font-weight: 750; }
.vv-kpi-value { color: rgb(15 23 42); font-size: 18px; font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; }
.vv-kpi-sub { color: rgb(100 116 139); font-size: 12px; font-variant-numeric: tabular-nums; }
.vv-dot { width: 8px; height: 8px; border-radius: 999px; flex: none; background: rgb(148 163 184); }
.vv-tone-lapsed .vv-dot { background: rgb(220 38 38); }
.vv-tone-overdue .vv-dot { background: rgb(217 119 6); }
.vv-tone-due .vv-dot { background: rgb(37 99 235); }
.vv-tone-ok .vv-dot { background: rgb(22 163 74); }
.vv-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.vv-field { display: grid; gap: 4px; min-width: 160px; align-content: end; }
.vv-field-search { flex: 1 1 240px; }
.vv-field label { color: rgb(100 116 139); font-size: 12px; font-weight: 700; }
.vv-field input, .vv-field select { box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid rgba(148, 163, 184, .45); border-radius: 10px; background: rgb(255 255 255); color: inherit; font: inherit; }
.vv-card { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 14px; background: rgb(255 255 255); min-width: 0; }
.vv-table-wrap { overflow-x: auto; }
.vv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vv-table th { text-align: left; padding: 8px; color: rgb(100 116 139); font-size: 12px; font-weight: 750; border-bottom: 1px solid rgba(148, 163, 184, .35); white-space: nowrap; }
.vv-table td { padding: 8px; border-bottom: 1px solid rgba(148, 163, 184, .2); vertical-align: top; }
.vv-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vv-partner { display: block; color: rgb(15 23 42); font-weight: 750; text-decoration: none; }
.vv-partner:hover { text-decoration: underline; }
.vv-unit { display: block; color: rgb(100 116 139); font-size: 12px; }
.vv-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 700; }
.vv-open-task { display: block; color: rgb(100 116 139); font-size: 12px; }
.vv-actions { text-align: right; white-space: nowrap; }
.vv-actions-inner { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.vv-mobile-meta { display: none; color: rgb(100 116 139); font-size: 12px; }
.vv-link { color: var(--nc-green); font-weight: 650; white-space: nowrap; }
.vv-note { margin: 0; color: rgb(100 116 139); font-size: 12px; line-height: 1.5; }
.dark .vv-kpi, .dark .vv-card, .dark .vv-field input, .dark .vv-field select { background: rgb(24 24 27); border-color: rgba(113, 113, 122, .4); }
.dark .vv-kpi.is-active { background: rgb(39 39 42); border-color: rgb(161 161 170); box-shadow: inset 0 0 0 1px rgb(161 161 170); }
.dark .vv-kpi-value, .dark .vv-partner { color: rgb(248 250 252); }
.dark .vv-link { color: rgb(134 197 190); }
@media (max-width: 760px) {
    .vv-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vv-hide-sm { display: none; }
    .vv-mobile-meta { display: block; }
    .vv-actions { text-align: left; }
}

/* ---------------------------------------------------------------------------
 * Bizonylatok áttekintő (2026-10-22): kivételkártyák tónusa, teendősorok,
 * szöveges állapotcímkék. Csak tokenekre épül, a sötét téma is örökli.
 * ------------------------------------------------------------------------- */
.nc-docs-overview .nc-docs-kpi small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; }
.nc-docs-kpi--danger { border-color: rgba(190, 18, 60, .28); background: rgba(244, 63, 94, .06); }
.nc-docs-kpi--danger span, .nc-docs-kpi--danger strong, .nc-docs-kpi--danger small { color: #9f1239; }
.nc-docs-kpi--warning { border-color: rgba(180, 83, 9, .28); background: rgba(245, 158, 11, .07); }
.nc-docs-kpi--warning span, .nc-docs-kpi--warning strong, .nc-docs-kpi--warning small { color: #92400e; }
.dark .nc-docs-kpi--danger span, .dark .nc-docs-kpi--danger strong, .dark .nc-docs-kpi--danger small { color: #fda4af; }
.dark .nc-docs-kpi--warning span, .dark .nc-docs-kpi--warning strong, .dark .nc-docs-kpi--warning small { color: #fcd34d; }

.nc-docs-columns { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.nc-docs-tasks { flex: 999 1 620px; min-width: 0; }
.nc-docs-types { flex: 1 1 300px; min-width: 0; }
.nc-docs-type-list { display: flex; flex-direction: column; gap: 10px; }
.nc-docs-type strong { font-size: 18px; }

.nc-docs-group { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.nc-docs-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nc-docs-group-head a { font-size: 13px; font-weight: 600; }
.nc-docs-group-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--nc-text); }
.nc-docs-group-title--danger { color: #9f1239; }
.nc-docs-group-title--warning { color: #92400e; }
.nc-docs-group-title--info { color: var(--nc-green); }
.dark .nc-docs-group-title--danger { color: #fda4af; }
.dark .nc-docs-group-title--warning { color: #fcd34d; }

.nc-docs-task {
    display: grid;
    grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) minmax(110px, 140px) minmax(130px, 190px);
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: rgba(41, 81, 87, .03);
}
.nc-docs-task:hover { background: rgba(41, 81, 87, .07); }
.nc-docs-task-id { display: flex; flex-direction: column; min-width: 0; }
.nc-docs-task-id small { color: var(--nc-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-docs-task-customer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-docs-task-amount { text-align: right; white-space: nowrap; }
.nc-docs-task-reason { justify-self: end; }
@media (max-width: 760px) {
    .nc-docs-task { grid-template-columns: minmax(0, 1fr) auto; }
    .nc-docs-task-customer { grid-column: 1 / -1; grid-row: 2; }
    .nc-docs-task-reason { grid-column: 1 / -1; justify-self: start; }
}

.nc-docs-num { text-align: right; }
.nc-docs-number { font-weight: 700; color: inherit; }
.nc-docs-muted { color: var(--nc-muted); }
.nc-docs-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.nc-docs-chip--success { background: rgba(16, 185, 129, .12); color: #047857; }
.nc-docs-chip--danger { background: rgba(244, 63, 94, .12); color: #be123c; }
.nc-docs-chip--warning { background: rgba(245, 158, 11, .14); color: #92400e; }
.nc-docs-chip--info { background: rgba(41, 81, 87, .1); color: var(--nc-green); }
.nc-docs-chip--neutral { background: rgba(110, 110, 115, .12); color: var(--nc-muted); }
.dark .nc-docs-chip--success { color: #6ee7b7; }
.dark .nc-docs-chip--danger { color: #fda4af; }
.dark .nc-docs-chip--warning { color: #fcd34d; }
.dark .nc-docs-chip--info { color: #8fc3bc; }
