.approval-user-select:hover {
  background: #e0e0e0;
}

.approval-user-select {
  cursor: pointer;
}
/* ユーザーカラム・承認フローUI */
.new-request-area .column.user-column {
  border-right: 2px solid #eee;
  display: flex;
  flex-direction: column;
  min-width: var(--nr-user-col-min);
  max-width: var(--nr-user-col-max-runtime, var(--nr-user-col-max));
}
.approval-user-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0 0 0;
}
.approval-user-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px;
}
.new-request-side-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin: 12px 12px 0;
  padding: 0 6px;
}
.new-request-side-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.new-request-side-tab:hover {
  background: rgba(0, 123, 255, 0.06);
  color: #1f2937;
}
.new-request-side-tab.is-active {
  background: var(--ds-color-primary-soft);
  border-color: rgba(0, 123, 255, 0.2);
  color: var(--ds-color-primary);
  box-shadow: inset 0 -2px 0 var(--ds-color-primary);
}
.new-request-side-tab-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.new-request-side-tab-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  white-space: nowrap;
}
.new-request-side-tab-summary {
  font-size: 12px;
  color: #5f6b7a;
  line-height: 1.3;
  white-space: nowrap;
}
.new-request-side-tab-summary:empty {
  display: none;
}
.new-request-side-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e6f0ff;
  color: #1f4f8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.new-request-side-tab-badge.is-alert-warning {
  background: #fff0d8;
  border-color: #f1d199;
  color: #8a4d00;
}
.new-request-side-tab-badge.is-alert-danger {
  background: #fde8e7;
  border-color: #f3b2af;
  color: #b42318;
}
.new-request-side-tab-badge.is-alert-success {
  background: #e7f6ec;
  border-color: #9fd3af;
  color: #1f7a42;
}
.new-request-side-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0 12px;
  border: none;
  border-radius: 0 16px 16px 16px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.new-request-side-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}
.new-request-side-panel.is-active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-top: 10px;
}
.new-request-side-panel[hidden] {
  display: none !important;
}
.new-request-side-panel-approvers {
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.approval-flow-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.approval-primary-section {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  margin: 0 12px;
  padding: 10px 0 12px;
  border: none;
  border-radius: 12px;
  background: var(--ds-color-surface-muted);
}
.approval-primary-section .approval-panel-section-heading {
  margin: 0 12px;
}
.approval-primary-section .approval-user-list-wrap {
  flex: 0 0 auto;
  overflow: visible;
}
.approval-primary-section .approval-user-list {
  margin-top: 0;
}
.approval-primary-section .approval-user-add-row {
  padding-bottom: 0;
}
.realqr-user-section {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 10px 12px 12px;
  border: 1px solid #d8d8d8;
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface-muted);
}
.approval-panel-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 12px 0;
}
.approval-panel-section-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.approval-panel-section-heading p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #666;
}
.approval-panel-section-heading-viewer {
  margin: 0;
}
.request-meta-panel {
  flex: 1 1 auto;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.request-meta-panel.new-request-side-panel {
  display: none;
}
.request-meta-panel.new-request-side-panel.is-active {
  display: flex;
}
.request-meta-panel label {
  display: inline-block;
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}
.request-comment-block,
.request-tag-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.request-comment-block textarea {
  width: 100%;
  min-height: 62px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #333;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  user-select: text;
  -webkit-user-select: text;
}
.request-comment-block textarea:focus {
  outline: 2px solid rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}
.request-tag-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
#request-tag-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 1px solid #ccc;
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: #333;
  padding: 0 12px;
  font-size: 14px;
  user-select: text;
  -webkit-user-select: text;
}
#request-tag-input:focus {
  outline: 2px solid rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}
#request-tag-add-btn {
  height: 34px;
  border: none;
  border-radius: var(--ds-radius-md);
  padding: 0 16px;
  background: #007bff;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
