@import url('HelveticaNow/font/css/helveticalNow.min.css');


:root {
    --main-color: #6956CC;
    --second-color: #4e5a6b;
    --thrid-color: #ffff02;
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxI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
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


/* --- breaking lines start cpu styles ---*/
.bg-secondary {
    background-color: lightgrey !important;
}


/*1.>overwright devxpress: */

.dxbl-checkbox {
    float: right !important;
}

.cpu-decimal input {
    text-align: right;
    padding-right: 0.5rem !important;
}

.cpu-decimal-subtitle input {
    text-align:     right;
    padding-right:  0.5rem !important;
    font-weight:    600 !important;
}

.cpu-cpation-subtitle {
    font-weight: 600 !important;
}

.cpu-date-edit-drop-down .dxbl-calendar-week-number,
.cpu-date-edit-drop-down .dxbl-calendar-days-of-week th:first-child {
    visibility: hidden;
}

/*1.>overwright devxpress: */
.dxbl-fl .dxbl-row { /*brutto netto space on 3 columns*/
    margin: 0;
}

.dxbl-fl .dxbl-fl-item { /*set two columns alignment on tops*/
    align-self: baseline;
}





.dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active {
    background-color: var(--main-color) !important;
}

.dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active::before {
    background-color: var(--main-color) !important;
}

.dxbl-treeview {
    --dxbl-treeview-item-hover-bg: var(--second-color) !important;
    --dxbl-treeview-item-hover-color: var(--thrid-color) !important;
}

.dxbl-checkbox {
    --dxbl-checkbox-check-element-checked-bg: var(--main-color) !important;
    --dxbl-checkbox-check-element-checked-hover-bg: var(--second-color) !important;
    --dxbl-checkbox-radio-checked-border-color: var(--main-color) !important;
    --dxbl-checkbox-radio-check-bg: var(--main-color) !important;
}

.dxbl-btn dxbl-btn-text-secondary dxbl-active dxbl-toolbar-layout-block-item dxbl-toolbar-btn dxbl-toolbar-item dxbl-btn-last {
    --dxbl-btn-active-bg: var(--main-color) !important;
}

/* =========================================================================
   DxComboBox / DxListBox — nuclear override of blazing-berry purple (#5f368d).
   Uses direct property overrides with !important so no CSS variable scope
   or selector specificity can beat it.
   ========================================================================= */

/* SELECTED item (the one currently chosen in the list) */
.dxbl-list-box-item-selected,
.dxbl-list-box-item-selected:not(.dxbl-list-box-item-disabled),
.dxbl-list-box-item.dxbl-active,
.dxbl-combobox-list-item.dxbl-active,
.dxbl-combobox-list-item-selected,
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--main-color) !important;
    color: #fff !important;
}

/* FOCUSED item (arrow-key / hover highlight). The theme hardcodes this with
   shorthand `outline: .15rem solid #5f368d`, so we need the full outline rule. */
.dxbl-list-box-item-focused,
.dxbl-list-box > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > table > tbody > tr:focus,
.dxbl-list-box-item.dxbl-focused,
.dxbl-combobox-list-item.dxbl-focused {
    outline: .15rem solid var(--main-color) !important;
    outline-offset: calc(-1 * .15rem) !important;
}

/* HOVER state inside the dropdown */
.dxbl-list-box-item:hover:not(.dxbl-list-box-item-disabled):not(.dxbl-list-box-item-selected),
.dxbl-combobox-list-item:hover:not(.dxbl-disabled) {
    background-color: var(--second-color) !important;
    color: #fff !important;
}

/* Legacy variable fallbacks in case the selectors above miss some state */
.dxbl-list-box,
.dxbl-combobox {
    --dxbl-list-box-item-selected-bg: var(--main-color) !important;
    --dxbl-list-box-item-selected-color: #fff !important;
    --dxbl-list-box-item-hover-bg: var(--second-color) !important;
}

