.rules-container {
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.rules-header {
  border-bottom: 1px solid #e0e0e0;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
}

button.icon-btn {
  background: none;
  border: none;
}

button.icon-btn svg {
  color: #002b49;
  font-size: 50px;
}

.rules-header h2 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.8rem;
}

.rules-meta {
  align-items: center;
  gap: 1rem;
  display: flex;
}

.version-badge {
  color: #fff;
  background-color: #3498db;
  border-radius: 1rem;
  padding: .25rem .75rem;
  font-size: .9rem;
  font-weight: 600;
}

.updated-date {
  color: #7f8c8d;
  font-size: .9rem;
}

.system-prompt-section {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.system-prompt-section h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.category-select-wrapper {
  width: 100%;
}

.category-select-label {
  color: #2c3e50;
  margin-bottom: 6px;
  font-weight: 600;
  display: block;
}

.category-select {
  background: #fff;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow .15s, border-color .15s;
  box-shadow: inset 0 1px 2px #00000008;
}

.category-select:focus {
  border-color: #2d7cff;
  outline: none;
  box-shadow: 0 0 0 4px #2d7cff14;
}

.prompt-content {
  color: #495057;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.6;
}

.rule-input, .btn, .editor-section .system-prompt-input, .preview-section .prompt-content {
  font-family: inherit;
}

.prompt-content p {
  margin: .5rem 0;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  display: grid;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 6px #0000001a;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px #0000001a;
}

.category-header {
  color: #fff;
  padding: 1.5rem;
}

.category-card.ignore .category-header {
  background: #57822b;
}

.category-card.critical .category-header {
  background: #e74c3c;
}

.category-card.constraint .category-header {
  background: #f39c12;
}

.category-header h3 {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
}

.category-description {
  opacity: .9;
  margin: 0;
  font-size: .95rem;
}

.category-body {
  padding: 1.5rem;
}

.rule-sets h4, .category-reasoning h4 {
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  font-size: 1rem;
}

.rule-sets h4 {
  margin-top: 1.5rem;
}

.rule-set {
  background-color: #f8f9fa;
  border-left: 4px solid #bdc3c7;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1rem;
  position: relative;
}

.rule-set.editable .delete-set-icon {
  color: #c0392b;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px;
  position: absolute;
  top: 12px;
  right: 12px;
}

.rule-set.editable .delete-set-icon:hover {
  background: #c0392b14;
}

.rule-textarea.with-delete-icon {
  padding-right: 46px;
}

.edit-actions {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.category-card.ignore .rule-set {
  border-left-color: #57822b;
}

.category-card.critical .rule-set {
  border-left-color: #c0392b;
}

.category-card.constraint .rule-set {
  border-left-color: #f39c12;
}

.rule-set ul {
  margin: 0;
  padding-left: 1.2rem;
}

.rule-set li {
  color: #555;
  margin-bottom: .5rem;
  line-height: 1.4;
}

.rule-set li:last-child {
  margin-bottom: 0;
}

.category-reasoning p {
  color: #666;
  margin: 0 0 8px;
  font-style: italic;
  line-height: 1.6;
}

.category-reasoning .reasoning-text {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  white-space: normal;
  cursor: default;
  -webkit-box-orient: vertical;
  max-height: 4.5em;
  display: -webkit-box;
  overflow: hidden;
}

.reasoning-wrapper {
  margin-bottom: 8px;
  display: block;
  position: relative;
  overflow: visible;
}

.reasoning-tooltip {
  opacity: 0;
  pointer-events: none;
  color: #fff;
  z-index: 1400;
  white-space: normal;
  word-wrap: break-word;
  background: #000000e6;
  border-radius: 8px;
  max-width: 420px;
  max-height: 40vh;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.5;
  transition: opacity .15s ease-in-out, transform .15s ease-in-out;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  overflow: hidden;
  transform: translateY(6px);
  box-shadow: 0 10px 30px #00000040;
}

.reasoning-wrapper:hover .reasoning-tooltip, .reasoning-wrapper:focus-within .reasoning-tooltip {
  opacity: 1;
  pointer-events: auto;
  transition-delay: .5s;
  transform: translateY(0);
}

.reasoning-tooltip:after {
  content: "";
  border-top: 6px solid #000000d9;
  border-left: 6px solid #0000;
  border-right: 6px solid #0000;
  width: 0;
  height: 0;
  position: absolute;
  top: 100%;
  left: 12px;
}

.rules-loading {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  display: flex;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top-color: #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  animation: 1s linear infinite spin;
}

.rules-error {
  text-align: center;
  background-color: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  max-width: 600px;
  margin: 2rem auto;
  padding: 3rem;
}

.error-icon {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.retry-button {
  color: #fff;
  cursor: pointer;
  background-color: #e53e3e;
  border: none;
  border-radius: 4px;
  margin-top: 1rem;
  padding: .5rem 1.5rem;
  font-weight: 600;
  transition: background-color .2s;
}

.retry-button:hover {
  background-color: #c53030;
}

@media (width <= 768px) {
  .rules-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.two-column {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1rem;
  display: grid;
}

@media (width <= 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

.preview-modal {
  z-index: 2000;
  background: #00000073;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.preview-modal-content {
  background: #fff;
  border: 1px solid #0f172a0f;
  border-radius: 8px;
  width: min(1024px, 100%);
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 12px 36px #00000040;
}

.preview-modal-header {
  border-bottom: 1px solid #f0f0f0;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  display: flex;
}

.modal-close {
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 20px;
}

.modal-body {
  color: #333;
  padding: 4px 16px 16px;
  line-height: 1.6;
}

.markdown-preview {
  font-size: 15px;
}

.markdown-preview h1 {
  color: #1a1a2e;
  border-bottom: 1px solid #e9ecef;
  margin: 1.25em 0 .5em;
  padding-bottom: .35em;
  font-size: 1.6rem;
  font-weight: 700;
}

.markdown-preview h1:first-child {
  margin-top: 0;
}

.markdown-preview h2 {
  color: #252550;
  margin: 1.1em 0 .45em;
  font-size: 1.35rem;
  font-weight: 600;
}

.markdown-preview h3 {
  color: #333;
  margin: 1em 0 .4em;
  font-size: 1.15rem;
  font-weight: 600;
}

.markdown-preview h4, .markdown-preview h5, .markdown-preview h6 {
  color: #444;
  margin: .9em 0 .35em;
  font-size: 1rem;
  font-weight: 600;
}

.markdown-preview p {
  margin: .6em 0;
}

.markdown-preview ul, .markdown-preview ol {
  margin: .6em 0;
  padding-left: 1.5em;
}

.markdown-preview li {
  margin: .25em 0;
}

.markdown-preview code {
  color: #c7254e;
  background: #f1f3f5;
  border-radius: 4px;
  padding: .2em .4em;
  font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, monospace;
  font-size: .9em;
}

.markdown-preview pre {
  background: #f1f3f5;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin: .8em 0;
  padding: 1rem;
  overflow-x: auto;
}

.markdown-preview pre code {
  color: #333;
  background: none;
  padding: 0;
  font-size: .85rem;
}

.markdown-preview strong {
  color: #1a1a2e;
  font-weight: 700;
}

.markdown-preview blockquote {
  color: #495057;
  background: #f8f9fa;
  border-left: 4px solid #2d7cff;
  border-radius: 0 4px 4px 0;
  margin: .8em 0;
  padding: .5em 1em;
}

.markdown-preview hr {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 1.25em 0;
}

.result-row {
  cursor: pointer;
  transition: background-color .12s, transform .12s;
}

.result-row:hover {
  background: linear-gradient(90deg, #2d7cff08, #00000003);
  transform: translateY(-1px);
}

.result-row td {
  border-bottom: 1px dashed #0000000a;
  padding: 12px 10px;
}

.modal-detail-grid {
  margin-bottom: 8px;
}

.modal-detail-grid .detail-row {
  background: #fbfbfc;
  border: 1px solid #eef0f6;
  border-radius: 8px;
  padding: 10px 12px;
}

.modal-detail-grid .detail-row strong {
  color: #495057;
  margin-bottom: 6px;
  font-size: .9rem;
  display: block;
}

.modal-body h4 {
  color: #2c3e50;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.modal-section-title {
  color: #1e293b !important;
  font-size: 1rem !important;
}

.shortage-table-wrap, .aml-table-wrap {
  background: #fbfbfc;
  border: 1px solid #eef0f6;
  border-radius: 8px;
  overflow-x: auto;
}

.shortage-table, .aml-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
}

.shortage-table th, .shortage-table td, .aml-table th, .aml-table td {
  text-align: left;
  border-bottom: 1px solid #eef0f6;
  padding: 8px 10px;
}

.shortage-table th, .aml-table th {
  color: #475569;
  background: #f1f5f9;
  font-weight: 600;
}

.shortage-table tbody tr:last-child td, .aml-table tbody tr:last-child td {
  border-bottom: none;
}

.shortage-table td {
  white-space: nowrap;
}

.aml-mpn {
  color: #334155;
  background: #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ui-monospace, Cascadia Code, monospace;
  font-size: .85em;
}

.editor-section.full-width {
  width: 100%;
}

.editor-section .system-prompt-input {
  resize: vertical;
  border: 1px solid #dcdfe3;
  border-radius: 6px;
  width: 100%;
  padding: .75rem;
  font-family: inherit;
}

.preview-section .prompt-content.preview {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  min-height: 160px;
  padding: 1rem;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
}

.btn-primary {
  color: #fff;
  background: #2d7cff;
}

.btn-secondary {
  color: #0b3bff;
  background: #eef2ff;
  margin-left: 8px;
}

.btn-danger {
  color: #b71c1c;
  background: #ffecec;
  margin-left: 8px;
}

.category-edit-panel {
  background: #fbfbfc;
  border: 1px solid #eef0f6;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.rule-row {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.rule-input {
  border: 1px solid #dcdfe3;
  border-radius: 6px;
  flex: 1;
  padding: 8px;
}

.rule-textarea {
  resize: vertical;
  border: 1px solid #dcdfe3;
  border-radius: 6px;
  width: 100%;
  min-height: 110px;
  padding: 10px;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.4;
}

.update-message {
  color: #2b6a1f;
  margin-top: .5rem;
  font-weight: 600;
}

.job-details-page .stats-cards {
  gap: 12px;
  margin-top: 8px;
  display: flex;
}

.table-reasoning {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  max-height: 4.5em;
  display: -webkit-box;
  overflow: hidden;
}

.icon-btn {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 6px;
  display: inline-flex;
}

.icon-btn:hover {
  background: #0000000a;
}

.table-card table td .badge {
  margin: 0;
}

@media (width <= 640px) {
  .job-details-page .stats-cards {
    flex-direction: column;
  }
}

.status-step-wrapper {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 8px;
  max-width: 680px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px #0f172a08;
}

.status-step {
  align-items: flex-start;
  gap: 12px;
  animation: .36s ease-out fadeIn;
  display: flex;
}

.step-icon {
  background: linear-gradient(#f8fafc, #fff);
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
}

.step-content .step-title {
  color: #102a43;
  font-weight: 700;
}

.step-content .step-desc {
  color: #6b7280;
  margin-top: 4px;
  font-size: .95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --base-font-size: 16px;
  --base-line-height: 1.5;
}

html, body, #root {
  font-family: var(--font-family);
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
}

.auth-page {
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.auth-page__bg {
  z-index: 0;
  background: linear-gradient(160deg, #002b49 0%, #003d6b 40%, #f0f4f8 100%);
  position: absolute;
  inset: 0;
}

.auth-card {
  z-index: 1;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 12px 40px #002b4933;
}

.auth-card__logo {
  margin-bottom: 24px;
}

.auth-card__logo-img {
  width: auto;
  height: 36px;
  display: inline-block;
}

.auth-card__logo-svg {
  width: auto;
  height: 36px;
}

.auth-card__accent {
  background: linear-gradient(90deg, #15bef0, #7fba00);
  border-radius: 2px;
  width: 48px;
  height: 4px;
  margin: 0 auto 24px;
}

.auth-card__title {
  color: #002b49;
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.auth-card__subtitle, .auth-card__message {
  color: #5a6c7d;
  margin: 0 0 28px;
  font-size: .95rem;
  line-height: 1.5;
}

.auth-card__icon {
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  display: flex;
}

.auth-card__icon--denied {
  color: #c62828;
}

.auth-card__icon--expired {
  color: #e65100;
}

.auth-card__btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color .2s, box-shadow .2s;
  display: inline-block;
}

.auth-card__btn--primary {
  color: #fff;
  background: #002b49;
}

.auth-card__btn--primary:hover {
  background: #003d6b;
  box-shadow: 0 4px 12px #002b4959;
}

.auth-card__btn--primary:active {
  background: #001e35;
}

.auth-page--loading {
  background: linear-gradient(160deg, #002b49 0%, #003d6b 50%, #f0f4f8 100%);
}

.auth-loading {
  z-index: 1;
  text-align: center;
  position: relative;
}

.auth-loading__spinner {
  border: 4px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  animation: .9s linear infinite auth-spin;
}

.auth-loading__text {
  color: #fff;
  text-shadow: 0 1px 2px #0003;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg-app);
  color: var(--color-text-primary);
}

.app-container {
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.sidebar {
  display: none;
}

.main-content {
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.header {
  color: #fff;
  background: #002b49;
  justify-content: flex-start;
  align-items: center;
  padding: 30px;
  display: flex;
  box-shadow: 0 2px 10px #0000001a;
}

.header h1 {
  display: none;
}

.logo {
  align-items: center;
  width: auto;
  height: 30px;
}

.logo-icon {
  align-items: center;
  display: flex;
}

.slide-icon {
  padding-left: .5rem;
}

.slide-icon svg {
  height: 80px;
}

.tabs {
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 0;
  display: flex;
}

.tab-button {
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
  border-bottom: 3px solid #0000;
  margin-bottom: -2px;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 500;
  transition: all .3s;
}

.tab-button:hover {
  color: #333;
  background-color: #f5f5f5;
}

.tab-button.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.stats-block {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  display: grid;
}

.stats-cards {
  justify-content: space-between;
  display: flex;
}

.category-stats {
  justify-content: space-between;
  margin-top: 2rem;
  display: flex;
}

.stat-card {
  background: #fff;
  border-left: 4px solid #002b49;
  border-radius: 8px;
  min-width: 16%;
  padding: 20px;
  box-shadow: 0 2px 8px #0000001a;
}

.stat-label {
  color: #666;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.stat-value {
  color: #002b49;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
}

.stat-trend {
  color: var(--color-ignore);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: flex;
}

.stat-trend.critical {
  color: var(--color-critical);
}

.stat-trend.warning {
  color: var(--color-constraint);
}

.stat-trend.success {
  color: var(--color-ignore);
}

.trend-icon {
  font-size: 14px;
  font-weight: bold;
}

.trend-text {
  font-weight: 500;
}

.charts-row {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  display: grid;
}

.chart-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px #0000001a;
}

.chart-card h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.table-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  box-shadow: 0 2px 8px #0000001a;
}

.table-card h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table th {
  text-align: left;
  color: #333;
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  padding: 12px;
  font-weight: 600;
}

table td {
  color: #666;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px;
}

table tr:hover {
  background-color: #f8f9fa;
}

.form-container {
  background: #fff;
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  padding: 30px;
  box-shadow: 0 2px 8px #0000001a;
}

.upload-tab-wrapper {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
  min-height: 0;
  padding: 20px 16px;
  display: grid;
}

.upload-tab-left {
  min-width: 0;
}

.upload-tab-left .form-container {
  width: 100%;
  margin: 0;
}

.upload-tab-right {
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.upload-tab-right--disabled {
  opacity: .5;
  pointer-events: none;
}

.upload-tab-right--disabled .upload-step {
  opacity: .6;
}

.upload-steps-placeholder {
  color: #64748b;
  margin: 0 0 16px;
  font-size: .9rem;
  font-style: italic;
}

.upload-tab-right .upload-steps {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
}

.upload-status-block {
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 24px;
  padding: 20px;
}

.upload-status-inner {
  margin-bottom: 0;
}

.btn-show-details {
  margin-top: 8px;
}

.upload-steps {
  background: linear-gradient(#f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.upload-steps-title {
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 16px;
  font-size: .9rem;
  font-weight: 700;
}

.upload-step {
  opacity: .6;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  transition: opacity .2s;
  display: flex;
}

.upload-step:last-child {
  border-bottom: none;
}

.upload-step--current {
  opacity: 1;
  background: #ffffffb3;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  margin: 0 -12px;
  padding: 12px;
  box-shadow: 0 2px 8px #6366f114;
}

.upload-step--done {
  opacity: .85;
}

.upload-step--done .upload-step-marker {
  color: #fff;
  background: #22c55e;
  font-size: 14px;
  font-weight: 700;
}

.upload-step-marker {
  color: #64748b;
  background: #e2e8f0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
}

.upload-step--current .upload-step-marker {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px #6366f159;
}

.upload-step-body {
  flex: 1;
  min-width: 0;
}

.upload-step-title {
  color: #1e293b;
  margin-bottom: 2px;
  font-size: .95rem;
  font-weight: 700;
}

.upload-step--current .upload-step-title {
  color: #4338ca;
}

.upload-step-desc {
  color: #64748b;
  font-size: .8rem;
  line-height: 1.4;
}

.upload-step-desc--log {
  color: #334155;
  word-break: break-word;
  font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, monospace;
  font-size: .78rem;
}

.job-progress-wrap {
  width: 100%;
}

.job-progress-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  display: flex;
}

.job-progress-label {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.job-progress-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.job-progress-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.job-progress-fill {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 999px;
  height: 100%;
  transition: width .3s;
}

.configuration-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 30px;
  overflow: hidden;
}

.config-toggle {
  cursor: pointer;
  color: #333;
  background-color: #f8f9fa;
  border: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .3s;
  display: flex;
}

.config-toggle:hover {
  background-color: #f0f1f3;
}

.toggle-icon {
  font-size: 14px;
  transition: transform .3s;
  display: inline-block;
}

.config-content {
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 20px;
}

.config-content .form-group {
  margin-bottom: 15px;
}

.config-content select, .form-group select {
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

.config-content select:focus, .form-group select:focus {
  border-color: #002b49;
  outline: none;
  box-shadow: 0 0 0 3px #002b491a;
}

.checkbox-group {
  margin-bottom: 0;
}

.checkbox-group label {
  cursor: pointer;
  color: #333;
  align-items: center;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
}

.checkbox-group input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.config-content .checkbox-label {
  cursor: pointer;
  color: #333;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  display: flex;
}

.config-content .checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.config-content .email-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.config-content .email-list-item {
  background: #f8f9fa;
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px 10px;
  font-size: 14px;
  display: flex;
}

.config-content .email-remove {
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 6px;
  font-size: 18px;
  line-height: 1;
}

.config-content .email-remove:hover {
  color: #c0392b;
}

.config-content .email-add {
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.config-content .email-add input {
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
}

.config-content .email-add input:focus {
  border-color: #002b49;
  outline: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.file-drop-area {
  text-align: center;
  cursor: pointer;
  background-color: #fafafa;
  border: 2px dashed #ddd;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  padding: 40px 20px;
  transition: all .3s;
  display: flex;
}

.file-drop-area.active {
  background-color: #f0f6fb;
  border-color: #002b49;
}

.file-drop-area.file-selected {
  background-color: #f0fdf4;
  border-color: #28a745;
}

.file-input-hidden {
  display: none;
}

.file-drop-content {
  pointer-events: none;
}

.drop-icon {
  color: #002b49;
  opacity: .7;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}

.file-drop-content p {
  color: #333;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.file-drop-content small {
  color: #666;
  margin-top: 8px;
  font-size: 12px;
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  color: #333;
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
}

.form-group input[type="file"], .form-group input[type="text"], .form-group input[type="number"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

.form-group input[type="file"]:focus, .form-group input[type="text"]:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px #667eea1a;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  transition: all .3s;
}

.btn-primary {
  color: #fff;
  background-color: #57822b;
}

.btn-primary:hover {
  background-color: #57822b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #002b4966;
}

.btn-primary:disabled {
  cursor: not-allowed;
  background-color: #ccc;
  flex-direction: row;
  display: flex;
  transform: none;
}

.status-message {
  border-radius: 4px;
  margin-top: 15px;
  padding: 15px;
  font-weight: 500;
}

.status-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.status-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.status-loading {
  color: #0c5460;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top-color: #667eea;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  animation: 1s linear infinite spin;
  display: inline-block;
}

.loading-container {
  flex: 1;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 400px;
  margin-top: auto;
  margin-bottom: auto;
}

.loading-gif {
  width: auto;
  max-width: 100%;
  height: auto;
}

.log-stream-container {
  flex-direction: column;
  min-height: 400px;
  display: flex;
}

.log-stream-header {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding: 8px 0 10px;
  display: flex;
}

.log-stream-title {
  color: #1f2937;
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.log-stream-badge {
  color: #059669;
  font-size: .75rem;
  font-weight: 500;
}

.log-stream-status {
  color: #6b7280;
  flex-wrap: wrap;
  gap: 0 12px;
  font-size: .7rem;
  display: flex;
}

.log-stream-meta {
  color: #6b7280;
  font-family: ui-monospace, Cascadia Code, Menlo, Consolas, monospace;
  font-size: 11px;
}

.log-timestamp {
  color: #9ca3af;
  flex-shrink: 0;
  margin-right: 8px;
}

.log-stream {
  color: #d4d4d4;
  background: #1e1e1e;
  border-radius: 8px;
  flex: 1;
  max-height: 400px;
  padding: 12px 16px;
  font-family: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-y: auto;
}

.log-stream-placeholder, .log-stream-error {
  color: #9ca3af;
  padding: 8px 0;
}

.log-stream-error {
  color: #f87171;
}

.log-line {
  word-break: break-word;
  margin-bottom: 2px;
}

.log-source {
  flex-shrink: 0;
  font-weight: 600;
}

.log-source-batch-worker {
  color: #60a5fa;
}

.log-source-orchestrator {
  color: #34d399;
}

.log-source-supplier {
  color: #fbbf24;
}

.badge {
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .85rem;
  font-weight: 700;
  display: inline-block;
}

.badge-success {
  background: #57822b;
}

.badge-pending {
  color: #111;
  background: #f1c40f;
}

.badge-scheduled {
  background: #3b82f6;
}

.badge-processing {
  background: #7c3aed;
}

.badge-default {
  background: #94a3b8;
}

.badge-failed {
  background: #e74c3c;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}
/*# sourceMappingURL=app.aa436662.css.map */
