/* Customer area uses the shared palette and the portal's ordinary text size. */
.customer-page {font-size:14px;line-height:1.5;}
.customer-page-title {display:flex;align-items:center;justify-content:space-between;gap:18px;}
.customer-page-title h1 {overflow-wrap:anywhere;}
.customer-page .customer-panel {margin-bottom:14px;padding:22px 23px;background:var(--vg-panel);}
.customer-panel h2 {font-size:23px;margin:0 0 16px;}
.customer-panel .panel-heading h2 {margin:0;}
.customer-panel .panel-heading {gap:16px;flex-wrap:wrap;}
.customer-filters {margin:0 0 14px;}
.customer-filters input[name=q] {flex:1;min-width:180px;}
.customer-result-count {margin:0 0 12px;color:var(--vg-muted);font-size:14px;}
.customer-list {width:100%;min-width:1050px;table-layout:fixed;}
.customer-list .customer-name-column {width:30%;}
.customer-list .customer-cvr-column {width:10%;}
.customer-list .customer-phone-column {width:13%;}
.customer-list .customer-email-column {width:20%;}
.customer-list .customer-group-column {width:15%;}
.customer-list .customer-access-column {width:12%;}
.customer-page .customer-list th,.customer-page .customer-list td {text-align:left;font-size:14px;padding:13px 12px;vertical-align:top;overflow-wrap:anywhere;white-space:normal;}
.customer-name {font-weight:600;}
.customer-contact {display:block;font-size:14px;font-weight:400;color:var(--vg-muted);margin-top:4px;}
.customer-card-grid {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;align-items:start;}
.customer-card-grid > .customer-panel {min-width:0;}
.customer-info {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin:0;}
.customer-info > div {min-width:0;}
.customer-info dt {font-weight:600;margin:0 0 5px;}
.customer-info dd {margin:0;overflow-wrap:anywhere;}
.customer-meta {font-size:14px;color:var(--vg-muted);margin:18px 0 0;overflow-wrap:anywhere;}
.customer-note {padding:16px 0;border-top:1px solid var(--vg-border);}
.customer-note:first-of-type {border-top:0;padding-top:0;}
.customer-note h3 {font:600 14px Arial,sans-serif;margin:0 0 8px;}
.customer-note p {margin:0 0 8px;overflow-wrap:anywhere;}
.customer-note .customer-meta {margin:0;}
.customer-actions {margin:16px 0;}
.customer-page .customer-service-table th,.customer-page .customer-service-table td {font-size:14px;text-align:left;padding:13px 12px;}
.customer-service-table {width:100%;min-width:650px;}
.customer-task p,.customer-task small,.customer-task time {font-size:14px;}
.customer-task p {min-width:0;overflow-wrap:anywhere;}
.customer-editor {margin-top:0;}
.customer-editor label,.customer-editor small,.customer-editor input,.customer-editor select {font-size:14px;}
.customer-editor .customer-local-field {display:flex;align-items:baseline;gap:8px 12px;flex-wrap:wrap;}
.customer-editor .customer-local-field label {display:inline-flex;align-items:center;gap:8px;margin:0;}
.customer-editor .customer-local-field small {display:inline;margin:0;}
.customer-editor .customer-local-field .errorlist {flex-basis:100%;}
@media(max-width:950px){.customer-card-grid{grid-template-columns:1fr;}}
@media(max-width:600px){.customer-info{grid-template-columns:1fr;}.customer-page-title{align-items:flex-start;flex-wrap:wrap;}.customer-page .customer-panel{padding:18px 16px;}.customer-task{flex-wrap:wrap;}}

.customer-list tr[data-href] {cursor:pointer;}
.customer-list tr[data-href]:hover,.customer-list tr[data-href]:focus-within {background:#f6f6ef;}

/* The row supplies the hover affordance; retain the name link for keyboard use. */
.customer-list a.customer-name,.customer-list a.customer-name:hover,.customer-list a.customer-name:focus {text-decoration:none;}
.customer-list a.customer-name::after {display:none;}

.customer-card-actions {display:flex;align-items:center;gap:12px;flex:0 0 auto;margin-left:auto;}

/* Compact yearly services; editing stays in a native dialog. */
.customer-year {margin:0;line-height:normal;}
.customer-selected-services {list-style:none;padding:0;margin:0 0 18px;}
.customer-selected-services li {padding:10px 0;border-bottom:1px solid var(--vg-border);overflow-wrap:anywhere;}
.customer-selected-services li:first-child {padding-top:0;}
.customer-selected-services li:last-child {border-bottom:0;}
.customer-services-dialog {width:min(720px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:24px;background:var(--vg-white);color:var(--vg-ink);border:1px solid var(--vg-border);border-radius:6px;font:14px/1.5 Arial,Helvetica,sans-serif;}
.customer-services-dialog::backdrop {background:#00000055;}
.customer-services-dialog h2 {font:normal 23px Georgia,serif;margin:0;}
.customer-services-dialog h3 {font:600 14px Arial,Helvetica,sans-serif;margin:0;}
.customer-services-dialog .panel-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.customer-service-setting {padding:18px 0;border-top:1px solid var(--vg-border);}
.customer-service-setting:first-of-type {margin-top:18px;}
.customer-service-setting .customer-meta {margin:6px 0 0;}
.customer-services-dialog .editor {margin-top:16px;}
.customer-service-years {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.customer-services-dialog .actions {gap:12px;flex-wrap:wrap;}
.customer-services-dialog [hidden] {display:none!important;}
@media(max-width:600px){.customer-service-years{grid-template-columns:1fr;}.customer-services-dialog{padding:18px 16px;}}

.customer-panel .customer-work-heading {align-items:flex-start;}
.customer-work-title .bio-eyebrow {margin:0;}
.customer-service-summary .panel-heading {align-items:flex-start;}
.customer-rollover-form fieldset {border:0;padding:0;margin:18px 0;min-width:0;}
.customer-rollover-form legend {font-weight:bold;margin-bottom:10px;}
.customer-rollover-choice {padding:8px 0;}
.customer-rollover-choice label {display:flex;align-items:center;gap:10px;cursor:pointer;}
.customer-rollover-choice input {flex:0 0 auto;}

.customer-services-toolbar {display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-left:auto;}
.customer-services-dialog > .panel-heading {align-items:flex-start;}

.customer-service-new:has(form[hidden]) {display:none;}

.customer-status-filter{position:relative;display:inline-flex;flex:0 0 auto}
.customer-status-filter select{min-width:155px}
.customer-status-filter select.status-all{color:transparent}
.customer-status-filter select option{color:var(--vg-ink)}
.customer-status-placeholder{display:none;position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;font:14px Arial;color:var(--vg-ink)}
.customer-status-filter select.status-all + .customer-status-placeholder{display:block}