/* =========================================================================
   DxToolbar dropdown menus (DxToolbarItem with <Items>) & primary buttons
   Purple focus-outline on menu items + primary button background.
   ========================================================================= */

/* Menu item focus outline (arrow-key / keyboard focus in toolbar dropdown) */
.dxbl-menu,
.dxbl-menu-item {
    --dxbl-menu-item-focus-outline-color: var(--main-color) !important;
    --dxbl-menu-item-hover-bg: var(--second-color) !important;
    --dxbl-menu-item-hover-color: #fff !important;
    --dxbl-menu-item-selected-bg: var(--main-color) !important;
    --dxbl-menu-item-selected-color: #fff !important;
    --dxbl-menu-item-selected-hover-bg: var(--second-color) !important;
    --dxbl-menu-item-selected-hover-color: #fff !important;
}

/* DevExpress primary button (RenderStyle="ButtonRenderStyle.Primary" and
   DxToolbarItem primary style) uses --dxbl-btn-* variables scoped to
   .dxbl-btn-primary — NOT the Bootstrap --bs-btn-* vars. Override them here. */
.dxbl-btn-primary,
.dxbl-btn-primary:where(:not(.dxbl-btn-standalone)) {
    --dxbl-btn-bg: var(--main-color) !important;
    --dxbl-btn-border-color: var(--main-color) !important;
    --dxbl-btn-color: #fff !important;
    --dxbl-btn-hover-bg: var(--second-color) !important;
    --dxbl-btn-hover-border-color: var(--second-color) !important;
    --dxbl-btn-hover-color: #fff !important;
    --dxbl-btn-active-bg: var(--second-color) !important;
    --dxbl-btn-active-border-color: var(--second-color) !important;
    --dxbl-btn-active-color: #fff !important;
    --dxbl-btn-disabled-bg: var(--main-color) !important;
    --dxbl-btn-disabled-border-color: var(--main-color) !important;
    --dxbl-btn-disabled-color: #fff !important;
    --dxbl-btn-focus-shadow-color: rgba(105, 86, 204, 0.5) !important;
}

/* Bootstrap primary button fallback (for non-DevExpress .btn-primary elements) */
.btn-primary {
    --bs-btn-bg: var(--main-color) !important;
    --bs-btn-border-color: var(--main-color) !important;
    --bs-btn-hover-bg: var(--second-color) !important;
    --bs-btn-hover-border-color: var(--second-color) !important;
    --bs-btn-active-bg: var(--second-color) !important;
    --bs-btn-active-border-color: var(--second-color) !important;
}


/* Subscription tier badge — shown next to the user-info pill in the header. */
.tier-badge {
    display: inline-flex;
    align-items: center;
    height: 35px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid transparent;
    box-sizing: border-box;
}

