/* Salgsdashboard — same design language as the dashboard page itself:
   white background, system-ui, pill buttons, blue #185FA5 accent. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #fff; color: #1a1a1a; font-size: 14px; }
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }

/* top bar */
.topnav { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; border-bottom: 1px solid #e5e5e5; background: #fff; flex-wrap: wrap; }
.topnav .brand { font-weight: 700; font-size: 15px; color: #111; text-decoration: none; margin-right: 10px; }
.topnav a:not(.brand) { font-size: 12px; padding: 4px 12px; border-radius: 100px; border: 1px solid #ccc; color: #555; text-decoration: none; }
.topnav a:not(.brand):hover { background: #E6F1FB; color: #185FA5; border-color: #185FA5; }
.spacer { flex: 1; }
.whoami { font-size: 12px; color: #888; margin-right: 4px; }
.topnav .linklike { font-size: 12px; padding: 4px 12px; border-radius: 100px; border: 1px solid #ccc; background: #fff; color: #555; cursor: pointer; text-decoration: none; }
.topnav .linklike:hover { background: #f5f5f5; }

h1 { font-size: 20px; margin: .4rem 0 1rem; }
h2 { font-size: 14px; font-weight: 600; margin: 0 0 .8rem; }
h3 { font-size: 13px; font-weight: 600; margin: 1.2rem 0 .6rem; }

.card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 12px; background: #fff; }

/* flash messages — pastel chips like the dashboard's metric tiles */
.flash { font-size: 13px; padding: 8px 14px; border-radius: 8px; margin: .8rem 0; font-weight: 600; }
.flash-success { background: #EAF3DE; color: #3B6D11; }
.flash-error { background: #FCEBEB; color: #A32D2D; }

/* forms */
.form label { display: block; font-size: 11px; color: #888; margin-bottom: .8rem; }
.form input:not([type=checkbox]):not([type=radio]),
.form select, .form textarea, .inline-form input {
  font: inherit; font-size: 13px; height: 32px; padding: 0 8px; border-radius: 6px;
  border: 1px solid #ccc; background: #fff; color: #111; width: 100%; margin-top: 3px; display: block;
}
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { width: auto; flex: 1; margin-top: 0; }
.inline { display: inline; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.form .row label { flex: 1; min-width: 160px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px !important; color: #333 !important; }
.check input { width: auto; height: auto; margin: 0; display: inline; accent-color: #185FA5; }
.req { color: #A32D2D; margin-left: 2px; }

/* buttons — pill style like the dashboard's group/sort buttons */
.btn { font-size: 12px; padding: 6px 14px; border-radius: 100px; border: 1px solid #ccc; background: #fff; color: #555; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; }
.btn:hover { background: #f5f5f5; }
.btn.primary { background: #185FA5; border-color: #185FA5; color: #fff; }
.btn.primary:hover { background: #0C447C; }
.btn.small { padding: 3px 10px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.linklike { background: none; border: none; padding: 0; color: #185FA5; cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; }
.linklike.danger { color: #A32D2D; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; padding: 6px 10px; color: #888; font-weight: 400; border-bottom: 1px solid #e5e5e5; font-size: 11px; white-space: nowrap; }
.table td { padding: 6px 10px; border-bottom: 1px solid #f0f0f0; }
.table tr:last-child td { border-bottom: none; }
.hint { font-size: 12px; color: #888; }
details summary { font-size: 12px; color: #185FA5; cursor: pointer; }
details ul { margin: .4rem 0 0 1.2rem; padding: 0; }

/* login / setup */
.auth-card { max-width: 380px; margin: 8vh auto 0; }
.auth-card h1 { font-size: 18px; text-align: center; }
.auth-card p { font-size: 13px; color: #555; }

@media (max-width: 600px) {
  .form .row { flex-direction: column; }
  .container { padding: .8rem; }
  .table { display: block; overflow-x: auto; }
}
