body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

/* WCAG 2.4.1 Bypass Blocks — skip link */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    z-index: 10000;
}

.skip-link:focus {
    position: fixed;
    left: 0.5rem;
    top: 0.5rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.65rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    color: #111;
    font-weight: 600;
    text-decoration: underline;
    border: 2px solid #111;
    box-shadow: 0 0 0 3px #ff5722;
}

/* WCAG 2.4.7 Focus Visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.dx-viewport .dx-button:focus-visible,
.header-username-link:focus-visible,
.footer-changelog-link:focus-visible {
    outline: 3px solid #1565c0;
    outline-offset: 2px;
}

#main-content:focus {
    outline: none;
}

#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex; 
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1501;
}

.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

.dx-toolbar .dx-toolbar-item.menu-button > .dx-toolbar-item-content .dx-icon {
    color: #ff5722;
}

.layout-header .header-username-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 0 8px;
    line-height: inherit;
    display: inline-block;
}

.layout-header .header-username-link:hover {
    text-decoration: underline;
    color: #ff5722;
}

.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

.dx-card.wide-card {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    border-left: 0;
}

.with-footer > div > div > .dx-scrollable-content {
    height: 100%;
}

.with-footer > div > div > .dx-scrollable-content > .dx-scrollview-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.layout-body .menu-container {
    height: 100%;
    width: 250px;
}

.layout-body .content {
    flex-grow: 1;
    height: 100%;
    line-height: 1.5;
}

.layout-body .content h2 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -.5px;
}

.layout-body .content-block {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

.layout-body .content-footer {
    display: block;
    color: rgba(0,0,0,.609);
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 20px;
    padding-bottom: 24px;
}

.layout-body .responsive-paddings {
    padding: 20px;
}

.layout-body-hidden {
    visibility: hidden;
}

@media screen and (min-width: 600px) {
    .layout-body .content-block {
        margin-left: 40px;
        margin-right: 40px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

.menu-container .dx-widget {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: Roboto,RobotoFallback,Helvetica,Arial,sans-serif;
    line-height: 24px;
}

/*
 * TreeView with checkboxes inside popups (header filter, column chooser, etc.):
 * First row: expand + checkbox + label on one line. Child nodes sit on the next line (full width),
 * not squeezed beside the parent row — use wrap + 100% width on .dx-treeview-node-container.
 */
.dx-popup-content .dx-treeview-node.dx-treeview-item-with-checkbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    position: relative;
}

.dx-popup-content .dx-treeview-node.dx-treeview-item-with-checkbox > .dx-treeview-toggle-item-visibility {
    order: 0;
    flex-shrink: 0;
}

.dx-popup-content .dx-treeview-node.dx-treeview-item-with-checkbox > .dx-checkbox {
    order: 1;
    flex-shrink: 0;
}

.dx-popup-content .dx-treeview-node.dx-treeview-item-with-checkbox > .dx-treeview-item {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dx-popup-content .dx-treeview-node.dx-treeview-item-with-checkbox > .dx-treeview-node-container {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

/*---------------OLD STYLES --------------------------------------------*/

html, body {
    margin: 0;
    padding: 0;
}

/* Header */
.dxpnl-edge.t.headerPane {
    background-color: #EDEDED;
    background-position: left top;
    background-repeat: no-repeat;
}

.headtitle {
    /*font-family: Tahoma;
    font-size: 16px;*/
    margin-left: 3px;
}

.dxpnl-edge.t.headerPane.panel {
    padding: 0;
}

.headerMenu {
    border-width: 0 !important;
    border-top-width: 1px !important;
}

.expandedPanel {
    padding: 2px !important;
}

    .expandedPanel .headerMenu {
        border-top-width: 0 !important;
    }

    .expandedPanel .headerTop {
        display: none;
    }

.templateTitle {
    float: left;
    margin: 12px 12px 18px;
}

.dxpnl-edge.t.headerPane.bar .templateTitle {
    margin: 0;
}

.templateTitle a {
    text-decoration: none;
    font-size: x-large;
    color: black;
}

.loginControl {
    float: right;
    margin: 24px 25px 12px;
    font-size: 12px;
}

    .loginControl a {
        color: black;
        text-decoration: none;
        border-bottom: dashed 1px black;
        display: inline-block;
    }


/* Footer */
.dxpnl-edge.b.footerPane {
    background-color: #EDEDED;
}

    .dxpnl-edge.b.footerPane.panel {
        padding: 0;
    }

.footerMenu {
    float: right;
    padding-top: 7px;
}

.copyright {
    float: left;
    margin: 100px 15px 11px;
}

.content {
    padding: 5px;
}

/* Left Panel */
.leftPane.panel {
    padding: 1px;
    /*width: 200px;*/
}

/* Right Panel */
.rightPane.panel {
    padding: 0;
    width: 250px;
}

/* Account */
.accountHeader h2 {
    margin: 10px 0 7px 0;
    font-size: 16px;
}

.accountHeader p {
    margin: 0;
    padding: 0;
}

.accountHeader {
    margin-bottom: 20px;
}


/* Styles for basic forms
-----------------------------------------------------------*/

#editocevidnik .editor-label {
    float: left;
    width: 300px;
    margin-top: 8px;
    font-weight: bold;
}

#editradnja dl.dl-horizontal dt .editor-label {
    float: left;
    width: 300px;
    margin-top: 8px;
    font-weight: bold;
}

