html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#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;
    }


.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, var(--DS-color-content-neutral-default-rest));
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.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%;
}

.icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-color: currentcolor;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--icon-mask-image);
    mask-image: var(--icon-mask-image);
}

 .thin-border {
     border: 1px solid #dee2e6;
     padding: 1rem;
     border-radius: 4px;
 }

/* Oprava nečitelnosti odkazů ve vybraném řádku DxGrid (v25.2.6)
   Vybraný řádek (ne-fokusovaný): třída dxbl-grid-selected-row na <tr>
   Fokusovaný+vybraný řádek:     obě třídy dxbl-grid-focused-row + dxbl-grid-selected-row */
.dxbl-grid .dxbl-grid-table .dxbl-grid-selected-row a,
.dxbl-grid .dxbl-grid-table .dxbl-grid-focused-row a {
    color: white !important;
}
.dxbl-grid .dxbl-grid-table .dxbl-grid-selected-row a:hover,
.dxbl-grid .dxbl-grid-table .dxbl-grid-focused-row a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}


.light-grey-background {
    background-color: #f8f9fa;
    padding: 1rem!important;
    border-radius: 4px;
}


.login-container {
    max-width: 400px;
    margin: 2rem auto;
}

.login-header {
    text-align: center;
}

.login-logo {
    max-height: 5rem;
    margin-bottom: 1rem;
}

.login-error {
    color: var(--dxbl-danger);
    display: block;
    text-align: center;
}

