:root {
    --fm-invert-icons: 0;
}

html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Sharp.FM.Header.svg?v=20261126b');
    mask: url('../images/Sharp.FM.Header.svg?v=20261126b');
    -webkit-mask-position: center;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 180px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.logon-main {
    padding: 20px !important;
    width: 450px !important;
    max-width: 450px !important;
    border: none !important;
    border-radius: 20px !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.no-border {
    border: none !important;
}

.middle-text-separator {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.toolbar-language-switcher-wrapper {
    min-width: 200px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

.logon-toolbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 120px !important;
}

.fm-logon-password-toggle.dxbl-btn {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0 2px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(0, 0, 0, 0.45);
    box-shadow: none;
}

.fm-logon-password-toggle.dxbl-btn:hover,
.fm-logon-password-toggle.dxbl-btn:not(.dxbl-disabled):not(:disabled):hover {
    color: #4d4d4d;
    background-color: #ebebeb;
}

.fm-logon-password-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 3C4.5 3 1.6 5.2.5 8c1.1 2.8 4 5 7.5 5s6.4-2.2 7.5-5C14.4 5.2 11.5 3 8 3zm0 8.2A3.2 3.2 0 1 1 8 4.8a3.2 3.2 0 0 1 0 6.4zM8 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 3C4.5 3 1.6 5.2.5 8c1.1 2.8 4 5 7.5 5s6.4-2.2 7.5-5C14.4 5.2 11.5 3 8 3zm0 8.2A3.2 3.2 0 1 1 8 4.8a3.2 3.2 0 0 1 0 6.4zM8 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fm-password-visible .fm-logon-password-icon,
.fm-logon-password-toggle.fm-password-visible .fm-logon-password-icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.1 1.3 1.3 2.1 3.6 4.4C2.1 5.3 1 6.6.5 8c1.1 2.8 4 5 7.5 5 1.3 0 2.5-.3 3.6-.8l2.3 2.3.8-.8L2.1 1.3zM8 11.2c-1.8 0-3.2-1.4-3.2-3.2 0-.5.1-.9.3-1.3l4.2 4.2c-.4.2-.8.3-1.3.3zm7.5-3.2c-.4-1.1-1.1-2.1-2.1-2.9l-1.5 1.5c.4.4.6 1 .6 1.6A3.2 3.2 0 0 1 8 9.2l-1.7 1.7c.5.2 1.1.3 1.7.3 3.5 0 6.4-2.2 7.5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.1 1.3 1.3 2.1 3.6 4.4C2.1 5.3 1 6.6.5 8c1.1 2.8 4 5 7.5 5 1.3 0 2.5-.3 3.6-.8l2.3 2.3.8-.8L2.1 1.3zM8 11.2c-1.8 0-3.2-1.4-3.2-3.2 0-.5.1-.9.3-1.3l4.2 4.2c-.4.2-.8.3-1.3.3zm7.5-3.2c-.4-1.1-1.1-2.1-2.1-2.9l-1.5 1.5c.4.4.6 1 .6 1.6A3.2 3.2 0 0 1 8 9.2l-1.7 1.7c.5.2 1.1.3 1.7.3 3.5 0 6.4-2.2 7.5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dxbl-accordion .dxbl-accordion-group .dxbl-accordion-group-header .dxbl-accordion-item-content > .dxbl-image {
    filter: invert(var(--fm-invert-icons)) !important;
}

.logon-right {
    display: block;
    background-color: var(--bs-primary);
    color: white;
    height: 100%;
    overflow: hidden;
}

#logon-template-component {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

html:has(#logon-template-component),
body:has(#logon-template-component) {
    overflow: hidden;
}

#logon-template-component .carousel-item {
    margin-right: 0 !important;
    float: none;
}

#logon-template-component .mySlides {
    overflow-x: hidden !important;
}

.logon-template-body {
    height: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
}

.logon-holder {
    width: 100% !important;
    max-width: 100%;
    height: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0 !important;
}

@media (max-width: 1199.98px) {
    .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        --bs-gutter-x: 0 !important;
    }

    .logon-holder {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        --bs-gutter-x: 0 !important;
    }

    .logon-main {
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        border-radius: 20px !important;
        position: absolute;
        margin-left: auto !important;
        margin-right: auto !important;
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .logon-right {
        display: none !important;
    }
}

.dashboard-viewcontainer-top{
    padding-top:50px;
}

.dashboard-viewcontainer .dxbl-btn-toolbar[role="toolbar"] {
    display: flex;
    flex-direction: column;
    color: white;
}

    .dashboard-viewcontainer .dxbl-btn-toolbar[role="toolbar"] > div {
        margin-bottom: 1rem;
        margin-left: 1rem;
        justify-content: center;
    }

.dashboard-viewcontainer button {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    max-width: 30vw;
    min-width: 30vw;
    height: 60px;
}

    .dashboard-viewcontainer button:disabled {
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        font-size: 20px;
        max-width: 30vw;
        min-width: 30vw;
        height: 60px;
    }

@media (max-width: 800px) {

    .dashboard-viewcontainer button {
        font-size: 15px;
        max-width: 40vw;
        min-width: 40vw;
        height: 45px;
    }

    .dashboard-viewcontainer button:disabled {
        font-size: 15px;
        max-width: 40vw;
        min-width: 40vw;
        height: 45px;
    }
}

@media (max-width: 600px) {

    .dashboard-viewcontainer button {
        font-size: 18px;
        max-width: 70vw;
        min-width: 70vw;
        height: 42px;
    }

    .dashboard-viewcontainer button:disabled {
        font-size: 18px;
        max-width: 70vw;
        min-width: 70vw;
        height: 42px;
    }
}

.dashboard-viewcontainer button:active,
.dashboard-viewcontainer button:focus {
    outline: none !important;
    box-shadow: none !important;
}

#QRAndBarcodeReading video {
    width: 80vw;
    max-width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    #QRAndBarcodeReading video {
        width: 95vw;
        max-width: none; 
    }
}

