html, body {
    font-family: var(--nw-font-family);
}

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

.btn-primary {
    color: var(--nw-ui-on-accent);
    background-color: #1b6ec2;
    border-color: var(--nw-ui-info-border);
}

.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 var(--nw-ui-ok-border);
}

.invalid {
    outline: 1px solid var(--nw-ui-danger-border);
}

.validation-message {
    color: var(--nw-ui-danger-text);
}

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

/* Internal CUSTOMER.txt keys remain in the markup for data mapping, but are never shown to staff. */
.qualifications-card .code-note,
.qualifications-card .qual-grid small,
.qualifications-card .wide-field small {
    display: none !important;
}


/* System-wide readability floor for tab content. */
.app-shell {
    font-size: var(--nw-font-sm);
}

.app-shell :where(p, a, small, span, label, input, select, textarea, td, th),
.app-shell button:not(.icon-button):not(.modal-close):not(.workspace-tab-close),
.app-shell :where(.panel-footer, .panel-footer *) {
    font-size: var(--nw-font-sm) !important;
}


/* Compact system geometry: reduce excessive rounding across the CRM. */
.app-shell :where(button, input, textarea, select, section, article, aside, table, div, a, span) {
    border-radius: var(--nw-radius-md) !important;
}

.app-shell :where(.avatar, .user-badge, .status-dot, .tab-draft-dot) {
    border-radius: 50% !important;
}


/* White theme: global fallback for page-scoped components. */
.app-shell.theme-light .data-panel,
.app-shell.theme-light .summary-card,
.app-shell.theme-light .metric-card,
.app-shell.theme-light .stat-card,
.app-shell.theme-light .new-application-panel,
.app-shell.theme-light .customer-proclamations-card,
.app-shell.theme-light .documents-panel,
.app-shell.theme-light .candidate-summary,
.app-shell.theme-light .application-modal-section,
.app-shell.theme-light .customer-application-modal,
.app-shell.theme-light .fek-modal,
.app-shell.theme-light .column-picker,
.app-shell.theme-light .filter-panel,
.app-shell.theme-light .field-groups details,
.app-shell.theme-light .field-options label {
    background: #fff !important;
    color: #20242a !important;
    border-color: #c8cfd7 !important;
}

.app-shell.theme-light .metric-card:hover,
.app-shell.theme-light tbody tr:hover,
.app-shell.theme-light .field-options label:hover {
    background: #e9edf1 !important;
}

.app-shell.theme-light .metric-card span,
.app-shell.theme-light .metric-card small,
.app-shell.theme-light .stat-card span,
.app-shell.theme-light .stat-card small,
.app-shell.theme-light .summary-card span,
.app-shell.theme-light .summary-card small {
    color: #56616e !important;
}

.app-shell.theme-light .metric-card strong,
.app-shell.theme-light .stat-card strong,
.app-shell.theme-light .summary-card strong {
    color: #15191e !important;
}

.app-shell.theme-light .status-tag,
.app-shell.theme-light .payment-tag,
.app-shell.theme-light .application-status,
.app-shell.theme-light .payment-status,
.app-shell.theme-light .status.active,
.app-shell.theme-light .status.appointed,
.app-shell.theme-light .demo-badge {
    color: #fff !important;
}

.app-shell.theme-light .status-tag *,
.app-shell.theme-light .payment-tag *,
.app-shell.theme-light .application-status *,
.app-shell.theme-light .payment-status *,
.app-shell.theme-light .status.active *,
.app-shell.theme-light .status.appointed *,
.app-shell.theme-light .demo-badge * {
    color: inherit !important;
}

.app-shell.theme-light .customer-link,
.app-shell.theme-light .proclamation-link,
.app-shell.theme-light .application-link {
    color: #20242a !important;
}

.app-shell.theme-light .customer-link:hover,
.app-shell.theme-light .proclamation-link:hover,
.app-shell.theme-light .application-link:hover {
    color: #d95722 !important;
}

.app-shell.theme-light .field-options label span,
.app-shell.theme-light .field-groups summary,
.app-shell.theme-light .picker-head strong {
    color: #20242a !important;
}

.app-shell.theme-light .field-options label small,
.app-shell.theme-light .field-groups summary span,
.app-shell.theme-light .picker-head span {
    color: #657180 !important;
}


