/* Company settings */
.company-page-header {
  align-items: center;
  margin-bottom: 12px;
}

.company-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 3px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-page-breadcrumb span { color: #087D82; }
.company-page-breadcrumb b { color: #8B9AA6; font-size: 18px; line-height: 1; }

.company-header-action { gap: 8px; }
.company-header-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-settings-form {
  display: grid;
  gap: 12px;
}

.company-settings-card {
  overflow: hidden;
}

.company-profile-card { border-top: 3px solid var(--color-accent); }
.company-quote-card { border-top: 3px solid #CE6B55; }
.company-payment-card { border-top: 3px solid var(--color-primary); }

.company-section-header,
.company-destinations-header {
  min-height: 56px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: #FFFFFF;
}

.company-section-icon,
.company-policy-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #E8F7F6;
  color: #078C94;
}

.company-section-icon svg,
.company-policy-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-section-icon-warm { background: #FFF0EA; color: #D85F43; }
.company-section-icon-blue { background: #EAF1FF; color: #236DD4; }

.company-section-header h2,
.company-destinations-header h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 17px;
  line-height: 1.25;
}

.company-section-header p,
.company-destinations-header p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.company-profile-fields {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 12px 10px;
  align-content: start;
  padding: 12px 14px 14px;
}

.company-profile-fields > .form-group,
.company-card-body > .form-group {
  grid-column: span 4;
  min-width: 0;
  margin: 0;
  align-content: start;
}

.company-profile-fields > .company-field-address { grid-column: span 7; }
.company-profile-fields > .company-field-website { grid-column: span 4; }
.company-profile-fields > .company-field-waze { grid-column: span 4; }
.company-profile-fields > .company-hours-field { grid-column: span 6; }
.company-profile-fields > .company-brand-column { grid-column: span 3; }

.company-hours-field {
  min-width: 0;
  align-self: start;
}

.company-hours-summary {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 5px 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #F8FAFB;
  overflow: hidden;
}

.company-hours-summary > span {
  min-width: 0;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-hours-summary .btn { flex: 0 0 auto; }

.company-hours-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--color-text);
  box-shadow: 0 20px 56px rgb(15 34 58 / 28%);
}

.company-hours-dialog::backdrop { background: rgb(20 37 59 / 55%); }

.company-hours-dialog-shell { display: grid; }

.company-hours-dialog header,
.company-hours-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #FFFFFF;
}

.company-hours-dialog header { border-bottom: 1px solid var(--color-border); }
.company-hours-dialog footer { justify-content: flex-end; border-top: 1px solid var(--color-border); }
.company-hours-dialog h2 { margin: 0; color: var(--color-primary-dark); font-size: 21px; }
.company-hours-dialog header p { margin: 3px 0 0; color: var(--color-muted); font-size: 13px; }
.company-hours-dialog header > button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #EEF3F6;
  color: var(--color-muted);
  font-size: 22px;
  cursor: pointer;
}

.company-hours-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #F8FAFB;
}

.company-hours-toolbar span { color: var(--color-muted); font-size: 12px; }

.company-hours-days {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 6px 18px;
}

.company-hours-day {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 116px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.company-hours-day:last-child { border-bottom: 0; }
.company-hours-day.is-closed .company-hours-periods,
.company-hours-day.is-closed .company-hours-add { visibility: hidden; }

.company-hours-day-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.company-hours-day-toggle input { width: 17px; height: 17px; accent-color: var(--color-accent); }
.company-hours-periods { display: grid; gap: 6px; }
.company-hours-period { display: grid; grid-template-columns: 118px 14px 118px 30px; align-items: center; gap: 6px; }
.company-hours-period .input { height: 36px; padding: 6px 8px; }
.company-hours-period > span { color: var(--color-muted); text-align: center; }
.company-hours-period > button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: #FDECEC;
  color: var(--color-danger);
  font-size: 18px;
  cursor: pointer;
}

