/* Compact tables for list screens (order/estimate/etc.) */

/* Cards wrapping list tables / filters */
.list-surface-card {
  border-radius: 10px !important;
  overflow: hidden;
}

.list-filter-card {
  border-radius: 10px !important;
  overflow: visible !important;
}

.app-page .list-filter-card {
  margin-bottom: 0.65rem !important;
}

.app-page .list-filter-card > .card-body {
  padding: 0.7rem 0.9rem !important;
}

.app-page .list-filter-card > .card-header {
  padding: 0.5rem 0.9rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338ca;
  background: rgba(236, 238, 255, 0.65);
  border-bottom: 1px solid rgba(55, 48, 163, 0.12);
}

/* キーワード欄: 絞り込み結果でスクロールバーが消えても幅が変わらないように固定 */
.app-page .list-filter-card .list-filter-keyword-col {
  flex: 0 0 12.5rem !important;
  width: 12.5rem !important;
  max-width: 100%;
}

.app-page .list-filter-card .list-filter-keyword-col .form-control {
  width: 100%;
}

.app-page .list-filter-keyword-hint {
  font-size: 0.8em;
  font-weight: 500;
}

/* キーワード／対象月の form-control-sm (31px) と底辺を揃える */
.app-page .list-filter-card .ops-check-show-done-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 31px;
  box-sizing: border-box;
}

.app-page .list-filter-card .ops-check-show-done-toggle-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  margin: 0;
  padding: 0 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.app-page .list-filter-card .ops-check-show-done-toggle-btn:hover {
  background: #f8fafc;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.28);
}

/* 書類の状況／入金／受領: 「指定なし (先月・先々月)」などが折り返さない幅 */
.app-page .list-filter-card .list-filter-month-col {
  flex: 0 0 16rem !important;
  width: 16rem !important;
  min-width: 16rem !important;
  max-width: 100%;
  flex-shrink: 0 !important;
}

