/* Shared confirm-action modal buttons (single + bulk) */

body.theme-material #confirm-delete-modal .modal-form-actions,
body.theme-material #confirm-reopen-modal .modal-form-actions,
body.theme-material #confirm-bulk-done-modal .modal-form-actions,
body.theme-material #confirm-bulk-delete-modal .modal-form-actions,
body.theme-material #confirm-bulk-move-modal .modal-form-actions {
  justify-content: flex-end;
  gap: 8px;
}

body.theme-material #confirm-delete-modal .modal-btn,
body.theme-material #confirm-reopen-modal .modal-btn,
body.theme-material #confirm-bulk-done-modal .modal-btn,
body.theme-material #confirm-bulk-delete-modal .modal-btn,
body.theme-material #confirm-bulk-move-modal .modal-btn {
  border: none;
  border-radius: 999px;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.theme-material #confirm-delete-modal #confirm-delete-cancel,
body.theme-material #confirm-reopen-modal #confirm-reopen-cancel,
body.theme-material #confirm-bulk-done-modal #confirm-bulk-done-cancel,
body.theme-material #confirm-bulk-delete-modal #confirm-bulk-delete-cancel,
body.theme-material #confirm-bulk-move-modal #confirm-bulk-move-cancel {
  background: var(--color-bg-muted) !important;
  color: var(--color-text-secondary) !important;
}

body.theme-material #confirm-delete-modal #confirm-delete-cancel:hover,
body.theme-material #confirm-reopen-modal #confirm-reopen-cancel:hover,
body.theme-material #confirm-bulk-done-modal #confirm-bulk-done-cancel:hover,
body.theme-material #confirm-bulk-delete-modal #confirm-bulk-delete-cancel:hover,
body.theme-material #confirm-bulk-move-modal #confirm-bulk-move-cancel:hover {
  background: var(--color-border-default) !important;
  color: var(--color-text-primary) !important;
  transform: translateY(-1px);
}

body.theme-material #confirm-reopen-modal #confirm-reopen-ok,
body.theme-material #confirm-bulk-done-modal #confirm-bulk-done-ok {
  background: var(--color-brand-primary-soft) !important;
  color: var(--color-text-primary) !important;
}

body.theme-material #confirm-reopen-modal #confirm-reopen-ok:hover,
body.theme-material #confirm-bulk-done-modal #confirm-bulk-done-ok:hover {
  background: var(--color-brand-primary-hover) !important;
  color: var(--color-brand-primary-foreground) !important;
  transform: translateY(-1px);
}

body.theme-material #confirm-bulk-move-modal #confirm-bulk-move-ok {
  background: var(--color-brand-primary-soft) !important;
  color: var(--color-text-primary) !important;
}

body.theme-material #confirm-bulk-move-modal #confirm-bulk-move-ok:hover {
  background: var(--color-brand-primary-hover) !important;
  color: var(--color-brand-primary-foreground) !important;
  transform: translateY(-1px);
}

body.theme-material #confirm-delete-modal #confirm-delete-ok,
body.theme-material #confirm-bulk-delete-modal #confirm-bulk-delete-ok {
  background: var(--color-danger-soft) !important;
  color: var(--color-text-primary) !important;
}

body.theme-material #confirm-delete-modal #confirm-delete-ok:hover,
body.theme-material #confirm-bulk-delete-modal #confirm-bulk-delete-ok:hover {
  background: var(--color-danger) !important;
  color: var(--color-brand-primary-foreground) !important;
  transform: translateY(-1px);
}

body.theme-material.dark-theme #confirm-delete-modal #confirm-delete-cancel,
body.theme-material.dark-theme #confirm-reopen-modal #confirm-reopen-cancel,
body.theme-material.dark-theme #confirm-bulk-done-modal #confirm-bulk-done-cancel,
body.theme-material.dark-theme #confirm-bulk-delete-modal #confirm-bulk-delete-cancel,
body.theme-material.dark-theme #confirm-bulk-move-modal #confirm-bulk-move-cancel {
  color: var(--color-text-primary) !important;
}

body.theme-material.dark-theme #confirm-delete-modal #confirm-delete-cancel:hover,
body.theme-material.dark-theme #confirm-reopen-modal #confirm-reopen-cancel:hover,
body.theme-material.dark-theme #confirm-bulk-done-modal #confirm-bulk-done-cancel:hover,
body.theme-material.dark-theme #confirm-bulk-delete-modal #confirm-bulk-delete-cancel:hover,
body.theme-material.dark-theme #confirm-bulk-move-modal #confirm-bulk-move-cancel:hover {
  background: var(--color-border-strong) !important;
}

body.theme-material #confirm-bulk-done-modal .modal-count-accent,
body.theme-material #confirm-bulk-delete-modal .modal-count-accent,
body.theme-material #confirm-bulk-move-modal .modal-count-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin: 0 2px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-brand-primary-soft);
  color: var(--color-brand-primary);
}

body.theme-material.dark-theme #confirm-bulk-done-modal .modal-count-accent,
body.theme-material.dark-theme #confirm-bulk-delete-modal .modal-count-accent,
body.theme-material.dark-theme #confirm-bulk-move-modal .modal-count-accent {
  color: var(--color-brand-accent);
}

/* Single delete modal mirrors confirm-done modal geometry, with destructive action color. */
body.theme-material #confirm-delete-modal.modal-overlay {
  align-items: center;
  padding: 20px;
}

body.theme-material #confirm-delete-modal .modal-card {
  max-width: 520px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

body.theme-material #confirm-delete-modal .modal-card-header {
  padding: 14px 24px;
  background: #fafbfc;
}

body.theme-material #confirm-delete-modal #confirm-delete-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

body.theme-material #confirm-delete-modal .modal-card-body {
  padding: 12px 24px;
}

body.theme-material #confirm-delete-modal .modal-confirm-text {
  margin: auto 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #475569;
}

body.theme-material #confirm-delete-modal .modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 16.8px -24px 0;
  padding: 16.8px 24px 18px;
  border-top: 0.8px solid #e2e8f0;
  background: #fafbfc;
}

body.theme-material #confirm-delete-modal .modal-form-actions .modal-btn {
  min-width: 0;
  height: 37.6px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-family: var(--font-family-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-cancel {
  width: 95.825px;
  border: 0.8px solid #e2e8f0 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-cancel:hover {
  border-color: #d6e0ef !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-ok,
body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-ok.modal-btn-danger {
  width: 150px;
  border: none !important;
  background: #ef4444 !important;
  color: #ffffff !important;
}

body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-ok:hover,
body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-ok.modal-btn-danger:hover {
  background: #dc2626 !important;
  border: none !important;
  color: #ffffff !important;
}

body.theme-material #confirm-delete-modal .modal-form-actions .modal-btn:hover,
body.theme-material #confirm-delete-modal .modal-form-actions .modal-btn:active {
  transform: none !important;
}

body.theme-material.dark-theme #confirm-delete-modal .modal-card-header,
body.theme-material.dark-theme #confirm-delete-modal .modal-form-actions {
  background: #111827;
}

body.theme-material.dark-theme #confirm-delete-modal .modal-form-actions {
  border-top-color: var(--color-border-strong);
}

body.theme-material.dark-theme #confirm-delete-modal .modal-confirm-text {
  color: #94a3b8;
}

body.theme-material.dark-theme #confirm-delete-modal .modal-form-actions #confirm-delete-cancel {
  border: 0.8px solid #334155 !important;
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

body.theme-material.dark-theme #confirm-delete-modal .modal-form-actions #confirm-delete-cancel:hover {
  border-color: #475569 !important;
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

body.theme-material #confirm-done-modal .confirm-done-card {
  width: min(100%, 660px);
  max-width: 660px;
  max-height: calc(100vh - 40px);
}

body.theme-material #confirm-done-modal[data-done-mode="simple_done"] .confirm-done-card {
  width: min(100%, 520px);
  max-width: 520px;
}

body.theme-material #confirm-done-modal[data-done-mode="simple_done"] .confirm-done-body {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

body.theme-material #confirm-done-modal {
  --confirm-control-h: 42px;
  --confirm-control-radius: 6px;
  --confirm-control-px: 14px;
  --confirm-control-bg: var(--color-bg-surface-alt);
  --confirm-control-border: var(--color-border-default);
}

body.theme-material #confirm-done-modal.modal-overlay {
  align-items: center;
  padding: 20px;
}

body.theme-material #confirm-done-modal .modal-confirm-text {
  margin: 0 0 10px;
}

body.theme-material #confirm-done-modal[data-done-mode="simple_done"] .modal-confirm-text {
  margin: auto 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-secondary);
  width: 100%;
  text-align: left;
  align-self: stretch;
  padding: 0;
}

body.theme-material #confirm-done-modal[data-done-mode="simple_done"] .modal-confirm-text strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

body.theme-material #confirm-done-modal[data-done-mode="simple_done"] .confirm-done-body {
  overflow: hidden;
  scrollbar-width: none;
}

body.theme-material #confirm-done-modal[data-done-mode="simple_done"] .confirm-done-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.theme-material.dark-theme #confirm-done-modal[data-done-mode="simple_done"] .modal-confirm-text {
  color: var(--color-text-secondary);
}

body.theme-material #confirm-done-modal .confirm-done-body {
  padding: 12px 24px;
  max-height: none;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

body.theme-material #confirm-done-modal .confirm-done-body::-webkit-scrollbar {
  width: 10px;
}

body.theme-material #confirm-done-modal .confirm-done-body::-webkit-scrollbar-track {
  background: transparent;
}

body.theme-material #confirm-done-modal .confirm-done-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-color: #cbd5e1;
  background-clip: content-box;
}

body.theme-material #confirm-done-modal .confirm-done-body::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-body,
body.dark-theme #confirm-done-modal .confirm-done-body {
  scrollbar-color: #334155 transparent;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-body::-webkit-scrollbar-thumb,
body.dark-theme #confirm-done-modal .confirm-done-body::-webkit-scrollbar-thumb {
  background-color: #334155;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-body::-webkit-scrollbar-thumb:hover,
body.dark-theme #confirm-done-modal .confirm-done-body::-webkit-scrollbar-thumb:hover {
  background-color: #475569;
}

.confirm-done-workflow-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-done-workflow-body[hidden] {
  display: none !important;
}

.confirm-done-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.theme-material #confirm-done-modal .confirm-done-step-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px;
}

body.theme-material #confirm-done-modal .confirm-done-step-summary-kicker {
  color: #64748b;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

body.theme-material #confirm-done-modal .confirm-done-step-summary-title {
  color: #2563eb;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-step-summary-kicker,
