/* Single-city license identity. Chat controls keep their existing handlers. */
body.has-admin-topbar.has-license-identity .app-shell .panel-actions {
  right: 24px !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  min-width: 0;
}
body.has-admin-topbar.has-license-identity .app-shell .panel-actions > .admin-license-identity {
  display: flex;
  align-items: center;
  flex: 1 1 230px;
  max-width: 430px;
  min-width: 0;
  gap: 10px;
  color: #fff;
}
.admin-license-identity[hidden] { display: none !important; }
.admin-license-identity-icon { flex: 0 0 auto; color: #ff8c40; font-size: 20px; }
.admin-license-identity-copy { display: grid; gap: 3px; min-width: 0; line-height: 1.3; }
.admin-license-identity-copy > strong { font-size: 14px; color: #fff; }
.admin-license-identity-copy > span { font-size: 12px; color: #d4d8de; }
.admin-license-identity-copy > :is(strong, span) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-license-identity .panel-actions .admin-chat-alerts { flex: 0 0 auto; }

/* One form for the licensee. Additional licenses remain a Superadmin view. */
#view-pricing #pricing-form-column { max-width: 1100px; }
#view-pricing [hidden] { display: none !important; }
#view-pricing .pricing-assigned-scope { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #d7e8dd; border-radius: 14px; background: #f3faf5; margin-bottom: 22px; }
#view-pricing .pricing-assigned-scope > i { color: #198156; font-size: 19px; }
#view-pricing .pricing-assigned-scope :is(span, strong, small) { display: block; }
#view-pricing .pricing-assigned-scope span { color: #52647a; font-size: 11px; }
#view-pricing .pricing-assigned-scope strong { color: #15253b; font-size: 19px; margin: 3px 0; overflow-wrap: anywhere; }
#view-pricing .pricing-assigned-scope small { font-size: 12px; line-height: 1.5; color: #52647a; }
#view-pricing .pricing-concept-heading { display: flex; align-items: start; gap: 12px; margin: 22px 0 16px; }
#view-pricing .pricing-concept-heading > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; color: #ac4709; background: #fff0e5; font-size: 13px; font-weight: 800; }
#view-pricing .pricing-concept-heading h3 { margin: 0 0 5px; font-size: 18px; font-weight: 800; }
#view-pricing .pricing-concept-heading p { margin: 0; font-size: 12px; line-height: 1.5; color: #52647a; }
#view-pricing .pricing-concept-grid { row-gap: 18px; }
#view-pricing .pricing-field-help { margin: 8px 0 0; color: #52647a; font-size: 12px; line-height: 1.6; }
#view-pricing .pricing-radius-details { margin-top: 20px; padding: 14px 16px; border: 1px solid #dce3ec; border-radius: 12px; background: #fafbfd; }
#view-pricing .pricing-radius-details summary { color: #31465e; cursor: pointer; font-size: 13px; font-weight: 700; }
#view-pricing .pricing-radius-details .input-group { max-width: 420px; }
#view-pricing .pricing-example-title { margin: 24px 0 0; font-size: 17px; font-weight: 800; }
#view-pricing .pricing-surge-card { margin: 0 0 28px; padding: 20px; background: #fff9f3; border: 1px solid #f1d7bd; border-radius: 16px; }
#view-pricing .pricing-surge-heading { display: flex; gap: 12px; align-items: flex-start; }
#view-pricing .pricing-surge-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; background: #ffe5c9; color: #a74300; border-radius: 12px; font-size: 23px; }
#view-pricing .pricing-surge-heading h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
#view-pricing .pricing-surge-heading p { margin: 0; color: #52647a; font-size: 13px; line-height: 1.55; }
#view-pricing .pricing-surge-status { display: grid; gap: 4px; margin: 16px 0; padding: 12px 14px; color: #42556c; border: 1px solid #dae2e9; background: #fff; border-radius: 12px; font-size: 13px; }
#view-pricing .pricing-surge-status.is-active { border-color: #d88a39; background: #fff0da; color: #803e00; }
#view-pricing .pricing-surge-status strong { font-size: 15px; }
#view-pricing .pricing-surge-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#view-pricing .pricing-surge-fields > div { min-width: 0; }
#view-pricing .pricing-surge-fields .form-label { font-size: 12px; }
#view-pricing .pricing-surge-preview { padding: 13px 14px; margin: 16px 0; background: #fff; border: 1px dashed #d8ad85; border-radius: 12px; font-size: 13px; color: #42556c; }
#view-pricing .pricing-surge-preview strong { color: #16253b; }
#view-pricing .pricing-surge-preview small { display: block; margin-top: 6px; line-height: 1.55; }
#view-pricing .pricing-surge-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#view-pricing .pricing-surge-actions .btn { min-height: 44px; }
#view-pricing :is(input, select, button, summary):focus-visible { outline: 3px solid #2c76c4; outline-offset: 3px; }
@media (min-width: 1200px) { #view-pricing .col-xl-5 .pricing-surge-fields { grid-template-columns: 1fr; } }

@media (max-width: 1200px) {
  body.has-admin-topbar.has-license-identity .admin-chat-alerts { display: grid; grid-template-columns: 42px 42px; gap: 8px; overflow: visible; }
  body.has-admin-topbar.has-license-identity .admin-chat-alerts .admin-driver-chat-alert { position: relative; width: 42px; min-width: 42px; max-width: 42px; min-height: 42px; padding: 3px; overflow: visible; }
  body.has-admin-topbar.has-license-identity .admin-chat-alerts .admin-driver-chat-alert-icon { width: 34px; height: 34px; }
  body.has-admin-topbar.has-license-identity .admin-chat-alerts .admin-driver-chat-alert-copy { display: none; }
  body.has-admin-topbar.has-license-identity .admin-chat-alerts .admin-driver-chat-alert-count { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; font-size: 8px; box-shadow: 0 0 0 2px #080808; }
}
@media (max-width: 980px) {
  body.has-admin-topbar.has-license-identity .app-shell .panel-actions { right: 12px !important; gap: 10px !important; }
}
@media (max-width: 560px) {
  #view-pricing #pricing-loading-surface { --bs-gutter-x: 1rem; }
  .admin-license-identity-icon { display: none; }
  .admin-license-identity-copy > strong { font-size: 12px; }
  .admin-license-identity-copy > span { font-size: 11px; }
  #view-pricing .pricing-assigned-scope { padding: 12px; }
  #view-pricing .pricing-live-preview { grid-template-columns: 1fr; gap: 14px; }
  #view-pricing .pricing-surge-card { padding: 14px; }
  #view-pricing .pricing-surge-fields { grid-template-columns: 1fr; }
  #view-pricing .pricing-surge-actions .btn { width: 100%; }
}