.app-page .list-filter-card .list-filter-month-range-col {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

.app-page .list-filter-card .list-filter-month-range {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.4rem;
}

.app-page .list-filter-card .list-filter-month-range-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.app-page .list-filter-card .list-filter-month-range-field .form-control,
.app-page .list-filter-card .list-filter-month-range-field input[type="month"] {
  box-sizing: border-box;
  width: 10.5rem !important;
  min-width: 10.5rem !important;
  max-width: 10.5rem;
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  padding: 0.25rem 0.5rem !important;
  flex: none !important;
  line-height: 1.2;
}

.app-page .ses-month-input {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.app-page .ses-month-input .ses-month-year {
  width: 6.1rem;
  min-width: 6.1rem;
}

.app-page .ses-month-input .ses-month-month {
  width: 4.5rem;
  min-width: 4.5rem;
}

.app-page .list-filter-card .list-filter-month-range-sep {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 31px;
  height: 31px;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .app-page .list-filter-card .list-filter-month-range-col {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .app-page .list-filter-card .list-filter-month-range {
    width: 100%;
    flex-wrap: wrap;
  }

  .app-page .list-filter-card .list-filter-month-range-field,
  .app-page .list-filter-card .list-filter-month-range-field .form-control,
  .app-page .list-filter-card .list-filter-month-range-field input[type="month"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
}

.app-page .list-filter-card .list-filter-month-col .dash-dropdown {
  width: 100%;
}

.app-page .list-filter-card .list-filter-month-col .dash-dropdown-trigger,
.app-page .list-filter-card .list-filter-month-col .dash-dropdown-value,
.app-page .list-filter-card .list-filter-month-col .dash-dropdown-placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
  .app-page .list-filter-card .list-filter-month-col {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* 入金チェック: 年月指定以外は入力欄を無効感のある見た目に */
.app-page .list-filter-card .list-filter-month-pick-wrap.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.app-page .list-filter-card .list-filter-month-pick-wrap.is-disabled .form-control:disabled {
  background-color: #eef2f7;
  cursor: not-allowed;
}

.app-page .list-surface-card.client-list-table-card {
  margin-bottom: 1rem !important;
}

/* Bootstrap HTML tables — billing / order / estimate workflows */
.app-page .table.ses-list-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.09);
  overflow: visible;
  vertical-align: middle;
}

.app-page .table.ses-list-table.table-bordered {
  border: 1px solid rgba(17, 24, 39, 0.09) !important;
}

/* When already inside .table-responsive frame, don't double the outer stroke */
.app-page .table-responsive > .table.ses-list-table {
  border: 0 !important;
  border-radius: 0;
}

.app-page .table.ses-list-table > thead > tr > th {
  background: #eef0ff !important;
  color: #312e81 !important;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-color: rgba(99, 102, 241, 0.14) !important;
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
}

.app-page .table.ses-list-table tbody td {
  padding: 0.45rem 0.75rem;
  border-color: rgba(17, 24, 39, 0.08);
  vertical-align: middle;
  font-size: 0.8125rem;
}

/* 金額・数値: フォントはそのまま、等幅数字でカンマ位置を揃える */
.app-page .ses-money-num,
.app-page .pay-conf-amount,
.app-page .money-wrap,
.app-page .money-amount,
.app-page .table td.text-end,
.app-page .table th.text-end,
.app-page .table td.ses-money,
.app-page .term-detail-readonly,
.app-page input.form-control[inputmode="numeric"],
.app-page input.form-control[inputmode="decimal"],
.app-page .analysis-legend-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Currency alignment without "hard" right-align:
   - Keep ¥ in a fixed column
   - Right-align digits within a fixed-width block (commas line up)
   - Center the whole block inside the cell (so it doesn't feel fully right-aligned)
*/
.app-page .table.ses-list-table td.ses-money {
  text-align: center;
}
.app-page .table.ses-list-table td.ses-money .money-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  /* Keep commas aligned, but don't hog horizontal space */
  min-width: 10ch; /* ~¥9,999,999 */
}
.app-page .table.ses-list-table td.ses-money .money-symbol {
  display: inline-block;
  width: 1.2ch;
  text-align: left;
  opacity: 0.9;
  line-height: 1;
}
.app-page .table.ses-list-table td.ses-money .money-amount {
  display: inline-block;
  text-align: right;
  line-height: 1;
}

@media (max-width: 768px) {
  .app-page .table.ses-list-table td.ses-money .money-wrap {
    min-width: 8ch;
  }
}

.app-page .table.ses-list-table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(248, 250, 252, 0.95);
}

.app-page .table.ses-list-table.table-hover > tbody > tr:hover > * {
  background-color: rgba(133, 138, 245, 0.07);
}

/* Dash DataTable — outer wrapper (DataTable itself has no className in dash_table 4.x) */
.app-page .ses-list-datatable {
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.09);
  overflow: hidden;
}

/* Markdown link columns: inherit cell color, strip default underline */
.app-page .ses-list-datatable td a {
  text-decoration: none;
  color: inherit;
}
.app-page .ses-list-datatable td a:hover {
  text-decoration: none;
  opacity: 0.88;
}

.nowrap-col {
  white-space: nowrap;
}

/* 請求編集明細: 摘要を広め、稼働(h)は入力幅に抑える
   摘要 / 人月 / 単価 / 稼働(h) / 金額 / 備考 */
.app-page .table.bill-edit-lines-table {
  table-layout: fixed;
  width: 100%;
}
.app-page .table.bill-edit-lines-table > thead > tr > th:nth-child(1),
.app-page .table.bill-edit-lines-table tbody td:nth-child(1) {
  width: 26%;
}
.app-page .table.bill-edit-lines-table > thead > tr > th:nth-child(2),
.app-page .table.bill-edit-lines-table tbody td:nth-child(2) {
  width: 10%;
}
.app-page .table.bill-edit-lines-table > thead > tr > th:nth-child(3),
.app-page .table.bill-edit-lines-table tbody td:nth-child(3) {
  width: 13%;
}
.app-page .table.bill-edit-lines-table > thead > tr > th:nth-child(4),
.app-page .table.bill-edit-lines-table tbody td:nth-child(4) {
  width: 11%;
}
.app-page .table.bill-edit-lines-table > thead > tr > th:nth-child(5),
.app-page .table.bill-edit-lines-table tbody td:nth-child(5) {
  width: 14%;
}
.app-page .table.bill-edit-lines-table > thead > tr > th:nth-child(6),
.app-page .table.bill-edit-lines-table tbody td:nth-child(6) {
  width: 26%;
}
.app-page .table.bill-edit-lines-table tr.bill-edit-adj-row > td {
  background: #f8fafc;
  font-size: 0.9em;
}
.app-page .table.bill-edit-lines-table td.bill-edit-adj-label {
  padding-left: 1.15rem !important;
}
/* 手補正: 摘要 / 人月 / 単価 / 稼働(h) / 金額 / 支払 / 備考 */
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(1),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(1) {
  width: 20%;
}
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(2),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(2) {
  width: 8%;
}
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(3),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(3) {
  width: 12%;
}
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(4),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(4) {
  width: 9%;
}
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(5),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(5),
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(6),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(6) {
  width: 12%;
}
.app-page .table.bill-edit-lines-table-manual > thead > tr > th:nth-child(7),
.app-page .table.bill-edit-lines-table-manual tbody td:nth-child(7) {
  width: 27%;
}
.app-page .bill-lines-card-header {
  gap: 0.75rem;
}
.app-page .bill-lines-card-header .btn {
  font-weight: 600;
  letter-spacing: 0;
}

/* 見積・注文明細: 列幅バランス
   A: 対象月 / 人月 / 超過単価 / 控除単価
   B: 単価 / 金額 / 基準時間
   摘要は残り（やや広め） */
.app-page .table.ses-lines-doc-table {
  table-layout: fixed;
  width: 100%;
}
.app-page .table.ses-lines-doc-table > thead > tr > th,
.app-page .table.ses-lines-doc-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(1),
.app-page .table.ses-lines-doc-table tbody td:nth-child(1) {
  width: 28%;
}
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(2),
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(4),
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(7),
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(8),
.app-page .table.ses-lines-doc-table tbody td:nth-child(2),
.app-page .table.ses-lines-doc-table tbody td:nth-child(4),
.app-page .table.ses-lines-doc-table tbody td:nth-child(7),
.app-page .table.ses-lines-doc-table tbody td:nth-child(8) {
  width: 9%;
}
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(3),
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(5),
.app-page .table.ses-lines-doc-table > thead > tr > th:nth-child(6),
.app-page .table.ses-lines-doc-table tbody td:nth-child(3),
.app-page .table.ses-lines-doc-table tbody td:nth-child(5),
.app-page .table.ses-lines-doc-table tbody td:nth-child(6) {
  width: 12%;
}

.ellipsis-col {
  display: inline-block;
  max-width: 16rem; /* tweak if needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.ses-list-table td,
.ses-list-table th {
  vertical-align: middle;
}

.order-actions {
  flex-wrap: nowrap;
}

/* Make sure button group doesn't force huge row height on narrow screens */
.order-actions .btn {
  white-space: nowrap;
}

/* Action column: keep stable width & prevent wrap */
.list-table-actions th:last-child,
.list-table-actions td:last-child {
  white-space: nowrap;
  width: 1%;
}

.list-table-actions td:last-child .btn {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

/* --- 取引先一覧（clients master） ------------------------------------------ */
.client-list-page .client-list-hint {
  color: var(--muted, rgba(17, 24, 39, 0.58));
  line-height: 1.55;
}

.client-list-page .client-list-toolbar {
  border-radius: 14px !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 250, 252, 0.98) 55%,
    rgba(238, 241, 252, 0.55) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 26px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.client-list-page .client-list-toolbar .card-body {
  padding: 0.7rem 0.9rem !important;
}

.client-list-page .client-list-toolbar .filter-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(133, 138, 245, 0.14);
  color: var(--accent-hover, #6a6feb);
  font-size: 0.9rem;
}

.client-list-page .client-list-toolbar .form-select {
  min-width: 10rem;
  border-radius: 10px;
  border-color: rgba(55, 48, 163, 0.16);
  font-size: 0.875rem;
}

.client-list-page .client-list-toolbar .form-select:focus {
  border-color: rgba(133, 138, 245, 0.65);
  box-shadow: 0 0 0 3px rgba(133, 138, 245, 0.2);
}

.client-list-page .client-list-table-card,
.app-page .list-surface-card.client-list-table-card {
  border-radius: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.client-list-page .client-list-table-card > .card-body,
.app-page .list-surface-card.client-list-table-card > .card-body {
  padding: 0.65rem 0.85rem !important;
}

/* 一覧テーブル：本文より一段小さい文字サイズに統一 */
.client-list-page .client-list-table-card .table,
.app-page .list-surface-card.client-list-table-card .table {
  font-size: 0.875rem;
}

.client-list-page .client-list-table-card .table > thead > tr > th,
.app-page .list-surface-card.client-list-table-card .table > thead > tr > th {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  color: #1e1b4b !important;
  background: #e2e5f8 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(79, 70, 229, 0.28) !important;
}

/* 一覧: 列間の縦線を出さない（ヘッダ／本文とも横線のみ） */
.client-list-page .client-list-table-card .table.table-bordered > :not(caption) > * > *,
.app-page .list-surface-card.client-list-table-card .table.table-bordered > :not(caption) > * > * {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* 請求詳細: 要員明細と税込明細で数量/区分・金額・備考の列位置を揃える */
.app-page .bill-detail-lines-table {
  table-layout: fixed;
  width: 100%;
}
.app-page .bill-detail-lines-table .bill-detail-col-desc {
  width: 38%;
}
.app-page .bill-detail-lines-table .bill-detail-col-qty {
  width: 10%;
}
.app-page .bill-detail-lines-table .bill-detail-col-unit {
  width: 14%;
}
.app-page .bill-detail-lines-table .bill-detail-col-amt {
  width: 16%;
}
.app-page .bill-detail-lines-table .bill-detail-col-note {
  width: 22%;
}
.app-page .bill-detail-lines-table td,
.app-page .bill-detail-lines-table th {
  overflow-wrap: anywhere;
}
.app-page .bill-detail-lines-table tbody td.nowrap-col {
  overflow-wrap: normal;
  word-break: keep-all;
}

.app-page .bill-detail-lines-card .table > tfoot > tr.bill-detail-sum-row > th,
.app-page .doc-detail-lines-card .table > tfoot > tr.bill-detail-sum-row > th {
  background-color: rgba(15, 23, 42, 0.035) !important;
}
.app-page .bill-detail-lines-card .table > tfoot > tr:last-child > th,
.app-page .doc-detail-lines-card .table > tfoot > tr:last-child > th {
  border-top: 2px solid rgba(17, 24, 39, 0.16) !important;
}
.app-page .bill-detail-eng-sep {
  height: 0.45rem;
  background: #fff !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
  padding: 0 !important;
}

.client-list-page .client-list-table-card .table tbody td,
.app-page .list-surface-card.client-list-table-card .table tbody td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
}

/* 入金チェック一覧: 行高を他一覧のテキスト行に近づける */
.app-page .list-surface-card.client-list-table-card.pay-conf-table-card .table tbody td {
  padding-top: 0.32rem !important;
  padding-bottom: 0.32rem !important;
}

.app-page .pay-conf-table .pay-conf-date-picker.dash-datepicker-input-wrapper {
  min-height: 1.55rem;
  height: 1.55rem;
  padding: 0 0.3rem !important;
}

.app-page .pay-conf-table .pay-conf-date-picker .dash-datepicker-input {
  height: 100%;
  font-size: inherit;
  line-height: 1.2;
}

/* 入金チェック: 条件切替で列幅が揺れないよう固定 */
.app-page .pay-conf-table {
  table-layout: fixed;
  width: 100%;
}

.app-page .pay-conf-table .pay-conf-col-month,
.app-page .list-surface-card.client-list-table-card .table .pay-conf-col-month {
  width: 5.25rem;
  min-width: 5.25rem;
  max-width: 5.25rem;
}

.app-page .pay-conf-table .pay-conf-col-amount,
.app-page .list-surface-card.client-list-table-card .table .pay-conf-col-amount {
  width: 6rem;
  min-width: 6rem;
  max-width: 6rem;
}

.app-page .pay-conf-table .pay-conf-col-due {
  width: 6.25rem;
}

.app-page .pay-conf-table .pay-conf-col-done {
  width: 10.5rem;
}

.app-page .pay-conf-table .pay-conf-col-month,
.app-page .pay-conf-table .pay-conf-col-amount,
.app-page .pay-conf-table .pay-conf-col-due,
.app-page .list-surface-card.client-list-table-card .table .pay-conf-col-month,
.app-page .list-surface-card.client-list-table-card .table .pay-conf-col-amount {
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.app-page .pay-conf-table .pay-conf-col-done {
  white-space: nowrap;
  overflow: visible;
  box-sizing: border-box;
}

.app-page .pay-conf-table .pay-conf-col-month,
.app-page .pay-conf-table .pay-conf-col-amount,
.app-page .pay-conf-table .pay-conf-col-due,
.app-page .list-surface-card.client-list-table-card .table .pay-conf-col-month,
.app-page .list-surface-card.client-list-table-card .table .pay-conf-col-amount {
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.app-page .pay-conf-table .pay-conf-col-name,
.app-page .pay-conf-table .pay-conf-col-client {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .pay-conf-table .pay-conf-col-name > *,
.app-page .pay-conf-table .pay-conf-col-client > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分析(月次)明細: 列幅を超えて2行になりそうな案件名・取引先は1行で省略 */
.app-page .analysis-detail-table {
  table-layout: fixed;
  width: 100%;
}

.app-page .analysis-detail-table .analysis-col-engagement,
.app-page .analysis-detail-table .analysis-col-customer {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .analysis-detail-table .analysis-col-engagement {
  width: 28%;
}

.app-page .analysis-detail-table .analysis-col-customer {
  width: 11rem;
  min-width: 11rem;
  max-width: 11rem;
  box-sizing: border-box;
}

/* 一覧共通: 長い案件名・取引先名は省略 */
.app-page .list-ellipsis-table,
.app-page .table.client-list-table {
  table-layout: fixed;
  width: 100%;
}

.app-page .list-ellipsis-table .list-col-client,
.app-page .pay-conf-table .pay-conf-col-client,
.app-page .ops-check-table .pay-conf-col-client,
.app-page .table.eng-list-table .list-col-client {
  width: 11rem;
  min-width: 11rem;
  max-width: 11rem;
  box-sizing: border-box;
}

.app-page .list-ellipsis-table .list-col-ellipsis,
.app-page .table.client-list-table .list-col-ellipsis,
.app-page .table.eng-list-table .list-col-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .list-ellipsis-table .list-col-ellipsis .row-click-link,
.app-page .table.client-list-table .list-col-ellipsis .row-click-link,
.app-page .table.eng-list-table .list-col-ellipsis .row-click-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 書類の状況: 案件名・上位先・下位先が長いときは省略 */
.app-page .ops-check-table {
  table-layout: fixed;
  width: 100%;
}

.app-page .ops-check-table .ops-check-col-status {
  width: 4.75rem;
  min-width: 4.75rem;
  max-width: 4.75rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.app-page .ops-check-table .pay-conf-col-name,
.app-page .ops-check-table .pay-conf-col-client {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .ops-check-table .pay-conf-col-name .row-click-link,
.app-page .ops-check-table .pay-conf-col-client .row-click-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .list-pagination-bar {
  min-height: 2rem;
}

/* 見積・請求・案件一覧: ステータス列幅を固定 */
.app-page .list-surface-card.client-list-table-card .table .list-col-status {
  width: 7rem;
  min-width: 7rem;
  max-width: 7rem;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 案件・見積・注文: 契約期間（YYYY-MM-DD ～ YYYY-MM-DD）が収まる幅 */
.app-page .list-surface-card.client-list-table-card .table .list-col-term {
  width: 13rem;
  min-width: 13rem;
  max-width: 13rem;
  white-space: nowrap;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}

.client-list-page .client-list-datatable-wrap {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  overflow: hidden;
  background: #fff;
}

.client-list-page .client-list-datatable-wrap .dash-table-container {
  border: none !important;
}

.client-list-page .client-list-datatable td a {
  text-decoration: none;
  color: inherit;
}

.client-list-page .client-list-datatable td a:hover {
  text-decoration: none;
  opacity: 0.92;
}

.client-list-page .client-list-datatable .dash-cell[data-dash-column="name"] a {
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.client-list-page .client-list-datatable .dash-cell[data-dash-column="name"] a:hover {
  color: var(--accent-hover, #6a6feb) !important;
  opacity: 1 !important;
}

.client-list-page .client-list-datatable .previous-next-container button {
  border-radius: 8px !important;
}

.client-list-page .client-filter-check {
  margin-bottom: 0;
}

.client-list-page .ses-client-flag {
  font-size: 1.08rem;
  color: rgba(51, 65, 85, 0.82);
  vertical-align: middle;
}

/* 取引先一覧: 担当者は短め固定。余りは会社名へ */
.app-page .table.client-list-table > thead > tr > th.client-list-staff-col,
.app-page .table.client-list-table tbody td.client-list-staff-col {
  width: 8.5em;
  min-width: 8.5em;
  max-width: 8.5em;
  box-sizing: border-box;
}

/* 取引先一覧: 案件 / 要員 / 現在取引中 / アクティブ を同幅・中央寄せ */
.app-page .table.client-list-table > thead > tr > th.client-list-flag-col,
.app-page .table.client-list-table tbody td.client-list-flag-col {
  width: 6.75em;
  max-width: 6.75em;
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
  text-align: center !important;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 要員一覧: フラグ列は中央寄せ。プロパー/フリーは短く、右端アクティブは見出し幅 */
.app-page .table.eng-list-table {
  table-layout: fixed;
  width: 100%;
}

/* 氏名: 全角おおよそ10文字分 */
.app-page .table.eng-list-table > thead > tr > th.eng-list-col-name,
.app-page .table.eng-list-table tbody td.eng-list-col-name {
  width: 11em;
  min-width: 11em;
  max-width: 11em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.app-page .table.eng-list-table tbody td.eng-list-col-name .eng-detail-name-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.app-page .table.eng-list-table > thead > tr > th:nth-child(2),
.app-page .table.eng-list-table > thead > tr > th:nth-child(3),
.app-page .table.eng-list-table > thead > tr > th:nth-child(6),
.app-page .table.eng-list-table tbody td:nth-child(2),
.app-page .table.eng-list-table tbody td:nth-child(3),
.app-page .table.eng-list-table tbody td:nth-child(6) {
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
  text-align: center !important;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.app-page .table.eng-list-table > thead > tr > th:nth-child(2),
.app-page .table.eng-list-table > thead > tr > th:nth-child(3),
.app-page .table.eng-list-table tbody td:nth-child(2),
.app-page .table.eng-list-table tbody td:nth-child(3) {
  width: 4.5em;
  max-width: 4.5em;
}

.app-page .table.eng-list-table > thead > tr > th:nth-child(6),
.app-page .table.eng-list-table tbody td:nth-child(6) {
  width: 6.5em;
  max-width: 6.5em;
}

.app-page .table.eng-list-table > thead > tr > th.eng-list-flag-col > div {
  text-align: center !important;
}

/* 共通ファイルドロップエリア（取引先 CSV / ハンコ画像 など） */
.ses-file-dropzone-upload {
  display: block;
  width: 100%;
}

.ses-file-dropzone-upload .ses-file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 9.5rem;
  border: 2px dashed rgba(100, 116, 139, 0.55);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  background: rgba(248, 250, 252, 0.95);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ses-file-dropzone-upload .ses-file-dropzone:hover {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(71, 85, 105, 0.75);
}

.ses-file-dropzone-upload .ses-file-dropzone-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(71, 85, 105, 0.85);
  margin-bottom: 0.25rem;
}

.ses-file-dropzone-upload .ses-file-dropzone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.92);
}

.ses-file-dropzone-upload .ses-file-dropzone-sub {
  font-size: 0.875rem;
  color: rgba(71, 85, 105, 0.9);
}

.ses-file-dropzone-upload .ses-file-dropzone-link {
  color: var(--accent-hover, #4f46e5);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ses-file-dropzone-upload .ses-file-dropzone-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(100, 116, 139, 0.95);
}

.app-page .eng-skill-sheet-dropzone {
  border: 1px dashed rgba(100, 116, 139, 0.45);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.875rem;
}

.app-page .eng-skill-sheet-dropzone:hover {
  background: rgba(241, 245, 249, 1);
}

.app-page .eng-detail-name-link {
  color: var(--accent-hover, #6a6feb);
  text-decoration: none;
}

.app-page .eng-detail-name-link:hover {
  text-decoration: none;
}

.app-page .eng-detail-name-link:hover {
  color: var(--accent-hover, #6a6feb) !important;
  opacity: 0.95;
}

/* 要員登録: 基本情報を左寄せ＋右にヒント */
#eng-detail-form .eng-form-basic-layout {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(14rem, 1fr);
  gap: 1rem 1.1rem;
  align-items: stretch;
  max-width: 56rem;
}

#eng-detail-form .eng-form-basic-main {
  min-width: 0;
}

#eng-detail-form .eng-form-basic-main .eng-form-basic-row {
  --bs-gutter-x: 0.65rem;
}

#eng-detail-form .eng-form-basic-main .form-control,
#eng-detail-form .eng-form-basic-main #eng-recent-affiliation {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#eng-detail-form .eng-form-basic-guide {
  height: 100%;
  min-height: 100%;
}

@media (max-width: 767.98px) {
  #eng-detail-form .eng-form-basic-layout {
    grid-template-columns: 1fr;
  }

  #eng-detail-form .eng-form-basic-guide {
    height: auto;
  }
}

/* 取引先登録: 取引先情報を左寄せ＋右にヒント（要員登録と同じ） */
.app-page .client-form-basic-layout {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(14rem, 1fr);
  gap: 1rem 1.1rem;
  align-items: stretch;
  max-width: 56rem;
}

.app-page .client-form-basic-main {
  min-width: 0;
}

.app-page .client-form-basic-main .client-form-basic-row {
  --bs-gutter-x: 0.65rem;
}

.app-page .client-form-basic-main .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.app-page .client-form-basic-guide {
  height: 100%;
  min-height: 100%;
}

@media (max-width: 767.98px) {
  .app-page .client-form-basic-layout {
    grid-template-columns: 1fr;
  }

  .app-page .client-form-basic-guide {
    height: auto;
  }
}

/* 要員詳細: 左は固定幅、右（備考）は残り */
.app-page .eng-detail-split {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
}

.app-page .eng-detail-left {
  min-width: 0;
}

.app-page .eng-detail-right {
  min-width: 0;
}

.app-page .eng-detail-right .form-control {
  width: 100%;
}

@media (max-width: 767.98px) {
  .app-page .eng-detail-split {
    grid-template-columns: 1fr;
  }
}

/* 取引先詳細: 左は固定幅、右（備考）は残り */
.app-page .client-detail-split {
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
}

.app-page .client-detail-left,
.app-page .client-detail-right {
  min-width: 0;
}

.app-page .client-detail-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.app-page .client-detail-right .client-detail-remarks {
  width: 100%;
  flex: 1 1 auto;
  min-height: 14rem;
  height: 100%;
}

.app-page .client-detail-staff-row {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  column-gap: 0.15rem;
  align-items: baseline;
}

.app-page .client-detail-staff-lab {
  text-align: right;
  white-space: nowrap;
}

.app-page .client-detail-staff-val {
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .app-page .client-detail-split {
    grid-template-columns: 1fr;
  }

  .app-page .client-detail-right .client-detail-remarks {
    min-height: 10rem;
    height: auto;
  }
}

.eng-detail-affiliation-value {
  white-space: nowrap;
  overflow-x: auto;
}

.app-page .eng-history-upper-block {
  border-left: 2px solid rgba(15, 23, 42, 0.12);
  padding-left: 0.85rem;
}

/* Make entire row "clickable" by turning each cell content into a block link */
.app-page .row-click-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.app-page .row-click-link:hover {
  color: inherit;
  text-decoration: none;
}

/* 行リンクの color:inherit がバッジに波及するのを防ぐ */
.app-page .row-click-link .badge {
  color: #fff;
}
.app-page .ses-doc-badge--on-warning,
.app-page .row-click-link .ses-doc-badge--on-warning {
  color: #fff !important;
}
.app-page .ses-doc-badge--on-light,
.app-page .row-click-link .ses-doc-badge--on-light {
  color: #111827 !important;
}

.ses-doc-badge.ses-doc-badge--not-required,
.app-page .row-click-link .ses-doc-badge--not-required,
#sidebar .sidebar-eng-context-badge.ses-doc-badge--not-required {
  background-color: #eef1f4 !important;
  color: #9aa3af !important;
}


.app-page .eng-flow-panel.ops-check-hub {
  max-width: 56rem;
}

.app-page .ops-check-hub .eng-flow-target,
.app-page .ops-check-hub-main .eng-flow-target {
  margin-bottom: 0;
}

.app-page .ops-check-detail-head {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  column-gap: 0;
  row-gap: 0.65rem;
  align-items: start;
  margin: 0 0 0.75rem;
}

.app-page .ops-check-detail-head .eng-flow-target,
.app-page .ops-check-detail-head .ops-check-detail-period-row,
.app-page .ops-check-detail-head .ops-check-detail-month-bar {
  display: contents;
}

.app-page .ops-check-detail-head .eng-flow-target-label {
  white-space: nowrap;
  justify-self: end;
}

.app-page .ops-check-detail-head .eng-flow-target-colon {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.app-page .ops-check-detail-head .eng-flow-target > :last-child,
.app-page .ops-check-detail-head .ops-check-detail-period-row > :last-child,
.app-page .ops-check-detail-head .ops-check-detail-month-bar > :last-child {
  justify-self: start;
  margin-inline-start: 0.5rem;
  min-width: 0;
}

.app-page .ops-check-detail-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.25;
}

.app-page .ops-check-month-label,
.app-page .ops-check-month-colon {
  padding-top: 0.28rem;
}

.app-page .role-pick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
}

.app-page .role-pick-bar .ops-check-month-picks {
  margin-inline-start: 0.45rem;
}

.app-page .ops-check-month-picks.dash-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.app-page .ops-check-month-picks .dash-options-list-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 4.6rem;
  margin: 0;
  padding: 0.16rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}

.app-page .ops-check-month-picks .dash-options-list-option-wrapper {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.app-page .ops-check-month-picks .dash-options-list-option-checkbox {
  margin: 0;
  border: 0;
}

.app-page .ops-check-month-picks .dash-options-list-option:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent-on-soft);
}

.app-page .ops-check-month-picks .dash-options-list-option.selected,
.app-page .ops-check-month-picks .dash-options-list-option.selected:hover,
.app-page .ops-check-month-picks .dash-options-list-option.selected:focus-within {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.22);
}

.app-page .ops-check-month-picks .dash-options-list-option.selected .dash-options-list-option-text {
  color: #fff;
}

.app-page .ops-check-month-picks .dash-options-list-option:focus-within {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 2px;
}

.app-page .ops-check-hub-main .eng-flow-section {
  margin-bottom: 0.55rem;
}

.app-page .ops-check-hub-main .eng-flow-group {
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: 10px;
}

.app-page .ops-check-hub-main .eng-flow-group-title {
  margin-bottom: 0.5rem;
}

.app-page .ops-check-hub-main .eng-flow-group-company {
  font-size: 0.95rem;
}

.app-page .ops-check-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.app-page .ops-check-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.7rem 7.25rem 4.7rem;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.25rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
}

.app-page .ops-check-doc-row.is-not-required {
  opacity: 0.72;
  background: #f8fafc;
}

.app-page .ops-check-doc-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.app-page .ops-check-doc-info-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.app-page .ops-check-doc-label {
  flex: 0 0 3.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.app-page .ops-check-doc-meta {
  min-width: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-page .ops-check-doc-due {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}

.app-page .ops-check-doc-due.is-empty {
  color: #94a3b8;
}

.app-page .ops-check-doc-due.is-overdue {
  color: #b91c1c;
  font-weight: 600;
}

.app-page .ops-check-card-req {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  min-height: 1.5rem;
}

.app-page .ops-check-not-req.form-check {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 0;
  padding-left: 0;
  font-size: 0.72rem;
  color: #64748b;
}

.app-page .ops-check-not-req .form-check-input {
  float: none;
  margin: 0 0.28rem 0 0;
  position: static;
  flex: 0 0 auto;
}

.app-page .ops-check-not-req .form-check-label {
  margin: 0;
  line-height: 1.2;
}

.app-page .ops-check-not-req-tip {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1;
  cursor: help;
}

.app-page .ops-check-doc-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.app-page .ops-check-doc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* btn-sm と同じ高さ。不要時にボタンが消えても行高が変わらないようにする */
  min-height: 31px;
}

.app-page .ops-check-vendor-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-page .ops-check-vendor-name {
  margin: 0 0 0.3rem;
  padding: 0 0.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .app-page .ops-check-doc-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info info"
      "req status"
      ". actions";
  }

  .app-page .ops-check-doc-info { grid-area: info; }
  .app-page .ops-check-card-req { grid-area: req; }
  .app-page .ops-check-doc-status { grid-area: status; }
  .app-page .ops-check-doc-actions { grid-area: actions; }
}

/* 案件フロー設定 */
.app-page .eng-flow-target {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin: 0 0 1.25rem;
}

.app-page .eng-flow-target-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.app-page .eng-flow-target-name {
  font-size: 1.15rem;
  font-weight: 650;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.app-page .eng-flow-panel {
  max-width: 56rem;
}

.app-page .eng-flow-panel.is-multi-lower {
  max-width: min(72rem, 100%);
}

.app-page .eng-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 37rem) minmax(14rem, 1fr);
  gap: 1rem 1.1rem;
  align-items: stretch;
}

.app-page .eng-flow-layout.is-multi-lower {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 15rem);
}

.app-page .eng-flow-main {
  min-width: 0;
}

.app-page .eng-flow-main .eng-flow-section:last-child {
  margin-bottom: 0;
}

.app-page .eng-flow-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.app-page .eng-flow-lower-grid.is-multi {
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.5rem 0.55rem;
}

.app-page .eng-flow-vendor-block {
  min-width: 0;
  padding: 0.4rem 0.45rem 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.app-page .eng-flow-vendor-name {
  margin: 0 0 0.35rem;
  padding: 0 0.05rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.25;
}

.app-page .eng-flow-lower-stack > .eng-flow-section:last-child {
  margin-bottom: 0;
}


.app-page .eng-flow-lower-grid.is-multi .eng-flow-cards {
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.app-page .eng-flow-lower-grid.is-multi .eng-flow-card {
  min-height: 0;
  padding: 0.4rem 0.5rem 0.45rem;
}

.app-page .eng-flow-lower-grid.is-multi .eng-flow-card-hint {
  display: none;
}

@media (max-width: 700px) {
  .app-page .eng-flow-lower-grid.is-multi {
    grid-template-columns: 1fr;
  }
}

.app-page .eng-flow-guide {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  min-height: 100%;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 248, 240, 0.95), rgba(255, 255, 255, 0.98) 42%),
    #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.app-page .eng-flow-guide-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.app-page .eng-flow-guide-label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.app-page .eng-flow-guide-list {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
}

.app-page .eng-flow-guide-foot {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .app-page .eng-flow-layout {
    grid-template-columns: 1fr;
  }

  .app-page .eng-flow-guide {
    height: auto;
  }
}

.app-page .eng-flow-subtitle.subtitle {
  display: block;
}

.app-page .eng-flow-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: #b45309;
}

.app-page .eng-flow-section {
  margin-bottom: 0.85rem;
}

.app-page .eng-flow-group {
  padding: 0.6rem 0.65rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
}

.app-page .eng-flow-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0 0.1rem;
}