body.dark-theme #confirm-done-modal .confirm-done-step-summary-kicker {
  color: #94a3b8;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-step-summary-title,
body.dark-theme #confirm-done-modal .confirm-done-step-summary-title {
  color: #bfdbfe;
}

body.theme-material #confirm-done-modal .confirm-done-progress + .confirm-done-grid {
  margin-top: 14px;
}

.confirm-done-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel .modal-input {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel .modal-input:focus {
  outline: none;
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 1px var(--color-focus-ring);
}

.confirm-done-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-done-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
  font-size: 14px;
}

.confirm-done-check-inline input {
  width: 16px;
  height: 16px;
}

.preclose-verify-row,
.preclose-verify-network {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="1"] {
  --preclose-row-h: var(--confirm-control-h);
  --preclose-confirm-w: 160px;
  --preclose-port-w: 84px;
  --preclose-gap: 8px;
  --preclose-surface-bg: var(--confirm-control-bg);
  --preclose-surface-border: var(--confirm-control-border);
  --preclose-surface-radius: var(--confirm-control-radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preclose-verify-label .modal-label,
.preclose-verify-network-label-slot .modal-label {
  margin-bottom: 0;
}

.preclose-verify-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--preclose-gap);
  align-items: stretch;
  box-sizing: border-box;
}

.preclose-verify-network-labels,
.preclose-verify-network-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) var(--preclose-port-w);
  gap: var(--preclose-gap);
  align-items: stretch;
  box-sizing: border-box;
}

.preclose-verify-input-wrap,
.preclose-verify-toggle-wrap {
  min-width: 0;
}

.preclose-verify-input-wrap {
  height: var(--preclose-row-h);
  border: 1px solid var(--preclose-surface-border);
  border-radius: var(--preclose-surface-radius);
  background: var(--preclose-surface-bg);
  box-shadow: none;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.preclose-verify-input-wrap .modal-input {
  height: 100%;
  width: 100%;
  margin-bottom: 0;
  padding: 0 14px;
  border-radius: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.preclose-verify-input-wrap:focus-within {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.preclose-confirm-toggle {
  width: var(--preclose-confirm-w);
  height: var(--preclose-row-h);
  border: 1px solid var(--preclose-surface-border);
  border-radius: var(--preclose-surface-radius);
  background: var(--preclose-surface-bg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  color: #66758f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.preclose-confirm-toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border-default);
  border-radius: 5px;
  background: transparent;
  position: relative;
  flex: 0 0 20px;
  box-sizing: border-box;
}

.preclose-confirm-toggle input:focus-visible {
  outline: none;
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.preclose-confirm-toggle input:checked {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-primary);
}

.preclose-confirm-toggle input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.preclose-confirm-toggle.is-checked {
  color: var(--color-brand-primary);
}

.preclose-confirm-toggle:focus-within {
  border-color: var(--color-focus-border);
  box-shadow: none;
}

.preclose-confirm-toggle-text {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-material.dark-theme .preclose-verify-input-wrap .modal-input,
body.theme-material.dark-theme .preclose-confirm-toggle {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-strong);
  box-shadow: none;
}

body.theme-material.dark-theme .preclose-verify-input-wrap {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-strong);
}

.preclose-info-note {
  margin: 14px 14px 12px;
  border: 1px solid #2563eb;
  border-radius: 12px;
  background: #eff6ff;
  padding: 13px 16px;
  color: #1d4ed8;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 86px;
  box-sizing: border-box;
}

.preclose-info-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.preclose-info-head {
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: var(--font-family-body);
}

.preclose-info-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preclose-info-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.preclose-info-icon svg circle:last-of-type {
  fill: currentColor;
}

.preclose-info-text {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  font-family: var(--font-family-body);
  color: #2563eb;
  overflow-wrap: anywhere;
}

body.theme-material.dark-theme .preclose-info-note,
body.dark-theme .preclose-info-note {
  border-color: #1d9bf0;
  background: rgba(29, 78, 216, 0.28);
  color: #bfdbfe;
}

body.theme-material.dark-theme .preclose-info-head,
body.dark-theme .preclose-info-head {
  color: #dbeafe;
}

body.theme-material.dark-theme .preclose-info-text,
body.dark-theme .preclose-info-text {
  color: #bfdbfe;
}

.preclose-step-intro {
  margin: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preclose-step-intro-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text-primary);
}

.preclose-step-intro-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

body.theme-material #confirm-done-modal .preclose-category-section {
  gap: 8px;
}

body.theme-material #confirm-done-modal .preclose-category-select-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  background: var(--color-bg-surface-alt);
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

body.theme-material #confirm-done-modal .preclose-category-select-btn:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-surface);
}

body.theme-material #confirm-done-modal .preclose-category-select-btn:focus-visible {
  outline: none;
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

body.theme-material #confirm-done-modal .preclose-category-select-btn:disabled {
  cursor: default;
  opacity: 0.58;
}

body.theme-material #confirm-done-modal .preclose-category-select-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

body.theme-material #confirm-done-modal .preclose-category-select-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.theme-material #confirm-done-modal .preclose-category-select-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-material #confirm-done-modal .preclose-category-hint {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-category-select-btn,
body.dark-theme #confirm-done-modal .preclose-category-select-btn {
  border-color: var(--color-border-strong);
  background: var(--color-bg-muted);
  color: var(--color-text-primary);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-category-select-btn:hover,
body.dark-theme #confirm-done-modal .preclose-category-select-btn:hover {
  border-color: #475569;
  background: #1e293b;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-category-select-icon,
body.dark-theme #confirm-done-modal .preclose-category-select-icon {
  color: #60a5fa;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-category-hint,
body.dark-theme #confirm-done-modal .preclose-category-hint {
  color: #94a3b8;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 14px;
  box-sizing: border-box;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="3"] {
  padding: 0 14px;
  box-sizing: border-box;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="4"] {
  padding: 0 14px;
  box-sizing: border-box;
}

.preclose-work-intro {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text-primary);
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] > .preclose-work-final-panel {
  margin: 0;
}

.preclose-work-final-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preclose-work-final-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.theme-material #confirm-done-modal .preclose-report-section {
  gap: 12px;
}

body.theme-material #confirm-done-modal .preclose-report-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.theme-material #confirm-done-modal .preclose-report-section-head .final-address-title {
  margin: 0;
  min-width: 0;
}

body.theme-material #confirm-done-modal .preclose-report-add-btn,
body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline {
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  justify-self: end !important;
  flex: 0 0 auto !important;
}

body.theme-material #confirm-done-modal .preclose-report-add-btn:hover,
body.theme-material #confirm-done-modal .preclose-report-add-btn:focus-visible,
body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:hover,
body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:focus-visible {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  outline: none !important;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-add-btn:hover,
body.dark-theme #confirm-done-modal .preclose-report-add-btn:hover,
body.theme-material.dark-theme #confirm-done-modal .preclose-report-add-btn:focus-visible,
body.dark-theme #confirm-done-modal .preclose-report-add-btn:focus-visible,
body.theme-material.dark-theme #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:hover,
body.dark-theme #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:hover,
body.theme-material.dark-theme #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:focus-visible,
body.dark-theme #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:focus-visible {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.16) !important;
}

body.theme-material #confirm-done-modal .preclose-report-list,
body.theme-material #confirm-done-modal .confirm-done-cables-wrap,
body.theme-material #confirm-done-modal .preclose-material-lines {
  display: block !important;
  width: 100%;
  min-width: 0;
  grid-template-columns: none !important;
  gap: 0 !important;
}

body.theme-material #confirm-done-modal .preclose-report-empty {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  min-height: 92px;
  padding: 20px 24px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f8fafc;
  box-sizing: border-box;
}

body.theme-material #confirm-done-modal .preclose-report-empty::before {
  content: "";
  width: 44px;
  height: 44px;
  grid-row: 1 / span 2;
  border-radius: 12px;
  background-color: #eaf2ff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

body.theme-material #confirm-done-modal .preclose-report-empty-request-cost::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='none' stroke='%233b82f6' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='40' y='48' width='176' height='160' rx='10'/%3E%3Cline x1='80' y1='96' x2='176' y2='96'/%3E%3Cline x1='80' y1='132' x2='176' y2='132'/%3E%3Cline x1='80' y1='168' x2='132' y2='168'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal .preclose-report-empty-cable::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='none' stroke='%233b82f6' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M88,40,46.63,81.37a22.62,22.62,0,0,0,0,32h0a22.62,22.62,0,0,0,32,0l66.74-66.74a22.62,22.62,0,0,1,32,0h0a22.62,22.62,0,0,1,0,32L78.63,177.37a22.62,22.62,0,0,0,0,32h0a22.62,22.62,0,0,0,32,0l66.74-66.74a22.62,22.62,0,0,1,32,0h0a22.62,22.62,0,0,1,0,32L200,184a22.62,22.62,0,0,0,0,32h0'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

body.theme-material #confirm-done-modal .preclose-report-empty-equipment::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='none' stroke='%233b82f6' stroke-width='22' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='40' y='48' width='176' height='160' rx='8'/%3E%3Cline x1='216' y1='128' x2='40' y2='128'/%3E%3Ccircle cx='176' cy='88' r='12' fill='%233b82f6' stroke='none'/%3E%3Ccircle cx='176' cy='168' r='12' fill='%233b82f6' stroke='none'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal .preclose-report-empty-voice::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='none' stroke='%233b82f6' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M128 168a40 40 0 0 0 40-40V80a40 40 0 0 0-80 0v48a40 40 0 0 0 40 40Z'/%3E%3Cline x1='128' y1='168' x2='128' y2='216'/%3E%3Cline x1='96' y1='216' x2='160' y2='216'/%3E%3Cpath d='M200 128a72 72 0 0 1-144 0'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal .preclose-report-empty-media::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='32' y='56' width='192' height='144' rx='12' fill='none' stroke='%233b82f6' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='164' cy='104' r='16' fill='%233b82f6'/%3E%3Cpath d='M32 168l52-52a12 12 0 0 1 17 0l36 36 19-19a12 12 0 0 1 17 0l51 51' fill='none' stroke='%233b82f6' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal button.preclose-report-empty {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.theme-material #confirm-done-modal button.preclose-report-empty:hover {
  border-color: #bfdbfe;
  background: #f4f8ff;
}

body.theme-material #confirm-done-modal .preclose-report-state-host {
  width: 100%;
}