.company-hours-add {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #087D82;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.company-hours-error {
  margin: 0;
  padding: 9px 18px;
  border-top: 1px solid #F3C7C7;
  background: #FFF2F2;
  color: var(--color-danger);
  font-size: 13px;
}

.company-brand-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding-left: 10px;
  border-left: 1px solid var(--color-border);
}

.company-profile-fields > .company-brand-column { display: flex; }

.company-logo-button {
  width: 100%;
}

.company-brand-column small {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.company-conversation-policy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FFFFFF;
}

.company-conversation-policy > div {
  display: grid;
  gap: 3px;
}

.company-conversation-policy strong {
  color: var(--color-primary-dark);
  font-size: 14px;
}

.company-conversation-policy span:not(.form-label) {
  color: var(--color-muted);
  font-size: 13px;
}

.company-conversation-policy .form-group { margin: 0; }

.company-card-body {
  display: grid;
  gap: 10px;
  padding: 10px 14px 12px;
}

.company-quote-card .company-card-body {
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 10px;
}

.company-quote-facts {
  display: grid;
  grid-template-columns: max-content max-content max-content minmax(360px, 1fr);
  gap: 12px;
}

.company-quote-facts .form-group {
  grid-column: auto;
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr);
  align-items: center;
  gap: 8px;
}

.company-quote-facts .form-label {
  margin: 0;
  white-space: nowrap;
}

.company-quote-facts .company-quote-format {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.company-quote-prefix .input { width: 104px; }
.company-quote-initial .input { width: 86px; }
.company-quote-currency .select { width: 104px; }

.company-quote-format-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.company-quote-format-control .input { min-width: 0; }

.company-quote-variables {
  position: relative;
  align-self: stretch;
}

.company-quote-variables summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #CFE4E5;
  border-radius: 6px;
  background: #EAF7F7;
  color: #087D82;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.company-quote-variables summary::-webkit-details-marker { display: none; }

.company-quote-variables > span {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: flex;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(22, 42, 66, .16);
}

.company-quote-variables > span code {
  padding: 3px 5px;
  border-radius: 4px;
  background: #F0F4F6;
  color: var(--color-primary);
  font-size: 11px;
}

.company-quote-logo-shortcut {
  min-height: 38px;
  align-self: stretch;
  gap: 6px;
  padding: 7px 10px;
  white-space: nowrap;
}

.company-quote-logo-shortcut svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.company-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-copy-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.company-copy-grid .input { min-height: 38px; }

.company-code-input,
.finance-method-reference .input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.company-payment-body {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: start;
}

.company-payment-body > .form-group { grid-column: auto; }

.company-payment-summary {
  min-height: 58px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.company-payment-summary strong {
  min-width: 32px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #E7F6F5;
  color: #087D82;
  font-size: 14px;
}

.company-save-bar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px 9px 16px;
  border: 1px solid #CFD9DF;
  border-radius: 7px;
  background: #FFFFFF;
}

.company-save-bar span {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.company-save-bar .btn { min-width: 156px; }

.company-logo-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.company-logo-dialog::backdrop { background: rgba(11, 25, 42, .58); }

.company-logo-dialog-shell {
  overflow: hidden;
  border: 1px solid #D4DEE5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 24px 64px rgba(10, 28, 48, .24);
}

.company-logo-dialog header,
.company-logo-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.company-logo-dialog header { border-bottom: 1px solid var(--color-border); }
.company-logo-dialog footer { justify-content: flex-end; border-top: 1px solid var(--color-border); }
.company-logo-dialog h2 { margin: 0; color: var(--color-primary-dark); font-size: 20px; }
.company-logo-dialog header p { margin: 3px 0 0; color: var(--color-muted); font-size: 13px; }
.company-logo-dialog header > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #EDF2F5;
  color: #5D6C79;
  font-size: 21px;
  cursor: pointer;
}

.company-logo-dialog-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.company-logo-dialog .company-logo-preview {
  width: 210px;
  min-height: 142px;
  flex-basis: 210px;
  background: #DCE5EA;
}

.company-logo-dialog .company-logo-preview img { max-height: 138px; }

.company-logo-dialog-actions { display: grid; gap: 9px; }
.company-logo-dialog-actions small { color: var(--color-muted); font-size: 12px; line-height: 1.4; }
.company-logo-error { margin: 0; color: var(--color-danger); font-size: 12px; line-height: 1.4; }

.company-destinations-card {
  margin-top: 14px;
  overflow: hidden;
}

.company-maintenance-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding: 16px;
  border-left: 3px solid #B84D43;
}

