/* Dense staff workspace. Public quotations, PDFs, login and dialogs keep their own layouts. */
:root { --assistant-rail-width: 300px; --assistant-rail-space: 320px; }
.app-shell { grid-template-columns: 166px minmax(0, 1fr); font-size: 12px; line-height: 1.45; }
.app-shell .app-nav { padding: 20px 10px 14px; }
.app-shell .brand { gap: 8px; padding: 0 7px 23px; }
.app-shell .brand>b { font-size: 28px; padding: 5px 7px 6px 4px; }
.app-shell .brand>span { font-size: 13px; }
.app-shell .brand small { font-size: 8px; letter-spacing: .8px; margin-top: 4px; }
.app-shell .nav-link { padding: 9px 10px; gap: 9px; font-size: 11px; margin: 1px 0; }
.app-shell .nav-link svg { width: 16px; height: 16px; }
.app-shell .nav-caption { font-size: 8px; padding-inline: 10px; margin-bottom: 6px; }
.app-shell .nav-bottom { padding: 18px 7px 0; }
.app-shell .nav-bottom>p { margin-bottom: 14px; font-size: 9px; }
.app-shell .user-card { font-size: 10px; }
.app-shell .user-card small { font-size: 8px; }
.app-shell .avatar { width: 27px; height: 27px; }
.app-shell .app-top { height: 38px; padding: 0 16px; font-size: 10px; gap: 8px; }
.app-shell .breadcrumbs { gap: 7px; }
.app-shell .app-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-shell .app-top .breadcrumbs { min-width: 0; }
.app-shell .company-name { gap: 9px; font-size: 10px; }
.app-shell .mode-badge { font-size: 8px; padding: 3px 6px; }
.app-shell .workspace.standalone-workspace { min-height: calc(100vh - 38px); }
.app-shell .main-content { max-width: none; padding: 12px 20px 12px; }
.app-shell h1 { font-size: 23px; letter-spacing: -.65px; }
.app-shell h2 { font-size: 15px; }
.app-shell h3 { font-size: 12px; margin-bottom: 6px; }
.app-shell .page-heading { gap: 12px; margin-bottom: 14px; }
.app-shell .page-heading p { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.app-shell .eyebrow { font-size: 8px; margin-bottom: 6px; letter-spacing: 1px; }
.app-shell .back-link { font-size: 10px; margin-bottom: 6px; }
.app-shell .page-meta { font-size: 9px; padding-top: 3px; }
.app-shell .button { padding: 6px 10px; min-height: 30px; font-size: 11px; gap: 6px; border-radius: 5px; }
.app-shell .button svg { width: 13px; height: 13px; }
.app-shell .badge { font-size: 9px; padding: 3px 6px; line-height: 1.45; }
.app-shell .panel { padding: 14px; border-radius: 8px; margin-bottom: 12px; }
.app-shell .panel>h2 { margin-bottom: 10px; }
.app-shell .section-heading { gap: 10px; margin-bottom: 10px; }
.app-shell .section-heading p { font-size: 10px; margin-top: 3px; }
.app-shell .stats { padding-block: 12px; margin-bottom: 15px; }
.app-shell .stats>div { padding-inline: 18px; }
.app-shell .stats strong { font-size: 25px; margin-top: 3px; }
.app-shell .stats span { font-size: 10px; }
.app-shell .search { padding: 4px 6px 4px 9px; min-width: 190px; gap: 6px; }
.app-shell .search input { font-size: 11px; padding: 3px 0; width: 165px; }
.app-shell .search button { padding: 4px 6px; font-size: 9px; }
.app-shell .table-wrap { margin-bottom: 14px; border-radius: 8px; }
.app-shell table { font-size: 11px; }
.app-shell th { padding: 8px 10px; font-size: 10px; }
.app-shell td { padding: 10px; }
.app-shell td>small { margin-top: 3px; font-size: 9px; }
.app-shell .table-actions { gap: 9px; font-size: 10px; }
.app-shell .form-grid { gap: 10px 14px; }
.app-shell .field { margin-bottom: 10px; }
.app-shell .form-grid>.field { margin-bottom: 0; }
.app-shell label, .app-shell .field>label { margin-bottom: 4px; font-size: 11px; line-height: 1.5; }
.app-shell input, .app-shell select, .app-shell textarea,
.app-shell .field input, .app-shell .field select, .app-shell .field textarea { padding: 7px 9px; font-size: 12px; line-height: 1.5; border-radius: 5px; }
.app-shell input:not([type=checkbox]):not([type=radio]):not([type=file]), .app-shell select { min-height: 33px; }
.app-shell textarea, .app-shell .field textarea { height: 92px; min-height: 72px; resize: vertical; }
.app-shell .field textarea[name$="body"], .app-shell textarea[name="body"] { height: 180px; min-height: 150px; }
.app-shell input[type=checkbox], .app-shell input[type=radio] { width: 14px; height: 14px; }
.app-shell input[type=file] { font-size: 11px; }
.app-shell .form-note { font-size: 10px; line-height: 1.55; }
.app-shell .helptext { font-size: 10px; line-height: 1.5; }
.app-shell .field label.checkbox-label { padding: 8px; font-size: 11px; }
.app-shell .form-actions { gap: 8px; }
.app-shell .entry-layout { gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(180px, .7fr); }
.app-shell .side-note { padding: 12px 2px; }
.app-shell .side-note h2 { font-size: 16px; }
.app-shell .side-note ol { font-size: 11px; line-height: 1.65; margin: 13px 0; }
.app-shell .side-note>p { font-size: 11px; line-height: 1.65; }
.app-shell .two-column, .app-shell .quote-workspace { gap: 14px; }
.app-shell .route-card { padding: 12px 14px; gap: 16px; margin-bottom: 14px; }
.app-shell .workflow-tabs { margin-bottom: 16px; }
.app-shell .workflow-actions { margin: 15px 0; gap: 8px; }
.app-shell .client-card { padding: 14px; }
.app-shell .client-card h2 { font-size: 14px; }
.app-shell .client-card p, .app-shell .client-card div>span { font-size: 10px; }
.app-shell .partner-card { padding: 11px; gap: 9px; }
.app-shell .partner-card h3 { font-size: 12px; }
.app-shell .partner-selection label { padding: 10px!important; min-height: 44px; font-size: 12px; }
.app-shell .timeline { font-size: 11px; }
.app-shell .timeline strong { font-size: 12px; }
.app-shell .timeline p { font-size: 11px; }
.app-shell .app-footer { font-size: 9px; padding-top: 12px; }

/* The inbox keeps its two working columns while the assistant has a real rail. */
.app-shell .client-inbox-workspace .client-inbox-heading { margin-bottom: 8px; }
.app-shell .client-inbox-heading>div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.app-shell .client-inbox-workspace .client-inbox-heading h1 { font-size: 20px; line-height: 1.3; margin: 0; }
.app-shell .client-inbox-workspace .client-inbox-heading p { font-size: 10px; margin: 0; line-height: 1.4; }
.app-shell .client-inbox-workspace .client-inbox-heading>.button { min-height: 28px; padding: 5px 9px; font-size: 10px; }
.app-shell .client-inbox-controls { gap: 8px; margin-bottom: 8px; align-items: center; }
.app-shell .client-inbox-search { min-height: 30px; padding: 3px 7px; border-radius: 6px; }
.app-shell .client-inbox-search input { min-height: 0!important; padding: 2px 0; font-size: 10px; }
.app-shell .client-inbox-search svg { width: 14px; height: 14px; }
.app-shell .client-inbox-search button { padding: 3px 5px; }
.app-shell .client-inbox-filters { gap: 2px; }
.app-shell .client-inbox-filters>a { padding: 4px 6px; font-size: 10px; }
.app-shell .client-inbox-grid { grid-template-columns: minmax(230px, .35fr) minmax(0, .65fr); gap: 12px; }
.app-shell .client-inbox-workspace .client-mailbox-list { padding: 0; margin-bottom: 0; border-radius: 8px; }
.app-shell .client-mailbox-heading { padding: 8px 10px; gap: 8px; }
.app-shell .client-inbox-workspace[data-request-workspace="true"] .client-mailbox-heading { padding-block: 8px; }
.app-shell .client-inbox-workspace[data-request-workspace="true"] [data-inbox-list] { gap: 4px; padding: 7px; }
.app-shell .client-inbox-workspace .client-mail-row-header>.client-mail-select,
.app-shell .client-inbox-workspace[data-request-workspace="true"] .client-mail-select { padding: 8px 9px; }
.app-shell .client-inbox-workspace[data-request-workspace="true"] .client-mail-heading { margin-bottom: 3px; gap: 7px; }
.app-shell .client-mail-heading>strong { font-size: 11px; line-height: 1.4; }
.app-shell .client-mail-heading>time { font-size: 8px; }
.app-shell .client-mail-subject { font-size: 11px; line-height: 1.45; }
.app-shell .client-mail-meta { margin-top: 4px!important; gap: 4px 7px; align-items: baseline; flex-wrap: wrap; }
.app-shell .client-mail-meta>span:first-child { font-size: 9px; line-height: 1.45; }
.app-shell .client-mail-meta>.badge { font-size: 8px; padding: 2px 5px; }
.app-shell .client-inbox-workspace[data-request-workspace="true"] .request-row-progress { font-size: 10px; line-height: 1.45; margin-top: 5px; gap: 3px 7px; }
.app-shell .request-row-progress>span>strong { font-size: 11px; }
.app-shell .request-row-progress>strong { font-size: 12px; }
.app-shell .client-mail-toggle { width: 24px; flex-basis: 24px; padding: 4px; }
.app-shell .request-navigation-host { top: 8px; margin-bottom: 8px; }
.app-shell .request-step-navigation { min-height: 34px; padding: 3px 5px; gap: 4px; }
.app-shell .request-step-inbox { font-size: 10px; padding: 5px 2px; gap: 4px; }
.app-shell .request-step-reference { font-size: 9px; padding-inline: 4px; }
.app-shell .request-step-trail a { font-size: 10px; padding: 4px 6px; gap: 4px; }
.app-shell .request-step-number { min-width: 15px; height: 15px; font-size: 8px; }
.app-shell .request-step-next { padding: 6px 8px; font-size: 10px; gap: 5px; }
.app-shell .client-inbox-workspace[data-request-workspace="true"] .client-mailbox-list { top: 59px; max-height: calc(100vh - 72px); }
.app-shell .request-workspace { padding: 12px; }
.app-shell .request-workspace .request-workspace-heading { margin-bottom: 9px; gap: 8px; }
.app-shell .request-workspace-heading .eyebrow { font-size: 8px; letter-spacing: 1px; line-height: 1.5; }
.app-shell .request-workspace-heading h2 { font-size: 16px; margin-top: 4px; line-height: 1.4; }
.app-shell .request-workspace-heading>.badge { font-size: 9px; }
.app-shell .request-workspace .request-stage-card { padding: 11px; margin-bottom: 9px; border-radius: 7px; }
.app-shell .request-stage-card>.section-heading { margin-bottom: 9px; gap: 8px; }
.app-shell .request-stage-card h3, .app-shell .request-stage-card h2 { font-size: 15px; line-height: 1.45; }
.app-shell .request-stage-card .form-grid { gap: 9px 12px; }
.app-shell .request-stage-card .field>label { font-size: 11px; line-height: 1.5; }
.app-shell .request-stage-card input, .app-shell .request-stage-card select, .app-shell .request-stage-card textarea { font-size: 12px; padding: 7px 8px; line-height: 1.5; }
.app-shell .request-stage-card .button { min-height: 30px; font-size: 11px; }
.app-shell .request-stage-card .form-note, .app-shell .request-stage-card .checkbox-label { font-size: 10px; line-height: 1.55; }
.app-shell .request-stage-card>p:not(.form-note) { font-size: 11px; line-height: 1.6; margin: 7px 0 10px; }
.app-shell .request-stage-card>h4 { font-size: 12px; line-height: 1.5; margin: 10px 0 8px; }
.app-shell .request-private-pricing { padding: 10px; margin: 10px 0 12px; gap: 10px; }
.app-shell .request-private-pricing dt { font-size: 10px; line-height: 1.45; margin-bottom: 3px; }
.app-shell .request-private-pricing dd { font-size: 17px; line-height: 1.4; }
.app-shell .request-workspace-footer { margin-top: 10px; padding-top: 9px; font-size: 9px; gap: 7px; }
.app-shell .compact-compose-heading { margin-bottom: 11px; gap: 8px; }
.app-shell .client-inbox-workspace .compact-compose-heading h2 { font-size: 15px; }
.app-shell .compact-client-workspace .compact-compose-form>.field { margin-bottom: 10px; }
.app-shell .compact-client-workspace .compact-compose-form>.field input { padding: 7px 8px; font-size: 12px; }
.app-shell .compact-client-workspace .compact-body-field textarea { font-size: 12px; line-height: 1.55; height: 190px; min-height: 190px; padding: 9px; }
.app-shell .compact-client-workspace .compact-partner-chips { gap: 5px; }
.app-shell .compact-client-workspace .compact-partner-chips>label { padding: 5px 7px; min-height: 32px; }
.app-shell .compact-client-workspace .compact-partner-chips strong { font-size: 10px; }
.app-shell .compact-client-workspace .compact-partner-chips small { font-size: 9px; }
.app-shell .compact-partner-selector-heading { margin-bottom: 6px; gap: 8px; }
.app-shell .compact-compose-note { font-size: 9px; line-height: 1.5; margin-top: 7px; }
.app-shell .compact-compose-actions { gap: 5px; }
.app-shell .compact-client-workspace .compact-compose-actions>.button { min-height: 30px; padding: 6px 9px; font-size: 10px; }
.app-shell .request-offer-summary { padding: 7px 9px; margin-bottom: 8px; gap: 5px 9px; }
.app-shell .request-offer-summary-count>strong { font-size: 12px; line-height: 1.45; }
.app-shell .request-offer-summary-count>span { font-size: 9px; }
.app-shell .request-offer-summary-lowest>strong { font-size: 20px; }
.app-shell .request-offer-summary-lowest>span, .app-shell .request-offer-summary-lowest>b { font-size: 9px; }
.app-shell .request-workspace .request-offer-list { gap: 5px; }
.app-shell .request-offers .request-offer-card { padding: 8px 11px 0; border-radius: 7px; }
.app-shell .request-offers .request-offer-card.is-lowest { padding: 7px 10px 0; }
.app-shell .request-offers .request-offer-card-heading { margin-bottom: 6px; gap: 5px 8px; }
.app-shell .request-offers .request-offer-card-heading>div>strong { font-size: 15px; line-height: 1.4; }
.app-shell .request-offers .request-offer-card-heading>div>span { font-size: 9px; line-height: 1.5; margin-top: 1px; }
.app-shell .request-offers .request-offer-card-heading>.badge { font-size: 8px; padding: 3px 5px; }
.app-shell .request-offers .request-offer-price-row { margin-bottom: 7px; gap: 5px 10px; }
.app-shell .request-offers .request-offer-price-row>div>span { font-size: 9px; line-height: 1.4; margin-bottom: 2px; }
.app-shell .request-offers .request-offer-main-price>strong { font-size: 23px!important; line-height: 1.25; }
.app-shell .request-offers .request-offer-main-price.is-incomplete>strong { font-size: 15px!important; }
.app-shell .request-offers .request-offer-initial>strong, .app-shell .request-offers .request-offer-saving>strong { font-size: 13px; }
.app-shell .request-offers .request-offer-source, .app-shell .request-offers .request-offer-history { margin-inline: -11px; }
.app-shell .request-offers .request-offer-card.is-lowest>.request-offer-source, .app-shell .request-offers .request-offer-card.is-lowest>.request-offer-history { margin-inline: -10px; }
.app-shell .request-offers .request-offer-source>summary { padding: 5px 11px; font-size: 10px; line-height: 1.5; }
.app-shell .request-offers .request-offer-source>summary>span { font-size: 8px; }
.app-shell .request-offers .request-offer-source-body { padding: 11px; }
.app-shell .request-offer-source-body .source-text, .app-shell pre.request-email-preview { font-size: 12px; line-height: 1.6; }
.app-shell .request-email-preview { padding: 11px; margin: 10px 0; }

@media (min-width: 1180px) {
  body.has-assistant-rail .app-shell { padding-right: var(--assistant-rail-space); }
  body.has-assistant-rail .app-top,
  body.has-assistant-rail .client-inbox-heading,
  body.has-assistant-rail .client-inbox-controls,
  body.has-assistant-rail .request-navigation-host { width: calc(100% + var(--assistant-rail-space)); }
  body.has-assistant-rail .entry-layout { grid-template-columns: minmax(0, 1fr) minmax(170px, .45fr); }
  body.has-assistant-rail .quote-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); }
}
@media (min-width: 1180px) and (max-width: 1440px) {
  body.has-assistant-rail .main-content { padding-inline: 14px; }
  body.has-assistant-rail .app-top { padding-inline: 14px; }
  body.has-assistant-rail .client-inbox-grid { grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr); gap: 10px; }
  body.has-assistant-rail .request-step-reference { display: none; }
  body.has-assistant-rail .request-step-trail a { padding-inline: 5px; font-size: 9px; gap: 3px; }
  body.has-assistant-rail .request-step-next { font-size: 9px; }
  body.has-assistant-rail .request-private-pricing { gap: 8px; }
}
@media (max-width: 1179px) {
  .app-shell .client-inbox-grid { grid-template-columns: minmax(240px, .4fr) minmax(0, .6fr); }
  .app-shell .entry-layout { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 60px minmax(0, 1fr); }
  .app-shell .app-nav { padding-inline: 7px; }
  .app-shell .brand { padding: 0 2px 22px; }
  .app-shell .nav-link { padding: 10px 7px; }
  .app-shell .main-content { padding: 16px; }
  .app-shell .app-top { padding-inline: 16px; }
  .app-shell .entry-layout, .app-shell .quote-workspace, .app-shell .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell .client-inbox-heading>div { display: block; }
  .app-shell .client-inbox-workspace .client-inbox-heading p { margin-top: 4px; }
  .app-shell .client-inbox-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-shell .client-inbox-workspace[data-request-workspace="true"] .client-mailbox-list { position: static; max-height: 360px; overflow-y: auto; }
}
@media (max-width: 600px) {
  .app-shell { display: block; }
  .app-shell .app-nav { padding: 8px 10px; }
  .app-shell .brand { padding: 0; }
  .app-shell .nav-link { padding: 8px 6px; }
  .app-shell .main-content { padding: 15px 12px 10px; }
  .app-shell .app-top { height: 42px; padding-inline: 12px; }
  .app-shell .app-top-actions .company-name { display: none; }
  .app-shell .page-heading h1, .app-shell .client-inbox-workspace .client-inbox-heading h1 { font-size: 22px; }
  .app-shell .page-heading>.button { width: auto; }
  .app-shell .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-shell .field input, .app-shell .field select, .app-shell .field textarea { font-size: 16px; }
  .app-shell .button { min-height: 34px; }
  .app-shell .client-inbox-controls .search { width: 100%; }
  .app-shell .client-inbox-controls .search input { width: 100%; }
  .app-shell .request-workspace-heading { flex-wrap: wrap; }
  .app-shell .request-workspace-heading h2 { font-size: 17px; }
  .app-shell .request-offers .request-offer-main-price>strong { font-size: 24px!important; }
  .app-shell .request-stage-card input, .app-shell .request-stage-card select, .app-shell .request-stage-card textarea { font-size: 16px; }
}
@media print {
  body.has-assistant-rail .app-shell { padding-right: 0; }
  .request-assistant { display: none!important; }
}