body.theme-material #confirm-done-modal .preclose-report-empty .panel-materials-empty-title {
  grid-column: 2;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.theme-material #confirm-done-modal .preclose-report-empty .panel-materials-empty-hint {
  grid-column: 2;
  color: #64748b;
  font-size: 13px;
  line-height: 18px;
}

body.theme-material #confirm-done-modal .preclose-report-table {
  width: 100%;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-head,
body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 72px 20px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px 9px 16px;
  font-size: 13px;
  line-height: 18px;
}

body.theme-material #confirm-done-modal .preclose-report-equipment-table .panel-materials-table-head,
body.theme-material #confirm-done-modal .preclose-report-equipment-table .panel-materials-table-row {
  grid-template-columns: 112px minmax(96px, 1fr) 52px 20px;
}

body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-head {
  min-height: 36px;
  border-bottom: 1px solid #dbe5f1;
  background: #f8fafc;
  color: #52617a;
  font-weight: 500;
}

body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-row {
  color: #0f172a;
}

body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-row + .panel-materials-table-row {
  border-top: 1px solid #edf2f7;
}

body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-kind,
body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-model {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-material #confirm-done-modal .preclose-report-row-delete {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #ef4444;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: center;
  font-size: 0;
  line-height: 0;
}

body.theme-material #confirm-done-modal .preclose-report-row-delete:hover,
body.theme-material #confirm-done-modal .preclose-report-row-delete:focus,
body.theme-material #confirm-done-modal .preclose-report-row-delete:active {
  background: transparent !important;
  border: 0 !important;
  color: #dc2626;
  box-shadow: none !important;
}

body.theme-material #confirm-done-modal .preclose-report-row-delete > svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-modal-body {
  padding: 24px 32px;
  gap: 14px;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-total {
  margin-top: 8px;
  margin-bottom: 18px;
  padding-top: 18px;
}

.preclose-work-final-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preclose-work-section {
  border: 1px solid var(--color-border-default);
  border-radius: 14px;
  background: var(--color-bg-surface);
  overflow: hidden;
}

/* Allow dropdown menu to render outside section bounds in equipment block */
.preclose-work-section.preclose-work-section-equipment {
  overflow: visible;
}

.preclose-work-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 20px;
  border-bottom: 1px solid var(--color-border-default);
  background: #f1f5f9;
}

.preclose-work-section-icon {
  width: 26px;
  height: 26px;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preclose-work-section-icon svg {
  width: 22px;
  height: 22px;
}

.preclose-work-section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text-primary);
}

.preclose-work-section-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preclose-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 14px;
  align-items: center;
  min-height: 42px;
}

.preclose-work-row .modal-label {
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.2;
  transform: translateY(-1px);
}

.preclose-work-control {
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.preclose-work-comment-label {
  display: none;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 12px 14px;
  align-items: center;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap .confirm-done-cable-name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--color-text-primary);
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap .modal-input {
  width: 100%;
  /* Step 2 cable fields must match canonical Step 1 input style (street input) */
  min-height: 38.6px;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 21px;
  border-radius: 6px;
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface-alt);
  box-shadow: none;
  box-sizing: border-box;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-control select.modal-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 60px;
  border-radius: 10px;
  border: 1px solid #dbe3ee;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  padding: 12px 44px 12px 16px;
  box-shadow: none;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2349454f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 14px center;
  background-size: 18px 18px;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-control select.modal-input::-ms-expand {
  display: none;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-control select.modal-input:hover {
  border-color: var(--color-focus-border);
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-control select.modal-input option {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: var(--color-bg-surface-alt);
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-control select.modal-input option:checked {
  background: var(--color-brand-accent-soft);
  color: var(--color-brand-primary-hover);
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] :is(.confirm-done-cables-wrap .modal-input, .preclose-work-control .modal-input):focus {
  outline: none;
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] #preclose-notes {
  min-height: 96px;
  height: auto;
  resize: vertical;
  padding: 12px var(--confirm-control-px);
  background: var(--confirm-control-bg);
}

.preclose-work-comment {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preclose-work-comment .modal-label {
  margin: 0;
}

.preclose-material-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preclose-material-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 14px;
  padding: 10px 0 2px;
}

.preclose-material-toggle-row .toggle-switch {
  flex: 0 0 auto;
  align-self: start;
  justify-self: end;
  margin-top: 2px;
}

.preclose-material-toggle-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preclose-material-toggle-title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-text-primary);
}

.preclose-material-toggle-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.preclose-materials-body {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preclose-materials-body[hidden] {
  display: none !important;
}

.preclose-material-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preclose-material-empty {
  border: 1px dashed #dbe3ee;
  border-radius: 12px;
  min-height: 74px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  background: #f8fafc;
}

.preclose-materials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preclose-material-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.preclose-material-list-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
}

.preclose-material-list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preclose-material-list-title {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  word-break: break-word;
}

.preclose-material-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.preclose-material-list-type,
.preclose-material-list-qty {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
}

.preclose-material-list-type {
  background: #f1f5f9;
  color: #475569;
}

.preclose-material-list-qty {
  background: #eaf3ff;
  color: #1d4ed8;
  font-weight: 600;
}

.preclose-material-list-remove {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #64748b;
  border-radius: 8px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.preclose-material-list-remove:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.preclose-material-list-remove svg {
  width: 18px;
  height: 18px;
}

.preclose-material-row {
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.preclose-material-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preclose-material-row-title {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.preclose-material-row-remove {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #64748b;
  border-radius: 10px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.preclose-material-row-remove:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.preclose-material-row-remove:disabled {
  opacity: 0.45;
  cursor: default;
}

.preclose-material-row-remove svg {
  width: 18px;
  height: 18px;
}

.preclose-material-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.35fr) 112px;
  gap: 10px 12px;
  align-items: end;
}

.preclose-material-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.preclose-material-field .modal-label {
  margin: 0;
}

body.theme-material #confirm-done-modal .preclose-material-field .modal-input {
  padding-right: 48px;
}

body.theme-material #confirm-done-modal .preclose-material-field .custom-select-root {
  width: 100%;
}

body.theme-material #confirm-done-modal .preclose-material-field select.modal-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 16px;
  padding-right: 48px;
  background-color: var(--color-bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2349454f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

body.theme-material #confirm-done-modal .preclose-material-field select.modal-input::-ms-expand {
  display: none;
}

body.theme-material #confirm-done-modal .preclose-material-field .custom-select-trigger {
  width: 100%;
  min-height: var(--confirm-control-h, 42px);
  border-radius: var(--confirm-control-radius, 6px);
  border: 1px solid var(--confirm-control-border, #dbe3ee);
  background: var(--confirm-control-bg, #f8fafc);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 0 40px 0 var(--confirm-control-px, 14px);
}

body.theme-material #confirm-done-modal .preclose-material-field .custom-select-trigger::after {
  right: 16px;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  min-width: 172px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #2563eb;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn .preclose-photo-add-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn .preclose-photo-add-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #2563eb;
}

.preclose-material-add-btn-inline {
  align-self: auto;
  margin-left: auto;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline {
  min-width: 0;
  width: auto;
  min-height: 36px;
  height: auto;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2563eb;
  gap: 6px;
  box-shadow: none;
  white-space: nowrap;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:hover,
body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline:focus-visible {
  border-color: transparent;
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline .preclose-photo-add-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline .preclose-photo-add-icon svg {
  width: 18px;
  height: 18px;
}

.preclose-report-modal-card {
  width: min(430px, calc(100vw - 24px));
  max-width: min(430px, calc(100vw - 24px));
  overflow: hidden;
}

body.theme-material :is(
  #preclose-request-cost-modal,
  #preclose-cable-modal,
  #preclose-material-modal
) .preclose-report-modal-card.app-modal-card {
  width: min(430px, calc(100vw - 24px));
  max-width: min(430px, calc(100vw - 24px));
  border: 1px solid var(--app-modal-border) !important;
  border-radius: 10px !important;
  background: var(--app-modal-body-bg) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
  overflow: hidden;
}

body.theme-material #task-material-modal.modal-overlay,
body.theme-material #task-cable-modal.modal-overlay,
body.theme-material #task-request-cost-modal.modal-overlay,
body.theme-material #preclose-material-modal.modal-overlay,
body.theme-material #preclose-cable-modal.modal-overlay,
body.theme-material #preclose-request-cost-modal.modal-overlay,
body.dark-theme #task-material-modal.modal-overlay,
body.dark-theme #task-cable-modal.modal-overlay,
body.dark-theme #task-request-cost-modal.modal-overlay,
body.dark-theme #preclose-material-modal.modal-overlay,
body.dark-theme #preclose-cable-modal.modal-overlay,
body.dark-theme #preclose-request-cost-modal.modal-overlay {
  background: rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.theme-material.dark-theme #task-material-modal.modal-overlay,
body.theme-material.dark-theme #task-cable-modal.modal-overlay,
body.theme-material.dark-theme #task-request-cost-modal.modal-overlay,
body.theme-material.dark-theme #preclose-material-modal.modal-overlay,
body.theme-material.dark-theme #preclose-cable-modal.modal-overlay,
body.theme-material.dark-theme #preclose-request-cost-modal.modal-overlay,
body.dark-theme #task-material-modal.modal-overlay,
body.dark-theme #task-cable-modal.modal-overlay,
body.dark-theme #task-request-cost-modal.modal-overlay,
body.dark-theme #preclose-material-modal.modal-overlay,
body.dark-theme #preclose-cable-modal.modal-overlay,
body.dark-theme #preclose-request-cost-modal.modal-overlay {
  background: rgba(71, 85, 105, 0.65);
}

body.theme-material #preclose-request-cost-modal .preclose-report-modal-card.app-modal-card {
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
}

.preclose-report-modal-body {
  padding: var(--app-modal-body-padding);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--app-modal-body-bg);
}

body.theme-material #preclose-material-modal .preclose-report-modal-body,
body.theme-material #preclose-cable-modal .preclose-report-modal-body {
  padding-bottom: 22px;
}

.preclose-report-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preclose-report-modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preclose-report-modal-field .modal-label {
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

body.theme-material #preclose-material-modal .modal-input,
body.theme-material #preclose-cable-modal .modal-input {
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid #dbe3ee;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  box-shadow: none;
}

body.theme-material #preclose-material-modal .modal-input:focus,
body.theme-material #preclose-cable-modal .modal-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
  outline: none;
}

body.theme-material #preclose-material-modal select.modal-input,
body.theme-material #preclose-cable-modal select.modal-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-color: var(--color-bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2349454f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

body.theme-material #preclose-material-modal select.modal-input::-ms-expand,
body.theme-material #preclose-cable-modal select.modal-input::-ms-expand {
  display: none;
}