.app-page .eng-flow-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

.app-page .eng-flow-group-company {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.3;
}

.app-page .eng-flow-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.45rem;
}

.app-page .eng-flow-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 0;
  padding: 0.5rem 0.65rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.app-page .eng-flow-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.app-page .eng-flow-card-hint {
  font-size: 0.66rem;
  color: #94a3b8;
  line-height: 1.3;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-page .eng-flow-card-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
  margin-top: 0.1rem;
  padding-top: 0;
}

/* 案件別書類状況 (対象月ベース): 帳票カード内のステータス行 */
.app-page .ops-check-card-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.app-page .ops-check-card-req {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.app-page .ops-check-not-req.form-check {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 0;
  padding-left: 0;
  font-size: 0.72rem;
  color: #64748b;
}

.app-page .ops-check-not-req .form-check-input {
  float: none;
  margin: 0 0.28rem 0 0;
  position: static;
  flex: 0 0 auto;
}

.app-page .ops-check-not-req .form-check-label {
  margin: 0;
  line-height: 1.2;
}

.app-page .ops-check-not-req-tip {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1;
  cursor: help;
}

.app-page .ops-check-card.is-not-required {
  opacity: 0.72;
  background: #f8fafc;
}


.app-page .ops-check-card .eng-flow-card-body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.app-page .ops-check-card-axis {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
}

.app-page .ops-check-card-axis-lab {
  font-size: 0.64rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.app-page .ops-check-card-actions {
  margin-top: 0;
}

.app-page .ops-check-target-meta {
  margin-top: -0.55rem;
}

.app-page .eng-flow-req.form-check {
  margin: 0;
  min-height: 0;
  padding-left: 1.3rem;
}

.app-page .eng-flow-req .form-check-label {
  font-size: 0.76rem;
  color: #475569;
}

.app-page .eng-flow-deadline-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  width: auto;
}

.app-page .eng-flow-field-label {
  font-size: 0.64rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.app-page .eng-flow-deadline-input.form-control {
  width: 3.8rem;
  max-width: 3.8rem;
  min-height: 1.65rem;
  padding: 0.1rem 0.3rem;
  font-size: 0.8rem;
  text-align: center;
}

.app-page .eng-flow-deadline-wrap {
  width: auto;
  margin: 0;
}

.app-page .eng-flow-deadline-ro {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.app-page .eng-flow-deadline-ro.is-warn {
  color: #b45309;
  font-weight: 500;
}

.app-page .eng-flow-deadline-ro-meta {
  margin-left: 0.2rem;
  font-weight: 500;
  color: #94a3b8;
}

@media (max-width: 575.98px) {
  .app-page .eng-flow-cards {
    grid-template-columns: 1fr;
  }
}

/* 案件詳細: 案件情報右の帳票・期限要約 */
.app-page .eng-detail-flow-summary {
  height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 248, 240, 0.9), rgba(255, 255, 255, 0.98) 45%);
}

.app-page .eng-detail-flow-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.app-page .eng-detail-flow-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
}

.app-page .eng-detail-flow-link {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f766e;
}

.app-page .eng-detail-flow-link:hover {
  text-decoration: underline;
}

.app-page .eng-detail-flow-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.app-page .eng-detail-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(5.5rem, auto);
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  font-size: 0.78rem;
  line-height: 1.35;
}

.app-page .eng-detail-flow-name {
  font-weight: 650;
  color: #0f172a;
  min-width: 0;
}

.app-page .eng-detail-flow-name.is-off {
  color: #94a3b8;
  font-weight: 500;
}

.app-page .eng-detail-flow-req {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f766e;
}

.app-page .eng-detail-flow-req.is-off {
  color: #94a3b8;
  font-weight: 600;
}

.app-page .eng-detail-flow-deadline {
  text-align: right;
  color: #475569;
  white-space: nowrap;
}

.app-page .eng-detail-flow-deadline.is-miss {
  color: #b45309;
  font-weight: 600;
}

.app-page .eng-detail-flow-deadline.is-off {
  color: #cbd5e1;
}

.app-page .eng-detail-flow-row.is-off {
  opacity: 0.85;
}
