/* Stage 2.31 - Towary/Czesci directory standard aligned with Kontrahenci. */
html .vario-items-dashboard.vario-directory-v2,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 {
    grid-template-rows: var(--vario-directory-search-height, 148px) 6px minmax(0, 1fr) 6px var(--vario-directory-preview-height, 214px) !important;
    align-content: start !important;
    gap: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-search-section,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-search-section {
    grid-row: 1 !important;
    height: var(--vario-directory-search-height, 148px) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-search,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-search {
    display: grid !important;
    grid-template-rows: 28px 42px var(--vario-directory-advanced-height) !important;
    gap: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-top-search,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-top-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: flex-start !important;
    gap: 8px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 3px 10px 4px 16px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-main,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-main {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-search-input-wrap,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-search-input-wrap {
    flex: 0 1 280px !important;
    min-width: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-search-input-wrap .form-control,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-search-input-wrap .form-control {
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    padding: 0 24px 0 9px !important;
    border-color: #c8d7ee !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #06245a !important;
    font: 700 11px/23px Inter, "Segoe UI", Arial, sans-serif !important;
    line-height: 23px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid {
    box-sizing: border-box !important;
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 4px 8px !important;
    height: max(80px, calc(var(--vario-directory-advanced-height, 78px) + 2px)) !important;
    min-height: 0 !important;
    padding: 3px 16px 0 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid .form-label,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid .form-label {
    display: block !important;
    height: 11px !important;
    min-height: 11px !important;
    max-height: 11px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #0b2555 !important;
    font: 800 9.5px/11px Inter, "Segoe UI", Arial, sans-serif !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid .form-control,
html .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid .form-select,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid .form-control,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-search-field-grid .form-select {
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    padding: 2px 7px !important;
    font: 700 10.8px/14px Inter, "Segoe UI", Arial, sans-serif !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions {
    position: relative !important;
    z-index: 5 !important;
    display: grid !important;
    grid-template-columns: max-content max-content !important;
    grid-template-rows: 26px 26px !important;
    grid-template-areas:
        "clear search"
        "add add" !important;
    justify-content: flex-end !important;
    align-content: start !important;
    align-items: center !important;
    justify-items: end !important;
    gap: 4px 5px !important;
    min-width: 220px !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .btn,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 64px !important;
    max-width: none !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
    font: 700 11px/24px Inter, "Segoe UI", Arial, sans-serif !important;
    line-height: 24px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .btn>span:not(.vario-action-icon),
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .btn>span:not(.vario-action-icon) {
    display: block !important;
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
    font-size: 11px !important;
    line-height: 1 !important;
    transform: translateY(0.2px) !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .vario-action-icon,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .vario-action-icon {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
    margin: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .vario-clear-filter-button,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .vario-clear-filter-button {
    grid-area: clear !important;
    min-width: 88px !important;
    border-color: #c8d7ee !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%) !important;
    color: #4f6584 !important;
    box-shadow: none !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-clear-filter-button .vario-action-icon.cancel::before,
html .vario-items-dashboard.vario-directory-v2 .vario-clear-filter-button .vario-action-icon.cancel::after,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-clear-filter-button .vario-action-icon.cancel::before,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-clear-filter-button .vario-action-icon.cancel::after {
    left: 1px !important;
    top: 5px !important;
    width: 10px !important;
    height: 1.6px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .vario-contractors-search-button,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-filter-actions .vario-contractors-search-button {
    grid-area: search !important;
    min-width: 74px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-add-button,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-add-button {
    grid-area: add !important;
    min-width: 126px !important;
    max-width: none !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-layout,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-layout {
    display: contents !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-directory-search-resizer,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-directory-search-resizer {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-list-pane,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-list-pane {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: auto !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-directory-preview-resizer,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-directory-preview-resizer {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-table thead th,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table thead th {
    height: 26px !important;
    padding: 0 9px !important;
    color: #12315f !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
    border-bottom: 1px solid #dbe5f2 !important;
    border-right: 1px solid #e4eaf3 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr {
    cursor: default !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr.vario-grid-empty-message-row,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr.vario-grid-empty-message-row {
    height: 26px !important;
    max-height: 26px !important;
    --bs-table-accent-bg: #ffffff !important;
    --bs-table-hover-bg: #ffffff !important;
    --bs-table-hover-color: #0b2555 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr.vario-grid-empty-message-row td,
html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr.vario-grid-empty-message-row:hover td,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr.vario-grid-empty-message-row td,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody tr.vario-grid-empty-message-row:hover td {
    height: 26px !important;
    max-height: 26px !important;
    padding: 2px 9px !important;
    color: #0b2555 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9eef6 !important;
    font: 800 11px/16px Inter, "Segoe UI", Arial, sans-serif !important;
    text-align: center !important;
    vertical-align: middle !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody td,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody td {
    height: 22px !important;
    max-height: 22px !important;
    padding: 1px 9px !important;
    color: #12315f !important;
    border-bottom: 1px solid #e9eef6 !important;
    border-right: 1px solid #edf2f8 !important;
    font-size: 11.2px !important;
    line-height: 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody td strong,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody td strong {
    color: #071b3d !important;
    font-weight: 800 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-pane,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-pane {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: var(--vario-directory-preview-height, 214px) !important;
    min-height: 0 !important;
    max-height: var(--vario-directory-preview-height, 214px) !important;
    border: 1px solid #e4eaf3 !important;
    border-radius: 8px !important;
    display: grid !important;
    grid-template-rows: 28px minmax(0, 1fr) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-header,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 42px !important;
    padding: 8px 10px 6px !important;
    border-bottom: 1px solid var(--vario-border-soft) !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-header>div:first-child,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-header>div:first-child {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-header h2,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-header h2 {
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--vario-text-strong) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 18px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-badges,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    min-width: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-actions,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    min-width: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-actions .btn,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-actions .btn {
    height: 27px !important;
    min-height: 27px !important;
    padding: 3px 9px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 15px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-body,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: 100% !important;
    color: #52637a !important;
    text-align: center !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty strong,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty strong {
    color: #34445c !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty span,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty span {
    max-width: 680px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty-icon,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    color: #1263f1 !important;
    background: linear-gradient(135deg, #eef4ff, #e7f0ff) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty-icon .nav-icon,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty-icon .nav-icon {
    width: 32px !important;
    height: 32px !important;
    stroke-width: 2.2 !important;
}

html .vario-directory-v2 .vario-contractors-preview-body:has(.vario-contractors-preview-empty),
html[data-vario-theme] .vario-directory-v2 .vario-contractors-preview-body:has(.vario-contractors-preview-empty),
html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-body:has(.vario-items-preview-empty),
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-body:has(.vario-items-preview-empty) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: stretch !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html .vario-directory-v2 .vario-contractors-preview-empty,
html[data-vario-theme] .vario-directory-v2 .vario-contractors-preview-empty,
html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty {
    display: grid !important;
    place-items: center !important;
    place-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    color: #52637a !important;
    text-align: center !important;
}

html .vario-directory-v2 .vario-contractors-preview-empty strong,
html[data-vario-theme] .vario-directory-v2 .vario-contractors-preview-empty strong,
html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty strong,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty strong {
    margin: 0 !important;
    color: #34445c !important;
    font: 700 13px/17px Inter, "Segoe UI", Arial, sans-serif !important;
}

html .vario-directory-v2 .vario-contractors-preview-empty span,
html[data-vario-theme] .vario-directory-v2 .vario-contractors-preview-empty span,
html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty span,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty span {
    max-width: 680px !important;
    margin: 0 !important;
    color: #42526d !important;
    font: 500 13px/18px Inter, "Segoe UI", Arial, sans-serif !important;
}

html .vario-directory-v2 .vario-contractors-preview-empty-icon,
html[data-vario-theme] .vario-directory-v2 .vario-contractors-preview-empty-icon,
html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty-icon,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-empty-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-fields,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-fields {
    grid-template-columns: repeat(5, minmax(140px, 1fr)) !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-section,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-section {
    margin: 0 !important;
}

html .vario-items-dashboard.vario-directory-v2 .vario-items-preview-section p,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-preview-section p {
    margin: 0 0 4px !important;
    color: var(--vario-text) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

html .vario-contractors-dashboard.vario-directory-v2 .vario-contractors-table thead th,
html[data-vario-theme] .vario-contractors-dashboard.vario-directory-v2 .vario-contractors-table thead th {
    color: #12315f !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
    border-bottom: 1px solid #dbe5f2 !important;
    border-right: 1px solid #e4eaf3 !important;
}

html .vario-contractors-dashboard.vario-directory-v2 .vario-contractors-table thead th,
html .vario-items-dashboard.vario-directory-v2 .vario-items-table thead th,
html[data-vario-theme] .vario-contractors-dashboard.vario-directory-v2 .vario-contractors-table thead th,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table thead th {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 24px !important;
}

html .vario-contractors-dashboard.vario-directory-v2 .vario-contractors-table tbody td,
html .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody td,
html[data-vario-theme] .vario-contractors-dashboard.vario-directory-v2 .vario-contractors-table tbody td,
html[data-vario-theme] .vario-items-dashboard.vario-directory-v2 .vario-items-table tbody td {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 16px !important;
}