body.theme-material.dark-theme .preclose-material-row {
  background: #0f172a;
  border-color: #334155;
  box-shadow: none;
}

body.theme-material.dark-theme .preclose-material-empty,
body.theme-material.dark-theme .preclose-material-list-item {
  background: #0f172a;
  border-color: #334155;
}

body.theme-material.dark-theme .preclose-material-empty {
  color: #93a4bc;
}

body.theme-material.dark-theme .preclose-material-list-text {
  color: #e2e8f0;
}

body.theme-material.dark-theme .preclose-material-list-badge {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

body.theme-material.dark-theme .preclose-material-list-title {
  color: #e2e8f0;
}

body.theme-material.dark-theme .preclose-material-list-type {
  background: #1e293b;
  color: #cbd5e1;
}

body.theme-material.dark-theme .preclose-material-list-qty {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

body.theme-material.dark-theme .preclose-material-list-remove {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
}

body.theme-material.dark-theme .preclose-material-list-remove:hover {
  border-color: #475569;
  background: #1e293b;
  color: #f8fafc;
}

body.theme-material.dark-theme .preclose-material-row-title {
  color: #93a4bc;
}

body.theme-material.dark-theme .preclose-material-toggle-title {
  color: #e2e8f0;
}

body.theme-material.dark-theme .preclose-material-toggle-hint {
  color: #93a4bc;
}

body.theme-material.dark-theme .preclose-material-row-remove {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
}

body.theme-material.dark-theme .preclose-material-row-remove:hover {
  border-color: #475569;
  background: #1e293b;
  color: #f8fafc;
}

body.theme-material.dark-theme .preclose-material-add-btn {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
  box-shadow: none;
}

body.theme-material.dark-theme .preclose-material-add-btn:hover {
  border-color: #475569;
  background: #1e293b;
  color: #f8fafc;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-empty,
body.dark-theme #confirm-done-modal .preclose-report-empty {
  border-color: rgba(71, 85, 105, 0.78);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92));
}

body.theme-material.dark-theme #confirm-done-modal button.preclose-report-empty:hover,
body.theme-material.dark-theme #confirm-done-modal button.preclose-report-empty:focus-visible,
body.dark-theme #confirm-done-modal button.preclose-report-empty:hover,
body.dark-theme #confirm-done-modal button.preclose-report-empty:focus-visible {
  border-color: #3b82f6;
  background: #111c2e;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-empty::before,
body.dark-theme #confirm-done-modal .preclose-report-empty::before {
  background-color: rgba(30, 41, 59, 0.92);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-empty .panel-materials-empty-title,
body.dark-theme #confirm-done-modal .preclose-report-empty .panel-materials-empty-title,
body.theme-material.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-row,
body.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-row {
  color: #e2e8f0;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-empty .panel-materials-empty-hint,
body.dark-theme #confirm-done-modal .preclose-report-empty .panel-materials-empty-hint,
body.theme-material.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-head,
body.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-head {
  color: #94a3b8;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-table,
body.dark-theme #confirm-done-modal .preclose-report-table {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.66);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-head,
body.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-head {
  border-bottom-color: rgba(71, 85, 105, 0.72);
  background: rgba(30, 41, 59, 0.72);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-row + .panel-materials-table-row,
body.dark-theme #confirm-done-modal .preclose-report-table .panel-materials-table-row + .panel-materials-table-row {
  border-top-color: rgba(51, 65, 85, 0.7);
}

body.theme-material.dark-theme .preclose-report-modal-field .modal-label,
body.dark-theme .preclose-report-modal-field .modal-label {
  color: #cbd5e1;
}

body.theme-material.dark-theme #preclose-material-modal .modal-input,
body.theme-material.dark-theme #preclose-cable-modal .modal-input,
body.dark-theme #preclose-material-modal .modal-input,
body.dark-theme #preclose-cable-modal .modal-input {
  border-color: #334155;
  background-color: #0f172a;
  color: #e2e8f0;
}

.confirm-done-cables-wrap {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px 10px;
}

.confirm-done-cables-wrap .confirm-done-cable-name {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-primary);
  font-size: 13px;
}

.confirm-done-review-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  align-items: center;
}

.final-close-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.final-close-intro {
  margin: 0 14px;
}

.final-close-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--color-border-primary);
  border-radius: 14px;
  background: var(--color-bg-surface);
  padding: 14px;
}

.final-address-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.final-address-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.final-address-title-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.final-address-title-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.final-address-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.final-comment-input {
  min-height: 88px;
  resize: vertical;
}

.final-address-label {
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.final-address-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.final-network-subgrid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
}

body.theme-material #confirm-done-modal :is(#confirm-final-workflow-body, #confirm-done-workflow-body) .final-network-port .modal-input {
  text-align: left;
}

body.theme-material #confirm-done-modal :is(#confirm-final-workflow-body, #confirm-done-workflow-body) .final-address-section .modal-input {
  min-height: 38.6px;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 21px;
  border-radius: 6px;
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface-alt);
  box-shadow: none;
  width: 100%;
}

body.theme-material #confirm-done-modal :is(#confirm-final-workflow-body, #confirm-done-workflow-body) .final-address-section .modal-input:focus {
  border-color: var(--color-focus-border);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
  outline: none;
}

.final-close-confirm {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.final-close-confirm:hover {
  background: #f8fafc;
  border-color: #bfdbfe;
}

.final-close-confirm:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.final-close-confirm-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #0f172a;
  font-weight: 400;
}

.final-close-confirm-text strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.final-close-confirm-text small {
  color: #64748b;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
}

.final-close-confirm:has(input:checked) .final-close-confirm-text strong {
  color: #0f172a;
}

.final-close-confirm:has(input:checked) .final-close-confirm-text small {
  color: #475569;
}

.checklist-close-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-close-intro {
  margin: 0 14px;
}

.checklist-close-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--color-border-primary);
  border-radius: 14px;
  background: var(--color-bg-surface);
  padding: 14px;
}

.checklist-close-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-close-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text-primary);
}

.checklist-close-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.checklist-close-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-close-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.checklist-close-item input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #d4d4d8;
  border-radius: 2px;
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.checklist-close-item:hover {
  border-color: #cbd5e1;
  background: #fafcff;
}

.checklist-close-item:focus-within {
  border-color: #6366f1;
  box-shadow: none;
}

.checklist-close-item input:focus-visible {
  outline: none;
  border-color: #6366f1;
  box-shadow: none;
}

.checklist-close-item input:checked {
  border-color: #2563eb;
  background: #2563eb;
}

.checklist-close-item input:checked::after {
  content: none;
}

.checklist-close-item:has(input:checked) {
  border-color: #c7d2fe;
  background: #f8faff;
}

.checklist-close-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checklist-close-item-text strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text-primary);
}

.checklist-close-item-text small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

body.theme-material #confirm-done-modal[data-done-mode="checklist_close"] .confirm-done-card {
  max-width: 720px;
}

body.theme-material.dark-theme .checklist-close-item {
  border-color: #334155;
  background: #111827;
}

body.theme-material.dark-theme .checklist-close-item:hover {
  border-color: #475569;
  background: #162033;
}

body.theme-material.dark-theme .checklist-close-item:focus-within {
  border-color: #818cf8;
  box-shadow: none;
}

body.theme-material.dark-theme .checklist-close-item input {
  border-color: #52525b;
  background: #18181b;
}

body.theme-material.dark-theme .checklist-close-item input:focus-visible {
  border-color: #818cf8;
  box-shadow: none;
}

body.theme-material.dark-theme .checklist-close-item input:checked {
  border-color: #6366f1;
  background: #6366f1;
}

body.theme-material.dark-theme .checklist-close-item:has(input:checked) {
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(49, 46, 129, 0.18);
}

body.theme-material.dark-theme .checklist-close-description,
body.theme-material.dark-theme .checklist-close-item-text small {
  color: #93a4bc;
}

body.theme-material.dark-theme .final-close-confirm {
  border-color: #334155;
  background: #0f172a;
}

body.theme-material.dark-theme .final-close-confirm:hover {
  border-color: #3b82f6;
  background: #111f35;
}

body.theme-material.dark-theme .final-close-confirm:has(input:checked) {
  border-color: #1d9bf0;
  background: rgba(29, 78, 216, 0.28);
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.16);
}

body.theme-material.dark-theme .final-close-confirm-text {
  color: #e5eefb;
}

body.theme-material.dark-theme .final-close-confirm-text strong {
  color: #e5eefb;
}

body.theme-material.dark-theme .final-close-confirm-text small {
  color: #93a4bc;
}

body.theme-material.dark-theme .final-close-confirm:has(input:checked) .final-close-confirm-text small {
  color: #bfdbfe;
}

body.theme-material.dark-theme #confirm-done-modal :is(#confirm-final-workflow-body, #confirm-done-workflow-body) .final-address-section .modal-input {
  background: var(--color-bg-muted);
  border-color: var(--color-border-strong);
}

