header > div:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.brand-heading { display: flex; gap: 15px; align-items: center; }
.brand-heading #companyLogo { width: 110px; height: 58px; object-fit: contain; border: 1px solid #dae4de; background: white; border-radius: 10px; padding: 7px; }
#settingsDialog { width: min(760px, calc(100% - 24px)); padding: 20px 24px; }
#settingsDialog h2 { font-size: 23px; }
#settingsDialog .settings-tabs { display: flex; gap: 7px; margin: 14px 0 8px; border-bottom: 1px solid #dae4de; padding-bottom: 8px; }
#settingsDialog .settings-tabs button { font-size: 12px; background: #eef3ef; color: #48645a; padding: 8px 12px; }
#settingsDialog .settings-tabs button.selected { background: #146a4f; color: white; }
#settingsDialog .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; align-items: end; }
#settingsDialog .settings-grid label { margin-top: 6px; }
#settingsDialog .settings-grid input, #settingsDialog .settings-grid select { margin-top: 4px; padding: 8px; }
#settingsDialog .settings-section > p { margin: 8px 0; }
#settingsDialog .settings-actions { display: flex; gap: 8px; margin-top: 12px; }
#settingsDialog .settings-actions button { width: auto; }
#settingsDialog .logo-upload { margin: 4px 0 0; padding: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#settingsDialog .logo-upload label { margin: 0; flex: 1 1 180px; }
#settingsDialog .logo-upload input { padding: 4px 0; font-size: 12px; }
#settingsDialog .logo-upload img { max-width: 72px; max-height: 42px; margin: 0; }
#settingsDialog .logo-upload button { padding: 7px 9px; font-size: 12px; }
#settingsDialog .logo-upload small { color: #60706b; }
#settingsDialog #lookupCep { align-self: end; justify-self: start; padding: 9px 14px; }
#settingsDialog #copyPixKey { width: auto; margin-top: 8px; padding: 8px 12px; }
#settingsDialog #saveSettings { margin-top: 14px; }
.brand-heading .platform-logo { width: 156px; height: auto; display: block; margin: -7px 0 6px -11px; }
header select { width: auto; min-width: 140px; margin: 0; background: white; }
.notice, .source-notice { font-size: 13px; border-radius: 9px; margin: 0 0 15px; padding: 10px 14px; }
.notice { color: #174b3b; background: #e7f3ec; }
.notice[hidden] { display: none; }
.source-notice { color: #53675d; background: #eef3ef; }
.empty-row { color: #60706b; text-align: center; padding: 34px; }
dialog { max-height: 90vh; overflow: auto; }
dialog p { font-size: 13px; color: #60706b; line-height: 1.5; }
button:disabled { opacity: .6; cursor: wait; }
.logo-upload { border: 1px solid #dae4de; border-radius: 10px; padding: 14px; margin: 12px 0; }
.logo-upload input { padding: 8px 0; }
.logo-upload img { display: block; max-width: 180px; max-height: 100px; object-fit: contain; margin: 8px 0 12px; background: white; }
.logo-upload button { max-width: 180px; }
[hidden] { display: none !important; }
.empty-state { max-width: 620px; margin: 55px auto; padding: 36px; background: #fff; border: 1px solid #dae4de; border-radius: 16px; text-align: center; }
.empty-state p:not(.eyebrow) { color: #60706b; line-height: 1.5; }
.empty-state .primary { max-width: 220px; }
.auth-view { max-width: 430px; margin: 55px auto; padding: 28px; border: 1px solid #dae4de; border-radius: 16px; background: #fff; }
.auth-view > img { width: 200px; display: block; margin: 0 auto 22px; }
.auth-view h2 { text-align: center; }
.auth-view p { color: #60706b; text-align: center; font-size: 14px; line-height: 1.5; }
.admin-content { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 0 24px 24px; }
.admin-content > div > p { color: #60706b; font-size: 13px; line-height: 1.5; }
.admin-content .primary { max-width: 220px; }
.admin-content #copyInvite { margin-top: 10px; }
.admin-users { margin-top: 22px; font-size: 13px; color: #60706b; }
.admin-users div { padding: 8px 0; border-bottom: 1px solid #dae4de; }
.monthly-chart { padding: 22px 24px 28px; border-top: 1px solid #dae4de; display: flex; align-items: end; gap: 14px; min-height: 210px; overflow-x: auto; }
.customers-layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 20px; padding: 20px 24px 26px; }
.customer-list { display: grid; align-content: start; gap: 8px; }
.customer-list[hidden] { display: none; }
.customer-list button { width: 100%; text-align: left; border: 1px solid #dae4de; border-radius: 10px; background: white; padding: 12px; cursor: pointer; }
.customer-list button.selected { border-color: #238362; background: #e7f3ec; }
.customer-list strong, .customer-list small { display: block; }
.customer-list small { color: #60706b; margin-top: 4px; }
.customer-contact { display: block; overflow-wrap: anywhere; color: #48645a; }
.customers-layout.single-customer { grid-template-columns: minmax(0, 1fr); }
.customer-detail { min-width: 0; }
.customer-detail h3 { margin: 0 0 8px; }
.customer-detail p { margin: 6px 0; }
.customer-detail .table-wrap { margin: 16px 0; }
.customer-detail textarea { width: 100%; min-height: 260px; }
.customer-detail .calculation-total { font-size: 18px; font-weight: 700; margin-top: 14px; }
.chart-column { flex: 1; min-width: 64px; max-width: 140px; text-align: center; }
.chart-value { color: #16231f; font-size: 12px; font-weight: 700; margin-bottom: 7px; white-space: nowrap; }
.chart-bar { background: #238362; border-radius: 8px 8px 3px 3px; min-height: 4px; }
.chart-label { margin-top: 7px; color: #60706b; font-size: 12px; }
.chart-empty { color: #60706b; margin: auto; font-size: 14px; }
#collectionBatchPanel .panel-title { align-items: center; gap: 16px; }
.batch-help { margin: 0 24px 18px; color: #60706b; font-size: 13px; }
#batchDialog { width: min(900px, calc(100% - 30px)); max-height: 86vh; overflow: auto; }
#batchDetails { max-height: 44vh; overflow: auto; border: 1px solid #dae4de; border-radius: 9px; }
#batchDetails table { font-size: 12px; }
#batchDetails th, #batchDetails td { padding: 9px 11px; }
.batch-confirm { display: flex; align-items: center; gap: 9px; }
.batch-confirm input { width: auto; margin: 0; }
#batchHistory > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
#batchHistory > div > section { grid-column: 1 / -1; min-width: 0; }
#batchHistory button { white-space: nowrap; background: #e8f3ed; color: #146a4f; border: 1px solid #c5e3d3; }
.batch-warning { color: #7b3c16; background: #fff3e7; border: 1px solid #edc8a8; border-radius: 8px; padding: 10px 12px; margin: 10px; }
#batchHistory section { margin-top: 8px; }
#batchHistory section:empty { display: none; }
#batchHistory table { font-size: 12px; }
#batchDetails details { margin: 12px; }
@media (max-width: 780px) {
  #batchHistory > div { grid-template-columns: 1fr; }
  #batchHistory > div > section { grid-column: 1; }
  #batchHistory button { justify-self: start; }
  header { display: block; }
  header > div:last-child { justify-content: flex-start; margin-top: 18px; }
  header button, header select { font-size: 13px; }
  .admin-content { grid-template-columns: 1fr; }
  .customers-layout { grid-template-columns: 1fr; }
  #settingsDialog .settings-grid { grid-template-columns: 1fr; }
}
