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

.approval-user-select {
  cursor: pointer;
}
.user-footer-btn.confirm:hover {
  background: #1560b0;
}
/* ユーザーカラム・承認フロー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: 12px;
  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: rgba(18, 58, 102, 0.08);
  border-color: transparent;
  color: #123a66;
  box-shadow: none;
}
.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: rgba(238, 238, 238, 0.72);
}
.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;
}
.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: 12px;
  background: rgba(238, 238, 238, 0.72);
  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: 20px;
  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: 20px;
  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: 50%;
  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: 20px;
  padding: 6px 16px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  height: 64px;
  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: 50%;
  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: 50%;
  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: calc(var(--uc-btn-h) / 2);
  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) 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: 4 / 5;
}
.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 .approval-row-handle {
  color: #b0b4b8;
  cursor: default;
}
.realqr-user-row .approval-row-order {
  color: var(--ds-color-text-sub, #666666);
  font-weight: 700;
}
.realqr-row-color {
  background: var(--ds-color-text-sub, #666666) !important;
  border-color: rgba(102, 102, 102, 0.28);
}
.realqr-user-select {
  width: 100%;
  min-width: 0;
  max-width: none;
  color: #374151;
  background: #fff;
}
.realqr-user-select:disabled {
  opacity: 1;
  cursor: default;
}
.realqr-row-delete {
  color: var(--ds-color-text-sub, #666666);
}
.realqr-row-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.viewer-user-section {
  margin: 14px 12px 0;
  padding: 12px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #f5f5f5;
  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-row-color {
  background: #9aa0a6 !important;
  border-color: #c5cacf;
}
.viewer-user-select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.viewer-user-select-empty {
  color: #6b7280;
  border-style: dashed;
  background: #fff;
}
.viewer-readonly-pill {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  height: var(--uc-btn-h);
  border: 1px solid #d0d5da;
  border-radius: calc(var(--uc-btn-h) / 2);
  background: #eceff1;
  color: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
}
.viewer-row-delete:disabled,
.viewer-user-select:disabled {
  cursor: not-allowed;
}
.viewer-user-add-row {
  padding: 0;
}
.viewer-user-add-row .viewer-user-add-btn {
  grid-column: 4 / 5;
}

.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: 50%;
  transition: background 0.2s;
}
.approval-user-visibility-btn:hover {
  background: #e0e0e0;
}
.approval-user-visibility-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.approval-signpos-btn {
display: flex;
align-items: center;
background: #f5f5f5;
border: 1px solid #ccc;
border-radius: 20px;
padding: 6px 16px;
font-size: 15px;
cursor: pointer;
position: relative;
transition: background 0.2s, color 0.2s;
height: 32px;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
justify-content: center;
text-align: center;
color: #222;
box-sizing: border-box;
overflow: hidden;
}
.signpos-indicator {
  display: none;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0;
  vertical-align: middle;
}

.approval-signpos-btn[data-signpos="on"] {
  color: #222;
}

.approval-signpos-btn .signpos-label {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
  color: #222;
  font-size: 15px;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
  box-sizing: border-box;
}


.approval-signpos-btn:disabled {
  pointer-events: none;
  opacity: 0.6;
}


/* ユーザーカラム下部ボタンエリア */
.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;
  height: 40px;
  min-width: 0;
  width: 100%;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: #fff;
  color: #007bff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.user-footer-btn.back {
  background: #f5f5f5;
  color: #333;
  height: 44px;
  border-radius: 24px;
  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.back:hover {
  background: #e0e0e0;
}
.user-footer-btn.confirm {
  background: #007bff;
  color: #fff;
  height: 44px;
  border-radius: 24px;
  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;
  font-weight: bold;
  gap: 8px;
  transition: background 0.2s;
  border: none;
}
.user-footer-btn.check {
  background: #43a047;
  color: #fff;
  min-width: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  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: 24px;
  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: 8px;
}
.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"] .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"] .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.confirm {
  font-size: 15px;
  gap: 6px;
}

/* サムネイルカラムの×ボタン */
.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: 50%;
  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) 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-row-color{ width:18px; height:18px; border-radius:50%; justify-self:center; border:2px solid transparent; box-shadow:none; }
.approval-user-select, .approval-signpos-btn{
  height:var(--uc-btn-h);
  border-radius:calc(var(--uc-btn-h)/2);
  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-signpos-btn{
  flex:0 0 132px;
  width:132px;
  min-width:132px;
  max-width:132px;
}
.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: #f8f8f8;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  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: 50%;
  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);
}