.company-maintenance-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-maintenance-copy h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 17px;
}

.company-maintenance-copy p {
  max-width: 660px;
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
}

.company-maintenance-icon,
.company-purge-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #FCECEA;
  color: #A43E36;
}

.company-maintenance-icon svg,
.company-purge-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-maintenance-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(105px, 1fr));
  gap: 5px 16px;
  padding: 8px 14px;
  border-left: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 12px;
  white-space: nowrap;
}

.company-maintenance-summary span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.company-maintenance-summary strong {
  color: var(--color-primary);
  font-size: 14px;
}

.company-maintenance-button { white-space: nowrap; }

.company-purge-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.company-purge-dialog::backdrop {
  background: rgba(11, 25, 42, .58);
}

.company-purge-form {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid #D4DEE5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 24px 64px rgba(10, 28, 48, .24);
}

.company-purge-form header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.company-purge-form h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 19px;
}

.company-purge-form p {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.company-purge-form .form-group { margin: 0; }

.company-purge-pin {
  letter-spacing: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

.company-purge-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.company-payment-manager {
  overflow: hidden;
}

.company-payment-summary-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.company-payment-summary-row::-webkit-details-marker { display: none; }

.company-payment-summary-row > span:first-child {
  display: grid;
  gap: 3px;
}

.company-payment-summary-row strong {
  color: var(--color-primary-dark);
  font-size: 17px;
}

.company-payment-summary-row small {
  color: var(--color-muted);
  font-size: 13px;
}

.company-payment-manage-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #087D82;
  font-size: 13px;
  font-weight: 800;
}

.company-payment-manage-label svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .16s ease;
}

.company-payment-manager[open] .company-payment-manage-label svg { transform: rotate(180deg); }

.company-payment-manager-body {
  border-top: 1px solid var(--color-border);
}

.company-payment-manager-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  background: #F8FAFB;
}

.company-payment-manager-actions .btn { min-height: 36px; }

.company-payment-read-table { overflow-x: auto; }

.company-payment-read-head,
.company-payment-read-row {
  min-width: 860px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px 105px minmax(230px, 1.35fr) 100px 76px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.company-payment-read-head {
  color: #667684;
  background: #F5F8FA;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-payment-read-row {
  min-height: 46px;
  border-top: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-primary);
  font-size: 13px;
}

.company-payment-read-row:hover { background: #FAFCFD; }

.company-payment-read-row code {
  overflow: hidden;
  color: #334B5F;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-payment-status {
  color: #71808C;
  font-size: 12px;
  font-weight: 800;
}

.company-payment-status.active { color: #17745F; }

.company-payment-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.company-payment-row-actions form { margin: 0; }

.company-payment-row-actions button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #D5E0E6;
  border-radius: 6px;
  color: #244057;
  background: #F7FAFB;
  cursor: pointer;
}

.company-payment-row-actions button:hover { background: #EAF2F5; }
.company-payment-row-actions button.danger { color: #BC3D43; }

.company-payment-row-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-payment-dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.company-payment-dialog::backdrop { background: rgba(11, 25, 42, .58); }

.company-payment-dialog > form {
  overflow: hidden;
  border: 1px solid #D4DEE5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 24px 64px rgba(10, 28, 48, .24);
}

.company-payment-dialog header,
.company-payment-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
}

.company-payment-dialog header { border-bottom: 1px solid var(--color-border); }
.company-payment-dialog footer { justify-content: flex-end; border-top: 1px solid var(--color-border); }
.company-payment-dialog h2 { margin: 0; color: var(--color-primary-dark); font-size: 20px; }
.company-payment-dialog p { margin: 3px 0 0; color: var(--color-muted); font-size: 13px; }

.company-payment-dialog header > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: #5D6C79;
  background: #EDF2F5;
  font-size: 21px;
  cursor: pointer;
}

.company-payment-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 17px 18px;
}

