* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: #eef2f5; color: #172033; }
button, input, select, textarea { font: inherit; }
.page { width: min(1180px, 100%); margin: 0 auto; padding: 28px; min-height: 100vh; }
.header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 20px 0 14px; margin-bottom: 18px; border-bottom: 1px solid #d8dee8; }
.badge { display: inline-block; background: #16324f; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
h1 { margin: 10px 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
h2 { margin: 0 0 12px; font-size: 21px; }
h3 { margin: 18px 0 10px; font-size: 16px; }
.muted { color: #667085; margin: 4px 0; line-height: 1.45; }
.card { background: #fff; border: 1px solid #dfe5ee; border-radius: 8px; padding: 22px; box-shadow: 0 14px 32px rgba(21,38,59,.06); margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.stat, .item { border: 1px solid #e1e7ef; border-radius: 8px; padding: 14px; background: #fff; margin-bottom: 12px; }
.stat { background: #f8fafc; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #344054; }
input, select, textarea { border: 1px solid #cbd5e1; border-radius: 6px; padding: 11px 12px; font-size: 14px; background: #fff; width: 100%; color: #172033; }
input:disabled { border-color: #e5e7eb; background: #f2f4f7; color: #98a2b3; }
.field-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .14); }
button, .link-btn { min-height: 40px; border-radius: 6px; padding: 10px 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.primary, .link-btn { background: #16324f; color: #fff; border: 0; }
button.secondary { background: #fff; color: #172033; border: 1px solid #cbd5e1; }
button.danger { background: #fff; color: #b42318; border: 1px solid #fecdca; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.actions.compact { margin: 0; align-items: center; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; padding: 6px; background: #dde5ee; border-radius: 8px; }
.tab { background: #fff; border: 1px solid #cbd5e1; }
.tab.active { background: #16324f; color: #fff; border-color: #16324f; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 12px; margin-top: 12px; color: #9a3412; }
.success { background: #ecfdf3; border: 1px solid #abefc6; border-radius: 8px; padding: 12px; margin-top: 12px; color: #067647; }
.logo-preview, .logo-placeholder { border: 1px solid #dfe5ee; border-radius: 8px; min-height: 120px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; background: #f8fafc; overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 150px; object-fit: contain; padding: 12px; }
.logo-placeholder { color: #667085; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 10px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid #dfe5ee; padding: 10px; text-align: left; vertical-align: middle; }
th { background: #f8fafc; color: #344054; }
.report-section { border: 1px solid #dfe5ee; border-radius: 8px; margin: 12px 0; background: #fff; }
.report-section summary { cursor: pointer; font-weight: 800; padding: 12px 14px; color: #16324f; }
.report-section .table-wrap { margin: 0; padding: 0 12px 12px; overflow-x: visible; }
.copy-table { margin: 0 12px 12px; }
.report-table { table-layout: fixed; min-width: 0; }
.report-table th,
.report-table td { font-size: 12px; padding: 6px; line-height: 1.25; }
.report-table th:first-child,
.report-table td:first-child { width: 24%; }
.report-table th:not(:first-child),
.report-table td:not(:first-child) { width: 7.6%; }
.report-section td { text-align: right; }
.report-section td:first-child { text-align: left; font-weight: 700; }
@media (max-width: 900px) {
  .page { padding: 18px; }
  .grid2, .form-grid, .stat-grid, .tabs { grid-template-columns: 1fr; }
  .row { align-items: flex-start; flex-direction: column; }
}