@media (max-width: 760px) {
  body.theme-material #confirm-delete-modal.modal-overlay {
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 12px calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  body.theme-material #confirm-delete-modal .modal-card {
    width: min(100%, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
  }

  body.theme-material #confirm-delete-modal .modal-card-header {
    padding: 12px 16px;
  }

  body.theme-material #confirm-delete-modal #confirm-delete-title {
    font-size: 18px;
    line-height: 1.25;
  }

  body.theme-material #confirm-delete-modal .modal-card-body {
    padding: 10px 14px;
  }

  body.theme-material #confirm-delete-modal .modal-form-actions {
    margin: 12px -14px 0;
    padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  body.theme-material #confirm-done-modal.modal-overlay {
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 12px calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  body.theme-material #confirm-done-modal .confirm-done-card {
    width: min(100%, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
    margin: auto;
    border-radius: 8px;
  }

  body.theme-material #confirm-done-modal .confirm-done-body {
    padding: 10px 14px;
  }

  body.theme-material #confirm-done-modal .confirm-done-header {
    --app-modal-header-padding: 12px 16px;
    --app-modal-title-size: 18px;
    --app-modal-title-line-height: 23px;
  }

  body.theme-material #confirm-done-modal .confirm-done-footer {
    padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  body.theme-material #confirm-done-modal .confirm-done-footer #confirm-done-cancel {
    width: auto;
    min-width: 96px;
  }

  body.theme-material #confirm-done-modal .confirm-done-footer #confirm-done-ok {
    width: auto;
    min-width: 144px;
  }

  .confirm-done-row-two,
  .confirm-done-review-row,
  .confirm-done-cables-wrap,
  .preclose-verify-controls,
  .preclose-verify-network-labels,
  .preclose-verify-network-controls,
  .preclose-work-row {
    grid-template-columns: 1fr;
  }

  .final-address-subgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .final-network-subgrid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
    gap: 8px;
  }

  .preclose-confirm-toggle {
    width: 100%;
  }

  .preclose-info-text {
    overflow-wrap: break-word;
  }

  .preclose-material-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .preclose-material-toggle-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding-right: 2px;
  }

  .preclose-material-add-btn {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 560px) {
  body.theme-material #task-request-cost-modal.modal-overlay,
  body.theme-material #preclose-request-cost-modal.modal-overlay,
  body.dark-theme #task-request-cost-modal.modal-overlay,
  body.dark-theme #preclose-request-cost-modal.modal-overlay {
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  body.theme-material #preclose-request-cost-modal .preclose-report-modal-card,
  body.theme-material #task-request-cost-modal .task-report-modal-card.app-modal-card,
  body.dark-theme #preclose-request-cost-modal .preclose-report-modal-card {
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  }

  @supports not (height: 100dvh) {
    body.theme-material #preclose-request-cost-modal .preclose-report-modal-card,
    body.theme-material #task-request-cost-modal .task-report-modal-card.app-modal-card,
    body.dark-theme #preclose-request-cost-modal .preclose-report-modal-card {
      max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    }
  }

  body.theme-material #preclose-request-cost-modal .app-modal-header,
  body.theme-material #task-request-cost-modal .task-report-modal-header.app-modal-header,
  body.dark-theme #preclose-request-cost-modal .app-modal-header {
    flex: 0 0 auto;
    min-height: 64px;
    padding: 0 24px;
  }

  body.theme-material #task-request-cost-modal .task-request-cost-modal-body,
  body.theme-material #preclose-request-cost-modal .task-request-cost-modal-body,
  body.dark-theme #task-request-cost-modal .task-request-cost-modal-body,
  body.dark-theme #preclose-request-cost-modal .task-request-cost-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px 18px;
  }

  body.theme-material #preclose-request-cost-modal .preclose-report-modal-actions.app-modal-footer,
  body.theme-material #task-request-cost-modal .task-report-modal-actions.app-modal-footer,
  body.dark-theme #preclose-request-cost-modal .preclose-report-modal-actions.app-modal-footer {
    position: sticky;
    bottom: 0;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 12px 24px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  body.theme-material #preclose-request-cost-modal .preclose-report-modal-actions.app-modal-footer,
  body.dark-theme #preclose-request-cost-modal .preclose-report-modal-actions.app-modal-footer {
    margin: 0 !important;
  }

  body.theme-material #preclose-material-modal .preclose-report-modal-actions.app-modal-footer,
  body.theme-material #preclose-cable-modal .preclose-report-modal-actions.app-modal-footer,
  body.dark-theme #preclose-material-modal .preclose-report-modal-actions.app-modal-footer,
  body.dark-theme #preclose-cable-modal .preclose-report-modal-actions.app-modal-footer {
    margin: 0 !important;
  }

  body.theme-material #confirm-delete-modal .modal-card-header {
    padding: 12px 14px;
  }

  body.theme-material #confirm-delete-modal .modal-card-body {
    padding: 10px 12px;
  }

  body.theme-material #confirm-delete-modal .modal-form-actions {
    gap: 10px;
    margin: 12px -12px 0;
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-cancel,
  body.theme-material #confirm-delete-modal .modal-form-actions #confirm-delete-ok {
    flex: 1 1 0;
    width: auto;
  }

  body.theme-material #confirm-done-modal .confirm-done-header {
    --app-modal-header-padding: 12px 14px;
  }

  body.theme-material #confirm-done-modal .confirm-done-body {
    padding: 10px 8px;
  }

  body.theme-material #confirm-done-modal .confirm-done-footer {
    gap: 10px;
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  body.theme-material #confirm-done-modal input.modal-input,
  body.theme-material #confirm-done-modal textarea.modal-input,
    body.theme-material #confirm-done-modal select.modal-input,
    body.theme-material #confirm-done-modal .preclose-verify-input-wrap .modal-input,
    body.theme-material #confirm-done-modal .confirm-done-step-panel .modal-input,
    body.theme-material #confirm-done-modal :is(#confirm-final-workflow-body, #confirm-done-workflow-body) .final-address-section .modal-input,
    body.theme-material #preclose-material-modal .modal-input {
      font-size: 16px !important;
    }

  .final-close-intro,
  .checklist-close-intro {
    margin-left: 0;
    margin-right: 0;
  }

  .final-close-panel,
  .checklist-close-panel {
    padding: 10px 8px;
    gap: 12px;
    border-radius: 12px;
  }

  .final-network-subgrid {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 112px);
    gap: 8px;
  }

  .final-close-confirm {
    margin-left: 14px;
    margin-right: 14px;
    padding: 13px 14px;
    align-items: flex-start;
  }

  .final-close-confirm-text small {
    line-height: 1.4;
  }
}

body.theme-material #confirm-done-modal .confirm-done-progress {
  position: relative;
  height: 3px;
  width: calc(100% - 28px);
  margin: 0 14px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

body.theme-material #confirm-done-modal .confirm-done-progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: #3b82f6;
  transition: width 0.2s ease;
}

body.theme-material #confirm-done-modal .confirm-done-progress[data-progress-step="1"] .confirm-done-progress-fill {
  width: 25%;
}

body.theme-material #confirm-done-modal .confirm-done-progress[data-progress-step="2"] .confirm-done-progress-fill {
  width: 50%;
}

body.theme-material #confirm-done-modal .confirm-done-progress[data-progress-step="3"] .confirm-done-progress-fill {
  width: 75%;
}

body.theme-material #confirm-done-modal .confirm-done-progress[data-progress-step="4"] .confirm-done-progress-fill {
  width: 100%;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-progress,
body.dark-theme #confirm-done-modal .confirm-done-progress {
  background: #334155;
}

body.theme-material.dark-theme #confirm-done-modal .confirm-done-progress-fill,
body.dark-theme #confirm-done-modal .confirm-done-progress-fill {
  background: #3b82f6;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[hidden] {
  display: none !important;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="3"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-material #confirm-done-modal .confirm-done-panel-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="3"] .modal-hint {
  margin: -2px 0 4px;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="4"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="4"] .modal-hint {
  margin: -2px 0 4px;
}

body.theme-material #confirm-done-modal .preclose-photo-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.theme-material #confirm-done-modal .preclose-report-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.theme-material #confirm-done-modal .verify-close-report-section {
  gap: 0;
}

body.theme-material #confirm-done-modal .verify-close-report-section > .preclose-report-step {
  width: 100%;
}

body.theme-material #confirm-done-modal .preclose-report-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-material #confirm-done-modal .preclose-report-comment-input {
  min-height: 112px;
  resize: vertical;
}

body.theme-material #confirm-done-modal .preclose-voice-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

body.theme-material #confirm-done-modal .preclose-report-action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-material #confirm-done-modal .preclose-report-action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.theme-material #confirm-done-modal .preclose-voice-audio {
  width: 100%;
}

body.theme-material #confirm-done-modal .preclose-voice-remove-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.theme-material #confirm-done-modal .preclose-voice-remove-btn-inside {
  position: static;
  flex: 0 0 auto;
  margin-left: 4px;
  align-self: center;
}

body.theme-material #confirm-done-modal .preclose-voice-remove-btn:hover {
  background: rgba(15, 23, 42, 0.14);
  color: #334155;
}

body.theme-material #confirm-done-modal .preclose-voice-preview {
  border: 1px solid #b7e4cf;
  border-radius: 10px;
  background: #ecfdf5;
  padding: 10px 12px;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-meta {
  margin-bottom: 8px;
  font-size: 12px;
  color: #047857;
  font-weight: 600;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-play {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-play:hover {
  background: #059669;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-play svg {
  width: 14px;
  height: 14px;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  min-width: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-wave-bar {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #86efac;
  transition: background-color 0.12s ease;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-wave-bar.is-active {
  background: #10b981;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-time {
  font-size: 12px;
  line-height: 1;
  color: #065f46;
  white-space: nowrap;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-speed {
  height: 26px;
  min-width: 46px;
  border: 1px solid #b7e4cf;
  border-radius: 999px;
  background: #ffffff;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0 10px;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-speed:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

body.theme-material #confirm-done-modal .preclose-voice-preview-audio {
  display: none;
}

body.theme-material #confirm-done-modal .preclose-voice-preview audio {
  width: 100%;
  height: 32px;
}

body.theme-material #confirm-done-modal .preclose-voice-recording {
  border: 1px solid #d7e6ff;
  border-radius: 10px;
  background: #edf4ff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
}

body.theme-material #confirm-done-modal .preclose-voice-recording-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 8px;
  width: 100%;
}

body.theme-material #confirm-done-modal .preclose-voice-recording-meta {
  font-size: 12px;
  color: #3b82f6;
  font-weight: 500;
  line-height: 1.2;
}

body.theme-material #confirm-done-modal .preclose-voice-eq {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  height: 22px;
  min-width: 0;
  overflow: hidden;
}

body.theme-material #confirm-done-modal .preclose-voice-eq-bar {
  width: 4px;
  height: 6px;
  min-height: 6px;
  border-radius: 999px;
  background: #3b82f6;
  transition: height 90ms linear, opacity 120ms linear;
}

body.theme-material #confirm-done-modal .preclose-voice-stop-btn {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-material #confirm-done-modal .preclose-voice-stop-btn:hover {
  background: #e5e7eb;
}

body.theme-material #confirm-done-modal .preclose-voice-stop-icon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #ef4444;
}

body.theme-material #confirm-done-modal .preclose-report-add-btn .preclose-photo-add-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

body.theme-material #confirm-done-modal .preclose-report-add-btn .preclose-photo-add-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.theme-material #confirm-done-modal .preclose-media-action-wrap {
  position: relative;
  justify-self: end;
}

body.theme-material #confirm-done-modal .preclose-media-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

body.theme-material #confirm-done-modal .preclose-media-menu[hidden] {
  display: none;
}

body.theme-material #confirm-done-modal .preclose-media-menu-item {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

body.theme-material #confirm-done-modal .preclose-media-menu-item:hover,
body.theme-material #confirm-done-modal .preclose-media-menu-item:focus-visible {
  background: #f1f5f9;
  color: #2563eb;
  outline: none;
}

body.theme-material #confirm-done-modal .preclose-media-menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
}

