/* Login */
.login-container {
  max-width: 420px;
  margin-top: 10vh;
}
.auth-footer {
  text-align: center;
  margin-top: 1rem;
}

/* Page headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.page-header h1 {
  margin-bottom: 0;
}

/* Nav */
.nav-brand {
  text-decoration: none;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  margin: 0;
}
.inline-form {
  display: inline-block;
  margin: 0;
}
.btn-danger {
  --pico-background-color: #b42318;
  --pico-border-color: #b42318;
  --pico-color: #fff;
  --pico-box-shadow: none;
  margin: 0;
}
.btn-danger:hover,
.btn-danger:focus {
  --pico-background-color: #912018;
  --pico-border-color: #912018;
}

/* Tables */
.text-right {
  text-align: right;
}
.actions {
  white-space: nowrap;
}
.actions a, .actions button, .actions form {
  margin-right: 0.25rem;
}

/* Status badges */
.badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-warning {
  background: #fff3cd;
  color: #856404;
}
.badge-success {
  background: #d4edda;
  color: #155724;
}
.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* Flash messages */
.flash-success ins {
  text-decoration: none;
  color: #155724;
}
.flash-error del {
  text-decoration: none;
  color: #721c24;
}

/* Float */
.float-right {
  float: right;
}

/* Invoice form line items */
.lines-table input.input-sm {
  padding: 0.25rem 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0;
}
.lines-table td {
  padding: 0.25rem;
  vertical-align: middle;
}
.btn-remove-line {
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  margin: 0;
}

/* Totals */
.totals-grid {
  max-width: 400px;
  margin-left: auto;
  margin-top: 1rem;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}
.totals-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}
.totals-row label input {
  max-width: 120px;
  margin-bottom: 0;
}
.total-final {
  border-top: 2px solid var(--pico-primary);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}
