﻿:root {
    --settings-appbar-height: 50px !important;
    --kendo-elevation-1: 0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    --vpogled-drawer-z-index: 20;
    --vpogled-drawer-expanded-z-index: 30;
}

/* CUSTOM LOADER */
/*.authz-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--kendo-color-primary, #0d6efd);
}

.authz-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: authz-spin 0.8s linear infinite;
}

.authz-loader-text {
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes authz-spin {
    to {
        transform: rotate(360deg);
    }
}

.case-loader-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.65);
}

.case-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--kendo-color-primary, #0d6efd);
    border-radius: 50%;
    animation: case-spin 0.8s linear infinite;
}

@keyframes case-spin {
    to {
        transform: rotate(360deg);
    }
}

.grid-loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(255, 255, 255, 0.65);
}

.grid-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--kendo-color-primary, #0d6efd);
    border-radius: 50%;
    animation: grid-spin 0.8s linear infinite;
}

@keyframes grid-spin {
    to {
        transform: rotate(360deg);
    }
}*/

/* SOFTPHONE */
.softphone-window-compact .k-window-content {
    padding: 10px;
}

.softphone-shell {
    gap: 0.55rem;
}

.softphone-window .k-window-title .k-button {
    padding: 2px 6px;
    min-width: auto;
}

.softphone-section {
    border: 1px solid var(--kendo-color-border, #dedede);
    border-radius: 8px;
    padding: 8px;
    background: var(--kendo-color-surface-alt, #f8f9fa);
}

.softphone-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--kendo-color-primary, #0d6efd);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.softphone-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .softphone-button-row .k-button {
        flex: 1 1 auto;
        min-width: 105px;
    }

        .softphone-button-row .k-button .k-button-icon,
        .softphone-button-row .k-button .k-svg-icon,
        .softphone-button-row .k-button i {
            line-height: 1;
        }

.softphone-details {
    max-height: 360px;
    overflow: auto;
}

.softphone-history-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.78rem;
}

    .softphone-history-grid .k-grid-content,
    .softphone-history-grid .k-grid-header-wrap,
    .softphone-history-grid .k-grid-table,
    .softphone-history-grid table {
        max-width: 100%;
    }

        .softphone-history-grid .k-grid-header th,
        .softphone-history-grid .k-grid-content td {
            padding-block: 4px;
            padding-inline: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.softphone-history-cell {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.softphone-window {
    z-index: 2500;
}

.softphone-shell {
    font-size: 0.9rem;
}

    .softphone-shell.compact .softphone-status-log,
    .softphone-shell.compact .softphone-history-grid,
    .softphone-shell.compact .softphone-current-call {
        display: none;
    }

.softphone-status-pill {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .softphone-status-pill.online {
        color: #0f5132;
        background: #d1e7dd;
    }

    .softphone-status-pill.offline {
        color: #664d03;
        background: #fff3cd;
    }

    .softphone-status-pill.busy {
        color: #842029;
        background: #f8d7da;
    }

.softphone-alert {
    padding: 8px 10px;
    border-radius: 8px;
    color: #842029;
    background: #f8d7da;
}

.softphone-current-call,
.softphone-status-log {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.softphone-status-row {
    font-size: 0.82rem;
    color: #495057;
    padding: 2px 0;
}

.phone-blink,
.phone-blink .k-input,
.phone-blink .k-input-inner,
.phone-blink input {
    animation: phoneBlink 1s infinite !important;
}

    .phone-blink .k-input,
    .phone-blink .k-input-inner,
    .phone-blink input {
        border-color: #198754 !important;
    }

@keyframes phoneBlink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
        background-color: transparent;
    }

    50% {
        box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.35);
        background-color: rgba(25, 135, 84, 0.08);
    }
}

/* NOTIFICATION */
.sodna-notification .k-notification {
    width: 300px !important;
    height: auto !important;
    min-height: 40px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
}

.k-notification-group {
    z-index: 1000000 !important;
    bottom: 10px !important;
}

/* VpogledTerjatev - Izračun dolga */
.izracun-textarea {
    font-size: 10px !important;
}

@media (min-width: 1540px) {
    .izracun-textarea {
        font-size: 11px !important;
    }
}

@media (min-width: 1700px) {
    .izracun-textarea {
        font-size: 12px !important;
    }
}

.izracun-empty-state {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: #555;
    font-size: 0.95rem;
}

.debt-chart-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    min-width: 0;
}