.company-payment-dialog-body .form-group { margin: 0; }
.company-payment-dialog-wide { grid-column: 1 / -1; }
.company-payment-dialog-body .company-switch {
  position: relative;
  width: max-content;
}

.company-switch {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  cursor: pointer;
}

.company-switch input {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.company-switch > span {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #AEB9C2;
  transition: background .16s ease;
}

.company-switch > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .16s ease;
}

.company-switch input:checked + span { background: var(--color-success); }
.company-switch input:checked + span::after { transform: translateX(14px); }
.company-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 157, 165, .16); }

.company-switch b {
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .company-profile-fields > .form-group { grid-column: span 8; }
  .company-profile-fields > .company-field-address { grid-column: span 12; }
  .company-profile-fields > .company-field-website,
  .company-profile-fields > .company-field-waze { grid-column: span 6; }
  .company-profile-fields > .company-hours-field,
  .company-profile-fields > .company-brand-column { grid-column: span 12; }

  .company-brand-column {
    padding: 0;
    border-left: 0;
  }

  .company-maintenance-card {
    grid-template-columns: minmax(280px, 1fr) auto;
  }

  .company-maintenance-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
}

@media (max-width: 1400px) {
  .company-quote-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-quote-format { grid-column: span 2 !important; }

  .company-quote-prefix .input,
  .company-quote-initial .input,
  .company-quote-currency .select { width: 100%; }
}

@media (max-width: 900px) {
  .company-profile-fields > .form-group { grid-column: span 12; }
  .company-profile-fields > .company-field-address,
  .company-profile-fields > .company-hours-field,
  .company-profile-fields > .company-brand-column { grid-column: span 24; }
  .company-profile-fields > .company-field-website,
  .company-profile-fields > .company-field-waze { grid-column: span 12; }
}

@media (max-width: 760px) {
  .company-conversation-policy {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .company-conversation-policy .form-group { grid-column: 1 / -1; }

  .company-quote-facts,
  .company-copy-grid {
    grid-template-columns: 1fr;
  }

  .company-quote-format { grid-column: auto !important; }

  .company-quote-format-control {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .company-payment-body { grid-template-columns: 1fr; }
  .company-payment-summary {
    min-height: 42px;
    padding: 8px 0 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .company-save-bar span { display: none; }
  .company-save-bar .btn { width: 100%; }

  .company-maintenance-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .company-maintenance-summary {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 0 0;
    white-space: normal;
  }

  .company-maintenance-button { width: 100%; }
}

@media (max-width: 520px) {
  .company-page-header { align-items: flex-start; }
  .company-header-action { padding-inline: 10px; }

  .company-profile-fields,
  .company-card-body { padding: 12px; }

  .company-profile-fields > .form-group,
  .company-profile-fields > .company-field-address,
  .company-profile-fields > .company-field-website,
  .company-profile-fields > .company-field-waze,
  .company-profile-fields > .company-hours-field,
  .company-profile-fields > .company-brand-column { grid-column: span 24; }

  .company-brand-column small { text-align: center; }

  .company-logo-dialog-body { grid-template-columns: 1fr; }
  .company-logo-dialog .company-logo-preview {
    width: 100%;
    min-height: 120px;
  }
}

.company-logo-uploader {
  display: flex;
  align-items: center;
  gap: 18px;
}

.company-logo-preview {
  width: 184px;
  min-height: 92px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 184px;
  overflow: hidden;
  background: #FFFFFF;
}

.company-logo-preview img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  padding: 10px;
}

.company-logo-preview span {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 900;
}

.company-logo-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.check-line {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--color-primary);
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.quote-items {
  display: grid;
  gap: 10px;
}

.quote-item-head,
.quote-item-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(105px, 140px));
  gap: 10px;
  align-items: center;
}