.tier-badge.tier-free   { color: #fff;     border-color: #b0bec5; background: rgba(176, 190, 197, 0.20); }
.tier-badge.tier-basic  { color: #fff;     border-color: #4fc3f7; background: rgba(79,  195, 247, 0.20); }
.tier-badge.tier-pro    { color: #fff;     border-color: #66bb6a; background: rgba(102, 187, 106, 0.20); }
.tier-badge.tier-promax { color: #fff;     border-color: #ffd54f; background: rgba(255, 213,  79, 0.25); }

/* --- Documentation popup (markdown-rendered, see CalcComponent*.razor) ---------- */

.cpu-doc-popup-toolbar {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ececec;
    background: #fbfbfd;
}

.cpu-doc-popup {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2a2a2a;
    max-width: 100%;
}

.cpu-doc-popup h1,
.cpu-doc-popup h2,
.cpu-doc-popup h3,
.cpu-doc-popup h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}

.cpu-doc-popup h1 { font-size: 1.5rem;  border-bottom: 2px solid #e3e3e3; padding-bottom: 0.3rem; }
.cpu-doc-popup h2 { font-size: 1.25rem; border-bottom: 1px solid #ececec; padding-bottom: 0.25rem; }
.cpu-doc-popup h3 { font-size: 1.1rem; }
.cpu-doc-popup h4 { font-size: 1rem; }

.cpu-doc-popup > :first-child { margin-top: 0; }

.cpu-doc-popup p { margin: 0 0 0.9rem; }

.cpu-doc-popup strong { font-weight: 600; }
.cpu-doc-popup em     { font-style: italic; }

.cpu-doc-popup a {
    color: var(--main-color, #6956CC);
    text-decoration: none;
}
.cpu-doc-popup a:hover { text-decoration: underline; }

.cpu-doc-popup ul,
.cpu-doc-popup ol {
    margin: 0 0 0.9rem;
    padding-left: 1.5rem;
}
.cpu-doc-popup li { margin-bottom: 0.2rem; }

.cpu-doc-popup code {
    background: #f4f4f4;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 0.9em;
}

.cpu-doc-popup blockquote {
    margin: 0.9rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--main-color, #6956CC);
    background: #fafafa;
    color: #555;
}

.cpu-doc-popup table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.9rem 0;
    font-size: 0.92rem;
}

.cpu-doc-popup table th,
.cpu-doc-popup table td {
    border: 1px solid #d6d6d6;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    word-break: normal;
}

.cpu-doc-popup table th {
    background: #f0eef9;            /* tinted with the brand purple */
    color: #1a1a1a;
    font-weight: 600;
    text-align: left;
}

.cpu-doc-popup table tr:nth-child(even) td {
    background: #fafafa;
}

/* ---------- compact "+" add buttons in list-editor blocks (Angehoerige, DVH, Unterbrechungen, Fixbezuege) ---------- */
.fp-add-btn,
.fp-add-btn.dxbl-btn {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
}

.fp-add-btn .dxbl-btn-icon,
.fp-add-btn i {
    color: #fff !important;
    margin: 0 !important;
}

/* Stateful toolbar actions (Speichern, Zurücksetzen): filled pills.
   Enabled = solid blue with white text; disabled = solid gray. Stateless view
   buttons keep the plain ghost look — the fill marks "changes your data". */
.fp-tb-action,
.fp-tb-action .dxbl-btn,
.fp-tb-action button {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: .375rem;
}

.fp-tb-action * {
    color: #fff !important;
}

.fp-tb-action:has(button:disabled),
.fp-tb-action .dxbl-btn:disabled,
.fp-tb-action button:disabled,
.fp-tb-action .dxbl-disabled {
    background-color: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    opacity: 1 !important;
}

.fp-tb-action:has(button:disabled) * {
    color: #64748b !important;
}

/* compact icon-only action button (e.g. Speichern in the page header) */
.fp-btn-ico,
.fp-btn-ico.dxbl-btn {
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
}

.fp-btn-ico i {
    margin: 0 !important;
}

/* contract icon next to the DV selector */
.fp-dv-ico {
    color: #2563eb;
    font-size: 1rem;
}

/* ---------- shared page header bar (Dienstnehmer-style) ---------- */
.fp-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: .5rem;
    padding: .5rem .75rem;
    margin-bottom: .5rem;
}

.fp-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.fp-sub {
    color: #64748b;
    font-weight: 400;
    font-size: .85rem;
}

.fp-badge {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    padding: .15rem .6rem;
}

.fp-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.fp-hint {
    color: #94a3b8;
    font-size: .78rem;
    margin: .25rem 0 0;
}

/* red danger buttons (Entfernen / Löschen) — white text */
.fp-btn-danger,
.fp-btn-danger.dxbl-btn,
button.fp-btn-danger {
    --dxbl-btn-color: #fff;
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.fp-btn-danger * {
    color: #fff !important;
}

/* blue edit buttons (Bearbeiten) — white text */
.fp-btn-edit,
.fp-btn-edit.dxbl-btn,
button.fp-btn-edit {
    --dxbl-btn-color: #fff;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.fp-btn-edit * {
    color: #fff !important;
}

.fp-add-btn * {
    color: #fff !important;
}
