/* Owner dashboard and order progress styles split from styles.css. */
.dashboard-main-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, 0.85fr);
}

.dashboard-decision-rail {
  align-content: start;
}

.owner-dashboard {
  display: grid;
  gap: 8px;
}

.owner-sidebar .nav-btn {
  min-height: 52px;
  text-align: left;
}

.owner-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.owner-section-heading h3 {
  margin: 0;
}

.owner-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.owner-dashboard-main,
.owner-dashboard-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.owner-dashboard-metrics .command-card {
  min-height: 104px;
}

.owner-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
}

.owner-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.owner-summary-item:last-child {
  border-right: 0;
}

.owner-summary-item span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.owner-summary-item strong {
  color: var(--blue-950);
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.owner-summary-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.owner-summary-item.danger {
  border-top: 3px solid var(--danger);
}

.owner-summary-item.danger strong {
  color: #b91c1c;
}

.owner-summary-item.warn {
  border-top: 3px solid var(--warn);
}

.owner-attention-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  background: #fffbeb;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.owner-attention-line.danger {
  border-left-color: var(--danger);
  background: #fffafa;
}

.owner-attention-line.ok {
  border-left-color: var(--ok);
  background: #f0fdf4;
}

.owner-attention-line button,
.owner-section-link {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--blue-900);
  padding: 6px 4px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.owner-attention-line button:focus-visible,
.owner-section-link:focus-visible,
.owner-focus-row:focus-visible,
.owner-more-link:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

.owner-compact-section {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px 10px;
}

.owner-compact-section .owner-section-heading {
  min-height: 44px;
  margin-bottom: 0;
  padding: 7px 0;
}

.owner-section-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-focus-list {
  border-top: 1px solid var(--line);
}

.owner-focus-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(120px, 0.9fr) 120px 130px auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  text-align: left;
  touch-action: manipulation;
}

.owner-focus-row:last-child {
  border-bottom: 0;
}

.owner-focus-row:hover {
  background: var(--blue-050);
}

.owner-focus-row.danger {
  border-left: 4px solid var(--danger);
}

.owner-focus-row.warn {
  border-left: 4px solid var(--warn);
}

.owner-focus-row > span {
  min-width: 0;
}

.owner-focus-order,
.owner-focus-due,
.owner-focus-process {
  display: grid;
  gap: 2px;
}

.owner-focus-order strong,
.owner-focus-due strong,
.owner-focus-process strong {
  overflow: hidden;
  color: var(--blue-950);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-focus-order small,
.owner-focus-due small,
.owner-focus-process small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-focus-product {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-focus-row > em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.owner-focus-row.danger > em {
  color: #b91c1c;
}

.owner-empty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}

.owner-empty-row strong {
  color: var(--blue-950);
}

.owner-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.owner-process-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 6px 9px;
}

.owner-process-cell.warn {
  border-left: 3px solid var(--warn);
  background: #fffbeb;
}

.owner-process-cell.normal {
  border-left: 3px solid var(--ok);
}

.owner-process-cell strong {
  overflow: hidden;
  color: var(--blue-950);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-process-cell span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.owner-process-cell b {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.owner-activity-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.owner-activity-line strong {
  color: var(--blue-950);
  font-variant-numeric: tabular-nums;
}

.owner-order-search-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--blue-950);
  font-size: 14px;
  font-weight: 900;
}

.owner-order-search-field input {
  min-height: 44px;
}

.owner-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  touch-action: manipulation;
}

.owner-more-link:hover {
  border-color: var(--blue-700);
  background: var(--blue-050);
}

.owner-more-link span {
  display: grid;
  gap: 3px;
}

.owner-more-link strong {
  color: var(--blue-950);
}

.owner-more-link small,
.owner-more-link em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.owner-process-panel {
  min-width: 0;
}

.owner-process-route {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.owner-process-route .process-node {
  grid-template-columns: 36px minmax(0, 1fr);
  text-align: left;
  min-width: 0;
}

.owner-process-route .process-node strong,
.owner-process-route .process-node em,
.owner-process-route .process-node small {
  min-width: 0;
}

.owner-process-route .process-node em,
.owner-process-route .process-node small {
  grid-column: 2;
}

.owner-order-list,
.owner-compact-list,
.owner-progress-list {
  display: grid;
  gap: 8px;
}

.owner-progress-list {
  gap: 14px;
}

.owner-order-card {
  min-width: 0;
}

.owner-order-card .step-strip {
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
}

.owner-order-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-compact-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue-700);
  background: #fff;
  padding: 10px;
}

