/* CW adaptations for the blue workbench, reference version 2026-10-03. */
:root { --blue: #2f80ed; --blue-dark: #2067c7; --blue-soft: #edf4ff; }
.brand-system-name { font-size: 14px; }
.main { max-width: none; }
.main > .top { margin-bottom: 24px; }
.main > .top .page-tools { margin: 0; }
.page-eyebrow { letter-spacing: 1px; font-size: 11px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
h1 { font-family: "Songti SC", "SimSun", serif; font-size: clamp(27px, 2.3vw, 34px); line-height: 1.4; margin: 0 0 10px; }
.row p { margin: 0; font-size: 12px; }
.row > div { min-width: 0; }
.row > a { flex-shrink: 0; }
.search-field { flex: 1 1 220px; max-width: 360px; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table { overflow-x: auto; scrollbar-width: thin; }
.table:not(.card) { border: 1px solid var(--line); border-radius: 12px; }
.table table { min-width: 780px; }
.table.customer-table table { min-width: 1180px; }
.table .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.financial-note { font-size: 12px; margin: 0 0 12px; }
.table.card { padding: 0; }
.table.card table { min-width: 1120px; }
.table.users-table table { min-width: 940px; }
.users-table th, .users-table td { padding: 14px 12px; }
.users-table td .actions { min-width: 320px; }
.users-table td .actions input { width: 110px; flex-basis: 110px; }
.table th, .table td { padding: 14px 16px; }
.table td { vertical-align: middle; }
.table td:first-child { white-space: nowrap; }
.actions { display: flex; gap: 7px; align-items: center; }
td .actions { min-width: 360px; }
td .actions input { width: 150px; flex: 1 1 150px; }
td .actions button { flex-shrink: 0; min-height: 32px; padding: 5px 10px; }
button.secondary { background: #fff; color: #5b6573; border-color: #dfe4eb; }
button.secondary:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: #bfd7f6; }
button.danger { background: #fff0f0; color: #b54545; border-color: #f1cece; }
button.danger:hover { background: #ffe3e3; color: #a53c3c; }
.badge { white-space: nowrap; }
.badge.pending { background: #fff6e8; color: #926315; border-color: #f1dfbb; }
.badge.active { background: #eef7f0; color: #40815c; border-color: #d4e9db; }
.badge.rejected, .badge.disabled { background: #fff1f1; color: #b94d4d; border-color: #f3d7d7; }
.error { margin: 16px 0; padding: 13px 16px; background: #fff2f2; border: 1px solid #f5d8d8; color: #a64949; border-radius: 10px; font-size: 13px; }
.auth-container { width: min(100%, 460px); }
.auth-page .auth { margin: 0; padding: 38px; border-radius: 22px; box-shadow: 0 12px 40px #19233206; }
.auth-page .auth .brand { margin-bottom: 28px; }
.auth .brand-logo { max-width: 220px; }
.auth { width: min(100%, 460px); margin: 32px auto; padding: 32px; }
.auth label { margin: 18px 0 7px; }
.auth button { width: 100%; min-height: 44px; font-size: 14px; }
.auth-page .auth button { margin-top: 12px; }
.auth > p:last-child { margin-bottom: 0; }
.empty-state { padding: 38px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; background: #fafbfd; }
.inline { display: inline; }
.inline input { width: 150px; }
@media (max-width: 760px) {
  .side .brand { flex-direction: row; align-items: center; gap: 16px; }
  .side .brand-logo { width: 130px; }
  .main > .top { gap: 12px; }
  .row { align-items: flex-start; flex-wrap: wrap; }
  .search-field { max-width: none; }
  .filter-actions { width: 100%; }
  .auth-page .auth { padding: 28px 24px; }
  .auth { padding: 24px; }
}
@media print {
  .side, .user, .page-tools { display: none !important; }
  .main { margin: 0; padding: 0; }
}