.form-row {
    margin-bottom: var(--dxbl-spacing);
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.form-label {
    color: var(--dxbl-label-color);
    font-size: var(--dxbl-font-size);
    margin-bottom: 0.5rem;
}

.form-control {
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

/* --- Dashboard (Index.razor) --- */

/* Layout */
.dashboard { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; height: 100%; }

.dashboard-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.dashboard-title h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.dashboard-updated { font-size: .85rem; color: #6b7280; }

/* Quick actions */
.quick-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* KPI grid */
.kpi-grid { display: grid; gap: 1rem; }
.kpi-grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1200px) { .kpi-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .kpi-grid-6 { grid-template-columns: repeat(2, 1fr); } }

/* KPI card */
.kpi-card { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: box-shadow .2s, border-color .2s; text-decoration: none; color: inherit; display: block; }
.kpi-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); border-color: #d1d5db; color: inherit; }
.kpi-card-link { cursor: pointer; }
.kpi-title { font-size: .82rem; color: #6b7280; margin-bottom: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: .2rem; }
.kpi-sub  { font-size: .8rem; color: #6b7280; }
.kpi-trend { font-size: .85rem; font-weight: 600; }

/* KPI varianty */
.kpi-danger { border-color: #fca5a5; background: #fff5f5; }
.kpi-danger .kpi-value { color: #dc2626; }
.kpi-warning { border-color: #fcd34d; background: #fffbeb; }
.kpi-warning .kpi-value { color: #d97706; }

/* Hlavní dvousloupcový layout */
.dashboard-main { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
@media (max-width: 1100px) { .dashboard-main { grid-template-columns: 1fr; } }

/* Sekce */
.dashboard-section { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.dashboard-section-title { font-size: 1rem; font-weight: 600; margin: 0 0 .75rem 0; color: #374151; }
.dashboard-empty { color: #6b7280; font-size: .9rem; padding: .5rem 0; }

/* Inventory table */
.inventory-status-grid { width: 100%; }

/* Barevné odznaky v tabulce */
.badge-danger  { background: #fee2e2; color: #dc2626; border-radius: .3rem; padding: .1rem .45rem; font-weight: 600; font-size: .85rem; }
.badge-warning { background: #fef3c7; color: #d97706; border-radius: .3rem; padding: .1rem .45rem; font-weight: 600; font-size: .85rem; }
.badge-ok      { background: #f3f4f6; color: #6b7280; border-radius: .3rem; padding: .1rem .45rem; font-size: .85rem; }

/* Stavové odznaky */
.status-badge { border-radius: .4rem; padding: .15rem .55rem; font-size: .8rem; font-weight: 600; }
.status-danger  { background: #fee2e2; color: #dc2626; }
.status-warning { background: #fef3c7; color: #b45309; }
.status-ok      { background: #dcfce7; color: #16a34a; }

/* Akční panel */
.action-panel { height: 100%; }
.action-all-ok { display: flex; align-items: center; gap: .5rem; color: #16a34a; font-weight: 600; padding: .5rem 0; }
.action-ok-icon { font-size: 1.2rem; }

.action-group { margin-bottom: .9rem; }
.action-group:last-child { margin-bottom: 0; }
.action-group-title { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.action-group-icon { font-size: 1rem; }
.action-count { margin-left: auto; background: #e5e7eb; border-radius: 1rem; padding: .05rem .5rem; font-size: .8rem; font-weight: 700; }

.action-group-danger  .action-group-title { color: #dc2626; }
.action-group-danger  .action-count { background: #fee2e2; color: #dc2626; }
.action-group-warning .action-group-title { color: #d97706; }
.action-group-warning .action-count { background: #fef3c7; color: #b45309; }
.action-group-neutral .action-group-title { color: #374151; }

.action-list { list-style: none; margin: 0; padding: 0 0 0 .25rem; }
.action-list li { padding: .15rem 0; }
.action-entry { font-size: .85rem; color: #2563eb; text-decoration: none; }
.action-entry:hover { text-decoration: underline; }
.action-more { font-size: .8rem; color: #6b7280; padding-top: .1rem; }

/* Grafy */
.dashboard-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .dashboard-charts { grid-template-columns: 1fr; } }
.chart-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* Info lišta (verze, DB) */
.kpi-note { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: #9ca3af; flex-wrap: wrap; }
.kpi-note-item { display: flex; align-items: center; gap: .25rem; }
.kpi-note-item .dx-icon { font-size: .9rem; opacity: .7; }
.kpi-note-sep { color: #d1d5db; }

/* SystemInfo stránka */
.sysinfo-page  { padding: 1.5rem; max-width: 860px; display: flex; flex-direction: column; gap: 1.5rem; }
.sysinfo-title { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin: 0; }
.sysinfo-title-icon { font-size: 1.4rem; }
.sysinfo-section { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.sysinfo-section-header { font-size: .95rem; font-weight: 600; color: #374151; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.sysinfo-grid  { display: flex; flex-direction: column; gap: .35rem; }
.sysinfo-row   { display: grid; grid-template-columns: 220px 1fr; gap: .5rem; padding: .3rem .5rem; border-radius: .4rem; }
.sysinfo-row:nth-child(odd) { background: #f9fafb; }
.sysinfo-label { font-size: .85rem; color: #6b7280; }
.sysinfo-value { font-size: .85rem; font-family: ui-monospace, monospace; color: #111827; word-break: break-all; }
.sysinfo-value--highlight { font-weight: 600; color: #2563eb; }

/* Monitoring stránka */
.monitoring-page .sysinfo-title { flex-wrap: wrap; }
.monitoring-refresh-badge { font-size: .7rem; font-weight: 400; color: #6b7280; background: #f3f4f6; border-radius: 999px; padding: .15rem .55rem; margin-left: auto; }

.monitoring-bar-label { font-size: .8rem; color: #6b7280; margin-top: .85rem; display: flex; justify-content: space-between; }
.monitoring-bar-pct   { font-weight: 600; color: #111827; }
.monitoring-bar-outer { height: 10px; background: #e5e7eb; border-radius: 999px; margin-top: .3rem; overflow: hidden; }
.monitoring-bar-inner { height: 100%; border-radius: 999px; transition: width .4s ease; }
.monitoring-bar--green  { background: #22c55e; }
.monitoring-bar--orange { background: #f97316; }
.monitoring-bar--red    { background: #ef4444; }

.monitoring-alert { margin-top: .75rem; font-size: .82rem; padding: .4rem .75rem; border-radius: .5rem; }
.monitoring-alert--orange { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.monitoring-alert--red    { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }

.monitoring-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; }
.monitoring-badge--green  { background: #dcfce7; color: #166534; }
.monitoring-badge--orange { background: #ffedd5; color: #9a3412; }
.monitoring-badge--red    { background: #fee2e2; color: #7f1d1d; }
.monitoring-desc { font-size: .8rem; color: #6b7280; margin-left: .5rem; }

.monitoring-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.monitoring-link  { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; padding: .3rem .75rem; border-radius: .5rem; background: #f3f4f6; color: #374151; text-decoration: none; border: 1px solid #e5e7eb; }
.monitoring-link:hover { background: #e5e7eb; }

/* === Inventory item status badges — detailní tabulka inventury ===
   Vlastní třídy nezávislé na Bootstrap (fungují i s Fluent tématem) */
.inv-badge {
    display: inline-block;
    padding: 0.25em 0.55em;
    font-size: 0.8em;
    font-weight: 700;
    border-radius: 0.375rem;
    white-space: nowrap;
    line-height: 1.2;
}
.inv-badge-waiting    { background-color: #6c757d; color: #fff; }
.inv-badge-found      { background-color: #198754; color: #fff; }
.inv-badge-missing    { background-color: #dc3545; color: #fff; }
.inv-badge-elsewhere  { background-color: #343a40; color: #fff; }
.inv-badge-disposal   { background-color: #b45309; color: #fff; }
.inv-badge-disposal-ok { background-color: #059669; color: #fff; }
.inv-badge-approved   { background-color: #1d4ed8; color: #fff; }

/* Chybový badge na položce inventury */
.inv-badge-error {
    display: inline-flex;
    align-items: center;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Validační panel nad gridem */
.inv-validation-panel {
    border-left: 4px solid #dc2626;
    padding-left: 0.5rem;
}

/* --- Inventory workflow panel (InventoryActionButtons.razor) --- */
.inventory-workflow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 8px 0 14px 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
}

.inventory-workflow-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 4px;
}

.inventory-workflow-sep {
    color: #9ca3af;
    font-size: 0.9rem;
    user-select: none;
}
/* --- End Inventory workflow panel --- */

/* --- End Dashboard --- */

/* Zachováno pro jiné stránky, které stále používají .landing */
.landing { padding: 2rem; }
.btn { display: inline-block; padding: .6rem 1rem; border-radius: .5rem; border: 1px solid #d1d5db; color: #111827; background: #fff; text-decoration: none; transition: background .2s, box-shadow .2s, transform .02s; }
.btn:hover { background: #f9fafb; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn.primary:hover { background: #1d4ed8; }