.ui.top.blue.inverted.menu {
    background-color: #007ab4;
}

.mobile-container {
    margin-top: 51px;
    padding: 1rem;
}

/* Operator: modaly nejsou vycentrovane, ale posunute nahoru, aby spodni cast
   panelu na tabletu nezakryla softwarova klavesnice. Fomantic presouva modaly do
   .ui.page.modals.dimmer primo v body, proto se operator pozna podle .mobile-container.
   Vysoke (scrolling) modaly maji vlastni okraj a zustavaji beze zmeny. */
body:has(.mobile-container) .ui.page.modals.dimmer {
    justify-content: flex-start;
}

body:has(.mobile-container) .ui.page.modals.dimmer > .ui.modal:not(.scrolling) {
    margin-top: 0;
}

/* Krizek pro zavreni je i na sirokem displeji uvnitr modalu, jako ho Fomantic kresli do 991px.
   Venku by po posunuti modalu nahoru padl pres horni listu. Basic modaly maji vlastni styl. */
body:has(.mobile-container) .ui.modal:not(.basic) > .close {
    top: 1.0535rem;
    right: 1rem;
    color: rgba(0, 0, 0, 0.87);
}

body:has(.mobile-container) .ui.modal:not(.basic) > .close ~ .header {
    padding-right: 3.5rem;
}

/* Operator: strankovani velke jako Fomantic .ui.huge.menu, aby slo ovladat prstem.
   SemDataTable a SemDataList nepredavaji SemPagination parametr Size, proto CSS.
   Odsazeni i min-width polozek jsou v em, takze se zvetsi s pismem. */
body:has(.mobile-container) .ui.pagination.menu {
    font-size: 1.21428571rem;
}

.mobile-container .ui.card > :last-child, .ui.cards > .card > :last-child {
    border-radius: 0 0 7px 7px !important;
}

.mobile-container .progress {
    position: absolute;
    right: 20px;
    top: 60px;
}

.mobile-container .progress .step {
    width: 10px;
    height: 10px;
    border: 1px solid #2185d0;
    display: inline-block;
    margin-left: 4px;
}

.mobile-container .progress .step.passed {
    background: #2185d0;
}

.mobile-container .narrowPage {
    max-width: 800px;
    margin: auto;
}

.mobile-container .tabletPage {
    max-width: 1000px;
    margin: auto;
}

.loading-item-name-nowrap {
    white-space: nowrap;
}

/* odliseni sestav a souvisejicich zasobniku v polozkach aviza */
.load-advice-kind-set {
    --load-advice-kind-color: #6f9bd1;
    --load-advice-kind-border: #c6daf1;
}

.load-advice-kind-related {
    --load-advice-kind-color: #67c1af;
    --load-advice-kind-border: #c8eae3;
}

i.icon.load-advice-kind-set,
i.icon.load-advice-kind-related {
    color: var(--load-advice-kind-color);
}

.load-advice-item-name {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
}

.load-advice-item-child {
    margin-left: 0.9em;
    padding-left: 0.6em;
    border-left: 3px solid var(--load-advice-kind-border, transparent);
}

.load-advice-item-child i.icon {
    font-size: 0.85em;
}

.ui.basic.label.load-advice-item-kind-label {
    margin: 0 0 0 0.5em;
    color: var(--load-advice-kind-color) !important;
    border-color: var(--load-advice-kind-border) !important;
}

.load-advice-card-children.load-advice-kind-set,
.load-advice-card-children.load-advice-kind-related {
    border-left-color: var(--load-advice-kind-border) !important;
}

