.shot-table-page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 14px 10px;
  overflow: hidden;
  background: var(--app-bg, #090d16);
}
.shot-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.shot-table-toolbar-group,
.shot-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.shot-table-actions {
  margin-left: auto;
  justify-content: flex-end;
}
.shot-table-toolbar select,
.shot-table-toolbar input {
  min-width: 150px;
  min-height: 31px;
  padding: 5px 9px;
  color: var(--text, #e2e8f0);
  background: var(--surface-2, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 5px;
  font-size: 12px;
}
.shot-table-summary { display:flex; align-items:center; gap:4px; }.shot-table-summary span { display:inline-flex; align-items:center; gap:4px; min-height:29px; padding:3px 7px; color:#cbd5e1; background:#101a2b; border:1px solid #334155; border-radius:5px; font-variant-numeric:tabular-nums; }.shot-table-summary b { color:#38bdf8; font-size:14px; }.shot-table-summary small { color:#94a3b8; font-size:10px; }.shot-table-summary strong { color:#e2e8f0; font-size:12px; }.shot-table-summary .progress b,.shot-table-summary .progress strong { color:#34d399; }.shot-table-summary i { display:block; width:28px; height:3px; overflow:hidden; background:#1e293b; border-radius:999px; }.shot-table-summary em { display:block; height:100%; background:#34d399; border-radius:inherit; }
.shot-table-toolbar input {
  min-width: 180px;
}
.shot-table-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
}
.shot-table-tabs button,
.shot-table-actions > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 7px;
  font-size: 12px;
}
.shot-table-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted-text, #cbd5e1);
}
.shot-table-tabs button.active {
  color: #ecfeff;
  background: #0e7490;
}
.shot-table-notice {
  min-height: 17px;
  color: #37d8cf;
  font-size: 12px;
  text-align: right;
}
.shot-table-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  background: var(--grid-bg, #101a2b);
}
.shot-table-initial-empty { display:grid; place-content:center; gap:6px; min-height:180px; padding:24px; color:var(--muted-text, #94a3b8); text-align:center; }
.shot-table-initial-empty strong { color:var(--text, #e2e8f0); font-size:13px; }
.shot-table-initial-empty span { font-size:12px; }
.shot-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.shot-table-wrap::-webkit-scrollbar-track {
  background: var(--grid-bg, #101a2b);
}
.shot-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border, #334155);
  border: 1px solid var(--grid-bg, #101a2b);
  border-radius: 5px;
}
.shot-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text, #e2e8f0);
  font-size: 12px;
  text-align: center;
}
.shot-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
.shot-table th {
  position: relative;
  height: 40px;
  padding: 0 10px;
  color: var(--muted-text, #cbd5e1);
  background: var(--grid-head, #142237);
  border-right: 1px solid var(--border, #334155);
  border-bottom: 1px solid var(--border, #334155);
  font-weight: 700;
  white-space: nowrap;
}
.shot-table td {
  height: 36px;
  padding: 0 10px;
  border-right: 1px solid var(--border, #334155);
  border-bottom: 1px solid var(--border, #334155);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-table tbody tr:nth-child(odd) {
  background: var(--grid-bg, #101a2b);
}
.shot-table tbody tr:nth-child(even) {
  background: #0d1728;
}
.shot-table tbody tr:hover {
  background: #16243a;
}
.shot-table tbody tr.selected {
  background: rgba(8, 145, 178, 0.25);
}
.shot-table th:last-child,
.shot-table td:last-child {
  border-right: 0;
}
.shot-table-check {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  position: sticky !important;
  left: 0 !important;
  z-index: 15 !important;
  background-color: var(--surface-2, #1e2430) !important;
}
th.shot-table-check {
  z-index: 25 !important;
  background-color: var(--grid-head, #1a202c) !important;
}

.shot-table-number {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  color: var(--muted-text, #cbd5e1);
  font-variant-numeric: tabular-nums;
  cursor: default;
  user-select: none;
  position: sticky !important;
  left: 42px !important;
  z-index: 15 !important;
  background-color: var(--surface-2, #1e2430) !important;
  border-right: 2px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 3px 0 6px -2px rgba(0, 0, 0, 0.45) !important;
}
th.shot-table-number {
  z-index: 25 !important;
  background-color: var(--grid-head, #1a202c) !important;
}

tr:hover td.shot-table-check,
tr:hover td.shot-table-number {
  background-color: var(--surface-hover, #283347) !important;
}

tr.selected td.shot-table-check,
tr.selected td.shot-table-number {
  background-color: rgba(2, 132, 199, 0.25) !important;
}

/* Light Theme Sticky Columns */
:root[data-theme="light"] .shot-table-check,
:root[data-theme="light"] .shot-table-number {
  background-color: #ffffff !important;
  color: #172033 !important;
}
:root[data-theme="light"] th.shot-table-check,
:root[data-theme="light"] th.shot-table-number {
  background-color: #e8f1f7 !important;
  color: #334155 !important;
}
:root[data-theme="light"] tr:hover td.shot-table-check,
:root[data-theme="light"] tr:hover td.shot-table-number {
  background-color: #f0f9ff !important;
}
:root[data-theme="light"] tr.selected td.shot-table-check,
:root[data-theme="light"] tr.selected td.shot-table-number {
  background-color: #dbeafe !important;
}
:root[data-theme="light"] .shot-table tbody tr:hover {
  background: #f0f9ff;
}
.shot-table-empty {
  height: 180px;
  color: var(--muted-text, #cbd5e1);
}
.shot-table-header-name {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-table-header-content {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 3px;
}
.shot-table-header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.shot-table th input:not([type="checkbox"]) {
  width: calc(100% - 8px);
  min-height: 26px;
  padding: 3px 5px;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  text-align: center;
}
.shot-table th input[type="checkbox"],
.shot-table td input[type="checkbox"] {
  display: inline-block;
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  vertical-align: middle;
  cursor: pointer;
  accent-color: #0284c7;
}
.shot-table-filter-button {
  padding: 0;
  color: #7dd3fc;
  background: transparent;
  border: 0;
  line-height: 1;
  cursor: pointer;
}
.shot-table-filter-button svg {
  display: block;
  width: 14px;
  height: 14px;
}
.shot-table-rename-button { padding:0; color:#7dd3fc; background:transparent; border:0; font-size:13px; cursor:pointer; }
.shot-table-filter-button.active {
  background: #f59e0b;
  color: #0f172a;
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}
.shot-table-filter-input {
  width: calc(100% - 22px) !important;
}
.shot-table-filter-popover { position:absolute; top:calc(100% + 2px); right:0; z-index:20; display:grid; grid-template-rows:auto minmax(0, auto) auto; max-height:220px; min-width:150px; padding:6px; overflow:hidden; color:#e2e8f0; background:#101a2b; border:1px solid #38bdf8; border-radius:6px; box-shadow:0 10px 24px rgba(0,0,0,.42); text-align:left; font-size:12px; }
.shot-table .shot-table-filter-popover input[type="checkbox"] { box-sizing:border-box !important; flex:0 0 14px !important; width:14px !important; min-width:14px !important; max-width:14px !important; height:14px !important; min-height:14px !important; max-height:14px !important; margin:0 8px 0 0 !important; padding:0 !important; cursor:pointer; accent-color:#38bdf8; }
.shot-table-filter-all { display:flex !important; align-items:center !important; justify-content:flex-start !important; min-height:24px; padding:3px 6px 6px; border-bottom:1px solid #334155; font-weight:700; cursor:pointer; text-align:left !important; }
.shot-table-filter-options { display:grid; min-height:0; max-height:148px; overflow-y:auto; overflow-x:hidden; padding:4px 1px; scrollbar-color:var(--border, #334155) var(--grid-bg, #101a2b); scrollbar-width:thin; }
.shot-table-filter-options::-webkit-scrollbar { width:6px; }
.shot-table-filter-options::-webkit-scrollbar-track { background:var(--grid-bg, #101a2b); }
.shot-table-filter-options::-webkit-scrollbar-thumb { background:var(--border, #334155); border-radius:3px; }
.shot-table-filter-options label { display:flex !important; align-items:center !important; justify-content:flex-start !important; width:100% !important; min-height:22px; padding:2px 6px; border-radius:4px; font-weight:500; white-space:nowrap; cursor:pointer; text-align:left !important; transition:background-color 0.12s ease; }
.shot-table-filter-options label:hover { background:rgba(56, 189, 248, 0.12); }
.shot-table-filter-popover-footer { display:flex; justify-content:space-between; align-items:center; gap:6px; padding-top:5px; border-top:1px solid #334155; }
.shot-table .shot-table-filter-popover button { flex:1; min-height:22px; padding:2px 6px; color:#cbd5e1; background:#1e293b; border:1px solid #475569; border-radius:4px; font-size:11px; line-height:16px; cursor:pointer; }
.shot-table .shot-table-filter-popover button:hover { background:#334155; color:#fff; }
.shot-table-value,
.shot-table-editable {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  color: var(--text, #e2e8f0);
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.shot-table-value.align-left,
.shot-table-editable.align-left {
  text-align: left !important;
}
.shot-table-value.align-center,
.shot-table-editable.align-center {
  text-align: center !important;
}
.shot-table td.cell-align-left {
  text-align: left;
}
.shot-table td.cell-align-center {
  text-align: center;
}
.shot-table-input.align-left {
  text-align: left !important;
}
.shot-table-input.align-center {
  text-align: center !important;
}
.shot-table-editable {
  min-height: 24px !important;
  height: 100% !important;
  line-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  outline: none !important;
}
.shot-table-editable:hover {
  background: rgba(51, 65, 85, 0.45) !important;
  border-radius: 4px !important;
}
.shot-table-code {
  text-align: center;
}
.shot-code-link {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  color: #67e8f9;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.shot-code-link:hover {
  text-decoration: underline;
}
.shot-table-input {
  display: block;
  width: 100%;
  min-width: 0;
}
.shot-table-input > input,
input.shot-table-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 27px;
  padding: 3px 5px;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  text-align: center;
}
.shot-table-pill,
.shot-table-pill-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
.shot-table-pill-select {
  appearance: auto;
  cursor: pointer;
}
.shot-table-pill.slate,
.shot-table-pill-select.slate,
.shot-table-pill.neutral,
.shot-table-pill-select.neutral {
  color: #ffffff;
  background: #334155;
  border-color: #475569;
}
.shot-table-pill.blue,
.shot-table-pill-select.blue {
  color: #ffffff;
  background: #0077ff;
  border-color: #38bdf8;
}
.shot-table-pill.indigo,
.shot-table-pill-select.indigo {
  color: #ffffff;
  background: #7c3aed;
  border-color: #a78bfa;
}
.shot-table-pill.amber,
.shot-table-pill-select.amber {
  color: #000000;
  background: #f5a623;
  border-color: #fbbf24;
  font-weight: 800;
}
.shot-table-pill.orange,
.shot-table-pill-select.orange {
  color: #ffffff;
  background: #f9690e;
  border-color: #fb923c;
}
.shot-table-pill.green,
.shot-table-pill-select.green {
  color: #ffffff;
  background: #16a34a;
  border-color: #4ade80;
}
.shot-table-pill.red,
.shot-table-pill-select.red {
  color: #ffffff;
  background: #dc2626;
  border-color: #f87171;
}
.shot-table-pill.purple,
.shot-table-pill-select.purple {
  color: #ffffff;
  background: #7c3aed;
  border-color: #a78bfa;
}
.shot-table-select-wrap {
  position: relative;
  display: inline-flex;
  z-index: 5;
}
.shot-table-select-cell {
  position: relative;
  overflow: visible !important;
  z-index: 2;
}
.shot-table-select-cell:focus-within {
  z-index: 6;
}
.shot-table-pill-button {
  cursor: pointer;
}
.shot-status-secondary > .shot-table-select-wrap > .shot-table-pill,
.shot-status-secondary > .shot-table-pill {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  color: var(--text, #e2e8f0);
  box-shadow: none;
  filter: none;
}
.shot-table-pill.transparent-combo,
.shot-table-pill-button.transparent-combo {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--text, #e2e8f0);
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.shot-table-pill-button.transparent-combo:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff;
}
.shot-table-pill.shot-status-locked {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  color: var(--muted-text, #cbd5e1);
  box-shadow: none;
  filter: none;
  gap: 4px;
}
.shot-status-locked > svg { flex: 0 0 10px; }
.shot-table-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 130px;
  gap: 6px;
  padding: 8px 6px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}
.shot-table-select-menu.dropup {
  top: auto;
  bottom: calc(100% + 4px);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.6);
}
.shot-table-select-option {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}
.shot-table-select-option:hover,
.shot-table-select-option.selected {
  outline: none;
  filter: brightness(1.12);
  box-shadow: 0 0 0 2px #ffffff, 0 0 12px rgba(255, 255, 255, 0.4);
}

.shot-table-select-option:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: saturate(0.7);
  box-shadow: none;
}
.shot-table-select-option.slate,
.shot-table-select-option.neutral {
  color: #ffffff;
  background: #334155;
  border-color: #475569;
}
.shot-table-select-option.blue {
  color: #ffffff;
  background: #0077ff;
  border-color: #38bdf8;
}
.shot-table-select-option.indigo {
  color: #ffffff;
  background: #7c3aed;
  border-color: #a78bfa;
}
.shot-table-select-option.amber {
  color: #000000;
  background: #f5a623;
  border-color: #fbbf24;
  font-weight: 800;
}
.shot-table-select-option.orange {
  color: #ffffff;
  background: #f9690e;
  border-color: #fb923c;
}
.shot-table-select-option.green {
  color: #ffffff;
  background: #16a34a;
  border-color: #4ade80;
}
.shot-table-select-option.red {
  color: #ffffff;
  background: #dc2626;
  border-color: #f87171;
}
.shot-table-select-option.purple {
  color: #ffffff;
  background: #7c3aed;
  border-color: #a78bfa;
}
.shot-date-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.72);
}
.shot-date-modal {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 18px;
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.52);
}
.shot-date-modal h3,
.shot-date-modal p {
  margin: 0;
}
.shot-date-modal p {
  color: #94a3b8;
  font-size: 12px;
}
.shot-date-modal > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.shot-date-modal button {
  min-height: 30px;
  padding: 5px 10px;
}
.shot-date-modal button[type="submit"] {
  color: #ecfeff;
  background: #0e7490;
  border-color: #22d3ee;
}
@media (max-width: 1050px) {
  .shot-table-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   일괄 수정 모달 및 확인 팝업 (다크 기본)
   ========================================================================== */
.shot-table-selected-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
}

.shot-table-batch-active-btn {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 600;
}
.shot-table-batch-active-btn:hover {
  background: #0369a1 !important;
}

.batch-modal-overlay,
.batch-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(2px);
}

.batch-modal-card {
  width: 90%;
  max-width: 480px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
  overflow: hidden;
  animation: batchFadeIn 0.15s ease-out;
}

@keyframes batchFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.batch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.batch-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-modal-title-wrap h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.batch-selected-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.batch-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.batch-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.batch-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.batch-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
}

.batch-select,
.batch-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.batch-select:focus,
.batch-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.batch-date-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.batch-clear-btn {
  min-height: 36px;
  padding: 0 10px;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
}
.batch-clear-btn:hover {
  background: #475569;
  color: #f8fafc;
}

.batch-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 12px;
  color: #93c5fd;
  line-height: 1.4;
}

.batch-modal-error {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
}

.batch-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  background: #0f172a;
  border-top: 1px solid #334155;
}

.batch-btn {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.batch-btn-cancel {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}
.batch-btn-cancel:hover {
  background: #334155;
  color: #ffffff;
}

.batch-btn-primary {
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #ffffff;
}
.batch-btn-primary:hover:not(:disabled) {
  background: #0369a1;
}
.batch-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.batch-btn-danger {
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
}
.batch-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

/* 확인 단계 */
.batch-confirm-wrap {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.batch-confirm-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.batch-confirm-icon {
  font-size: 20px;
}
.batch-confirm-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.batch-confirm-desc {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.batch-confirm-summary-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
}

.batch-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.batch-confirm-label {
  color: #64748b;
}

.batch-confirm-value-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 700;
}

.batch-confirm-warning {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  line-height: 1.4;
}

/* ========================================================================== */
/* 🌟 3단 스마트 툴바 & 선택 바 & 알림 바 스타일 */
/* ========================================================================== */

.shot-table-project-select {
  height: 32px;
  padding: 0 10px;
  background: var(--surface, #1e2430);
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  color: var(--text, #f8fafc);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.shot-table-search-input {
  height: 32px;
  padding: 0 10px;
  background: var(--surface, #1e2430);
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  color: var(--text, #f8fafc);
  font-size: 12.5px;
  min-width: 160px;
  outline: none;
}

.shot-table-search-input:focus {
  border-color: #38bdf8;
}

/* 🌟 3줄: 상시 고정 선택 바 */
.shot-selection-smart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 4px 12px;
  margin-bottom: 8px;
  background: var(--surface, #1e2430);
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  box-sizing: border-box;
}

.shot-selection-empty-hint {
  font-size: 12px;
  color: var(--muted, #64748b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shot-selection-info-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text, #f8fafc);
}

.shot-selection-badge {
  color: #38bdf8;
  font-weight: 700;
}

.shot-selection-divider {
  color: var(--border, #475569);
}

.shot-selection-frames {
  color: var(--text, #cbd5e1);
}

.shot-selection-frames strong {
  color: #38bdf8;
  font-family: monospace;
  font-size: 13.5px;
}

.shot-selection-ratio {
  margin-left: 6px;
  color: var(--muted, #94a3b8);
  font-size: 11.5px;
}

.shot-selection-clear-btn {
  background: transparent;
  border: 1px solid var(--border, #334155);
  border-radius: 4px;
  color: var(--muted, #94a3b8);
  font-size: 11.5px;
  padding: 2px 8px;
  margin-left: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.shot-selection-clear-btn:hover {
  color: var(--text, #f8fafc);
  border-color: var(--muted, #94a3b8);
  background: rgba(255, 255, 255, 0.08);
}

.shot-selection-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-action-batch-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.shot-action-batch-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--surface, #1e2430) !important;
  border: 1px solid var(--border, #334155) !important;
  color: var(--muted, #64748b) !important;
}

.shot-action-edit.active {
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #ffffff;
}
.shot-action-edit.active:hover {
  background: #0369a1;
}

.shot-action-send.active {
  background: #16a34a;
  border: 1px solid #4ade80;
  color: #ffffff;
}
.shot-action-send.active:hover {
  background: #15803d;
}

.shot-action-delete.active {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
}
.shot-action-delete.active:hover {
  background: #dc2626;
  color: #ffffff;
}

/* 🌟 알림 바 */
.shot-table-notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  font-size: 12.5px;
  color: #38bdf8;
  animation: slideDownFade 0.2s ease-out;
}

/* 🌟 엑셀 버튼 (아이콘 + 텍스트) */
.shot-table-excel-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shot-table-excel-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.shot-table-excel-btn:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.shot-table-excel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.2);
  color: #64748b;
  background: transparent;
}

.shot-table-excel-btn svg {
  width: 15px;
  height: 15px;
}
.settlement-page{height:100%;overflow:auto;padding:14px;color:var(--text,#e2e8f0);background:var(--app-bg,#090d16);font-size:12px}.settlement-head,.settlement-filters,.settlement-actions,.rate-inputs,.settlement-tabs,.rate-tabs{display:flex;align-items:center;gap:8px}.settlement-head{justify-content:space-between}.settlement-head h1{margin:0;font-size:18px}.settlement-head p{margin:4px 0;color:var(--muted,#94a3b8)}.settlement-tabs button,.rate-tabs button{padding:6px 14px}.settlement-tabs .active,.rate-tabs .active{color:#fff;background:#0369a1;border-color:#0ea5e9}.settlement-filters{margin:12px 0;padding:10px;border:1px solid var(--border,#334155);border-radius:8px;background:var(--surface,#111827)}.settlement-filters label{display:grid;gap:4px}.settlement-filters label span{display:flex;align-items:center;gap:5px}.settlement-filters input,.settlement-filters select,.rate-inputs input,.rate-inputs select{min-height:30px;padding:4px 8px;color:var(--text,#e2e8f0);background:var(--surface-2,#0f172a);border:1px solid var(--border,#334155);border-radius:5px}.settlement-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.settlement-summary>div{display:grid;gap:10px;padding:13px;border:1px solid var(--border,#334155);border-radius:8px;background:var(--surface,#111827)}.settlement-summary span{color:var(--muted,#94a3b8)}.settlement-summary strong{display:grid;gap:3px;color:#38bdf8;font-size:16px}.settlement-summary strong small,.table-usd{display:block;color:#34d399;font-size:11px}.settlement-rate{margin-top:10px;padding:12px;border:1px solid var(--border,#334155);border-radius:8px;background:var(--surface,#111827)}.settlement-rate-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.settlement-rate h2{margin:0;font-size:14px}.rate-inputs{margin-top:10px}.settlement-fx-notice{margin:9px 0 0;color:#fbbf24;font-size:11px}.rate-inputs label{display:flex;align-items:center;gap:6px}.settlement-actions{justify-content:flex-end;margin:10px 0}.settlement-actions button:first-child{background:#047857;border-color:#10b981}.settlement-notice{padding:7px;color:#bae6fd;background:#0c4a6e;border-radius:5px}.settlement-table-wrap{overflow:auto;border:1px solid var(--border,#334155);border-radius:8px}.settlement-table-wrap table{width:100%;min-width:1420px;border-collapse:collapse}.settlement-table-wrap th,.settlement-table-wrap td{padding:7px 8px;text-align:center;border-right:1px solid var(--border,#334155);border-bottom:1px solid var(--border,#334155);white-space:nowrap}.settlement-table-wrap th{background:#172033;color:#94a3b8}.settlement-table-wrap td{background:var(--surface,#111827);color:#e2e8f0}.shot-code{color:#22d3ee;font-weight:700}.count-input{width:58px;padding:4px;color:inherit;text-align:center;background:#0f172a;border:1px solid #334155;border-radius:4px}.count-input.warning{border-color:#f59e0b;background:rgba(245,158,11,0.18);color:#fbbf24;font-weight:700;box-shadow:0 0 0 1px rgba(245,158,11,0.5)}.settlement-status{display:inline-block;padding:3px 9px;border:1px solid;border-radius:999px}.settlement-status.unsettled{color:#f59e0b}.settlement-status.completed{color:#10b981}.period-quick-btn{font-size:11px;padding:3px 8px;border-radius:4px;background:#1e293b;border:1px solid #334155;color:#94a3b8;cursor:pointer;white-space:nowrap;transition:all 0.15s}.period-quick-btn:hover{background:#334155;color:#f8fafc}.settlement-missing-alert{margin:10px 0;padding:12px 16px;background:rgba(245,158,11,0.1);border:1px solid rgba(245,158,11,0.45);border-radius:8px;color:#f59e0b}.settlement-missing-alert .alert-header{display:flex;align-items:center;gap:8px;font-size:13px}.settlement-missing-alert .alert-header strong{color:#fbbf24}.settlement-missing-alert .missing-shots-list{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(245,158,11,0.25);font-size:11.5px}.settlement-missing-alert .list-label{color:#cbd5e1;font-weight:600}.missing-shot-chip{display:inline-block;padding:2px 7px;background:#451a03;border:1px solid #b45309;color:#fef3c7;border-radius:4px;font-weight:600;font-family:monospace}.missing-more{color:#f59e0b;font-size:11px;font-style:italic}.settlement-revert-btn{background:#991b1b !important;border-color:#ef4444 !important;color:#fee2e2 !important}.settlement-revert-btn:hover:not(:disabled){background:#b91c1c !important}@media(max-width:1300px){.settlement-summary{grid-template-columns:repeat(3,1fr)}.settlement-filters{flex-wrap:wrap}}@media(max-width:700px){.settlement-summary{grid-template-columns:1fr}.settlement-head{align-items:flex-start;flex-direction:column}}




.quantity-page .quantity-actions {display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.quantity-page .payment-table .quantity-count {width:100%;min-width:65px;box-sizing:border-box;text-align:center;color:var(--text,#e2e8f0);background:var(--surface-2,#1e293b)}
.quantity-page input.warning {border:1px solid #f59e0b!important}
.quantity-page .payment-table td {text-align:center}

.quantity-page .settlement-filters label:has(input[type=checkbox]) {display:flex;flex-direction:row;align-items:center;gap:8px}
.quantity-page .settlement-filters input[type=checkbox] {width:16px;height:16px;min-height:0;margin:0;padding:0}
.quantity-page .payment-table .quantity-count {border:1px solid var(--border,#334155);border-radius:4px;padding:5px}
.quantity-page .payment-table input:disabled {opacity:.6}

.quantity-page .payment-table input[type=checkbox] {width:16px;height:16px;min-width:0;min-height:0;margin:0;padding:0;vertical-align:middle;accent-color:var(--accent,#38bdf8)}
.quantity-page .quantity-actions {align-items:center}
.quantity-page .quantity-selection-hint {font-size:12px;color:var(--text-muted,#94a3b8)}

.quantity-template {--quantity-action-bg:#0284c7;--quantity-action-hover:#0369a1;--quantity-action-border:#38bdf8}
.quantity-export {--quantity-action-bg:#047857;--quantity-action-hover:#065f46;--quantity-action-border:#10b981}
.quantity-upload {--quantity-action-bg:#0f766e;--quantity-action-hover:#115e59;--quantity-action-border:#14b8a6}
.quantity-save {--quantity-action-bg:#2563eb;--quantity-action-hover:#1d4ed8;--quantity-action-border:#3b82f6}
.quantity-lock {--quantity-action-bg:#6d28d9;--quantity-action-hover:#5b21b6;--quantity-action-border:#8b5cf6}
.quantity-unlock {--quantity-action-bg:#92400e;--quantity-action-hover:#78350f;--quantity-action-border:#d97706}
:root .quantity-page .quantity-actions .compact-btn.quantity-action {background:var(--quantity-action-bg)!important;border-color:var(--quantity-action-border)!important;color:#fff!important}
:root .quantity-page .quantity-actions .compact-btn.quantity-action:hover:not(:disabled) {background:var(--quantity-action-hover)!important;color:#fff!important}
.ledger-page {
  height: 100%;
  overflow: auto;
  padding: 14px 16px 38px;
  background: var(--bg, #07111f);
  color: var(--text, #e5edf8);
  font-size: 12px;
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ledger-head h1 {
  margin: 0;
  font-size: 19px;
}
.ledger-head p {
  margin: 4px 0 0;
  color: var(--text-muted, #8292aa);
}
.ledger-page button,
.ledger-file-button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  background: var(--surface-2, #172033);
  color: var(--text, #e5edf8);
  font-size: 12px;
  cursor: pointer;
}
.ledger-primary {
  background: #0284c7 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
.ledger-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid #0e7490;
  border-radius: 7px;
  background: #083344;
}
.ledger-notice button {
  min-height: 22px;
  border: 0;
  background: transparent;
}
.ledger-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 7px;
  border: 1px solid var(--border, #2b3a52);
  border-radius: 8px;
  background: var(--surface, #101d31);
}
.ledger-tabs button {
  border-color: transparent;
  background: transparent;
}
.ledger-tabs button.active {
  background: #155e75;
  color: #cffafe;
}
.ledger-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ledger-metric {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--border, #2b3a52);
  border-radius: 9px;
  background: var(--surface, #111e32);
}
.ledger-metric > span,
.ledger-metric small {
  display: block;
  color: var(--text-muted, #8292aa);
}
.ledger-metric strong {
  display: block;
  margin: 13px 0;
  font-size: 24px;
  color: #38bdf8;
}
.ledger-metric.warn strong {
  color: #f59e0b;
}
.ledger-dashboard-layout {
  display: block;
}
.ledger-dashboard-lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ledger-panel {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border, #2b3a52);
  border-radius: 9px;
  background: var(--surface, #111e32);
}
.ledger-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border, #2b3a52);
}
.ledger-panel h2 {
  margin: 0;
  font-size: 14px;
}
.ledger-panel > header > div {
  display: flex;
  gap: 6px;
}
.ledger-table-wrap {
  overflow: auto;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
}
.ledger-table th {
  padding: 9px 11px;
  background: var(--surface-2, #15243a);
  color: var(--text-muted, #91a3bd);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.ledger-table td {
  padding: 10px 11px;
  border-top: 1px solid var(--border, #25364f);
  text-align: center;
  white-space: nowrap;
}
.ledger-table td:first-child {
  text-align: left;
}
.ledger-recent-table td:first-child {
  text-align: center;
}
.ledger-recent-table td:nth-child(2) {
  text-align: left;
}
.ledger-th-check,
.ledger-td-check {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  padding: 8px 4px !important;
  text-align: center !important;
}
.ledger-td-title {
  text-align: left !important;
}
.ledger-td-date {
  text-align: center !important;
}
.ledger-table td small,
.ledger-link + small,
.ledger-table td > small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted, #8292aa);
}
.ledger-link {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #22d3ee !important;
  font-weight: 700;
}
.ledger-empty {
  padding: 32px !important;
  color: var(--text-muted, #8292aa) !important;
  text-align: center !important;
}
.ledger-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 12px;
  background: #334155;
  color: #e2e8f0;
}
.status-견적발송,
.status-협의중 {
  background: #075985;
  color: #e0f2fe;
}
.status-계약,
.status-진행중,
.status-완료 {
  background: #166534;
  color: #dcfce7;
}
.status-보류 {
  background: #92400e;
}
.status-미수주 {
  background: #991b1b;
}
.ledger-toolbar {
  display: flex;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--border, #2b3a52);
}
.ledger-toolbar input:not([type="checkbox"]) {
  min-width: 240px;
  flex: 1;
}
.ledger-toolbar select {
  width: 155px;
}
.ledger-toolbar span {
  align-self: center;
  color: var(--text-muted, #8292aa);
}
.ledger-toolbar .ledger-check,
.ledger-toolbar .ledger-inline-check {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.ledger-group-row td {
  padding: 7px 11px;
  background: color-mix(in srgb, #0e7490 20%, var(--surface-2, #15243a));
  color: #67e8f9;
  font-weight: 700;
  text-align: left !important;
}
.ledger-page input:not([type="checkbox"]),
.ledger-page select,
.ledger-page textarea {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  background: var(--input-bg, #0f172a);
  color: var(--text, #e2e8f0);
  font: inherit;
}
.ledger-page input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
  accent-color: #0284c7;
}
.ledger-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 18px;
}
.ledger-pipeline div {
  text-align: center;
}
.ledger-pipeline b {
  display: grid;
  height: 52px;
  place-items: center;
  border-radius: 6px;
  background: #1e3a5f;
  font-size: 20px;
}
.ledger-pipeline span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted, #8292aa);
  font-size: 10px;
}
.ledger-task-list {
  padding: 6px 14px;
}
.ledger-task-list label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border, #25364f);
}
.ledger-task-list label:last-child {
  border: 0;
}
.ledger-task-list input {
  width: 16px;
  min-height: 16px;
}
.ledger-task-list label > span {
  flex: 1;
}
.ledger-task-list b,
.ledger-task-list small {
  display: block;
}
.ledger-task-list small {
  margin-top: 4px;
  color: var(--text-muted, #8292aa);
}
.ledger-task-list time {
  color: var(--text-muted, #8292aa);
}
.ledger-task-list .done b {
  text-decoration: line-through;
  color: var(--text-muted, #8292aa);
}
.ledger-json {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.ledger-detail-head > div {
  flex: 1;
}
.ledger-detail-head h2 {
  margin: 0;
  font-size: 19px;
}
.ledger-detail-head p {
  margin: 4px 0;
  color: var(--text-muted, #8292aa);
}
.ledger-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(360px, 44fr);
  gap: 12px;
  align-items: stretch;
}
.ledger-detail-grid > div,
.ledger-detail-grid > aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ledger-detail-grid > div > .ledger-panel:last-child,
.ledger-detail-grid > aside > .ledger-panel:first-child {
  flex: 1;
}
.ledger-detail-grid > aside > .ledger-panel:first-child {
  display: flex;
  flex-direction: column;
}
.ledger-current-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #8292aa);
  white-space: nowrap;
}
.ledger-current-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.ledger-current-status strong {
  color: var(--text, #e5edf8);
}
.ledger-edit-button {
  border-color: #0ea5e9 !important;
  background: #0369a1 !important;
  color: #fff !important;
}
.ledger-delete-button {
  border-color: #ef4444 !important;
  background: #991b1b !important;
  color: #fff !important;
}
.ledger-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}
.ledger-info-grid small {
  color: var(--text-muted, #8292aa);
}
.ledger-info-grid p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.ledger-quote {
  padding: 14px;
  border-bottom: 1px solid var(--border, #25364f);
}
.ledger-quote > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ledger-quote > div:first-child b {
  padding: 5px 8px;
  border-radius: 5px;
  background: #164e63;
}
.ledger-quote > div:first-child span {
  flex: 1;
  color: var(--text-muted, #8292aa);
}
.ledger-quote > div:nth-child(2) {
  margin-top: 10px;
}
.ledger-quote > small {
  display: block;
  margin-top: 8px;
  color: #34d399;
}
.ledger-timeline {
  flex: 1;
  min-height: 330px;
  overflow: auto;
  padding: 14px;
}
.ledger-timeline-day h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--surface-2, #15243a);
  color: #67e8f9;
  font-size: 11px;
}
.ledger-timeline article {
  padding: 0 0 14px 15px;
  border-left: 1px solid var(--border, #334155);
}
.ledger-timeline article em {
  display: block;
  margin-top: 5px;
  color: #fbbf24;
  font-size: 10px;
  font-style: normal;
}
.ledger-current-memo {
  margin: 0 14px 14px;
  padding: 11px;
  border: 1px solid #475569;
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-2, #15243a) 75%, transparent);
}
.ledger-current-memo b,
.ledger-current-memo small {
  display: block;
}
.ledger-current-memo p {
  min-height: 34px;
  margin: 7px 0;
  white-space: pre-wrap;
}
.ledger-current-memo small {
  color: var(--text-muted, #8292aa);
}
.ledger-timeline small,
.ledger-timeline b {
  display: block;
  margin-bottom: 4px;
}
.ledger-timeline small {
  color: var(--text-muted, #8292aa);
}
.ledger-timeline p {
  margin: 0;
  white-space: pre-wrap;
}
.ledger-activity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 6px;
}
.ledger-activity-registered {
  display: block;
  margin-top: 5px;
  color: var(--text-muted, #8292aa);
}
.ledger-activity-actions button {
  min-height: 25px !important;
  padding: 2px 8px !important;
  font-size: 10px;
}
.ledger-activity-actions button.danger {
  border-color: #7f1d1d !important;
  color: #fca5a5 !important;
}
.ledger-file-button {
  display: inline-flex;
  align-items: center;
}
.ledger-file-button input {
  display: none;
}
.ledger-files {
  padding: 8px;
}
.ledger-files button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 5px;
}
.ledger-files small {
  color: var(--text-muted, #8292aa);
}
.ledger-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 9px;
  padding: 10px;
}
.ledger-attachment-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--border, #334155);
  border-radius: 7px;
  background: var(--surface-2, #15243a);
}
.ledger-attachment-preview {
  display: grid;
  width: 100%;
  height: 96px;
  overflow: hidden;
  place-items: center;
  padding: 0 !important;
  background: #091321 !important;
}
.ledger-attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ledger-file-kind {
  display: grid;
  width: 58px;
  height: 66px;
  place-items: center;
  border-radius: 6px;
  background: #334155;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.ledger-file-kind.pdf {
  background: #991b1b;
}
.ledger-file-kind.office {
  background: #166534;
}
.ledger-file-kind.archive {
  background: #92400e;
}
.ledger-attachment-card > b {
  overflow: hidden;
  color: var(--text, #e5edf8);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-attachment-card > small {
  color: var(--text-muted, #8292aa);
}
.ledger-attachment-action {
  width: 100%;
  margin-top: auto;
}
.ledger-image-viewer {
  position: fixed;
  inset: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #475569);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.97);
  box-shadow: 0 24px 80px #000b;
}
.ledger-image-viewer > header,
.ledger-image-viewer > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface, #111827);
}
.ledger-image-viewer > header {
  border-bottom: 1px solid var(--border, #334155);
}
.ledger-image-viewer > footer {
  justify-content: flex-end;
  gap: 7px;
  border-top: 1px solid var(--border, #334155);
}
.ledger-image-viewer > div {
  display: grid;
  min-height: 0;
  flex: 1;
  overflow: auto;
  place-items: center;
  padding: 16px;
}
.ledger-image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ledger-project-button {
  width: 100%;
  min-height: 42px !important;
  background: #047857 !important;
  color: #fff !important;
}
.ledger-linked {
  padding: 14px;
  border: 1px solid #047857;
  border-radius: 8px;
  color: #34d399;
  text-align: center;
}
.ledger-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}
.ledger-modal {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--border, #334155);
  border-radius: 10px;
  background: var(--surface, #111827);
  box-shadow: 0 24px 80px #0008;
}
.ledger-modal.wide {
  width: min(1100px, 97vw);
}
.ledger-modal > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #334155);
  background: var(--surface, #111827);
}
.ledger-modal h2 {
  margin: 0;
  font-size: 16px;
}
.ledger-modal > header button {
  border: 0;
  background: transparent;
  font-size: 20px;
}
.ledger-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.ledger-modal-body label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ledger-modal-body label.wide,
.ledger-modal-body > .wide {
  grid-column: 1/-1;
}
.ledger-modal-body textarea {
  min-height: 72px;
  resize: vertical;
}
.ledger-modal > footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 16px;
  border-top: 1px solid var(--border, #334155);
  background: var(--surface, #111827);
}
.ledger-quote-items {
  overflow: auto;
}
.ledger-quote-items table {
  width: 100%;
  border-collapse: collapse;
}
.ledger-quote-items th,
.ledger-quote-items td {
  padding: 4px;
}
.ledger-quote-items input {
  width: 100%;
}
.ledger-quote-items th {
  color: var(--text-muted, #8292aa);
  font-size: 11px;
}
:root[data-theme="light"] .ledger-page {
  --bg: #edf3f8;
  --surface: #fff;
  --surface-2: #f1f5f9;
  --input-bg: #fff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
}
.ledger-page .ledger-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-2, #15243a) 70%, transparent);
}
.ledger-contact-cell {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  white-space: normal !important;
}
.ledger-contact-chip {
  min-height: 25px !important;
  padding: 3px 8px !important;
  border-color: #155e75 !important;
  background: #083344 !important;
  color: #cffafe !important;
}
.ledger-contact-chip.inactive {
  filter: grayscale(1);
  opacity: 0.5;
}
.ledger-form-context {
  padding: 9px 11px;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  background: var(--surface-2, #0f172a);
  color: #67e8f9;
  font-weight: 700;
}
.ledger-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.ledger-check input,
.ledger-cc-list input {
  width: 16px;
  min-height: 16px;
}
.ledger-cc-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
}
.ledger-cc-list > span {
  font-weight: 700;
}
.ledger-cc-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1000px) {
  .ledger-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-dashboard-lower,
  .ledger-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .ledger-page {
    padding: 10px;
  }
  .ledger-head {
    align-items: flex-start;
  }
  .ledger-tabs {
    overflow: auto;
  }
  .ledger-tabs button {
    flex: 0 0 auto;
  }
  .ledger-metrics {
    grid-template-columns: 1fr;
  }
  .ledger-modal-body,
  .ledger-info-grid {
    grid-template-columns: 1fr;
  }
  .ledger-modal-body label.wide,
  .ledger-modal-body > .wide {
    grid-column: auto;
  }
  .ledger-toolbar {
    flex-direction: column;
  }
  .ledger-toolbar input,
  .ledger-toolbar select {
    width: 100%;
    min-width: 0;
  }
  .ledger-attachment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger-image-viewer {
    inset: 6px;
  }
}
.manual-button {
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #dbeafe;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.manual-button svg {
  width: 15px;
  height: 15px;
  color: #38bdf8;
}
.manual-button:hover {
  border-color: #38bdf8;
  background: #27354f;
}

.manual-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
}

.manual-modal {
  width: min(1120px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e2e8f0;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.manual-modal > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 24px;
  background: #172033;
  border-bottom: 1px solid #334155;
}
.manual-modal > header span.manual-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.manual-modal > header h2 {
  margin: 3px 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.manual-modal > header p {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
}
.manual-modal > header button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 18px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.manual-modal > header button:hover {
  color: #f8fafc;
  border-color: #64748b;
  background: #334155;
}

/* 상단 업무 흐름 시각화 파이프라인 바 */
.manual-flow-header {
  padding: 10px 24px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  overflow-x: auto;
}
.manual-flow-header-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual-flow-track {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}
.manual-flow-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.manual-flow-chip:hover {
  background: #283548;
  border-color: #38bdf8;
  color: #f8fafc;
}
.manual-flow-chip.active {
  background: #0c4a6e;
  border-color: #0284c7;
  color: #e0f2fe;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}
.manual-flow-chip-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
}
.manual-flow-chip.active .manual-flow-chip-num {
  background: #0284c7;
  color: #fff;
}
.manual-flow-arrow {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.manual-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.manual-body aside {
  padding: 16px 12px;
  overflow-y: auto;
  background: #0b1120;
  border-right: 1px solid #1e293b;
}
.manual-body aside strong {
  display: block;
  padding: 0 10px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.manual-body aside button {
  width: 100%;
  padding: 10px 12px;
  margin: 3px 0;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.manual-body aside button:hover {
  color: #e2e8f0;
  background: #1e293b;
}
.manual-body aside button.active {
  color: #38bdf8;
  background: #0f2744;
  border-color: #0369a1;
}

.manual-body article {
  padding: 24px 32px;
  overflow-y: auto;
}
.manual-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}
.manual-summary {
  margin: 0 0 22px;
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
}

.manual-body h4 {
  margin: 22px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual-body ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.manual-body ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #161f30;
  border: 1px solid #243047;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
}
.manual-step-badge {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.manual-step-content {
  flex: 1;
}

/* 실제 시스템 UI 뱃지/버튼 스타일 가이드 */
.manual-ui-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin: 0 3px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}
.manual-ui-pill.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}
.manual-ui-pill.orange {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}
.manual-ui-pill.rework {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid #f97316;
}
.manual-ui-pill.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}
.manual-ui-pill.neutral {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid #64748b;
}
.manual-ui-pill.purple {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid #8b5cf6;
}

.manual-ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin: 0 3px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: middle;
}
.manual-ui-btn.primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #3b82f6;
}
.manual-ui-btn.accent {
  background: #0284c7;
  color: #fff;
  border: 1px solid #0ea5e9;
}
.manual-ui-btn.subtle {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
}

.manual-flow {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.manual-flow li {
  padding: 9px 12px;
  color: #cbd5e1;
  background: #182234;
  border-left: 3px solid #0284c7;
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}

.manual-modal > footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px;
  background: #172033;
  border-top: 1px solid #334155;
}
.manual-modal > footer button {
  min-width: 80px;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.manual-modal > footer button:hover {
  background: #334155;
  border-color: #64748b;
  color: #fff;
}

/* ==========================================================================
   라이트 테마 (Light Theme) 전용 연동
   ========================================================================== */
:root[data-theme="light"] .manual-button {
  color: #1e293b;
  background: #ffffff;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .manual-button:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

:root[data-theme="light"] .manual-modal {
  color: #0f172a;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}
:root[data-theme="light"] .manual-modal > header {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .manual-modal > header h2 {
  color: #0f172a;
}
:root[data-theme="light"] .manual-modal > header p {
  color: #475569;
}
:root[data-theme="light"] .manual-modal > header button {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #64748b;
}
:root[data-theme="light"] .manual-modal > header button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

:root[data-theme="light"] .manual-flow-header {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .manual-flow-header-title {
  color: #475569;
}
:root[data-theme="light"] .manual-flow-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
:root[data-theme="light"] .manual-flow-chip:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0f172a;
}
:root[data-theme="light"] .manual-flow-chip.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}
:root[data-theme="light"] .manual-flow-chip-num {
  background: #e2e8f0;
  color: #334155;
}
:root[data-theme="light"] .manual-flow-chip.active .manual-flow-chip-num {
  background: #0284c7;
  color: #fff;
}
:root[data-theme="light"] .manual-flow-arrow {
  color: #94a3b8;
}

:root[data-theme="light"] .manual-body aside {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .manual-body aside strong {
  color: #64748b;
}
:root[data-theme="light"] .manual-body aside button {
  color: #334155;
}
:root[data-theme="light"] .manual-body aside button:hover {
  color: #0f172a;
  background: #f1f5f9;
}
:root[data-theme="light"] .manual-body aside button.active {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #38bdf8;
}

:root[data-theme="light"] .manual-body article {
  background: #ffffff;
}
:root[data-theme="light"] .manual-body h3 {
  color: #0f172a;
}
:root[data-theme="light"] .manual-summary {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}
:root[data-theme="light"] .manual-body h4 {
  color: #0284c7;
}
:root[data-theme="light"] .manual-body ol li {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}
:root[data-theme="light"] .manual-flow li {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #334155;
}

:root[data-theme="light"] .manual-modal > footer {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .manual-modal > footer button {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}
:root[data-theme="light"] .manual-modal > footer button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 768px) {
  .manual-overlay {
    padding: 8px;
  }
  .manual-modal {
    width: 100%;
    height: calc(100vh - 16px);
  }
  .manual-body {
    grid-template-columns: 1fr;
  }
  .manual-body aside {
    display: flex;
    gap: 6px;
    border-right: 0;
    border-bottom: 1px solid #334155;
    padding: 10px;
  }
  .manual-body aside strong {
    display: none;
  }
  .manual-body aside button {
    width: auto;
    white-space: nowrap;
    padding: 6px 10px;
  }
  .manual-body article {
    padding: 16px;
  }
  .manual-button span {
    display: none;
  }
}

/* Menu-based guide: explicit left alignment overrides global button layout. */
.manual-body aside button {justify-content:flex-start!important;text-align:left!important;align-items:flex-start}
.manual-body aside button span {text-align:left;flex:1}
.manual-body aside button svg {flex-shrink:0;margin-top:2px}
.manual-screenshot {margin:12px 0 18px}
.manual-screenshot img {width:100%;height:auto;border:1px solid var(--border,#334155);border-radius:6px;display:block}
.manual-screenshot figcaption {font-size:11px;color:var(--text-muted,#94a3b8);margin-top:6px}
@media (max-width:768px) {
 .manual-body {grid-template-columns:130px minmax(0,1fr)}
 .manual-body aside {display:block;padding:6px;border-right:1px solid var(--border,#334155);overflow-y:auto}
 .manual-body aside button {width:100%;white-space:normal;padding:8px 6px;font-size:11px}
 .manual-body article {padding:12px}
 .manual-modal > header {padding:12px}
}
.manual-screenshot img {max-width:100%;width:auto;max-height:300px;object-fit:contain;object-position:left top}
:root[data-theme="light"] .manual-body aside button.active {color:#075985!important;background:#e0f2fe!important;border-color:#0284c7!important}
:root {
  font-family: Inter, Pretendard, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #e5e7eb;
  background: #111318;
  --app-bg: #090d16;
  --surface-1: #0f172a;
  --surface-2: #1e293b;
  --grid-bg: #101a2b;
  --grid-head: #142237;
  --text: #e5e7eb;
  --muted-text: #cbd5e1;
  --border: #334155;
}
:root[data-theme="light"] {
  color: #1e293b;
  background: #eef3f8;
  --app-bg: #edf3f8;
  --surface-1: #ffffff;
  --surface-2: #f7fafc;
  --grid-bg: #ffffff;
  --grid-head: #e8f1f7;
  --text: #1e293b;
  --muted-text: #475569;
  --border: #cbd5e1;
}
:root[data-theme="light"] body,
:root[data-theme="light"] .top-nav-layout,
:root[data-theme="light"] .main-content-full {
  background: #edf3f8;
  color: #1e293b;
}
:root[data-theme="light"] .top-navbar {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .workspace-sidebar {
  background: #ffffff;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .sidebar-brand-text {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: currentColor;
}
:root[data-theme="light"] .sidebar-collapse-button {
  color: #334155;
  background: transparent;
  border-color: transparent;
}
:root[data-theme="light"] .sidebar-menu-item {
  color: #475569;
}
:root[data-theme="light"] .sidebar-menu-item:hover {
  color: #0f172a;
  background: #eff8fb;
}
:root[data-theme="light"] .sidebar-menu-item.active {
  color: #0369a1;
  background: #e0f2fe;
}
:root[data-theme="light"] .navbar-tab-btn {
  color: #475569;
}
:root[data-theme="light"] .navbar-tab-btn:hover {
  color: #0f172a;
  background: #eff8fb !important;
}
:root[data-theme="light"] .navbar-user-badge,
:root[data-theme="light"] button,
:root[data-theme="light"] select,
:root[data-theme="light"] input,
:root[data-theme="light"] textarea {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .panel,
:root[data-theme="light"] .card,
:root[data-theme="light"] .table-panel {
  background: #ffffff;
  border-color: #d7e0e8;
}
:root[data-theme="light"] .navbar-brand {
  color: #0f172a;
}
:root[data-theme="light"] .navbar-theme-toggle,
:root[data-theme="light"] .navbar-logout-btn {
  background: #ffffff !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .navbar-logout-btn:hover {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}
:root[data-theme="light"] .dashboard-grid article,
:root[data-theme="light"] .dashboard-activity-row {
  background: #ffffff;
}
:root[data-theme="light"] .dashboard-activity-table {
  background: #d7e0e8;
  border-color: #d7e0e8;
}
:root[data-theme="light"] .dashboard-activity-row > span {
  border-color: #d7e0e8;
}
:root[data-theme="light"] .dashboard-activity-head,
:root[data-theme="light"] .grid-head {
  background: #e8f1f7;
  color: #334155;
}
:root[data-theme="light"] .table-toolbar {
  border-color: #d7e0e8;
}
:root[data-theme="light"] .table-toolbar input,
:root[data-theme="light"] .grid-row > input,
:root[data-theme="light"] .grid-row > select {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .user-management-page {
  color: #1e293b !important;
}
:root[data-theme="light"] .user-management-page input,
:root[data-theme="light"] .user-management-page select,
:root[data-theme="light"] .user-management-page textarea {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .project-management-page,
:root[data-theme="light"] .shot-management-page,
:root[data-theme="light"] .task-management-page,
:root[data-theme="light"] .company-management-page,
:root[data-theme="light"] .settings-page {
  color: #1e293b;
}
:root[data-theme="light"] .project-members-panel,
:root[data-theme="light"] .project-member-add,
:root[data-theme="light"] .project-members-table td,
:root[data-theme="light"] .task-row,
:root[data-theme="light"] .company-table-row,
:root[data-theme="light"] .settings-account-list dd {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #d7e0e8 !important;
}
:root[data-theme="light"] .project-members-table th,
:root[data-theme="light"] .task-head,
:root[data-theme="light"] .company-table-head,
:root[data-theme="light"] .settings-account-list dt {
  background: #e8f1f7 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .toast-shot-page,
:root[data-theme="light"] .toast-shot-toolbar,
:root[data-theme="light"] .toast-grid-shell {
  background: #edf3f8 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.date-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.date-input-wrap > input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  padding-right: 34px !important;
  font-variant-numeric: tabular-nums;
}
.date-input-native-picker {
  position: fixed !important;
  top: -100vh !important;
  left: -100vw !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}
.date-input-picker-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 4px;
  color: #38bdf8;
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.date-input-picker-button:hover:not(:disabled),
.date-input-picker-button:focus-visible {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  border: 0;
  outline: 0;
}
.date-input-picker-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="light"] .date-input-picker-button {
  color: #0284c7;
}
:root[data-theme="light"] .date-input-picker-button:hover:not(:disabled),
:root[data-theme="light"] .date-input-picker-button:focus-visible {
  color: #0369a1;
  background: #e0f2fe;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
input,
select {
  min-height: 28px;
}
button {
  background-color: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}
button:hover:not(:disabled) {
  background-color: #2a374a;
  border-color: #475569;
  color: #ffffff;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 공통 버튼 클래스 */
.btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background-color: #2563eb !important;
  border: 1px solid #3b82f6 !important;
  color: #ffffff !important;
}
.btn-primary:hover:not(:disabled) {
  background-color: #1d4ed8 !important;
  border-color: #60a5fa !important;
}
.btn-outline,
.btn-secondary {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}
.btn-outline:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background-color: #334155 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}
.btn-danger,
.btn-delete-col {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
}
.btn-danger:hover:not(:disabled),
.btn-delete-col:hover:not(:disabled) {
  background-color: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

textarea {
  background-color: #11151d;
  color: #e5e7eb;
  border: 1px solid #384052;
  border-radius: 6px;
  padding: 8px 10px;
}
textarea:focus,
input:focus,
select:focus {
  border-color: #38bdf8;
  outline: none;
}
select,
option,
optgroup {
  background-color: #1a1e28 !important;
  color: #f1f5f9 !important;
}
option:checked {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: #151821;
}
.sidebar {
  position: sticky;
  top: 0;
  width: 252px;
  height: 100vh;
  flex: 0 0 auto;
  padding: 18px 14px;
  background: #0d0f14;
  border-right: 1px solid #292d38;
  z-index: 20;
}
.brand {
  margin: 4px 10px 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  color: #aeb5c2;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: #262b37;
}
.nav-item:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #84a6ff;
  outline-offset: 2px;
}

/* 사이드바 대시보드 프로젝트 서브메뉴 */
.nav-group-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
  margin: 2px 0 4px 0;
  border-left: 2px solid #292d38;
}
.sub-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.sub-nav-item:hover {
  color: #f1f5f9;
  background: #1e2430;
}
.sub-nav-item.sub-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  font-weight: 600;
}
.sub-dot {
  font-size: 11px;
  flex-shrink: 0;
}
.sub-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 프로젝트 활성 상태 토글 뱃지 */
.status-toggle-badge {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}
.status-toggle-badge:hover {
  opacity: 0.8;
}
.badge-active {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}
.badge-inactive {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.4);
}
.row-inactive {
  opacity: 0.65;
}
.row-archived {
  opacity: 0.75;
  background: rgba(168, 85, 247, 0.04) !important;
}

/* 프로젝트 아카이브 탭 버튼 */
.project-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #181d26;
  border: 1px solid #2d3748;
  color: #94a3b8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.project-tab-btn:hover {
  background: #212936;
  color: #f1f5f9;
}
.project-tab-btn.tab-active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}
.tab-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
}

.mobile-menu-button,
.menu-backdrop {
  display: none;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 20px;
  overflow: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
h1 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.2;
}
h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}
p {
  margin: 0;
  color: #8f98a8;
  font-size: 12.5px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.card,
.panel,
.table-panel {
  background: #1c202a;
  border: 1px solid #303542;
  border-radius: 8px;
}
.card {
  padding: 12px;
}
.card span {
  color: #98a1b2;
  font-size: 12px;
}
.card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}
.panel {
  margin-top: 14px;
  padding: 14px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dashboard-grid article {
  padding: 12px;
  background: #171b24;
  border-radius: 6px;
}
.dashboard-activity-wrap {
  overflow-x: auto;
}
.dashboard-activity-table {
  min-width: 900px;
  display: grid;
  gap: 1px;
  background: #303542;
  border: 1px solid #303542;
  border-radius: 8px;
  overflow: hidden;
}
.dashboard-activity-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.15fr) minmax(170px, 1.35fr) minmax(150px, 1fr)
    minmax(90px, 0.7fr) minmax(70px, 0.55fr) minmax(210px, 1.6fr);
  gap: 0;
  align-items: center;
  background: #1c202a;
}
.dashboard-activity-row > span {
  min-width: 0;
  padding: 7px 10px;
  border-right: 1px solid #303542;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.dashboard-activity-row > span:last-child {
  border-right: 0;
  white-space: nowrap;
}
.dashboard-activity-head {
  color: #aeb7c7;
  background: #171b23;
  font-weight: 700;
}
.dashboard-activity-head > span {
  padding-top: 6px;
  padding-bottom: 6px;
}
.toolbar,
.table-toolbar,
.review-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.toolbar button,
.table-toolbar button,
.review-actions button,
.account-bar button {
  padding: 3px 8px;
  font-size: 12px;
  min-height: 28px;
  color: #e5e7eb;
  background: #2a3040;
  border: 1px solid #3c4457;
  border-radius: 5px;
  cursor: pointer;
}
.toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}
.table-panel {
  margin-top: 14px;
  overflow: hidden;
}
.table-toolbar {
  padding: 6px 8px;
  border-bottom: 1px solid #303542;
  flex-wrap: wrap;
}
.table-toolbar input {
  min-width: 200px;
  flex: 1;
  padding: 3px 8px;
  font-size: 12px;
  min-height: 28px;
  color: #e5e7eb;
  background: #11151d;
  border: 1px solid #384052;
  border-radius: 5px;
}
.grid-table {
  min-width: 1080px;
}
.grid-row {
  display: grid;
  grid-template-columns: 110px 130px 160px 120px 90px 180px 90px 140px;
  border-bottom: 1px solid #292f3c;
}
.grid-row > span,
.grid-row > input,
.grid-row > select {
  min-width: 0;
  padding: 5px 6px;
  font-size: 12px;
  min-height: 26px;
  color: #dce2ed;
  background: transparent;
  border: 0;
  border-right: 1px solid #292f3c;
}
.grid-row > input:focus,
.grid-row > select:focus {
  outline: 2px solid #5e84e8;
  outline-offset: -2px;
  background: #222838;
}
.grid-head {
  color: #9aa4b5;
  background: #171b23;
  font-weight: 700;
}
.grid-head span {
  padding: 6px;
}
.list-panel {
  min-height: 240px;
}
.status-flow {
  margin-top: 14px;
  padding: 10px;
  color: #b9c8ef;
  background: #141923;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.review-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

/* 상단 가로 내비게이션 바 (Top Navbar) 및 100% 풀스크린 레이아웃 */
.top-nav-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: #090d16;
  overflow: hidden;
}

.workspace-sidebar {
  position: relative;
  display: flex;
  flex: 0 0 218px;
  flex-direction: column;
  padding: 14px 10px;
  background: #0f172a;
  border-right: 1px solid #1e293b;
  transition:
    flex-basis 0.22s cubic-bezier(0.2, 0.75, 0.2, 1),
    padding 0.22s cubic-bezier(0.2, 0.75, 0.2, 1);
  z-index: 51;
}
.workspace-frame {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 2px 4px 14px 7px;
  overflow: hidden;
  white-space: nowrap;
  transition: padding 0.22s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.sidebar-brand-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease;
}
.sidebar-brand-main:hover {
  opacity: 0.85;
}
.sidebar-brand-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: block;
  max-width: 140px;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
  transition:
    max-width 0.22s cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 0.18s ease;
}
.sidebar-menu-item span {
  display: block;
  max-width: 160px;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
  transition:
    max-width 0.22s cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 0.18s ease;
}

.sidebar-header-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.18s ease,
    max-width 0.22s cubic-bezier(0.2, 0.75, 0.2, 1),
    color 0.15s ease,
    background 0.15s ease;
}
.sidebar-header-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}
.sidebar-toggle-glyph {
  width: 16px;
  height: 16px;
  display: block;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition:
    gap 0.22s cubic-bezier(0.2, 0.75, 0.2, 1),
    padding 0.22s cubic-bezier(0.2, 0.75, 0.2, 1),
    color 0.15s ease,
    background 0.15s ease;
}
.sidebar-menu {
  display: grid;
  gap: 4px;
}
.sidebar-menu-group {
  display: grid;
  gap: 3px;
}
.sidebar-submenu {
  display: grid;
  gap: 2px;
  margin: 1px 0 4px 24px;
  padding: 5px 5px 5px 9px;
  border-left: 1px solid #334155;
}
.sidebar-submenu button {
  min-height: 29px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  text-align: left;
}
.sidebar-submenu button:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.09);
}
.sidebar-submenu button.active {
  color: #67e8f9;
  background: rgba(14, 116, 144, 0.24);
  font-weight: 700;
}
.sidebar-menu-item {
  gap: 10px;
  justify-content: flex-start;
}
.sidebar-menu-item svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.sidebar-menu-item:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.1);
}
.sidebar-menu-item.active {
  color: #67e8f9;
  background: rgba(14, 116, 144, 0.28);
  box-shadow: inset 3px 0 #38bdf8;
}

.sidebar-collapsed .workspace-sidebar {
  flex-basis: 58px;
  padding-right: 8px;
  padding-left: 8px;
}
.sidebar-collapsed .sidebar-brand {
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 2px 0 14px 0;
}
.sidebar-collapsed .sidebar-brand-main {
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}
.sidebar-collapsed .navbar-logo-symbol,
.sidebar-collapsed .bc-logo-symbol-theme-aware {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.sidebar-collapsed .sidebar-brand-text {
  max-width: 0;
  opacity: 0;
}
.sidebar-collapsed .sidebar-header-toggle-btn {
  max-width: 0;
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border: none;
}
.sidebar-collapsed .sidebar-menu-item span {
  max-width: 0;
  opacity: 0;
}
.sidebar-collapsed .sidebar-menu-item {
  gap: 0;
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .workspace-sidebar,
  .sidebar-brand,
  .sidebar-brand-text,
  .sidebar-menu-item,
  .sidebar-menu-item span {
    transition-duration: 0.01ms;
  }
}

.top-navbar {
  height: 52px;
  min-height: 52px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.workspace-navbar {
  justify-content: space-between;
  padding: 0 14px;
}
.workspace-menu-title {
  color: #cbd5e1;
  font-size: 13px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #f8fafc;
  user-select: none;
}

.navbar-logo-symbol {
  width: 24px;
  height: 24px;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.navbar-brand-text {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.navbar-menu-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.navbar-tab-btn {
  position: relative;
  height: 100%;
  padding: 0 14px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.navbar-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04) !important;
}

.navbar-tab-btn.active {
  color: #38bdf8;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.06) !important;
}

.tab-active-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #38bdf8;
  box-shadow:
    0 0 10px #38bdf8,
    0 0 20px #38bdf8;
  border-radius: 3px 3px 0 0;
}

.navbar-right-utils {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-theme-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 15px;
  color: #f8fafc;
}

.navbar-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  font-size: 11.5px;
  color: #e2e8f0;
}

.user-avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logout-btn {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease;
}

.navbar-logout-btn:hover {
  background: #7f1d1d !important;
  border-color: #991b1b !important;
  color: #fca5a5 !important;
}

.main-content-full {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #090d16;
}

/* All menu views share one calm edge inset. Modal backdrops stay viewport-fixed. */
.main-content-full
  > :not(.toast-shot-page):not(.modal-backdrop):not(
    .shot-import-modal-overlay
  ):not(.shot-modal-backdrop) {
  margin-left: 10px;
  margin-right: 10px;
}

.auth-brand {
  margin: 0 0 24px;
}
.auth-card > p {
  margin-bottom: 20px;
}
.auth-form {
  display: grid;
  gap: 10px;
}
.auth-form label {
  display: grid;
  gap: 4px;
  color: #cbd2df;
  font-size: 13px;
  font-weight: 700;
}
.auth-form input,
.account-bar select {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  min-height: 28px;
  color: #e5e7eb;
  background: #11151d;
  border: 1px solid #384052;
  border-radius: 6px;
}
.primary-button {
  padding: 4px 10px;
  min-height: 28px;
  font-size: 12px;
  color: #fff;
  background: #2563eb;
  border: 1px solid #3b82f6;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}
.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.form-error {
  padding: 7px 10px;
  font-size: 12px;
  color: #fecaca;
  background: #4b1f25;
  border: 1px solid #7f3038;
  border-radius: 6px;
}
.account-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #292d38;
}
.account-bar > span {
  color: #cbd2df;
  font-size: 12.5px;
}
.account-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9ea7b8;
  font-size: 12px;
}
.account-bar select {
  width: auto;
  min-width: 110px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 190px;
  }
  .main-content {
    padding: 20px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .app-shell {
    display: block;
    padding-top: 58px;
  }
  .mobile-menu-button {
    display: block;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 40;
    min-width: 52px;
    padding: 8px 14px;
    color: #fff;
    background: #262b37;
    border: 1px solid #3c4457;
    border-radius: 8px;
  }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(82vw, 300px);
    height: 100dvh;
    padding-top: 70px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.35);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .brand {
    margin-bottom: 18px;
  }
  nav {
    grid-template-columns: 1fr 1fr;
  }
  .nav-item {
    min-height: 44px;
  }
  .main-content {
    padding: 16px 12px 28px;
    overflow: visible;
  }
  .account-bar {
    align-items: stretch;
    flex-direction: column;
    margin-left: 58px;
  }
  .account-bar label {
    justify-content: space-between;
  }
  .topbar {
    display: grid;
    gap: 12px;
  }
  h1 {
    font-size: 22px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
  }
  .card {
    padding: 14px;
  }
  .card strong {
    font-size: 23px;
  }
  .panel {
    margin-top: 16px;
    padding: 14px;
  }
  .toolbar {
    justify-content: flex-start;
  }
  .table-panel {
    margin-top: 16px;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .table-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 0 10px;
    border: 0;
  }
  .table-toolbar input {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .grid-table {
    min-width: 0;
    display: grid;
    gap: 10px;
  }
  .grid-head {
    display: none;
  }
  .grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    padding: 12px;
    background: #1c202a;
    border: 1px solid #303542;
    border-radius: 10px;
  }
  .grid-row > span,
  .grid-row > input,
  .grid-row > select {
    width: 100%;
    min-width: 0;
    padding: 7px;
    border: 1px solid #384052;
    border-radius: 6px;
    background: #11151d;
  }
  .grid-row > span {
    display: grid;
    align-content: center;
  }
  .grid-row > [data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #8f98a8;
    font-size: 12px;
    font-weight: 700;
  }
  .review-actions button {
    flex: 1 1 120px;
  }
  .auth-card {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .grid-row {
    grid-template-columns: 1fr;
  }
  .table-toolbar {
    grid-template-columns: 1fr;
  }
  .table-toolbar input {
    grid-column: auto;
  }
  nav {
    grid-template-columns: 1fr;
  }
}
.ledger-seal-preview { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--border, #334155); border-radius: 4px; }
/* Settlement payment confirmation and immutable statement history. */
.payment-overlay{position:fixed;inset:0;z-index:1500;background:rgba(0,0,0,.62);display:flex;align-items:center;justify-content:center;padding:18px}
.payment-dialog{width:min(850px,100%);max-height:90vh;overflow:auto;padding:18px;border:1px solid var(--border,#334155);border-radius:8px;background:var(--surface,#111827);color:var(--text,#e2e8f0);box-shadow:0 15px 60px rgba(0,0,0,.3);font-size:12px}
.payment-wide{width:min(1350px,100%)}.payment-dialog h2{font-size:17px;margin:0 0 10px}.payment-dialog h3{font-size:13px;margin:0 0 8px}.payment-dialog footer,.payment-pagination{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}
.payment-dialog button,.payment-pagination button,.payment-table button{font-size:12px;padding:5px 10px;border:1px solid var(--border,#334155);border-radius:5px;background:var(--surface-2,#1e293b);color:var(--text,#e2e8f0)}
.payment-dialog button:disabled{opacity:.5}.payment-dialog footer button:last-child{background:#0369a1;color:#fff}
.payment-group{border:1px solid var(--border,#334155);border-radius:6px;padding:12px;margin:12px 0}.payment-fields{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start;margin:12px 0}.payment-fields>div,.payment-fields label,.payment-dialog>label{display:grid;gap:4px}.payment-fields strong{display:block}.payment-fields input,.payment-dialog textarea{font:inherit;min-height:30px;background:var(--surface-2,#0f172a);border:1px solid var(--border,#334155);color:var(--text,#e2e8f0);border-radius:5px;padding:6px 8px}.payment-dialog textarea{width:100%;min-height:72px}.payment-fields label{flex:1;min-width:150px}.payment-fields input{width:100%;box-sizing:border-box}.payment-fields small{color:var(--text-muted,#94a3b8)}
.payment-table{overflow:auto;margin:12px 0}.payment-table table{width:100%;border-collapse:collapse;font-size:12px}.payment-table td,.payment-table th{padding:8px;text-align:center;border:1px solid var(--border,#334155);white-space:nowrap;color:var(--text,#e2e8f0);background:var(--surface,#111827)}.payment-table th{background:var(--surface-2,#172033);font-weight:600;position:relative}.payment-memo{white-space:pre-wrap;overflow-wrap:anywhere}.payment-warning{border:1px solid #d97706;background:rgba(217,119,6,.10);padding:10px;margin:10px 0;border-radius:5px;color:var(--text,#e2e8f0)}.payment-dialog [role=alert]{color:#ef4444}.payment-dialog details{margin:10px 0}.payment-dialog summary{cursor:pointer}.payment-group .payment-table{max-height:270px}

.payment-table td{overflow:hidden;text-overflow:ellipsis}.settlement-page>section>.payment-fields label{flex:0 1 180px}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item svg {
  flex: 0 0 18px;
  opacity: .86;
}

.nav-item:hover svg,
.nav-item.active svg {
  opacity: 1;
}

.language-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.account-bar .language-dropdown-trigger,
.account-bar .language-dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #e5e7eb;
  background: #11151d;
  border: 1px solid #384052;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.account-bar .language-dropdown-trigger {
  min-width: 92px;
  padding: 5px 8px;
}

.account-bar .language-dropdown-trigger:disabled {
  opacity: .55;
  cursor: wait;
}

.country-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.language-chevron {
  margin-left: auto;
  color: #8f98a8;
  font-size: 14px;
  transform: translateY(-1px);
}

.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 3px;
  min-width: 112px;
  padding: 5px;
  background: #11151d;
  border: 1px solid #384052;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
}

.language-dropdown-option,
.account-bar .language-dropdown-option {
  width: 100%;
  padding: 6px 8px;
  background: transparent;
  border-color: transparent;
  text-align: left;
}

.language-dropdown-option:hover,
.language-dropdown-option.selected,
.account-bar .language-dropdown-option:hover,
.account-bar .language-dropdown-option.selected {
  background: #262c39;
  border-color: #3c4457;
}

.account-bar .logout-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-bar .logout-button svg {
  flex: 0 0 17px;
}

@media (max-width: 640px) {
  .language-dropdown,
  .account-bar .language-dropdown-trigger {
    width: 100%;
  }

  .language-dropdown-menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .account-bar .logout-button {
    justify-content: center;
  }
}

/* ==========================================================================
   BC Manager 브랜드 및 버전 뱃지 스타일
   ========================================================================== */
.bc-sidebar-brand {
  margin: 2px 6px 22px;
}

.bc-sidebar-brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.bc-logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.bc-logo-symbol-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bc-brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  white-space: nowrap;
}

.bc-version-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  letter-spacing: 0;
  text-transform: uppercase;
  flex-shrink: 0;
}

.bc-sidebar-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-top: 4px;
  margin-left: 42px;
  white-space: nowrap;
}

/* ==========================================================================
   3D LiDAR 앰비언트 배경 & 빛이 새어나오는 프리미엄 로그인 화면
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #060a10;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.auth-page:active {
  cursor: grabbing;
}

/* 앰비언트 조명 글로우 (3단 오로라) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.55;
}

.glow-1 {
  top: -10%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 75%);
}

.glow-2 {
  top: 40%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
}

.glow-3 {
  bottom: 10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}

/* 3D LiDAR Canvas */
#lidarHeroCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 대비를 위한 딥 다크 오버레이 */
.hero-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 10, 16, 0.3) 0%, rgba(6, 10, 16, 0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 390px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* 프리미엄 다크 글래스 카드 (빛이 새어나오는 네온 글로우 테두리) */
.auth-card {
  width: 100% !important;
  background: rgba(11, 17, 26, 0.80) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 210, 255, 0.35) !important;
  border-radius: 20px !important;
  padding: 40px 32px 36px !important;
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 25px rgba(0, 210, 255, 0.22),
    0 0 50px rgba(59, 130, 246, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* 카드 외곽을 감싸는 은은한 오로라 빛 번짐 효과 */
.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.7) 0%, rgba(59, 130, 246, 0.3) 45%, rgba(168, 85, 247, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-symbol {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.auth-sub {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* 3D 회전 안내 뱃지 */
.hint-3d {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 10;
  background: rgba(11, 17, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
}

.auth-setup-banner {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-setup-banner h2 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 4px;
}

.auth-setup-banner p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.auth-field input {
  width: 100% !important;
  min-height: 42px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  color: #f8fafc !important;
  background: #090d16 !important;
  border: 1px solid #273142 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-field input::placeholder {
  color: #475569;
  font-size: 13px;
}

.auth-field input:focus {
  outline: none !important;
  border-color: #00d2ff !important;
  background: #0d131f !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.25) !important;
}

.auth-submit-button {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #00d2ff 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%);
  box-shadow: 0 6px 26px rgba(0, 210, 255, 0.55);
  transform: translateY(-1.5px);
}

.auth-submit-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}

.auth-submit-button:disabled {
  opacity: 0.5;
  cursor: wait;
  box-shadow: none;
}

.auth-footer {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 0.04em;
}

/* ========================================================================== 
   페이지 최상단 헤더(제목 영역) 공통 상단 여백 (대시보드와 동일한 18px 통일)
   ========================================================================== */
.topbar,
.dashboard-topbar,
.shot-header,
.user-header,
.settings-header {
  margin-top: 18px;
}

.dashboard-hero-section {
  display: block;
  margin: 18px 0;
}

.dashboard-metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  padding: 14px;
  background: #191d26;
  border: 1px solid #2b3140;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s, border-color 0.15s;
}

.metric-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 4px 0 2px;
}

.metric-sub {
  font-size: 11px;
  color: #64748b;
}

/* Radial Progress Card */
.dashboard-progress-card {
  background: #191d26;
  border: 1px solid #2b3140;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.radial-chart-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-chart-svg {
  transform: rotate(-90deg);
}

.radial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
}

.radial-fill {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.radial-chart-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.radial-chart-val {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.radial-chart-lbl {
  font-size: 10px;
  color: #94a3b8;
}

.progress-card-info {
  flex: 1;
  min-width: 0;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.progress-info-row .label {
  font-size: 12px;
  color: #94a3b8;
}

.progress-info-row .val.highlight {
  font-size: 16px;
  font-weight: 800;
  color: #4ade80;
}

.mini-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-sub-text {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.progress-sub-text strong {
  color: #cbd5e1;
}

/* Dashboard Summary Cards */
.dashboard-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding-bottom: 10px;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.dashboard-content-stack { display:flex; flex-direction:column; gap:20px; }

.dashboard-summary-card {
  background: #131b2e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 0;
  min-height: 156px;
  padding: 18px 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-summary-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.dashboard-summary-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.dashboard-summary-icon svg {
  width: 24px;
  height: 24px;
}

.dashboard-summary-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
}

.dashboard-summary-card .dashboard-summary-value-row .summary-card-val {
  font-size: clamp(24px, 1.7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.dashboard-summary-card .summary-card-title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.dashboard-summary-card .summary-card-val {
  color: #ffffff;
}
.dashboard-summary-card .summary-card-sub {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .top-nav-layout .workspace-sidebar {
    flex-basis: 58px;
    padding-right: 8px;
    padding-left: 8px;
  }
  .top-nav-layout .sidebar-brand { justify-content:center; padding-right:0; padding-left:0; }
  .top-nav-layout .sidebar-brand-main { justify-content:center; gap:0; }
  .top-nav-layout .sidebar-brand-text,
  .top-nav-layout .sidebar-header-toggle-btn,
  .top-nav-layout .sidebar-menu-item span,
  .workspace-menu-title,
  .navbar-user-badge .user-info-text,
  .navbar-logout-btn span { display:none; }
  .top-nav-layout .sidebar-menu-item { justify-content:center; gap:0; padding-right:0; padding-left:0; }
  .workspace-navbar { padding:0 8px; }
  .navbar-right-utils { width:100%; justify-content:flex-end; gap:5px; }
  .navbar-user-badge { padding:3px; }
  .navbar-logout-btn { min-width:30px; padding:4px 6px !important; }
  .dashboard-page { padding-right:2px; }
  .dashboard-topbar > div,
  .dashboard-topbar > div > div { min-width:0; width:100%; flex-wrap:wrap; }
  .dashboard-topbar h1 { font-size:17px !important; }
  .dashboard-topbar select { max-width:100%; }
  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-pipeline-layout { flex-direction:column; align-items:stretch !important; gap:14px !important; }
  .dashboard-pipeline-stage-grid { grid-template-columns:1fr !important; width:100%; }
  .donut-chart-wrap { align-self:center; flex:0 0 auto; }
  .dashboard-chart-panel { padding:12px !important; }
  .chart-panel-header { align-items:flex-start !important; gap:8px; }
  .chart-total-tag { white-space:nowrap; }
  .dashboard-activity-wrap { max-width:100%; }
}

@media (max-width: 640px) {
  .dashboard-summary-grid { grid-template-columns:1fr; }
}

.dashboard-action-panel,
.dashboard-insight-panel { margin-top: 0; }
.dashboard-work-overview { display:grid; grid-template-columns:minmax(0,4.5fr) minmax(0,2.75fr) minmax(0,2.75fr); gap:20px; align-items:stretch; }
.dashboard-pipeline-stage-grid > div > div:last-child > div > span:first-child {
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
  flex:0 0 150px !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.dashboard-section-heading h2 { display:flex; align-items:center; gap:8px; margin:0; font-size:16px; }
.dashboard-section-heading h2 svg { color:#38bdf8; width:19px; height:19px; }
.dashboard-section-heading > span { color:#94a3b8; font-size:11px; padding:3px 8px; border:1px solid #334155; border-radius:12px; }
.dashboard-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dashboard-action-item { display:flex; align-items:center; gap:12px; min-width:0; padding:13px 14px; background:#101827; border:1px solid; border-radius:9px; }
.dashboard-action-item { width:100%; color:inherit; text-align:left; cursor:pointer; }
.dashboard-action-item:hover { background:#172238; transform:translateY(-1px); }
.dashboard-action-item:focus-visible { outline:2px solid #38bdf8; outline-offset:2px; }
.dashboard-action-icon { display:inline-flex; flex:0 0 auto; }
.dashboard-action-icon svg { width:25px; height:25px; }
.dashboard-action-item > span:last-child { display:flex; flex-direction:column; min-width:0; }
.dashboard-action-item strong { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dashboard-action-item b { color:#f8fafc; font-size:20px; margin-top:3px; }
.dashboard-shot-filter-badge { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border:1px solid #0ea5e9; border-radius:5px; background:#075985; color:#fff; font-size:11.5px; font-weight:700; }
.dashboard-shot-filter-badge svg { width:14px; height:14px; }
.dashboard-shot-filter-badge button { min-width:20px; padding:0 4px; border:0; background:rgba(0,0,0,.24); color:#fff; }
.dashboard-insight-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.dashboard-recent-list { display:flex; flex-direction:column; }
.dashboard-recent-item { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:9px; min-height:42px; border-top:1px solid rgba(148,163,184,.12); }
.dashboard-recent-item:first-child { border-top:0; }
.dashboard-recent-dot { display:inline-flex; color:#38bdf8; }
.dashboard-recent-item strong,.dashboard-recent-item small { display:block; }
.dashboard-recent-item strong { color:#f8fafc; font-size:12px; }
.dashboard-recent-item small,.dashboard-recent-item time { color:#94a3b8; font-size:10.5px; }
.dashboard-trend-chart { height:174px; display:flex; align-items:flex-end; justify-content:space-around; gap:10px; padding:10px 6px 0; border-bottom:1px solid #334155; }
.dashboard-trend-column { height:150px; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:5px; }
.dashboard-trend-column b { color:#cbd5e1; font-size:11px; }
.dashboard-trend-column > span { width:min(30px,70%); min-height:4px; background:linear-gradient(180deg,#38bdf8,#2563eb); border-radius:4px 4px 0 0; }
.dashboard-trend-column small { color:#94a3b8; font-size:10px; }
@media (max-width: 1200px) { .dashboard-work-overview { grid-template-columns:1fr; } .dashboard-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-insight-grid { grid-template-columns:1fr; } }
@media (max-width: 640px) { .dashboard-action-grid { grid-template-columns:1fr; } }
@media (min-width: 1201px) and (max-height: 900px) {
  .dashboard-content-stack { gap:12px; }
  .dashboard-hero-section { margin:10px 0; }
  .dashboard-summary-card { min-height:140px; padding:14px 16px; }
  .dashboard-action-panel { padding:12px 14px; }
  .dashboard-action-item { padding:9px 12px; }
  .dashboard-section-heading { margin-bottom:9px; }
  .dashboard-recent-item { min-height:34px; }
  .dashboard-trend-chart { height:142px; }
  .dashboard-trend-column { height:120px; }
}
@media (min-width: 901px) and (max-height: 1100px) {
  .dashboard-content-stack { display:grid; grid-template-columns:1fr; gap:8px; }
  .dashboard-content-stack > .dashboard-hero-section,
  .dashboard-content-stack > section:nth-child(2),
  .dashboard-content-stack > .dashboard-vendor-status-panel { grid-column:1 / -1; }
  .dashboard-work-overview { grid-template-columns:minmax(0,4.5fr) minmax(0,2.75fr) minmax(0,2.75fr); gap:8px; }
  .dashboard-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-hero-section { margin:5px 0; }
  .dashboard-summary-card { min-height:105px; padding:9px 12px !important; }
  .dashboard-summary-icon svg { width:19px; height:19px; }
  .dashboard-summary-value-row { margin:4px 0 2px; }
  .dashboard-summary-card .dashboard-summary-value-row .summary-card-val { font-size:23px; }
  .dashboard-chart-panel { padding:9px 12px !important; }
  .dashboard-chart-panel .chart-panel-header { margin-bottom:8px !important; }
  .dashboard-pipeline-layout { gap:14px !important; }
  .dashboard-pipeline-layout .donut-chart-wrap { flex:0 0 100px; }
  .dashboard-pipeline-layout .donut-chart-svg { width:96px; height:96px; }
  .dashboard-pipeline-stage-grid > div { padding:8px 10px !important; gap:6px !important; }
  .dashboard-action-panel { padding:8px 10px; }
  .dashboard-action-item { padding:6px 9px; }
  .dashboard-section-heading { margin-bottom:7px; }
  .dashboard-insight-panel { padding:8px 10px; }
  .dashboard-recent-item { min-height:25px; }
  .dashboard-trend-chart { height:96px; }
  .dashboard-trend-column { height:78px; }
  .dashboard-vendor-status-panel { padding:8px 10px; }
  .dashboard-vendor-status-panel .chart-panel-header { margin-bottom:6px !important; }
  .dashboard-vendor-status-panel .dashboard-vendor-table th,
  .dashboard-vendor-status-panel .dashboard-vendor-table td { padding-top:3px; padding-bottom:3px; }
}
@media (min-width: 1201px) and (max-height: 760px) {
  .dashboard-content-stack { gap:8px; }
  .dashboard-hero-section { margin:6px 0; }
  .dashboard-summary-card { min-height:118px; padding:10px 14px; }
  .dashboard-summary-icon svg { width:20px; height:20px; }
  .dashboard-summary-value-row { margin:6px 0 3px; }
  .dashboard-action-panel { padding:9px 12px; }
  .dashboard-action-item { padding:7px 10px; }
  .dashboard-action-icon svg { width:21px; height:21px; }
  .dashboard-action-item b { font-size:17px; }
  .dashboard-chart-panel { padding:12px 16px !important; }
  .dashboard-insight-panel { padding:10px 12px; }
  .dashboard-recent-item { min-height:28px; }
  .dashboard-trend-chart { height:112px; }
  .dashboard-trend-column { height:92px; }
}

/* Charts Grid */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-chart-panel {
  padding: 16px;
  background: #191d26;
  border: 1px solid #2b3140;
  border-radius: 10px;
}

.chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.chart-panel-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

.chart-total-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #94a3b8;
}

/* Metric Card Headers & Icon Badges */
.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.metric-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.metric-icon-purple { color: #a855f7; background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.25); }
.metric-icon-blue { color: #3b82f6; background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.25); }
.metric-icon-cyan { color: #06b6d4; background: rgba(6, 182, 212, 0.14); border: 1px solid rgba(6, 182, 212, 0.25); }
.metric-icon-green { color: #10b981; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.25); }

.metric-card-purple:hover { border-color: rgba(168, 85, 247, 0.4); }
.metric-card-blue:hover { border-color: rgba(59, 130, 246, 0.4); }
.metric-card-cyan:hover { border-color: rgba(6, 182, 212, 0.4); }
.metric-card-green:hover { border-color: rgba(16, 185, 129, 0.4); }

/* Donut Chart Layout */
.donut-chart-layout {
  display: flex;
  align-items: center;
  gap: 20px;
}
.donut-chart-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex: 0 0 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-chart-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}
.donut-segment {
  fill: none;
  stroke-width: 10;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
}
.donut-chart-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.donut-chart-center strong {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}
.donut-chart-center span {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Stacked Bar */
.stacked-pipeline-bar {
  display: flex;
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  gap: 2px;
}

.stacked-bar-segment {
  height: 100%;
  transition: width 0.4s ease;
  min-width: 4px;
}

.status-legend-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}

.status-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
}

.legend-square {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
}

.legend-name {
  color: #cbd5e1;
}

.legend-count {
  margin-left: auto;
  color: #f8fafc;
  font-weight: 700;
}

.legend-pct {
  font-size: 11px;
  color: #64748b;
}

/* Horizontal Bars Detail */
.horizontal-bars-list {
  display: grid;
  gap: 8px;
}

.hbar-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.hbar-label-group {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.hbar-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
}

.hbar-raw-status {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

.hbar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.hbar-values {
  text-align: right;
}

.hbar-values strong {
  color: #f1f5f9;
}

.hbar-pct-label {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  color: #64748b;
}

/* Recent Activity Table */
.dashboard-activity-panel {
  padding: 16px;
  background: #191d26;
  border: 1px solid #2b3140;
  border-radius: 10px;
}

.dashboard-recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dashboard-recent-table th,
.dashboard-recent-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}

.dashboard-recent-table th {
  background: #14171d;
  color: #94a3b8;
  font-weight: 600;
}

.recent-shot-code {
  color: #38bdf8;
}

.task-type-badge {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  font-size: 11px;
  color: #cbd5e1;
}

.recent-status-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}

.table-progress-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.table-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.table-progress-val {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  width: 32px;
  text-align: right;
}

.version-pill {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
}

.recent-time-cell {
  color: #64748b;
  font-size: 11px;
}

.empty-chart-text {
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .dashboard-hero-section {
    grid-template-columns: 1fr;
  }
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-metric-cards {
    grid-template-columns: 1fr 1fr;
  }
  .status-legend-wrap {
    grid-template-columns: 1fr;
  }
  .hbar-row {
    grid-template-columns: 100px 1fr 60px;
  }
}

/* 알림 센터 팝오버 기본 (다크) 스타일 */
.navbar-notification-popover {
  background-color: #161b24;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.navbar-notification-popover-head {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.navbar-notification-title {
  color: #f8fafc;
}
.navbar-notification-mark-all {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.navbar-notification-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.navbar-notification-tab-bar {
  display: flex;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  padding: 4px 8px;
  gap: 6px;
}
.notification-tab-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.notification-tab-btn.active {
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}
.notification-tab-count {
  background: #38bdf8;
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.1;
}
.notification-tab-total {
  font-size: 10px;
  color: #64748b;
}
.notification-item {
  padding: 10px 12px;
  border-bottom: 1px solid #242c3d;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.notification-item.is-read {
  background: #161b24;
}
.notification-item.is-unread {
  background: rgba(56, 189, 248, 0.08);
}
.notification-item-title {
  font-size: 12px;
  color: #cbd5e1;
}
.notification-item.is-unread .notification-item-title {
  font-weight: 700;
  color: #38bdf8;
}
.notification-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  margin-top: 4px;
}
.notification-item-msg {
  margin: 2px 0 4px 0;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.4;
}
.notification-item-time {
  font-size: 10px;
  color: #64748b;
}
.notification-empty {
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

/* 📁 자료실 액션 버튼 (다운로드 / 삭제) 다크 테마 */
.attachment-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.attachment-action-btn.download {
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
}
.attachment-action-btn.download:hover {
  background: #26334d;
  border-color: #38bdf8;
  color: #7dd3fc;
}
.attachment-action-btn.delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.attachment-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.user-header .primary-button { min-width: 120px; }
.user-header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.user-header-actions button { min-height: 36px; padding: 7px 10px; color: #e5e7eb; background: #2a3040; border: 1px solid #3c4457; border-radius: 6px; cursor: pointer; }
.user-header-actions .primary-button { background: #2563eb; border-color: #3b82f6; }
.user-header-actions button:disabled { opacity: .55; cursor: default; }
.user-filter-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:.75rem 1rem; background:#0f172a; border:1px solid #1e293b; border-bottom:0; border-radius:8px 8px 0 0; }
.user-filter-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.user-filter-control { padding:6px 10px; color:#fff; background:#1e293b; border:1px solid #334155; border-radius:6px; font-size:12px; }
.user-filter-search { width:220px; padding-right:12px; padding-left:12px; }
.user-filter-total { color:#94a3b8; font-size:12px; }
.user-filter-total strong { color:#38bdf8; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.user-modal-overlay { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 23, .72); backdrop-filter: blur(5px); }
.user-modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; color: #e5e7eb; background: #0f172a; border: 1px solid #334155; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .48); }
.user-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #263449; }
.user-modal h2 { margin: 2px 0 0; color: #f8fafc; font-size: 20px; }
.user-modal-eyebrow { margin: 0; color: #22d3ee; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.user-modal-close { width: 32px; height: 32px; padding: 0; color: #cbd5e1; background: #1e293b; border: 1px solid #3b4a60; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; }
.user-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 18px; }
.user-field { display: grid; gap: 7px; color: #cbd5e1; font-size: 13px; font-weight: 700; }
.user-field > span { display: flex; gap: 6px; align-items: center; }
.user-field em { color: #22d3ee; font-style: normal; }
.user-field small { color: #94a3b8; font-size: 11px; font-weight: 500; }
.user-form input, .user-form select, .user-form textarea { box-sizing: border-box; width: 100%; padding: 10px 11px; color: #e5e7eb; background: #111827; border: 1px solid #384b63; border-radius: 8px; font: inherit; }
.user-form textarea { resize: vertical; line-height: 1.45; }
.user-password-modal { width:min(460px, 100%); }
.user-password-modal-desc { margin:16px 0 -4px; color:#94a3b8; font-size:12px; line-height:1.5; }
.user-form input:focus, .user-form select:focus, .user-form textarea:focus { outline: 2px solid rgba(34, 211, 238, .32); border-color: #22d3ee; }
.user-operation-note { margin-top: 3px; padding-top: 14px; border-top: 1px solid #263449; }
.user-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.user-form-actions button { min-height: 38px; padding: 8px 14px; }
.user-message { margin-top: 18px; }
.form-notice { padding: 11px; color: #d1fae5; background: #153a2b; border: 1px solid #276749; border-radius: 7px; }
.user-table-panel { margin-top: 20px; }
.user-import-result { margin-top: 20px; }
.user-table-wrap { overflow-x: auto; }
.user-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.user-table th, .user-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #292f3c; vertical-align: middle; }
.user-table th { color: #9aa4b5; background: #171b23; font-size: 13px; }
.user-table td { color: #dce2ed; }
.user-loading { padding: 20px; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.user-actions button { min-height: 34px; padding: 6px 9px; color: #e5e7eb; background: #2a3040; border: 1px solid #3c4457; border-radius: 6px; cursor: pointer; }
.user-actions button:disabled { opacity: .4; cursor: default; }
.status-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-badge.active { color: #d1fae5; background: #164e3a; }
.status-badge.inactive { color: #fecaca; background: #4b1f25; }
.role-tag { color: #f8fafc; font-weight: 700; }

@media (max-width: 900px) {
  .user-modal-overlay { padding: 12px; }
}

@media (max-width: 640px) {
  .user-header { grid-template-columns: 1fr; }
  .user-header .primary-button { width: 100%; }
  .user-header-actions { display: grid; grid-template-columns: 1fr; }
  .user-header-actions button { width: 100%; }
  .user-modal { padding: 16px; }
  .user-table-panel { background: transparent; border: 0; }
  .user-table-wrap { overflow: visible; }
  .user-table { min-width: 0; display: block; }
  .user-table thead { display: none; }
  .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; }
  .user-table tr { margin-bottom: 12px; padding: 12px; background: #1c202a; border: 1px solid #303542; border-radius: 10px; }
  .user-table td { padding: 7px 4px; border: 0; }
  .user-actions button { flex: 1 1 110px; }
}

:root[data-theme="light"] .user-modal-overlay { background: rgba(15, 23, 42, .38); }
:root[data-theme="light"] .user-modal { color: #1e293b; background: #ffffff; border-color: #cbd5e1; box-shadow: 0 24px 60px rgba(15, 23, 42, .2); }
:root[data-theme="light"] .user-modal h2 { color: #0f172a; }
:root[data-theme="light"] .user-modal-header, :root[data-theme="light"] .user-operation-note { border-color: #dbe5ef; }
:root[data-theme="light"] .user-modal-close { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
:root[data-theme="light"] .user-field { color: #334155; }
:root[data-theme="light"] .user-field small { color: #64748b; }
:root[data-theme="light"] .user-password-modal-desc { color:#52627a; }
:root[data-theme="light"] .user-form input, :root[data-theme="light"] .user-form select, :root[data-theme="light"] .user-form textarea { color: #0f172a; background: #f8fafc; border-color: #cbd5e1; }
:root[data-theme="light"] .user-filter-bar { background:#ffffff; border-color:#cbd5e1; }
:root[data-theme="light"] .user-filter-control { color:#172033; background:#f8fafc; border-color:#cbd5e1; }
:root[data-theme="light"] .user-filter-total { color:#52627a; }
:root[data-theme="light"] .user-filter-total strong { color:#0369a1; }
.project-header { align-items: flex-start; }
.spreadsheet-table .date-input-wrap.sheet-inline-input { display:block; height:auto; padding:0; background:transparent; border:0; }
.spreadsheet-table .date-input-wrap.sheet-inline-input > input[type="text"] { height:26px; padding:2px 24px 2px 4px !important; font-size:12px !important; color:#e2e8f0; background:#0f172a; border:1px solid #334155; border-radius:4px; text-align:center; }
.spreadsheet-table .date-input-wrap .date-input-picker-button { right:2px; width:20px; min-width:20px; height:20px; min-height:20px; padding:2px; }
.spreadsheet-table .date-input-wrap.sheet-inline-input > input[type="text"]:hover, .spreadsheet-table .date-input-wrap.sheet-inline-input > input[type="text"]:focus { background:#0d1117; border-color:#38bdf8; outline:0; }
.project-form-panel { margin-bottom: 20px; }
.project-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-form label { display: grid; gap: 7px; color: #cbd2df; font-size: 14px; font-weight: 700; }
.project-form input, .project-form select, .project-form textarea, .project-card-actions select,
.add-col-form input, .add-col-form select, .add-col-form textarea { width: 100%; padding: 9px 11px; color: #e5e7eb; background: #11151d; border: 1px solid #384052; border-radius: 7px; box-sizing: border-box; }
.project-form textarea, .add-col-form textarea { resize: vertical; min-height: 86px; font: inherit; }
.project-description-field { grid-column: 1 / -1; }
.project-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.project-form-actions button:not(.primary-button), .project-card-actions button { padding: 8px 12px; color: #e5e7eb; background: #2a3040; border: 1px solid #3c4457; border-radius: 6px; cursor: pointer; }
.project-form-actions button:disabled, .project-card-actions button:disabled, .project-card-actions select:disabled { opacity: .45; cursor: default; }
.project-message { margin-top: 18px; }
.form-notice { padding: 11px; color: #bbf7d0; background: #163526; border: 1px solid #2d6a48; border-radius: 7px; }
.project-list { display: grid; gap: 14px; margin-top: 24px; }
.project-loading { padding: 20px; }
.project-card { padding: 18px; background: #1c202a; border: 1px solid #303542; border-radius: 10px; }
.inactive-project { opacity: .62; }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.project-card-head h2 { margin-top: 5px; }
.project-code { color: #8fa7df; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.project-description { margin-top: 10px; }
.project-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.project-meta div { padding: 11px; background: #171b24; border-radius: 7px; }
.project-meta span { display: block; margin-bottom: 5px; color: #8f98a8; font-size: 12px; }
.project-meta strong { font-size: 14px; }
.project-card-actions { display: flex; align-items: end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.project-card-actions label { display: grid; min-width: 180px; gap: 5px; color: #9ea7b8; font-size: 12px; font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-badge.active { color: #bbf7d0; background: #163526; }
.status-badge.inactive { color: #fecaca; background: #4b1f25; }
.project-members-modal { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.project-members-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-members-head p { margin-top: 4px; color: #9ea7b8; }
.project-member-add { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; align-items: end; margin: 16px 0; padding: 12px; background: #171b24; border: 1px solid #303542; border-radius: 8px; }
.project-member-add label { display: grid; gap: 5px; color: #cbd2df; font-size: 13px; font-weight: 700; }
.project-member-add select, .project-members-table select { width: 100%; min-height: 34px; padding: 5px 8px; color: #e5e7eb; background: #11151d; border: 1px solid #384052; border-radius: 6px; }
.project-members-table-wrap { overflow-x: auto; border: 1px solid #303542; border-radius: 8px; }
.project-members-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.project-members-table th, .project-members-table td { padding: 4px 8px; text-align: left; border-right: 1px solid #303542; border-bottom: 1px solid #303542; }
.project-members-table th:last-child, .project-members-table td:last-child { border-right: 0; }
.project-members-table tbody tr:last-child td { border-bottom: 0; }
.project-members-table th { color: #cbd2df; background: #171b23; font-size: 12px; }
.project-members-table td { background: #1c202a; }

@media (max-width: 700px) {
  .project-form { grid-template-columns: 1fr; }
  .project-description-field, .project-form-actions { grid-column: auto; }
  .project-meta { grid-template-columns: 1fr; }
  .project-card-actions { align-items: stretch; flex-direction: column; }
  .project-card-actions label { min-width: 0; }
  .project-card-actions button { width: 100%; }
  .project-member-add { grid-template-columns: 1fr; }
}
.sequence-header { gap: 24px; }
.sequence-toolbar-panel { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sequence-project-select { display: grid; gap: 7px; min-width: 360px; }
.sequence-project-select select { width: 100%; }
.sequence-excel-actions, .sequence-form-actions, .sequence-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sequence-form-panel { margin-bottom: 18px; }
.sequence-form { display: grid; grid-template-columns: 1fr 1fr 180px; gap: 14px; }
.sequence-form label { display: grid; gap: 7px; }
.sequence-form input, .sequence-form textarea { width: 100%; }
.sequence-description-field, .sequence-form-actions { grid-column: 1 / -1; }
.sequence-message, .sequence-loading { margin: 14px 0; }
.sequence-table-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.sequence-table-wrap { overflow-x: auto; }
.sequence-table { border-collapse: collapse; min-width: 760px; width: 100%; }
.sequence-table th, .sequence-table td { border-bottom: 1px solid var(--border); padding: 12px 10px; text-align: left; vertical-align: top; }
.sequence-table th { color: var(--muted); font-size: 12px; }
.sequence-row-actions { justify-content: flex-end; white-space: nowrap; }
@media (max-width: 760px) {
  .sequence-toolbar-panel { flex-direction: column; }
  .sequence-project-select { min-width: 0; }
  .sequence-form { grid-template-columns: 1fr; }
  .sequence-description-field, .sequence-form-actions { grid-column: auto; }
  .sequence-table { min-width: 600px; }
}
/* ==========================================================================
   컴팩트 툴바 및 스프레드시트 스타일
   ========================================================================== */
.compact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  height: 28px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid #3c4457;
  background: #242936;
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.compact-btn:hover:not(:disabled) {
  background: #2e3547;
  border-color: #55627e;
  color: #fff;
}

.compact-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.compact-btn.btn-primary {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}
.compact-btn.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.compact-btn.btn-accent {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
}
.compact-btn.btn-accent:hover:not(:disabled) {
  background: #4338ca;
}

.compact-btn.btn-excel-import {
  background: #0f766e;
  border-color: #14b8a6;
  color: #fff;
}
.compact-btn.btn-excel-import:hover:not(:disabled) {
  background: #115e59;
}

.compact-btn.btn-excel-template {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}
.compact-btn.btn-excel-template:hover:not(:disabled) {
  background: #0369a1;
}

.compact-btn.btn-excel-export {
  background: #334155;
  border-color: #64748b;
  color: #fff;
}
.compact-btn.btn-excel-export:hover:not(:disabled) {
  background: #1e293b;
}

.compact-btn.btn-danger {
  background: #991b1b;
  border-color: #ef4444;
  color: #fff;
}

.sheet-cell-readonly {
  display: block;
  padding: 4px 8px;
  color: #94a3b8;
  font-size: 12px;
}

.client-qc-select {
  border-color: #818cf8 !important;
  background-color: #1e1b4b !important;
  color: #c7d2fe !important;
  font-weight: 600;
  border-radius: 4px;
}


.compact-select, .compact-input {
  min-height: 28px;
  height: 28px;
  padding: 2px 8px;
  font-size: 12px;
  background: #11151d;
  border: 1px solid #384052;
  border-radius: 5px;
  color: #f1f5f9;
}

.compact-select:focus, .compact-input:focus {
  outline: 1px solid #38bdf8;
  border-color: #38bdf8;
}

/* 툴바 레이아웃 */
.shot-compact-toolbar {
  padding: 10px 14px;
  margin-top: 14px;
  margin-bottom: 12px;
  background: #181c24;
  border: 1px solid #2b3140;
  border-radius: 8px;
}

.toolbar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-select-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-select-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.toolbar-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 380px;
}

.search-input {
  flex: 1;
  min-width: 140px;
}

.status-filter-select {
  width: 110px;
}

.toolbar-action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 일괄 작업 바 */
.toolbar-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(56, 189, 248, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
}

.batch-selected-count {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.batch-action-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-status-select {
  min-width: 140px;
}

/* ==========================================================================
   구글 시트형 스프레드시트 테이블
   ========================================================================== */
.spreadsheet-panel {
  background: #14171f;
  border: 1px solid #2b3140;
  border-radius: 8px;
  overflow: hidden;
}

.spreadsheet-container {
  overflow-x: auto;
  overflow-y: auto;
  width: 100%;
  max-height: calc(100vh - 240px);
}

.spreadsheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}

.spreadsheet-table th,
.spreadsheet-table td {
  padding: 0;
  border-right: 1px solid #262c39;
  border-bottom: 1px solid #262c39;
  white-space: nowrap;
}

.spreadsheet-table th {
  background: #10131a;
  color: #94a3b8;
  font-weight: 600;
  padding: 6px 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid #384052;
  user-select: none;
}

.th-sticky-check, .td-sticky-check {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  text-align: center;
  background: #10131a;
  z-index: 11;
}

.td-sticky-check {
  background: #14171f;
  z-index: 5;
}

.th-sticky-code, .td-sticky-code {
  background: #10131a;
  z-index: 11;
}

.td-sticky-code {
  background: #14171f;
  padding: 4px 8px;
  z-index: 5;
}

.sheet-shot-code {
  color: #38bdf8;
  font-size: 12px;
  font-family: monospace;
}

.th-custom-column {
  background: #131b28 !important;
}

.custom-th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 130px;
}

.cf-name-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e2e8f0;
}

.cf-name-label:hover {
  color: #38bdf8;
}

.cf-rename-input {
  background: #0d1117;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  width: 110px;
}

.cf-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.custom-th-content:hover .cf-header-actions {
  opacity: 1;
}

.btn-cf-move, .btn-cf-edit, .btn-cf-del {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 10px;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 3px;
}

.btn-cf-move:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.btn-cf-edit:hover {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
}

.btn-cf-del:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.cf-badge {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(147, 51, 234, 0.25);
  color: #d8b4fe;
  border: 1px solid rgba(147, 51, 234, 0.4);
  margin-right: 4px;
}


/* 인라인 입력 필드 */
.sheet-inline-input,
.sheet-inline-select {
  width: 100%;
  height: 28px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #f1f5f9;
  font-size: 12px;
  box-sizing: border-box;
}

.sheet-inline-input:hover,
.sheet-inline-select:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.sheet-inline-input:focus,
.sheet-inline-select:focus {
  outline: none;
  background: #0d1117;
  border-color: #38bdf8;
  box-shadow: inset 0 0 0 1px #38bdf8;
}

.status-select-cell {
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  width: calc(100% - 6px);
  margin: 2px 3px;
  height: 24px;
  border: 1px solid !important;
}

.sheet-progress-wrap {
  display: flex;
  align-items: center;
  padding-right: 6px;
}

.progress-num-input {
  text-align: right;
  width: 50px;
}

.pct-sign {
  font-size: 11px;
  color: #64748b;
}

.num-input {
  text-align: right;
}

.date-input {
  font-size: 11px;
}

.custom-field-input {
  color: #e2e8f0;
}

.note-input {
  color: #cbd5e1;
}

.empty-sheet-cell {
  padding: 48px 16px !important;
  text-align: center !important;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.01);
}


.td-actions {
  text-align: center;
  padding: 4px 8px !important;
}

.sheet-action-btn {
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid #384052;
  background: #1e2430;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.shot-mini-btn {
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid #3b4252;
  background: #1f2533;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}
.shot-mini-btn:hover {
  background: #2b3548;
  color: #38bdf8;
  border-color: #38bdf8;
}


.sheet-action-btn:hover {
  background: #2b3344;
  color: #fff;
  border-color: #4b5563;
}

.sheet-action-btn.btn-members {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.35);
}
.sheet-action-btn.btn-members:hover {
  background: rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
}

.sheet-action-btn.btn-edit {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
}
.sheet-action-btn.btn-edit:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.sheet-action-btn.btn-del {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}
.sheet-action-btn.btn-del:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.sheet-del-btn {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
}


.sheet-del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.spreadsheet-table tr:hover td {
  background: #1a1e28;
}

.spreadsheet-table tr:hover .td-sticky-check,
.spreadsheet-table tr:hover .td-sticky-code {
  background: #1a1e28;
}

.row-selected td {
  background: rgba(56, 189, 248, 0.08) !important;
}

.empty-sheet-cell {
  padding: 30px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* 추가 모달 */
.add-col-modal {
  max-width: 420px;
}

.add-col-form {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.add-col-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #cbd5e1;
}

.add-col-form input,
.add-col-form select {
  padding: 6px 10px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
}


/* ==========================================================================
   Shotgun 스타일 동적 엑셀 가져오기 모달
   ========================================================================== */
.shot-import-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  box-sizing: border-box;
}

.shot-import-modal-container {
  background: #1e222b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #e2e8f0;
  overflow: hidden;
}

.shot-import-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #181b22;
}

.shot-import-modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
}

.shot-import-seq-badge {
  margin-left: 10px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.shot-modal-close-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.shot-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Light theme: import, project, sequence, attachment and shot-detail surfaces. */
:root[data-theme="light"] .shot-import-modal-overlay, :root[data-theme="light"] .shot-modal-backdrop, :root[data-theme="light"] .modal-backdrop { background:rgba(15,23,42,.35); }
:root[data-theme="light"] .shot-import-modal-container, :root[data-theme="light"] .shot-modal-window, :root[data-theme="light"] .modal-card { background:#ffffff; color:#1e293b; border-color:#cbd5e1; box-shadow:0 20px 40px rgba(15,23,42,.18); }
:root[data-theme="light"] .shot-import-modal-header, :root[data-theme="light"] .shot-import-stepper, :root[data-theme="light"] .modal-header-box, :root[data-theme="light"] .modal-footer-box { background:#f7fafc; border-color:#d7e0e8; color:#1e293b; }
:root[data-theme="light"] .shot-import-modal-container input, :root[data-theme="light"] .shot-import-modal-container select, :root[data-theme="light"] .shot-import-modal-container textarea, :root[data-theme="light"] .shot-modal-window input, :root[data-theme="light"] .shot-modal-window select, :root[data-theme="light"] .shot-modal-window textarea { background:#ffffff !important; color:#1e293b !important; border-color:#cbd5e1 !important; }
:root[data-theme="light"] .shot-import-modal-container table th, :root[data-theme="light"] .shot-import-modal-container table td, :root[data-theme="light"] .spreadsheet-table th, :root[data-theme="light"] .spreadsheet-table td { border-color:#d7e0e8; color:#1e293b; }
:root[data-theme="light"] .shot-import-modal-container table th, :root[data-theme="light"] .spreadsheet-table th { background:#e8f1f7; color:#334155; }
:root[data-theme="light"] .spreadsheet-panel, :root[data-theme="light"] .sheet-toolbar, :root[data-theme="light"] .modal-info-item, :root[data-theme="light"] .modal-feedback-form-box, :root[data-theme="light"] .modal-timeline-card { background:#ffffff; color:#1e293b; border-color:#d7e0e8; }
:root[data-theme="light"] .modal-tab-nav { border-color:#d7e0e8; }
:root[data-theme="light"] .modal-tab-btn, :root[data-theme="light"] .modal-info-label, :root[data-theme="light"] .modal-timeline-card-text { color:#475569; }
:root[data-theme="light"] .modal-tab-btn.active { color:#0e7490; border-color:#0e7490; }
:root[data-theme="light"] .shot-modal-close-btn, :root[data-theme="light"] .modal-close-btn { color:#475569; }
:root[data-theme="light"] .shot-modal-close-btn:hover, :root[data-theme="light"] .modal-close-btn:hover { background:#e8f1f7; color:#0f172a; }

.shot-import-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #14171d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.shot-import-stepper .step-item {
  background: transparent;
  border: 0;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.shot-import-stepper .step-item.active {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
}

.shot-import-stepper .step-item.done {
  color: #94a3b8;
}

.shot-import-stepper .step-arrow {
  color: #475569;
  font-size: 11px;
}

.shot-import-error-banner {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.18);
  border-bottom: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 13px;
}

.shot-import-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Step 1: Dropzone */
.shot-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.shot-dropzone:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.04);
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.shot-dropzone h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.shot-dropzone p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
}

.dropzone-btn {
  pointer-events: none;
}

.file-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 16px;
}

.file-icon {
  font-size: 24px;
}

.file-meta strong {
  display: block;
  font-size: 14px;
}

.file-meta span {
  font-size: 12px;
  color: #94a3b8;
}

.text-button {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.sheet-config-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 12px;
  align-items: end;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.sheet-config-grid label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.sheet-config-grid select,
.sheet-config-grid input {
  padding: 7px 10px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
}

.sheet-summary-badge {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  padding-bottom: 8px;
}

.sheet-summary-badge strong {
  color: #38bdf8;
}

.sample-data-preview h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.sample-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  max-height: 180px;
}

.sample-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sample-table th,
.sample-table td {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.sample-table th {
  background: #14171d;
  color: #94a3b8;
}

/* Step 2: Mapping */
.mapping-notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #bae6fd;
}

.mapping-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mapping-table th,
.mapping-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.mapping-table th {
  background: #14171d;
  font-weight: 600;
  color: #94a3b8;
}

.auto-match-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sample-val-cell {
  color: #94a3b8;
  font-size: 12px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapping-table select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 13px;
}

.mapping-table select.select-mapped {
  border-color: #38bdf8;
  color: #f1f5f9;
  font-weight: 500;
}

.mapping-cell-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mapping-cell-wrap select {
  flex: 1;
}

.select-mapped-custom {
  border-color: #a855f7 !important;
  color: #e9d5ff !important;
  background: rgba(168, 85, 247, 0.12) !important;
  font-weight: 600 !important;
}

.custom-field-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.btn-quick-create-cf {
  background: rgba(168, 85, 247, 0.15);
  border: 1px dashed rgba(168, 85, 247, 0.5);
  color: #c084fc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-quick-create-cf:hover {
  background: #9333ea;
  border-color: #a855f7;
  color: #fff;
}

.row-required-field {
  background: rgba(34, 197, 94, 0.04);
}


/* Step 3: Preview */
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-badges {
  display: flex;
  gap: 8px;
}

.stat-badges .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-total { background: rgba(255, 255, 255, 0.1); color: #f1f5f9; }
.badge-valid { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.badge-dup { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.badge-error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.duplicate-policy-select {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
}

.duplicate-policy-select .policy-label {
  color: #94a3b8;
  font-weight: 600;
}

.duplicate-policy-select label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.preview-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-height: 400px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.preview-table th,
.preview-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.preview-table th {
  background: #14171d;
  color: #94a3b8;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cell-warning-msg { margin-top:3px; color:#f59e0b; font-size:11px; white-space:normal; }
:root[data-theme="light"] .cell-warning-msg { color:#b45309; }

.action-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.action-badge.badge-create { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.action-badge.badge-update { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.action-badge.badge-skip { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.action-badge.badge-error { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

.row-action-error {
  background: rgba(239, 68, 68, 0.08);
}

.cell-error-msg {
  font-size: 11px;
  color: #fca5a5;
  margin-top: 2px;
}

.status-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.preview-more-notice {
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  background: #14171d;
}

/* Step 4: Result */
.shot-step-result {
  text-align: center;
  padding: 20px 0;
}

.result-icon-large {
  font-size: 48px;
  margin-bottom: 8px;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 24px auto;
}

.stat-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card .stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-card .stat-num.created { color: #4ade80; }
.stat-card .stat-num.updated { color: #38bdf8; }
.stat-card .stat-num.skipped { color: #facc15; }
.stat-card .stat-num.error { color: #f87171; }

.stat-card .stat-name {
  font-size: 13px;
  color: #94a3b8;
}

.result-errors-box {
  max-width: 600px;
  margin: 20px auto 0;
  text-align: left;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
}

.result-errors-box h4 {
  margin: 0 0 6px;
  color: #fca5a5;
  font-size: 13px;
}

.result-errors-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: #fca5a5;
}

/* Modal Footer */
.shot-import-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #181b22;
}

.shot-import-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   구글 시트 스타일 스프레드시트 뷰 & 컬럼 리사이즈 스타일
   ========================================================================== */
.shot-management-page {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #e2e8f0;
}

.sheet-toolbar {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar-selectors {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toolbar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.toolbar-label select {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-row {
  border-top: 1px solid #334155;
  padding-top: 0.6rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.search-input {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #f8fafc;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  min-width: 260px;
  flex: 1;
  max-width: 450px;
}

.filter-select {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #f8fafc;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.shot-count-info {
  font-size: 0.85rem;
  color: #94a3b8;
}

.batch-action-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e3a5f;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #93c5fd;
}

.batch-action-bar select {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.spreadsheet-container {
  background: #131b2e;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: auto;
  max-height: calc(100vh - 280px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed;
}

.spreadsheet-table th {
  background: #0f172a;
  color: #94a3b8;
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #334155;
  border-right: 1px solid #232d42;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
  user-select: none;
}

.col-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  overflow: hidden;
}

.col-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

.col-rename-input {
  background: #0f172a;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  color: #f8fafc;
  padding: 2px 4px;
  font-size: 0.8rem;
  width: 100%;
}

.col-del-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0 3px;
  font-size: 0.75rem;
  border-radius: 3px;
  line-height: 1;
}

.col-del-btn:hover {
  background: #7f1d1d;
  color: #fca5a5;
}

.col-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: col-resize;
  background: transparent;
  transition: background 0.15s;
}

.col-resize-handle:hover,
.col-resize-handle.active {
  background: #38bdf8;
}

.spreadsheet-table td {
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid #1e293b;
  border-right: 1px solid #1a2234;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #131b2e;
}

.spreadsheet-table tr:hover td {
  background: #1e293b;
}

.spreadsheet-table tr.selected-row td {
  background: #172554 !important;
}

.sheet-inline-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #f8fafc;
  padding: 0.3rem 0.4rem;
  font-size: 0.82rem;
  box-sizing: border-box;
  transition: all 0.15s;
}

.sheet-inline-input:hover {
  border-color: #334155;
  background: #0f172a;
}

.sheet-inline-input:focus {
  background: #0f172a;
  border-color: #38bdf8;
  outline: none;
}

.sheet-inline-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #f8fafc;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
}

/* SIR 게시판 스타일 샷 관리 전용 레이아웃 & 테이블 (미리보기 100% 일치) */
.sir-shot-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #090d16;
}

.sir-shot-toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  background: #0b0f19 !important;
  border-bottom: 1px solid #1e293b !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.sir-toolbar-left {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.sir-toolbar-right {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

/* 🎬 샷 상세 & 검수 피드백 화면 정중앙 팝업 모달 윈도우 */
.shot-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  overflow-y: auto !important;
}

.shot-modal-window {
  position: relative !important;
  width: 100% !important;
  max-width: 680px !important;
  max-height: 88vh !important;
  background: #0b0f19 !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  color: #e2e8f0 !important;
  z-index: 100000 !important;
  margin: auto !important;
}

.sir-table-scroll-container {
  flex: 1;
  overflow: auto;
  min-height: 0;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-left: 16px;
  margin-right: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* 🎨 다크 테마 커스텀 스크롤바 */
.sir-table-scroll-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sir-table-scroll-container::-webkit-scrollbar-track {
  background: #0b0f19;
  border-radius: 4px;
}

.sir-table-scroll-container::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
  border: 1px solid #1e293b;
}

.sir-table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

.sir-board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.sir-board-table thead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0f172a;
}

.sir-board-table thead tr {
  height: 38px;
  border-bottom: 2px solid #475569;
}

.sir-board-table th {
  padding: 6px 8px;
  color: #f1f5f9;
  font-weight: 600;
  border-right: 1px solid #334155;
  user-select: none;
  background: #0f172a;
}

.sir-board-table th:last-child {
  border-right: none;
}

.sir-board-table tbody tr {
  height: 36px;
  border-bottom: 1px solid #242c3d;
  transition: background-color 0.15s ease;
}

.sir-board-table tbody tr.row-even {
  background: #0b0f19;
}

.sir-board-table tbody tr.row-odd {
  background: #111827;
}

.sir-board-table tbody tr:hover {
  background: #1e293b !important;
}

.sir-board-table tbody tr.row-selected {
  background: rgba(8, 145, 178, 0.25) !important;
}

.sir-board-table td {
  padding: 4px 6px;
  border-right: 1px solid #242c3d;
  color: #cbd5e1;
  vertical-align: middle;
}

.sir-board-table td:last-child {
  border-right: none;
}

.sir-inline-input {
  width: 100%;
  background: #050811 !important;
  color: #38bdf8 !important;
  border: 1px solid #38bdf8 !important;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.sir-progress-input {
  width: 48px;
  background: #050811 !important;
  color: #38bdf8 !important;
  border: 1px solid #334155 !important;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 11px;
  text-align: center;
  font-family: monospace;
  font-weight: bold;
}

/* ==========================================================================
   🎬 샷 상세 & 검수 피드백 중앙 팝업 모달 전용 순수 CSS (Tailwind 무의존 완벽 렌더링)
   ========================================================================== */
.modal-header-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: #070a13 !important;
  border-bottom: 1px solid #1e293b !important;
}

.modal-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.modal-shot-title {
  font-family: monospace !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  letter-spacing: -0.5px !important;
}

.modal-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: 1px solid #334155 !important;
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

.modal-badge-cyan {
  background: rgba(8, 145, 178, 0.2) !important;
  border-color: rgba(8, 145, 178, 0.6) !important;
  color: #38bdf8 !important;
  font-family: monospace !important;
}

.modal-badge-status {
  padding: 2px 10px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
}

.modal-close-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s !important;
}

.modal-close-btn:hover {
  background: #1e293b !important;
  color: #f8fafc !important;
}

/* 탭 네비게이션 바 */
.modal-tab-nav {
  display: flex !important;
  gap: 16px !important;
  padding: 0 20px !important;
  background: #090d16 !important;
  border-bottom: 1px solid #1e293b !important;
}

.modal-tab-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 12px 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.modal-tab-btn:hover {
  color: #f1f5f9 !important;
}

.modal-tab-btn.active {
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
}

.modal-tab-count {
  padding: 1px 6px !important;
  background: #1e293b !important;
  color: #38bdf8 !important;
  font-family: monospace !important;
  font-size: 10px !important;
  border-radius: 9999px !important;
}

/* 본문 컨텐츠 영역 */
.modal-body-content {
  flex: 1 !important;
  padding: 20px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* 피드백 작성 카드 */
.modal-feedback-form-box {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.modal-feedback-form-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
}

.modal-feedback-form-title {
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.modal-feedback-type-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #070a13 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #1e293b !important;
}

.modal-radio-label {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  cursor: pointer !important;
  color: #cbd5e1 !important;
}

.modal-textarea {
  width: 100% !important;
  background: #070a13 !important;
  border: 1px solid #334155 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  color: #f1f5f9 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  outline: none !important;
  resize: none !important;
  box-sizing: border-box !important;
}

.modal-textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

.modal-submit-btn {
  align-self: flex-end !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 16px !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}

.modal-submit-btn:hover {
  background: #0369a1 !important;
}

.modal-submit-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* 타임라인 카드 리스트 */
.modal-timeline-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: relative !important;
  padding-left: 20px !important;
}

.modal-timeline-list::before {
  content: '' !important;
  position: absolute !important;
  left: 6px !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 2px !important;
  background: #1e293b !important;
}

.modal-timeline-card {
  position: relative !important;
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  font-size: 12px !important;
}

.modal-timeline-dot {
  position: absolute !important;
  left: -19px !important;
  top: 14px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  border: 2px solid #0b0f19 !important;
  background: #38bdf8 !important;
}

.modal-timeline-dot.resolved {
  background: #10b981 !important;
}

.modal-timeline-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #1e293b !important;
  padding-bottom: 6px !important;
}

.modal-timeline-card-user {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.modal-timeline-card-text {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  white-space: pre-wrap !important;
  margin: 0 !important;
}

.modal-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.modal-info-item {
  background: #070a13 !important;
  border: 1px solid #1e293b !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.modal-info-label {
  font-size: 10px !important;
  color: #64748b !important;
}

.modal-info-value {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

/* 모달 푸터 */
.modal-footer-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
  background: #070a13 !important;
  border-top: 1px solid #1e293b !important;
}

.modal-close-action-btn {
  padding: 6px 18px !important;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 6px !important;
  color: #e2e8f0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.modal-close-action-btn:hover {
  background: #334155 !important;
}

/* Current workflow is a compact action strip; full exchanges remain in the timeline. */
.modal-workflow-box { margin: 12px 20px 0; padding: 10px 12px; background: #0b1628; border: 1px solid #25415b; border-radius: 8px; }
.modal-workflow-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; color: #94a3b8; font-size: 11px; }
.modal-workflow-status strong { color: #cbd5e1; font-weight: 700; }
.modal-workflow-status span { padding: 2px 7px; color: #67e8f9; background: #123047; border-radius: 999px; font-weight: 700; }
.modal-workflow-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 9px; }
.modal-workflow-controls input { min-width: 0; padding: 7px 9px; color: #e2e8f0; background: #111827; border: 1px solid #334155; border-radius: 6px; font-size: 12px; }
.modal-workflow-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-workflow-actions button { padding: 6px 9px; color: #cffafe; background: #164e63; border: 1px solid #0891b2; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.modal-workflow-actions button:disabled { opacity: .45; cursor: default; }
.modal-workflow-waiting { margin: 7px 0 0; color: #94a3b8; font-size: 12px; }
:root[data-theme="light"] .modal-workflow-box { background: #f0f9ff; border-color: #bae6fd; }
:root[data-theme="light"] .modal-workflow-status strong { color: #334155; }
:root[data-theme="light"] .modal-workflow-controls input { color: #0f172a; background: #fff; border-color: #cbd5e1; }

.sheet-del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   그누보드 스타일 한국형 표준 게시판 CSS
   ========================================================================== */
.board-container {
  max-width: 100%;
}

.board-header-bar select,
.board-header-bar input {
  transition: all 0.15s ease;
}

.board-container table th {
  letter-spacing: 0.02em;
}

.board-container table td {
  vertical-align: middle;
}

.board-container tr:hover td {
  background-color: rgba(30, 41, 59, 0.5) !important;
}

.board-footer-bar button:not(:disabled):hover {
  transition: all 0.15s ease;
}
.task-management-panel { display: grid; gap: 12px; }
.task-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.task-selectors label, .task-form label { display: grid; gap: 4px; font-size: 13px; }
.task-selectors select, .task-form input, .task-form select, .task-form textarea { width: 100%; }
.task-table { display: grid; gap: 1px; overflow-x: auto; border: 1px solid #303542; border-radius: 8px; background: #303542; }
.task-row { min-width: 1220px; display: grid; grid-template-columns: 1.15fr 1.1fr 1.2fr 1fr .7fr .7fr .6fr .8fr 1.2fr; gap: 8px; align-items: center; padding: 6px 8px; color: #e5e7eb; background: #1c202a; line-height: 1.25; }
.task-head { color: #cbd2df; background: #171b23; font-weight: 700; }
.task-row input, .task-row select { width: 100%; min-height: 32px; padding: 4px 7px; color: #e5e7eb; background: #11151d; border: 1px solid #384052; border-radius: 5px; }
.task-row input:disabled, .task-row select:disabled { opacity: .65; }
.task-row input:focus, .task-row select:focus { outline: 2px solid #5e84e8; outline-offset: 1px; }
.task-form { display: grid; gap: 10px; }
@media (max-width: 800px) { .task-selectors { grid-template-columns: 1fr; } .task-row { min-width: 1040px; } }
.review-management-panel { display: grid; gap: 16px; }
.review-selectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.review-selectors label, .review-form label { display: grid; gap: 6px; font-size: 13px; }
.review-selectors select, .review-form textarea { width: 100%; }
.review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #405276;
  border-left: 4px solid #84a6ff;
  border-radius: 10px;
  background: #182235;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.review-task-name { margin-right: 4px; font-size: 16px; color: #f8fafc; }
.review-status-badge, .review-version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #52627d;
  background: #253149;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
}
.review-version-badge { color: #dbeafe; border-color: #5272a8; background: #1d3152; }
.review-status-badge.status-changes_requested { color: #ffd8a8; border-color: #a86724; background: #4b2d12; }
.review-status-badge.status-approved, .review-status-badge.status-done { color: #bbf7d0; border-color: #397453; background: #173c2a; }
.review-status-badge.status-working, .review-status-badge.status-review { color: #dbeafe; border-color: #5272a8; background: #1d3152; }
.review-history { display: grid; overflow-x: auto; border: 1px solid #343b49; border-radius: 8px; background: #171b24; }
.review-history-row { min-width: 820px; display: grid; grid-template-columns: 1.2fr .6fr .7fr 1.3fr 2fr; align-items: stretch; border-bottom: 1px solid #343b49; }
.review-history-row:last-child { border-bottom: 0; }
.review-history-row > span { min-width: 0; padding: 9px 12px; display: flex; align-items: center; border-right: 1px solid #343b49; }
.review-history-row > span:last-child { border-right: 0; }
.review-history-head { font-weight: 700; color: #cbd5e1; background: #1d222d; }
.review-form { display: grid; gap: 12px; }
@media (max-width: 900px) { .review-selectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .review-selectors { grid-template-columns: 1fr; } .review-summary { align-items: flex-start; } }
.settings-page { display: grid; gap: 16px; }
.settings-header { display: grid; gap: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-card { margin-top: 0; display: grid; align-content: start; gap: 12px; }
.settings-card p { line-height: 1.45; }
.settings-account-list { margin: 0; display: grid; border: 1px solid #303746; border-radius: 8px; overflow: hidden; }
.settings-account-list > div { display: grid; grid-template-columns: 120px 1fr; min-height: 38px; border-bottom: 1px solid #303746; }
.settings-account-list > div:last-child { border-bottom: 0; }
.settings-account-list dt, .settings-account-list dd { margin: 0; padding: 9px 11px; }
.settings-account-list dt { color: #9ea7b8; background: #171b23; font-weight: 700; border-right: 1px solid #303746; }
.settings-account-list dd { color: #e5e7eb; background: #1b202a; }
.settings-field { display: grid; gap: 6px; color: #cbd2df; font-weight: 700; }
.settings-field select, .settings-password-form input { width: 100%; padding: 7px 9px; color: #e5e7eb; background: #11151d; border: 1px solid #384052; border-radius: 7px; }
.settings-field small { color: #9ea7b8; font-weight: 400; }
.settings-password-card { grid-column: 1 / -1; }
.settings-password-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.settings-password-form label { display: grid; gap: 6px; color: #cbd2df; font-size: 13px; font-weight: 700; }
.settings-password-form button { min-width: 130px; }
.settings-notice { padding: 9px 11px; color: #bbf7d0; background: #173c2a; border: 1px solid #397453; border-radius: 7px; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } .settings-password-card { grid-column: auto; } .settings-password-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .settings-password-form { grid-template-columns: 1fr; } .settings-account-list > div { grid-template-columns: 100px 1fr; } }
.company-management-page { display: grid; gap: 16px; }
.company-management-header { display: grid; gap: 4px; }
.company-form { margin-top: 0; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) auto; gap: 10px; align-items: end; }
.company-form h2 { grid-column: 1 / -1; }
.company-form label { display: grid; gap: 6px; color: #cbd2df; font-size: 13px; font-weight: 700; }
.company-form input { width: 100%; padding: 7px 9px; color: #e5e7eb; background: #11151d; border: 1px solid #384052; border-radius: 7px; }
.company-form-actions { display: flex; gap: 6px; }
.company-form-actions button, .company-row-actions button { min-height: 34px; padding: 6px 10px; color: #e5e7eb; background: #2a3040; border: 1px solid #3c4457; border-radius: 6px; cursor: pointer; }
.company-table-panel { overflow-x: auto; }
.company-table { min-width: 720px; display: grid; grid-template-columns: 2fr 1fr .8fr 1.2fr; align-items: center; }
.company-table > span { min-width: 0; padding: 8px 10px; border-right: 1px solid #303746; }
.company-table > span:last-child { border-right: 0; }
.company-table-head { color: #9aa4b5; background: #171b23; font-weight: 700; border-bottom: 1px solid #303746; }
.company-table-row { border-bottom: 1px solid #303746; }
.company-table-row:last-child { border-bottom: 0; }
.company-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.company-status { font-weight: 700; }
.company-status.active { color: #bbf7d0; }
.company-status.inactive { color: #fca5a5; }
.company-empty { padding: 18px; }
.company-notice { padding: 9px 11px; color: #bbf7d0; background: #173c2a; border: 1px solid #397453; border-radius: 7px; }
@media (max-width: 760px) { .company-form { grid-template-columns: 1fr; } .company-form h2 { grid-column: auto; } .company-form-actions { justify-content: flex-start; } }
/*
 * Light theme final layer.  Component styles intentionally keep their dark
 * palette close to each feature; this file is loaded last so a light theme is
 * a complete palette, not a mixture of dark table surfaces and white inputs.
 */
:root[data-theme="light"] {
  --app-bg: #edf3f8;
  --surface-1: #ffffff;
  --surface-2: #f7fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --grid-bg: #ffffff;
  --grid-head: #e8f1f7;
  --text: #0f172a;
  --muted-text: #334155;
  --text-muted: #334155;
  --border: #cbd5e1;
}

:root[data-theme="light"] body,
:root[data-theme="light"] .top-nav-layout,
:root[data-theme="light"] .main-content-full,
:root[data-theme="light"] .shot-table-page,
:root[data-theme="light"] .sir-shot-layout {
  background: var(--app-bg) !important;
  color: var(--text);
}

/* Shared controls and navigation */
:root[data-theme="light"] button:not(.btn-primary):not(.btn-danger):not(.btn-delete-col),
:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
  color: #172033;
  background: #ffffff;
  border-color: #cbd5e1;
}
:root[data-theme="light"] select,
:root[data-theme="light"] select option,
:root[data-theme="light"] select optgroup {
  color: #172033 !important;
  background: #ffffff !important;
}
:root[data-theme="light"] select option:checked { color: #ffffff !important; background: #0369a1 !important; }
:root[data-theme="light"] button:not(.btn-primary):not(.btn-danger):not(.btn-delete-col):hover:not(:disabled) { background: #f1f5f9; border-color: #94a3b8; color: #0f172a; }
:root[data-theme="light"] .top-navbar,
:root[data-theme="light"] .workspace-sidebar { background: #ffffff; border-color: #cbd5e1; box-shadow: none; }
:root[data-theme="light"] .workspace-menu-title,
:root[data-theme="light"] .sidebar-menu-item { color: #475569; }
:root[data-theme="light"] .sidebar-edge-toggle { color:#475569; background:#ffffff; border-color:#94a3b8; box-shadow:0 2px 7px rgba(15,23,42,.12); }
:root[data-theme="light"] .sidebar-edge-toggle:hover { color:#075985; background:#e0f2fe; border-color:#38bdf8; }
:root[data-theme="light"] .sidebar-menu-item:hover { color: #0f172a; background: #f1f5f9; }
:root[data-theme="light"] .sidebar-menu-item.active { color: #0369a1; background: #e0f2fe; box-shadow: inset 3px 0 #0ea5e9; }
:root[data-theme="light"] .sidebar-brand-text { color: #0f172a; }
:root[data-theme="light"] .sidebar-brand,
:root[data-theme="light"] .navbar-logo-symbol { background:transparent !important; box-shadow:none !important; }
:root[data-theme="light"] .navbar-logo-symbol { filter:none !important; }
.bc-logo-symbol-theme-aware .bc-logo-symbol-light { display: none; }
:root[data-theme="light"] .bc-logo-symbol-theme-aware .bc-logo-symbol-dark { display: none; }
:root[data-theme="light"] .bc-logo-symbol-theme-aware .bc-logo-symbol-light { display: block; }
:root[data-theme="light"] .navbar-user-badge { color: #334155; background: #f8fafc; border-color: #cbd5e1; }
:root[data-theme="light"] .navbar-notification-button {
  color: #334155 !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .navbar-notification-button:hover { background: #f1f5f9 !important; border-color: #94a3b8 !important; }
:root[data-theme="light"] .navbar-notification-popover {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18) !important;
}
:root[data-theme="light"] .navbar-notification-list {
  background-color: #ffffff !important;
}
:root[data-theme="light"] .navbar-notification-popover-head {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
:root[data-theme="light"] .navbar-notification-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}
:root[data-theme="light"] .navbar-notification-mark-all {
  color: #0284c7 !important;
}
:root[data-theme="light"] .navbar-notification-close {
  color: #64748b !important;
}
:root[data-theme="light"] .navbar-notification-close:hover {
  color: #0f172a !important;
}
:root[data-theme="light"] .navbar-notification-tab-bar {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
:root[data-theme="light"] .notification-tab-btn {
  color: #475569 !important;
  background: transparent !important;
  border-color: transparent !important;
}
:root[data-theme="light"] .notification-tab-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .notification-tab-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3) !important;
}
:root[data-theme="light"] .notification-tab-btn.active .notification-tab-count {
  background: #ffffff !important;
  color: #0284c7 !important;
}
:root[data-theme="light"] .notification-tab-total {
  color: #64748b !important;
}
:root[data-theme="light"] .notification-tab-btn.active .notification-tab-total {
  color: #e0f2fe !important;
}
:root[data-theme="light"] .notification-item {
  border-bottom: 1px solid #f1f5f9 !important;
}
:root[data-theme="light"] .notification-item.is-read {
  background: #ffffff !important;
}
:root[data-theme="light"] .notification-item.is-read:hover {
  background: #f8fafc !important;
}
:root[data-theme="light"] .notification-item.is-unread {
  background: #f0f9ff !important;
}
:root[data-theme="light"] .notification-item.is-unread:hover {
  background: #e0f2fe !important;
}
:root[data-theme="light"] .notification-item-title {
  color: #334155 !important;
}
:root[data-theme="light"] .notification-item.is-unread .notification-item-title {
  color: #0284c7 !important;
  font-weight: 700 !important;
}
:root[data-theme="light"] .notification-item-msg {
  color: #334155 !important;
}
:root[data-theme="light"] .notification-item-time {
  color: #64748b !important;
}
:root[data-theme="light"] .notification-empty {
  color: #64748b !important;
}

/* 🌟 언어 드롭다운 라이트 테마 */
:root[data-theme="light"] .language-dropdown-trigger {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}
:root[data-theme="light"] .language-dropdown-trigger:hover:not(:disabled) {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}
:root[data-theme="light"] .language-dropdown-trigger .language-chevron {
  color: #64748b !important;
}
:root[data-theme="light"] .language-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}
:root[data-theme="light"] .language-dropdown-option,
:root[data-theme="light"] .account-bar .language-dropdown-option {
  color: #1e293b !important;
  background: transparent !important;
  border-color: transparent !important;
}
:root[data-theme="light"] .language-dropdown-option:hover,
:root[data-theme="light"] .language-dropdown-option.selected,
:root[data-theme="light"] .account-bar .language-dropdown-option:hover,
:root[data-theme="light"] .account-bar .language-dropdown-option.selected {
  background: #e0f2fe !important;
  border-color: #38bdf8 !important;
  color: #0369a1 !important;
}

/* Calendar controls and compact icon-only controls must not inherit button fills. */
:root[data-theme="light"] .date-input-picker-button,
:root[data-theme="light"] .shot-table-filter-button,
:root[data-theme="light"] .shot-table-rename-button {
  background: transparent !important;
  border: 0 !important;
}
:root[data-theme="light"] .date-input-picker-button { color: #0369a1 !important; }
:root[data-theme="light"] .date-input-picker-button:hover:not(:disabled) { background: #e0f2fe !important; }

/* Project/sequence spreadsheets and ordinary management tables */
:root[data-theme="light"] .spreadsheet-panel,
:root[data-theme="light"] .spreadsheet-container { background: #ffffff; border-color: #cbd5e1; box-shadow: none; }
:root[data-theme="light"] .spreadsheet-table th,
:root[data-theme="light"] .spreadsheet-table .th-sticky-check,
:root[data-theme="light"] .spreadsheet-table .th-sticky-code { color: #334155; background: #e8f1f7; border-color: #cbd5e1; }
:root[data-theme="light"] .spreadsheet-table td,
:root[data-theme="light"] .spreadsheet-table .td-sticky-check,
:root[data-theme="light"] .spreadsheet-table .td-sticky-code { color: #172033; background: #ffffff; border-color: #d7e0e8; }
:root[data-theme="light"] .spreadsheet-table tr:hover td,
:root[data-theme="light"] .spreadsheet-table tr:hover .td-sticky-check,
:root[data-theme="light"] .spreadsheet-table tr:hover .td-sticky-code { background: #f0f9ff; }
:root[data-theme="light"] .spreadsheet-table tr.selected-row td { background: #dbeafe !important; }
:root[data-theme="light"] .sheet-inline-input,
:root[data-theme="light"] .sheet-inline-select,
:root[data-theme="light"] .spreadsheet-table .date-input-wrap.sheet-inline-input > input[type="text"] { color: #172033 !important; background: #ffffff !important; border-color: #cbd5e1 !important; }
:root[data-theme="light"] .sheet-inline-input:hover,
:root[data-theme="light"] .sheet-inline-input:focus { background: #f8fafc; border-color: #0ea5e9; }
:root[data-theme="light"] .sheet-cell-readonly { color: #475569; }
:root[data-theme="light"] .role-tag { color: #ffffff; }

/* Shot table, editors, filters, and status menus */
:root[data-theme="light"] .shot-table-summary span,
:root[data-theme="light"] .shot-table-tabs { color: #334155; background: #ffffff; border-color: #cbd5e1; }
:root[data-theme="light"] .shot-table-summary small { color: #64748b; }
:root[data-theme="light"] .shot-table-summary strong { color: #172033; }
:root[data-theme="light"] .shot-table-summary i { background: #dbe5ef; }
:root[data-theme="light"] .shot-table-wrap { background: #ffffff; border-color: #cbd5e1; }
:root[data-theme="light"] .shot-table th { color: #334155; background: #e8f1f7; border-color: #cbd5e1; }
:root[data-theme="light"] .shot-table td { color: #172033; border-color: #d7e0e8; }
:root[data-theme="light"] .shot-table tbody tr:nth-child(odd),
:root[data-theme="light"] .shot-table tbody tr:nth-child(even) { background: #ffffff; }
:root[data-theme="light"] .shot-table tbody tr:nth-child(even) { background: #f8fafc; }
:root[data-theme="light"] .shot-table tbody tr:hover { background: #f0f9ff; }
:root[data-theme="light"] .shot-table-editable,
:root[data-theme="light"] .shot-table-value {
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
}
:root[data-theme="light"] .shot-table-editable.align-left,
:root[data-theme="light"] .shot-table-value.align-left {
  text-align: left !important;
}
:root[data-theme="light"] .shot-table-editable.align-center,
:root[data-theme="light"] .shot-table-value.align-center {
  text-align: center !important;
}
:root[data-theme="light"] .shot-table-editable:hover {
  background: #e8f4fb !important;
  border-radius: 4px !important;
}
:root[data-theme="light"] .shot-table th input,
:root[data-theme="light"] .shot-table-input > input,
:root[data-theme="light"] input.shot-table-input { color: #172033; background: #ffffff; border-color: #0ea5e9; }
:root[data-theme="light"] .shot-table-filter-button,
:root[data-theme="light"] .shot-table-rename-button { color: #0284c7; }
:root[data-theme="light"] .shot-table-filter-button.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 2px !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.4) !important;
}
:root[data-theme="light"] .shot-table-filter-popover,
:root[data-theme="light"] .shot-table-select-menu { color: #172033; background: #ffffff; border-color: #0ea5e9; box-shadow: 0 10px 24px rgba(15, 23, 42, .18); }
:root[data-theme="light"] .shot-table-filter-all { border-color: #d7e0e8; }
:root[data-theme="light"] .shot-table .shot-table-filter-popover button { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
:root[data-theme="light"] .shot-table-pill.neutral,
:root[data-theme="light"] .shot-table-pill-select.neutral { color: #334155; background: #e2e8f0; border-color: #94a3b8; }
:root[data-theme="light"] .shot-table-pill.blue,
:root[data-theme="light"] .shot-table-pill-select.blue { color: #075985; background: #e0f2fe; border-color: #38bdf8; }
:root[data-theme="light"] .shot-table-pill.orange,
:root[data-theme="light"] .shot-table-pill-select.orange { color: #9a3412; background: #ffedd5; border-color: #fb923c; }
:root[data-theme="light"] .shot-table-pill.green,
:root[data-theme="light"] .shot-table-pill-select.green { color: #166534; background: #dcfce7; border-color: #4ade80; }
:root[data-theme="light"] .shot-table-pill.red,
:root[data-theme="light"] .shot-table-pill-select.red { color: #9f1239; background: #ffe4e6; border-color: #fb7185; }
:root[data-theme="light"] .shot-table-pill.purple,
:root[data-theme="light"] .shot-table-pill-select.purple { color: #6b21a8; background: #f3e8ff; border-color: #c084fc; }
:root[data-theme="light"] .shot-table-select-option.neutral { color: #334155; background: #e2e8f0; }
:root[data-theme="light"] .shot-table-select-option.blue { color: #075985; background: #e0f2fe; }
:root[data-theme="light"] .shot-table-select-option.orange { color: #9a3412; background: #ffedd5; }
:root[data-theme="light"] .shot-table-select-option.green { color: #166534; background: #dcfce7; }
:root[data-theme="light"] .shot-table-select-option.red { color: #9f1239; background: #ffe4e6; }
:root[data-theme="light"] .shot-table-select-option.purple { color: #6b21a8; background: #f3e8ff; }

/* Dashboard cards and status detail */
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .dashboard-progress-card,
:root[data-theme="light"] .dashboard-chart-panel,
:root[data-theme="light"] .dashboard-activity-panel { background: #ffffff; border-color: #d7e0e8; }
:root[data-theme="light"] .metric-label,
:root[data-theme="light"] .metric-sub,
:root[data-theme="light"] .radial-chart-lbl,
:root[data-theme="light"] .progress-info-row .label,
:root[data-theme="light"] .progress-sub-text,
:root[data-theme="light"] .legend-pct,
:root[data-theme="light"] .hbar-raw-status,
:root[data-theme="light"] .recent-time-cell { color: #64748b; }
:root[data-theme="light"] .metric-value,
:root[data-theme="light"] .radial-chart-val,
:root[data-theme="light"] .chart-panel-header h2,
:root[data-theme="light"] .legend-count,
:root[data-theme="light"] .hbar-values strong,
:root[data-theme="light"] .table-progress-val { color: #172033; }
:root[data-theme="light"] .legend-name,
:root[data-theme="light"] .progress-sub-text strong { color: #475569; }
:root[data-theme="light"] .radial-track,
:root[data-theme="light"] .mini-progress-bar,
:root[data-theme="light"] .stacked-pipeline-bar,
:root[data-theme="light"] .hbar-track,
:root[data-theme="light"] .table-progress-track { background: #e2e8f0; stroke: #e2e8f0; }
:root[data-theme="light"] .chart-total-tag,
:root[data-theme="light"] .task-type-badge,
:root[data-theme="light"] .version-pill { color: #475569; background: #f1f5f9; }
:root[data-theme="light"] .dashboard-recent-table th { color: #475569; background: #e8f1f7; }
:root[data-theme="light"] .dashboard-recent-table td { color: #172033; border-color: #d7e0e8; }

/* User management, settings, and all registration/edit modal surfaces */
:root[data-theme="light"] .table-toolbar,
:root[data-theme="light"] .user-table th,
:root[data-theme="light"] .grid-head { color: #334155; background: #e8f1f7; border-color: #cbd5e1; }
:root[data-theme="light"] .user-table td,
:root[data-theme="light"] .grid-row > span { color: #172033; border-color: #d7e0e8; }
:root[data-theme="light"] .user-table tr { background: #ffffff; }
:root[data-theme="light"] .user-actions button,
:root[data-theme="light"] .user-header-actions button,
:root[data-theme="light"] .toolbar button,
:root[data-theme="light"] .table-toolbar button { color: #334155; background: #ffffff; border-color: #cbd5e1; }
:root[data-theme="light"] .settings-account-list { border-color: #cbd5e1; }
:root[data-theme="light"] .settings-account-list > div { border-color: #d7e0e8; }
:root[data-theme="light"] .settings-account-list dt { color: #334155; background: #e8f1f7; border-color: #cbd5e1; }
:root[data-theme="light"] .settings-account-list dd { color: #172033; background: #ffffff; }
:root[data-theme="light"] .settings-field,
:root[data-theme="light"] .settings-password-form label { color: #334155; }
:root[data-theme="light"] .settings-field small { color: #64748b; }
:root[data-theme="light"] .user-modal,
:root[data-theme="light"] .shot-date-modal,
:root[data-theme="light"] .modal-card,
:root[data-theme="light"] .shot-modal-window,
:root[data-theme="light"] .shot-import-modal-container { color: #172033; background: #ffffff; border-color: #cbd5e1; }
:root[data-theme="light"] .shot-date-modal p { color: #64748b; }
:root[data-theme="light"] .shot-import-modal-footer,
:root[data-theme="light"] .modal-footer-box { background: #f8fafc !important; border-color: #d7e0e8 !important; }
:root[data-theme="light"] .project-guide-attachment-panel { background: #f8fafc !important; border-color: #cbd5e1 !important; }
:root[data-theme="light"] .project-guide-attachment-panel > div[style*="background-color"],
:root[data-theme="light"] .project-guide-attachment-panel [style*="background-color: rgb(15, 23, 42)"],
:root[data-theme="light"] .project-guide-attachment-panel [style*="background-color: #0f172a"] { background: #ffffff !important; }
:root[data-theme="light"] .project-guide-attachment-panel span[style*="color"],
:root[data-theme="light"] .project-guide-attachment-panel div[style*="color"] { color: #334155 !important; }
:root[data-theme="light"] .project-guide-attachment-panel label { color: #334155 !important; }
:root[data-theme="light"] .project-guide-attachment-panel input,
:root[data-theme="light"] .project-guide-attachment-panel select,
:root[data-theme="light"] .project-guide-attachment-panel textarea { color: #172033 !important; background: #ffffff !important; border-color: #cbd5e1 !important; }
:root[data-theme="light"] .modal-textarea,
:root[data-theme="light"] .modal-feedback-type-toggle,
:root[data-theme="light"] .modal-info-item { color: #172033 !important; background: #f8fafc !important; border-color: #cbd5e1 !important; }
:root[data-theme="light"] .modal-info-value { color: #172033 !important; }
:root[data-theme="light"] .modal-timeline-list::before { background: #cbd5e1 !important; }

/* Native and table scrollbars follow the current palette. */
:root[data-theme="light"] .shot-table-wrap,
:root[data-theme="light"] .spreadsheet-container,
:root[data-theme="light"] .user-table-wrap { scrollbar-color: #94a3b8 #f8fafc; }
:root[data-theme="light"] .shot-table-wrap::-webkit-scrollbar-track,
:root[data-theme="light"] .shot-table-filter-options::-webkit-scrollbar-track { background: #f8fafc; }
:root[data-theme="light"] .shot-table-wrap::-webkit-scrollbar-thumb,
:root[data-theme="light"] .shot-table-filter-options::-webkit-scrollbar-thumb { background: #94a3b8; border-color: #f8fafc; }

/* Batch edit modal light theme */
:root[data-theme="light"] .batch-modal-card { background: #ffffff !important; border-color: #cbd5e1 !important; color: #0f172a !important; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important; }
:root[data-theme="light"] .batch-modal-header { background: #f8fafc !important; border-color: #e2e8f0 !important; }
:root[data-theme="light"] .batch-modal-title-wrap h3 { color: #0f172a !important; }
:root[data-theme="light"] .batch-modal-close-btn { color: #64748b !important; }
:root[data-theme="light"] .batch-modal-close-btn:hover { background: #e2e8f0 !important; color: #0f172a !important; }
:root[data-theme="light"] .batch-form-group label { color: #334155 !important; }
:root[data-theme="light"] .batch-select,
:root[data-theme="light"] .batch-input { background: #ffffff !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
:root[data-theme="light"] .batch-select:focus,
:root[data-theme="light"] .batch-input:focus { border-color: #0284c7 !important; }
:root[data-theme="light"] .batch-clear-btn { background: #e2e8f0 !important; border-color: #cbd5e1 !important; color: #475569 !important; }
:root[data-theme="light"] .batch-clear-btn:hover { background: #cbd5e1 !important; color: #0f172a !important; }
:root[data-theme="light"] .batch-info-note { background: #f0f9ff !important; border-color: #bae6fd !important; color: #0369a1 !important; }
:root[data-theme="light"] .batch-modal-footer { background: #f8fafc !important; border-color: #e2e8f0 !important; }
:root[data-theme="light"] .batch-btn-cancel { background: #ffffff !important; border-color: #cbd5e1 !important; color: #334155 !important; }
:root[data-theme="light"] .batch-btn-cancel:hover { background: #f1f5f9 !important; color: #0f172a !important; }
:root[data-theme="light"] .batch-confirm-header h4 { color: #0f172a !important; }
:root[data-theme="light"] .batch-confirm-desc { color: #475569 !important; }
:root[data-theme="light"] .batch-confirm-summary-box { background: #f8fafc !important; border-color: #e2e8f0 !important; }
:root[data-theme="light"] .batch-confirm-label { color: #64748b !important; }

/* Sidebar header toggle light theme */
:root[data-theme="light"] .sidebar-header-toggle-btn {
  color: #64748b !important;
  background: transparent !important;
  border-color: transparent !important;
}
:root[data-theme="light"] .sidebar-header-toggle-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Dashboard charts & metric cards light theme */
:root[data-theme="light"] .donut-track { stroke: rgba(0, 0, 0, 0.08) !important; }
:root[data-theme="light"] .donut-chart-center strong { color: #0f172a !important; }
:root[data-theme="light"] .donut-chart-center span { color: #64748b !important; }
:root[data-theme="light"] .metric-icon-badge { background: rgba(0, 0, 0, 0.04); }
:root[data-theme="light"] .hbar-track { background: rgba(0, 0, 0, 0.06) !important; }
:root[data-theme="light"] .hbar-values strong { color: #0f172a !important; }

/* High Contrast Vivid Status Pills Light Theme */
:root[data-theme="light"] .shot-table-select-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
}
:root[data-theme="light"] .shot-table-pill.slate,
:root[data-theme="light"] .shot-table-pill-select.slate,
:root[data-theme="light"] .shot-table-select-option.slate {
  color: #ffffff !important;
  background: #334155 !important;
  border-color: #475569 !important;
}
:root[data-theme="light"] .shot-table-pill.blue,
:root[data-theme="light"] .shot-table-pill-select.blue,
:root[data-theme="light"] .shot-table-select-option.blue {
  color: #ffffff !important;
  background: #0077ff !important;
  border-color: #38bdf8 !important;
}
:root[data-theme="light"] .shot-table-pill.indigo,
:root[data-theme="light"] .shot-table-pill-select.indigo,
:root[data-theme="light"] .shot-table-select-option.indigo,
:root[data-theme="light"] .shot-table-pill.purple,
:root[data-theme="light"] .shot-table-pill-select.purple,
:root[data-theme="light"] .shot-table-select-option.purple {
  color: #ffffff !important;
  background: #7c3aed !important;
  border-color: #a78bfa !important;
}
:root[data-theme="light"] .shot-table-pill.amber,
:root[data-theme="light"] .shot-table-pill-select.amber,
:root[data-theme="light"] .shot-table-select-option.amber {
  color: #000000 !important;
  background: #f5a623 !important;
  border-color: #fbbf24 !important;
  font-weight: 800 !important;
}
:root[data-theme="light"] .shot-table-pill.orange,
:root[data-theme="light"] .shot-table-pill-select.orange,
:root[data-theme="light"] .shot-table-select-option.orange {
  color: #ffffff !important;
  background: #f9690e !important;
  border-color: #fb923c !important;
}
:root[data-theme="light"] .shot-table-pill.green,
:root[data-theme="light"] .shot-table-pill-select.green,
:root[data-theme="light"] .shot-table-select-option.green {
  color: #ffffff !important;
  background: #16a34a !important;
  border-color: #4ade80 !important;
}
:root[data-theme="light"] .shot-table-pill.red,
:root[data-theme="light"] .shot-table-pill-select.red,
:root[data-theme="light"] .shot-table-select-option.red {
  color: #ffffff !important;
  background: #dc2626 !important;
  border-color: #f87171 !important;
}

/* 🌟 1. Dashboard 4 Summary Cards Light Theme */
:root[data-theme="light"] .dashboard-summary-card {
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}
:root[data-theme="light"] .dashboard-summary-card .summary-card-title {
  color: #1e293b !important;
}
:root[data-theme="light"] .dashboard-summary-card .summary-card-val {
  color: #0f172a !important;
}
:root[data-theme="light"] .dashboard-summary-card .summary-card-sub {
  color: #1e293b !important;
  font-weight: 600 !important;
}

/* 🌟 2. Shot Table Sticky Columns Light Theme (Checkbox & Number) */
:root[data-theme="light"] .shot-table-check,
:root[data-theme="light"] .shot-table-number {
  background-color: #ffffff !important;
  color: #172033 !important;
}
:root[data-theme="light"] th.shot-table-check,
:root[data-theme="light"] th.shot-table-number {
  background-color: #e8f1f7 !important;
  color: #334155 !important;
}
:root[data-theme="light"] tr:hover td.shot-table-check,
:root[data-theme="light"] tr:hover td.shot-table-number {
  background-color: #f0f9ff !important;
}
:root[data-theme="light"] tr.selected td.shot-table-check,
:root[data-theme="light"] tr.selected td.shot-table-number {
  background-color: #dbeafe !important;
}

/* 🌟 3. Shot Selection Bar Light Theme */
:root[data-theme="light"] .shot-selection-smart-bar {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}
:root[data-theme="light"] .shot-selection-empty-hint {
  color: #475569 !important;
}
:root[data-theme="light"] .shot-selection-info-group {
  color: #0f172a !important;
}
:root[data-theme="light"] .shot-selection-frames {
  color: #1e293b !important;
}
:root[data-theme="light"] .shot-selection-clear-btn {
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  background: #f8fafc !important;
}
:root[data-theme="light"] .shot-selection-clear-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 🌟 4. Column Settings & Delete Modals Light Theme */
:root[data-theme="light"] .shot-column-settings-modal,
:root[data-theme="light"] .shot-import-modal-container {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}
:root[data-theme="light"] .shot-column-settings-modal h3 {
  color: #0f172a !important;
}
:root[data-theme="light"] .shot-column-settings-modal-header {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
:root[data-theme="light"] .shot-column-settings-modal-guide {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
}
:root[data-theme="light"] .shot-column-settings-table {
  background: #ffffff !important;
}
:root[data-theme="light"] .shot-column-settings-table th {
  background: #e8f1f7 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .shot-column-settings-table td {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}
:root[data-theme="light"] .shot-column-settings-footer {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
:root[data-theme="light"] .batch-delete-confirm-box {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}
:root[data-theme="light"] .batch-delete-confirm-text {
  color: #1e293b !important;
}
:root[data-theme="light"] .batch-scroll-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
:root[data-theme="light"] .batch-scroll-item {
  color: #1e293b !important;
}

/* 🌟 5. Dashboard Action Items & Pipeline Stage Cards Light Theme */
:root[data-theme="light"] .dashboard-action-item {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .dashboard-action-item:hover {
  background: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .dashboard-action-item strong {
  color: #334155 !important;
}
:root[data-theme="light"] .dashboard-action-item b {
  color: #0f172a !important;
}

:root[data-theme="light"] .pipeline-stage-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .pipeline-stage-card > div:first-child {
  border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .dashboard-insight-panel,
:root[data-theme="light"] .dashboard-recent-card,
:root[data-theme="light"] .dashboard-action-panel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

/* Dashboard header schedule, recent activity, 7-day trend & vendor table high-contrast text */
:root[data-theme="light"] .dashboard-header p,
:root[data-theme="light"] .dashboard-project-schedule {
  color: #1e293b !important;
  font-weight: 600 !important;
}
:root[data-theme="light"] .dashboard-recent-item {
  border-top-color: #e2e8f0 !important;
}
:root[data-theme="light"] .dashboard-recent-item strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}
:root[data-theme="light"] .dashboard-recent-item small {
  color: #334155 !important;
  font-weight: 600 !important;
}
:root[data-theme="light"] .dashboard-recent-item time {
  color: #475569 !important;
  font-weight: 600 !important;
}
:root[data-theme="light"] .dashboard-recent-dot {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
}
:root[data-theme="light"] .dashboard-trend-column b {
  color: #0f172a !important;
  font-weight: 700 !important;
}
:root[data-theme="light"] .dashboard-trend-column small {
  color: #334155 !important;
  font-weight: 600 !important;
}
:root[data-theme="light"] .pipeline-stage-item strong {
  color: #0f172a !important;
}
:root[data-theme="light"] .pipeline-stage-item span {
  color: #334155 !important;
}
:root[data-theme="light"] .pipeline-stage-item.is-zero strong,
:root[data-theme="light"] .pipeline-stage-item.is-zero span {
  color: #475569 !important;
}
:root[data-theme="light"] .dashboard-vendor-status-panel p {
  color: #334155 !important;
}
:root[data-theme="light"] .dashboard-vendor-table th {
  color: #1e293b !important;
  font-weight: 700 !important;
}
:root[data-theme="light"] .dashboard-vendor-table td strong {
  color: #0f172a !important;
}
:root[data-theme="light"] .dashboard-vendor-table td span {
  color: #334155 !important;
}
:root[data-theme="light"] .dashboard-vendor-table .table-progress-track {
  background-color: #e2e8f0 !important;
}

/* Compact Buttons Light Theme */
:root[data-theme="light"] .compact-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}
:root[data-theme="light"] .compact-btn:hover:not(:disabled) {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .compact-btn.btn-primary {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}
:root[data-theme="light"] .compact-btn.btn-primary:hover:not(:disabled) {
  background: #1d4ed8 !important;
}

/* 🌟 6. Settlement Management Light Theme */
:root[data-theme="light"] .settlement-page {
  background: var(--app-bg, #edf3f8) !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .settlement-filters,
:root[data-theme="light"] .settlement-rate,
:root[data-theme="light"] .settlement-summary > div {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .settlement-filters input,
:root[data-theme="light"] .settlement-filters select,
:root[data-theme="light"] .rate-inputs input,
:root[data-theme="light"] .rate-inputs select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .settlement-table-wrap {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .settlement-table-wrap th {
  background: #e8f1f7 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .settlement-table-wrap td {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
:root[data-theme="light"] .settlement-table-wrap tr:hover td {
  background: #f0f9ff !important;
}
:root[data-theme="light"] .count-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .period-quick-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
:root[data-theme="light"] .period-quick-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Project Management Modals Light Theme */
:root[data-theme="light"] .project-create-edit-modal {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}
:root[data-theme="light"] .project-create-edit-modal h2 {
  color: #0f172a !important;
}
:root[data-theme="light"] .project-create-edit-modal label {
  color: #334155 !important;
}
:root[data-theme="light"] .project-pricing-panel,
:root[data-theme="light"] .project-version-panel {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .project-pricing-panel span,
:root[data-theme="light"] .project-pricing-panel label,
:root[data-theme="light"] .project-version-panel span,
:root[data-theme="light"] .project-version-panel label {
  color: #334155 !important;
}
:root[data-theme="light"] .project-members-modal {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}
:root[data-theme="light"] .project-members-modal h2 {
  color: #0f172a !important;
}
:root[data-theme="light"] .project-members-modal label {
  color: #334155 !important;
}
:root[data-theme="light"] .project-members-modal .member-section {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .project-attachments-modal-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}
:root[data-theme="light"] .project-attachments-modal-card h2 {
  color: #0f172a !important;
}
:root[data-theme="light"] .project-attachment-upload-form {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .project-attachment-upload-form label {
  color: #334155 !important;
}
:root[data-theme="light"] .project-attachment-upload-form input,
:root[data-theme="light"] .project-attachment-upload-form select,
:root[data-theme="light"] .project-attachment-upload-form textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .project-attachment-table-wrap {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}
:root[data-theme="light"] .project-attachment-table th {
  background: #e8f1f7 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .project-attachment-row {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
:root[data-theme="light"] .project-attachment-row:hover {
  background: #f0f9ff !important;
}
:root[data-theme="light"] .project-attachment-row td {
  color: #334155 !important;
}
:root[data-theme="light"] .project-attachment-title {
  color: #0f172a !important;
}
:root[data-theme="light"] .project-attachment-sub {
  color: #475569 !important;
}
:root[data-theme="light"] .attachment-action-btn.download {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}
:root[data-theme="light"] .attachment-action-btn.download:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}
:root[data-theme="light"] .attachment-action-btn.delete {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}
:root[data-theme="light"] .attachment-action-btn.delete:hover {
  background: #fee2e2 !important;
  border-color: #b91c1c !important;
}
:root[data-theme="light"] .confirm-modal-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}
:root[data-theme="light"] .confirm-modal-card h3 {
  color: #0f172a !important;
}
:root[data-theme="light"] .confirm-modal-msg-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
:root[data-theme="light"] .confirm-modal-msg-box p {
  color: #334155 !important;
}


/* Shared neutral text palette; status badges retain their semantic colors. */
:root {
  color-scheme: dark;
  font-size: 14px;
  --text: #edf2f7 !important;
  --text-muted: #cbd5e1 !important;
  --muted-text: #cbd5e1 !important;
  --muted: #cbd5e1 !important;
}
:root[data-theme="light"] {
  color-scheme: light;
  --text: #111827 !important;
  --text-muted: #334155 !important;
  --muted-text: #334155 !important;
  --muted: #334155 !important;
}
body, .workspace-frame, .ledger-page { color: var(--text); }
.workspace-frame :is(h1,h2,h3,h4,h5,p,label,th,td) { color: var(--text) !important; }
.workspace-frame :is(h1,h2,h3,h4,h5,label) { word-break: keep-all; }
.workspace-frame :is(small,time), .workspace-sidebar .sidebar-menu-item:not(.active),
.workspace-sidebar .sidebar-submenu button:not(.active) { color: var(--text-muted) !important; }
.workspace-frame :is(input,textarea,select) { color: var(--text) !important; font-size: 14px !important; }
.workspace-frame :is(p,label), .workspace-sidebar .sidebar-menu-item { font-size: 14px; }
.workspace-frame :is(td,th), .workspace-frame button { font-size: 13px; }
.workspace-frame button { word-break: keep-all; }
.workspace-frame .shot-selection-action-group { flex-wrap: wrap; }
.workspace-frame .shot-action-batch-btn { white-space: nowrap; flex-shrink: 0; }
.workspace-frame small { font-size: 12px; }
.workspace-frame :is(.panel-subtitle,.text-muted,.muted,.dashboard-section-heading > span,
  .dashboard-recent-item time,.dashboard-recent-item small,.summary-card-sub,
  .dashboard-summary-card p,.shot-table-summary small) { color: var(--text-muted) !important; }
.workspace-frame .settlement-summary > div > span { color: var(--text-muted) !important; font-size: 13px; }
.workspace-frame .shot-table-editable { color: var(--text) !important; font-size: 13px !important; }
.workspace-frame .shot-table { font-size: 13px; }
.workspace-frame :is(input,textarea)::placeholder { color: var(--text-muted); opacity: 1; }
.ledger-page { font-size: 13px; }
.ledger-page button { font-size: 13px; }
.ledger-page :is(.ledger-info-grid small,.ledger-detail-head p,.ledger-comment small) { color: var(--text-muted) !important; }

/* Full-width, compact inquiry detail and conventional comment form. */
.ledger-detail-grid { display: flex; flex-direction: column; gap: 12px; }
.ledger-detail-grid > div { display: block; }
.ledger-info-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 20px; padding: 14px; }
.ledger-info-wide { grid-column: 1 / -1; }
.ledger-info-grid p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger-detail-head { flex-wrap: wrap; }
.ledger-quote { padding: 10px 14px; }
.ledger-empty { padding: 12px; }
.ledger-attachment-list { padding: 6px 12px; }
.ledger-page .ledger-attachment-row {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  padding: 6px 2px; background: transparent; border: 0; border-radius: 0;
  text-align: left; justify-content: flex-start; color: var(--text) !important;
}
.ledger-attachment-row:hover .ledger-attachment-name { text-decoration: underline; }
.ledger-file-icon { width: 20px; height: 22px; flex-shrink: 0; color: var(--text-muted); }
.ledger-file-icon.image { color: #38bdf8; }
.ledger-file-icon.pdf { color: #fb7185; }
.ledger-file-icon.office { color: #34d399; }
.ledger-file-icon.archive { color: #fbbf24; }
:root[data-theme="light"] .ledger-file-icon.image { color: #0369a1; }
:root[data-theme="light"] .ledger-file-icon.pdf { color: #be123c; }
:root[data-theme="light"] .ledger-file-icon.office { color: #047857; }
:root[data-theme="light"] .ledger-file-icon.archive { color: #92400e; }
.ledger-attachment-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-comment-form { padding: 14px; border-bottom: 1px solid var(--border); }
.ledger-comment-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.ledger-comment-fields label { display: flex; align-items: center; gap: 8px; }
.ledger-comment-fields :is(input,select) { padding: 6px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); }
.ledger-comment-content { display: block; }
.ledger-comment-content textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); resize: vertical; }
.ledger-comment-submit { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; }
.ledger-comment-submit [role="alert"] { color: #ef4444; }
.ledger-comments { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.ledger-comment { padding: 0; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.ledger-comment header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; background: var(--surface-2); border: 0; }
.ledger-comment header strong { color: var(--text); }
.ledger-comment time, .ledger-comment header > span { font-size: 12px; color: var(--text-muted); }
.ledger-comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 12px 14px; background: var(--surface); }
.ledger-comment .ledger-activity-actions { margin-left: auto; display: flex; gap: 6px; }
.ledger-comment .ledger-activity-actions button { padding: 3px 8px; min-height: 26px; }
.ledger-auto-label { border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.ledger-legacy-memo { margin: 0 14px 12px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.ledger-legacy-memo p { white-space: pre-wrap; }
@media (max-width: 1000px) { .ledger-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .ledger-info-grid { grid-template-columns: minmax(0,1fr); } .ledger-comment-fields label { flex-wrap: wrap; } }

/* Distinct labels and preserved free-text descriptions in inquiry detail. */
.ledger-info-table { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.ledger-info-row { display: grid; grid-template-columns: 150px minmax(0,1fr); border-bottom: 1px solid var(--border); }
.ledger-info-row:nth-child(odd):not(.ledger-info-row-wide) { border-right: 1px solid var(--border); }
.ledger-info-row-wide { grid-column: 1 / -1; }
.ledger-info-row dt { margin: 0; padding: 10px 12px; background: var(--surface-2); color: var(--text-muted); font-size: 13px; font-weight: 600; }
.ledger-info-row dd { margin: 0; padding: 10px 12px; color: var(--text); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger-description { margin: 14px; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.ledger-description h3 { margin: 0; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; }
.ledger-description p, .ledger-memo-content p { margin: 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger-memo-content small { display: block; padding: 0 12px 12px; }
@media (max-width: 900px) { .ledger-info-table { grid-template-columns: minmax(0,1fr); } .ledger-info-row:nth-child(odd):not(.ledger-info-row-wide) { border-right: 0; } }
@media (max-width: 480px) { .ledger-info-row { grid-template-columns: 115px minmax(0,1fr); } }