.dx-fieldset .dx-loadindicator {
    vertical-align: middle;
}

#left-column dt {
    white-space: normal;
    width: 200px !important;
}

.editor-field {
    clear: both;
    margin: 0 0 8px 0;
}

    .editor-field > div {
        position: relative;
    }

    .editor-field label {
        line-height: 18px;
    }

.editor-link {
    float: left;
    line-height: 18px;
    margin: 0 5px 0 0;
    cursor: pointer;
}

    .editor-link img {
        margin: 2px 0 0;
    }

.editor-field:after {
    content: " ";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.centerBlock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/*
 * Portal shell (matches UserIzvjesca/Detalji inline look; Login reuses same classes).
 * Detalji.cshtml keeps its own <style> block unchanged.
 */
.izvjesca-detalji-html {
    --izvj-accent: #FF5722;
    --izvj-accent-soft: rgba(255, 87, 34, 0.12);
    --izvj-dark: #3F3F4B;
    --izvj-surface: #fff;
    --izvj-muted: rgba(0, 0, 0, 0.56);
    --izvj-border: rgba(0, 0, 0, 0.08);
    --izvj-row-alt: #f3fffe;
    --izvj-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: min(960px, 100%);
    padding: 0 12px;
    box-sizing: border-box;
}

.izvjesca-detalji-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.izvjesca-detalji-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: var(--izvj-surface);
    border-radius: 8px;
    box-shadow: var(--izvj-shadow);
    border-left: 4px solid var(--izvj-accent);
}

.izvjesca-detalji-hero__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.izvjesca-detalji-hero__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--izvj-muted);
}

.izvjesca-detalji-hero__id {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--izvj-dark);
    line-height: 1.2;
}

.izvjesca-detalji-refresh-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: var(--izvj-accent);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.izvjesca-detalji-refresh-btn:hover {
    background: #e64a19;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.izvjesca-detalji-refresh-btn:focus {
    outline: none;
}

.izvjesca-detalji-refresh-btn:focus-visible {
    outline: 2px solid var(--izvj-dark);
    outline-offset: 2px;
}

.izvjesca-detalji-refresh-btn__icon {
    flex-shrink: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #fff;
}

.izvjesca-detalji-refresh-btn__icon::before {
    color: inherit;
}

.izvjesca-detalji-refresh-btn__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.izvjesca-detalji-card {
    background: var(--izvj-surface);
    border-radius: 8px;
    box-shadow: var(--izvj-shadow);
    padding: 18px 22px 20px;
    border: 1px solid var(--izvj-border);
}

.izvjesca-detalji-card--soft {
    background: linear-gradient(180deg, rgba(243, 255, 254, 0.45) 0%, var(--izvj-surface) 48%);
}

.izvjesca-detalji-html__dl--fisher {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--izvj-border);
}

.izvjesca-detalji-card__title {
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--izvj-dark);
    border-bottom: 2px solid var(--izvj-accent-soft);
    letter-spacing: -0.02em;
}

.izvjesca-detalji-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--izvj-accent-soft);
    color: var(--izvj-accent);
}

.izvjesca-detalji-html__dl {
    display: grid;
    grid-template-columns: minmax(9rem, 11rem) 1fr;
    gap: 10px 20px;
    margin: 0;
}