/* cislo nakladkoveho listu s ikonou exportu */
.load-advice-no {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

i.icon.load-advice-export-icon {
    margin: 0 0.5em 0 0;
    color: rgba(0, 0, 0, 0.3);
    transition: color 0.1s ease;
}

i.icon.load-advice-export-icon:hover {
    color: #21ba45;
}

/* poznamka pri vytvoreni v prehledu nakladkovych listu - uzky sloupec, zalamovany nadpis */
.ui.table .load-advice-comment-col {
    width: 9em;
    white-space: normal;
}

/* odpocet do limitu nakladky v hlavicce operatorske nakladky */
.ui.form .field.loading-time-limit {
    margin: 0;
    text-align: right;
}

.loading-time-limit .loading-time-limit-value {
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.loading-time-limit .loading-time-limit-elapsed {
    font-size: 0.9em;
    color: rgba(0, 0, 0, 0.55);
    font-variant-numeric: tabular-nums;
}

.loading-time-limit .loading-time-limit-bar {
    width: 12em;
    max-width: 100%;
    height: 8px;
    margin: 0.4em 0 0 auto;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}

.loading-time-limit.over-limit .loading-time-limit-bar {
    background: rgba(219, 40, 40, 0.2);
}

.loading-time-limit .loading-time-limit-bar > div {
    height: 100%;
    background: var(--loading-time-limit-color);
}

.loading-time-limit.within-limit {
    --loading-time-limit-color: #21ba45;
}

.loading-time-limit.over-limit {
    --loading-time-limit-color: #db2828;
}

.loading-time-limit.paused {
    --loading-time-limit-color: rgba(0, 0, 0, 0.3);
}

.loading-time-limit .loading-time-limit-value {
    color: var(--loading-time-limit-color);
}

.ui.table tbody tr.clickable-row {
    cursor: pointer;
}

html, body {
    height: auto
}

.ui.form .warning.message, .ui.form .warning.message:empty,
.ui.form .error.message, .ui.form .error.message:empty
{
    display: block;
}


.sortinglocation {
    display: inline-block;
    width: 200px;
    height: 120px;
    vertical-align: top;
    margin: 5px !important;
}

.sortinglocation .location {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 2rem;
}

.sortinglocation .loadNumber {
    font-size: 1.2rem;
    line-height: 1.2rem;
}

.sortinglocation .matNumber {
    font-size: 1.2rem;
    line-height: 2rem;
}

.sortinglocation .qty {
    position: absolute;
    font-size: 2rem;
    line-height: 2rem;
    right: 10px;
    bottom: 5px;
}


.systemstatus .statuslabel {
    position: absolute;
    top: 20px;
    right: 15px
}

.systemstatus .list .icon {
    display: inline-block !important;
    padding-right: 0 !important;
    vertical-align: baseline !important;
    margin-right: -3px !important;
}

@media only screen and (max-width: 660px) {
    .sortinglocation {
        display: inline-block;
        width: calc(50% - 10px);
    }

    /* fluid */
    .ui.modal .actions > .button:not(.fluid) {
        width: 100%;
        margin-left: 0;
    }
}

.qc-full-segment {
    height: 700px
}

.qc-full-segment .items-list-outer {
    height: 585px;
    overflow-y: auto;
    margin: 0 -1rem -1rem -1rem;
}

.qc-full-segment .items-list-outer .item {
    font-size: 1.1rem;
    line-height: 3rem;
    margin: 0 1rem;
}

.qc-full-segment .extra-items-list-outer {
    height: 647px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 -1rem -1rem -1rem;
}

.qc-full-segment .extra-items-list-outer .item {
    font-size: 1.2rem;
    line-height: 2rem;
    margin: 0 1rem;
}

.qc-segment .closure-codes-list-outer {
    height: 467px;
    overflow-y: auto;
    margin: 0 -1rem -1rem -1rem;
}

.qc-segment .closure-codes-list-outer .item {
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 0 1rem;
}

.qc-segment .ui.message.no-data, .qc-full-segment .ui.message.no-data {
    margin: 0 1rem;
}

.ui.fluid.statistic {
    width: 100%;
}

.container-card-picker {
    margin-top: 1rem;
}

.container-card-picker .ui.cards .card
{
    background-color: #eaeaea;
    border: 3px solid gray;
    box-shadow: none;
    cursor: pointer;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.container-card-picker .ui.cards .card.active
{
    background-color: white;
    border: 3px solid #2185d0;
    opacity: 1;
}

.container-card-picker {
    container-type: inline-size;
}

.container-card-picker .ui.cards.container-card-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.container-card-picker .ui.cards.container-card-options > .card {
    width: auto;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
}

.container-card-picker .container-card-options > .card:focus-visible {
    outline: 2px solid #2185d0;
    outline-offset: 3px;
}

.container-card-picker .container-card-options > .card:disabled {
    cursor: default;
    opacity: 0.5;
}

@container (max-width: 640px) {
    .container-card-picker .ui.cards.container-card-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 400px) {
    .container-card-picker .ui.cards.container-card-options {
        grid-template-columns: 1fr;
    }
}

.container-card-picker .container-detail-heading,
.narrowPage .container-detail-heading {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.container-card-picker .ui.form .field > label.container-detail-heading,
.narrowPage .ui.form .field > label.container-detail-heading {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.container-card-picker .stackability-grid,
.narrowPage .stackability-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    width: 100%;
    align-items: start;
    justify-content: start;
    justify-items: start;
}

.container-card-picker .stackability-heading-cell,
.container-card-picker .stackability-axis,
.container-card-picker .stackability-cell,
.narrowPage .stackability-heading-cell,
.narrowPage .stackability-axis,
.narrowPage .stackability-cell {
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
}

.container-card-picker .stackability-axis,
.narrowPage .stackability-axis {
    font-weight: 600;
}

.ui.form .field.error .container-card-picker .container-composition-primary > *,
.ui.form .fields.error .field .container-card-picker .container-composition-primary > * {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 0.14285714em 0 0;
    background-image: none;
    padding: 0.5833em 0.833em;
    font-weight: bold;
    border-style: solid;
    border-width: 0;
    border-radius: 0.28571429rem;
    background-color: #2185D0 !important;
    border-color: #2185D0 !important;
    color: #FFFFFF !important;
}

.ui.form .field.error .container-card-picker .container-composition-secondary > *,
.ui.form .field.error .container-card-picker .container-composition-preview.container-composition-secondary > *,
.ui.form .fields.error .field .container-card-picker .container-composition-secondary > *,
.ui.form .fields.error .field .container-card-picker .container-composition-preview.container-composition-secondary > * {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 0.5em 0.5em 0;
    background-image: none;
    padding: 0.5833em 0.833em;
    font-weight: bold;
    border-style: solid;
    border-width: 0;
    border-radius: 0.28571429rem;
    background-color: #E8E8E8 !important;
    border-color: transparent !important;
    color: rgba(0, 0, 0, 0.6) !important;
}

.ui.form .field.error .container-card-picker .container-composition-primary > * .icon,
.ui.form .fields.error .field .container-card-picker .container-composition-primary > * .icon,
.ui.form .field.error .container-card-picker .container-composition-secondary > * .icon,
.ui.form .fields.error .field .container-card-picker .container-composition-secondary > * .icon {
    color: inherit !important;
}

.ui.form .field.error .container-card-picker .container-composition-secondary > *,
.ui.form .field.error .container-card-picker .container-composition-secondary > * .icon,
.ui.form .field.error .container-card-picker .container-composition-preview.container-composition-secondary > *,
.ui.form .field.error .container-card-picker .container-composition-preview.container-composition-secondary > * .icon,
.ui.form .fields.error .field .container-card-picker .container-composition-secondary > *,
.ui.form .fields.error .field .container-card-picker .container-composition-secondary > * .icon,
.ui.form .fields.error .field .container-card-picker .container-composition-preview.container-composition-secondary > *,
.ui.form .fields.error .field .container-card-picker .container-composition-preview.container-composition-secondary > * .icon {
    color: rgba(0, 0, 0, 0.6) !important;
}

.container-card-picker .stackability-divider,
.narrowPage .stackability-divider {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(34, 36, 38, 0.15);
    margin: 0.15rem 0;
    min-height: 1px;
}

.catalog-detail-header {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.catalog-detail-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
}

.catalog-detail-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.5rem;
    color: #2185d0;
    font-size: 1.75rem;
}

.catalog-detail-icon .icon {
    margin: 0;
}

.catalog-detail-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.catalog-detail-name {
    min-width: 0;
    margin: 0;
    color: #1b1c1d;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.catalog-detail-categories,
.catalog-detail-status-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.catalog-detail-categories {
    align-items: center;
}

.catalog-detail-categories.ui.labels > .label,
.catalog-detail-status-labels.ui.labels > .label {
    margin: 0;
}

.catalog-detail-categories .icon {
    margin-right: 0.35rem;
}

.catalog-detail-description.ui.message {
    margin: 0 0 1rem;
}

.catalog-detail-status {
    margin: 0 0 1rem;
}

.catalog-detail-status.compact {
    margin: 0.5rem 0 0;
}

.catalog-detail-status.inline {
    margin: 0;
}

.catalog-detail-status > label.container-detail-heading {
    display: block;
    margin-bottom: 0.5rem;
}

.catalog-detail-content .container-detail-heading {
    margin-bottom: 0.5rem;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-detail-content .container-composition-primary .label {
    background: #2185d0;
    color: #fff;
}

.catalog-detail-content .container-composition-secondary .label {
    border: 1px solid #dfe5eb;
    background: #f1f3f5;
    color: #3f4852;
}

.catalog-list-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    margin-bottom: 0.5rem;
}

.catalog-list-name {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.catalog-list-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.catalog-list-categories.ui.labels > .label {
    margin: 0;
}

.catalog-list-categories .icon {
    margin-right: 0.35rem;
}

.catalog-list-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.catalog-list-info {
    flex: 1 1 auto;
    min-width: 0;
}

.ui.image.catalog-list-thumbnail {
    flex: 0 1 auto;
    max-width: 50%;
    max-height: 100px;
}

.catalog-category-filter-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.date-range-input.ui.input {
    display: flex;
    width: 100%;
    min-width: 0;
}

.date-range-input > .ui.calendar.input {
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
}

.ui.action.input.date-range-input .ui.calendar.input input {
    padding-top: 0.67857143em;
    padding-bottom: 0.67857143em;
}

.date-range-input .date-range-input-field input {
    width: 100%;
    min-width: 0;
}

.catalog-detail-content .ui.grid {
    margin-bottom: 0;
}

.catalog-detail-sections {
    margin-bottom: 1rem;
}

.catalog-detail-section .field:last-child {
    margin-bottom: 0;
}

.catalog-detail-section-divider.ui.divider {
    margin: 1rem 0;
}

.catalog-detail-composition {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem 1.25rem;
}

.catalog-detail-composition .field {
    min-width: 0;
    margin: 0;
}

.catalog-detail-operational-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.catalog-detail-operational-info .field {
    margin: 0;
}

.catalog-stackability-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.catalog-stackability-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.catalog-stackability-pair-divider {
    width: 1px;
    min-height: 100%;
    background: rgba(34, 36, 38, 0.15);
}

.catalog-stackability-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.catalog-stackability-value > label.container-detail-heading {
    display: block;
    margin-bottom: 0.25rem;
}

.catalog-detail-photos,
.catalog-detail-stock {
    margin-top: 1rem !important;
}

.catalog-detail-photo {
    max-height: 100px;
}

@media only screen and (max-width: 700px) {
    .catalog-detail-name {
        font-size: 1.25rem;
    }

    .catalog-detail-operational-info,
    .catalog-stackability-values {
        grid-template-columns: 1fr;
    }

    .catalog-stackability-pair {
        grid-template-columns: 1fr;
    }

    .catalog-stackability-pair-divider {
        width: 100%;
        min-height: 1px;
        height: 1px;
    }
}

/*.qc-statistic .ui.statistics
{
    margin-bottom: 0rem;
}

.qc-statistic .ui.statistics .statistic
{
    margin: auto;
}*/

/* ===== License plate label (looks like a real vehicle registration plate) ===== */
.license-plate {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 0.15em 0.6em 0.15em 1.45em;
    background-color: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0.3em;
    box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2px #e4e4e4;
    color: #1b1c1d;
    font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

/* EU strip: blue band on the left with a ring of yellow stars */
.license-plate::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.85em;
    background-color: #003399;
}

.license-plate::after {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0.175em;
    width: 0.5em;
    height: 0.5em;
    border: 1px dotted #ffcc00;
    border-radius: 50%;
    box-sizing: border-box;
}

/* Operator loading overview: cell content stays on one line, headers may wrap */
#operator-loading-table tbody td {
    white-space: nowrap;
}

/* Operator loading detail footer: actions of both columns aligned to the bottom */
.ui.grid.loading-footer-actions > .column {
    display: flex !important;
    flex-direction: column;
}

.ui.grid.loading-footer-actions .loading-footer-action {
    margin-top: auto;
}

/* Hall selection above the move button, so long translations fit the column */
.ui.grid.loading-footer-actions .loading-footer-hall-move {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.ui.grid.loading-footer-actions .loading-footer-hall-move > .ui.dropdown,
.ui.grid.loading-footer-actions .loading-footer-hall-move > .ui.button {
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* Touch-friendly row selection on tablets */
#operator-loading-table tbody tr.clickable-row {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#operator-loading-table tbody tr.clickable-row:active > td {
    background-color: #dcebf7 !important;
}

#operator-loading-table .license-plate {
    font-size: 1.15em;
}

#operator-loading-table .operator-loading-gate {
    font-size: 1.15em;
    font-weight: 700;
}

#operator-loading-table .operator-loading-secondary {
    color: rgba(0, 0, 0, 0.55);
}

#operator-loading-table .operator-loading-chevron {
    color: rgba(0, 0, 0, 0.35);
    font-size: 1.3em;
    margin: 0;
}

/* ===== Stock per location modal ===== */
.stock-location-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .8rem;
    margin-bottom: .6rem;
    border-bottom: 1px solid #e0e1e2;
}