/* White theme: page-specific component coverage. */
.app-shell.theme-light .customer-application-stats,
.app-shell.theme-light .selection-toolbar,
.app-shell.theme-light .customer-application-modal-head,
.app-shell.theme-light .customer-application-modal-footer,
.app-shell.theme-light .application-modal-head,
.app-shell.theme-light .transfer-modal header,
.app-shell.theme-light .transfer-modal footer {
    background: #f4f6f8 !important;
    color: #20242a !important;
    border-color: #c8cfd7 !important;
}

.app-shell.theme-light .customer-application-stats > div,
.app-shell.theme-light .application-overview-grid > div,
.app-shell.theme-light .application-modal-section,
.app-shell.theme-light .application-comments,
.app-shell.theme-light .payment-readonly,
.app-shell.theme-light .column-options label,
.app-shell.theme-light .customer-suggestions,
.app-shell.theme-light .customer-suggestions > button,
.app-shell.theme-light .selected-customer,
.app-shell.theme-light .profile-summary > div,
.app-shell.theme-light .proclamation-field,
.app-shell.theme-light .field-value,
.app-shell.theme-light .readonly-field {
    background: #fff !important;
    color: #20242a !important;
    border-color: #c8cfd7 !important;
}

.app-shell.theme-light .customer-application-stats span,
.app-shell.theme-light .application-overview-grid span,
.app-shell.theme-light .application-overview-grid small,
.app-shell.theme-light .payment-readonly small,
.app-shell.theme-light .column-options label,
.app-shell.theme-light .column-options label span,
.app-shell.theme-light .column-options label small,
.app-shell.theme-light .selection-toolbar span,
.app-shell.theme-light .profile-summary span,
.app-shell.theme-light .proclamation-field small {
    color: #56616e !important;
}

.app-shell.theme-light .customer-application-stats strong,
.app-shell.theme-light .application-overview-grid strong,
.app-shell.theme-light .payment-readonly strong,
.app-shell.theme-light .selection-toolbar strong,
.app-shell.theme-light .profile-summary strong,
.app-shell.theme-light .proclamation-field strong,
.app-shell.theme-light .field-value {
    color: #15191e !important;
}

.app-shell.theme-light .columns-button,
.app-shell.theme-light .toolbar-button,
.app-shell.theme-light .column-picker button,
.app-shell.theme-light .selection-actions button,
.app-shell.theme-light .edit-button,
.app-shell.theme-light .secondary-button,
.app-shell.theme-light .close-panel,
.app-shell.theme-light .modal-close,
.app-shell.theme-light .customer-application-modal-head button,
.app-shell.theme-light .customer-application-modal-footer button,
.app-shell.theme-light .application-detail-tabs button {
    background: #eef1f4 !important;
    color: #26313d !important;
    border-color: #c3cad2 !important;
}

.app-shell.theme-light .columns-button.active,
.app-shell.theme-light .application-detail-tabs button.active {
    background: #fff1ea !important;
    color: #c94e1d !important;
    border-color: #ef6c35 !important;
}

.app-shell.theme-light .delete-button,
.app-shell.theme-light .selection-actions .delete-selection {
    background: #fff5f3 !important;
    color: #b83d2d !important;
    border-color: #d7a29a !important;
}

.app-shell.theme-light .category-tag,
.app-shell.theme-light .pdf-button.available,
.app-shell.theme-light .pdf-button.missing {
    color: #fff !important;
}

.app-shell.theme-light .category-tag *,
.app-shell.theme-light .pdf-button.available *,
.app-shell.theme-light .pdf-button.missing * {
    color: inherit !important;
}

.app-shell.theme-light .customer-suggestions > button:hover:not(:disabled),
.app-shell.theme-light .column-options label:hover {
    background: #e9edf1 !important;
}


/* Shared management workspace chrome; the route envelope lives in crm-layout.css. */
.management-page.management-page > .page-head,
.management-page.management-page > .configuration-head {
    box-sizing: border-box;
    min-height: 58px;
    margin: 0 0 var(--nw-space-3);
    padding: 0 0 var(--nw-space-3);
    border-bottom: 1px solid var(--nw-ui-border);
    align-items: flex-start;
}