body.theme-material #confirm-done-modal .preclose-media-menu-icon svg {
  width: 18px;
  height: 18px;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-media-menu,
body.dark-theme #confirm-done-modal .preclose-media-menu {
  border-color: #334155;
  background: #0f172a;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.5);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-media-menu-item,
body.dark-theme #confirm-done-modal .preclose-media-menu-item {
  color: #cbd5e1;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-media-menu-item:hover,
body.theme-material.dark-theme #confirm-done-modal .preclose-media-menu-item:focus-visible,
body.dark-theme #confirm-done-modal .preclose-media-menu-item:hover,
body.dark-theme #confirm-done-modal .preclose-media-menu-item:focus-visible {
  background: #1e293b;
  color: #93c5fd;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-remove-btn,
body.dark-theme #confirm-done-modal .preclose-voice-remove-btn {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-remove-btn:hover,
body.dark-theme #confirm-done-modal .preclose-voice-remove-btn:hover {
  background: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-preview,
body.dark-theme #confirm-done-modal .preclose-voice-preview {
  border-color: #1f7660;
  background: rgba(6, 78, 59, 0.22);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-preview-meta,
body.dark-theme #confirm-done-modal .preclose-voice-preview-meta {
  color: #6ee7b7;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-preview-time,
body.dark-theme #confirm-done-modal .preclose-voice-preview-time {
  color: #a7f3d0;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-preview-speed,
body.dark-theme #confirm-done-modal .preclose-voice-preview-speed {
  border-color: #1f7660;
  background: #0f172a;
  color: #6ee7b7;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-preview-speed:hover,
body.dark-theme #confirm-done-modal .preclose-voice-preview-speed:hover {
  background: #172033;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-recording,
body.dark-theme #confirm-done-modal .preclose-voice-recording {
  border-color: #1d4ed8;
  background: rgba(30, 64, 175, 0.16);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-recording-meta,
body.dark-theme #confirm-done-modal .preclose-voice-recording-meta {
  color: #93c5fd;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-eq-bar,
body.dark-theme #confirm-done-modal .preclose-voice-eq-bar {
  background: #60a5fa;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-stop-btn,
body.dark-theme #confirm-done-modal .preclose-voice-stop-btn {
  background: rgba(15, 23, 42, 0.72);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-voice-stop-btn:hover,
body.dark-theme #confirm-done-modal .preclose-voice-stop-btn:hover {
  background: rgba(15, 23, 42, 0.9);
}

body.theme-material #confirm-done-modal .preclose-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 96px;
  grid-auto-flow: dense;
  gap: 10px;
  min-height: 214px;
}

body.theme-material #confirm-done-modal .preclose-photo-grid.is-empty {
  display: block;
  min-height: 0;
}

body.theme-material #confirm-done-modal .preclose-photo-grid.is-dragover .preclose-report-empty-media {
  border-color: #60a5fa;
  background: #f0f7ff;
}

body.theme-material.dark-theme #confirm-done-modal .preclose-photo-grid.is-dragover .preclose-report-empty-media,
body.dark-theme #confirm-done-modal .preclose-photo-grid.is-dragover .preclose-report-empty-media {
  border-color: #60a5fa;
  background: rgba(30, 41, 59, 0.85);
}

body.theme-material #confirm-done-modal .preclose-photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

body.theme-material #confirm-done-modal .preclose-photo-tile img,
body.theme-material #confirm-done-modal .preclose-photo-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

body.theme-material #confirm-done-modal .preclose-photo-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="1"] .preclose-photo-tile {
  grid-column: 1 / -1;
  grid-row: span 3;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="2"] .preclose-photo-tile {
  grid-column: span 3;
  grid-row: span 3;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="3"] .preclose-photo-tile:nth-child(1) {
  grid-column: span 4;
  grid-row: span 3;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="3"] .preclose-photo-tile:nth-child(n + 2) {
  grid-column: span 2;
  grid-row: span 1;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="3"] .preclose-photo-tile:nth-child(3) {
  grid-row: span 2;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="4"] .preclose-photo-tile {
  grid-column: span 3;
  grid-row: span 2;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="5"] .preclose-photo-tile:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
}

body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="5"] .preclose-photo-tile:nth-child(n + 2) {
  grid-column: span 3;
  grid-row: span 1;
}

body.theme-material #confirm-done-modal .preclose-photo-status {
  min-height: 18px;
  font-size: 13px;
  line-height: 1.35;
  color: #64748b;
}

body.theme-material #confirm-done-modal .preclose-photo-status.is-loading {
  color: #2563eb;
}

body.theme-material #confirm-done-modal .preclose-photo-status.is-ready {
  color: #1f9d74;
}

body.theme-material #confirm-done-modal .preclose-photo-status.is-error {
  color: #ef4444;
}

.preclose-summary-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preclose-summary-card {
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.preclose-summary-card-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preclose-summary-item-caption {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #64748b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preclose-summary-main-value {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.preclose-subscriber-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.preclose-subscriber-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preclose-subscriber-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.preclose-subscriber-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}

.preclose-subscriber-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}

.preclose-summary-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preclose-summary-meta-card {
  padding: 14px;
}

.preclose-summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preclose-summary-item-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.preclose-summary-item-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preclose-summary-item-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.preclose-summary-item-value {
  min-height: 24px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.preclose-summary-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--color-border-default);
}

.preclose-summary-comment {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preclose-summary-comment-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.preclose-summary-expenses {
  padding: 0;
  overflow: hidden;
}

.preclose-summary-expenses-head {
  min-height: 46px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border-default);
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
}

.preclose-summary-expenses-body {
  display: flex;
  flex-direction: column;
  padding: 6px 16px;
}

.preclose-summary-expense-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px dashed var(--color-border-default);
}

.preclose-summary-expense-row:last-child {
  border-bottom: none;
}

.preclose-summary-expense-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.25;
}

.preclose-summary-expense-value {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.preclose-summary-chip {
  display: inline-flex;
  align-items: center;
}

.preclose-summary-chip-empty {
  color: #64748b;
  background: var(--color-bg-muted);
}

body.theme-material.dark-theme .preclose-summary-card {
  border-color: var(--color-border-strong);
  background: var(--color-bg-surface);
}

body.theme-material.dark-theme .preclose-summary-main-value,
body.theme-material.dark-theme .preclose-summary-item-value,
body.theme-material.dark-theme .preclose-summary-comment-value {
  color: var(--color-text-primary);
}

body.theme-material.dark-theme .preclose-summary-item-caption,
body.theme-material.dark-theme .preclose-summary-item-head {
  color: var(--color-text-secondary);
}

body.theme-material #confirm-done-modal .preclose-summary-screen {
  gap: 0;
}

body.theme-material #confirm-done-modal .preclose-summary-card.preclose-summary-group {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body.theme-material #confirm-done-modal .preclose-summary-row {
  display: block;
  padding: 12px 0;
  border-bottom: 0.8px solid rgba(226, 232, 240, 0.5);
  min-height: 58px;
}

body.theme-material #confirm-done-modal .preclose-summary-row:last-child {
  border-bottom: none;
}

body.theme-material #confirm-done-modal .preclose-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

body.theme-material #confirm-done-modal .preclose-summary-label::before {
  content: "";
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #3b82f6;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.theme-material #confirm-done-modal .preclose-summary-value {
  display: block;
  padding-left: 24px;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

body.theme-material #confirm-done-modal .preclose-summary-value.preclose-summary-kv-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.theme-material #confirm-done-modal .preclose-summary-kv-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body.theme-material #confirm-done-modal .preclose-summary-kv-label {
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

body.theme-material #confirm-done-modal .preclose-summary-kv-value {
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

body.theme-material #confirm-done-modal .preclose-summary-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
}

body.theme-material #confirm-done-modal .preclose-summary-photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe3ee;
  background: #f1f5f9;
  display: block;
}

body.theme-material #confirm-done-modal #preclose-summary-row-addr .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-category .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-phone .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-network .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-request-cost .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='40' y='48' width='176' height='160' rx='10' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='96' x2='176' y2='96' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='132' x2='176' y2='132' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='168' x2='132' y2='168' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='40' y='48' width='176' height='160' rx='10' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='96' x2='176' y2='96' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='132' x2='176' y2='132' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='168' x2='132' y2='168' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-cable .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,224a24,24,0,1,1,24-24A24,24,0,0,1,200,224Zm0-32a8,8,0,1,0,8,8A8,8,0,0,0,200,192ZM176,112H72a40,40,0,0,0,0,80h96a8,8,0,0,1,0,16H72a56,56,0,0,1,0-112H176a24,24,0,0,0,0-48H72a8,8,0,0,1,0-16H176a40,40,0,0,1,0,80Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,224a24,24,0,1,1,24-24A24,24,0,0,1,200,224Zm0-32a8,8,0,1,0,8,8A8,8,0,0,0,200,192ZM176,112H72a40,40,0,0,0,0,80h96a8,8,0,0,1,0,16H72a56,56,0,0,1,0-112H176a24,24,0,0,0,0-48H72a8,8,0,0,1,0-16H176a40,40,0,0,1,0,80Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-comment .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-router .preclose-summary-label::before,
body.theme-material #confirm-done-modal #preclose-summary-row-switch .preclose-summary-label::before,
body.theme-material #confirm-done-modal #preclose-summary-row-module .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,72H32A16,16,0,0,0,16,88v80a16,16,0,0,0,16,16h48v24H64a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24H96V184h64v24H144a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24H176V184h48a16,16,0,0,0,16-16V88A16,16,0,0,0,224,72Zm-8,88H40V96H216Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,72H32A16,16,0,0,0,16,88v80a16,16,0,0,0,16,16h48v24H64a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24H96V184h64v24H144a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24H176V184h48a16,16,0,0,0,16-16V88A16,16,0,0,0,224,72Zm-8,88H40V96H216Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-router .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='40' y='92' width='176' height='88' rx='16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='18'/%3E%3Cpath d='M80 92V56M176 92V56' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='18'/%3E%3Ccircle cx='88' cy='136' r='10' fill='black'/%3E%3Ccircle cx='128' cy='136' r='10' fill='black'/%3E%3Ccircle cx='168' cy='136' r='10' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='40' y='92' width='176' height='88' rx='16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='18'/%3E%3Cpath d='M80 92V56M176 92V56' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='18'/%3E%3Ccircle cx='88' cy='136' r='10' fill='black'/%3E%3Ccircle cx='128' cy='136' r='10' fill='black'/%3E%3Ccircle cx='168' cy='136' r='10' fill='black'/%3E%3C/svg%3E");
}

