html, body {
    font-family: var(--app-font-family, 'Helvetica Neue', Helvetica, Arial, sans-serif);
    font-size: var(--app-font-size, 14px);
}

/* Secondary / orange accent: theme Secondary + --app-secondary (same as Login “Register”, member zahtjevi “uvjete”). */
a.app-link-secondary-emphasis.mud-link,
a.register-link-emphasis.mud-link {
    color: var(--app-secondary, var(--mud-palette-secondary)) !important;
    font-weight: 600;
    text-decoration: none;
}

a.app-link-secondary-emphasis.mud-link:hover,
a.register-link-emphasis.mud-link:hover {
    color: var(--app-secondary, var(--mud-palette-secondary)) !important;
    text-decoration: underline;
}

.mud-button-root.app-link-secondary-emphasis.mud-button-text {
    color: var(--app-secondary, var(--mud-palette-secondary)) !important;
    font-weight: 600;
}

.mud-button-root.app-link-secondary-emphasis.mud-button-text:hover {
    text-decoration: underline;
}

/* Računi: Pripremi eRačun — yellow fill (theme Secondary), white label. */
.mud-button-root.racuni-prepare-eracun.mud-button-filled {
    color: #fff !important;
}

.mud-button-root.racuni-prepare-eracun.mud-button-filled .mud-button-label {
    color: #fff !important;
}

