/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --brand: #7c2d12;
  --brand-dark: #5b210e;
  --brand-soft: #fff7ed;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --surface: #fff;
  --canvas: #f7f6f3;
  --success: #047857;
  --warning: #b45309;
  --danger: #b91c1c;
  --info: #1d4ed8;
  --shadow: 0 12px 36px #29252414;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  min-width: 320px;
  color: var(--ink);
  font-family: PingFang SC, Microsoft YaHei, Noto Sans CJK SC, system-ui, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
}

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

button, input, select, textarea {
  color: inherit;
  font: inherit;
}

button, summary, a {
  -webkit-tap-highlight-color: transparent;
}

.authenticated {
  background: radial-gradient(circle at 86% 4%, #fbbf2414, transparent 23rem),
    var(--canvas);
}

.sidebar {
  color: #f5f5f4;
  z-index: 20;
  background: #241b17;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  padding: 24px 16px 18px;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

.brand {
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 6px 28px;
  display: flex;
}

.brand-mark {
  background: linear-gradient(145deg, #ea580c, #7c2d12);
  border-radius: 13px;
  flex: 0 0 42px;
  justify-content: center;
  align-items: center;
  height: 42px;
  font-family: serif;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  box-shadow: 0 8px 20px #0000003d;
}

.brand > span:last-child {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.brand strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  overflow: hidden;
}

.brand small {
  color: #a8a29e;
  margin-top: 3px;
  font-size: 11px;
}

.main-nav {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.main-nav a {
  color: #d6d3d1;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: #fff;
  background: #ffffff14;
}

.nav-heading {
  color: #78716c;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 17px 12px 5px;
  font-size: 11px;
}

.user-panel {
  border-top: 1px solid #ffffff1a;
  flex-direction: column;
  margin-top: 14px;
  padding: 17px 8px 0;
  display: flex;
}

.user-panel > small {
  color: #a8a29e;
  margin-top: 3px;
}

.user-actions {
  gap: 12px;
  margin-top: 11px;
  display: flex;
}

.user-actions a, .link-button, .user-actions .nav-logout {
  color: #fdba74;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
}

.app-content {
  min-height: 100vh;
  margin-left: 248px;
  padding: 28px 34px 56px;
}

.mobile-header {
  display: none;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
}

.narrow-page {
  max-width: 900px;
}

.page-header, .panel-heading, .section-heading, .toolbar, .detail-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  display: flex;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1, .detail-heading h1 {
  letter-spacing: -.03em;
  margin: 3px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.page-header p, .detail-heading p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand) !important;
}

.header-actions, .row-actions, .form-actions, .inline-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  display: flex;
}

.button {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  cursor: pointer;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, box-shadow .15s, transform .15s;
  display: inline-flex;
}

.button:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #7c2d1233;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.button.secondary {
  color: #44403c;
  background: #fff;
  border-color: #d6d3d1;
}

.button.secondary:hover:not(:disabled) {
  background: #fafaf9;
}

.button.danger {
  color: var(--danger);
  background: #fff;
  border-color: #fecaca;
}

.button.success {
  background: var(--success);
  border-color: var(--success);
}

.button.small {
  border-radius: 7px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  display: grid;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  min-height: 138px;
  padding: 20px;
  display: flex;
  box-shadow: 0 3px 12px #29252409;
}

.metric-card span, .metric-card small {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  letter-spacing: -.03em;
  margin: 11px 0 auto;
  font-size: 31px;
}

.metric-card.accent {
  color: #fff;
  background: linear-gradient(140deg, #7c2d12, #9a3412);
  border-color: #0000;
}

.metric-card.accent span, .metric-card.accent small {
  color: #ffedd5;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 3px 12px #29252408;
}

.panel + .panel {
  margin-top: 18px;
}

.dashboard-grid .panel + .panel {
  margin-top: 0;
}

.panel-heading {
  border-bottom: 1px solid var(--line);
  margin: -2px 0 16px;
  padding-bottom: 15px;
}

.panel-heading h2, .section-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
}

.panel-heading > a, .section-heading > a {
  color: var(--brand);
  font-size: 13px;
}

.summary-list {
  flex-direction: column;
  display: flex;
}

.summary-list a {
  border-bottom: 1px solid #f1f0ef;
  justify-content: space-between;
  align-items: center;
  padding: 13px 2px;
  display: flex;
}

.summary-list a:last-child {
  border: 0;
}

.summary-list span, .finance-summary span {
  color: var(--muted);
  font-size: 13px;
}

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

.finance-summary > div {
  background: #fafaf9;
  border-radius: 10px;
  flex-direction: column;
  padding: 15px;
  display: flex;
}

.finance-summary strong {
  margin-top: 7px;
  font-size: 18px;
}

.toolbar {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 13px;
}

.filters {
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  gap: 9px;
  display: flex;
}

input, select, textarea {
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  outline: none;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

input:focus, select:focus, textarea:focus {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px #ea580c1a;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  min-height: auto;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.toolbar input, .toolbar select {
  width: auto;
  min-width: 130px;
}

.search-input {
  min-width: 240px !important;
}

.data-table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  overflow: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}

.data-table th {
  color: #57534e;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
  background: #fafaf9;
  padding: 12px 15px;
  font-size: 12px;
  font-weight: 600;
}

.data-table td {
  vertical-align: middle;
  border-top: 1px solid #f0efed;
  padding: 13px 15px;
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: #fffdf9;
}

.data-table td a:not(.button) {
  color: var(--brand);
  font-weight: 600;
}

.muted, .form-help, .empty-state p, .hint {
  color: var(--muted);
}

.status {
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.status-draft, .status-pending {
  color: #57534e;
  background: #f5f5f4;
}

.status-submitted, .status-awaiting_inspection, .status-quarantine, .status-open {
  color: var(--info);
  background: #eff6ff;
}

.status-approved, .status-released, .status-completed, .status-settled, .status-published, .status-active {
  color: var(--success);
  background: #ecfdf5;
}

.status-rejected, .status-cancelled, .status-reversed, .status-retired, .status-disabled {
  color: var(--danger);
  background: #fef2f2;
}

.badge {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  display: inline-flex;
}

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

.module-card, .template-card, .entity-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  flex-direction: column;
  min-height: 145px;
  padding: 18px;
  display: flex;
}

.module-card h2, .template-card h3, .entity-card h3 {
  margin: 9px 0 6px;
  font-size: 17px;
}

.module-card p, .template-card p, .entity-card p {
  color: var(--muted);
  margin: 0 0 15px;
  font-size: 13px;
}

.module-card .button, .template-card .button, .entity-card .button {
  margin-top: auto;
}

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

.form-grid > * {
  min-width: 0;
}

.form-grid .full, .field-section, .form-error, .form-notice, .form-actions {
  grid-column: 1 / -1;
}

label, .field-label {
  color: #44403c;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

label small {
  color: var(--muted);
  font-weight: 400;
}

.required-mark {
  color: var(--danger);
  margin-left: 3px;
}

.field-section {
  border-bottom: 1px solid var(--line);
  margin: 7px 0 -1px;
  padding-bottom: 8px;
  font-size: 15px;
}

.radio-group, .checkbox-group {
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 40px;
  padding: 8px 0;
  display: flex;
}

.radio-group label, .checkbox-group label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  display: inline-flex;
}

.form-error, .form-notice {
  border-radius: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}

.form-error {
  color: var(--danger);
  background: #fef2f2;
}

.form-notice {
  color: #1e40af;
  background: #eff6ff;
}

.form-warning {
  color: #92400e;
  background: #fffbeb;
}

.form-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 17px;
}

