/* Shared rounded surfaces, matching the production overview cards. */
@media screen {
  :root {
    --radius:12px;
    --border:#e5e4ed;
    --muted:#f7f6fa;
    --surface-radius:18px;
  }
  body { background:#f7f6fa; letter-spacing:0; }
  .app-shell { background:#f7f6fa; }
  .main-content { min-width:0; }
  .card,.profile-summary-card,.profile-password-card,.order-editor-card,.order-detail-card,
  .order-fabric-card,.order-customer-card,.order-workflow-card,.order-list-card,
  .production-order-card,.production-compact-card,.production-dashboard-card,
  .order-filter-bar,.dispatch-overview,.dispatch-submit-bar {
    border:1px solid var(--border);
    border-radius:var(--surface-radius);
    box-shadow:none;
    background-color:#fff;
  }
  .card-header { background:#fff; border-color:#eeedf3; padding:20px 22px; border-radius:17px 17px 0 0; }
  .card-body { padding:22px; }
  .card-title { font-size:19px; letter-spacing:-.3px; line-height:1.45; }
  .page-title { letter-spacing:-.8px; }
  .btn,.catalog-row-actions .btn,.order-list-card .catalog-row-actions .btn,
  .order-form-footer .btn,.order-customer-control>#open-order-customer {
    border-radius:11px; letter-spacing:.2px; min-height:44px; line-height:1.4;
  }
  .btn-outline { border-color:#dcdce6; background:#fff; }
  .btn-outline:hover { background:#faf8fa; border-color:#b4a6af; }
  .btn:focus-visible,.nav-link:focus-visible,.production-dashboard-card:focus-visible {
    outline:3px solid #ed1c2450; outline-offset:3px;
  }
  .input,.select,textarea.input { border-color:#e3e1eb; border-radius:12px; background-color:#fdfcfe; letter-spacing:0; }
  .input:hover,.select:hover { border-color:#bfc2ce; }
  .input:focus,.select:focus { background-color:#fff; border-color:#c43844; box-shadow:0 0 0 3px #ed1c2414; }
  .label { font-weight:500; color:#25334b; }
  .field-hint,.settings-text { color:#64748b; letter-spacing:0; line-height:1.7; }
  .badge,.production-priority { border-radius:9px; letter-spacing:0; }
  .table-wrap { border-color:#e5e4ed; border-radius:13px; }
  .table th { background:#faf9fc; border-color:#eeedf3; color:#617087; font-size:11px; letter-spacing:.6px; padding:14px; }
  .table td { border-color:#eeedf3; padding:15px 14px; line-height:1.6; }
  .table tbody tr:hover { background:#fdfbfd; }
  .table tbody tr.row-link:hover { background:#faf8fc; }
  .production-dashboard-card { padding:24px; gap:18px; transition:border-color .15s,box-shadow .15s; }
  .production-dashboard-card:hover { border-color:#be1e2d; transform:none; box-shadow:0 4px 18px #0f172a05; }
  .production-dashboard-card>span { color:#65748b; font-size:13px; }
  .production-dashboard-card>strong { color:#101827; font-size:34px; }
  .production-dashboard-card>small { color:#75849a; font-size:12px; }
  .production-tab,.catalog-tabs .btn { border-radius:13px; }
  .production-tab { min-height:46px; }
  .foam-layer { border-radius:16px; border-color:#e8e4ed; background:#fdfbfe; }
  .fabric-picker,.customer-select-trigger { border-radius:12px; border-color:#e3e1eb; }
  .fabric-options,.customer-select-popover,.order-filter-popover { border-radius:14px; }
  .fabric-option { border-radius:11px; }
  .order-detail-metrics { border-color:#e5e4ed; border-radius:18px; }
  .order-form-footer { border-radius:0 0 18px 18px; }
  .profile-password-header { background:#fff; border-color:#eeedf3; border-radius:17px 17px 0 0; }
  .alert { border-radius:12px; overflow-wrap:anywhere; }
  .amax-page-button { border-radius:11px; }
  .header-user-copy { flex-direction:column; gap:2px; }
  html[data-sidebar-design="studio"] .sidebar-brand {
    background:transparent; border:0; box-shadow:none; padding:10px 0; border-radius:0;
  }
  html[data-sidebar-design="studio"] .sidebar-brand::after { content:none; }
  html[data-sidebar-design="studio"] .sidebar-brand-logo {
    background:transparent; padding:0; border:0; border-radius:0; box-shadow:none;
  }
  .auth-card { background:#fff; border:1px solid var(--border); border-radius:20px; padding:28px; max-width:440px; }
  .order-editor-card:has(.foam-picker) { overflow:visible; }
  .foam-picker { position:relative; min-width:0; }
  .foam-picker-trigger { height:auto; min-height:48px; padding:12px 14px; }
  .foam-picker-value { flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
  .foam-picker-popover { z-index:50; }
  .foam-picker-option-copy { display:grid; flex:1; gap:4px; min-width:0; text-align:left; }
  .foam-picker-option-copy strong { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
  .foam-picker-option-copy small { font-size:12px; color:#64748b; overflow-wrap:anywhere; }
  .foam-picker-popover .order-customer-results button { min-height:52px; }
  .foam-picker-popover .order-customer-results { max-height:min(280px,38dvh); overscroll-behavior:contain; }
  .additional-mattress { margin-top:24px; }
  .additional-mattress>.order-fields { display:grid; gap:24px; }
  .order-group-card { display:grid; gap:16px; }
  .order-group-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:16px; }
  .order-group-heading h2 { margin:0; font-size:20px; letter-spacing:-.4px; }
  .order-group-heading p { margin:6px 0 0; color:#64748b; font-size:13px; }
  .order-group-card>.order-group-heading { margin:0; padding:18px 22px; border:1px solid #e5e4ed; border-radius:18px; background:#fff; }
  .order-item-section { margin-top:28px; padding-top:24px; border-top:1px solid #e5e4ed; }
  .multi-order-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:16px; padding:24px 0; }
  .multi-order-toolbar p { color:#64748b; font-size:14px; margin:0; }
  .size-picker { position:relative; min-width:0; }
  .size-picker-trigger { min-height:48px; height:auto; padding:12px 14px; }
  .size-picker-value { flex:1; min-width:0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
  .size-picker-popover { z-index:50; }
  .size-picker-option-copy { display:grid; gap:4px; flex:1; text-align:left; }
  .size-picker-option-copy strong { font-size:14px; font-weight:500; }
  .size-picker-option-copy small:empty { display:none; }
  .size-picker-popover .order-customer-results button { min-height:48px; }
  .size-picker-popover .order-customer-results { max-height:min(280px,38dvh); overscroll-behavior:contain; }
}
