#customers-workspace{padding:36px;max-width:1800px;font-size:1rem;color:#173745}.cu-intro,.cu-customer-head,.cu-section-title,.cu-routine header{display:flex;justify-content:space-between;gap:24px;align-items:center}.cu-intro{margin:0 0 32px}.cu-intro h1{font-size:2.3rem;letter-spacing:-.04em;margin:8px 0}.cu-intro p,.cu-section-title p{color:#536975;margin:8px 0;line-height:1.7}.cu-actions{display:flex;flex-wrap:wrap;gap:10px}.cu-actions .button,.cu-panel .button,.cu-dialog .button{font-size:.875rem}.cu-panel{background:white;border:1px solid #dbe3e8;border-radius:14px;padding:28px;margin:24px 0}.cu-panel h3{font-size:1.2rem;margin:0 0 12px}.cu-metrics,.cu-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.cu-metrics article article,.cu-price-grid article{background:#fff;padding:22px;border:1px solid #dbe3e8;border-radius:12px}.cu-metrics span,.cu-price-grid span span{display:block;color:#526a78;font-size:.875rem;margin-bottom:12px}.cu-metrics strong,.cu-price-grid strong{font-size:1.65rem}.cu-metrics small small{display:block;margin-top:10px;color:#526a78;font-size:.8125rem}.cu-price-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:24px 0}.cu-price-grid article{background:#f5f8fa}.cu-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end}.cu-filters label{min-width:180px;flex:1}.cu-filters label:first-child{flex:2;min-width:260px}.cu-filters input,.cu-filters select,.cu-dialog input,.cu-dialog select,.cu-dialog textarea{display:block;width:100%;font:inherit;font-size:1rem;color:#173745;border:1px solid #b8c8d2;border-radius:8px;padding:11px 12px;background:white;margin-top:7px}.cu-dialog select,.cu-filters select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23395264' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.cu-filters label,.cu-dialog label{font-size:.875rem;color:#395567}.cu-table{width:100%;border-collapse:collapse;font-size:.9375rem}.cu-table th{text-align:left;font-size:.875rem;color:#506878;font-weight:500;background:#f0f5f8}.cu-table th,.cu-table td{padding:17px 15px;border-bottom:1px solid #e5ebee;vertical-align:top}.cu-table small{display:block;font-size:.8125rem;color:#526a78;margin-top:7px}.cu-company{font:inherit;font-weight:600;color:#173e65;background:none;border:0;padding:0;text-align:left;cursor:pointer}.cu-company:hover{text-decoration:underline}.cu-count,.cu-secondary{color:#526a78;font-size:.875rem;line-height:1.8}.cu-count{margin:20px 0}.cu-empty{padding:35px 16px;text-align:center;color:#526a78;line-height:1.8}.cu-empty h2{font-size:1.25rem;color:#173745}.cu-customer-head{margin-top:24px}.cu-customer-head h2{font-size:1.8rem;letter-spacing:-.035em;margin:8px 0}.cu-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0 0;border-bottom:1px solid #dbe3e8}.cu-tabs button{font:inherit;font-size:.9375rem;padding:14px 18px;background:none;border:0;border-bottom:3px solid transparent;color:#526a78;cursor:pointer}.cu-tabs button.active{color:#173e65;border-color:#173e65;background:#edf3f6}.cu-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:25px 0}.cu-facts dt{color:#526a78;font-size:.875rem;margin-bottom:7px}.cu-facts dd{margin:0;font-size:1rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.cu-notice,.cu-error{padding:15px 18px;border-radius:10px;line-height:1.7;font-size:.9375rem}.cu-notice{background:#edf7f0;color:#29593b}.cu-error{background:#fdf0ef;color:#8c3432}.cu-error:empty{display:none}.cu-routine{border-top:1px solid #dde5e9;padding:25px 0}.cu-routine h4{font-size:1.125rem;margin:0 0 8px}.cu-routine header p,.cu-routine footer{font-size:.875rem;color:#526a78}.cu-routine footer{margin-top:25px}.cu-routine.archived{opacity:.75}.cu-prose{white-space:pre-wrap;line-height:1.85;font-size:1rem;margin-top:18px;overflow-wrap:anywhere}.cu-dialog{border:0;border-radius:16px;padding:0;width:min(880px,calc(100vw - 32px));max-height:92vh;color:#173745;font:inherit}.cu-dialog::backdrop{background:#0d263b99;backdrop-filter:blur(3px)}.cu-dialog .dialog-head h2{font-size:1.4rem;line-height:1.4}.cu-dialog fieldset{border:0;padding:0;margin:0;min-width:0}.cu-dialog .cu-form-body>fieldset{border:1px solid #dbe3e8;border-radius:10px;padding:20px;margin:22px 0}.cu-dialog legend{padding:0 8px;font-weight:600;font-size:1rem}.cu-form-body{padding:26px;line-height:1.7}.cu-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cu-wide{grid-column:1/-1}.cu-check{display:flex!important;gap:12px;align-items:center;font-size:1rem!important}.cu-check input{width:20px;height:20px;flex:none;margin:0}.cu-dialog input:read-only,.cu-dialog input:disabled,.cu-dialog select:disabled{background-color:#f1f5f7;color:#526a78}.cu-dialog :is(input,textarea,select):focus-visible,.cu-tabs button:focus-visible,.cu-company:focus-visible{outline:3px solid #77a9c5;outline-offset:3px}.cu-dialog .dialog-foot{position:sticky;bottom:0;background:#fff;border-top:1px solid #dbe3e8}.cu-dialog #cu-import-preview{margin:24px 0;max-height:350px;overflow:auto}@media(max-width:1050px){.cu-intro{align-items:flex-start;flex-direction:column}.cu-price-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){#customers-workspace{padding:22px 16px}.cu-metrics,.cu-facts,.cu-form-grid{grid-template-columns:1fr}.cu-panel{padding:20px}.cu-customer-head,.cu-section-title,.cu-routine header{align-items:flex-start;flex-direction:column}.cu-actions .button{flex:1}.cu-form-body{padding:20px}.cu-intro h1{font-size:2rem}.cu-price-grid strong{font-size:1.25rem}}