.stock-location-container {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.stock-location-container-icon {
    color: rgba(0, 0, 0, .55);
}

.stock-location-container-icon i.icon {
    margin: 0;
    font-size: 1.5em;
}

.stock-location-container-name {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.stock-location-container-hall {
    margin-top: .15rem;
    color: rgba(0, 0, 0, .5);
    font-size: .9em;
}

.stock-location-state {
    display: inline-block;
    margin-left: .4rem;
    padding: .15em .5em;
    border-radius: .25rem;
    background: #f3f4f5;
    color: rgba(0, 0, 0, .65);
    font-size: .6em;
    font-weight: 700;
    vertical-align: middle;
}

.stock-location-state.available {
    background: #e9f7ee;
    color: #1e7b3a;
}

.stock-location-state.occupied {
    background: #fff4e5;
    color: #b35900;
}

.stock-location-total {
    white-space: nowrap;
}

.stock-location-total-label {
    margin-right: .4rem;
    color: rgba(0, 0, 0, .5);
    font-size: .9em;
}

.stock-location-total-value {
    font-size: 1.6em;
    font-weight: 700;
}

.stock-location-list {
    max-height: 22rem;
    overflow-y: auto;
}

.stock-location-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .25rem 0;
    padding: .45rem .7rem;
    border-radius: .3rem;
    background: #f7f8f9;
    overflow: hidden;
}

.stock-location-row-bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: #dcebf8;
}

.stock-location-row-name,
.stock-location-row-qty,
.stock-location-row-action {
    position: relative;
}