.management-page.management-page > .page-head h1,
.management-page.management-page > .configuration-head h1 {
    margin: 0 0 var(--nw-space-1);
    color: var(--nw-ui-text-strong);
    font-size:var(--nw-font-heading);
    line-height: 1.2;
}

.management-page.management-page > .page-head p,
.management-page.management-page > .configuration-head p {
    margin: 0;
    color: var(--nw-ui-text-muted);
    font-size:var(--nw-font-sm);
    line-height: 1.45;
}

.management-page.management-page > .page-head button,
.management-page.management-page > .configuration-head button,
.management-page.management-page > .page-head .autosave-indicator,
.management-page.management-page > .page-head .as-of {
    margin-top: var(--nw-space-0);
}

.theme-light .management-page.management-page > .page-head,
.theme-light .management-page.management-page > .configuration-head {
    border-bottom-color: #c8cfd7;
}

.theme-light .management-page.management-page > .page-head h1,
.theme-light .management-page.management-page > .configuration-head h1 {
    color: #20242a;
}

@media (max-width: 620px) {
    .management-page.management-page > .page-head,
    .management-page.management-page > .configuration-head {
        min-height: 0;
    }
}


/* Unified entity-list template */
body .data-panel.entity-list-template{border:1px solid var(--nw-ui-border);background:var(--nw-ui-surface);border-radius:var(--nw-radius-lg);overflow:hidden}
body .entity-list-template .toolbar{display:flex;justify-content:space-between;align-items:center;gap:var(--nw-space-2);padding:var(--nw-space-toolbar);border-bottom:1px solid var(--nw-ui-border)}
body .entity-list-template .search-box{box-sizing:border-box;flex:0 1 340px;width:min(340px,29%);height:var(--nw-space-toolbar-control);border:1px solid var(--nw-ui-border-strong);background:var(--nw-ui-surface-inset);border-radius:var(--nw-radius-md);display:flex;align-items:center;gap:var(--nw-space-2);padding:0 var(--nw-space-3);color:var(--nw-ui-text-faint)}
body .entity-list-template .search-box input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--nw-ui-text);font-family:var(--nw-font-family);font-size:var(--nw-font-sm);font-weight:400}
body .entity-list-template .toolbar-actions,
body .entity-list-template .toolbar-options{display:flex;align-items:center;justify-content:flex-end;gap:var(--nw-space-2);flex-wrap:nowrap;min-width:0}
body .entity-list-template .toolbar-actions button,
body .entity-list-template .toolbar-options button,
body .entity-list-template .toolbar-actions select,
body .entity-list-template .toolbar-options select{box-sizing:border-box;height:var(--nw-space-toolbar-control);border:1px solid var(--nw-ui-border-strong);border-radius:var(--nw-radius-md);background:var(--nw-ui-control-bg);color:var(--nw-ui-text-soft);padding:0 var(--nw-space-3);font-family:var(--nw-font-family);font-size:var(--nw-font-sm);font-weight:400}
body .entity-list-template .toolbar-actions button,
body .entity-list-template .toolbar-options button{cursor:pointer}
body .entity-list-template .toolbar-actions .primary-action,
body .entity-list-template .toolbar-options .primary-action,
body .entity-list-template .toolbar-actions .add-customer-button,
body .entity-list-template .toolbar-options .add-customer-button{border-color:var(--nw-ui-accent);background:var(--nw-ui-accent);color:var(--nw-ui-on-accent);font-weight:800}
body .entity-list-template .table-wrap{overflow:auto}
body .entity-list-template table{width:100%;border-collapse:collapse;min-width:850px}
body .entity-list-template th{box-sizing:border-box;height:41px;text-align:left;vertical-align:middle;color:var(--nw-ui-text-faint);font-family:var(--nw-font-family);font-size:var(--nw-font-xs);letter-spacing:.06em;text-transform:uppercase;font-weight:600;background:var(--nw-ui-surface);padding:0 var(--nw-space-3) !important;border-bottom:1px solid var(--nw-ui-border);white-space:nowrap}
body .entity-list-template th,
body .entity-list-template td{border-right:1px solid var(--nw-ui-border-strong)}
body .entity-list-template th:last-child,
body .entity-list-template td:last-child{border-right:0}
body .entity-list-template td{box-sizing:border-box;height:var(--nw-list-row-height,45px);vertical-align:middle;color:var(--nw-ui-text);font-family:var(--nw-font-family);font-size:var(--nw-font-sm);font-weight:400;padding:0 var(--nw-space-3) !important;border-bottom:1px solid var(--nw-ui-border);white-space:nowrap}
body .entity-list-template td.row-actions{height:var(--nw-list-row-height,45px);align-items:center}
body .entity-list-template tbody tr:hover{background:var(--nw-ui-surface)}
body .entity-list-template .column-head-content{display:flex;align-items:center;gap:var(--nw-space-1);width:100%;min-width:max-content}
body .entity-list-template .column-order-controls{display:inline-flex!important;align-items:center;gap:var(--nw-space-0);margin-left:auto;padding-left:var(--nw-space-2)}
body .entity-list-template .column-order-controls button{display:inline-flex!important;align-items:center;justify-content:center;width:17px;height:17px;min-height:17px;padding:0;border:1px solid transparent;border-radius:var(--nw-radius-sm);background:transparent;color:var(--nw-ui-text-faint);font-size:var(--nw-font-sm);font-weight:700;line-height:1;cursor:pointer}
body .entity-list-template .column-order-controls button:hover:not(:disabled){border-color:var(--nw-ui-border-hover);background:var(--nw-ui-control-bg);color:var(--nw-ui-text)}
body .entity-list-template .column-order-controls button:disabled{opacity:.25;cursor:default}
body .entity-list-template .sort-indicator{display:inline-flex;align-items:center;justify-content:center;min-width:13px;margin-left:var(--nw-space-2);color:var(--nw-ui-text-faint);font-size:var(--nw-font-sm);font-weight:800;letter-spacing:0}
body .entity-list-template .sort-indicator.active{color:var(--nw-ui-accent-text)}
body .entity-list-template .panel-footer{box-sizing:border-box;min-height:58px;padding:var(--nw-space-3) var(--nw-space-3);display:flex;align-items:center;justify-content:space-between;gap:var(--nw-space-4);color:var(--nw-ui-text-faint);font-size:var(--nw-font-sm);border-top:0;background:var(--nw-ui-surface)}
body .entity-list-template .page-size{display:flex;align-items:center;gap:var(--nw-space-2)}
body .entity-list-template .page-size select{height:32px;background:var(--nw-ui-control-bg);color:var(--nw-ui-text);border:1px solid var(--nw-ui-border-strong);border-radius:var(--nw-radius-md);padding:0 var(--nw-space-5) 0 var(--nw-space-2);font-size:var(--nw-font-sm)}
body .entity-list-template .result-count{display:flex;align-items:center;gap:var(--nw-space-3);padding:0}
body .entity-list-template .result-count strong{color:var(--nw-ui-text);font-size:var(--nw-font-sm);font-weight:400}
body .entity-list-template .pager{display:flex;align-items:center;gap:var(--nw-space-2)}
body .entity-list-template .pager button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:34px;padding:0;background:var(--nw-ui-control-bg);color:var(--nw-ui-text-soft);border:1px solid var(--nw-ui-border-strong);border-radius:var(--nw-radius-md);font-size:var(--nw-font-sm);cursor:pointer}
body .entity-list-template .pager button:disabled{opacity:.4;cursor:default}
body .entity-metrics-template{gap:var(--nw-space-3);margin-top:var(--nw-space-3)}
body .entity-metrics-template .metric-card,
body .entity-metrics-template .summary-card{box-sizing:border-box;min-height:92px;border-radius:var(--nw-radius-lg);padding:var(--nw-space-3) var(--nw-space-3);font-family:var(--nw-font-family)}
body .entity-metrics-template .metric-card span,
body .entity-metrics-template .summary-card span{display:block;color:var(--nw-ui-text-muted);font-size:var(--nw-font-sm);font-weight:400}
body .entity-metrics-template .metric-card strong,
body .entity-metrics-template .summary-card strong{display:block;color:var(--nw-ui-text-strong);font-size:var(--nw-font-heading);font-weight:400;margin-top:var(--nw-space-2)}
body .entity-metrics-template .metric-card small,
body .entity-metrics-template .summary-card small{display:block;color:var(--nw-ui-text-faint);font-size:var(--nw-font-xs);font-weight:400;margin-top:var(--nw-space-1)}
@media(max-width:1100px){body .entity-list-template .search-box{width:min(340px,50%)}body .entity-list-template .toolbar-options{flex-wrap:wrap}}
@media(max-width:700px){body .entity-list-template .toolbar{align-items:stretch;flex-direction:column;gap:var(--nw-space-3)}body .entity-list-template .search-box{width:auto}body .entity-list-template .toolbar-actions,body .entity-list-template .toolbar-options{flex-wrap:wrap;justify-content:flex-start}body .entity-list-template .panel-footer{align-items:stretch;flex-direction:column}body .entity-list-template .result-count{justify-content:space-between}}