a, .btn-link {
    color: var(--app-primary, var(--mud-palette-primary, #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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxj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ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

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

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Admin zahtjevi grid: compact columns without horizontal scroll. */
.admin-zahtjevi-table .mud-table-cell {
    font-size: 0.78rem;
    padding: 4px 6px;
    vertical-align: middle;
}

.admin-zahtjevi-table .mud-table-head .mud-table-cell {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Pregled zahtjeva grid: tighter column spacing than the MudBlazor dense default (16px / 24px). */
.pregled-zahtjeva-table .mud-table-cell {
    padding: 4px 8px;
}

.pregled-zahtjeva-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pregled-zahtjeva-actions .pregled-zahtjeva-action {
    min-width: 44px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
}

.pregled-zahtjeva-actions .pregled-zahtjeva-action .mud-icon-root {
    font-size: 1.4rem;
}

.admin-zahtjevi-col-money {
    text-align: right;
    white-space: nowrap;
}

.admin-zahtjevi-col-nowrap {
    white-space: nowrap;
}

.admin-zahtjevi-col-ellipsis {
    max-width: 7rem;
}

.admin-zahtjevi-ellipsis {
    display: inline-block;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.admin-zahtjevi-detail-row > td {
    padding: 0 !important;
    border-bottom: none;
}

.admin-zahtjevi-detail-row + tr > td,
.admin-zahtjevi-table tbody > tr:not(.admin-zahtjevi-detail-row) > td {
    border-bottom: 1px solid var(--mud-palette-table-lines, rgba(0, 0, 0, 0.12));
}

/* Member multi-section zahtjevi: section headings (KUP pozajmica, izjava obustave, …). */
.member-zahtjev-section-heading {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mud-palette-primary);
    background-color: var(--mud-palette-action-default-hover, rgba(0, 0, 0, 0.04));
    border-left: 3px solid var(--mud-palette-primary);
    padding: 0.6rem 0.85rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 0.25rem;
}

.member-zahtjev-section-heading .mud-typography {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
}

.pkup-section-3-subitems {
    padding-left: 1.25rem;
}

.pkup-sub-block + .pkup-sub-block {
    margin-top: 1.25rem;
}

.pkup-sub-label {
    display: block;
    padding-left: 1.35rem;
    text-indent: -1.35rem;
    margin-bottom: 0.5rem;
}

.pkup-sub-fields {
    padding-left: 1.35rem;
    max-width: 21.35rem;
}

/* Pending registrations: equal-width stacked row actions. */
.pending-registration-actions .mud-button-root {
    white-space: normal;
    line-height: 1.25;
    min-height: 2rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.pending-registration-actions .mud-button-label {
    white-space: normal;
}

/* MudBlazor paints the stripe on the row with a stronger selector than
   .selected-member-row, so a clicked shaded row stayed gray. The mark is
   applied on the cells so it covers that band on every grid. */
.mud-table-row.selected-member-row > td,
.mud-table-row.selected-workorder-row > td,
.mud-table-row.mud-table-row-selected > td,
.mud-table-hover .mud-table-row.selected-member-row:hover > td,
.mud-table-hover .mud-table-row.selected-workorder-row:hover > td,
.mud-table-hover .mud-table-row.mud-table-row-selected:hover > td {
    background-color: rgba(25, 118, 210, 0.12) !important;
}

/* AppOption Ui:TabsDensity = Compact. MudBlazor tab bar is 48px with a 160px min width. */
.app-tabs-compact .mud-tabs-tabbar .mud-tabs-tabbar-inner {
    min-height: 38px;
}

.app-tabs-compact .mud-tab {
    min-height: 38px;
    min-width: 96px !important;
    padding: 6px 16px;
    font-size: 0.8125rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.app-tabs-compact .mud-tabs-scroll-button .mud-icon-button {
    width: 38px;
    height: 38px;
    padding: 6px;
}

.clan-detalji-feedback:focus {
    outline: 2px solid var(--mud-palette-primary, #006bb7);
    outline-offset: 2px;
}

/* AppOption EmployeeMembers:MemberDialogDensity = Compact (ClanDetaljiDialog). Same layout, smaller fields and text.
   Inputs already use Margin.Dense; the label offset below matches the shorter dense slot. */
.clan-detalji--compact .mud-dialog-content {
    padding-top: 4px;
    padding-bottom: 4px;
}

.clan-detalji--compact .mud-dialog-title {
    padding-top: 8px;
    padding-bottom: 4px;
}

.clan-detalji--compact .mud-input,
.clan-detalji--compact .mud-input-label,
.clan-detalji--compact .mud-checkbox .mud-typography,
.clan-detalji--compact .mud-select-input {
    font-size: 0.8125rem;
}

.clan-detalji--compact .mud-input-helper-text {
    font-size: 0.6875rem;
}

.clan-detalji--compact .mud-input-control-helper-container {
    margin-top: 0;
}

.clan-detalji--compact .mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense,
.clan-detalji--compact div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    padding-top: 7px;
    padding-bottom: 7px;
}

.clan-detalji--compact .mud-input-label-outlined.mud-input-label-margin-dense {
    transform: translate(14px, 8px) scale(1);
}

.clan-detalji--compact .mud-input-adornment .mud-icon-button {
    padding: 2px;
}

.clan-detalji--compact .mud-input-adornment .mud-icon-root {
    font-size: 1.125rem;
}

.clan-detalji--compact .mud-typography-h6 {
    font-size: 1rem;
    line-height: 1.3;
}

.clan-detalji--compact .mud-typography-subtitle2 {
    font-size: 0.78rem;
    line-height: 1.2;
}

.clan-detalji--compact .mud-typography-caption {
    font-size: 0.7rem;
}

.clan-detalji--compact .mud-tabs-tabbar .mud-tabs-tabbar-inner {
    min-height: 38px;
}

.clan-detalji--compact .mud-tab {
    min-height: 38px;
    padding: 6px 16px;
    font-size: 0.8125rem;
}

.clan-detalji--compact .mud-dialog-actions {
    padding-top: 4px;
    padding-bottom: 6px;
}

/* Član detalji / novi član: fixed height so switching tabs (Detalji vs Humanitarni fond) does not resize the dialog. */
.mud-dialog:has(#clan-detalji-dialog-body) {
    height: calc(100vh - var(--mud-appbar-height));
    height: calc(100dvh - var(--mud-appbar-height));
}

.clan-detalji-section-title,
.clan-detalji-section-title .mud-typography {
    font-weight: 700 !important;
}

/* SING member details: fixed rows at every width (Prezime…Datum rođenja, Upis…Banka, adresa stanovanja row, posao row). */
.clan-detalji--sing .mud-grid-item.cd-sing-w10 { flex: 0 0 10%; max-width: 10%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w11 { flex: 0 0 11%; max-width: 11%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w12 { flex: 0 0 12%; max-width: 12%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w13 { flex: 0 0 13%; max-width: 13%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w14 { flex: 0 0 14%; max-width: 14%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w15 { flex: 0 0 15%; max-width: 15%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w16 { flex: 0 0 16%; max-width: 16%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w17 { flex: 0 0 17%; max-width: 17%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w18 { flex: 0 0 18%; max-width: 18%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w19 { flex: 0 0 19%; max-width: 19%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w20 { flex: 0 0 20%; max-width: 20%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w23 { flex: 0 0 23%; max-width: 23%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w24 { flex: 0 0 24%; max-width: 24%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w40 { flex: 0 0 40%; max-width: 40%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w42 { flex: 0 0 42%; max-width: 42%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w25 { flex: 0 0 25%; max-width: 25%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w26 { flex: 0 0 26%; max-width: 26%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w32 { flex: 0 0 32%; max-width: 32%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w34 { flex: 0 0 34%; max-width: 34%; }
.clan-detalji--sing .mud-grid-item.cd-sing-w6th { flex: 0 0 16.6667%; max-width: 16.6667%; }