.stock-location-row-name {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.stock-location-row-hall {
    margin-left: .4rem;
    color: rgba(0, 0, 0, .5);
    font-size: .85em;
    font-weight: 400;
}

.stock-location-row-qty {
    font-weight: 700;
    white-space: nowrap;
}

.stock-location-row-action {
    cursor: pointer;
}

.stock-location-row-action i.icon {
    margin: 0;
}

.stock-location-empty {
    padding: 1rem 0;
    color: rgba(0, 0, 0, .5);
    text-align: center;
}

/* ===== OTP code input (6-box style used on login + MFA enrollment) ===== */
.otp-input {
    display: flex;
    gap: 0.5em;
}
.otp-input .otp-box {
    width: 2.75em;
    height: 3em;
    text-align: center;
    font-size: 1.5em;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.otp-input .otp-box:focus {
    border-color: #4183c4;
    box-shadow: 0 0 0 2px rgba(65, 131, 196, 0.2);
}
.otp-input .otp-box:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ===== Operator action pages ===== */
.operator-uppercase-buttons .ui.button {
    text-transform: uppercase;
}

.operator-load-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    /* Labels share one row and values another, so wrapped labels do not shift values. */
    grid-template-rows: auto 1fr;
    overflow: hidden;
    margin: 1rem 0 0.75rem;
    border: 1px solid rgba(34, 36, 38, 0.14);
    border-radius: 0.45rem;
    background: #fff;
}

.operator-load-summary-item {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    min-width: 0;
    padding: 0.9rem 1rem;
    text-align: center;
    background: #f8f9fa;
}

.operator-load-summary-item + .operator-load-summary-item {
    border-left: 1px solid rgba(34, 36, 38, 0.12);
}

.operator-load-summary-item.loaded {
    background: #f4f9fd;
}

.operator-load-summary-item.remaining {
    background: #f3fbf4;
}

.operator-load-summary-label {
    align-self: start;
    margin-bottom: 0.35rem;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.operator-load-summary-value {
    align-self: center;
    overflow-wrap: anywhere;
    color: #1b1c1d;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.operator-load-summary-item.loaded .operator-load-summary-value {
    color: #2185d0;
}

.operator-load-summary-item.remaining .operator-load-summary-value {
    color: #21ba45;
}

.operator-action-row {
    align-items: flex-end;
    margin-top: 0;
}

.operator-action-row.operator-action-row-spaced {
    margin-top: 0.75rem;
}

.operator-action-row > .field > .ui.selection.dropdown {
    display: flex;
    align-items: center;
    height: 3.25rem;
    min-height: 3.25rem;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
}

.operator-action-row > .field > .ui.input input {
    height: 3.25rem;
    min-height: 3.25rem;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.operator-action-row > .field > .ui.selection.dropdown > .text,
.operator-action-row > .field > .ui.selection.dropdown > input.search {
    font-size: 1.5rem;
    line-height: 1.25;
}

.operator-action-row > .field > .ui.selection.dropdown > input.search {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.operator-action-row > .field > .ui.selection.dropdown > .menu {
    font-size: 1rem;
}

.operator-action-location-dropdown > .text,
.operator-action-location-dropdown > input.search,
.stock-compose-location-dropdown > .text,
.stock-compose-location-dropdown > input.search {
    padding-right: 4.75rem !important;
}

.operator-action-location-dropdown > .clear.dropdown.icon,
.operator-action-location-dropdown > .remove.icon,
.operator-action-location-dropdown > .delete.icon,
.stock-compose-location-dropdown > .clear.dropdown.icon,
.stock-compose-location-dropdown > .remove.icon,
.stock-compose-location-dropdown > .delete.icon {
    position: absolute !important;
    top: 50% !important;
    right: 2.6rem !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 4;
}

.operator-action-location-dropdown > .clear.dropdown.icon::before,
.operator-action-location-dropdown > .remove.icon::before,
.operator-action-location-dropdown > .delete.icon::before,
.stock-compose-location-dropdown > .clear.dropdown.icon::before,
.stock-compose-location-dropdown > .remove.icon::before,
.stock-compose-location-dropdown > .delete.icon::before {
    display: block;
    line-height: 1;
}

.operator-action-location-dropdown > .dropdown.icon:not(.clear),
.stock-compose-location-dropdown > .dropdown.icon:not(.clear) {
    position: absolute !important;
    top: 50% !important;
    right: 0.65rem !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.75;
}

.operator-action-location-dropdown > .dropdown.icon:not(.clear)::before,
.stock-compose-location-dropdown > .dropdown.icon:not(.clear)::before {
    display: block;
    line-height: 1;
}

.operator-action-row > .field .operator-action-quantity-stepper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 0.5rem;
    align-items: stretch;
}

.operator-action-row > .field .operator-action-quantity-stepper > .operator-action-quantity-input {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
}

.operator-action-quantity-input input {
    width: 100% !important;
    box-sizing: border-box;
    height: 3.25rem;
    min-height: 3.25rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(34, 36, 38, 0.15);
    border-radius: 0.28571429rem;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    box-shadow: none;
    font-size: 1.5rem !important;
    line-height: 1.25;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.operator-action-quantity-input input:hover {
    border-color: rgba(34, 36, 38, 0.35);
}

.operator-action-quantity-input input:focus {
    border-color: #85b7d9;
    box-shadow: none;
}

.operator-action-quantity-input input::-webkit-outer-spin-button,
.operator-action-quantity-input input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.operator-action-row > .field .operator-action-quantity-stepper > .operator-action-quantity-button.ui.button {
    flex: 0 0 3.25rem;
    width: 3.25rem !important;
    max-width: 3.25rem !important;
    height: 3.25rem;
    min-height: 3.25rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
}

.operator-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.operator-action-buttons > .ui.button,
.operator-modal-actions > .ui.button {
    min-height: 4.0625rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem !important;
}

.operator-action-buttons > .ui.button > .icon,
.operator-modal-actions > .ui.button > .icon {
    font-size: 1em;
}

.operator-action-buttons .operator-action-confirm {
    flex: 1 1 auto;
    margin: 0;
}

.operator-action-buttons .operator-action-history {
    flex: 0 0 auto;
    margin: 0;
}

.operator-modal-actions {
    display: flex;
    width: 100%;
    gap: 0.75rem;
}

.operator-modal-actions .operator-modal-confirm {
    flex: 1 1 auto;
    margin: 0;
}

.operator-modal-actions .operator-modal-secondary {
    flex: 0 0 auto;
    margin: 0;
}

@media only screen and (max-width: 600px) {
    .operator-load-summary {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .operator-load-summary-item + .operator-load-summary-item {
        border-top: 1px solid rgba(34, 36, 38, 0.12);
        border-left: 0;
    }

    .operator-action-row {
        display: block;
    }

    .operator-action-row > .field {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .operator-action-buttons {
        display: flex;
        flex-direction: column;
    }

    .operator-action-buttons > .button {
        width: 100%;
    }

    .operator-modal-actions {
        flex-direction: column;
    }

    .operator-modal-actions > .button {
        width: 100%;
    }
}

/* Stock row filter uses the table styling and remains keyboard accessible. */
.compose-stock-filter-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.compose-stock-filter-trigger:disabled {
    cursor: default;
}

.compose-stock-filter-trigger:focus-visible {
    outline: 2px solid #2185d0;
    outline-offset: 3px;
}

/* The compose modal is vertically centred, so its sections reserve space to avoid
   moving the whole modal while locations and container sets load. */
.stock-compose-stock-area {
    display: flex;
    flex-direction: column;
    min-height: 10.6rem; /* table header + 3 rows */
    margin-bottom: 8px;
}

/* SemDataTable renders its pager next to the table, so this flex column stretched it to the full
   width and the last page button looked stretched. Keep it left-aligned like the other tables. */
.stock-compose-stock-area > .ui.pagination.menu {
    align-self: flex-start;
}

.stock-compose-stock-placeholder {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 1em;
    border: 1px dashed rgba(34, 36, 38, 0.15);
    border-radius: 0.28571429rem;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.stock-compose-summary > .ui.message {
    min-height: calc(2 * 1.4285em + 2em);
}

/* pridavani polozek aviza - povinna hvezdicka nesmi pri uzkem okne odskocit na dalsi radek */
.load-advice-items-add .ui.form .field > label {
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   dashboard (EPC-188)
   Barvy berou promenne tmaveho motivu (--grey*, --white, --muted, --border-color);
   ve svetlem motivu nejsou definovane a plati fallback.
   --------------------------------------------------------------------------- */
.dashboard {
    --db-surface: var(--grey2, #fff);
    --db-track: var(--grey3, #f1f0ec);
    --db-border: var(--border-color, #e2e0d9);
    --db-text: var(--white, #1f1e1c);
    --db-muted: var(--muted, #6b6a66);
    --db-in: #5DCAA5;
    --db-out: #7F77DD;
    --db-out-light: #AFA9EC;
    --db-neutral: #A8A69E;
    --db-danger: #E24B4A;
    --db-danger-text: #C43B3A;
    --db-danger-bg: rgba(226, 75, 74, 0.13);
    --db-warning: #EF9F27;
    --db-warning-text: #B8730D;
    --db-warning-bg: rgba(239, 159, 39, 0.16);
    --db-ok-text: #3B8A1A;
    --db-ok-bg: rgba(93, 170, 60, 0.14);
    --db-accent-text: #2F7BC4;
    --db-waiting: #C9C7BF;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 1180px;
    color: var(--db-text);
}

.dashboard p { margin: 0; }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dashboard-head-tools { display: flex; align-items: center; gap: 16px; }
.dashboard-note { font-size: 12px; color: var(--db-muted); }
.dashboard-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--db-in); margin-right: 5px; vertical-align: 1px; }
.dashboard-grid { display: grid; gap: 12px; }
.dashboard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dashboard-kpi, .dashboard-card { background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 10px; padding: 12px 14px; }
.dashboard-card { padding: 14px 16px; }
.dashboard-label { font-size: 13px; color: var(--db-muted); }
.dashboard-value { font-size: 26px; font-weight: 600; line-height: 1.25; }
.dashboard-value-sub { font-size: 15px; font-weight: 400; color: var(--db-muted); }
.dashboard-small { font-size: 12px; }
.dashboard-muted { color: var(--db-muted); }
.dashboard-text-danger { color: var(--db-danger-text) !important; }
.dashboard-text-warning { color: var(--db-warning-text) !important; }
.dashboard-text-accent { color: var(--db-accent-text); font-weight: 600; }
.dashboard-text-in { color: var(--db-ok-text); }
.dashboard-text-out { color: var(--db-out); }
.dashboard-link { cursor: pointer; }
.dashboard-link:hover { text-decoration: underline; }
.dashboard-card-title { font-size: 14px; font-weight: 600; margin: 0 0 10px !important; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dashboard-card-title small { font-weight: 400; font-size: 12px; color: var(--db-muted); }
.dashboard-sort { font-size: 12px; font-weight: 400; color: var(--db-muted); }
.dashboard-sort b { color: var(--db-text); border-bottom: 2px solid var(--db-text); }
.dashboard-bar { position: relative; height: 9px; border-radius: 5px; background: var(--db-track); }
.dashboard-bar > div:first-child { height: 100%; border-radius: 5px; }
.dashboard-bar-thin { height: 7px; flex: 1; }
.dashboard-tick { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--db-text); opacity: .55; }
.dashboard-bar-thin .dashboard-tick { top: -4px; }
.dashboard-inline-bar { display: flex; align-items: center; gap: 8px; }
.dashboard-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; border-radius: 10px; padding: 10px 16px; font-size: 13px; }
.dashboard-strip-danger { background: var(--db-danger-bg); color: var(--db-danger-text); }
.dashboard-strip-warning { background: var(--db-warning-bg); color: var(--db-warning-text); }
.dashboard-strip-ok { background: var(--db-ok-bg); color: var(--db-ok-text); padding: 7px 16px; }
.dashboard-chip { border-radius: 16px; padding: 4px 12px; background: var(--db-surface); border: 1px solid var(--db-border); }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dashboard-table th { font-weight: 400; font-size: 12px; color: var(--db-muted); text-align: left; padding: 0 6px 6px 0; }
.dashboard-table td { padding: 7px 6px 7px 0; border-top: 1px solid var(--db-border); vertical-align: middle; }
.dashboard-pill { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 12px; margin-right: 4px; }
.dashboard-pill-ok { background: var(--db-ok-bg); color: var(--db-ok-text); }
.dashboard-pill-danger { background: var(--db-danger-bg); color: var(--db-danger-text); }
.dashboard-pill-warning { background: var(--db-warning-bg); color: var(--db-warning-text); }
.dashboard-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--db-border); font-size: 13px; }
.dashboard-carriers { font-size: 13px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.dashboard-hall-row { display: grid; grid-template-columns: 130px 1fr 1.2fr 1.1fr; gap: 18px; align-items: center; font-size: 13px; padding: 8px 6px; border-top: 1px solid var(--db-border); }
.dashboard-hall-head { font-size: 12px; color: var(--db-muted); border-top: none; padding-top: 0; }
.dashboard-row-warning { background: var(--db-warning-bg); border-radius: 6px; }
.dashboard-row-danger { background: var(--db-danger-bg); border-radius: 6px; }
.dashboard-movement { display: grid; grid-template-columns: 170px 1fr 1fr 92px; gap: 0 10px; align-items: center; font-size: 13px; }
.dashboard-movement > div { padding: 6px 0; border-top: 1px solid var(--db-border); }
.dashboard-movement > .dashboard-movement-head { font-size: 12px; color: var(--db-muted); border-top: none; padding-top: 0; }
.dashboard-movement-left, .dashboard-movement-right { display: flex; align-items: center; gap: 6px; }
.dashboard-movement-left { justify-content: flex-end; }
.dashboard-movement-left > i, .dashboard-movement-right > i { display: block; height: 12px; border-radius: 3px; }
.dashboard-movement-left > span, .dashboard-movement-right > span { font-size: 12px; color: var(--db-muted); min-width: 38px; }
.dashboard-movement-left > span { text-align: right; }
.dashboard-chart .dashboard-axis { font-size: 10px; fill: var(--db-muted); }
/* dlouhe seznamy (vrata, dopravci) se posouvaji uvnitr karty, hlavicka tabulky zustava */
.dashboard-scroll { max-height: 300px; overflow-y: auto; }
.dashboard-scroll-halls { max-height: 290px; }
.dashboard-scroll .dashboard-table th { position: sticky; top: 0; background: var(--db-surface); z-index: 1; }
.dashboard-table td:first-child, .dashboard-pill { white-space: nowrap; }
/* nakladky po limitu ve vice halach: souhrnny stitek s rozpadem po halach */
.dashboard-chip { white-space: nowrap; }
.dashboard-dropdown { position: relative; }
.dashboard-dropdown-backdrop { position: fixed; inset: 0; z-index: 10; }
.dashboard-dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 11; min-width: 100%; padding: 4px 0; background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.dashboard-dropdown-item { display: flex; justify-content: space-between; gap: 18px; padding: 6px 12px; color: inherit !important; cursor: pointer; white-space: nowrap; }
.dashboard-dropdown-item:hover { background: var(--db-track); }
/* hlavni karty nakladek: sirsi, vyrazne cislo, pruh rozdeleny podle stavu */
.dashboard-grid-kpi { grid-template-columns: 1.35fr 1.35fr 1fr 1fr; }
.dashboard-kpi-hero { border-left: 4px solid var(--db-out); padding: 14px 16px; }
.dashboard-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.dashboard-hero-pct { font-size: 22px; font-weight: 600; color: var(--db-ok-text); }
.dashboard-hero-value { font-size: 38px; font-weight: 700; line-height: 1.1; margin: 2px 0 0 !important; }
.dashboard-hero-value small { font-size: 18px; font-weight: 400; color: var(--db-muted); }
.dashboard-segments { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--db-track); margin: 10px 0 8px; }
.dashboard-segments > i { display: block; height: 100%; }
.dashboard-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--db-muted); }
.dashboard-legend b { color: var(--db-text); }
.dashboard-legend .dashboard-text-danger b { color: inherit; }
.dashboard-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.dashboard-text-ok { color: var(--db-ok-text) !important; }
.dashboard-hero-pct-neutral { color: var(--db-text); }
.dashboard-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.dashboard-sortable:hover { color: var(--db-text) !important; }
/* zamcena karta (chybi opravneni): stala kostra, nepulzuje */
.dashboard-locked { display: flex; flex-direction: column; }
.dashboard-locked-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dashboard-locked-block { display: inline-block; height: 9px; border-radius: 4px; background: var(--db-track); flex: 0 0 auto; }
.dashboard-locked-wide { flex: 1 1 auto; }
.dashboard-locked-message { margin: auto 0 0 !important; padding-top: 6px; }
.dashboard-locked-message .icon { margin-right: 4px; }
.dashboard-strip-locked { background: var(--db-track); color: var(--db-muted); }

.stock-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    margin-bottom: 1em;
}

.stock-toolbar-actions {
    flex: 0 0 auto;
}

.stock-toolbar-filters {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5em;
}

.stock-toolbar-filters > .ui.selection.dropdown {
    min-width: 11em;
    margin: 0;
}

/* postranni menu: tema sablony kresli zlute pozadi jen na vysku okna, delsi menu
   z nej preteklo a bile polozky na svetlem pozadi stranky nebyly videt. Pozadi nese
   i vnitrni menu, ktere roste podle polozek (EPC-221).
   Polozka .push-bottom je u spodniho okraje, kdyz je misto, jinak za posledni polozkou.
   Sablonova trida .bottom ji misto toho prispendlila pres ostatni polozky. */
.full-page .left-menu .ui.vertical.secondary.menu {
    display: flex;
    flex-direction: column;
    background-color: var(--main-color);
}

.full-page .left-menu .ui.vertical.secondary.menu > .ui.inverted {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

/* Fomantic UI dava polozkam secondary pointing menu align-self: flex-end, ve sloupci by
   se zuzily a zarovnaly doprava */
.full-page .left-menu .ui.vertical.secondary.menu > .ui.inverted > .item {
    align-self: stretch;
}

/* !important prebiji okraj polozky z Fomantic UI */
.full-page .left-menu .ui.vertical.secondary.menu .item.push-bottom {
    margin-top: auto !important;
}

/* EPC-275: menu delsi nez okno se posouva samo. Drive pretekalo a posouvalo cele body; obsah vpravo
   (.right-content, sdilene CSS: position absolute, top 48px, bottom 0 = vyska okna, vlastni posuvnik) se
   posunul s nim a dole po nem zustal prazdny pruh, k tomu dva svisle posuvniky vedle sebe. */
.full-page .left-menu {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* EPC-263: typ operace prepravni zakazky (nakladka / vykladka) - barvy jen zde.
   EPC-285: nakladka zelena (nakladek je vyrazne vic, at v seznamu prevlada zelena), vykladka fialova
   (opak zelene; v DHL schematu nema zadny stavovy vyznam). Drive nakladka modra, vykladka zelena. */
:root {
    --op-loading-bg: #DDF2E3;
    --op-loading-fg: #2E7048;
    --op-loading-border: #A8D8B6;
    --op-unloading-bg: #ECE6F7;
    --op-unloading-fg: #4B2A86;
    --op-unloading-border: #C9B8EA;
}

/* tmavy vzhled (tema default.dark.*): tlumene tmave pozadi a svetla ikona/text, aby byl typ citelny */
html:has(link[href*="themes/default.dark."]) {
    /* sytejsi nez puvodni tlumene tony: na tmavem radku tabulky musi byt kolecko typu videt */
    --op-loading-bg: #2A5A3E;
    --op-loading-fg: #B6F2CC;
    --op-loading-border: #4C8A64;
    --op-unloading-bg: #45386F;
    --op-unloading-fg: #DDD0FF;
    --op-unloading-border: #6F5FB0;
}

.op-type.loading {
    --op-bg: var(--op-loading-bg);
    --op-fg: var(--op-loading-fg);
    --op-border: var(--op-loading-border);
}

.op-type.unloading {
    --op-bg: var(--op-unloading-bg);
    --op-fg: var(--op-unloading-fg);
    --op-border: var(--op-unloading-border);
}

.op-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.6em;
    border: 1px solid var(--op-border);
    border-radius: 0.3rem;
    background: var(--op-bg);
    color: var(--op-fg);
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

.op-type.icon-only {
    padding: 0.2em 0.35em;
}

.op-type i.icons {
    margin: 0;
    color: var(--op-fg);
}

/* rohova sipka musi byt citelna i bez barvy (AC EPC-263): Fomantic ma .corner jen 0.45em */
.op-type i.icons {
    margin-right: 0.25em;
}

.op-type i.icons .corner.icon {
    font-size: 0.8em;
    right: -0.4em;
    bottom: -0.25em;
    /* tucnejsi sipka: Fomantic arrow je v male velikosti prilis tenka */
    -webkit-text-stroke: 0.09em currentColor;
    text-shadow: -1px -1px 0 var(--op-bg), 1px -1px 0 var(--op-bg), -1px 1px 0 var(--op-bg), 1px 1px 0 var(--op-bg);
}

/* tlacitka zalozeni nakladky a vykladky (seznam prepravnich zakazek); ne trida "loading" - ta je ve Fomanticu stav nacitani */
.ui.button.op-create-loading {
    background: var(--op-loading-bg);
    color: var(--op-loading-fg);
    box-shadow: inset 0 0 0 1px var(--op-loading-border);
}

.ui.button.op-create-unloading {
    background: var(--op-unloading-bg);
    color: var(--op-unloading-fg);
    box-shadow: inset 0 0 0 1px var(--op-unloading-border);
}

.ui.labeled.icon.button.op-create-loading > .icon,
.ui.labeled.icon.button.op-create-unloading > .icon {
    background: rgba(0, 0, 0, 0.06);
}

/* na uzkem tabletu jen ikona typu operace, text zustava v title */
@media (max-width: 767px) {
    .mobile-container .op-type .op-type-text {
        display: none;
    }

    .mobile-container .op-type {
        padding: 0.2em 0.35em;
    }
}

/* EPC-282: zahlavi raditelneho sloupce (SortHeader) */
.ui.table thead th .epc-sort {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.ui.table thead th .epc-sort-arrows {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    margin-left: .3em;
    line-height: 0;
}

/* obe sipky nad sebou: zasedle, zvyraznena jen ta aktivniho smeru */
.ui.table thead th .epc-sort-arrows > .icon {
    margin: 0;
    width: 1em;
    height: .55em;
    line-height: .55em;
    font-size: .9em;
    opacity: .25;
}

.ui.table thead th .epc-sort:hover .epc-sort-arrows > .icon,
.ui.table thead th .epc-sort:focus-visible .epc-sort-arrows > .icon {
    opacity: .5;
}

.ui.table thead th .epc-sort .epc-sort-arrows > .icon.on {
    opacity: 1;
}

/* EPC-283: kurzor klavesnice v seznamu (listKeyboard.js); poloprusvitny, aby sedel na svetly i tmavy vzhled
   a nesmazal barvu radku (negative u preruseneho aviza) */
.ui.table tbody tr.epc-kb-cursor > td {
    background-image: linear-gradient(rgba(33, 133, 208, .18), rgba(33, 133, 208, .18));
}

.ui.table tbody tr.epc-kb-cursor > td:first-child {
    box-shadow: inset 4px 0 0 #2185d0;
}

/* EPC-283: napoveda klavesovych zkratek (ListKeyboardHelp) */
.epc-kb-help-bar {
    text-align: right;
    margin-top: .5em;
}

.epc-kb-help-toggle,
.epc-kb-help-close {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    opacity: .6;
    cursor: pointer;
}

.epc-kb-help-toggle:hover,
.epc-kb-help-toggle:focus-visible,
.epc-kb-help-close:hover,
.epc-kb-help-close:focus-visible {
    opacity: 1;
}

.ui.segment.epc-kb-help {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    max-width: calc(100vw - 2rem);
    margin: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.ui.segment.epc-kb-help[hidden] {
    display: none;
}

.epc-kb-help .epc-kb-help-close {
    position: absolute;
    top: .6em;
    right: .6em;
}

.epc-kb-help .ui.table td:first-child {
    white-space: nowrap;
}

.epc-kb-help-bar kbd,
.epc-kb-help kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: .05em .4em;
    border: 1px solid rgba(127, 127, 127, .5);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: inherit;
    font-size: .85em;
    line-height: 1.4;
    text-align: center;
}

/* EPC-284: detail ze seznamu v bocnim panelu (DetailPanel); pod dialogy (Fomantic dimmer 1000), nad seznamem a menu */
.ui.segment.epc-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(640px, 56vw, 1000px);
    max-width: calc(100vw - 260px);
    margin: 0;
    padding: 0;
    border-radius: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .25);
    z-index: 950;
    display: flex;
    flex-direction: column;
    animation: epc-detail-panel-in .2s ease-out;
}

@keyframes epc-detail-panel-in {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ui.segment.epc-detail-panel {
        animation: none;
    }
}

.epc-detail-panel-bar {
    display: flex;
    align-items: center;
    gap: .5em;
    padding: .75em 1em;
    border-bottom: 1px solid rgba(127, 127, 127, .25);
}

.epc-detail-panel-type {
    flex: 1;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .7;
}

.epc-detail-panel-body {
    flex: 1;
    overflow: auto;
    padding: 1em;
}

/* EPC-285: stitky pouzitych filtru a rychla nabidka "+ Filtr" (FilterChips), podle FTR-37 */
.epc-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: .75em 0;
}

.epc-chip-wrap {
    position: relative;
    display: inline-flex;
}

.epc-chip,
.epc-filter-add {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1;
}

.epc-chip {
    padding: 0 4px 0 12px;
    gap: 6px;
    background: rgba(33, 133, 208, .15);
}

/* stitek, ktery nejde odebrat (napr. hala): bez ×, symetricky okraj */
.epc-chip.epc-chip-fixed {
    padding-right: 12px;
}

.epc-chip-text {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

button.epc-chip-text {
    cursor: pointer;
}

button.epc-chip-text:hover,
button.epc-chip-text:focus-visible {
    text-decoration: underline;
}

.epc-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(127, 127, 127, .25);
    color: inherit;
    cursor: pointer;
    opacity: .7;
}

.epc-chip-remove:hover,
.epc-chip-remove:focus-visible {
    opacity: 1;
}

.epc-filter-add {
    padding: 0 12px;
    border: 1px dashed rgba(127, 127, 127, .6);
    background: transparent;
    color: inherit;
    opacity: .75;
    cursor: pointer;
    font-family: inherit;
}

.epc-filter-add.open,
.epc-filter-add:hover,
.epc-filter-add:focus-visible {
    border-style: solid;
    opacity: 1;
}

.epc-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 899;
}

/* "ui segment" dava barvy svetleho i tmaveho vzhledu */
.ui.segment.epc-filter-pop {
    position: absolute;
    margin: 0;
    top: calc(100% + 6px);
    left: 0;
    z-index: 900;
    min-width: 220px;
    max-width: 320px;
    max-height: 320px;
    overflow: auto;
    padding: 4px 0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.epc-filter-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .55em .8em;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.epc-filter-item:hover,
.epc-filter-item:focus-visible {
    background: rgba(33, 133, 208, .12);
}

.epc-filter-check {
    width: 1.3em;
    flex: none;
}

.epc-filter-label {
    flex: 1;
}

.epc-filter-more {
    opacity: .5;
    margin-left: .5em;
}

.epc-filter-divider {
    height: 1px;
    margin: 4px 0;
    background: rgba(127, 127, 127, .25);
}

.epc-filter-head {
    display: flex;
    align-items: center;
    gap: .4em;
    padding: .45em .8em;
    font-weight: 700;
    border-bottom: 1px solid rgba(127, 127, 127, .25);
}

.epc-filter-back {
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.3em;
    line-height: 1;
    cursor: pointer;
    padding: 0 .2em;
}

.ui.form.epc-filter-editor {
    padding: .7em .8em;
}

.ui.form.epc-filter-editor .field {
    margin-bottom: .6em;
}

/* plny formular filtru stranky */
.ui.form.epc-filters {
    margin: 0 0 1em;
    padding: 1em;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 6px;
}

.epc-filters-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.epc-filters-fields > .field {
    margin: 0 !important;
    min-width: 160px;
}

.epc-filters-fields > .field.epc-field-wide {
    flex: 1 1 260px;
}

.epc-filters-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.epc-filters-actions {
    margin-top: 1em;
}

/* EPC-285: radka nastroju seznamu aviz - obnoveni a zakladani nakladky / vykladky ("nebo") */
.load-advice-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 1em 0 .25em;
}

.load-advice-toolbar > .ui.button,
.load-advice-toolbar > .ui.buttons {
    margin: 0;
}

.load-advice-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-advice-create > .ui.button {
    margin: 0;
}

.load-advice-or {
    font-size: .9em;
    opacity: .6;
    white-space: nowrap;
}

/* svisly oddelovac mezi zakladanim a obnovenim */
.load-advice-toolbar-sep {
    align-self: stretch;
    width: 1px;
    margin: 4px 4px;
    background: rgba(127, 127, 127, .35);
}

/* EPC-285 (podle FTR-36): zahlavi stranky s akcemi vpravo, zalozky pohledu a karta seznamu */
.epc-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em;
}

.epc-page-head > .ui.header {
    flex: 1 1 420px;
    margin-bottom: 0;
}

.epc-page-head > .epc-page-actions {
    margin: .4em 0 0;
}

/* popis stranky za ikonou (i) u nadpisu (ListPageHead): plovouci ramecek po najeti mysi nebo fokusu (klik, tuknuti,
   Tab), zahlavi nezvetsi; text normalni velikosti a rezu, ne jako nadpis */
/* ramecek je ukotveny k levemu okraji nadpisu (ne k ikone), aby se vesel i do uzkeho okna */
.epc-page-head > .ui.header {
    position: relative;
}

/* spodni hrana ikony na spodni hrane pismen nadpisu: ikona na uctari, glyf ikony presahuje pod nej o ~0,08 em
   (zmereno na Barlow Semi Condensed 700 a ikonovem fontu Fomantic) */
.epc-page-info {
    display: inline-block;
    vertical-align: .08em;
    margin-left: .15em;
}

.epc-page-info-button {
    display: inline-block;
    vertical-align: baseline;
    padding: 0 .1em;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    opacity: .45;
    cursor: help;
}

.epc-page-info-button > .icon {
    margin: 0;
    height: auto;
    vertical-align: baseline;
}

.epc-page-info:hover .epc-page-info-button,
.epc-page-info-button:focus-visible {
    opacity: .9;
}

.epc-page-info-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.epc-page-info-pop {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    box-sizing: border-box;
    width: max-content;
    max-width: min(60ch, 100%);
    padding: .6em .8em;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    color: var(--muted, rgba(0, 0, 0, .7));
    background: var(--body-color, #fff);
    border: 1px solid var(--border-color, rgba(127, 127, 127, .25));
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

/* neviditelny most pres mezeru pod ikonou: mys muze prejet do ramecku (napr. oznacit text), aniz zmizi */
.epc-page-info-pop::before {
    content: "";
    position: absolute;
    top: -1.2em;
    left: 0;
    right: 0;
    height: 1.2em;
}

.epc-page-info:hover .epc-page-info-pop,
.epc-page-info:focus-within .epc-page-info-pop {
    display: block;
}

.epc-page-head > .epc-page-actions > .load-advice-toolbar {
    margin: 0;
}

.epc-views {
    display: flex;
    gap: 4px;
    margin: 1.2em 0 0;
    border-bottom: 1px solid rgba(127, 127, 127, .3);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.epc-view {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .7em 1em;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    opacity: .75;
}

.epc-view:hover,
.epc-view:focus-visible {
    opacity: 1;
}

.epc-view.active {
    opacity: 1;
    color: #db2828;
    border-bottom-color: #db2828;
}

.epc-view-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    height: 1.6em;
    padding: 0 .45em;
    border-radius: .8em;
    font-size: .8em;
    font-weight: 700;
    color: rgba(0, 0, 0, .7);
    background: rgba(127, 127, 127, .25);
}

.epc-view-count.attention {
    color: #fff;
    background: #db2828;
}

.epc-view-count.warning {
    color: rgba(0, 0, 0, .85);
    background: #fbbd08;
}

/* EPC-301: ulozene pohledy uzivatele - hvezdicka, x pri najeti, ulozeni a "Zpet" v radku zalozek */
.epc-view-saved {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.epc-view-saved > .epc-view {
    padding-right: 1.6em;
}

.epc-view-saved .star.icon {
    font-size: .85em;
    opacity: .7;
}

.epc-view-saved-remove {
    position: absolute;
    right: .25em;
    top: 50%;
    transform: translateY(-50%);
    width: 1.3em;
    height: 1.3em;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(127, 127, 127, .2);
    color: inherit;
    font: inherit;
    font-size: .85em;
    line-height: 1.3em;
    cursor: pointer;
    opacity: 0;
}

.epc-view-saved:hover .epc-view-saved-remove,
.epc-view-saved-remove:focus-visible {
    opacity: .8;
}

.epc-view-saved-remove:hover {
    opacity: 1;
    background: rgba(127, 127, 127, .35);
}

.epc-view-add {
    font-weight: 500;
}

.epc-view-save,
.epc-view-note {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: 0 .6em;
    white-space: nowrap;
}

.epc-view-save .ui.input input {
    width: 14em;
}

.epc-view-note {
    font-size: .9em;
    opacity: .8;
}

.epc-view-error {
    color: #db2828;
    opacity: 1;
}

.epc-view-undo {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.ui.segment.epc-list-card {
    margin-top: 1em;
    padding: 0;
}

.ui.segment.epc-list-card > .epc-chips {
    margin: 0;
    padding: .8em 1em;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
}

/* EPC-286: radek filtru s hledanim, ktere je stale videt (katalog) */
.ui.segment.epc-list-card > .epc-list-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: .8em 1em;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
}

.epc-list-filterbar > .epc-chips {
    margin: 0;
}

.ui.input.epc-list-search {
    width: 26rem;
    max-width: 100%;
}

/* prazdny stav v karte seznamu (zatim nic k zobrazeni) */
.epc-list-empty {
    padding: 1.2em 1em;
    opacity: .75;
}

.ui.segment.epc-list-card > .ui.form.epc-filters {
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
    border-radius: 0;
}

.epc-list-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5em 1em;
    padding: .6em 1em;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
    font-size: .95em;
}

.epc-list-status .epc-kb-help-bar {
    margin: 0;
}

/* tabulka v karte bez vlastniho ramecku */
.ui.segment.epc-list-card > .ui.segment,
.ui.segment.epc-list-card .ui.table {
    border: 0;
    box-shadow: none;
    margin: 0;
}

/* EPC-285: krizek pro zruseni razeni ve stavovem radku seznamu */
.epc-sort-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: .3em;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(127, 127, 127, .2);
    color: inherit;
    font-size: .75em;
    vertical-align: middle;
    cursor: pointer;
    opacity: .7;
}

.epc-sort-reset:hover,
.epc-sort-reset:focus-visible {
    opacity: 1;
}

/* EPC-270: fotky zasobniku / sestavy v editaci, hlavni fotka */
.epc-photo { position: relative; display: inline-block; }
.epc-photo img.ui.image { max-height: 100px; border: 2px solid transparent; border-radius: 4px; }
.epc-photo.main img.ui.image { border-color: #FBBD08; }
.epc-photo .ui.button.epc-photo-delete,
.epc-photo .ui.button.epc-photo-main { position: absolute; top: 0; z-index: 10; margin: 0; }
.epc-photo .ui.button.epc-photo-delete { right: 0; }
.epc-photo .ui.button.epc-photo-main { left: 0; }
.epc-photo .epc-photo-badge { position: absolute; left: 4px; bottom: 6px; z-index: 10; padding: 1px 6px; border-radius: 8px;
  background: #FBBD08; color: rgba(0,0,0,.87); font-size: 11px; font-weight: 600; line-height: 16px; pointer-events: none; }

/* ===== EPC-281: horni lista - hledani a prikazy, uzivatel, odhlaseni ===== */
.ui.top.fixed.menu .right.menu.epc-topbar-right { align-items: center; gap: 6px; padding-right: 10px; }
/* pravá cast lisy ve stejnem pasu jako titulek aplikace: titulek (.header.item) je u spodniho okraje a vysoky 56px;
   ve svetlem vzhledu ma lista pod nim cerveny prouzek, v tmavem ne (lista je pak vyssi) */
.ui.top.fixed.menu > .right.menu.epc-topbar-right { align-self: flex-end !important; height: 56px; }
.ui.top.fixed.menu .right.menu.epc-topbar-right > .item {
    background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 0 !important;
    padding: 0 !important; font-size: 14px;
}
/* najeti mysi: Fomantic by polozce dal pozadi; velikost se nemeni (padding a vysku urcuji pravidla nize) */
.ui.top.fixed.menu .right.menu.epc-topbar-right > .item.epc-topbar-tool:hover { background: transparent !important; }
.ui.top.fixed.menu .right.menu.epc-topbar-right > .item:before { display: none; }
/* "pointing" menu Fomanticu zarovnava polozky ke spodnimu okraji (align-self: flex-end) a dava jim vysku 30px;
   hledani, uzivatel a odhlaseni maji byt na svislem stredu lisy jako titulek aplikace */
.ui.top.fixed.menu .right.menu.epc-topbar-right > .item { align-self: center !important; height: auto !important; }
.ui.top.fixed.menu .right.menu.epc-topbar-right > .item.epc-user-menu,
.ui.top.fixed.menu .right.menu.epc-topbar-right > .item.epc-logout { height: 36px !important; }

.epc-cmdk-trigger {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 260px; padding: 0 8px 0 12px;
    border: 1px solid rgba(26, 26, 26, .18); border-radius: 10px; background: rgba(255, 255, 255, .72);
    color: rgba(26, 26, 26, .62); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
    transition: background-color .15s, border-color .15s, color .15s;
}
.epc-cmdk-trigger:hover { background: #fff; border-color: rgba(26, 26, 26, .35); color: #1A1A1A; }
.epc-cmdk-trigger:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }
.epc-cmdk-trigger .icon { margin: 0 !important; opacity: .8; }
.epc-cmdk-trigger-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epc-cmdk-trigger kbd, .epc-cmdk kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1;
    padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(26, 26, 26, .2); background: rgba(255, 255, 255, .9);
    color: rgba(26, 26, 26, .7);
}

.ui.top.fixed.menu .right.menu.epc-topbar-right > .epc-user-menu.ui.dropdown.item {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px !important;
    border-radius: 999px !important; cursor: pointer; transition: background-color .15s;
}
.ui.top.fixed.menu .right.menu.epc-topbar-right > .epc-user-menu.ui.dropdown.item:hover,
.ui.top.fixed.menu .right.menu.epc-topbar-right > .epc-user-menu.ui.dropdown.item.active { background: rgba(26, 26, 26, .08) !important; }
/* tenka sipka nabidky uzivatele: svisle na stredu, ztlumena; pri otevrene nabidce otocena nahoru */
.ui.top.fixed.menu .epc-user-menu > .icon.epc-user-caret {
    display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; margin: 0 !important;
    font-size: 10px; line-height: 1; opacity: .55; transition: transform .15s, opacity .15s;
}
.ui.top.fixed.menu .epc-user-menu:hover > .icon.epc-user-caret { opacity: .8; }
.ui.top.fixed.menu .epc-user-menu.active > .icon.epc-user-caret { transform: rotate(180deg); opacity: .8; }
.ui.top.fixed.menu .epc-user-menu > .menu { margin-top: 6px !important; border-radius: 10px !important; }
.epc-user-avatar {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
    background: #1A1A1A; color: #FFCC00; font-size: 12px; font-weight: 700; letter-spacing: .02em; flex: none;
}
.epc-user-name { font-weight: 600; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ui.top.fixed.menu .right.menu.epc-topbar-right > a.item.epc-logout {
    display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 50% !important; transition: background-color .15s, color .15s;
}
.ui.top.fixed.menu .right.menu.epc-topbar-right > a.item.epc-logout:hover { background: rgba(26, 26, 26, .08) !important; color: #B0040E !important; }
.ui.top.fixed.menu a.item.epc-logout .icon { margin: 0 !important; font-size: 1.05em; }

@media (max-width: 900px) {
    .epc-cmdk-trigger { min-width: 0; }
    .epc-cmdk-trigger-text, .epc-cmdk-trigger kbd, .epc-user-name { display: none; }
}

/* tmavy vzhled */
html:has(link[href*="themes/default.dark."]) .epc-cmdk-trigger {
    background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .7);
}
html:has(link[href*="themes/default.dark."]) .epc-cmdk-trigger:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
html:has(link[href*="themes/default.dark."]) .epc-cmdk-trigger:focus-visible { outline-color: #FFCC00; }
html:has(link[href*="themes/default.dark."]) .epc-cmdk-trigger kbd,
html:has(link[href*="themes/default.dark."]) .epc-cmdk kbd {
    background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .75);
}
html:has(link[href*="themes/default.dark."]) .ui.top.fixed.menu .right.menu.epc-topbar-right > .epc-user-menu.ui.dropdown.item:hover,
html:has(link[href*="themes/default.dark."]) .ui.top.fixed.menu .right.menu.epc-topbar-right > .epc-user-menu.ui.dropdown.item.active,
html:has(link[href*="themes/default.dark."]) .ui.top.fixed.menu .right.menu.epc-topbar-right > a.item.epc-logout:hover { background: rgba(255, 255, 255, .1) !important; }
html:has(link[href*="themes/default.dark."]) .ui.top.fixed.menu .right.menu.epc-topbar-right > a.item.epc-logout:hover { color: #FF6B6B !important; }
html:has(link[href*="themes/default.dark."]) .epc-user-avatar { background: #FFCC00; color: #1A1A1A; }

/* ===== EPC-281: paleta prikazu ===== */
.epc-cmdk-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(20, 20, 20, .35); }
.epc-cmdk {
    --cmdk-bg: #fff; --cmdk-ink: #1A1A1A; --cmdk-muted: #6B6862; --cmdk-line: #E2DFD7; --cmdk-active: #FFF4C2;
    --cmdk-icon-bg: #F4F3EF; --cmdk-mark: #B0040E;
    position: fixed; z-index: 1101; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 32px));
    display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--cmdk-bg); color: var(--cmdk-ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 0 0 1px var(--cmdk-line); font-size: 14px;
}
.epc-cmdk-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--cmdk-line); color: var(--cmdk-muted); }
.epc-cmdk-search > .icon { margin: 0; }
.epc-cmdk-input {
    flex: 1; min-width: 0; height: 54px; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--cmdk-ink);
}
.epc-cmdk-spinner {
    width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cmdk-line); border-top-color: var(--cmdk-ink);
    animation: epc-cmdk-spin .7s linear infinite; flex: none;
}
@keyframes epc-cmdk-spin { to { transform: rotate(360deg); } }
.epc-cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: min(56vh, 480px); overflow-y: auto; }
.epc-cmdk-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cmdk-muted); }
.epc-cmdk-item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.epc-cmdk-item.active { background: var(--cmdk-active); }
.epc-cmdk-icon {
    flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--cmdk-icon-bg); color: var(--cmdk-muted);
}
.epc-cmdk-icon .icon { margin: 0; }
.epc-cmdk-item.active .epc-cmdk-icon { background: var(--cmdk-bg); color: var(--cmdk-ink); }
.epc-cmdk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.epc-cmdk-title, .epc-cmdk-subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epc-cmdk-subtitle { font-size: 12px; color: var(--cmdk-muted); }
.epc-cmdk-sep { margin: 0 6px; color: var(--cmdk-muted); }
.epc-cmdk mark { background: none; color: var(--cmdk-mark); font-weight: 700; }
.epc-cmdk-item .ui.label { flex: none; }
.epc-cmdk-empty { padding: 20px 12px; text-align: center; color: var(--cmdk-muted); }
.epc-cmdk-empty.error { color: var(--cmdk-mark); }
.epc-cmdk-foot {
    display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--cmdk-line); font-size: 12px; color: var(--cmdk-muted);
}
.epc-cmdk-hint { margin-left: auto; }
html:has(link[href*="themes/default.dark."]) .epc-cmdk {
    --cmdk-bg: #1E1E1E; --cmdk-ink: #EDEDED; --cmdk-muted: #A3A09A; --cmdk-line: #333; --cmdk-active: #3A3420;
    --cmdk-icon-bg: #2A2A2A; --cmdk-mark: #FFCC00;
}
html:has(link[href*="themes/default.dark."]) .epc-cmdk-backdrop { background: rgba(0, 0, 0, .55); }