/* Shared column-filter language */
.grid-column-filter{position:relative;display:inline-flex;align-items:center;margin-left:auto;font-family:inherit;font-weight:400}
.grid-column-filter-trigger{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;border:1px solid transparent!important;border-radius:var(--nw-radius-sm) !important;background:transparent!important;color:var(--nw-ui-text-faint)!important;cursor:pointer}
.grid-column-filter-trigger:hover,.grid-column-filter-trigger.active{border-color:#747d87!important;background:var(--nw-ui-control-bg)!important;color:var(--nw-ui-accent)!important}
.grid-column-filter-trigger svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.grid-column-filter-trigger i{position:absolute;right:1px;top:1px;width:4px;height:4px;border-radius:50%;background:var(--nw-ui-accent)}
body .entity-list-template th.reorderable-column{cursor:pointer}
body .entity-list-template .column-head-content{min-width:0;gap:var(--nw-space-1)}
body .entity-list-template .column-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .entity-list-template .sort-indicator{display:none;min-width:0;margin-left:var(--nw-space-0);color:var(--nw-ui-accent-text)}
body .entity-list-template .sort-indicator.active{display:inline-flex}
body .entity-list-template .grid-column-sort{display:inline-flex!important;align-items:center;gap:var(--nw-space-1);min-width:0;flex:1;height:100%!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font:inherit!important;letter-spacing:inherit;text-transform:inherit;text-align:left;cursor:pointer}
body .entity-list-template .grid-column-sort span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .entity-list-template .grid-column-sort b{flex:0 0 auto;color:var(--nw-ui-accent-text);font-size:var(--nw-font-sm)}
body .entity-list-template .grid-column-filter{flex:0 0 auto;margin-left:auto}
.grid-column-filter-popover[popover]{position:fixed;inset:auto;margin:0;z-index:2147483000;box-sizing:border-box;width:280px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);padding:var(--nw-space-2) 0 0;border:1px solid var(--nw-ui-border-hover);border-radius:var(--nw-radius-md);background:var(--nw-ui-surface);color:var(--nw-ui-text);box-shadow:0 10px 28px rgba(0,0,0,.42);overflow:hidden;text-align:left;text-transform:none;letter-spacing:normal;font-family:inherit;font-size:var(--nw-font-sm);font-weight:400;line-height:1.35}
.grid-column-filter-popover[popover]::backdrop{background:transparent}
.grid-column-filter-popover[popover] button,
.grid-column-filter-popover[popover] input,
.grid-column-filter-popover[popover] label,
.grid-column-filter-popover[popover] span{font-family:inherit;font-weight:400}
.grid-filter-search{display:flex;align-items:center;gap:var(--nw-space-2);height:32px;margin:0 var(--nw-space-2) var(--nw-space-2);padding:0 var(--nw-space-2);border:1px solid var(--nw-ui-border-strong);border-radius:var(--nw-radius-md);background:var(--nw-ui-surface-inset);color:var(--nw-ui-text-faint)}
.grid-filter-search input{box-sizing:border-box;width:100%;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--nw-ui-text);font-size:var(--nw-font-sm)}
.grid-filter-all{box-sizing:border-box;display:grid!important;grid-template-columns:17px minmax(0,1fr);align-items:center;gap:var(--nw-space-2);width:calc(100% - 18px)!important;height:30px!important;min-height:30px!important;margin:0 var(--nw-space-2) var(--nw-space-1);padding:0 var(--nw-space-2) !important;border:0!important;border-radius:var(--nw-radius-sm) !important;background:transparent!important;color:var(--nw-ui-text)!important;text-align:left;cursor:pointer}
.grid-filter-all:hover{background:var(--nw-ui-control-bg)!important}
.grid-filter-checkbox{display:grid;place-items:center;width:14px;height:14px;border:1px solid #59616b;border-radius:var(--nw-radius-sm);color:transparent;font-size:var(--nw-font-xs);font-weight:400}
.grid-filter-checkbox.checked{border-color:var(--nw-ui-accent);background:var(--nw-ui-accent);color:var(--nw-ui-on-accent)}
.grid-filter-options,.grid-filter-date-tree{max-height:230px;overflow:auto;padding:0 var(--nw-space-2) var(--nw-space-2)}
.grid-filter-options label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:var(--nw-space-2);min-height:28px;padding:0 var(--nw-space-2);border-radius:var(--nw-radius-sm);color:var(--nw-ui-text);font-size:var(--nw-font-sm);font-weight:400;cursor:pointer}
.grid-filter-options label:hover,.grid-filter-tree-row:hover{background:var(--nw-ui-control-bg)}
.grid-filter-options label input,.grid-filter-date-tree input{width:14px;height:14px;margin:0;accent-color:var(--nw-ui-accent)}
.grid-filter-options label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grid-filter-empty{padding:var(--nw-space-5) var(--nw-space-2);color:var(--nw-ui-text-muted);text-align:center;font-size:var(--nw-font-sm);font-weight:400}
.grid-filter-range{display:grid;grid-template-columns:1fr 1fr;gap:var(--nw-space-2);padding:var(--nw-space-2) var(--nw-space-2) var(--nw-space-3)}
.grid-filter-range label{display:flex;flex-direction:column;gap:var(--nw-space-2);color:var(--nw-ui-text-soft);font-size:var(--nw-font-sm);font-weight:400}
.grid-filter-range input{box-sizing:border-box;width:100%;height:32px;padding:0 var(--nw-space-2);border:1px solid var(--nw-ui-border-strong);border-radius:var(--nw-radius-md);background:var(--nw-ui-surface-inset);color:var(--nw-ui-text);font-size:var(--nw-font-sm);font-weight:400}
.grid-filter-year-hint{margin:-5px 9px 12px;color:var(--nw-ui-text-muted);font-size:var(--nw-font-sm);font-weight:400}
.grid-filter-tree-row{display:grid;grid-template-columns:18px 18px minmax(0,1fr);align-items:center;min-height:28px;border-radius:var(--nw-radius-sm);color:var(--nw-ui-text);font-size:var(--nw-font-sm);font-weight:400}
.grid-filter-tree-row.month{padding-left:var(--nw-space-3)}
.grid-filter-tree-row.day{padding-left:var(--nw-space-5);cursor:pointer}
.grid-filter-expander,.grid-filter-tree-label{height:28px!important;min-height:28px!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font-size:var(--nw-font-sm) !important;font-weight:400!important;text-align:left}
.grid-filter-expander{font-size:var(--nw-font-xl) !important;line-height:1}
.grid-column-filter-popover[popover] footer{display:flex;align-items:center;justify-content:space-between;gap:var(--nw-space-2);margin-top:var(--nw-space-0);padding:var(--nw-space-2) var(--nw-space-2);border-top:1px solid var(--nw-ui-border);background:var(--nw-ui-surface);border-radius:0 0 var(--nw-radius-md) var(--nw-radius-md)}
.grid-filter-footer-actions{display:flex;align-items:center;gap:var(--nw-space-2)}
.grid-column-filter-popover[popover] footer button{height:29px!important;min-height:29px!important;padding:0 var(--nw-space-3) !important;border:1px solid var(--nw-ui-border-hover)!important;border-radius:var(--nw-radius-md) !important;background:var(--nw-ui-control-bg)!important;color:var(--nw-ui-text)!important;font-size:var(--nw-font-sm) !important;font-weight:400!important;cursor:pointer}
.grid-column-filter-popover[popover] footer .grid-filter-clear{border-color:transparent!important;background:transparent!important;color:var(--nw-ui-accent-text)!important}
.grid-column-filter-popover[popover] footer .grid-filter-clear:hover{border-color:var(--nw-ui-warn-border)!important;background:#33271f!important}
.grid-column-filter-popover[popover] footer .grid-filter-apply{border-color:var(--nw-ui-accent)!important;background:var(--nw-ui-accent)!important;color:var(--nw-ui-on-accent)!important}
.grid-column-filter-popover[popover] footer button:disabled{opacity:.42;cursor:not-allowed}
.clear-grid-filters{white-space:nowrap}
.clear-grid-filters:not(:disabled){border-color:var(--nw-ui-accent)!important;color:var(--nw-ui-accent-text)!important}
.app-shell.theme-light .grid-column-filter-trigger:hover,.app-shell.theme-light .grid-column-filter-trigger.active{background:#eef1f4!important}
.app-shell.theme-light .grid-column-filter-popover[popover]{border-color:#aeb6bf;background:#fff;color:#26303a;box-shadow:0 8px 24px rgba(31,41,55,.22)}
.app-shell.theme-light .grid-filter-search,.app-shell.theme-light .grid-filter-range input{border-color:#cbd1d8;background:#fff;color:#1f2933}
.app-shell.theme-light .grid-filter-search input{color:#1f2933}
.app-shell.theme-light .grid-filter-all{color:#26303a!important}
.app-shell.theme-light .grid-filter-all:hover,.app-shell.theme-light .grid-filter-options label:hover,.app-shell.theme-light .grid-filter-tree-row:hover{background:#eef1f4!important}
.app-shell.theme-light .grid-filter-options label,.app-shell.theme-light .grid-filter-tree-row{color:#26303a}
.app-shell.theme-light .grid-column-filter-popover[popover] footer{border-color:#d8dde3;background:#f5f7f9}
.app-shell.theme-light .grid-column-filter-popover[popover] footer button{border-color:#c5ccd3!important;background:#fff!important;color:#26303a!important}
.app-shell.theme-light .grid-column-filter-popover[popover] footer .grid-filter-clear{border-color:transparent!important;background:transparent!important;color:#d95822!important}
.app-shell.theme-light .grid-column-filter-popover[popover] footer .grid-filter-apply{border-color:#ef6c35!important;background:#ef6c35!important;color:#fff!important}

/* One grid-header language for operational tables */
body .journal-table .column-head-content{display:flex;align-items:center;gap:var(--nw-space-1);width:100%;min-width:0}
body .journal-table .grid-column-sort{display:inline-flex!important;align-items:center;gap:var(--nw-space-1);min-width:0;flex:1;height:100%!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font:inherit!important;letter-spacing:inherit;text-transform:inherit;text-align:left;cursor:pointer}
body .journal-table .grid-column-sort span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .journal-table .grid-column-sort b{flex:0 0 auto;color:var(--nw-ui-accent-text);font-size:var(--nw-font-sm)}
body .journal-table .grid-column-filter{flex:0 0 auto;margin-left:auto}
body .journal-table .grid-column-filter-trigger{width:20px!important;height:20px!important;min-height:20px!important;border-radius:var(--nw-radius-sm) !important}

/* Selection checkbox column of the customer / application lists (custom message). */
.select-column{width:32px;text-align:center;padding-left:6px!important;padding-right:6px!important}
.select-column input[type="checkbox"]{width:15px;height:15px;cursor:pointer}

/* Contextual list-toolbar icons (26/10/2026).
   The generic "body .entity-list-template .toolbar-actions button" rule above has
   higher specificity than component-level border:0, so icon borders survived
   the earlier change. Override that rule in the global sheet itself.
   Deliberately exclude search boxes, filters, text buttons, modal actions,
   customer summary icons and pager controls. Keep focus-visible outlines. */
body .entity-list-template .entity-toolbar-search-cluster .entity-search-adjacent button.nw-outline-action,
body .entity-list-template .toolbar-actions button.auto-created-chip,
body .entity-list-template .toolbar-actions button.customer-excel-action,
body .entity-list-template .toolbar-actions button.workspace-toolbar-action,
body .entity-list-template .toolbar-actions a.workspace-toolbar-action,
body .entity-list-template .toolbar-actions span.workspace-toolbar-action,
body .entity-list-template .toolbar-actions button.refresh-live {
    border: 0 !important;
    box-shadow: none !important;
}
/* As in the customer's Summary: the two adjacent actions have dark filled
   buttons with the orange icon, rather than orange rectangular outlines. */
body .entity-list-template .entity-toolbar-search-cluster .entity-search-adjacent button.nw-outline-action {
    background: var(--nw-ui-control-bg) !important;
    color: var(--nw-ui-accent-text) !important;
}
/* Preserve the individual identity colors the customer list and proclamation
   toolbar had before repositioning; these target only compact icon actions. */
body .entity-list-template .toolbar-actions button.auto-created-chip {
    background: var(--nw-ui-purple-bg) !important;
    color: var(--nw-ui-purple-text) !important;
}
body .entity-list-template .toolbar-actions button.customer-excel-action,
body .entity-list-template .toolbar-actions button.workspace-toolbar-action.excel-action {
    background: var(--nw-ui-ok-bg-deep) !important;
    color: var(--nw-ui-ok-text-mid) !important;
}
body .entity-list-template .toolbar-actions button.workspace-toolbar-action.details-action {
    background: var(--nw-ui-info-bg) !important;
    color: var(--nw-ui-info-text) !important;
}
body .entity-list-template .toolbar-actions :is(a, span).workspace-toolbar-action.fek-action {
    background: var(--nw-ui-control-bg) !important;
    color: var(--nw-ui-accent-text) !important;
}


/* ΕΝΙΑΙΑ ΜΠΑΡΑ ΑΝΑΖΗΤΗΣΗΣ/ΦΙΛΤΡΩΝ (13/11/2026) — ένας κανόνας για όλες τις σελίδες λίστας (Πελάτες, Προκηρύξεις,
   λίστα αιτήσεων προκήρυξης, Ημερολόγιο, Καταγραφές) και τα ίδια ύψη/γραμματοσειρές στις υπόλοιπες μπάρες ελέγχου.
   Οι τιμές ορίζονται μόνο στο theme-tokens.css (--nw-space-toolbar*). Ό,τι ορίζουν οι επιμέρους σελίδες για μέγεθος
   πεδίων/κουμπιών εδώ έχει τελική λέξη: ίδιο ύψος, ίδια γραμματοσειρά, ίδιο μέγεθος εικονιδίων, 10px γύρω γύρω. */
@media (min-width: 701px) {
    body .data-panel.entity-list-template > .toolbar,
    body .management-page .review-toolbar {
        align-items: center;
        gap: var(--nw-space-2);
        padding: var(--nw-space-toolbar) !important;
        min-height: 0;
    }
    body :is(.entity-list-template > .toolbar, .review-toolbar, .values-toolbar, .app-stats-toolbar)
        :is(.search-box, select, input:not([type="checkbox"], [type="radio"], .stable-search-input), button:not(.grid-column-filter-trigger), a.workspace-toolbar-action, span.workspace-toolbar-action, .toolbar-status-multi-filter) {
        box-sizing: border-box;
        height: var(--nw-space-toolbar-control) !important;
        min-height: var(--nw-space-toolbar-control) !important;
        margin: 0 !important;
        font-family: var(--nw-font-family);
        font-size: var(--nw-font-sm) !important;
        line-height: 1.2;
    }
    body :is(.entity-list-template > .toolbar, .review-toolbar, .values-toolbar, .app-stats-toolbar) :is(button:not(.grid-column-filter-trigger), a, span.workspace-toolbar-action) {
        font-weight: var(--nw-weight-medium) !important;
    }
    body :is(.entity-list-template > .toolbar, .review-toolbar, .values-toolbar, .app-stats-toolbar) :is(select, input) {
        font-weight: var(--nw-weight-regular);
    }
    /* κουμπιά μόνο με εικονίδιο: τετράγωνα, όλα ίδια */
    body :is(.entity-list-template > .toolbar) :is(button.nw-outline-action, button.customer-excel-action, .workspace-toolbar-action, button.icon-button) {
        width: var(--nw-space-toolbar-control) !important;
        min-width: var(--nw-space-toolbar-control) !important;
        flex: 0 0 var(--nw-space-toolbar-control) !important;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    body :is(.entity-list-template > .toolbar) button.icon-button { font-size: var(--nw-font-xl) !important; }
    body :is(.entity-list-template > .toolbar, .review-toolbar) svg:not(.grid-column-filter svg) {
        display: block;
        width: var(--nw-space-toolbar-icon) !important;
        height: var(--nw-space-toolbar-icon) !important;
        flex: 0 0 var(--nw-space-toolbar-icon);
    }
    body :is(.entity-list-template > .toolbar) .search-box > span { font-size: var(--nw-font-sm); }
}