.cu-invoice-evidence{border-top:1px solid #dbe3e8;margin-top:28px;padding-top:26px}.cu-invoice-evidence p{line-height:1.8}.cu-invoice-evidence details{border:1px solid #dbe3e8;border-radius:10px;padding:18px;margin:14px 0}.cu-invoice-evidence summary{font-weight:600;cursor:pointer;font-size:1rem}.cu-invoice-evidence a{color:#173e65;text-decoration:underline}

/* Customer list and card share Accountera's existing palette and typography. */
#customers-workspace {
  --cu-navy: var(--green, #163c61);
  --cu-ink: var(--ink, #122838);
  --cu-tint: var(--green-light, #eaf0f6);
  --cu-border: #d8e2ea;
  color: var(--cu-ink);
}

.cu-intro {
  margin-bottom: 22px;
}

.cu-intro h1,
.cu-customer-head h1 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  margin: 0;
  overflow-wrap: anywhere;
}

.cu-customer-head h1 {
  margin-top: 4px;
}

.cu-customer-head {
  margin-top: 12px;
  margin-bottom: 22px;
}

.cu-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cu-back {
  padding-left: 0;
}

.cu-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--cu-border);
  border-radius: 12px;
  background: var(--cu-tint);
  overflow-x: auto;
  flex-wrap: nowrap;
}

.cu-tabs button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
  padding: 9px 12px;
  font-size: .875rem;
  color: #3c5368;
}

.cu-tabs button:hover {
  background: #ffffff9c;
  color: var(--cu-navy);
}

.cu-tabs button.active {
  background: #fff;
  border-color: var(--cu-border);
  color: var(--cu-navy);
  box-shadow: 0 1px 2px #12283813;
  font-weight: 600;
}

.cu-tabs button:focus-visible {
  outline-offset: -3px;
}

.cu-overview,
.cu-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
}

.cu-setup-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.cu-overview-card,
.cu-setup-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--cu-border);
  border-radius: 14px;
  box-shadow: 0 3px 12px #12283806;
  overflow-wrap: anywhere;
}

.cu-setup-panel {
  margin: 0;
}

.cu-overview-card h2,
.cu-setup-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cu-navy);
  line-height: 1.5;
  margin: 0 0 8px;
}

.cu-overview-card p,
.cu-setup-panel p {
  margin: 5px 0 8px;
}

.cu-summary,
.cu-overview-list {
  width: 100%;
  margin: 0 0 10px;
}

.cu-summary div,
.cu-overview-list li {
  padding: 8px 0;
  border-bottom: 1px solid #edf1f5;
}

.cu-summary div:last-child,
.cu-overview-list li:last-child {
  border-bottom: 0;
}

.cu-summary dt,
.cu-overview-list small {
  display: block;
  font-size: .8rem;
  color: #526a78;
}

.cu-summary dd,
.cu-overview-list li {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
}

.cu-overview-list {
  padding: 0;
  list-style: none;
}

.cu-overview-list small {
  font-weight: 400;
}

.cu-card-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 11px 0 0;
  border-radius: 0;
  border-top: 1px solid #edf1f5;
  color: var(--cu-navy);
  text-align: left;
}

.cu-card-link:hover {
  text-decoration: underline;
}

.cu-setup-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border-top: 1px solid #edf1f5;
  padding: 12px 0;
}

.cu-setup-entry > div {
  min-width: 0;
}

.cu-setup-entry h4 {
  margin: 0;
  font-size: .94rem;
}

.cu-setup-entry p,
.cu-setup-panel details {
  font-size: .85rem;
  color: #486072;
}

.cu-setup-notes {
  white-space: pre-wrap;
}

.cu-setup-panel > .button {
  margin-top: auto;
}

.cu-setup-panel details {
  width: 100%;
  margin-top: 14px;
}

.cu-setup-panel summary {
  cursor: pointer;
  margin-bottom: 8px;
}

@media (max-width: 1250px) {
  .cu-overview,
  .cu-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cu-overview,
  .cu-setup-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cu-customer-head {
    gap: 12px;
  }
}