.izvjesca-detalji-html__dl dt {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--izvj-muted);
    align-self: start;
    padding-top: 2px;
}

.izvjesca-detalji-html__dl dd {
    margin: 0;
    color: #212529;
    font-size: 14px;
    line-height: 1.45;
}

.izvjesca-detalji-html__grid-wrap {
    overflow-x: auto;
    margin: 0;
    -webkit-overflow-scrolling: touch;
}

.izvjesca-detalji-card--with-catch .izvjesca-detalji-html__dl + .izvjesca-detalji-html__grid-wrap--embedded {
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--izvj-border);
}

.izvjesca-detalji-card--with-catch .izvjesca-detalji-html__grid-wrap--embedded + .izvjesca-detalji-html__grid-wrap--embedded {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--izvj-border);
}

.izvjesca-detalji-html__grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.izvjesca-detalji-html__grid th,
.izvjesca-detalji-html__grid td {
    border-bottom: 1px solid var(--izvj-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.izvjesca-detalji-html__grid thead th {
    background: var(--izvj-dark);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
    border-bottom: none;
    white-space: nowrap;
}

.izvjesca-detalji-html__grid thead th:first-child {
    border-radius: 0;
}

.izvjesca-detalji-html__grid tbody tr:nth-child(even) {
    background: var(--izvj-row-alt);
}

.izvjesca-detalji-html__grid tbody tr:hover td {
    background: rgba(255, 87, 34, 0.06);
}

.izvjesca-detalji-html__grid tfoot td {
    font-weight: 600;
    background: #EDEDED;
    color: var(--izvj-dark);
    border-bottom: none;
}

.izvjesca-detalji-html__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.izvjesca-detalji-html__muted {
    margin: 0;
    color: var(--izvj-muted);
    font-size: 14px;
    line-height: 1.5;
}

.izvjesca-detalji-html__muted--callout {
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(255, 87, 34, 0.08);
    border-left: 3px solid var(--izvj-accent);
    color: #212529;
}

.izvjesca-detalji-footer {
    padding: 8px 4px 24px;
    text-align: center;
}

a.izvjesca-detalji-back {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--izvj-accent) !important;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a.izvjesca-detalji-back:hover {
    opacity: 0.85;
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .izvjesca-detalji-html__dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .izvjesca-detalji-html__dl dt {
        padding-top: 10px;
        border-top: 1px solid var(--izvj-border);
    }

    .izvjesca-detalji-html__dl dt:first-of-type {
        padding-top: 0;
        border-top: none;
    }

    .izvjesca-detalji-hero__id {
        font-size: 22px;
    }
}

/* Account/Login — same shell as Detalji, narrower column */
.izvjesca-login-html {
    max-width: min(440px, 100%);
}

/* Login: horizontal center only; align block to top below toolbar. */
.layout-body #main-content:has(.izvjesca-login-html) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding: 1rem 12px 2rem;
}

.centerBlock.izvjesca-detalji-html.izvjesca-login-html {
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.izvjesca-login-html h1.izvjesca-login-html__hero-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--izvj-muted);
    line-height: 1.3;
}

.izvjesca-login-html .izvjesca-login-html__validation.validation-summary-valid {
    display: none !important;
}

.izvjesca-login-html .izvjesca-login-html__validation {
    font-size: 14px;
}

.izvjesca-login-html .izvjesca-login-html__validation--below-submit {
    margin-top: 14px;
    margin-bottom: 0;
}

.izvjesca-login-html .izvjesca-login-html__hint {
    margin-bottom: 18px;
}

.izvjesca-login-html .izvjesca-login-html__hint-lead {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}

.izvjesca-login-html .izvjesca-login-html__hint-dl {
    margin: 0;
}

.izvjesca-login-html .izvjesca-login-html__hint-dl code {
    font-size: 13px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    word-break: break-all;
}

.izvjesca-login-html .izvjesca-login-html__field {
    margin-bottom: 14px;
}

.izvjesca-login-html .izvjesca-login-html__field > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--izvj-muted);
}