.xaf-alerts-stack{
    white-space:pre-line!important;
}

.xaf-alerts-stack-inner{
    width:700px!important;
}

.xaf-masterdetail-detailview{
    margin-left:60px!important;
}

/* State Machine buttons */
.StateMachineActionClass {
    background: #e4eafa !important;
    border: 1px solid rgba(29, 78, 216, 0.25) !important;
    border-radius: 8px !important;
    color: #000000 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 4px 12px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.StateMachineActionClass:hover {
    background: #d2dcf7 !important;
    border-color: rgba(29, 78, 216, 0.35) !important;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.15) !important;
    color: #000000 !important;
}

.StateMachineActionClass:hover span,
.StateMachineActionClass:hover * {
    color: #000000 !important;
}

.StateMachineActionClass:active {
    background: #c7d3f5 !important;
    border-color: rgba(29, 78, 216, 0.4) !important;
    box-shadow: none !important;
    color: #000000 !important;
}

.StateMachineActionClass:active span,
.StateMachineActionClass:active * {
    color: #000000 !important;
}

.StateMachineActionClass:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25) !important;
    color: #000000 !important;
}

.StateMachineActionClass:focus span,
.StateMachineActionClass:focus * {
    color: #000000 !important;
}

.StateMachineActionClass span,
.StateMachineActionClass * {
    color: #000000 !important;
}

.StateMachineActionClass:disabled {
    background: #f1f2f4 !important;
    border-color: #d1d5db !important;
    color: #2d323b !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.StateMachineActionClass:disabled span,
.StateMachineActionClass:disabled * {
    color: #2d323b !important;
}

.dxbl-btn.rental-contract-location-filter-active {
    --dxbl-btn-bg: rgba(220, 53, 69, 0.18);
    --dxbl-btn-hover-bg: rgba(220, 53, 69, 0.28);
    --dxbl-btn-active-bg: rgba(220, 53, 69, 0.34);
    --dxbl-btn-border-color: rgba(220, 53, 69, 0.35);
    --dxbl-btn-hover-border-color: rgba(220, 53, 69, 0.45);
    --dxbl-btn-color: #212529;
    --dxbl-btn-hover-color: #212529;
    background-color: rgba(220, 53, 69, 0.18) !important;
}

.dxbl-btn.rental-contract-location-filter-active:hover {
    background-color: rgba(220, 53, 69, 0.28) !important;
}

body.nav-mode-card .header-right-side .navigate-back-icon-container.dxbl-btn {
    display: flex !important;
}
body.nav-mode-card .sidebar {
    display: none !important;
}

.btn-digitalidentifierscan {
    width: 16px;
    height: 16px;
    background-image: url("../images/DigitalIdentifierScan.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0;
    display: inline-block;
}
/* Keep ListView header filter/sort icons next to the caption.
   Caption uses max-content so the box only spans the text (not the full cell)
   and the funnel stays beside it. max-width still allows wrapping when the
   column is actually too narrow; min-content would wrap at hyphens even
   when there is room (e.g. "Tag-ek").
   Skip command/selection headers (checkbox). */
th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) > .dxbs-fixed-header-content,
th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) > .dxbs-grid-header-content,
th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-header-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100%;
    gap: 0.25rem;
}

    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbs-fixed-header-content > :first-child:not(button):not(.dxbl-grid-filter-menu-funnel-btn):not(.dxbl-grid-sort-asc):not(.dxbl-grid-sort-desc),
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbs-grid-header-content > :first-child:not(button):not(.dxbl-grid-filter-menu-funnel-btn):not(.dxbl-grid-sort-asc):not(.dxbl-grid-sort-desc),
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-header-content > :first-child:not(button):not(.dxbl-grid-filter-menu-funnel-btn):not(.dxbl-grid-sort-asc):not(.dxbl-grid-sort-desc),
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-header-content span:first-child,
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-header-content a:first-child {
        flex: 0 1 auto !important;
        width: max-content !important;
        max-width: calc(100% - 1.75rem) !important;
        min-width: 0 !important;
        white-space: normal !important;
    }

    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbs-fixed-header-content > button,
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbs-grid-header-content > button,
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-header-content > button,
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-filter-menu-funnel-btn,
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-sort-asc,
    th:not(.dxbs-cmd-cell):not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) .dxbl-grid-sort-desc {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }

