* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --sheet-grid: #e8edf3;
  --dark-teal: #0a3944;
  --blue: #1679d6;
  --blue-dark: #0a63c2;
  --soft-border: #d9e0e7;
  --muted: #667085;
  --row-num: #f2f5f9;
}

body {
  background: url('../utility/background-galaxy.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  justify-content: stretch;
  align-items: flex-start;
  padding: 12px;
  color: #111827;
}

.sheet {
  width: min(1780px, calc(100vw - 24px));
  min-height: 780px;
  background-color: transparent;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  background-image: none;
}

.content {
  position: relative;
  padding: 18px 18px 64px;
  min-height: 780px;
}

.top-area {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.logo-box,
.title-box,
.sidebar,
.workspace-card {
  background: transparent;
}

.logo-box {
  min-width: 150px;
  height: 74px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.logo-box img {
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.title-box {
  min-height: 74px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.4px;
  color: #fff5e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.main-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  width: 100%;
  padding: 8px 8px;
  align-self: start;
  border: none;
  box-shadow: none;
  background: transparent;
}

.menu-title {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 4px 6px;
  color: #fff5e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-list li {
  width: 100%;
}

.tool-list li button,
.tool-list li a {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  text-decoration: none;
  color: #b45309;
  background: rgba(255, 166, 0, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: 15px;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.tool-list li button:hover,
.tool-list li a:hover,
.tool-list li .active,
.tool-list li button.active {
  background: linear-gradient(180deg, #f59e0b, #ea580c);
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.18);
}

.workspace {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.workspace-card {
  width: 100%;
  max-width: none;
  min-height: 620px;
  padding: 20px;
  border-radius: 18px;
  border: none;
  box-shadow: none;
  background: transparent;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff5e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.section-subtitle {
  font-size: 14px;
  color: #d8e6f5;
  margin-top: 4px;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.welcome-panel {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.welcome-box {
  width: min(680px, 100%);
  text-align: center;
  border: 1px dashed rgba(227, 235, 246, 0.55);
  border-radius: 18px;
  background: transparent;
  padding: 36px 24px;
  color: #eef6ff;
}

.welcome-box h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #fff5e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.welcome-box p {
  font-size: 15px;
  color: #d8e6f5;
  line-height: 1.7;
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.welcome-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-tag {
  padding: 9px 14px;
  background: #eef4ff;
  color: #0b57d0;
  border: 1px solid #d7e3ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.import-shell {
  display: grid;
  gap: 18px;
}

.import-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(198, 210, 224, 0.9);
  background: transparent;
  box-shadow: none;
}

.import-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 16px;
  font-weight: 800;
  color: #fff1dd;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.field-note {
  font-size: 12px;
  color: #d8e6f5;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.input,
.select,
.file-input-wrap {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid #cdd6e0;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  font-size: 15px;
  color: #111827;
}

.input,
.select {
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 121, 214, 0.12);
}

.file-input-wrap {
  display: flex;
  align-items: center;
  padding: 6px 8px;
}

.file-input-wrap input[type="file"] {
  width: 100%;
  font-size: 14px;
  border: none;
  background: transparent;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn.primary {
  flex: 1;
  justify-content: center;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  min-width: 180px;
}

.btn.secondary {
  background: #f59e0b;
  border-color: #ea580c;
  color: #ffffff;
}

.btn.secondary:hover {
  background: #ea580c;
  border-color: #c2410c;
  color: #ffffff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfe0f3;
  font-size: 12px;
  color: #174a7e;
  font-weight: 700;
}

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

.summary-item {
  border: 1px solid rgba(228, 236, 246, 0.55);
  border-radius: 14px;
  padding: 14px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.summary-label {
  font-size: 12px;
  color: #d5e4f4;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  text-align: center;
  width: 100%;
}

.summary-value {
  font-size: 22px;
  font-weight: 700;
  color: #fff6e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  text-align: center;
  width: 100%;
  word-break: break-word;
}

.helper-box {
  border: 1px solid rgba(228, 236, 246, 0.55);
  border-radius: 14px;
  background: transparent;
  padding: 14px 16px;
  font-size: 13px;
  color: #e4eef8;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.helper-box strong {
  color: #fff3dd;
}

.table-card {
  border: 1px solid #dce5ed;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.table-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e5edf4;
  background: #f8fafc;
}

.table-title {
  font-size: 18px;
  font-weight: 700;
}

.table-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  background: #ffffff;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--dark-teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

tbody td {
  font-size: 13px;
  padding: 10px 14px;
  border-right: 1px solid #dfe7ef;
  border-bottom: 1px solid #dfe7ef;
  background: #ffffff;
  white-space: nowrap;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

tbody tr:hover td {
  background: #f8fbff;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.copy-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.deposit-table td:nth-child(1),
.deposit-table th:nth-child(1) { min-width: 210px; }
.deposit-table td:nth-child(2),
.deposit-table th:nth-child(2) { min-width: 160px; }
.deposit-table td:nth-child(3),
.deposit-table th:nth-child(3) { min-width: 150px; }
.deposit-table td:nth-child(4),
.deposit-table th:nth-child(4),
.deposit-table td:nth-child(5),
.deposit-table th:nth-child(5) { min-width: 88px; }
.deposit-table td:nth-child(6),
.deposit-table th:nth-child(6) { min-width: 110px; }
.deposit-table td:nth-child(7),
.deposit-table th:nth-child(7) { min-width: 280px; }
.deposit-table td:nth-child(8),
.deposit-table th:nth-child(8) { min-width: 180px; }

.withdraw-table td:nth-child(1),
.withdraw-table th:nth-child(1) { min-width: 230px; }
.withdraw-table td:nth-child(2),
.withdraw-table th:nth-child(2) { min-width: 230px; }
.withdraw-table td:nth-child(3),
.withdraw-table th:nth-child(3) { min-width: 210px; }
.withdraw-table td:nth-child(4),
.withdraw-table th:nth-child(4),
.withdraw-table td:nth-child(5),
.withdraw-table th:nth-child(5) { min-width: 90px; }
.withdraw-table td:nth-child(6),
.withdraw-table th:nth-child(6),
.withdraw-table td:nth-child(7),
.withdraw-table th:nth-child(7),
.withdraw-table td:nth-child(8),
.withdraw-table th:nth-child(8) { min-width: 110px; }
.withdraw-table td:nth-child(9),
.withdraw-table th:nth-child(9) { min-width: 220px; }

.empty-state {
  padding: 52px 22px;
  text-align: center;
  color: #667085;
  line-height: 1.75;
}

.status-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #e8eef6;
  font-size: 13px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.import-panel .section-subtitle,
.import-panel .table-subtitle,
.import-shell .table-subtitle,
.compare-summary,
.compare-empty-message {
  color: #d8e6f5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.import-panel h3,
.compare-title,
.compare-card .table-title {
  color: #fff5e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.compare-import-panel .table-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.compare-card .table-title {
  color: #ff3b30 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.compare-import-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.compare-stack {
  display: grid;
  gap: 18px;
}

.compare-success {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.compare-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
  text-align: center;
}

.compare-card .table-head {
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 380px;
  min-height: 96px;
}

.compare-card .compare-head-main {
  width: 100%;
  text-align: center;
}

.compare-card .table-actions {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.money-out {
  color: #ff2b2b;
  font-weight: 800;
}


.dpadm-summary-card {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dpadm-summary-card-no-bank,
.original-summary-card {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dpadm-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.dpadm-table th,
.dpadm-table td {
  width: auto;
  min-width: 120px;
}

.dpadm-table th:nth-child(1),
.dpadm-table td:nth-child(1),
.dpadm-table th:nth-child(7),
.dpadm-table td:nth-child(7) {
  min-width: 300px;
}

.dpadm-table th:nth-child(2),
.dpadm-table td:nth-child(2) {
  min-width: 180px;
}

.dpadm-table th:nth-child(4),
.dpadm-table td:nth-child(4),
.dpadm-table th:nth-child(5),
.dpadm-table td:nth-child(5),
.dpadm-table th:nth-child(6),
.dpadm-table td:nth-child(6) {
  min-width: 100px;
}

.money-neutral {
  color: #0f4c81;
  font-weight: 800;
}

@media (max-width: 980px) {
  .compare-card .table-head {
    padding-right: 18px;
    min-height: auto;
  }

  .compare-card .table-actions {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .workspace {
    justify-content: stretch;
  }

  .workspace-card {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .dpadm-summary-card,
  .dpadm-summary-card-no-bank,
  .original-summary-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .range-grid,
  .summary-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 8px;
  }

  .content {
    padding: 12px 12px 64px;
  }

  .top-area {
    grid-template-columns: 1fr;
  }

  .workspace-card {
    padding: 16px;
    border-radius: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .welcome-box h2 {
    font-size: 22px;
  }

  .import-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn.primary,
  .btn.secondary {
    width: 100%;
  }
}

.compare-success {
  color: #7dff8a !important;
  text-shadow:
    0 0 8px rgba(125, 255, 138, 0.35),
    0 1px 6px rgba(0, 0, 0, 0.45);
}

.compare-success strong {
  color: #9bff5a !important;
  text-shadow:
    0 0 10px rgba(155, 255, 90, 0.45),
    0 1px 6px rgba(0, 0, 0, 0.45);
}
.report-table-wrapper {
  padding: 18px;
}

.report-stack {
  display: grid;
  gap: 18px;
}

.report-section {
  display: grid;
  gap: 10px;
}

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

.report-shift-label {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.report-copy-btn {
  width: 120px;
  min-width: 120px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #ea580c;
  background: #f59e0b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.report-copy-btn:hover {
  background: #ea580c;
  border-color: #c2410c;
}

.report-copy-head-btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.report-summary-table {
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d4dce5;
}

.report-summary-table thead th {
  position: static;
  background: #12dfe8;
  color: #00131a;
  border-right: 1px solid #0caab1;
  border-bottom: 1px solid #0caab1;
  font-style: normal;
  text-shadow: none;
}


.report-summary-table thead tr:first-child th,
.report-summary-table thead tr:nth-child(2) th,
.report-summary-table thead th.sub-col {
  font-size: 12px;
  font-weight: 800;
}

.report-summary-table tbody td {
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
}

.report-summary-table tbody td.report-sub-cell {
  background: #f8fafc;
  font-weight: 800;
}

.report-summary-table tbody td.report-reject-value {
  color: #dc2626;
}

.report-unmapped-box {
  border: 1px solid #e5edf4;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}

.report-unmapped-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.report-unmapped-copy {
  font-size: 13px;
  color: #475467;
  margin-bottom: 12px;
}

.report-helper-box {
  text-align: left;
}

.report-empty-state {
  padding: 24px;
  text-align: center;
}

.giga-head {
  margin-bottom: 10px;
}

.giga-shell {
  display: grid;
  gap: 12px;
}

.giga-shell-compact {
  width: 100%;
}

.giga-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.giga-panels-compact {
  align-items: start;
}

.giga-box-wrap {
  display: grid;
  gap: 8px;
}

.giga-top-btn {
  width: 100%;
  min-height: 28px;
  border-radius: 0;
  border: 2px solid #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: none;
  padding: 0 10px;
}

.giga-clear-btn {
  background: #ff1c12;
}

.giga-clear-btn:hover {
  background: #db140b;
}

.giga-copy-btn {
  background: #4c7ed6;
}

.giga-copy-btn:hover {
  background: #3568c2;
}

.giga-panel {
  width: 100%;
  min-height: 330px;
  border: 3px solid #111111;
  border-radius: 4px;
  background: #e8e8e8;
  color: #111111;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  outline: none;
  overflow: auto;
}

.giga-panel-box {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

textarea.giga-panel {
  font-family: Arial, Helvetica, sans-serif;
}

textarea.giga-panel:focus {
  box-shadow: inset 0 0 0 1px rgba(76, 126, 214, 0.6);
}

.giga-output {
  white-space: pre-wrap;
}

.giga-output.is-lose {
  color: #d90429;
  font-weight: 800;
}
@media (max-width: 900px) {
  .giga-toolbar,
  .giga-panels {
    grid-template-columns: 1fr;
  }

  .giga-panel {
    min-height: 320px;
  }
}
