@import url('inf-font/infinity-stylesheet.css');
@import url('infNavbar/infnavbar-stylesheet.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.auth-logo-text {
    display: inline-flex;
    align-items: baseline;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1;
    white-space: nowrap;
}

.auth-logo-text-strong {
    font-weight: 700;
}

.auth-logo-text-light {
    font-weight: 300;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px
}

@media (max-width: 641px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.nazovPolozky{
    font-size: 0.75em;
    margin-bottom: 0;
    padding-bottom: 0;
}

.textComba{
    margin-left: 0.5em;
    margin-top: 1px;
    vertical-align: center;
}

/* CENTER Grid column */

/* non-sortable headers */
.k-grid th.center-me {
    text-align: center;
}

/* sortable headers */
th.center-me .k-cell-inner > .k-link {
    justify-content: center;
}

/* RIGHT */

/* non-sortable headers */
.k-grid th.align-right {
    text-align: right;
}

/* sortable headers */
th.align-right .k-cell-inner > .k-link {
    justify-content: right;
}

/* unbound and non-filterable columns */
.k-grid-header th.align-right.right-padding {
    padding-right: 12px;
}

/* filterable grid, sortable non-filterable columns */
.k-grid-header th.align-right.right-padding > .k-cell-inner {
    margin-right: 0;
}

/* shared ellipsis */
div.custom-ellipsis,
span.custom-ellipsis,
.k-grid td.custom-ellipsis,
.k-grid tr.custom-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

span.custom-ellipsis {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    vertical-align: middle;
}

.k-treelist .k-table-td {
    overflow: hidden;
}

.k-treelist .custom-ellipsis {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.priorita-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(17, 24, 39, 0.18);
    color: #111827;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    vertical-align: middle;
}

.treelist-ellipsis-first-col .k-table-td:first-child {
    white-space: nowrap !important;
    overflow: hidden;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell {
    display: flex;
    align-items: center;
    min-width: 0;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell > * {
    flex: 0 0 auto;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell > .k-treecell-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap !important;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell > .k-treecell-text .tree-ellipsis-text {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell > .k-treecell-text .color-tree-item {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell > .k-treecell-text .color-tree-swatch {
    display: inline-block;
    flex: 0 0 1.2em;
    width: 1.2em;
    height: 1.2em;
    min-width: 1.2em;
    border: 1px solid black;
}

.treelist-ellipsis-first-col .k-table-td:first-child .k-treecell > .k-treecell-text .color-tree-text {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nazovStranky {
    font-size: 1.2em;
    font-weight: bold;
    color: #1e8f8c;
    margin-top: auto;
    margin-bottom: auto;
    margin-inline-start: 0.2em;
    margin-inline-end: 50px;
    padding-bottom: 0;
}

.ikonaStranky{
    color: #cf4869;
}

.nazovBox {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

    .formularTextVpravo {
        vertical-align: center;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
    }

    .max-width-800 {
        max-width: 800px;
        margin: 0 auto; /* Center the grid horizontally */
    }

.centerGrid {
        margin: 10px auto;
        border: 1px solid silver;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        padding: 10px;
    }

.custom-label {
    font-size: 0.9rem; /* Nastavenie veľkosti písma */
    color: #1e8f8c; /* Nastavenie farby textu */
    margin-bottom: 0.25rem; /* Oddeľ label od políčok pridelením dolného okraja */
    display: block; /* Zabezpečenie, že `label` je na samostatnom riadku */
    text-transform: none; /* (Voliteľné) Na zobrazenie textu písmenami CAPS LOCK */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-label2 {
    color: #1e8f8c; /* Nastavenie farby textu */
    margin-bottom: 0;          /* zruší spodný okraj */
    display: inline-flex;      /* urobí z labelu flex box */
    align-items: center;       /* zvislé vystredenie textu v labeli */
}

.label-group-title {
    font-size: 0.9rem;
    color: #6b9693;
    margin-bottom: 0.25rem;
    display: block; /* Zachovanie samostatného riadku */
    text-transform: none; /* Zachovanie bez transformácie písmen */
    font-weight: bold; /* Nastavenie textu na tučný */
}

.textArea-max-height-150 > textarea {
    max-height: 150px;
    overflow-y: auto !important;
}

.textArea-max-height-300 > textarea {
    max-height: 300px;
    overflow-y: auto !important;
}

.buttonCenter-column {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* len ak je potrebná úplná výška */
}

.numBoxCenter .k-input-inner {
    text-align: center;
}

.calcEditCellFormattingLight1 {
    background-color: #e8f3f3;
    color: black;
}

.calcEditCellFormattingLight2 {
    background-color: #d7eaea;
    color: black;
}

.lkp-icon-text {
    display: flex;
    align-items: center;
}

.lkp-icon-text .text {
    margin-left: 0.35em;
}

.inline-field {
    display: inline-flex;
    align-items: center;      /* vertikálne centrovanie */
    gap: 6px;                 /* medzera medzi labelom a inputom */
}

.inline-field label {
    margin: 0;
    line-height: 1.2;
}

.sklad-doklad-detail {
    margin-bottom: 2rem;
    max-width: 65em;
    margin-left: auto;
    margin-right: auto;
}

.sklad-doklad-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sklad-doklad-card {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    padding: 0.75rem 0.875rem;
    background: transparent;
}

.sklad-doklad-shell > .mt-3 {
    margin-top: 0 !important;
}

.sklad-doklad-detail .row.g-3 {
    --bs-gutter-x: 0.8rem;
    --bs-gutter-y: 0.55rem;
}

.sklad-doklad-detail .custom-label {
    display: inline-block;
    margin-bottom: 0.2rem;
    line-height: 1.15;
}

.sklad-doklad-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sklad-doklad-total {
    text-align: right;
    min-width: 14rem;
}

.sklad-doklad-total-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sklad-doklad-total-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a5485;
    line-height: 1.2;
}

.sklad-doklad-total-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.sklad-doklad-section-title {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    color: #1e8f8c;
}

.sklad-doklad-bottom-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sklad-doklad-bottom-card {
    height: 100%;
}

.sklad-doklad-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.sklad-doklad-action-buttons .k-button {
    min-width: 8rem;
}

.sklad-doklad-summary-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-end;
}

.prijem-detail-summary-wrap-offset {
    padding-right: 1.5rem;
}

.sklad-doklad-summary-row {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 0.55rem;
    align-items: center;
    justify-content: end;
}

.sklad-doklad-summary-label {
    font-style: normal;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.25;
    color: #1e8f8c;
    text-align: right;
}

.sklad-doklad-summary-value {
    text-align: right;
    min-width: 8rem;
}

.sklad-doklad-detail .k-input,
.sklad-doklad-detail .k-picker,
.sklad-doklad-detail .k-combobox,
.sklad-doklad-detail .k-dropdownlist,
.sklad-doklad-detail .k-numerictextbox,
.sklad-doklad-detail .k-textbox,
.sklad-doklad-detail .k-textarea {
    margin-bottom: 0;
}

.sklad-doklad-cislo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a5485;
    text-align: center;
}

.sklad-doklad-new-doc {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 768px) {
    .sklad-doklad-card {
        padding: 0.875rem;
    }

    .sklad-doklad-total {
        text-align: left;
        min-width: 0;
    }

    .sklad-doklad-action-buttons {
        justify-content: flex-start;
    }

    .sklad-doklad-summary-row {
        grid-template-columns: max-content max-content;
    }
}

.prijem-item-harok .k-svg-icon,
.prijem-item-harok .k-svg-icon svg {
    color: #F6BB43;
    fill: currentColor;
}

.prijem-item-rolka .k-svg-icon,
.prijem-item-rolka .k-svg-icon svg {
    color: #345995;
    fill: currentColor;
}

.prijem-item-farba .k-svg-icon,
.prijem-item-farba .k-svg-icon svg {
    color: #E40066;
    fill: currentColor;
}

.prijem-item-material .k-svg-icon,
.prijem-item-material .k-svg-icon svg {
    color: #03CEA4;
    fill: currentColor;
}

.prijem-item-kovolist .k-svg-icon,
.prijem-item-kovolist .k-svg-icon svg {
    color: #FB4D3D;
    fill: currentColor;
}

.prijem-item-vyrobok .k-svg-icon,
.prijem-item-vyrobok .k-svg-icon svg {
    color: #4FC0E8;
    fill: currentColor;
}

.plan-page .k-scheduler {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.plan-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 4rem);
}

.plan-page__scheduler-row {
    flex: 1 1 auto;
    min-height: 0;
}

.plan-page__scheduler-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.plan-page__scheduler-host {
    flex: 1 1 auto;
    min-height: 32rem;
}

.plan-page .k-scheduler .k-event,
.plan-page .k-scheduler .k-event.k-selected {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.plan-page .k-scheduler .k-event:hover .plan-scheduler-event {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
    filter: brightness(0.98);
}

.plan-scheduler-event {
    --event-color: #3b82f6;
    --event-text-color: #f8fafc;

    width: 100%;
    height: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: var(--event-color);
    color: var(--event-text-color);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.plan-scheduler-event--all-day {
    align-items: center;
    min-height: 100%;
    padding-block: 0.3rem;
}

.plan-scheduler-event__title {
    width: 100%;
    color: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-group-header-card {
    --zdroj-color: #1abbb3;

    width: calc(100% - 0.75rem);
    box-sizing: border-box;
    margin: 0.25rem 0.375rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-top: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-group-header-card:hover {
    border-color: var(--zdroj-color);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.plan-group-header-card__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--zdroj-color);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    transition: color 0.18s ease;
}

.plan-group-header-card__swatch {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: var(--zdroj-color);
    flex: 0 0 auto;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.plan-toolbar-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.plan-toolbar-filter__label {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.plan-toolbar-filter__select {
    width: min(30rem, 48vw);
    min-width: 16rem;
}

.plan-toolbar-filter__select .k-multiselect {
    width: 100%;
}

.plan-multiselect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #dbe4f0;
    background: #f8fbff;
}

.plan-multiselect-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plan-multiselect-item__left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.plan-multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.1rem 0.05rem;
}

.plan-multiselect-tag__swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
}

.plan-multiselect-tag__text {
    font-weight: 400;
    color: #1f2937;
    white-space: nowrap;
}

.plan-multiselect-summary-tag {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #475569;
}

.plan-side-panel {
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.plan-side-panel__header {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #dbe4f0;
}

.plan-side-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.plan-side-panel__subtitle {
    margin-top: 0.25rem;
    font-size: 0.84rem;
    color: #5b6472;
}

.plan-side-panel__body {
    max-height: 720px;
    overflow: auto;
    padding: 0.85rem 1rem 1rem;
}

.plan-filter-group + .plan-filter-group {
    margin-top: 1rem;
}

.plan-filter-group__title {
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5b6472;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.plan-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.plan-filter-row:last-child {
    border-bottom: 0;
}

.plan-filter-row__left,
.plan-filter-row__right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.plan-filter-row__swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    display: inline-block;
}

.plan-filter-row__badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-filter-row__badge.is-edit {
    color: #0f766e;
}

.plan-filter-row__badge.is-read {
    color: #9a3412;
}

.plan-rights-dialog {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-rights-dialog__header {
    margin-bottom: 0.85rem;
    color: #5b6472;
}

.plan-rights-dialog__list {
    flex: 1 1 auto;
    overflow: auto;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
}

.plan-rights-dialog__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #edf2f7;
}

.plan-rights-dialog__row:last-child {
    border-bottom: 0;
}

.plan-rights-dialog__user {
    min-width: 0;
}

.plan-rights-dialog__name {
    font-weight: 700;
    color: #1f2937;
}

.plan-rights-dialog__mail {
    color: #64748b;
    font-size: 0.86rem;
}

.plan-rights-dialog__owner {
    margin-left: 0.5rem;
    color: #2563eb;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-rights-dialog__fixed {
    color: #0f766e;
    font-weight: 700;
}

.plan-rights-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .plan-toolbar-filter {
        width: 100%;
    }

    .plan-toolbar-filter__select {
        width: 100%;
        min-width: 0;
    }

    .plan-side-panel__body {
        max-height: none;
    }

    .plan-rights-dialog__row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.realizovane-ok-icon {
  color: #1e8f8c;
}

.inf-data-icon.k-svg-icon,
.inf-data-icon.k-svg-icon svg {
    width: 1.25em !important;
    height: 1.25em !important;
}

.k-grid td.crm-task-overdue-term-cell {
    background-color: #f8d7da !important;
    color: #842029;
}
