html, body {
    font-family: Roboto, sans-serif;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* TELERIK PROJECT TEMPLATE STYLES */

/* Overall Layout and Drawer */

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
}

div.appbar-top {
    position: relative;
    z-index: 1;
}

.mainlayout-drawer {
    flex: 1;
    align-items: stretch;
    overflow: hidden;
}

    .mainlayout-drawer > .k-drawer .k-drawer-items {
        margin-top: 1em;
    }

/* Top AppBar */

.appbar-top > div {
    line-height: 2.4;
}

#app-title {
    /*color: var(--kendo-color-primary);*/
    display: flex;
    gap: .2em;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    font-weight: bold;
}

    #app-title strong {
        font-weight: 500;
    }

    #app-title sup {
        font-size: .4em;
    }

    #app-title a,
    #app-title a:hover {
        text-decoration: none;
        color: inherit;
    }

#product-page-link {
    display: block;
    width: 42px;
    margin-right: var(--kendo-spacing-2);
    background: url(devcraft-ninja-small.svg) center no-repeat;
    background-size: contain;
    font-size: var(--kendo-font-size-lg);
    text-decoration: none;
    text-indent: -9999px;
}

/* Main Content */

main {
    padding: 0 2em 2em;
}

a {
    color: var(--kendo-color-on-app-surface);
}

    a:hover {
        color: var(--kendo-color-primary);
        text-decoration: none;
    }

h1, h2, h3 {
    margin: .67em 0 .3em;
    font-weight: normal;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}
/* Bottom AppBar */

div.appbar-bottom {
    z-index: 1;
    background-color: var(--kendo-color-surface);
    color: var(--kendo-color-subtle);
}

#copyright {
    padding: .5em 0;
}

.k-drawer-content {
    background-color: #fafafa;
}

.nextie-page .k-listview.telerik-blazor {
    background-color: var(--kendo-color-app-surface, #f8f8f8);
}

.nextie-page .k-vbox.k-flex-grow {
    width: 100%;
}

.k-card .k-card-title {
    margin: 0.5rem 0 0.4rem 0 !Important;
}

.k-card .k-card-subtitle {
    margin: 0 !Important;
    color: #333 !important;
    font-size: 0.9rem;
}

.conversation-header .k-card-title {
    margin: 0.5rem 0 0.4rem 0 !Important;
    color: #333;
}

.nextie-page .k-card-subtitle {
    width: 95%;
}


/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0 1.25rem 0
}

.page-title {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.page-title-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.page-title h3 {
    font-weight: bold;
}

.page-title-icon {
    background: var(--kendo-color-primary);
    color: white;
    min-width: 56px;
    width: 56px;
    min-height: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(16,24,40,0.08)
}

.page-subtitle {
    margin: 0;
    color: var(--kendo-color-subtle);
    font-size: 0.95rem
}

.k-card-title {
    color: var(--kendo-color-primary);
    font-weight: bold;
    margin: 0.6rem 0.9rem 0 0.9rem;
}

.k-card-header {
    border-bottom: none 0 !Important;
    padding-bottom: 0;
}

.k-card-body {
    margin: 0 0.9rem 0.6rem 0.9rem;
}

.k-card-title.small-screen {
    margin-bottom: 1.8em;
}

.k-card-subtitle {
    margin: 0.6rem 0.9rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0 0;
    font-weight: 600
}

    .card-header .card-actions {
        margin-top: 10px;
        margin-bottom: -3px;
    }

.editor-grid {
    width: 100%;
}
/* Override the outer button's default theme styles */
.upload-invoice-page .k-button:has(.custom-select-button) {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: inherit;
    display: block;
    width: 100%;
}

    .upload-invoice-page .k-button:has(.custom-select-button):hover,
    .upload-invoice-page .k-button:has(.custom-select-button):focus,
    .upload-invoice-page .k-button:has(.custom-select-button):active {
        background: none;
        border: none;
        box-shadow: none;
        color: inherit;
    }

    .upload-invoice-page .k-button:has(.custom-select-button):focus-visible {
        outline: none;
    }

.upload-invoice-page .custom-select-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px;
    border: 3px dashed var(--kendo-color-primary);
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f0ff 0%, #ece6ff 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(180, 180, 180, 0.3);
}

.upload-invoice-page .upload-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--kendo-color-primary) 0%, var(--kendo-color-primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(180, 180, 180, 0.3);
}

.upload-invoice-page .select-text {
    flex: 1;
}

.upload-invoice-page .select-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--kendo-color-on-app-surface);
    margin-bottom: 4px;
}

.upload-invoice-page .select-hint {
    font-size: 13px;
    color: #6c757d;
}

.upload-invoice-page .custom-file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    padding: 16px;
    border: 1px solid var(--kendo-color-primary-on-surface);
    border-left: 4px solid var(--kendo-color-primary);
    border-radius: 8px;
    margin-bottom: -2px;
    background: white;
    box-shadow: 0 2px 4px rgba(180, 180, 180, 0.3);
    transition: all 0.2s ease;
}

