/* ══ Reset & Base ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: 'Noto Sans KR', sans-serif; background: #f0f2f5; color: #222; min-height: 100vh; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ══ Layout ══════════════════════════════════════════════════════ */
#app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 220px; min-width: 220px;
  background: #0d1b2a; color: #e0e6ed;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 200; transition: transform .25s ease;
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 199;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-icon { font-size: 28px; }
.logo-main { font-size: 15px; font-weight: 700; color: #fff; }
.logo-sub  { font-size: 11px; color: #8899aa; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 13.5px; color: #b0c0d0;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(30,140,255,.15); color: #fff; border-left-color: #2196f3; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }

.sidebar-footer { padding: 14px 14px 20px; }
.btn-sample {
  width: 100%; padding: 8px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); color: #aac; border-radius: 6px;
  font-size: 12px; transition: background .15s;
}
.btn-sample:hover { background: rgba(255,255,255,.15); }

/* Main */
.main-wrap {
  margin-left: 220px; flex: 1; display: flex; flex-direction: column;
  min-height: 100vh;
}
.top-bar {
  background: #fff; border-bottom: 1px solid #e0e4ea;
  padding: 0 20px; height: 56px;
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 100;
}
.hamburger { display: none; background: none; border: none; font-size: 22px; color: #444; }
.top-title { font-size: 17px; font-weight: 700; flex: 1; }
.top-actions { display: flex; gap: 8px; }

/* Pages */
.page { display: none; padding: 20px; flex: 1; }
.page.active { display: block; }

/* ══ Buttons ═════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 6px; font-size: 13px;
  font-weight: 600; border: none; transition: all .15s;
}
.btn-primary { background: #1565C0; color: #fff; }
.btn-primary:hover { background: #1976D2; }
.btn-blue { background: #1565C0; color: #fff; }
.btn-blue:hover { background: #1976D2; }
.btn-red  { background: #C62828; color: #fff; }
.btn-red:hover  { background: #D32F2F; }
.btn-outline { background: #fff; color: #444; border: 1px solid #d0d6e0; }
.btn-outline:hover { background: #f5f5f5; }
.btn-danger { background: #fff; color: #C62828; border: 1px solid #e57373; }
.btn-danger:hover { background: #fef2f2; }
.btn-success { background: #388E3C; color: #fff; }
.btn-success:hover { background: #43A047; }
.btn-toggle { background: #f0f2f5; color: #555; border: 1px solid #d0d6e0; }
.btn-toggle.active { background: #1565C0; color: #fff; border-color: #1565C0; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }

/* ══ Color utils ═════════════════════════════════════════════════ */
.blue-text { color: #1565C0; }
.red-text  { color: #C62828; }

/* ══ Dashboard ════════════════════════════════════════════════════ */
.dash-banner {
  background: linear-gradient(135deg, #0d47a1 0%, #1565C0 60%, #1e88e5 100%);
  color: #fff; border-radius: 12px; padding: 24px 28px;
  margin-bottom: 20px;
}
.dash-banner-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.dash-banner-info  { font-size: 13px; opacity: .85; line-height: 1.8; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-label { font-size: 12px; color: #777; }
.stat-value { font-size: 26px; font-weight: 800; color: #1565C0; }
.stat-sub   { font-size: 11px; color: #999; }

.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card {
  background: #fff; border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.dash-card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.dash-player-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0f4ff; border-radius: 16px; padding: 3px 10px;
  font-size: 12px; margin: 3px;
}
.dash-player-chip.white { background: #fff5f5; }
.chip-gender { font-size: 10px; color: #888; }
.chip-role { font-size: 10px; background: #e3f2fd; color: #1565C0; border-radius: 8px; padding: 0 5px; }
.chip-role.red { background: #fce4ec; color: #C62828; }

/* ══ Settings ════════════════════════════════════════════════════ */
.form-card {
  background: #fff; border-radius: 10px; padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); max-width: 760px;
}
.form-section-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 12px; font-weight: 600; color: #555; }
.form-group input, .form-group select {
  padding: 9px 12px; border: 1px solid #d0d6e0; border-radius: 6px;
  font-size: 13.5px; outline: none; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus { border-color: #1565C0; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }

/* ══ Players ═════════════════════════════════════════════════════ */
.players-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.players-toolbar-left, .players-toolbar-right { display: flex; gap: 8px; }

.players-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.players-team-card {
  background: #fff; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden;
}
.players-team-header {
  padding: 14px 18px; font-size: 15px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.players-team-header.blue { background: #e3f2fd; color: #1565C0; }
.players-team-header.white { background: #fce4ec; color: #C62828; }
.players-team-count { font-size: 12px; font-weight: 400; opacity: .8; }

.players-table { width: 100%; }
.players-table th {
  background: #f8f9fa; padding: 8px 14px; font-size: 11px;
  color: #666; text-align: left; font-weight: 600;
}
.players-table td { padding: 9px 14px; font-size: 13px; border-top: 1px solid #f0f0f0; }
.players-table tr:hover td { background: #fafafa; }
.td-role { font-size: 11px; color: #888; }
.td-role span { background: #e3f2fd; color: #1565C0; border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.td-role.red span { background: #fce4ec; color: #C62828; }
.td-actions { display: flex; gap: 5px; }
.btn-icon { background: none; border: none; font-size: 14px; padding: 3px 5px; border-radius: 4px; }
.btn-icon:hover { background: #f0f0f0; }

/* ══ Schedule ════════════════════════════════════════════════════ */
.schedule-toolbar { margin-bottom: 14px; display: flex; gap: 10px; }

.schedule-print-wrap {
  background: #fff; border-radius: 10px; padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.sched-header { text-align: center; margin-bottom: 16px; }
.sched-title  { font-size: 20px; font-weight: 800; }
.sched-meta   { font-size: 12.5px; color: #444; margin-top: 4px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sched-rules  { font-size: 11.5px; color: #555; margin-top: 4px; }
.sched-rules b { color: #C62828; }

.sched-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sched-table th {
  background: #1565C0; color: #fff; padding: 10px 8px;
  text-align: center; font-weight: 700;
}
.sched-table td {
  border: 1px solid #d0d6e0; padding: 0; vertical-align: top;
}
.sched-game-info {
  background: #e3f2fd; padding: 8px 10px; text-align: center;
  min-width: 90px; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.sched-game-num  { font-weight: 700; font-size: 13px; }
.sched-game-time { font-size: 11px; color: #444; margin-top: 2px; }
.sched-cell { padding: 0; }
.sched-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px 6px; min-height: 30px; align-items: center; gap: 2px;
}
.sched-pair + .sched-pair { border-top: 1px dashed #dde; }
.sched-blue { font-weight: 700; color: #1565C0; font-size: 12px; text-align: center; }
.sched-white { color: #C62828; font-size: 12px; text-align: center; }

/* ══ Compose ═════════════════════════════════════════════════════ */
.compose-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.compose-left, .compose-right { display: flex; gap: 8px; }

.compose-table { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.compose-table th { background: #f5f7fa; padding: 10px 14px; font-size: 12px; font-weight: 600; color: #555; text-align: left; }
.compose-table td { padding: 10px 14px; font-size: 13px; border-top: 1px solid #f0f0f0; }
.compose-table tr:hover td { background: #fafafa; }

/* ══ Management ══════════════════════════════════════════════════ */
.mgmt-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 14px;
}
.mgmt-search input {
  padding: 8px 12px; border: 1px solid #d0d6e0; border-radius: 6px;
  font-size: 13px; width: 200px; outline: none;
}
.mgmt-search input:focus { border-color: #1565C0; }
.mgmt-filters { display: flex; gap: 8px; }
.mgmt-filters select {
  padding: 7px 10px; border: 1px solid #d0d6e0; border-radius: 6px;
  font-size: 13px; outline: none;
}
.mgmt-right { display: flex; gap: 8px; margin-left: auto; }

.table-wrap { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow-x: auto; }
.mgmt-table { min-width: 800px; }
.mgmt-table th { background: #1565C0; color: #fff; padding: 12px 10px; font-size: 12.5px; text-align: center; font-weight: 600; white-space: nowrap; }
.mgmt-table td { padding: 10px; border-top: 1px solid #f0f0f0; text-align: center; vertical-align: middle; font-size: 13px; }
.mgmt-table tr:hover td { background: #fafafa; }
.col-matchup { text-align: center !important; width: 1%; white-space: nowrap; }
.hint { font-size: 11px; font-weight: 400; opacity: .7; }

.matchup-cell { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 4px 10px; border-radius: 6px; transition: background .15s; }
.matchup-cell:hover { background: #f0f4ff; }
.matchup-blue { color: #1565C0; font-weight: 700; font-size: 13px; }
.matchup-white { color: #C62828; font-weight: 700; font-size: 13px; }
.matchup-score { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.score-b { color: #1565C0; }
.score-w { color: #C62828; }
.score-sep { color: #999; font-weight: 400; }
.matchup-vs { color: #999; font-size: 11px; font-weight: 600; }

.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
}
.status-pending    { background: #fff3e0; color: #e65100; }
.status-in_progress{ background: #e3f2fd; color: #1565C0; }
.status-completed  { background: #e8f5e9; color: #2e7d32; }

.action-btns { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.btn-order { background: #fff8e1; color: #f57c00; border: 1px solid #ffcc80; font-size: 11px; padding: 4px 9px; border-radius: 5px; font-weight: 600; }
.btn-order.printed { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.btn-reset { background: #fff; color: #757575; border: 1px solid #cfcfcf; font-size: 11px; padding: 4px 9px; border-radius: 5px; font-weight: 600; }
.btn-reset:hover { background: #f3f4f6; color: #455a64; }
.btn-end   { background: #388E3C; color: #fff; font-size: 11px; padding: 4px 9px; border-radius: 5px; font-weight: 600; }
.btn-end.done { background: #78909C; }
.btn-edit-game { background: #fff; color: #555; border: 1px solid #ccc; font-size: 11px; padding: 4px 9px; border-radius: 5px; }

/* ══ Results ══════════════════════════════════════════════════════ */
.results-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px;
}
.result-team-card {
  background: #fff; border-radius: 10px; padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); text-align: center;
}
.result-team-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.result-wins { font-size: 48px; font-weight: 800; line-height: 1; }
.result-wins-label { font-size: 13px; color: #888; margin-top: 4px; }
.result-points { font-size: 15px; color: #555; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.result-points strong { font-size: 18px; font-weight: 800; }
.results-detail {
  background: #fff; border-radius: 10px; padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.results-table th { background: #f5f7fa; padding: 9px 12px; font-size: 12px; font-weight: 600; color: #555; text-align: left; }
.results-table td { padding: 9px 12px; font-size: 13px; border-top: 1px solid #f0f0f0; }

/* ══ Modals ══════════════════════════════════════════════════════ */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 500;
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; width: 520px; max-width: 95vw;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  animation: modalIn .2s ease;
}
.modal-sm { width: 380px; }
@keyframes modalIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px 14px; border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 18px; color: #888; padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: #f0f0f0; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }
.modal-desc { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.6; }

/* Score modal */
.score-teams { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.score-team { flex: 1; text-align: center; }
.score-team-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.score-team-names { font-size: 13px; color: #555; margin-bottom: 12px; min-height: 36px; line-height: 1.5; }
.score-input {
  width: 100%; padding: 10px; border: 2px solid #d0d6e0; border-radius: 8px;
  font-size: 28px; font-weight: 800; text-align: center; outline: none;
}
.score-input:focus { border-color: #1565C0; }
.score-vs { font-size: 18px; font-weight: 800; color: #999; flex-shrink: 0; }
.score-winner { text-align: center; padding: 10px; border-radius: 8px; font-size: 15px; font-weight: 700; min-height: 40px; }
.score-winner.blue { background: #e3f2fd; color: #1565C0; }
.score-winner.white { background: #fce4ec; color: #C62828; }

/* Team badge */
.team-badge { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.team-badge.blue { background: #e3f2fd; color: #1565C0; }
.team-badge.white { background: #fce4ec; color: #C62828; }

/* Radio group */
.radio-group { display: flex; gap: 20px; padding: 8px 0; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* Select colors */
.select-blue { border-color: #90caf9 !important; }
.select-red  { border-color: #ef9a9a !important; }

/* ══ Toast ════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #323232; color: #fff; padding: 11px 22px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; z-index: 1000;
  transition: transform .3s ease, opacity .3s ease; opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══ Print Styles ════════════════════════════════════════════════ */
.print-only { display: none; }

@media print {
  body { background: #fff; font-size: 12px; }
  #app { display: none; }
  .print-only { display: block !important; }
  .toast { display: none; }

  /* Players print */
  .print-players-wrap { page-break-after: always; }
  .print-players-header { text-align: center; margin-bottom: 16px; }
  .print-players-header h2 { font-size: 18px; font-weight: 800; }
  .print-players-header p  { font-size: 12px; margin-top: 4px; }
  .print-players-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .print-players-team h3 { font-size: 14px; font-weight: 700; border-bottom: 2px solid #000; padding-bottom: 4px; margin-bottom: 8px; }
  .print-pt { width: 100%; border-collapse: collapse; font-size: 12px; }
  .print-pt th, .print-pt td { border: 1px solid #ccc; padding: 5px 8px; }
  .print-pt th { background: #f0f0f0; font-weight: 600; }

  /* Schedule print — A3 용지 최적화 (가로/세로 모두 대응) */
  .print-schedule-wrap { page: schedPage; page-break-after: always; }
  .print-sched-title { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 6px; }
  .print-sched-meta  { text-align: center; font-size: 15px; margin-bottom: 18px; }
  .print-sched-table { width: 100%; border-collapse: collapse; font-size: 16px; }
  .print-sched-table th { background: #1565C0 !important; color: #fff !important; padding: 10px 6px; font-size: 18px; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-sched-table td { border: 1px solid #999; vertical-align: top; padding: 6px 4px; }
  .psc-game { background: #e3f2fd !important; text-align: center; padding: 10px 6px; font-size: 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .psc-pair { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 6px; }
  .psc-b { font-weight: 700; color: #1565C0 !important; font-size: 16px; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .psc-w { font-weight: 700; color: #C62828 !important; font-size: 16px; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Order sheet print — A5 가로 한 장에 한 경기 */
  .order-sheets-wrap { }
  .order-sheet {
    page: orderPage;            /* A5 landscape (named page) */
    break-after: page; page-break-after: always;
    page-break-inside: avoid; break-inside: avoid;
    box-sizing: border-box;
    width: 100%; min-height: 132mm;   /* A5 가로 여백 제외 영역 채우기 */
    display: flex; flex-direction: column;
    border: 2px solid #000; padding: 8mm 10mm; margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
  }
  .order-sheet:last-child { break-after: auto; page-break-after: auto; }
  .os-title { text-align: center; font-size: 19px; font-weight: 800; margin-bottom: 10px; }
  .os-meta { display: flex; gap: 0; border: 1px solid #000; margin-bottom: 16px; }
  .os-meta-item { flex: 1; padding: 10px 12px; border-right: 1px solid #000; font-size: 20px; font-weight: 700; text-align: center; }
  .os-meta-item:last-child { border-right: none; }
  .os-meta-label { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
  .os-teams { display: flex; align-items: stretch; gap: 16px; flex: 1; margin-bottom: 14px; }
  .os-team { flex: 1; border: 2px solid #000; padding: 14px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
  .os-team-label { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
  .os-team-players { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
  .os-score-box { width: 80px; height: 80px; border: 2px solid #000; margin: 0 auto; }
  .os-vs { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
  .os-footer { display: flex; justify-content: space-between; border-top: 1px solid #ccc; padding-top: 10px; font-size: 13px; }
  .os-footer-line { border-bottom: 1px solid #000; display: inline-block; width: 140px; }
  .os-note { font-size: 10px; color: #555; text-align: center; margin-top: 6px; }
  @page { size: A4; margin: 12mm; }
  @page orderPage { size: A5 landscape; margin: 8mm; }
  @page schedPage { size: A3; margin: 10mm; }
}

/* ══ Responsive ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-wrap { margin-left: 0; }
  .hamburger { display: block; }
  .dash-row { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: 1fr; }
  .results-summary { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .mgmt-right { margin-left: 0; width: 100%; }
  .score-teams { flex-direction: column; }
  .score-vs { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .page { padding: 12px; }
  .top-bar { padding: 0 12px; }
  .players-toolbar { flex-direction: column; align-items: flex-start; }
  .compose-toolbar { flex-direction: column; align-items: flex-start; }
  .mgmt-toolbar { flex-direction: column; }
  .mgmt-search input { width: 100%; }
}
