html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 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;
    min-height: 0; /* ��������� */
}

div.appbar-top {
    position: relative;
    z-index: 1;
}

.mainlayout-drawer {
    flex: 1 1 auto;
    display: flex; /* �������� �� */
    min-height: 0; /* �������� �� */
    overflow: hidden;
}

    /* The content pane must be capped to its allotted flex height so ITS OWN
       overflow:auto (Telerik default) scrolls internally when a page is taller
       than the viewport - otherwise .mainlayout-drawer's overflow:hidden above
       silently clips the bottom of tall pages instead of making them scrollable. */
    .mainlayout-drawer .k-drawer-content {
        height: 100%;
        min-height: 0;
    }

    .mainlayout-drawer > .k-drawer .k-drawer-items {
        margin-top: 1em;
    }

/* Top AppBar */

.appbar-top > div {
    line-height: 2.4;
}

#app-title {
    display: flex;
    gap: .2em;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

    #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;
    flex: 1 1 auto; /* �������� �� */
    display: flex; /* �������� �� */
    flex-direction: column; /* �������� �� */
    min-height: 0; /* �������� �� */
}

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;
}



/*.invoice-page {
    height: calc(100vh - 260px);*/ /* adjust if you have top nav/header */
    /*display: flex;
    flex-direction: column;
    gap: 0px;
}*/

.invoice-page {
    height: calc(100vh - 225px);
    display: flex;
    flex-direction: column;
}

/* top form: natural height */
.invoice-header {
    padding: 10px;
    background-color: white;
    margin: 5px 0px 5px 0px;
    border-radius: 10px;
    flex: 0 0 auto;
}
/*.invoice-header {
    flex: 0 0 auto;
}*/


/* grid: fill all remaining space */
/*.invoice-grid {
    flex: 1 1 auto;
    min-height: 0;*/ /* IMPORTANT: allows the grid to shrink and scroll */
    /*overflow: hidden;*/ /* important for Telerik internal scroll */
/*}*/
.invoice-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto; /* <-- scroll here */
    background-color: #fff;
    border-radius: 10px 10px 0px 0px !important;
}

/* bottom totals: stays at bottom */
/*.invoice-footer {
    position: sticky;
    bottom: 0;
    background: white !important;
    z-index: 2;
    padding: 0px 10px 0px 10px;
}*/

.invoice-footer {
    flex: 0 0 auto;
    background: white;
    z-index: 2;
    padding: 0px 10px 10px 10px;
    border-radius: 0px 0px 10px 10px;
}
.MyTelerikNotification .k-notification-container .k-notification {
    width: 300px;
    height: 50px;
    font-size: 1.5em;
    text-align: center;
    align-items: center;
}

.k-grid tbody tr.k-table-row:nth-child(odd) td {
    background-color: #f5f5f5;
}

/* (optional) even rows */
.k-grid tbody tr.k-table-row:nth-child(even) td {
    background-color: #ffffff;
}


.invoice-form {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: 5fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.invoice-form-paratiriseis {
    grid-area: 2 / 2 / 2/6;
}


.invoice-footer-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.footer-item {
    width:100%;
}

.k-drawer-container:where(.k-drawer-push) .k-drawer {
    background-color: white !important;
}


/* Notifications */


.custom-notification-parent {
    position: absolute; /* lets the notifications use this parent for positioning */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999999999999999999; /* depends on other z-indexes on the page */
    /* This example centers the notification container according to its own parent which is
        below the button.
        Centering approach based on https://css-tricks.com/centering-css-complete-guide/
        */
}

.custom-positioned-notifications {
    position: relative; /* force the individual notifications respect the position of their parent */
    flex-wrap: nowrap !important; /* display the individual notifications in a single column */
}
.custom-positioned-notifications_window {
   padding-top:20px;
}



:root {
    --kendo-color-app-surface: #f2f2f2 !important; /* your color */
}

.nsp_container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1em;
}

.nsp_card {
    background-color: white;
    border-radius: 10px;
    height: 150px; /* consistent tile size */
    overflow: hidden;
    border: 1px solid transparent;
}


/* Make the Telerik button fill the card and center its content */
.nsp_button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Kill Telerik hover/focus/active visuals */
    .nsp_button:hover,
    .nsp_button:focus,
    .nsp_button:focus-visible,
    .nsp_button:active {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        color: inherit !important;
        outline: none !important;
    }

/* Control image sizing */
.nsp_img {
    width: 150px;
    height: 100%;
    object-fit: contain; /* or 'cover' if you want it to fill/crop */
    display: block;
    transition: transform 200ms ease;
    transform-origin: center;
}

.nsp_card:hover {
    border-color: var(--kendo-color-primary);
    border-width: 1px;
}

.nsp_card:hover .nsp_img {
    transform: scale(1.25); /* tweak 1.05�1.25 */
}


.nsp_settings_content {
    height: calc(100% - 20px);
    width: auto;
    display: grid;
    grid-template-columns: auto 300px;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 1em;
    grid-template-areas:
        "filiki_onomasia filiki_onomasia"
        "kodikosWebECR redeemBtn"
        "apiKey terminals"
        "debug debug"
        "footer footer";
}

.nsp_settings_button {
    width:100%;
}

.nsp_settings_footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-radius: 8px;
}

.k-window-content {
    padding-block : unset !important;
}

/*.loipa_stoixeia_content {
    height: calc(100% - 20px);
    width: auto;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 1em;
    grid-template-areas:
        "stoixeia_diakinisis stoixeia_dimosias_simvasis"
        "stoixeia_polisis epiloges_pos";
}*/



.loipa_stoixeia_content {
    height: calc(100% - 20px);
    width: auto;
    display: flex;
    gap: 1em;
    justify-content: flex-start;
    flex-wrap: wrap;
}


.buttons_invoices_content {
    display:flex;
    justify-content:space-between;
}

.item_container {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

.grid-page {
    height: calc(100vh - 225px);
    overflow: hidden; /* prevent page scroll, grid will scroll */
    border-radius: 10px;
}

.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /*background: #f5f6f8;*/
    /*background-image: url("images/SL-090519-23100-24.jpg");*/
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    color: white;
}

.login-card {
    /* width: min(420px, 100%);*/
    background: #0F6CBD;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    font-weight: 600 !important;
}



.grid-title {
    align-content: center;
    font-size: 25px;
    color: #0f6cbd;
    font-weight: 600;
}


.register_container {
    position: relative;
    display: grid;
    grid-gap: 12px;
    grid-template-rows: 250px 1fr;
    max-width: 900px;
    background-color: #fdfdfd;
    padding: 10px;
    border-radius: 10px;
    justify-content: stretch;
    padding: 50px;
}

.loading-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.required {
    color: red;
    padding-left: 5px;
}

/* App tab strip (pages open as tabs instead of navigating away).
   Chrome (background, borders, active-tab highlight) comes from the
   Telerik TabStrip's own theme, so only the header content needs styling. */

.app-tabstrip .k-tabstrip-items-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.app-tabstrip .k-tabstrip-item {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-tab-header {
    display: inline-flex;
    align-items: center;
}

.app-tab-title {
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-inline-end: 8px;
}

.app-tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
}

.app-tab-close:hover {
    background: var(--kendo-color-error, #d32f2f);
    color: #fff;
}

.app-tab-pane {
    height: 100%;
    padding: 12px;
}