body.theme-material.dark-theme #confirm-done-modal .preclose-summary-card.preclose-summary-group {
  border-color: rgba(71, 85, 105, 0.85);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-summary-row {
  border-bottom-color: rgba(71, 85, 105, 0.6);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-summary-label,
body.theme-material.dark-theme #confirm-done-modal .preclose-summary-kv-label {
  color: var(--color-text-secondary);
}

body.theme-material.dark-theme #confirm-done-modal .preclose-summary-value,
body.theme-material.dark-theme #confirm-done-modal .preclose-summary-kv-value {
  color: var(--color-text-primary);
}

body.theme-material #confirm-done-modal .confirm-done-summary {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

body.theme-material #confirm-done-modal .confirm-done-summary-grid {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

body.theme-material #confirm-done-modal .confirm-done-summary-grid .k {
  color: #64748b;
}

@media (max-width: 760px) {
  .preclose-summary-card {
    padding: 12px;
  }

  .preclose-summary-table-card {
    padding: 0;
  }

  .preclose-summary-table {
    padding: 0 10px;
  }

  .preclose-summary-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
    padding: 8px 0;
    align-items: start;
  }

  .preclose-summary-table-label {
    font-size: 14px;
  }

  .preclose-summary-table-value {
    font-size: 14px;
  }

  .preclose-subscriber-list {
    gap: 8px;
  }

  .preclose-subscriber-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .preclose-subscriber-label {
    font-size: 15px;
  }

  .preclose-subscriber-value {
    font-size: 14px;
  }

  .preclose-summary-top-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .preclose-summary-item-head {
    font-size: 15px;
  }

  .preclose-summary-item-value {
    font-size: 16px;
  }

  .preclose-summary-comment-value {
    font-size: 15px;
  }

  .preclose-summary-divider {
    margin: 10px 0 12px;
  }

  .preclose-summary-expenses-head {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 15px;
  }

  .preclose-summary-expenses-body {
    padding: 4px 12px;
  }

  .preclose-summary-expense-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px 0;
  }

  .preclose-summary-expense-value {
    justify-content: flex-start;
  }

  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px 12px;
  }

  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap .modal-input {
    width: 104px;
    justify-self: end;
  }

  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-row {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 58%);
    gap: 10px 12px;
  }

  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .preclose-work-row .modal-label {
      transform: none;
    }
  }

/* Reopen modal should match the updated simple close modal */
body.theme-material #confirm-reopen-modal .modal-card {
  max-width: 520px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-card {
  width: min(92vw, 430px);
  max-width: min(92vw, 430px);
  max-height: min(86vh, 720px);
  overflow: hidden;
}

body.theme-material #confirm-reopen-modal .modal-card-header {
  padding: 14px 24px;
  background: #fafbfc;
}

body.theme-material #confirm-reopen-modal #confirm-reopen-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

body.theme-material #confirm-reopen-modal .modal-card-body {
  min-height: 208px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-card-body {
  min-height: 0;
  overflow: hidden;
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_done"] .modal-card-body {
  gap: 0;
}

body.theme-material #confirm-reopen-modal .modal-confirm-text {
  margin: auto 0;
  width: 100%;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-secondary);
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-confirm-text {
  margin: 12px 0 0;
  flex: 0 0 auto;
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_done"] .modal-confirm-text {
  margin: auto 0;
  flex: 0 0 auto;
}

body.theme-material #confirm-reopen-modal .modal-confirm-text strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

body.theme-material #confirm-reopen-modal .modal-restore-category-wrap {
  margin: 12px 0 0;
}

body.theme-material #confirm-reopen-modal .restore-category-modal-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  margin: 10px 0 0;
}

body.theme-material #confirm-reopen-modal .restore-category-modal-list {
  min-height: 0;
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  margin-right: 0;
  padding-top: 8px;
  padding-right: 0;
}

body.theme-material #confirm-reopen-modal .modal-restore-category-select[hidden] {
  display: none !important;
}

body.theme-material #confirm-reopen-modal .modal-restore-category-label {
  display: block;
  margin-bottom: 6px;
}

body.theme-material #confirm-reopen-modal .modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 16.8px -24px 0;
  padding: 16.8px 24px 18px;
  border-top: 0.8px solid #e2e8f0;
  background: #fafbfc;
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-form-actions {
  flex: 0 0 auto;
  margin-top: 16.8px;
}

body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_done"] .modal-form-actions {
  margin-top: 0;
}

body.theme-material #confirm-reopen-modal .modal-form-actions .modal-btn {
  min-width: 0;
  height: 37.6px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-family: var(--font-family-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.theme-material #confirm-reopen-modal .modal-form-actions #confirm-reopen-cancel {
  width: 95.825px;
  border: 0.8px solid #e2e8f0 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

body.theme-material #confirm-reopen-modal .modal-form-actions #confirm-reopen-cancel:hover {
  border-color: #d6e0ef !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

body.theme-material #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok {
  width: 170px;
  border: none !important;
  background: #3b82f6 !important;
  color: #ffffff !important;
}

body.theme-material #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:hover {
  background: #2563eb !important;
  border: none !important;
  color: #ffffff !important;
}

body.theme-material #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:disabled,
body.theme-material #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:disabled:hover {
  background: #cbd5e1 !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-card-header,
body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions {
  background: #111827;
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions {
  border-top-color: var(--color-border-strong);
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-cancel {
  border: 0.8px solid #334155 !important;
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-cancel:hover {
  border-color: #475569 !important;
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok,
body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:disabled,
body.theme-material.dark-theme #confirm-reopen-modal .modal-form-actions #confirm-reopen-ok:disabled:hover {
  background: #334155 !important;
  border-color: #334155 !important;
  color: #64748b !important;
}

@media (max-width: 900px) {
  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] {
    align-items: center;
    padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-card {
    width: min(94vw, 420px);
    max-width: min(94vw, 420px);
    height: min(76vh, 680px);
    max-height: min(76vh, 680px);
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-card-body {
    padding: 0 18px;
    min-height: 0;
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-confirm-text {
    margin-top: 12px;
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .restore-category-modal-list {
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 12px;
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .restore-category-modal-list .move-category-modal-option {
    width: 100%;
    box-sizing: border-box;
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-form-actions {
    gap: 10px;
    margin: 0 -18px;
    padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-form-actions #confirm-reopen-cancel,
  body.theme-material #confirm-reopen-modal[data-reopen-mode="restore_deleted"] .modal-form-actions #confirm-reopen-ok {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

body.theme-material #confirm-done-modal #preclose-summary-row-addr .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Ccircle cx='128' cy='104' r='32' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M208,104c0,72-80,128-80,128S48,176,48,104a80,80,0,0,1,160,0Z' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Ccircle cx='128' cy='104' r='32' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M208,104c0,72-80,128-80,128S48,176,48,104a80,80,0,0,1,160,0Z' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-category .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-phone .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M164.39,145.34a8,8,0,0,1,7.59-.69l47.16,21.13a8,8,0,0,1,4.8,8.3A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59Z' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M164.39,145.34a8,8,0,0,1,7.59-.69l47.16,21.13a8,8,0,0,1,4.8,8.3A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59Z' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-network .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cg transform='rotate(90 128 128)'%3E%3Cpath d='M64,88v24a16,16,0,0,0,16,16h96a16,16,0,0,0,16-16V88' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cline x1='128' y1='128' x2='128' y2='168' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Ccircle cx='64' cy='64' r='24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Ccircle cx='128' cy='192' r='24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Ccircle cx='192' cy='64' r='24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cg transform='rotate(90 128 128)'%3E%3Cpath d='M64,88v24a16,16,0,0,0,16,16h96a16,16,0,0,0,16-16V88' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cline x1='128' y1='128' x2='128' y2='168' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Ccircle cx='64' cy='64' r='24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Ccircle cx='128' cy='192' r='24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Ccircle cx='192' cy='64' r='24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/g%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-request-cost .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='40' y='48' width='176' height='160' rx='10' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='96' x2='176' y2='96' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='132' x2='176' y2='132' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='168' x2='132' y2='168' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect x='40' y='48' width='176' height='160' rx='10' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='96' x2='176' y2='96' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='132' x2='176' y2='132' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3Cline x1='80' y1='168' x2='132' y2='168' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='20'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-cable .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M88,40,46.63,81.37a22.62,22.62,0,0,0,0,32h0a22.62,22.62,0,0,0,32,0l66.74-66.74a22.62,22.62,0,0,1,32,0h0a22.62,22.62,0,0,1,0,32L78.63,177.37a22.62,22.62,0,0,0,0,32h0a22.62,22.62,0,0,0,32,0l66.74-66.74a22.62,22.62,0,0,1,32,0h0a22.62,22.62,0,0,1,0,32L200,184a22.62,22.62,0,0,0,0,32h0' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M88,40,46.63,81.37a22.62,22.62,0,0,0,0,32h0a22.62,22.62,0,0,0,32,0l66.74-66.74a22.62,22.62,0,0,1,32,0h0a22.62,22.62,0,0,1,0,32L78.63,177.37a22.62,22.62,0,0,0,0,32h0a22.62,22.62,0,0,0,32,0l66.74-66.74a22.62,22.62,0,0,1,32,0h0a22.62,22.62,0,0,1,0,32L200,184a22.62,22.62,0,0,0,0,32h0' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-camera .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cline x1='244' y1='144' x2='244' y2='192' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cline x1='192' y1='44.69' x2='60.69' y2='176' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M165.66,141.66l24,24a8,8,0,0,0,5.65,2.34H244' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M15,158.93A10,10,0,0,0,22,176H60.69l29.65,29.66a8,8,0,0,0,11.32,0l120-120a8,8,0,0,0,0-11.32l-56-56a8,8,0,0,0-11.32,0Z' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cline x1='244' y1='144' x2='244' y2='192' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cline x1='192' y1='44.69' x2='60.69' y2='176' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M165.66,141.66l24,24a8,8,0,0,0,5.65,2.34H244' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M15,158.93A10,10,0,0,0,22,176H60.69l29.65,29.66a8,8,0,0,0,11.32,0l120-120a8,8,0,0,0,0-11.32l-56-56a8,8,0,0,0-11.32,0Z' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

body.theme-material #confirm-done-modal #preclose-summary-row-photos .preclose-summary-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Ccircle cx='176' cy='88' r='16' fill='black'/%3E%3Crect x='72' y='48' width='152' height='120' rx='8' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M192,168v32a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8H72' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M72,156.69l46.34-46.35a8,8,0,0,1,11.32,0L187.31,168' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Ccircle cx='176' cy='88' r='16' fill='black'/%3E%3Crect x='72' y='48' width='152' height='120' rx='8' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M192,168v32a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8H72' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3Cpath d='M72,156.69l46.34-46.35a8,8,0,0,1,11.32,0L187.31,168' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
}

@media (min-width: 761px) {
  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap {
    grid-template-columns: minmax(132px, 1fr) minmax(114px, 148px) minmax(132px, 1fr) minmax(114px, 148px);
    gap: 14px 18px;
    align-items: center;
  }

  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"] .confirm-done-cables-wrap .modal-input {
    max-width: 148px;
  }

}

@media (max-width: 760px) {
  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="2"],
  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="3"],
  body.theme-material #confirm-done-modal .confirm-done-step-panel[data-step-panel="4"] {
    padding: 0 4px;
  }

  body.theme-material #confirm-done-modal .preclose-work-final-panel,
  body.theme-material #confirm-done-modal .preclose-summary-card.preclose-summary-group {
    padding-left: 0;
    padding-right: 0;
  }

  body.theme-material #confirm-done-modal .preclose-report-section-head {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
  }

  body.theme-material #confirm-done-modal .preclose-report-section-head .final-address-title {
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.025em;
  }

  body.theme-material #confirm-done-modal .preclose-report-section-head .final-address-title-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  body.theme-material #confirm-done-modal .preclose-equipment-section .final-address-title-icon svg {
    transform: scale(1.18);
    transform-origin: center;
  }

  body.theme-material #confirm-done-modal .preclose-report-section-head .preclose-report-add-btn,
  body.theme-material #confirm-done-modal .preclose-report-section-head .preclose-material-add-btn.preclose-material-add-btn-inline {
    max-width: none;
    white-space: nowrap !important;
    text-align: right;
    gap: 4px !important;
    font-size: 13px !important;
  }

  body.theme-material #confirm-done-modal .preclose-media-menu {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
    padding: 8px;
  }

  body.theme-material #confirm-done-modal .preclose-media-menu-item {
    min-height: 46px;
    font-size: 14px;
  }

  body.theme-material #confirm-done-modal .preclose-report-add-btn .preclose-report-action-icon,
  body.theme-material #confirm-done-modal .preclose-material-add-btn.preclose-material-add-btn-inline .preclose-photo-add-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-head,
  body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-row {
    gap: 8px;
    padding: 9px 10px;
  }

  body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-head,
  body.theme-material #confirm-done-modal .preclose-report-table .panel-materials-table-row {
    grid-template-columns: minmax(0, 1fr) 56px 64px 18px;
  }

  body.theme-material #confirm-done-modal .preclose-report-equipment-table .panel-materials-table-head,
  body.theme-material #confirm-done-modal .preclose-report-equipment-table .panel-materials-table-row {
    grid-template-columns: 94px minmax(0, 1fr) 44px 18px;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  body.theme-material #confirm-done-modal .preclose-report-row-delete {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }

  body.theme-material #confirm-done-modal .preclose-report-row-delete > svg {
    width: 13px;
    height: 13px;
  }

  body.theme-material #confirm-done-modal .preclose-report-empty {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 84px;
    padding: 16px 18px;
    gap: 8px 12px;
  }

  body.theme-material #confirm-done-modal .preclose-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 82px;
    min-height: 184px;
  }

  body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="1"] .preclose-photo-tile,
  body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="2"] .preclose-photo-tile {
    grid-column: span 2;
    grid-row: span 3;
  }

  body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="3"] .preclose-photo-tile:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
  }

  body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="4"] .preclose-photo-tile,
  body.theme-material #confirm-done-modal .preclose-photo-grid[data-count="5"] .preclose-photo-tile:nth-child(n) {
    grid-column: span 2;
    grid-row: span 1;
  }

  body.theme-material #confirm-done-modal .confirm-done-progress {
    width: calc(100% - 28px);
    margin: 8px 14px 0;
  }
}