/* zvetsena fotka zasobniku / sestavy: sipky na predchozi / dalsi fotku (ContainerImagePreview) */
.epc-photo-viewer { position: relative; outline: none; }
.epc-photo-viewer > img.ui.image { width: 100%; border-radius: 6px; }
.epc-photo-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px;
    cursor: pointer; transition: background-color .15s;
}
.epc-photo-nav:hover, .epc-photo-nav:focus-visible { background: rgba(0, 0, 0, .8); outline: none; }
.epc-photo-nav:focus-visible { box-shadow: 0 0 0 3px #FFCC00; }
.epc-photo-nav.prev { left: 12px; }
.epc-photo-nav.next { right: 12px; }
.epc-photo-nav .icon { margin: 0; }
.epc-photo-counter {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; padding: 3px 12px; border-radius: 999px;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
}

/* logo v horni liste: obal (kostka) v kruhove sipce (obeh vratnych obalu), cerveny obrys bez podkladu (DHL #D40511);
   stejna barva ve svetlem i tmavem vzhledu */
.ui.top.fixed.menu .header.item .epc-logo { flex: none; width: 32px; height: 32px; margin-right: 12px; display: block; }
.epc-logo .epc-logo-line { fill: none; stroke: #D40511; stroke-linecap: round; stroke-linejoin: round; }
.epc-logo .epc-logo-arrow { fill: #D40511; stroke: #D40511; stroke-width: 1; stroke-linejoin: round; }

/* tmavy vzhled: SPZ jako tlumene seda znacka (bila na tmavem pozadi prilis svitila), modry pruh EU zustava */
html:has(link[href*="themes/default.dark."]) .license-plate {
    background-color: #B4B8C0;
    border-color: #6E737D;
    box-shadow: none;
    color: #121419;
}

/* tmavy vzhled: stav zakazky (LoadAdviceStatusDisplay) misto plne syte barvy jen pruhledne podbarveni,
   barevny text a ramecek - na tmavem pozadi plne barvy prilis svitily */
html:has(link[href*="themes/default.dark."]) .ui.label.epc-status {
    border: 1px solid transparent;
}
html:has(link[href*="themes/default.dark."]) .ui.blue.label.epc-status { background-color: rgba(33, 133, 208, .2) !important; border-color: rgba(33, 133, 208, .5) !important; color: #9ACBF4 !important; }
html:has(link[href*="themes/default.dark."]) .ui.green.label.epc-status { background-color: rgba(33, 186, 69, .18) !important; border-color: rgba(33, 186, 69, .45) !important; color: #96E5A9 !important; }
html:has(link[href*="themes/default.dark."]) .ui.yellow.label.epc-status { background-color: rgba(251, 189, 8, .16) !important; border-color: rgba(251, 189, 8, .45) !important; color: #F7D774 !important; }
html:has(link[href*="themes/default.dark."]) .ui.orange.label.epc-status { background-color: rgba(242, 113, 28, .18) !important; border-color: rgba(242, 113, 28, .45) !important; color: #F8B488 !important; }
html:has(link[href*="themes/default.dark."]) .ui.red.label.epc-status { background-color: rgba(219, 40, 40, .2) !important; border-color: rgba(219, 40, 40, .5) !important; color: #F2A0A0 !important; }
html:has(link[href*="themes/default.dark."]) .ui.grey.label.epc-status { background-color: rgba(160, 160, 160, .16) !important; border-color: rgba(160, 160, 160, .4) !important; color: #C8C8C8 !important; }