#request-tag-add-btn:hover {
  background: #1560b0;
}
.request-tag-error {
  min-height: 1.2em;
  margin-top: 2px;
  font-size: 12px;
  color: #b3261e;
}
.request-tag-chips,
.suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.request-tag-chip,
.request-tag-suggest-chip {
  border: 1px solid #b8d0ef;
  border-radius: 999px;
  background: #e6f0ff;
  color: #1f4f8a;
  font-size: 12px;
  line-height: 1.3;
  padding: 3px 10px;
}
.request-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.request-tag-chip-remove {
  border: none;
  background: transparent;
  color: #1f4f8a;
  width: 18px;
  height: 18px;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.request-tag-chip-remove:hover {
  background: rgba(0, 123, 255, 0.14);
}
.request-tag-suggest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid #d8d8d8;
  padding-top: 8px;
}
.suggest-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.suggest-title {
  font-size: 12px;
  color: #666;
}
.request-tag-suggest-chip {
  cursor: pointer;
}
.request-tag-suggest-chip:hover {
  background: #dcecff;
}
.request-tag-suggest-empty {
  color: #666;
  font-size: 12px;
}
.approval-user-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  min-height: 40px;
  height: 40px;
  user-select: none;
  transition: transform 0.3s;
  will-change: transform;
}
.approval-drag-knob {
  font-size: 22px;
  cursor: grab;
  width: 28px;
  text-align: center;
  color: #aaa;
  user-select: none;
}
.approval-drag-knob.disabled {
  opacity: 0.3;
  cursor: default;
}
.approval-order-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 16px;
  font-weight: bold;
  color: #222;
  background: none;
  margin-right: 4px;
}
.approval-user-color {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin-right: 8px;
}
.user-color-0 { background: #ff2ae3; }
.user-color-1 { background: #dc3545; }
.user-color-2 { background: #ffc107; }
.user-color-3 { background: #28a745; }
.user-color-4 { background: #17a2b8; }
.user-color-5 { background: #007bff; }
.approval-user-btn {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: var(--ds-radius-md);
  padding: 6px 16px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  min-height: 40px;
  height: auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.approval-user-btn.self {
  background: #e0e0e0;
  color: #888;
  border: 1px solid #e0e0e0;
  cursor: default;
  text-align: center;
  justify-content: center;
}
.approval-user-btn:disabled {
  pointer-events: none;
}
/* クリアボタン（ユーザー選択ボタン右） */
.approval-user-clear {
  color: #888;
  font-size: 16px;
  margin-left: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  border-radius: var(--ds-radius-md);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}
.approval-user-clear:hover {
  color: #fff;
  background: #888;
}
/* 行削除ボタン（ユーザー行右端） */
.approval-user-row-remove {
  color: #888;
  font-size: 18px;
  margin-left: 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  border-radius: var(--ds-radius-md);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.approval-user-row-remove:hover {
  color: #fff;
  background: #dc3545;
}
.approval-user-row.dragging {
  opacity: 0.3;
}
.approval-user-row.placeholder {
  display: none;
}
.drag-ghost {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  pointer-events: none;
  position: absolute;
  z-index: 1000;
  opacity: 0.8;
}
.approval-user-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--uc-btn-h);
  margin: 0;
  padding: 0 12px;
  background: #fff;
  color: #007bff;
  border: 1px dashed #007bff;
  border-radius: var(--ds-radius-md);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}
.approval-user-add-btn:hover:enabled {
  background: #e6f0ff;
  color: #005fcc;
}
.approval-user-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.approval-user-add-row {
  display: grid;
  grid-template-columns: var(--uc-col-w) var(--uc-col-w) 1fr auto var(--uc-col-w);
  align-items: center;
  gap: var(--uc-gap);
  padding: 12px 8px 0;
  flex: 0 0 auto;
}
.approval-user-add-row .approval-user-add-btn {
  grid-column: 3 / 4;
}
.approval-user-row-special {
  margin: 0 8px;
  padding: 0 8px;
  border: 1px solid rgba(102, 102, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}
.realqr-user-row {
  grid-template-columns: 1fr auto !important;
  margin: 0;
  padding: 4px 0;
  min-height: var(--uc-btn-h);
}
.realqr-user-label {
  width: 100%;
  min-width: 0;
  max-width: none;
  color: var(--ds-color-text-default, #222222);
  background: transparent;
  border: 0;
  cursor: default;
  user-select: none;
  font-weight: 700;
  line-height: var(--uc-btn-h);
}
.viewer-user-section {
  margin: 14px 12px 0;
  padding: 12px;
  border: 1px solid #d8d8d8;
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viewer-user-list-wrap {
  min-height: 0;
}
.viewer-user-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.viewer-user-row .approval-row-handle {
  color: #b0b4b8;
  cursor: default;
}
.viewer-user-row .approval-row-order {
  color: transparent;
}
.viewer-user-select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.viewer-user-select-empty {
  color: #6b7280;
  border-style: dashed;
  background: #fff;
}

.viewer-user-row [class~="viewer-readonly-pill"] {
  border: 1px solid #c8daed;
  background: var(--ds-color-info-bg);
  color: #23415f;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.viewer-row-delete:disabled,
.viewer-user-select:disabled {
  cursor: not-allowed;
}
.viewer-user-add-row {
  padding: 12px 8px 0;
}
.viewer-user-add-row .viewer-user-add-btn {
  grid-column: 3 / 4;
}
.viewer-department-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(102, 102, 102, 0.18);
}
.viewer-department-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-color-text-muted, #555555);
}
.viewer-department-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.viewer-dept-row {
  display: grid;
  grid-template-columns: 1fr var(--uc-col-w);
  align-items: center;
  gap: var(--uc-gap);
  min-height: var(--uc-btn-h);
  padding: 6px 0;
}
.viewer-dept-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.viewer-dept-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ds-color-text-default, #222222);
}
.viewer-dept-meta {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ds-color-text-muted, #555555);
}
.viewer-dept-delete {
  width: var(--uc-col-w);
  height: var(--uc-col-w);
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #999999;
  font-size: 18px;
  cursor: pointer;
}
.viewer-dept-delete:hover {
  color: #d33;
}
.viewer-department-add-row {
  padding: 4px 0 0;
}
.viewer-department-add-row .viewer-department-search-btn {
  grid-column: 3 / 4;
}
.user-search-popup {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  overflow-x: hidden;
}
.user-search-popup *,
.user-search-popup *::before,
.user-search-popup *::after {
  box-sizing: border-box;
}
.user-search-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  border-bottom: 1px solid #f1f1f1;
}
.user-search-result-row-user {
  grid-template-columns: minmax(0, 1fr);
}
.viewer-unified-search-popup .user-search-result-row-user {
  grid-template-columns: auto minmax(0, 1fr);
}
.user-search-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.user-search-result-badge.is-user {
  background: #e7f0f7;
  color: #23415f;
}
.user-search-result-badge.is-department {
  background: #e8f4ee;
  color: #1f5133;
}
.user-search-result-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-search-result-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ds-color-text-default, #222222);
}
.user-search-result-meta {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ds-color-text-muted, #555555);
}
.user-search-error {
  padding: 8px;
  color: #9b1c1c;
  font-size: 13px;
  line-height: 1.4;
}

.approval-user-number { display: none; }
.approval-user-visibility-btn {
  background: none;
  border: none;
  padding: 0 4px;
  margin: 0 4px 0 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  border-radius: var(--ds-radius-md);
  transition: background 0.2s;
}
.approval-user-visibility-btn:hover {
  background: #e0e0e0;
}
.approval-user-visibility-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.approval-state-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.approval-signpos-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: var(--uc-btn-h);
  min-height: var(--uc-btn-h);
  padding: 3px;
  border: 1px solid #cfd4db;
  border-radius: 999px;
  background: #e5e7eb;
  color: #222;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  --toggle-on-color: var(--ds-color-primary, #43a047);
  --toggle-thumb-size: 24px;
  --toggle-thumb-travel: 26px;
}
.approval-signpos-btn:hover:not(:disabled) {
  background: #d9dee6;
}
.approval-signpos-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}
.approval-signpos-btn[data-signpos="on"] {
  background: var(--toggle-on-color);
  border-color: var(--toggle-on-color);
}
.approval-signpos-btn[data-signpos="on"]:hover:not(:disabled),
.approval-signpos-btn[data-signpos="on"]:focus-visible {
  background: var(--toggle-on-color);
  border-color: var(--toggle-on-color);
}
.approval-signpos-btn .signpos-indicator {
  display: block;
  flex: 0 0 var(--toggle-thumb-size);
  width: var(--toggle-thumb-size);
  height: var(--toggle-thumb-size);
  opacity: 1;
  border-radius: 50%;
  background: #ffffff !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.2);
  transform: translateX(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}
.approval-signpos-btn[data-signpos="on"] .signpos-indicator {
  transform: translateX(var(--toggle-thumb-travel));
}
.approval-signpos-btn[data-signpos="off"] .signpos-indicator {
  transform: translateX(0);
}
.approval-signpos-btn .signpos-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.approval-signpos-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
}
.approval-signpos-btn:disabled .signpos-indicator {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.approval-anchor-trigger {
  width: var(--uc-col-w);
  min-width: var(--uc-col-w);
  height: var(--uc-col-w);
  padding: 0;
  border: none;
  border-radius: var(--ds-radius-md);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.approval-anchor-trigger:hover:not(:disabled) {
  background: rgba(0, 123, 255, 0.12);
  color: #007bff;
}
.approval-anchor-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.18);
}
.approval-anchor-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: transparent;
}
.approval-anchor-trigger .anchor-btn {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}


/* ユーザーカラム下部ボタンエリア */
.user-column-footer {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}
.user-footer-btn {
  position: static;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  gap: 8px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.user-footer-btn.back {
}
.user-footer-btn.confirm {
}
.user-footer-btn.check {
  background: #43a047;
  color: #fff;
  min-width: 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md);
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(67,160,71,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.user-footer-btn.check:active {
  background: #388e3c;
}
.user-footer-btn.progress {
  background: #f5f5f5;
  color: #333;
  height: 44px;
  border-radius: var(--ds-radius-md);
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(67,160,71,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #ccc;
  font-weight: bold;
  gap: 8px;
  transition: background 0.2s;
}
.user-footer-btn.progress:hover {
  background: #e0e0e0;
}
.user-footer-btn.progress img {
  width: 22px;
  height: 22px;
  margin-right: 0;
}
.user-footer-btn.progress .progress-label {
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 1px;
}

.new-request-area[data-layout-mode="compact"] .approval-user-add-btn {
  height: var(--uc-btn-h);
}

.new-request-area[data-layout-mode="compact"] .approval-user-list {
  margin-top: 16px;
}

.new-request-area[data-layout-mode="compact"] .approval-user-add-row {
  padding: 10px 6px 0;
}

.new-request-area[data-layout-mode="compact"] .approval-user-list-wrap {
  padding: 0 6px;
}

.new-request-area[data-layout-mode="compact"] .request-meta-panel {
  margin: 0 10px 10px;
  padding: 8px 10px;
  gap: 8px;
}

.new-request-area[data-layout-mode="compact"] .new-request-side-tabs {
  margin: 8px 10px 0;
  padding: 0 4px;
}

.new-request-area[data-layout-mode="compact"] .new-request-side-stack {
  margin: 0 10px;
}

.new-request-area[data-layout-mode="compact"] .viewer-user-section {
  margin: 14px 10px 0;
  padding: 10px;
  gap: 8px;
}
.new-request-area[data-layout-mode="compact"] .approval-primary-section {
  margin: 0 10px;
}
.new-request-area[data-layout-mode="compact"] .realqr-user-section {
  margin: 0 10px 10px;
  padding: 10px;
}
.new-request-area[data-layout-mode="compact"] .approval-state-cell {
  gap: 8px;
}

.new-request-area[data-layout-mode="compact"] .request-comment-block textarea {
  min-height: 54px;
}

.new-request-area[data-layout-mode="compact"] .user-column-footer {
  margin-top: 12px;
  padding: 0 10px 10px;
  gap: 8px;
}

.new-request-area[data-layout-mode="constrained"] .new-request-side-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0 10px;
  margin-top: 8px;
  overflow: hidden;
}

.new-request-area[data-layout-mode="constrained"] .new-request-side-panel-approvers {
  height: 100%;
  overflow-y: auto;
}

.new-request-area[data-layout-mode="constrained"] .request-meta-panel {
  margin-top: 0;
  min-height: 0;
}
.new-request-area[data-layout-mode="constrained"] .approval-primary-section {
  margin: 0 10px;
}
.new-request-area[data-layout-mode="constrained"] .realqr-user-section {
  margin: 0 10px 10px;
}
.new-request-area[data-layout-mode="constrained"] .viewer-user-section {
  margin-top: 14px;
}

.new-request-area[data-layout-mode="constrained"] .user-column-footer {
  min-height: 56px;
  margin-top: 12px;
  padding: 0 10px 10px;
  gap: 8px;
}

.new-request-area[data-layout-mode="constrained"] .user-footer-btn {
  height: 44px;
  padding: 0 10px;
}

.new-request-area[data-layout-mode="constrained"] .user-footer-btn.back {
  font-size: 15px;
  gap: 6px;
}

.new-request-area[data-layout-mode="constrained"] .user-footer-btn.progress {
  font-size: 15px;
  gap: 6px;
}

.new-request-area[data-layout-mode="constrained"] .user-footer-btn.progress img {
  margin-right: 0;
}

.new-request-area[data-layout-mode="constrained"] .user-footer-btn.back.ds-cta-neutral-utility,
.new-request-area[data-layout-mode="constrained"] .user-footer-btn.confirm.ds-cta-neutral-utility,
.new-request-area[data-layout-mode="constrained"] .thumbnail-column .new-request-btn.user-footer-btn.ds-cta-neutral.ds-cta-neutral-utility {
  font-size: 15px;
  gap: 6px;
  padding: 0 10px;
}

.thumbnail-column .new-request-btn.user-footer-btn.ds-cta-neutral.ds-cta-neutral-utility {
  width: fit-content;
  min-width: 0;
  height: 44px;
  margin: 10px auto;
}

/* サムネイルカラムの×ボタン */
.thumbnail-remove-btn:hover {
  background: #888;
  color: #fff;
}

/* 書類タブの×ボタン、申請ウインドウの×ボタンも同様に */
.document-tab-close-btn:hover,
.new-request-modal-close-btn:hover {
  background: #888;
  color: #fff;
}

/* 進捗フローターウインドウの3ボタンを縦並び・美しく配置 */
.progress-fab-btns {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  margin: 24px 0 12px 0;
}
.progress-fab-btn {
  font-size: 17px;
  padding: 14px 0;
  border-radius: 16px;
  border: none;
  background: #f5f5f5;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.progress-fab-btn.main {
  background: #007bff;
  color: #fff;
}
.progress-fab-btn:hover {
  background: #e0e0e0;
  color: #007bff;
}
.progress-fab-btn.main:hover {
  background: #1560b0;
  color: #fff;
}
#progress-fab-modal .modal-content {
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  text-align: center;
}
.progress-fab-float {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 12000;
  pointer-events: none;
  background: none;
}
.progress-fab-float:not(.hidden) {
  pointer-events: auto;
}
.progress-fab-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 260px;
  max-width: 90vw;
  padding: 32px 24px 24px 24px;
  text-align: center;
  position: relative;
  pointer-events: auto;
  animation: fadeIn 0.18s;
}
.progress-fab-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: var(--ds-radius-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.progress-fab-close:hover {
  background: #888;
  color: #fff;
}

/* === overrides: transparent rows, pill buttons, equal gaps + drag visuals === */
:root{ --uc-gap:8px; --uc-btn-h:32px; --uc-col-w:28px; }
.approval-user-row{ background:transparent !important; border:none !important;
  display:grid !important; grid-template-columns: var(--uc-col-w) var(--uc-col-w) 1fr auto var(--uc-col-w);
  align-items:center; gap:var(--uc-gap); padding:4px 0; will-change: transform; }
.approval-user-row > *{ margin:0 !important; }
.approval-row-handle{ width:var(--uc-col-w); text-align:center; cursor:grab; user-select:none; }
.approval-row-handle.is-disabled{ opacity:.35; cursor:not-allowed; }
.approval-row-order{ width:var(--uc-col-w); text-align:center; font-variant-numeric:tabular-nums; }
.approval-user-select{
  height:var(--uc-btn-h);
  border-radius:var(--ds-radius-md);
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid #ccc;
  background: #f5f5f5;
}
.approval-user-select{
  width:100%;
  min-width:0;
  max-width:none;
}
.approval-row-delete{ width:var(--uc-col-w); height:var(--uc-col-w); display:inline-grid; place-items:center; background:transparent; border:none; font-size:18px; cursor:pointer; color:#999; }
.approval-row-delete:hover{ color:#d33; }
.approval-user-row.is-dragging{ opacity:.95; box-shadow:0 8px 24px rgba(0,0,0,.18); cursor:grabbing !important; }
.approval-row-handle:active{ cursor:grabbing; }


/* =========================
 * 添付画像 UI（新規申請）
 * ========================= */
.attachment-section{
  margin: 14px 12px 10px;
  padding: 12px;
  background: var(--ds-color-surface-muted);
  border: 1px solid #d8d8d8;
  border-radius: var(--ds-radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attachment-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.attachment-title{
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.attachment-counter{
  font-size: 12px;
  color: #666;
}
.attachment-add-btn{
  width: 100%;
  border: 1px dashed #007bff;
  background: #fff;
  color: #007bff;
  border-radius: 12px;
  height: 38px;
  cursor: pointer;
  font-weight: 700;
}
.attachment-add-btn:hover{
  background: #e6f0ff;
}
.attachment-hint{
  font-size: 12px;
  color: #666;
}
.attachment-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.attachment-item{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 8px;
}
.attachment-thumb{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  object-fit: cover;
  background: #fafafa;
  flex: 0 0 auto;
}
.attachment-meta{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.attachment-name{
  font-size: 12px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attachment-size{
  font-size: 12px;
  color: #666;
}
.attachment-remove{
  border: none;
  background: transparent;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--ds-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 18px;
}
.attachment-remove:hover{
  background: #ffeaea;
  color: #dc3545;
}

/* 送信中オーバーレイ */
.attachment-upload-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.attachment-upload-modal{
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  font-family: system-ui, -apple-system, 'BIZ UDPGothic', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.attachment-upload-title{
  font-weight: 800;
  font-size: 16px;
}
.attachment-upload-sub{
  font-size: 13px;
  color: #666;
}
.attachment-upload-progress{
  font-size: 13px;
  color: #333;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 10px;
  white-space: pre-wrap;
}
.attachment-upload-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.attachment-upload-actions button{
  height: 38px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  padding: 0 14px;
}
.attachment-upload-cancel{
  background: #f0f0f0;
}
.attachment-upload-cancel:hover{
  filter: brightness(0.98);
}