/* Task editor report modals use the app-modal contract, not legacy preclose shell rules. */
body.theme-material :is(
  #task-request-cost-modal,
  #task-cable-modal,
  #task-material-modal
) .task-report-modal-card.app-modal-card {
  width: min(430px, calc(100vw - 24px));
  max-width: min(430px, calc(100vw - 24px));
  border: 1px solid var(--app-modal-border) !important;
  border-radius: 10px !important;
  background: var(--app-modal-body-bg) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
  overflow: hidden;
}

body.theme-material #task-request-cost-modal .task-report-modal-card.app-modal-card {
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
}

body.theme-material :is(#task-material-modal, #task-cable-modal) .task-report-modal-fields.modal-field-section {
  gap: 14px;
  margin: 0;
}

body.theme-material :is(#task-material-modal, #task-cable-modal) .modal-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-material :is(#task-material-modal, #task-cable-modal) .modal-field-group .modal-field-label {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.theme-material :is(#task-material-modal, #task-cable-modal) .modal-field-group .modal-input {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: var(--color-bg-surface);
  color: var(--color-text-main);
  font-size: 14px;
  line-height: 20px;
  box-shadow: none;
}

body.theme-material :is(#task-material-modal, #task-cable-modal) .modal-field-group .modal-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
  outline: none;
}

body.theme-material :is(#task-material-modal, #task-cable-modal) select.modal-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

/* Visible idle controls for task report add-cable/add-material modals. */
body.theme-material :is(#task-material-modal, #task-cable-modal) .modal-field-group .modal-input,
body.theme-material :is(#task-material-modal, #task-cable-modal) .modal-field-section .modal-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d9e2f1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.theme-material :is(#task-material-modal, #task-cable-modal) select.modal-input {
  background-color: #ffffff !important;
}

body.theme-material.dark-theme :is(#task-material-modal, #task-cable-modal) .modal-field-group .modal-input,
body.theme-material.dark-theme :is(#task-material-modal, #task-cable-modal) .modal-field-section .modal-input,
body.dark-theme :is(#task-material-modal, #task-cable-modal) .modal-field-group .modal-input,
body.dark-theme :is(#task-material-modal, #task-cable-modal) .modal-field-section .modal-input {
  border-color: #334155 !important;
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

body.theme-material.dark-theme :is(#task-material-modal, #task-cable-modal) select.modal-input,
body.dark-theme :is(#task-material-modal, #task-cable-modal) select.modal-input {
  background-color: #0f172a !important;
}

body.theme-material #task-request-cost-modal .task-request-cost-option,
body.theme-material #preclose-request-cost-modal .task-request-cost-option {
  grid-template-columns: 24px minmax(0, 1fr) minmax(64px, auto);
}

body.theme-material #task-request-cost-modal .filters-list-picker-checkbox-wrap,
body.theme-material #preclose-request-cost-modal .filters-list-picker-checkbox-wrap {
  align-self: center;
}

body.theme-material #task-request-cost-modal .filters-list-picker-checkbox-native,
body.theme-material #preclose-request-cost-modal .filters-list-picker-checkbox-native {
  position: absolute !important;
  inset: 0 !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-option {
  grid-template-columns: 24px minmax(0, 1fr) minmax(132px, 144px);
  min-height: 56px;
  padding: 8px 12px;
  border-color: #d9e2ef;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-option.is-selected {
  border-color: #93c5fd;
  background: #f5f9ff;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-options {
  gap: 8px;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-amount-wrap {
  display: grid;
  grid-template-columns: auto minmax(76px, 1fr);
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-amount-wrap[hidden] {
  display: none;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-amount {
  position: static !important;
  width: 100% !important;
  height: 40px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 9px !important;
  border: 1px solid #b9c9df !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0f172a !important;
  font: inherit !important;
  text-align: right;
  accent-color: auto !important;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-amount:disabled {
  background: #f8fafc !important;
  color: #94a3b8 !important;
}

body.theme-material #preclose-request-cost-modal .task-request-cost-amount:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-color: #2563eb !important;
}

@media (max-width: 560px) {
  body.theme-material #preclose-request-cost-modal .task-request-cost-option {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 52px;
  }

  body.theme-material #preclose-request-cost-modal .task-request-cost-amount-wrap {
    grid-column: 2;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 2px 0 2px;
  }

  body.theme-material #preclose-request-cost-modal .task-request-cost-amount {
    text-align: left;
  }
}

body.theme-material.dark-theme #preclose-request-cost-modal .task-request-cost-option,
body.dark-theme #preclose-request-cost-modal .task-request-cost-option {
  border-color: #334155;
  background: #111827;
}

body.theme-material.dark-theme #preclose-request-cost-modal .task-request-cost-option.is-selected,
body.dark-theme #preclose-request-cost-modal .task-request-cost-option.is-selected {
  border-color: #3b82f6;
  background: #172554;
}

body.theme-material.dark-theme #preclose-request-cost-modal .task-request-cost-amount,
body.dark-theme #preclose-request-cost-modal .task-request-cost-amount {
  border-color: #475569 !important;
  background: #0f172a !important;
  color: #e2e8f0 !important;
}

body.theme-material :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) .custom-select-root {
  position: relative;
  width: 100%;
}

body.theme-material :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) select.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.theme-material :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) .custom-select-trigger {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 11px 48px 11px 14px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

body.theme-material :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) .custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  opacity: 0.75;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,96l-80,80L48,96'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,96l-80,80L48,96'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.theme-material :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) .custom-select-root.is-open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

body.theme-material.dark-theme :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) .custom-select-trigger,
body.dark-theme :is(
  #task-material-modal,
  #task-cable-modal,
  #preclose-material-modal,
  #preclose-cable-modal
) .custom-select-trigger {
  border-color: #334155;
  background: #0f172a;
  color: #f1f5f9;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report {
  position: fixed !important;
  z-index: 6100 !important;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar {
  width: 8px;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 8px;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid #f8fafc;
  border-radius: 8px;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report.is-open {
  display: block !important;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0f172a;
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option:hover {
  background: #f1f5f9;
}

body.theme-material .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option.is-selected {
  background: #eaf2ff;
  color: #2563eb;
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report {
  border-color: #334155;
  background: #0f172a;
  scrollbar-color: #475569 #1e293b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-track,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-track {
  background: #1e293b;
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-thumb,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-thumb {
  background: #475569;
  border-color: #1e293b;
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-thumb:hover,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option {
  color: #f1f5f9;
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option:hover,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option:hover {
  background: #1e293b;
}

body.theme-material.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option.is-selected,
body.dark-theme .custom-select-menu.custom-select-menu-portal.custom-select-task-report .custom-select-option.is-selected {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}