.debt-chart-wrapper {
    flex: 0 0 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debt-donut {
    width: 230px;
    height: 230px;
    max-width: 100%;
}

.debt-donut-slice {
    transition: opacity 0.2s ease;
}

    .debt-donut-slice:hover {
        opacity: 0.85;
    }

.donut-center-label {
    font-size: 13px;
    font-weight: 600;
    fill: #333;
}

.donut-center-value {
    font-size: 15px;
    font-weight: 700;
    fill: #1f9d55;
}

.debt-legend {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.debt-legend-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.debt-legend-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.5rem;
}

.debt-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.debt-legend-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.debt-legend-value {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.porocilo-wrapper {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

    .porocilo-wrapper .porocilo-textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        box-sizing: border-box;
        overflow: hidden;
        resize: none;
        white-space: pre;
        font-family: Consolas, "Courier New", monospace;
        line-height: 1.35;
    }

@media (max-width: 1200px) {
    .debt-chart-card {
        flex-direction: column;
        align-items: stretch;
    }

    .debt-chart-wrapper {
        flex-basis: auto;
    }
}

/* Pregled Dolga - Static card */
.pregled-dolga-card {
    padding: 0.8rem 0.95rem 1.35rem !important;
}

.pregled-dolga-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: clamp(0.55rem, 1.05vw, 1.35rem);
    row-gap: 2rem;
    min-width: 0;
    align-items: start;
}

.pregled-dolga-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.pregled-dolga-icon {
    flex: 0 0 auto;
    width: 1rem;
    min-width: 1rem;
    color: var(--kendo-color-primary, #2864d9);
    font-size: 1rem;
    line-height: 1.05;
    margin-top: 0.04rem;
    text-align: center;
}

.pregled-dolga-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.pregled-dolga-text small {
    color: var(--kendo-color-subtle, #667085);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pregled-dolga-text b {
    color: var(--kendo-color-on-app-surface, #1f2544);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pregled-dolga-copy-button {
    flex: 0 0 auto;
    width: 1rem !important;
    min-width: 1rem !important;
    height: 1rem !important;
    min-height: 1rem !important;
    padding: 0 !important;
    margin: 0.04rem 0 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--kendo-color-primary, #2864d9) !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.pregled-dolga-copy-button .k-button-icon,
.pregled-dolga-copy-button .k-icon,
.pregled-dolga-copy-button .bi {
    width: 1rem;
    height: 1rem;
    font-size: 1rem !important;
    line-height: 1 !important;
    color: inherit !important;
    margin: 0 !important;
}

.pregled-dolga-copy-button:hover {
    color: var(--kendo-color-primary-hover, #1f4fb8) !important;
    background: transparent !important;
}

.pregled-dolga-copy-button:focus,
.pregled-dolga-copy-button:focus-visible {
    outline: none;
    box-shadow: none !important;
}

.pregled-dolga-copy-button:disabled {
    opacity: 0.45;
    background: transparent !important;
}

@media (max-width: 1700px) {
    .pregled-dolga-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        column-gap: 0.7rem;
    }

    .pregled-dolga-text small {
        font-size: 0.52rem;
    }

    .pregled-dolga-text b {
        font-size: 0.61rem;
    }
}

@media (max-width: 1400px) {
    .pregled-dolga-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .pregled-dolga-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pregled-dolga-grid {
        grid-template-columns: 1fr;
    }
}

/* VpogledTerjatev - page shell + left overlay drawer */
/* Drawer is now a real page-shell column. The explicit .vpogled-drawer-shell wrapper
   owns the CSS grid area; Telerik's internal drawer markup only fills that column. */
:root {
    --vpogled-drawer-mini-width: 3rem;
    --vpogled-drawer-expanded-width: 15.5rem;
    --vpogled-page-gap: 0.4rem;
    --vpogled-nav-top: var(--settings-appbar-height, 50px);
}

.vpogled-page-shell {
    display: grid;
    grid-template-columns: var(--vpogled-drawer-mini-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "drawer header"
        "drawer main";
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - var(--vpogled-nav-top));
    max-height: calc(100dvh - var(--vpogled-nav-top));
    overflow: hidden;
    box-sizing: border-box;
}

.vpogled-page-header {
    grid-area: header;
    min-width: 0;
    max-width: 100%;
    padding-top: var(--vpogled-page-gap);
    padding-right: 1.2rem;
    padding-left: 1.2rem;
    overflow: hidden;
    box-sizing: border-box;
}

.vpogled-page-main {
    grid-area: main;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 1.2rem;
    padding-top: 0.6rem;
    overflow: hidden;
    box-sizing: border-box;
}

/* This wrapper is the actual grid item. Do not put grid-area only on Telerik's component root,
   because Telerik may apply Class to different internal elements depending on render mode/version. */
.vpogled-drawer-shell {
    grid-area: drawer;
    position: relative;
    align-self: stretch;
    justify-self: stretch;
    min-width: var(--vpogled-drawer-mini-width);
    width: var(--vpogled-drawer-mini-width);
    max-width: var(--vpogled-drawer-mini-width);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: visible;
    box-sizing: border-box;
    z-index: var(--vpogled-drawer-z-index);
}

    /* Support both possible Telerik class placements: on .k-drawer-container or on .k-drawer. */
    .vpogled-drawer-shell .vpogled-drawer,
    .vpogled-drawer-shell .vpogled-drawer.k-drawer-container,
    .vpogled-drawer-shell .vpogled-drawer .k-drawer-container {
        position: relative !important;
        display: block !important;
        min-width: var(--vpogled-drawer-mini-width) !important;
        width: var(--vpogled-drawer-mini-width) !important;
        max-width: var(--vpogled-drawer-mini-width) !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

        .vpogled-drawer-shell .vpogled-drawer.k-drawer,
        .vpogled-drawer-shell .vpogled-drawer .k-drawer {
            position: relative !important;
            display: block !important;
            flex: 0 0 var(--vpogled-drawer-mini-width) !important;
            min-width: var(--vpogled-drawer-mini-width) !important;
            width: var(--vpogled-drawer-mini-width) !important;
            max-width: var(--vpogled-drawer-mini-width) !important;
            height: 100% !important;
            min-height: 0 !important;
            max-height: 100% !important;
            overflow: visible !important;
            border-radius: 0 !important;
            background: var(--kendo-color-app-surface, #fff);
            box-shadow: var(--kendo-elevation-1);
            box-sizing: border-box;
        }

            /* The drawer wrapper is absolute inside the shell column. It can expand over the page content,
   but it does not escape to the viewport like position: fixed did. */
            .vpogled-drawer-shell .vpogled-drawer.k-drawer .k-drawer-wrapper,
            .vpogled-drawer-shell .vpogled-drawer .k-drawer .k-drawer-wrapper,
            .vpogled-drawer-shell .vpogled-drawer .k-drawer-wrapper {
                position: absolute !important;
                inset-block-start: 0 !important;
                inset-inline-start: 0 !important;
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
                width: var(--vpogled-drawer-mini-width) !important;
                min-width: var(--vpogled-drawer-mini-width) !important;
                max-width: var(--vpogled-drawer-expanded-width) !important;
                height: 100% !important;
                min-height: 0 !important;
                max-height: 100% !important;
                overflow: hidden !important;
                z-index: var(--vpogled-drawer-z-index) !important;
                border-radius: 0 !important;
                background: var(--kendo-color-app-surface, #fff);
                transition: width 160ms ease;
                box-sizing: border-box;
            }

                .vpogled-drawer-shell .vpogled-drawer.k-drawer-expanded .k-drawer-wrapper,
                .vpogled-drawer-shell .vpogled-drawer .k-drawer-expanded .k-drawer-wrapper,
                .vpogled-drawer-shell .vpogled-drawer .k-drawer-wrapper.k-drawer-expanded {
                    width: var(--vpogled-drawer-expanded-width) !important;
                    z-index: var(--vpogled-drawer-expanded-z-index) !important;
                }

        .vpogled-drawer-shell .vpogled-drawer .k-drawer-items {
            display: block !important;
            height: 100% !important;
            max-height: 100% !important;
            padding-block: 0 !important;
            overflow: hidden !important;
        }

        .vpogled-drawer-shell .vpogled-drawer .k-drawer-item,
        .vpogled-drawer-shell .vpogled-drawer .k-drawer-link {
            min-width: 0 !important;
        }

        /* Drawer component no longer owns a content area. Hide Telerik's empty content host only inside the shell. */
        .vpogled-drawer-shell .vpogled-drawer .k-drawer-content,
        .vpogled-drawer-shell .vpogled-drawer > .k-drawer-content {
            display: none !important;
        }


.drawer-viewport {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0;
    overflow: hidden;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.vpogled-drawer-shell .vpogled-drawer .k-drawer-wrapper .k-drawer-items .k-drawer-item .k-svg-icon {
    width: 15px !important;
    height: 15px !important;
}

@media (min-height: 850px) {
    .vpogled-drawer-shell .vpogled-drawer .k-drawer-wrapper .k-drawer-items .k-drawer-item .k-svg-icon {
        width: 15px !important;
        height: 15px !important;
    }
}

/* VpogledTerjatev - Telerik Drawer overlay
   Keep the overlay below the global appbar. Telerik sets this overlay as position: fixed
   with height: 100% and inset-block-start: 0, which visually covers the MainLayout navbar.
   Use top + bottom with height:auto so only the page area below the appbar is dimmed/click-blocked. */
.vpogled-drawer-shell .k-drawer-overlay.k-drawer-expanded > .k-overlay {
    position: fixed !important;
    inset-block-start: var(--settings-appbar-height, 50px) !important;
    inset-block-end: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    width: auto !important;
    height: auto !important;
}


/* VpogledTerjatevHeader */
.vpogled-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    min-height: 1.6rem;
    padding: 0.5rem 0.25rem 0 0.05rem;
    color: var(--kendo-color-subtle, #50647C);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.vpogled-breadcrumb-home {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--kendo-color-primary, #0279cf);
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.75;
}

.vpogled-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kendo-color-subtle, #50647C);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.vpogled-breadcrumb-link:hover {
    color: var(--kendo-color-primary, #0279cf);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vpogled-breadcrumb-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--kendo-color-primary, #0279cf) 45%, transparent);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.vpogled-breadcrumb-item {
    flex: 0 0 auto;
    color: var(--kendo-color-subtle, #50647C);
}

.vpogled-breadcrumb-separator {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--kendo-color-subtle, #50647C);
    font-size: 0.68rem;
    line-height: 1;
    opacity: 0.7;
}

.vpogled-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--kendo-color-on-app-surface, #28323E);
    font-weight: 800;
}

.vpogled-breadcrumb-with-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
}

.vpogled-breadcrumb-left {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: .35rem;
}

.vpogled-breadcrumb-compact-summary {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
    font-size: inherit;
    line-height: 1.35;
    color: inherit;
    text-transform: none;
    font-variant: normal;
}

.vpogled-breadcrumb-compact-item {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-width: 0;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
    padding-block: .05rem;
}

    .vpogled-breadcrumb-compact-item + .vpogled-breadcrumb-compact-item {
        border-left: 1px solid var(--kendo-color-border, rgba(0, 0, 0, .14));
        margin-left: .65rem;
        padding-left: .65rem;
    }

.vpogled-breadcrumb-compact-icon {
    flex: 0 0 auto;
    color: var(--kendo-color-primary, #0279cf);
    font-size: .78rem;
    line-height: 1.2;
    opacity: .9;
}

.vpogled-breadcrumb-compact-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpogled-breadcrumb-compact-status {
    max-width: 13rem;
    overflow: visible;
}

.vpogled-status-chip-compact {
    max-width: 100%;
    padding: .13rem .48rem;
    font-size: .66rem;
    line-height: 1.05;
    gap: .2rem;
    vertical-align: middle;
}

.vpogled-status-chip-compact .vpogled-status-main,
.vpogled-status-chip-compact .vpogled-status-sub {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpogled-status-chip-compact .vpogled-status-sub {
    flex: 1 1 auto;
}

.vpogled-header-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    padding: 0;
    border: 1px solid var(--kendo-color-border, rgba(0, 0, 0, .14));
    border-radius: 999px;
    background: var(--kendo-color-surface, #fff);
    color: inherit;
    font-size: .72rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.vpogled-header-toggle i {
    font-size: .72rem;
    line-height: 1;
}

.vpogled-toggle-icon-up {
    transform: translateY(0);
}

.vpogled-toggle-icon-down {
    transform: translateY(1px);
}

.vpogled-header-toggle:hover {
    background: var(--kendo-color-surface-alt, rgba(0, 0, 0, .04));
    border-color: var(--kendo-color-primary, rgba(0, 0, 0, .3));
}

@media (max-width: 992px) {
    .vpogled-breadcrumb-with-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vpogled-header-toggle {
        grid-column: 2;
    }

    .vpogled-breadcrumb-compact-summary {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        max-width: 100%;
    }
}
/* VpogledTerjatevHeader */
.small-font {
    font-size: 0.75rem;
}

.vpogled-header-card {
    display: grid;
    /* No fixed column minimums: otherwise the 8 columns require about 1350px and the page gets horizontal scroll. */
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    margin-top: 0.5rem;
    overflow: hidden;
    background: var(--kendo-color-app-surface, #fff);
    border: 1px solid var(--kendo-color-border, rgba(0, 0, 0, .08));
    border-radius: var(--kendo-border-radius-md, 0.25rem);
}

    .vpogled-header-card.no-sodna {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    }

.vpogled-card-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    background: transparent;
}

    .vpogled-card-item + .vpogled-card-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 1.15rem;
        bottom: 1.15rem;
        width: 1px;
        background: linear-gradient( 180deg, transparent 0%, var(--kendo-color-border, rgba(0, 0, 0, .10)) 14%, var(--kendo-color-border, rgba(0, 0, 0, .10)) 86%, transparent 100% );
        pointer-events: none;
    }

.vpogled-card-item-clickable {
    cursor: pointer;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.vpogled-card-item-clickable:hover {
    background: color-mix(in srgb, var(--kendo-color-primary, #3f51e8) 4%, transparent);
}

.vpogled-card-item-clickable-status {
    cursor: pointer;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.vpogled-card-item-clickable-status:hover {
    opacity: 0.82;
}

.vpogled-clickable-field {
    min-width: 0;
    cursor: pointer;
    border-radius: var(--kendo-border-radius-sm, 0.2rem);
    padding: 0.2rem 0.25rem;
    margin-inline: -0.25rem;
    transition: background-color 120ms ease, color 120ms ease;
}

    .vpogled-clickable-field:hover,
    .vpogled-clickable-field:focus-visible {
        background: color-mix(in srgb, var(--kendo-color-primary, #3f51e8) 7%, transparent);
        outline: none;
    }

        .vpogled-clickable-field:hover .vpogled-field-value,
        .vpogled-clickable-field:hover .vpogled-primary-value {
            color: var(--kendo-color-primary, #2937d4);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

.vpogled-item-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: var(--kendo-color-subtle, #667085);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.vpogled-item-title-icon {
    flex: 0 0 auto;
    color: var(--kendo-color-primary, #2937d4);
    font-size: 1rem;
    line-height: 1.1;
    opacity: 1;
}

.vpogled-item-title > span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vpogled-reference-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.vpogled-reference {
    color: var(--kendo-color-primary, #2937d4);
    font-size: 1.55rem;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpogled-inline-action {
    flex: 0 0 auto;
    padding-inline: 0.25rem !important;
}

.vpogled-status-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #28a745 0%, #168a2f 100%);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14);
}

.vpogled-status-chip-success {
    background: linear-gradient(180deg, #28a745 0%, #168a2f 100%);
}

.vpogled-status-chip-danger {
    background: linear-gradient(180deg, #dc3545 0%, #b42318 100%);
}

.vpogled-status-main {
    flex: 0 0 auto;
    min-width: 0;
}

.vpogled-status-separator {
    flex: 0 0 auto;
    opacity: 0.9;
}

.vpogled-status-sub {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpogled-primary-value {
    color: var(--kendo-color-on-app-surface, #1f2544);
    font-size: 0.8rem;
    line-height: 1.25;
    text-transform: uppercase;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpogled-secondary-value {
    color: var(--kendo-color-on-app-surface, #3f4668);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpogled-two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
}

.vpogled-field-block {
    min-width: 0;
    max-width: 100%;
}

.vpogled-field-label {
    display: block;
    color: var(--kendo-color-subtle, #667085);
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vpogled-field-label-povezan {
    color: var(--kendo-color-subtle, #667085);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vpogled-field-value {
    display: block;
    color: var(--kendo-color-on-app-surface, #1f2544);
    font-size: 0.72rem;
    line-height: 1.25;
    text-transform: uppercase;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vpogled-combobox-row {
    margin-top: auto;
    min-width: 0;
    max-width: 100%;
}

.vpogled-combobox-row-pooblascenec {
    padding-top: 0.2rem;
}

.vpogled-combobox-row-terjatev {
    margin-top: auto;
}

.vpogled-floating-action {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
}

.vpogled-debt-value {
    color: var(--kendo-color-on-app-surface, #1f2544);
    font-size: 0.80rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vpogled-refresh-button {
    width: 100%;
    justify-content: center;
}

.ellipsis {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.combobox-height.k-combobox {
    height: 2rem !important;
    min-height: 2rem !important;
    max-width: 100% !important;
}

    .combobox-height.k-combobox .k-input-inner {
        min-height: 2rem !important;
        padding-block: 0.25rem !important;
    }

.combobox-height-compact.k-combobox {
    height: 1.65rem !important;
    min-height: 1.65rem !important;
}

    .combobox-height-compact.k-combobox .k-input-inner {
        min-height: 1.65rem !important;
        padding-block: 0.1rem !important;
        font-size: 0.72rem !important;
    }

.datepicker-height.k-datepicker {
    height: 2rem !important;
    min-height: 2rem !important;
    max-width: 100% !important;
}

.hidden-component {
    visibility: hidden;
}

.status-card {
    max-width: 80ch;
}

.status-text {
    max-width: 70%;
}

.vpogled-header-card .k-d-flex,
.vpogled-header-card .k-flex-row,
.vpogled-header-card .k-stacklayout {
    min-width: 0;
}

.vpogled-header-card > *,
.vpogled-card-item > *,
.vpogled-clickable-field,
.vpogled-field-block,
.vpogled-two-cols,
.vpogled-reference-row {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1500px) {
    .vpogled-header-card {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
        overflow: hidden;
    }

        .vpogled-header-card.no-sodna {
            grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
            overflow: hidden;
        }
}

@media (max-width: 900px) {
    .vpogled-header-card,
    .vpogled-header-card.no-sodna {
        grid-template-columns: 1fr;
    }

    .vpogled-card-item + .vpogled-card-item::before {
        left: 1rem;
        right: 1rem;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient( 90deg, transparent 0%, var(--kendo-color-border, rgba(0, 0, 0, .10)) 14%, var(--kendo-color-border, rgba(0, 0, 0, .10)) 86%, transparent 100% );
    }
}

/* Disable global scroll when this class is present */
.no-scroll {
    overflow: hidden !important;
    height: 100%;
}
/* Settings.razor */

/* Home.razor */
.app-shell {
    min-height: calc(100dvh - 50px) !important;
    display: flex !important;
    flex-direction: column !important;
}

.page-body {
    flex: 1 1 auto !important;
}

.custom-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

    .custom-cols > * {
        min-height: 0;
    }

@media (min-width: 1024px) {
    .custom-cols {
        grid-template-columns: 23% 77%;
    }

        .custom-cols > * {
            height: 100%;
        }
}

@media (min-width: 1600px) {
    .custom-cols {
        grid-template-columns: 20% 80%;
    }
}

/* IZVRŠILNA SREDSTVA */
.izv-tree-node {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 0.3rem;
    line-height: 1.25;
}

.izv-tree-title {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--kendo-color-on-app-surface, #28323E);
    letter-spacing: 0.005em;
}

/* Root level */
.izv-tree-title-root {
    font-size: 0.95rem;
    font-weight: 800;
}

/* First child level */
.izv-tree-title-level-2 {
    font-size: 0.86rem;
    font-weight: 750;
}

/* Second child level */
.izv-tree-title-level-3 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--kendo-color-on-app-surface, #3f4668);
}

/* Deeper child levels */
.izv-tree-title-level-4 {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--kendo-color-subtle, #667085);
}

.izv-tree-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.izv-tree-node .node-btn {
    min-width: 1.35rem !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    min-height: 1.35rem !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.izv-tree-node .node-btn .k-button-icon,
.izv-tree-node .node-btn .k-svg-icon,
.izv-tree-node .node-btn i,
.izv-tree-node .node-btn .bi {
    font-size: 0.85rem !important;
    width: 0.85rem !important;
    height: 0.85rem !important;
    line-height: 1 !important;
}

/* MASOVNE AKCIJE */
.masovne-akcije-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.masovne-akcije-tabs {
    flex: 0 0 auto;
}

.masovne-akcije-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.masovne-dolzniki-page {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.masovne-dolzniki-cols {
    height: 100%;
    min-height: 0;
}

.masovne-search-card,
.masovne-grid-card {
    min-height: 0;
}

.masovne-search-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
}

@media (max-width: 1024px) {
    .masovne-dolzniki-page {
        overflow: auto;
    }

    .masovne-dolzniki-cols {
        height: auto;
        min-height: 0;
    }

    .masovne-search-card {
        max-height: calc(100dvh - 190px);
    }

    .masovne-search-scroll {
        max-height: calc(100dvh - 190px);
    }
}

/* GRIDS */
/* CLASSI DA ODSTRANI SCROLLBAR */
.grid-no-scroll .k-grid-content {
    overflow-y: auto !important;
}

.grid-no-scroll .k-grid-header,
.grid-no-scroll .k-grid-footer {
    padding-right: 0 !important;
}

.grid-no-scroll .k-grid-header-wrap,
.grid-no-scroll .k-grid-footer-wrap {
    border-right-width: 0 !important;
}

.grid-nowrap .k-table td,
.grid-nowrap .k-table th {
    white-space: nowrap !important;
}

/* DIALOG */
.k-dialog-titlebar.k-window-titlebar {
    background-color: var(--kendo-color-primary) !important;
    color: white;
}

.k-form .k-form-field {
    margin-block-start: 0 !important;
}

/* SETTINGS */
/*.k-tabstrip-top > .k-tabstrip-items-wrapper {
    border-block-end-width: 0 !important;
}

.tabs-pill .k-tabstrip-items {
    margin-bottom: 1rem !important;
}

.tabs-pill .k-tabstrip-items .k-item .k-link {
    border-radius: var(--kendo-border-radius-md) !important;
    padding: .375rem .75rem !important;
    border: 1px solid var(--kendo-color-border) !important;
    background: var(--kendo-color-base) !important;
    color: var(--kendo-color-on-base, inherit) !important;
}

.tabs-pill .k-tabstrip-items .k-item.k-active .k-link,
.tabs-pill .k-tabstrip-items .k-item.k-selected .k-link {
    border-radius: var(--kendo-border-radius-md) !important;
    border-color: var(--kendo-color-primary) !important;
    background: var(--kendo-color-light) !important;
    color: var(--kendo-color-primary) !important;
}

.k-tabstrip-content {
    overflow: inherit !important;
    border: none !important;
    border-color: transparent;
    padding: 0 !important;
    background-color: inherit !important;
}

.k-tabstrip-content.k-active {
    display: flex !important;
    flex-direction: column !important;
    max-height: 85dvh !important;
    padding-bottom: var(--kendo-spacing-3, var(--spacing-3)) !important;
    box-sizing: border-box !important;
}


.k-tabstrip-items-wrapper .k-item.k-active {
    background-color: transparent !important;
    box-shadow: none !important;
    --webkit-box-shadow: none !important;
    --moz-box-shadow: none !important;
}

div.no-outline > .k-tabstrip-content:focus {
    outline-style: none;
}

.k-tabstrip-items-wrapper .k-item:active, .k-tabstrip-items-wrapper .k-item.k-active, .k-tabstrip-items-wrapper .k-item.k-selected {
    border: none;
    padding-bottom: 1px;
}*/

/* Settings with left navigation */
.k-tabstrip-content.k-active > .k-w-full,
.settings-shell,
.settings-row {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.settings-row {
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: flex-start !important;
}

.settings-right {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 100dvh !important;
    overflow: auto !important;
    height: 83dvh !important;
}

@media (min-height: 900px) {
    .settings-right {
        height: 85dvh !important;
    }
}

.settings-left {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    max-height: 85dvh !important;
}

@media (min-width: 1600px) {
    .settings-left {
        flex: 0 0 19% !important;
        max-width: 19% !important;
    }
}

@media (min-width: 1700px) {
    .settings-left {
        flex: 0 0 18% !important;
        max-width: 18% !important;
    }
}

@media (min-width: 1800px) {
    .settings-left {
        flex: 0 0 16% !important;
        max-width: 16% !important;
    }
}

.settings-left-sticky {
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
}

.settings-left-child {
    display: flex !important;
    flex-direction: column !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    height: 83dvh !important;
}

@media (min-height: 900px) {
    .settings-left-child {
        height: 85dvh !important;
    }
}

.settings-left-child > ul {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    --webkit-overflow-scrolling: touch;
}

.settings-payments {
    flex: 0 0 16% !important;
    max-width: 16% !important;
    max-height: 85dvh !important;
}

@media (min-width: 1600px) {
    .settings-payments {
        flex: 0 0 15% !important;
        max-width: 15% !important;
    }
}

@media (min-width: 1700px) {
    .settings-payments {
        flex: 0 0 14% !important;
        max-width: 14% !important;
    }
}

@media (min-width: 1800px) {
    .settings-payments {
        flex: 0 0 12% !important;
        max-width: 12% !important;
    }
}

.k-item-text {
    font-size: 12px !important;
}

.drawer-active .k-item-text {
    color: var(--kendo-color-primary) !important;
    font-weight: 600 !important;
}

.nav-li {
    cursor: pointer !important;
    border-radius: var(--kendo-border-radius-sm) !important;
    padding: .375rem .5rem !important;
}

    .nav-li:hover {
        background: var(--kendo-color-subtle) !important;
    }

.nav-icon-only {
    justify-content: center !important;
}
/* end settings with left navigation */

/* za flex layout pri settings->pošta */
.postaContainer {
    height: calc(100% - (34px + 0.75rem));
}

.k-numerictextbox .k-input-spinner {
    display: none !important;
}

/* custom grid footer za prikaz števila elementov */
.custom-grid-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-inline: var(--kendo-spacing-2, 0.5rem);
    padding-block: 0.1rem;
    border-left: 1px solid var(--kendo-color-border);
    border-right: 1px solid var(--kendo-color-border);
    border-bottom: 1px solid var(--kendo-color-border);
    background: var(--kendo-color-surface);
    pointer-events: none;
    font-size: var(--kendo-font-size-md);
}


/* RICH TEXT EDITOR - E-POŠTA VSEBINE IN ZADEVE */
.inter-editor div.k-editor-content div.k-content {
    font-family: 'Inter', Arial, sans-serif !important;
}

.inter-editor .k-editor-content,
.inter-editor .k-editor-content * {
    font-family: "Inter", Arial, sans-serif !important;
}

.inter-editor .k-editor-content {
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.4;
}

.inter-editor .k-editor-content p {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.inter-editor .k-editor-content p:last-child {
    margin-bottom: 0;
}