/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --sf-ink: #13161c;
  --sf-muted: #636b78;
  --sf-border: #e0e3e8;
  --sf-canvas: #f6f7f9;
  --sf-blue: #3873f2;
  --sf-green: #21b06b;
  --sf-orange: #f59124;
  --sf-red: #e84552;
}

html { background: var(--sf-canvas); }
body { -webkit-font-smoothing: antialiased; }
.crm-shell { color: var(--sf-ink); }
.crm-shell main { min-width: 0; }
.crm-shell main .bg-slate-900,
.crm-shell main .bg-slate-950,
.crm-shell main .bg-slate-800 { background-color: #fff !important; }
.crm-shell main .border-slate-800,
.crm-shell main .border-slate-700 { border-color: var(--sf-border) !important; }
.crm-shell main .text-slate-100,
.crm-shell main .text-slate-300 { color: var(--sf-ink) !important; }
.crm-shell main .text-slate-400 { color: var(--sf-muted) !important; }
.crm-shell main .text-violet-400,
.crm-shell main .text-violet-300 { color: var(--sf-blue) !important; }
.crm-shell main .bg-violet-600,
.crm-shell main .bg-violet-500 { background-color: #1e1e1e !important; color: #fff !important; }
.crm-shell main .hover\:bg-slate-800:hover,
.crm-shell main .hover\:bg-violet-500:hover { background-color: #f0f2f5 !important; color: var(--sf-ink) !important; }
.crm-shell main section,
.crm-shell main form.rounded-2xl,
.crm-shell main div.rounded-2xl { box-shadow: none; }
.crm-shell main label { color: var(--sf-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.crm-shell main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]),
.crm-shell main select,
.crm-shell main textarea {
  max-width: 100%; min-height: 44px; border: 1px solid var(--sf-border) !important;
  border-radius: 8px !important; background: #fff !important; color: var(--sf-ink) !important;
  font-size: 13px; outline: none;
}
.crm-shell main textarea { min-height: 110px; }
.crm-shell main textarea.quote-line-description { height: 44px; min-height: 44px !important; }
.crm-shell main input:focus,
.crm-shell main select:focus,
.crm-shell main textarea:focus { border-color: var(--sf-blue) !important; box-shadow: 0 0 0 3px rgb(56 115 242 / 12%); }
.crm-shell main input[type="submit"],
.crm-shell main button { min-height: 40px; touch-action: manipulation; }
.sf-card { border: 1px solid var(--sf-border); border-radius: 12px; background: #fff; }
.sf-primary { border-radius: 9px; background: #1e1e1e; color: #fff; font-size: 12px; font-weight: 600; }
.sf-secondary { border: 1px solid var(--sf-border); border-radius: 9px; background: #fff; color: var(--sf-ink); font-size: 12px; font-weight: 600; }
.crm-shell main input[type="file"].sf-file-input {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--sf-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--sf-muted) !important;
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
}
.crm-shell main input[type="file"].sf-file-input::file-selector-button,
.crm-shell main input[type="file"].sf-file-input::-webkit-file-upload-button {
  min-height: 42px;
  margin-right: 12px;
  border: 0 !important;
  border-right: 1px solid var(--sf-border) !important;
  border-radius: 0 !important;
  background: #f0f2f5 !important;
  padding: 0 16px;
  color: var(--sf-ink) !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.crm-shell main input[type="file"].sf-file-input:hover::file-selector-button,
.crm-shell main input[type="file"].sf-file-input:hover::-webkit-file-upload-button { background: #e5e8ed !important; }
.crm-shell main input[type="file"].sf-file-input:focus { border-color: var(--sf-blue) !important; box-shadow: 0 0 0 3px rgb(56 115 242 / 12%); }
.crm-shell main input[type="file"]:not(.sr-only) {
  display: block !important;
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid var(--sf-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--sf-muted) !important;
  padding: 0 !important;
  overflow: hidden;
}
.crm-shell main input[type="file"]:not(.sr-only)::file-selector-button,
.crm-shell main input[type="file"]:not(.sr-only)::-webkit-file-upload-button {
  min-height: 44px !important;
  margin: 0 12px 0 0 !important;
  border: 0 !important;
  border-right: 1px solid var(--sf-border) !important;
  border-radius: 0 !important;
  background: #eef1f5 !important;
  padding: 0 16px !important;
  color: var(--sf-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.crm-shell main input[type="file"]:not(.sr-only):hover::file-selector-button,
.crm-shell main input[type="file"]:not(.sr-only):hover::-webkit-file-upload-button { background: #e1e6ed !important; }
.auto-draft-panel { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dbe4f6; border-radius: 9px; background: #f5f8ff; padding: 8px 11px; color: #4f5f7d; font-size: 11px; }
.auto-draft-panel [data-state="restored"] { color: #2459c4; font-weight: 700; }
.auto-draft-panel [data-state="error"] { color: #b4232f; font-weight: 700; }
.auto-draft-discard { min-height: 28px !important; border: 0; background: transparent; color: #5d6675; cursor: pointer; font-size: 10px; font-weight: 700; text-decoration: underline; }
.sf-success { border-radius: 9px; background: var(--sf-green); color: #fff; font-size: 12px; font-weight: 700; }
.sf-success:hover { background: #188c54; }
.sf-danger { border-radius: 9px; background: var(--sf-red); color: #fff; font-size: 12px; font-weight: 700; }
.sf-danger:hover { background: #c93443; }
.sf-section-heading { display: flex; align-items: center; gap: 9px; color: var(--sf-ink); font-size: 15px; font-weight: 700; }
.sf-section-heading svg { color: var(--sf-blue); }
.sf-check-card { display: flex; min-height: 52px; align-items: center; gap: 10px; border: 1px solid var(--sf-border); border-radius: 9px; padding: 9px 11px; background: #fff; cursor: pointer; }
.sf-check-card:has(input:checked) { border-color: var(--sf-blue); background: #f2f6ff; }
.sf-extension-warning { display: flex; align-items: center; gap: 16px; border: 1px solid var(--sf-red); border-radius: 9px; background: #ffedf0; padding: 14px 16px; }
.sf-extension-label { flex: 0 0 auto; border-radius: 6px; background: var(--sf-red); padding: 8px 13px; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sf-schedule-board { display: grid; grid-template-columns: 150px repeat(5, minmax(170px, 1fr)); min-width: 1000px; }
.sf-schedule-header { display: flex; min-height: 62px; flex-direction: column; justify-content: center; gap: 5px; border-left: 1px solid var(--sf-border); padding: 10px 14px; font-size: 10px; color: var(--sf-muted); text-transform: uppercase; }
.sf-schedule-header strong { color: var(--sf-ink); font-size: 12px; }
.sf-schedule-resource-heading { flex-direction: row; align-items: center; justify-content: flex-start; border-left: 0; font-weight: 700; }
.sf-schedule-row { position: relative; display: grid; grid-column: 1 / -1; grid-template-columns: 150px repeat(5, minmax(170px, 1fr)); min-height: 100px; border-top: 1px solid var(--sf-border); }
.sf-schedule-resource { position: sticky; left: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: 6px; grid-column: 1; grid-row: 1; border-right: 1px solid var(--sf-border); background: #fff; padding: 14px; }
.sf-schedule-resource strong { font-size: 11px; }
.sf-schedule-resource span { color: var(--sf-muted); font-size: 9px; }
.sf-schedule-row-background { grid-column: 2 / -1; grid-row: 1; background: repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 1px), var(--sf-border) calc(20% - 1px), var(--sf-border) 20%); }
.sf-booking { position: relative; z-index: 2; align-self: center; grid-row: 1; min-width: 0; min-height: 76px; margin: 10px 7px; border: 1px solid; border-radius: 7px; padding: 13px; color: var(--sf-ink); font-size: 10px; overflow: hidden; }
.sf-booking strong { padding-right: 50px; font-size: 11px; }
.sf-booking span { color: var(--sf-muted); }
.sf-booking-green { border-color: #1f9647; background: #e8faed; }
.sf-booking-blue { border-color: #3873f2; background: #ebf2ff; }
.sf-booking-orange { border-color: #f59124; background: #fff2de; }
.sf-booking-violet { border-color: #7d5eed; background: #f2ebff; }
.sf-booking-cyan { border-color: #0d91ad; background: #e5fafc; }
.sf-booking-extended { border-left: 6px solid var(--sf-red); }
.sf-extended-badge { position: absolute; right: 8px; top: 8px; border-radius: 5px; background: var(--sf-red); padding: 4px 7px; color: #fff !important; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.sf-schedule-mobile { display: none; }
.sf-capacity-red { color: var(--sf-red); }
.sf-capacity-orange { color: var(--sf-orange); }
.sf-capacity-green { color: var(--sf-green); }
.sf-capacity-blue { color: var(--sf-blue); }
.sf-capacity-chart { display: grid; grid-template-columns: repeat(8, minmax(64px, 1fr)); gap: 18px; min-width: 700px; overflow-x: auto; padding: 0 4px 8px; }
.sf-capacity-column { display: grid; grid-template-rows: 20px 220px 24px; gap: 8px; text-align: center; font-size: 9px; color: var(--sf-muted); }
.sf-capacity-track { position: relative; display: flex; align-items: end; overflow: hidden; border-radius: 6px; background: #f0f2f7; }
.sf-capacity-fill { display: block; width: 100%; min-height: 2px; border-radius: 6px 6px 0 0; }
.sf-bg-red { background: var(--sf-red); }
.sf-bg-orange { background: var(--sf-orange); }
.sf-bg-green { background: var(--sf-green); }
.sf-bg-blue { background: var(--sf-blue); }
.sf-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--sf-border); scrollbar-width: none; }
.sf-tabs::-webkit-scrollbar { display: none; }
.sf-tabs a { flex: 0 0 auto; border-bottom: 2px solid transparent; padding: 0 2px 12px; color: var(--sf-muted); font-size: 11px; font-weight: 700; }
.sf-tabs a:hover, .sf-tabs a.is-active { border-bottom-color: var(--sf-ink); color: var(--sf-ink); }
.sf-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 2px 12px; color: var(--sf-muted); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.sf-tabs button:hover, .sf-tabs button.is-active { border-bottom-color: var(--sf-ink); color: var(--sf-ink); }
.sf-production-board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; min-width: 1080px; }
.sf-task-column { min-height: 420px; border: 1px solid var(--sf-border); border-radius: 11px; background: #f7f8fa; }
.sf-task-column > header { display: flex; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid var(--sf-border); padding: 0 14px; }
.sf-task-column > header h2 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.sf-column-dot { width: 8px; height: 8px; border-radius: 999px; background: #8a909b; }
.sf-task-column-in-progress .sf-column-dot { background: var(--sf-blue); }
.sf-task-column-blocked .sf-column-dot { background: var(--sf-red); }
.sf-task-column-completed .sf-column-dot { background: var(--sf-green); }
.sf-count { margin-left: auto; min-width: 22px; border-radius: 999px; background: #e9ebef; padding: 3px 7px; color: var(--sf-muted); font-size: 9px; font-weight: 800; text-align: center; }
.sf-task-card { border: 1px solid #dde0e6; border-radius: 9px; background: #fff; padding: 14px; box-shadow: 0 1px 2px rgb(20 25 35 / 4%); }
.sf-task-card.is-overdue { border-left: 4px solid var(--sf-red); }
.sf-task-category { border-radius: 5px; background: #eef2fb; padding: 4px 7px; color: #4065ae; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.sf-empty-column { display: flex; min-height: 96px; align-items: center; justify-content: center; border: 1px dashed #d5d9e0; border-radius: 8px; color: #8a909b; font-size: 11px; }
.sf-mini-action { min-height: 30px !important; border: 1px solid var(--sf-border); border-radius: 6px; background: #fff; padding: 5px 9px; color: var(--sf-ink); font-size: 9px; font-weight: 800; }
.sf-mini-blue { border-color: #b7cbfa; background: #eff4ff; color: #245ecf; }
.sf-mini-red { border-color: #f3c3c8; background: #fff1f2; color: #bd2938; }
.sf-mini-green { border-color: #b8e6cf; background: #eefbf4; color: #14804a; }
.sf-status { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; background: #edf0f3; padding: 5px 9px; color: #5f6672; font-size: 9px; font-weight: 800; white-space: nowrap; }
.sf-status-in-progress, .sf-status-design, .sf-status-artwork-approval, .sf-status-sent, .sf-status-ordered { background: #ebf2ff; color: #2d62cc; }
.sf-status-blocked, .sf-status-urgent, .sf-status-changes-requested, .sf-status-cancelled, .sf-status-void { background: #ffebee; color: #c72e3d; }
.sf-status-completed, .sf-status-paid, .sf-status-approved, .sf-status-accepted, .sf-status-ready, .sf-status-used { background: #e9f9f0; color: #15824b; }
.sf-status-high, .sf-status-partially-paid, .sf-status-requested, .sf-status-installation, .sf-status-ready-for-installation { background: #fff1df; color: #a65c0e; }
.sf-health { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 9px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sf-health-on-track { background: #e9f9f0; color: #15824b; }
.sf-health-at-risk, .sf-health-extended { background: #fff1df; color: #a65c0e; }
.sf-health-blocked { background: #ffebee; color: #c72e3d; }
.sf-production-snapshot { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--sf-border); border-radius: 11px; background: #fff; overflow: hidden; }
.sf-production-snapshot > div { min-width: 0; border-right: 1px solid var(--sf-border); padding: 18px; }
.sf-production-snapshot > div:last-child { border-right: 0; }
.sf-production-snapshot span, .sf-metric span { display: block; color: var(--sf-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.sf-production-snapshot strong { display: block; margin-top: 7px; overflow: hidden; color: var(--sf-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sf-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 1px solid #eceef2; padding-top: 20px; }
.sf-definition-grid dt { color: var(--sf-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sf-definition-grid dd { margin-top: 6px; color: var(--sf-ink); font-size: 12px; font-weight: 600; line-height: 1.6; }
.sf-stage-track { display: flex; overflow-x: auto; padding: 0 4px 12px; }
.sf-stage-track > div { position: relative; flex: 1 0 86px; text-align: center; }
.sf-stage-track > div::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #e1e4e9; }
.sf-stage-track > div:first-child::before { left: 50%; }
.sf-stage-track > div:last-child::before { right: 50%; }
.sf-stage-track span { position: relative; z-index: 1; display: block; width: 14px; height: 14px; margin: 0 auto; border: 3px solid #e1e4e9; border-radius: 50%; background: #fff; }
.sf-stage-track small { display: block; margin-top: 8px; color: var(--sf-muted); font-size: 8px; line-height: 1.2; }
.sf-stage-track .is-complete::before, .sf-stage-track .is-current::before { background: var(--sf-blue); }
.sf-stage-track .is-complete span { border-color: var(--sf-blue); background: var(--sf-blue); }
.sf-stage-track .is-current span { border-color: var(--sf-blue); }
.sf-stage-track .is-current small { color: var(--sf-ink); font-weight: 800; }
.sf-metric { min-width: 0; border: 1px solid var(--sf-border); border-radius: 8px; background: #fafbfc; padding: 13px; }
.sf-metric strong { display: block; margin-top: 6px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
.sf-timeline-item { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; min-height: 60px; }
.sf-timeline-item > span { position: relative; display: block; width: 9px; height: 9px; margin-top: 2px; border: 2px solid var(--sf-blue); border-radius: 50%; background: #fff; }
.sf-timeline-item > span::after { content: ""; position: absolute; left: 2px; top: 9px; width: 1px; height: 45px; background: var(--sf-border); }
.sf-timeline-item:last-child > span::after { display: none; }
.sf-document { overflow: hidden; border: 1px solid var(--sf-border); border-radius: 14px; background: #fff; color: #172033; }
.sf-document-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; border-top: 7px solid var(--document-accent); padding: 34px 38px 28px; }
.sf-document-brand { display: flex; align-items: flex-start; gap: 18px; }
.sf-document-brand img { width: auto; max-width: 180px; height: 58px; object-fit: contain; object-position: left center; }
.sf-document-wordmark { max-width: 220px; font-size: 22px; font-weight: 850; letter-spacing: -.03em; }
.sf-document-business { display: grid; gap: 3px; color: #677080; font-size: 10px; line-height: 1.45; }
.sf-document-business strong { color: #172033; font-size: 12px; }
.sf-document-title { display: grid; justify-items: end; gap: 4px; text-align: right; }
.sf-document-title span, .sf-document-kicker { color: var(--document-accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sf-document-title strong { font-size: 20px; }
.sf-document-title small { border-radius: 999px; background: #f0f2f5; padding: 5px 9px; color: #596170; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.sf-document-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 50px; border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; background: #fafbfc; padding: 26px 38px; }
.sf-document-parties > div { display: grid; gap: 4px; color: #677080; font-size: 11px; }
.sf-document-parties > div strong { margin-top: 5px; color: #172033; font-size: 15px; }
.sf-document-parties dl { display: grid; gap: 8px; }
.sf-document-parties dl div { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; }
.sf-document-parties dt { color: #7b8391; }
.sf-document-parties dd { color: #172033; font-weight: 700; text-align: right; }
.sf-document-table-wrap { overflow-x: auto; padding: 26px 38px 10px; }
.sf-document-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 11px; }
.sf-document-table thead { border-bottom: 2px solid var(--document-accent); color: #677080; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.sf-document-table th, .sf-document-table td { padding: 11px 9px; text-align: right; }
.sf-document-table th:first-child, .sf-document-table td:first-child { padding-left: 0; text-align: left; }
.sf-document-table th:last-child, .sf-document-table td:last-child { padding-right: 0; }
.sf-document-table tbody tr { border-bottom: 1px solid #e9ebef; }
.sf-document-table tbody td:first-child { color: #172033; font-weight: 650; }
.sf-document-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 50px; padding: 24px 38px 34px; }
.sf-document-notes { color: #626b79; font-size: 10px; line-height: 1.65; }
.sf-document-notes p { margin-top: 8px; }
.sf-document-summary dl { display: grid; gap: 8px; font-size: 11px; }
.sf-document-summary dl > div { display: flex; justify-content: space-between; gap: 24px; }
.sf-document-summary dt { color: #697180; }
.sf-document-summary dd { font-weight: 650; }
.sf-document-summary .is-discount, .sf-document-summary .is-paid { color: #15824b; }
.sf-document-summary .is-total { margin-top: 4px; border-top: 1px solid #ccd1d9; padding-top: 12px; color: #172033; font-size: 16px; font-weight: 800; }
.sf-document-summary .is-balance { margin-top: 4px; border-radius: 8px; background: color-mix(in srgb, var(--document-accent) 9%, white); padding: 11px 12px; color: #172033; font-size: 13px; font-weight: 800; }
.sf-document-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; border-top: 1px solid #e4e7ec; background: #fafbfc; padding: 24px 38px 30px; color: #626b79; font-size: 9px; line-height: 1.55; }
.sf-document-footer strong { display: block; margin-bottom: 5px; color: #172033; font-size: 10px; }

@media (max-width: 639px) {
  .crm-shell main { padding-left: 16px; padding-right: 16px; padding-bottom: 96px; }
  .crm-shell main h1 { font-size: 24px !important; line-height: 1.2; }
  .crm-shell main h2 { line-height: 1.25; }
  .crm-shell main .grid-cols-3,
  .crm-shell main .grid-cols-4 { grid-template-columns: minmax(0, 1fr) !important; }
  .crm-shell main .flex.gap-3 { flex-wrap: wrap; }
  .crm-shell main input[type="submit"],
  .crm-shell main a.rounded-lg,
  .crm-shell main button { min-height: 44px; }
  .mobile-safe-table { display: block; overflow-x: auto; overscroll-behavior-inline: contain; }
  .sf-extension-warning { align-items: stretch; flex-direction: column; }
  .sf-extension-label { width: max-content; }
  .sf-schedule-desktop { display: none; }
  .sf-schedule-mobile { display: block; }
  .sf-schedule-mobile .sf-booking { margin: 0; min-height: 0; padding: 14px; }
  .sf-schedule-mobile .sf-booking strong { padding-right: 68px; }
  .sf-schedule-form-panel { width: 100%; }
  .sf-capacity-chart { gap: 10px; }
  .sf-capacity-column { grid-template-rows: 20px 160px 24px; }
  .sf-production-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-production-snapshot > div { border-bottom: 1px solid var(--sf-border); }
  .sf-definition-grid { grid-template-columns: minmax(0, 1fr); }
  .sf-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .sf-document-header, .sf-document-parties, .sf-document-summary, .sf-document-footer { grid-template-columns: minmax(0, 1fr); flex-direction: column; gap: 22px; padding-left: 20px; padding-right: 20px; }
  .sf-document-title { justify-items: start; text-align: left; }
  .sf-document-table-wrap { padding-left: 20px; padding-right: 20px; }
}

@media print {
  body { background: #fff !important; }
  header, aside, nav, .no-print { display: none !important; }
  .crm-shell main { max-width: none !important; padding: 0 !important; }
  .crm-shell main .sf-card { break-inside: avoid; border-color: #aaa !important; }
  @page { size: A4; margin: 12mm; }
  .sf-document { border: 0 !important; border-radius: 0 !important; }
  .sf-document-header { padding-top: 18px; }
  .sf-document-table-wrap { overflow: visible; }
  .sf-document-table { min-width: 0; }
  .sf-document-footer { break-inside: avoid; }
}
.clipboard-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.clipboard-upload-button {
  appearance: none;
  min-height: 2.5rem;
  border: 1px solid #cdd2da;
  border-radius: 0.65rem;
  background: #f6f7f9;
  color: #252a33;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.clipboard-upload-button:hover { background: #e9edf3; }
.clipboard-upload-button:focus-visible { outline: 3px solid rgb(56 115 242 / 20%); outline-offset: 2px; }
.clipboard-upload-status { color: #636b78; font-size: 0.72rem; line-height: 1.4; }
.clipboard-upload-status[data-state="success"] { color: #087443; font-weight: 600; }
.clipboard-upload-status[data-state="error"] { color: #b4232f; font-weight: 600; }

/* Public enquiry forms do not use the authenticated CRM shell, so their fields
   need an explicit, browser-consistent treatment of their own. */
.public-intake-shell main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
.public-intake-shell main select,
.public-intake-shell main textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid #cdd2da !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #17191f !important;
  padding: 12px 14px !important;
  font: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgb(20 25 35 / 3%);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.public-intake-shell main textarea {
  min-height: 140px;
  resize: vertical;
}

.public-intake-shell main input:focus,
.public-intake-shell main select:focus,
.public-intake-shell main textarea:focus {
  border-color: #3873f2 !important;
  box-shadow: 0 0 0 3px rgb(56 115 242 / 14%);
}

.public-intake-shell main input::placeholder,
.public-intake-shell main textarea::placeholder {
  color: #8a909b;
  opacity: 1;
}
