.customer-page { background: var(--hera-bg); }
.customer-page [hidden] { display: none !important; }
.customer-heading, .customer-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.customer-heading { margin: .5rem 0 1rem; }
.customer-company { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--hera-line); background: #fff; }
.customer-demo-label { display: inline-block; padding: .1rem .4rem; background: #fff; border: 1px solid var(--hera-line); font-size: .75rem; margin-left: .3rem; }
.customer-layout { display: grid; gap: 1.5rem; }
.customer-layout > *, .customer-page [class*="customer-"], .customer-page input, .customer-page select { min-width: 0; }
.customer-nav { position: sticky; top: 11rem; max-height: calc(100vh - 12rem); overflow-y: auto; background: #fff; border: 1px solid var(--hera-line); }
.customer-nav a { display: flex; align-items: center; gap: .5rem; padding: .7rem .85rem; font-size: .86rem; font-weight: 600; border-left: 3px solid transparent; color: var(--hera-ink); text-decoration: none; }
.customer-nav a[aria-current] { border-left-color: var(--hera-red); background: var(--hera-bg); color: var(--hera-text-red); }
.customer-count { margin-left: auto; color: #fff; background: var(--hera-text-red); padding: .05rem .4rem; font-size: .75rem; }
.customer-mobile-nav { display: grid; gap: .5rem; }
.customer-mobile-nav button { justify-self: start; }
.customer-kpis, .customer-cards, .customer-addresses, .customer-wishlist, .customer-form-grid, .customer-overview, .customer-overview-side, .customer-stack { display: grid; gap: 1rem; }
.customer-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.customer-card { padding: 1.2rem; border: 1px solid var(--hera-line); background: #fff; }
.customer-card--default { border-color: var(--hera-red); }
.customer-box { border: 1px solid var(--hera-line); background: #fff; }
.customer-value { display: block; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; margin-top: .4rem; }
.customer-section-heading { padding: 1rem; border-bottom: 1px solid var(--hera-line); }
.customer-overview-side { align-content: start; }
.customer-contact { background: var(--hera-ink); color: #fff; }
.customer-contact .customer-sub { color: #d2d2cf; }
.customer-representative { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: .8rem; }
.customer-representative .ratio { border-radius: 50%; overflow: hidden; }
.customer-representative .media-placeholder { font-size: .6rem; }
.customer-mini-cart { display: grid; gap: .2rem; padding: .65rem 0; border-bottom: 1px solid var(--hera-line); font-size: .82rem; color: inherit; }
.customer-conditions > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .5rem 0; border-bottom: 1px solid var(--hera-line); font-size: .82rem; }
.customer-conditions dt { font-weight: 400; color: var(--hera-grey); }
.customer-conditions dd { margin: 0; }
.customer-table { width: 100%; border: 1px solid var(--hera-line); background: #fff; table-layout: fixed; }
.customer-box .customer-table { border: 0; }
.customer-table th { font-size: .7rem; color: var(--hera-grey); background: var(--hera-bg); letter-spacing: .03em; text-transform: uppercase; }
.customer-table td { font-size: .85rem; }
.customer-table th, .customer-table td { padding: .8rem; text-align: left; vertical-align: middle; overflow-wrap: anywhere; border-bottom: 1px solid var(--hera-line); }
.customer-table .customer-number { font-weight: 700; }
.customer-sub { display: block; font-size: .76rem; color: var(--hera-grey); margin-top: .25rem; }
.customer-status { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 1rem; font-size: .75rem; font-weight: 700; background: #fff4e0; color: #825000; }
.customer-status::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.customer-status--ok { background: #e8f5ea; color: #246b30; }
.customer-status--off { background: #eee; color: #555; }
.customer-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.customer-actions .btn, .customer-table .btn { white-space: normal; max-width: 100%; font-size: .78rem; }
.customer-details summary { cursor: pointer; color: var(--hera-text-red); font-size: .85rem; font-weight: 600; }
.customer-filters { display: grid; gap: .8rem; align-items: end; }
.customer-page .form-label { font-size: .8rem; }
.customer-page .form-control, .customer-page .form-select { font-size: .86rem; }
.customer-quick-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: .5rem; margin-bottom: .8rem; align-items: end; }
.customer-quick-row button { grid-column: 1 / -1; justify-self: end; }
.customer-configuration { display: grid; gap: 1rem; }
.customer-configuration > div:first-child { max-width: 140px; width: 100%; }
.customer-page p, .customer-page a, .customer-page span, .customer-page strong, .customer-page h2, .customer-page h3, .customer-page address, .customer-page dd { overflow-wrap: anywhere; }
@media (min-width: 576px) {
    .customer-cards, .customer-addresses, .customer-wishlist, .customer-form-grid, .customer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-quick-row { grid-template-columns: minmax(0, 1fr) 80px 82px; }
    .customer-quick-row button { grid-column: auto; }
}
@media (min-width: 992px) {
    .customer-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
    .customer-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .customer-kpis--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .customer-form-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1400px) {
    .customer-overview { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .customer-addresses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .customer-wishlist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .customer-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
    .customer-table, .customer-table tbody { display: block; }
    .customer-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .customer-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .8rem; gap: .8rem; border-bottom: 1px solid var(--hera-line); }
    .customer-table td { display: block; padding: 0; border: 0; }
    .customer-table td::before { content: attr(data-label); display: block; color: var(--hera-grey); font-size: .68rem; margin-bottom: .2rem; }
    .customer-table td:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .customer-table tr { grid-template-columns: minmax(0, 1fr); }
    .customer-kpis { gap: .6rem; }
    .customer-kpis .customer-card { padding: .8rem; }
}