.detail-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
  gap: 18px;
  display: grid;
}

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

.definition-grid > div {
  border-bottom: 1px solid #f1f0ef;
  grid-template-columns: 130px 1fr;
  gap: 6px;
  padding: 12px 0;
  display: grid;
}

.definition-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.definition-grid dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 13px;
}

.timeline {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.timeline li {
  border-left: 2px solid #e7e5e4;
  margin-left: 6px;
  padding: 0 0 18px 18px;
  position: relative;
}

.timeline li:before {
  background: var(--brand);
  content: "";
  border: 3px solid #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 2px;
  left: -6px;
  box-shadow: 0 0 0 1px #d6d3d1;
}

.timeline strong, .timeline span, .timeline small {
  display: block;
}

.timeline span, .timeline small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.pagination {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

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

.empty-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  padding: 30px;
  display: flex;
}

.empty-state strong {
  font-size: 17px;
}

.empty-state p {
  margin: 8px 0 16px;
  font-size: 13px;
}

.auth-shell, .auth-page {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 28px;
  display: flex;
}

.auth-brand {
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  display: flex;
}

.auth-brand strong {
  font-size: 17px;
  display: block;
}

.auth-brand small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.brand-mark.large {
  flex-basis: 50px;
  height: 50px;
  font-size: 28px;
}

.auth-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 500px;
  padding: 34px;
}