.owner-compact-card.danger {
  border-left-color: var(--danger);
  background: #fffafa;
}

.owner-compact-card.warn {
  border-left-color: var(--warn);
  background: #fffbeb;
}

.owner-compact-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.owner-compact-card strong,
.owner-compact-card p,
.owner-compact-card span {
  min-width: 0;
}

.owner-compact-card strong {
  color: var(--blue-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-compact-card p {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.owner-compact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.owner-order-progress {
  display: grid;
  gap: 12px;
}

.owner-order-search {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.owner-order-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  padding: 0 12px;
  font-weight: 800;
  color: var(--ink);
}

.owner-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.owner-filter-tabs button {
  border: 1px solid var(--blue-700);
  background: #fff;
  color: var(--blue-950);
  font-weight: 900;
  padding: 8px 12px;
}

.owner-filter-tabs button.active {
  background: var(--blue-600);
  color: #fff;
}

.owner-progress-card {
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.owner-progress-card.danger {
  border-left: 5px solid var(--danger);
}

.owner-progress-card.is-expanded {
  border-bottom: 4px solid var(--blue-700);
  box-shadow: 0 4px 0 rgba(22, 78, 126, 0.08);
}

.owner-progress-head {
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.owner-progress-head:focus-visible {
  outline: 3px solid rgba(30, 111, 180, 0.35);
  outline-offset: 2px;
}

.owner-progress-head span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.owner-progress-head strong {
  color: var(--blue-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-progress-head em {
  font-style: normal;
  color: var(--muted);
  font-weight: 900;
}

.owner-progress-head .owner-progress-toggle {
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
  white-space: nowrap;
}

.owner-progress-toggle small {
  font-size: inherit;
  font-weight: 900;
}

.owner-progress-body {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.owner-progress-body > div {
  display: grid;
  gap: 4px;
  background: #fff;
  padding: 8px;
  min-width: 0;
}

.owner-progress-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-progress-body strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-step-strip {
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}

.owner-progress-detail {
  display: grid;
  gap: 8px;
  border-top: 3px solid var(--blue-700);
  background: #f2f7fc;
  padding: 10px;
}

.owner-progress-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.owner-progress-detail-head strong {
  color: var(--blue-950);
}

.owner-progress-detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.owner-progress-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-progress-process {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1px 7px;
  align-items: center;
  border: 1px solid var(--line);
  min-width: 0;
  padding: 6px 8px;
  background: #fff;
}

.owner-progress-process-number {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #dfeaf5;
  color: var(--blue-950);
  font-size: 12px;
  font-weight: 900;
}

.owner-progress-process strong {
  min-width: 0;
  color: var(--blue-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-progress-process small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.owner-progress-process.is-done .owner-progress-process-number {
  background: #dcefe4;
  color: #17643a;
}

.owner-progress-process.is-current {
  border-color: var(--blue-700);
  background: #eaf3fb;
}

.owner-progress-process.is-current .owner-progress-process-number {
  background: var(--blue-700);
  color: #fff;
}

.owner-progress-process.is-current small {
  color: var(--blue-950);
}

.owner-progress-final-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--blue-700);
  background: #fff;
  padding: 8px 10px;
}

.owner-progress-final-quantity span {
  color: var(--blue-950);
  font-weight: 900;
}

.owner-progress-final-quantity strong {
  color: var(--blue-700);
  font-size: 18px;
  white-space: nowrap;
}

.owner-progress-process-empty {
  margin: 0;
  border: 1px dashed var(--line-strong);
  padding: 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.board-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.board-footnote span {
  border: 1px solid var(--line);
  background: var(--blue-050);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.owner-report-page {
  min-width: 0;
}

.owner-report-export .owner-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.owner-report-export-button {
  min-height: 40px;
  padding: 0 14px;
}

.owner-report-details {
  border-top: 1px solid var(--line);
}

.owner-report-details summary {
  min-height: 44px;
  padding: 11px 2px;
  color: var(--blue-950);
  cursor: pointer;
  font-weight: 900;
  touch-action: manipulation;
}

.owner-report-details summary:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

.owner-report-detail-list {
  display: grid;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.owner-report-detail-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.owner-report-detail-list span,
.owner-report-audit-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-report-detail-list strong {
  color: var(--ink);
}

.owner-report-audit-note {
  margin: 0;
  padding-top: 8px;
}

.owner-approval-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.owner-approval-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 84px;
  padding: 10px 12px;
  background: #fff;
}

.owner-approval-summary span,
.owner-approval-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.owner-approval-summary strong {
  color: var(--blue-950);
  font-size: 20px;
  line-height: 1.2;
}