/* Amount and currency sit on one row. The theme lets the caption grow and pins
   the editor to the far edge, which leaves a gap after a short caption such as
   "Pénznem". Keep the caption to its text and give the leftover width to the editor. */
dxbl-form-layout-group.fm-stack-halves {
    container-type: inline-size;
    container-name: fm-stack-halves;
}

dxbl-form-layout-group.fm-stack-halves .dxbl-fl .dxbl-fl-item.dxbl-fl-item-horizontal > .dxbl-fl-cpt {
    flex: 0 1 auto;
    width: auto;
}

/* Currency captions (XAF item ids ending in "currency") take only their text width,
   so the currency editor fills the rest of the row. The form layout sets the caption width
   inline, which is why !important is needed. Matched on the label's own class, not on its position. */
dxbl-form-layout-group.fm-stack-halves label.dxbl-fl-cpt[class*="xaf-item-"][class*="currency"] {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap;
}

dxbl-form-layout-group.fm-stack-halves .dxbl-fl .dxbl-fl-item.dxbl-fl-item-horizontal > .dxbl-fl-ctrl {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

@container fm-stack-halves (max-width: 1080px) {
    dxbl-form-layout-group.fm-stack-halves > .dxbl-row > .dxbl-col,
    dxbl-form-layout-group.fm-stack-halves > .dxbl-group > .dxbl-group-body > .dxbl-group-body-content > .dxbl-row > .dxbl-col {
        width: 100%;
        max-width: 100%;
        flex: 1 0 100%;
    }

    dxbl-form-layout-group.fm-stack-halves .dxbl-fl .dxbl-fl-item.dxbl-fl-item-horizontal > .dxbl-fl-ctrl {
        flex: 1 1 7.5rem;
        min-width: min(100%, 7.5rem);
    }
}

/* Popup dialogs are narrower than the page. From 992px of browser width the
   theme puts the caption beside the editor and does not let it shrink, so the
   form grows past the dialog and the scrollable body shows a horizontal bar.
   Keep the caption above the editor, and let the dialog shrink with the window. */
.xafPopup .dxbl-fl .dxbl-fl-item.dxbl-fl-item-horizontal {
    flex-flow: column nowrap;
}

.xafPopup dxbl-form-layout-group.fm-stack-halves .dxbl-fl .dxbl-fl-item.dxbl-fl-item-horizontal {
    flex-flow: row nowrap;
}

.xafPopup .dxbl-fl .dxbl-fl-item > .dxbl-fl-cpt {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    white-space: normal;
}

.xafPopup .main,
.xafPopup .main-content,
.xafPopup .dxbl-fl,
.xafPopup .dxbl-col,
.xafPopup .dxbl-fl-item,
.xafPopup .dxbl-fl-ctrl,
.xafPopup .dxbl-grid,
.xafPopup .dxbl-upload,
.xafPopup .dxbl-upload-panel {
    min-width: 0;
    max-width: 100%;
}

/* The row has a -12px side margin, so its natural width is 100% + 24px.
   A max-width of 100% would cut 24px off every (nested) row and leave an unused
   strip on the right of the popup. */
.xafPopup .dxbl-row {
    min-width: 0;
}

.xafPopup .dxbl-upload-panel {
    flex-wrap: wrap;
}

.xafPopup.dxbl-popup-scrollable > .dxbl-modal-content > .dxbl-modal-body {
    overflow-x: clip;
}

/* The signature canvas fills the dialog body. The host height is set in script
   from the space under the hint text; these rules keep that box from collapsing. */
.signature-pad-fill {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.signature-pad-fill > canvas.signature-pad {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background-color: #fff;
    touch-action: none;
}

.xafPopup:has(#signature-pad) .dxbl-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.xafPopup:has(#signature-pad) .dxbl-fl-item:has(#signature-pad),
.xafPopup:has(#signature-pad) .dxbl-fl-ctrl:has(#signature-pad) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    width: 100%;
}
