* {
  box-sizing: border-box;
}

body {
  color: #222;
  background: #fafafa;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.app-header {
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  display: flex;
}

.app-spacer {
  flex: 1;
}

.link-button {
  color: #26b;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: .9rem;
}

.link-button:hover {
  text-decoration: underline;
}

.login-page {
  background: #fafafa;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
}

.login-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  flex-direction: column;
  gap: .75rem;
  width: 320px;
  padding: 2rem;
  display: flex;
}

.login-title {
  text-align: center;
  margin: 0 0 .5rem;
}

.login-form label {
  color: #555;
  flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
  display: flex;
}

.login-form input {
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  padding: .4em .5em;
  font-size: .95rem;
}

.login-form button {
  color: #fff;
  cursor: pointer;
  background: #26b;
  border: 0;
  border-radius: 4px;
  margin-top: .5rem;
  padding: .5em;
  font-size: .95rem;
}

.login-form button:disabled {
  cursor: not-allowed;
  background: #999;
}

.app-title {
  color: #222;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.app-main {
  display: block;
}

h1 {
  margin: .5rem 0;
  font-size: 1.5rem;
}

h2 {
  color: #555;
  margin: 1.5rem 0 .5rem;
  font-size: 1rem;
}

table.tickets {
  border-collapse: collapse;
  width: 100%;
}

table.tickets th, table.tickets td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ececec;
  padding: .5rem .75rem;
}

table.tickets th {
  color: #666;
  font-size: .85rem;
  font-weight: 500;
}

table.tickets a {
  color: #26b;
  text-decoration: none;
}

table.tickets a:hover {
  text-decoration: underline;
}

.muted {
  color: #999;
}

.error {
  color: #c0392b;
  padding: 1rem;
}

.badge {
  color: #336;
  background: #eef;
  border: 1px solid #dde;
  border-radius: 3px;
  padding: .1em .4em;
  font-family: ui-monospace, monospace;
  font-size: .8rem;
  display: inline-block;
}

.badge-action {
  color: #6b4d00;
  background: #fef6e8;
  border-color: #f0e0b8;
}

.status {
  font-size: .85rem;
}

.status-proposed {
  color: #b07000;
}

.status-approved, .status-drafted {
  color: #26b;
}

.status-rejected {
  color: #c0392b;
}

.status-sent {
  color: #2a8c4a;
}

.status-open {
  color: #b07000;
}

.status-closed {
  color: #2a8c4a;
}

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

.card-header {
  margin-bottom: .5rem;
  font-size: .9rem;
}

.card-subject {
  margin-bottom: .5rem;
  font-weight: 600;
}

.card-body {
  white-space: pre-wrap;
  color: #333;
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: .85rem;
}

.reply-subject-input {
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  width: 100%;
  margin-bottom: .5em;
  padding: .3em .4em;
  font-size: 1rem;
  font-weight: 600;
  display: block;
}

.reply-body-input {
  resize: vertical;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  width: 100%;
  padding: .5em;
  font-family: ui-monospace, monospace;
  font-size: .85rem;
  display: block;
}

.rejection {
  color: #c0392b;
  font-size: .85rem;
}

.subscription-details {
  color: #555;
  margin-top: .25rem;
  font-size: .9rem;
}

.paypal-revoked {
  color: #922;
  background: #fdecea;
  border: 1px solid #f5b7b1;
  border-radius: 4px;
  margin-top: .4rem;
  padding: .4em .6em;
  font-size: .85rem;
}

.refund-options {
  background: #fafaf3;
  border: 1px solid #ece8d3;
  border-radius: 4px;
  margin-top: .75rem;
  padding: .5rem .75rem;
  font-size: .9rem;
}

.refund-options label {
  margin-right: .5rem;
}

.num-input {
  width: 4rem;
}

.amt-input {
  width: 6rem;
}

.cur-input {
  width: 4rem;
}

.action-bar {
  margin-top: .5rem;
}

.action-bar button {
  color: #fff;
  cursor: pointer;
  background: #26b;
  border: 0;
  border-radius: 4px;
  padding: .4em .9em;
  font-size: .9rem;
}

.action-bar button:disabled {
  cursor: not-allowed;
  background: #999;
}

.execution-results {
  margin-top: .5rem;
  font-size: .9rem;
}

.execution {
  padding: .2em 0;
}

.status-succeeded {
  color: #2a8c4a;
}

.status-failed {
  color: #c0392b;
}

.status-skipped {
  color: #999;
}