.auth-card.wide, .setup-card {
  max-width: 720px;
}

.auth-card h1 {
  margin: 8px 0;
  font-size: 27px;
}

.auth-card > p {
  color: var(--muted);
  margin: 0 0 23px;
  font-size: 14px;
}

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

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

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest {
  background: radial-gradient(circle at 15% 15%, #ea580c1f, #0000 30rem), radial-gradient(circle at 85% 80%, #78350f1a, #0000 32rem), #fafaf9;
}

.code-block {
  color: #f5f5f4;
  white-space: pre-wrap;
  background: #292524;
  border-radius: 9px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow: auto;
}

.steps-list {
  counter-reset: steps;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.steps-list > li {
  background: #fafaf9;
  border: 1px solid #eeecea;
  border-radius: 10px;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  display: flex;
}

.steps-list > li:before {
  background: var(--brand);
  color: #fff;
  content: counter(steps);
  counter-increment: steps;
  border-radius: 50%;
  flex: 0 0 25px;
  justify-content: center;
  align-items: center;
  height: 25px;
  font-size: 12px;
  display: flex;
}

.print-only {
  display: none;
}

@media (max-width: 1120px) {
  .metric-grid, .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-grid .panel + .panel {
    margin-top: 0;
  }
}

@media (max-width: 780px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    color: #fff;
    z-index: 20;
    background: #241b17;
    justify-content: space-between;
    align-items: center;
    height: 58px;
    padding: 0 16px;
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
  }

  .mobile-brand {
    font-weight: 700;
  }

  .mobile-header details {
    position: relative;
  }

  .mobile-header summary {
    cursor: pointer;
    font-size: 13px;
    list-style: none;
  }

  .mobile-header nav {
    box-shadow: var(--shadow);
    background: #292524;
    border-radius: 9px;
    flex-direction: column;
    min-width: 160px;
    padding: 8px;
    display: flex;
    position: absolute;
    top: 29px;
    right: 0;
  }

  .mobile-header nav a {
    border-radius: 6px;
    padding: 9px 10px;
  }

  .mobile-header nav .nav-logout {
    color: #fff;
    cursor: pointer;
    text-align: left;
    background: none;
    border: 0;
    padding: 9px 10px;
  }

  .app-content {
    margin-left: 0;
    padding: 20px 16px 42px;
  }

  .page-header, .detail-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-grid, .form-grid, .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-grid > div {
    grid-template-columns: 110px 1fr;
  }

  .finance-summary {
    grid-template-columns: 1fr;
  }

  .auth-shell, .auth-page {
    padding: 16px;
  }

  .auth-card {
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .metric-grid, .card-grid, .form-row.two {
    grid-template-columns: 1fr;
  }

  .toolbar, .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar input, .toolbar select, .search-input {
    width: 100%;
    min-width: 0 !important;
  }

  .header-actions .button {
    flex: 1;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body {
    background: #fff;
  }

  .sidebar, .mobile-header, .no-print, .header-actions, .toolbar {
    display: none !important;
  }

  .app-content {
    margin: 0;
    padding: 0;
  }

  .print-only {
    display: block;
  }

  .panel, .data-table-wrap {
    box-shadow: none;
    border-color: #aaa;
  }

  .panel {
    break-inside: avoid;
    padding: 12px;
  }

  .data-table {
    min-width: 0;
  }

  .data-table th, .data-table td {
    white-space: normal;
    padding: 6px;
    font-size: 9pt;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/