.izvjesca-login-html .form-control {
    border-radius: 6px;
    min-height: 40px;
    font-size: 1rem;
    border-color: rgba(0, 0, 0, 0.18);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.izvjesca-login-html .form-control:focus {
    border-color: var(--izvj-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.18);
}

.izvjesca-login-html .izvjesca-login-html__remember {
    margin-bottom: 16px;
}

.izvjesca-login-html .izvjesca-login-html__remember .custom-control-label {
    font-size: 14px;
    color: #212529;
    cursor: pointer;
}

.izvjesca-login-html .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--izvj-accent);
    border-color: var(--izvj-accent);
}

.izvjesca-login-html .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.izvjesca-login-html .izvjesca-login-html__submit.izvjesca-detalji-refresh-btn {
    width: 100%;
    margin-top: 4px;
}

/* About — same shell / column as Login */
.izvjesca-about-html .izvjesca-about-html__address {
    font-style: normal;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #212529;
}

.izvjesca-about-html .izvjesca-about-html__org {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--izvj-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.izvjesca-about-html .izvjesca-about-html__address a[href^="mailto:"] {
    color: var(--izvj-accent);
    font-weight: 600;
    text-decoration: none;
}

.izvjesca-about-html .izvjesca-about-html__address a[href^="mailto:"]:hover {
    text-decoration: underline;
}

/*.centerGrid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 640px;
}
*/
.centerGrid {
    display: block;
}

.mainContainer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: 100px;
    align-content: space-between;
    justify-content: center;
}

    .mainContainer > * {
        padding: 20px;
        /*flex: 1 1 100px;*/
    }

@media screen and (max-width: 1680px) {
}

.centerall {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.box {
    width: 300px;
    margin: 5px;
    text-align: center;
}

.info {
    color: #FF5722;
    /*// Define your own color in your CSS*/
}

.saturate {
    filter: saturate(3);
}

.showtouser {
    /*color: #3B5998;*/
    background-color: #3B5998;
    /*// Define your own color in your CSS*/
}

/*.dx-loadpanel-content {
  display: none !important;
}*/

.dx-datagrid .dx-row-alt > td {
    background-color: #f3fffe !important;
    border-top: 1px solid #f3fffe !important;
    border-bottom: 1px solid #f3fffe !important;
}

.dx-field-label {
    max-width: 200px;
    color: black !important;
    /*width: 20% !important;*/
}

.dx-fieldset-header {
    font-size: 20px !important;
}

.dx-fieldset {
    min-width: 500px;
    max-width: 600px;
}

.dx-loadindicator-segment1 {
    /*background: #FF5722 !important;*/
}

.dx-datagrid-nodata {
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.dx-searchbox .dx-icon-search {
    display: none !important;
}

/*fixing problem sa datagrid editorom and check boxom;*/
.dx-editor-cell.dx-editor-inline-block:not(.dx-command-select)::before {
    content: none !important;
}

/*kod popup poruka da je text obojan u crveno;*/
.dx-overlay-content .dx-button {
    color: #FF5722 !important;
}

@media screen and (max-width: 767px) {
    .dx-field {
        display: flex;
        flex-direction: column;
    }

    .dx-fieldset .dx-field-label {
        clear: both;
        width: 100%;
        align-self: flex-start;
    }

    .dx-fieldset .dx-field-value {
        clear: both;
        width: 100% !important;
        /*position: absolute;*/
    }
}

.account-password-card {
    padding: 1rem 1.25rem 1.25rem;
}

.account-password-heading {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.account-password-rules {
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.account-password-rules-list li {
    margin-bottom: 0.2rem;
}

.account-password-alert {
    margin-bottom: 0.75rem;
}

/* Kompaktniji blok „Promjena lozinke” na Account/AccountDetails */
.account-password-card--compact {
    padding: 0.65rem 0.9rem 0.9rem;
}

.account-password-heading--compact {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.account-password-card--compact .account-password-intro {
    font-size: 0.8125rem;
    margin-bottom: 0.45rem !important;
}

.account-password-rules--compact {
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.65rem !important;
}

.account-password-card--compact .account-password-rules-title {
    font-size: 0.75rem;
}

.account-password-rules-list--compact {
    font-size: 0.75rem;
}

.account-password-card--compact .account-password-rules-list--compact li {
    margin-bottom: 0.1rem;
}

.account-password-card--compact .form-label-sm {
    font-size: 0.8125rem;
    margin-bottom: 0.2rem;
}

.account-password-card--compact .account-password-alert {
    font-size: 0.8125rem;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.5rem !important;
}
