@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;600&family=Inter:wght@300;400;600;700;900&family=Plus+Jakarta+Sans:wght@800&display=swap');

/* Shared type system for the internal portal. Keep visual roles here instead of
   redefining families and weights in individual admin screens. */
:root {
  --admin-display: 'Plus Jakarta Sans', sans-serif;
  --admin-sans: 'Inter', sans-serif;
  --admin-mono: 'Geist Mono', monospace;
}

/* Use the supplied frontend wordmark consistently in every admin header. */
.brand,
.site-brand {
  display:block;
  width:220px;
  height:38px;
  background:url('/fixlistingphotos-logo.png') center/contain no-repeat;
  color:transparent!important;
  font-size:0!important;
  letter-spacing:0!important;
  flex:none;
}

body {
  font-family: var(--admin-sans);
  font-weight: 400;
}

.brand,
.site-brand {
  font-family: var(--admin-display) !important;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

h1,
h2,
.desk-head h1,
.head h1,
.login-card h1,
.intro h1 {
  font-family: var(--admin-display) !important;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  text-transform: uppercase;
}

button,
input,
select,
textarea,
.control,
.service-tag,
.status-button,
.payment-tag,
.checkout,
.save,
.secondary,
.pill,
.listing-link,
.new-float {
  font-family: var(--admin-sans) !important;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 16px;
}

button,
select,
.control,
.service-tag,
.status-button,
.payment-tag,
.checkout,
.save,
.secondary,
.pill,
.listing-link,
.new-float {
  text-transform: uppercase;
}

input,
textarea {
  text-transform: none;
}

.eyebrow,
label,
legend,
th,
small,
.label-technical,
.status,
.muted,
.fine,
.receipt-group,
.service-form-group-label,
.admin-size-heading,
.portal-nav a,
.portal-nav .signout,
.nav a,
.nav button,
.back,
.order-chip,
.step,
.refresh-status {
  font-family: var(--admin-mono) !important;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .3em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tooltip,
[role='tooltip'],
.addon-tooltip,
.hint,
.help-text {
  font-family: var(--admin-mono) !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.45;
  text-transform: none;
}

.service-name,
.receipt > div:not(.receipt-total) > span,
.receipt > div:not(.receipt-total) > b,
.breakdown > div:not(.total) > span,
.breakdown > div:not(.total) > b,
.line-item-name,
.line-item-price {
  font-family: var(--admin-sans) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 16px;
}

.receipt-total b,
.breakdown .total b,
.estimated-total,
.total-amount {
  font-family: var(--admin-sans) !important;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.notice,
.copy,
.body-copy,
.empty {
  font-family: var(--admin-sans) !important;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  text-transform: none;
}

@media (min-width: 768px) {
  .notice,
  .copy,
  .body-copy,
  .empty {
    font-size: 20px;
  }
}

/* A single compact scale for Orders, Leads and Users, including their drawers.
   These roles also take precedence over legacy styles injected by the screens. */
html.admin-compact body { font-size:14px; }
html.admin-compact :is(.desk-head,.head) h1 {
  font-size:clamp(40px,6vw,76px);
  max-width:none;
}
html.admin-compact :is(.panel-head,.drawer-head) h2 { font-size:26px !important; }
html.admin-compact :is(button,input,select,textarea,.control,.service-tag,.status-button,.checkout,.secondary,.fulfillment-button,.tile-button) {
  font-size:10px !important;
  line-height:16px;
}
html.admin-compact :is(td,.user-name,.view-grid,.view-grid span,.view-name,.receipt div,.receipt div span,.receipt div b,.service-name,.tile-address,.tile-price,.lead-summary b) {
  font-size:11px !important;
}
html.admin-compact :is(th,label,legend,small,.eyebrow,.fine,.muted,.status,.pill,.receipt-group,.service-form-group-label,.admin-size-heading,.refresh-status,.lead-summary,.lead-state,.tile-meta,.request-note) {
  font-size:9px !important;
}
html.admin-compact :is(.copy,.body-copy,.view-copy,.notice,.empty) { font-size:16px; }
html.admin-compact .tile-copy b { font-size:12px !important; }
html.admin-compact .drawer-section h3 { font-size:16px; }
html.admin-compact :is(.drawer-section p,.drawer-meta) { font-size:11px; }
html.admin-compact :is(.receipt .receipt-total b,.breakdown .total b,.estimated-total,.total-amount) {
  font-size:clamp(22px,2.5vw,30px) !important;
}
/* Keep compact service labels distinct from their smaller group headings. */
html.admin-compact .receipt-group { font-size:9px !important; }

/* iOS zooms focused fields below 16px. Visual density elsewhere stays intact. */
@media (max-width: 767px) {
  html.admin-compact input:not([type='checkbox']):not([type='radio']):not([type='range']),
  html.admin-compact select,
  html.admin-compact textarea,
  input:not([type='checkbox']):not([type='radio']):not([type='range']),
  select,
  textarea {
    font-size: 16px !important;
  }
}