.upload-invoice-page .file-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.upload-invoice-page .file-extension-badge {
    background: linear-gradient(135deg, var(--kendo-color-primary) 0%, var(--kendo-color-primary-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(180, 180, 180, 0.3);
}

    .upload-invoice-page .file-extension-badge.invalid-extension {
        background: linear-gradient(135deg, var(--kendo-color-error) 0%, var(--kendo-color-error) 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(180, 180, 180, 0.3);
    }

.upload-invoice-page .file-info {
    flex: 1;
    min-width: 0;
}

.upload-invoice-page .file-name {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-invoice-page .file-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6c757d;
}

.upload-invoice-page .file-size {
    font-weight: 500;
}

.upload-invoice-page .file-error {
    color: var(--kendo-color-error);
    font-weight: bold;
}

.upload-invoice-page .file-status {
    color: var(--kendo-color-primary);
    font-weight: 500;
}

.invoice-list-page .status-icon {
    min-width: 28px;
    width: 28px;
    min-height: 28px;
    height: 28px;
}

.invoice-processing-page .card-wrapper {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.invoice-processing-page .justify-space-between {
    justify-content: space-between;
}

.invoice-processing-page .post-likes-count {
    font-size: 13px;
    align-self: center;
    color: #656565;
}

.invoice-processing-page .skeleton-card .k-card-subtitle {
    margin-left: 15px;
}

.Nextie-notification {
    position: absolute;
    z-index: 1050;
    margin: 10px;
}

    .Nextie-notification .k-notification {
        min-width: 500px;
    }

.k-notification-content {
    font-size: 18px;
    font-weight: bold;
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 0;
}

.grid-button-show-new-in-progress,
.grid-button-show-new-completed,
.grid-button-show-completed-new,
.grid-button-show-completed-in-progress,
.grid-button-show-in-progress-new,
.grid-button-show-in-progress-completed {
    display: none;
}

.Nextie-invoice-item-spreadsheet .k-spreadsheet-header {
    display: none;
}

.Nextie-invoice-item-spreadsheet .k-spreadsheet-sheets-bar {
    display: none;
}

.Nextie-invoice-item-spreadsheet .k-spreadsheet {
}

li.k-item.k-menu-item :has(> .k-svg-i-table-column-insert-right),
li.k-item.k-menu-item :has(> .k-svg-i-table-column-insert-left),
li.k-item.k-menu-item :has(> .k-svg-i-table-column-delete) {
    display: none !important;
}

.Nextie-card-actions {
    margin-top: -25px;
    padding-right: 20px;
    padding-bottom: 0px;
}

.Nextie-card-checkbox {
    padding-top: 2px;
    padding-right: 20px;
}

    .Nextie-card-checkbox label {
        font-weight: 500;
        padding-left: 4px;
        vertical-align: middle;
    }

.Nextie-logout-menu a {
    text-decoration: none;
}

.k-link.k-menu-link.Nextie-logout-menu {
    padding: 0;
    padding-block: 0 !important;
    padding-inline: 0 !important;
    padding-inline-end: 0 !important;
}

.login-page a,
.forgot-password-page a,
.about-page a {
    text-decoration: none;
}

.invoice-notes-page table {
    border-collapse: collapse;
}

.invoice-notes-page th {
    border: solid 1px var(--kendo-color-on-app-surface);
    padding: 5px 10px 5px 5px;
}

.invoice-notes-page td {
    border: solid 1px var(--kendo-color-on-app-surface);
    padding: 5px 10px 5px 5px;
}


.tariff-review-component div.appbar-bottom-window {
    z-index: 1;
    padding: 0;
    background-color: var(--kendo-color-surface);
    color: var(--kendo-color-subtle);
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
}

    .tariff-review-component div.appbar-bottom-window .k-appbar {
        width: 100%;
    }

    .tariff-review-component div.appbar-bottom-window .k-pager {
        margin: 0 auto;
        border: 0 none;
    }

    .tariff-review-component div.appbar-bottom-window .k-appbar-section {
        text-align: center;
        width: 100%;
    }

.tariff-review-component .Nextie-data-item {
    color: var(--kendo-color-primary);
    font-size: 1.5em;
    font-weight: bold;
    margin: 0rem 0rem;
}

.tariff-review-component .Nextie-data-item-highlighted {
    color: var(--kendo-on-app-surface);
    font-size: 1.5em;
    font-weight: bold;
    margin: 0rem 0rem;
}

.tariff-review-component .text-highlight {
    color: var(--kendo-color-primary);
}

.tariff-review-component .k-splitter {
    border: 0 none;
    padding: 5px;
}

.tariff-review-component .k-splitbar {
    display: none;
}

.tariff-review-component .scrollable-text {
    display: block;
    overflow: scroll;
    height: 100%;
}

.tariff-review-component .grid-layout-stretch {
    height: 100%;
}

.tariff-review-component .tariff-review-buttons {
    padding-top: 10px;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.grid-layout-container {
    height: 100%;
    margin-bottom: 10px;
}

.k-form-field.Nextie-card-checkbox {
    padding-top: 25px;
}

.validation-message {
    color: var(--kendo-color-error);
    padding-top: 2px;
}

.k-window-title {
    color: var(--kendo-color-primary);
}

.loading-container, .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    flex: 1;
    min-width: 170px;
    display: flex;
    flex-direction: column;
}

    .form-group label {
        padding-bottom: 2px;
    }

.k-card {
    height: 100%;
}

/* Multi Value header */
.multi-value-container .k-listview-header {
    padding-bottom: 0;
    margin-bottom: 0;
}

.multi-value-field,
.multi-value-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 0 0 0.2rem 0;
    width: 100%;
    margin: 0;
}

.multi-value-title {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.multi-value-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.multi-value-header {
    margin-top: -6px;
}

    .multi-value-header .multi-value-buttons {
    }


.help-page .k-card-title,
.users-page .k-card-title {
    padding-left: 30px !important;
    padding-top: 15px !important;
}

.profile-page .k-card-title,
.about-page .k-card-title,
.users-page .k-card-title,
.settings-page .k-card-title {
    padding-left: 15px !important;
    padding-top: 10px !important;
}

.profile-page .k-card-body,
.users-page .k-card-body,
.settings-page .k-card-body {
    padding-bottom: 40px !important;
}

.settings-page .k-card-subtitle {
    padding-left: 15px !important;
}

h4 {
    color: var(--kendo-color-primary);
    margin-bottom: 0.4em;
    margin-top: 1.6em;
}