﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* === Globální nastavení === */

html, body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #333;
    display: flex;
    flex-direction: column;
}

body {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* === Validace === */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* === Textové popisky === */
.label-text {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.label-dobaObratu-nadpis {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.label-dobaObratu {
    text-align: center;
    font-size: 60px;
    font-style: italic;
    font-weight: bold;
    color: #2563eb;
}
.label-ABCmatice {
    font-size: 60px;
    font-style: italic;
    font-weight: bold;
    color: #2563eb;
    display: flex;
    justify-content: center !important; /* horizontálně */
    align-items: center !important;
    text-align: center !important;
}



/* === Ikony === */
.icon {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center center;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
}

.counter-icon {
    background-image: url("images/counter.svg");
}

/* === Grids === */
.grid-size-polozky {
    height: 300px;
    max-width: 100%;
   
}
.graf-size {
    height: 100%;
    width: 100%;
}
.grid-size-ukazatele {
    max-height: 300px;
    width: 100%;
 
}
.grid-size-regal {
    height: 400px;
    width: 100%;
    font-size: 30px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.grid-size-kosik {
    height: 400px;
    width: 100%;
    font-size: 30px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.grid-size-ukazateleABC {
    max-height: 300px;
    width: 100%;
}


.grid-style-ukazatele {
    height: 700px;
    width: 100%;
}

.grid-style-ridiciparametry {
    max-width: 1000px;
    height: 700px;
}

.grid-style-oznac-mene {
    color: mediumblue;
    font-weight: bold;
    font-size: 15px;
    background-color: var(--bs-danger-border-subtle);
}

.grid-style-oznac-vice {
    color: mediumseagreen;
    font-weight: bold;
    font-size: 15px;
    background-color: var(--bs-danger-border-subtle);
}

.grid-size-nastaveni {
    max-width: 1000px;
    height: 200px;
}

.grid-size-segmentace1 {
    max-width: 1000px;
    height: 140px;
}
.grid-size-segmentace2 {
    max-width: 1280px;
    height: 170px;
}

.grid-size-segmentace3 {
    max-width: 1280px;
    height: 140px;
}

.grid-size-segmentace4 {
    max-width: 1280px;
    height: 200px;
}

.grid-size-vypocetPZ1 {
    width: 1000px;
    height: 310px;
}
.grid-size-vypocetPZ2 {
    width: 1500px;
    height: 200px;
}
.grid-size-vypocetPZ3 {
    width: 1500px;
    height: 430px;
}
.grid-size-vypocetPZ4 {
    width: 1500px;
    height: 470px;
}

.grid-size-vypocetEOQ {
    max-width: 1000px;
    height: 420px;
}

.grid-size-vypocetW {
    max-width: 1000px;
    height: 120px;
}
.grid-size-vypocetzakladEOQ {
    max-width: 1000px;
    height: 220px;
}
    .grid-ABCXYZ-size {
    max-width: 800px;
    height: 220px;
    
}
.grid-plan-size {
    max-height: 300px;
    width: 100%;

}

/* === Spinbox === */
.my-DxSpin {
    width: 100px;
    color: white;
    background-color: mediumpurple;
}

/* === Buttons & odkazy === */
.button-link {
    text-decoration: none;
}

/* === Blazor error === */
#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;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

 #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* === Titulky === */
.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 600;
    color: #2563eb;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
}

/* === Obsah === */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

/* === Tabs (Záložky Chrome styl) === */


/* Jemnější linka pod taby (už ji máš, jen doladění) */


.tabs-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

.zalozka-text {
    text-align: left;
    font-size: 15px;
    font-weight: bold;
    background: #f3f4f6;
}

li.zalozka-text a {
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    color: #4b5563 !important;
}

.zalozka-text-vyvoj {
    text-align: left;
    font-size: 15px;
    font-weight: bold;
    background: #6c757d;
}

li.zalozka-text-vyvoj a {
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    color: #FFFFFF !important;
}

/* aktivní záložka */
.zalozka-text a,
.dx-menu-item-selected {
    color: #FFFFFF !important;
    background: #2563eb;
    font-weight: 600;
    border: 1px solid #2563eb;
    border-bottom: none;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
    overflow: hidden;
}

/* === Filtry === */
.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem;
}

.filter-box {
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s ease;
}

    .filter-box:hover {
        box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    }

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.filter-icon {
    font-size: 16px;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

/* === Dashboard layout === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem;
}

/* === Cards === */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .card.large {
        grid-column: span 2;
    }

    .card.small {
        align-items: flex-start;
    }

    .card h3 {
        margin: 0 0 0.75rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: #111827;
    }

/* === Big number === */
.big-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    text-align: center;
    margin-top: 0.5rem;
}


/* === Ikony ve filtrech (obrázky místo emoji) === */
.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.filter-label-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
    opacity: 0.9;
}

/* Plynulejší rozložení, hezké zalamování */
.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem;
    align-items: start;
}

/* Ikona pro tlačítko Výběr sloupců (DevExpress toolbar) */
.grid-icon-column-chooser {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    background-image: url("images/columns.svg");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* karta bez vnitřních mezer – vhodné pro grafy přes celou šířku */
.card--flush {
    padding: 0;
}

    .card--flush .card-body {
        padding: 0;
    }


/* obal pro full-width graf (zarovnání s filtry) */
.chart-fullwrap {
    margin: 1rem; /* stejné odsazení jako filtry */
    border-radius: 12px;
    overflow: hidden; /* ať graf nepřetéká přes zaoblení */
}

/* volitelné: zjemnění legendy DevExpress */
.dxbl-legend {
    margin-top: 4px;
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    transition: opacity 0.2s;
    z-index: 10;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* Celý řádek legendy jako flex, s rozumným gapem */
.legend-compact .dxbl-chart-legend-item {
    display: flex !important;
    align-items: center !important; /* zarovná ikonku, text i checkbox na střed */
    gap: 8px !important; /* místo margin-right všude */
    min-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ikonka musí mít normální šířku i výšku */
.legend-compact .dxbl-chart-legend-icon {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    flex: 0 0 10px !important; /* ať se nezmenšuje */
}

/* Text */
.legend-compact label.dxbl-text {
    font-size: 12px !important;
    line-height: 1 !important;
    margin-right: 6px !important;
    margin: 12 !important;
    padding: 0 !important;
}

/* Checkbox – bez nafukování řádku */
.legend-compact dxbl-check,
.legend-compact .dxbl-checkbox {
    min-height: unset !important;
    height: auto !important;
    margin: 0 !important;
    padding: 1 !important;
}
selected-cell {
    background-color: var(--bs-primary) !important;
    background-image: none !important;
    color: #fff !important;
}
selected-cell * {
        color: #fff !important;
    }


   