﻿:root {
  --bg: #f7f9fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #52606d;
  --primary: #0b8fa2;
  --primary-600: #0a7d8d;
  --accent: #1f3b5b;
  --danger: #b42318;
  --border: #d7e0ea;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: linear-gradient(90deg, #1399a6 0%, #20b2a7 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-mark {
  width: 42px;
  height: 42px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.topbar-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.topbar-caption {
  font-size: 11px;
  opacity: 0.85;
}

.topbar-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 20px 50px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

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

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--accent);
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--border);
}

.section-title {
  font-size: 14px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.button.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button.danger {
  background: var(--danger);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}

.label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

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

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-item {
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  background: #fff;
}

.icon-button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.icon-button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.icon-button.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: #e5f4f6;
  color: #0f172a;
}

.notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef9c3;
  color: #854d0e;
  font-size: 13px;
}

.split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 1fr;
}

.hero {
  padding: 20px;
  border-radius: var(--radius);
  background: #e6f4f6;
  border: 1px solid #b7dce3;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

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

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #f8fafc;
  color: var(--muted);
}

.dropzone.highlight {
  border-color: var(--primary);
  background: #eef7f8;
}

.dropzone input {
  margin-top: 12px;
}

.hidden {
  display: none;
}

.note {
  font-size: 12px;
  color: var(--muted);
}

.report {
  padding: 24px;
  border: 1px solid #c9d6e2;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid #c9d6e2;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.report-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
}

.report-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.report-meta {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.report-meta strong {
  color: var(--text);
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.report-section {
  margin-bottom: 16px;
}

.report-field {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.report-field:last-child {
  border-bottom: none;
}

.report-images {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.report-image-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.report-image-card.best {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(11, 143, 162, 0.18);
}

.report-image-card img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.report-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef2f7;
  color: #1f2937;
}

.report-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-final {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f4fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.report-final strong {
  color: var(--primary);
}

.print-hidden {
  display: block;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-title {
    font-size: 18px;
  }

  .page {
    padding: 18px 16px 40px;
  }

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

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .card {
    padding: 18px;
  }

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

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-meta {
    text-align: left;
  }

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

@media print {
  @page {
    margin: 12mm;
  }

  body {
    background: #fff;
  }

  .print-hidden {
    display: none !important;
  }

  .page {
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: none;
  }

  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .report {
    border: 1px solid #000;
  }

  .report-header,
  .report-footer,
  .report-field {
    border-color: #000;
  }

  .badge,
  .report-tag {
    border: 1px solid #000;
  }

  .report-image-card {
    border: 1px solid #000;
  }

  .report-image-card img {
    border: 1px solid #000;
    filter: grayscale(100%);
  }
}