.quote-item-head {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-total-box {
  display: grid;
  gap: 10px;
}

.finance-total-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.finance-total-box .grand-total {
  border-bottom: 0;
  font-size: 20px;
}

.prose-box {
  color: var(--color-text);
  line-height: 1.55;
}

.compact-grid {
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 13px;
}

.note-row {
  border-left: 3px solid var(--color-accent);
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #F9FBFC;
}

.note-row.restricted {
  border-left-color: var(--color-danger);
}

.empty-state {
  color: var(--color-muted);
  text-align: center;
  padding: 28px 16px;
}

.company-telephony-card { grid-column: 1 / -1; }
.company-telephony-card .company-section-header { grid-template-columns: 38px minmax(0, 1fr) auto; }
.company-section-icon-telephony { color: #087f8c; background: #e5f6f5; }
.company-integration-status { margin-left: auto; padding: 5px 9px; border-radius: 999px; color: #66758a; background: #eef3f6; font-size: 12px; font-weight: 700; }
.company-integration-status.ready { color: #087969; background: #e2f5ee; }
.company-telephony-body { padding: 18px; display: grid; gap: 16px; }
.company-telephony-fields { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr); gap: 14px; }
.company-secret-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.company-telephony-endpoint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #d9e3ea; background: #f7fafb; border-radius: 6px; }
.company-telephony-endpoint > span { color: #617086; font-size: 12px; font-weight: 700; }
.company-telephony-endpoint code { overflow: hidden; color: #243145; text-overflow: ellipsis; white-space: nowrap; }
.company-telephony-options { display: grid; grid-template-columns: auto auto minmax(150px, 190px) 1fr; align-items: end; gap: 18px; }
.company-timeout-field { margin: 0; }
.company-telephony-last-event { justify-self: end; color: #738197; font-size: 12px; text-align: right; }
.company-telephony-last-event strong { color: #263447; font-size: 13px; }
.company-telephony-health { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d9e3ea; border-radius: 6px; background: #f7fafb; }
.company-telephony-health-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: #607287; background: #e8eef2; }
.company-telephony-health-icon svg { width: 18px; height: 18px; }
.company-telephony-health-copy { min-width: 0; display: grid; gap: 2px; }
.company-telephony-health-copy strong { color: #263447; font-size: 12px; }
.company-telephony-health-copy small { overflow: hidden; color: #68778b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.company-telephony-health.is-success { border-color: #b9dfd1; background: #f2fbf7; }
.company-telephony-health.is-success .company-telephony-health-icon { color: #087950; background: #dff4ea; }
.company-telephony-health.is-warning { border-color: #ecd59d; background: #fffbef; }
.company-telephony-health.is-warning .company-telephony-health-icon { color: #9a6800; background: #fff0cd; }
.company-telephony-health.is-error { border-color: #e8c4c7; background: #fff7f7; }
.company-telephony-health.is-error .company-telephony-health-icon { color: #a33e46; background: #fae7e8; }

@media (max-width: 900px) {
  .company-telephony-fields { grid-template-columns: 1fr; }
  .company-telephony-options { grid-template-columns: 1fr 1fr; align-items: center; }
  .company-telephony-last-event { justify-self: start; text-align: left; }
}

@media (max-width: 620px) {
  .company-telephony-endpoint { grid-template-columns: 1fr auto; }
  .company-telephony-endpoint > span { grid-column: 1 / -1; }
  .company-telephony-options { grid-template-columns: 1fr; }
  .company-telephony-health { grid-template-columns: 32px minmax(0, 1fr); }
  .company-telephony-health .btn { grid-column: 1 / -1; width: 100%; }
}
