@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");

:root {
  --brand: #2c3e50;
  --brand-light: #34495e;
  --bg: #f7f7f7;
  --border: #ddd;
  --status-registered: #d9480f;
  --status-invoiced: #d97706;
  --status-paid: #2f9e44;
  --status-striped: #2f9e44;
  --status-partially-paid: #f59f7a;
  --status-hidden: #6c757d;
  --status-accepted: #f59f7a;
  --status-accent-width: 0.4rem;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  background: var(--bg);
  color: #333;
  padding-bottom: 7px;
}

header {
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
}

header a {
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
}

nav {
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 10px;
}

thead th {
  text-align: left;
  background: #f1f1f1;
  border-bottom: 1px solid var(--border);
  padding: 8px;
}

tbody td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
}

a {
  color: #337ab7;
}

a:hover {
  text-decoration: underline;
}

.flash-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1050;
  width: 320px;
}

.flash.notice {
  background: #dff0d8;
  border: 1px solid #d0e9c6;
  padding: 10px;
  margin: 10px 0;
}

.flash.alert,
.flash.error {
  background: #f2dede;
  border: 1px solid #ebcccc;
  padding: 10px;
  margin: 10px 0;
}

/* Legacy-like status row colors */
tr.paid,
tr.striped {
  background-color: #43ac6a;
  color: #fff;
}

tr.invoiced {
  background-color: #e99002;
  color: #fff;
}

tr.registered {
  background-color: #f04124;
  color: #fff;
}

tr.partially_paid {
  background-color: #f79d8f;
  color: #fff;
}

/* Inline signout button */
.inline-signout button {
  background: transparent;
  border: none;
  color: #337ab7;
  cursor: pointer;
  padding: 0;
}

/*.btn {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 0 !important;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}
*/



/*
.btn-primary { background: #337ab7; color: #fff; border-color: #2e6da4; }
.btn-danger  { background: #d9534f; color: #fff; border-color: #d43f3a; }
.btn-default { background: #f5f5f5; color: #333; border-color: #ccc; }
.btn-xs { padding: 1px 5px; font-size: 12px; }*/

.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

html {
  overflow-y: scroll;
}

.table tbody tr.paid>* {
  background-color: #43AC6A !important;
  color: #fff;
}

.table tbody tr.striped>* {
  background-color: #43AC6A !important;
  color: #fff;
}

.table tbody tr.accepted>* {
  background-color: #F79D8F !important;
  color: #fff;
}

.table tbody tr.registered>* {
  background-color: #F04124 !important;
  color: #fff;
}

.table tbody tr.invoiced>* {
  background-color: #E99002 !important;
  color: #fff;
}

.table tbody tr.partially_paid>* {
  background-color: #F79D8F !important;
  color: #fff;
}

.btn-fixed {
  min-width: 70px;
}

.badge-status {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-registered {
  background-color: #F04124;
  color: #fff;
}

.badge-invoiced {
  background-color: #E99002;
  color: #fff;
}

.badge-paid {
  background-color: #43AC6A;
  color: #fff;
}

.badge-striped {
  background-color: #43AC6A;
  color: #fff;
}

.badge-partially-paid {
  background-color: #F79D8F;
  color: #fff;
}

.badge-hidden {
  background-color: #6c757d;
  color: #fff;
}

.admin-nav-group {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ===== status accent (Bootstrap-style) ===== */
:root {
  --status-registered: #d9480f;
  --status-invoiced: #d97706;
  --status-paid: #2f9e44;
  --status-striped: #2f9e44;
  --status-partially-paid: #f59f7a;
  --status-hidden: #6c757d;
  --status-accepted: #f59f7a;
  --status-accent-width: 0.4rem;
}

/* Use a left accent instead of full-row background */
.table tbody tr.status-accent {
  background-color: transparent;
  border-left: var(--status-accent-width) solid transparent;
}

/* Per-status accent colors */
.table tbody tr.status-accent.status-registered {
  border-left-color: var(--status-registered);
}

.table tbody tr.status-accent.status-invoiced {
  border-left-color: var(--status-invoiced);
}

.table tbody tr.status-accent.status-paid {
  border-left-color: var(--status-paid);
}

.table tbody tr.status-accent.status-striped {
  border-left-color: var(--status-striped);
}

.table tbody tr.status-accent.status-partially-paid {
  border-left-color: var(--status-partially-paid);
}

.table tbody tr.status-accent.status-hidden {
  border-left-color: var(--status-hidden);
}

.table tbody tr.status-accent.status-accepted {
  border-left-color: var(--status-accepted);
}

/* Keep cell backgrounds neutral so text is always readable */
.table tbody tr.status-accent>* {
  background-color: transparent !important;
  color: #212529 !important;
  /* dark body text for readability */
}

/* Team link and badge styles */
.team-link {
  color: #212529;
  font-weight: 600;
}

.team-link:hover {
  text-decoration: underline;
  color: #0b5ed7;
}

/* bootstrap link hover */

.badge-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Status column alignment and badge sizing */
.table tbody td.status-column {
  vertical-align: middle;
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

.status-column .badge-status {
  display: inline-block;
  min-width: 5.5rem;
  /* keeps badges visually consistent across statuses */
  padding: 0.25rem 0.5rem;
}