/*
 * This is a manifest file that'll be compiled into application.css.
 */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 2rem;
}

.flash {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e4e7eb;
}

.flash--notice {
  border-left: 4px solid #1f7a4d;
}

.flash--alert {
  border-left: 4px solid #b7791f;
}

.error-box {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #b42318;
}

.error-box__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #b42318;
}

.error-box__message {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.confirm-panel {
  padding: 1.5rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e4e7eb;
  max-width: 520px;
}

.confirm-panel__title {
  margin-top: 0;
  color: #1f2933;
}

.confirm-panel__message {
  margin-bottom: 1.5rem;
}

.confirm-panel__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button--danger {
  background: #dc2626;
  color: #ffffff;
}

.button--primary {
  background: #2563eb;
  color: #ffffff;
}

.button--primary:hover {
  background: #1d4ed8;
}

.button--secondary {
  background: #ffffff;
  color: #1f2933;
  border-color: #e4e7eb;
}

.ops-layout {
  margin: 0;
  background: #f6f7f9;
  color: #111827;
}

.ops-shell {
  min-height: 100vh;
  display: flex;
}

.ops-sidebar {
  width: 240px;
  background: #111827;
  color: #f9fafb;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ops-sidebar__title {
  margin: 0;
  font-size: 1.1rem;
}

.ops-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ops-nav__link {
  color: #f9fafb;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.ops-nav__link:hover {
  background: #1f2937;
}

.ops-nav__link--active {
  background: #2563eb;
}

.ops-sidebar__logout {
  margin-top: auto;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: #f9fafb;
  text-align: left;
  cursor: pointer;
}

.ops-main {
  flex: 1;
  padding: 2rem;
}

.ops-placeholder {
  color: #9ca3af;
}

.ops-page-header {
  margin-bottom: 1rem;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.ops-table th,
.ops-table td {
  border: 1px solid #e5e7eb;
  padding: 0.65rem;
  text-align: left;
}

.ops-status {
  font-weight: 600;
}

.ops-status--active {
  color: #16a34a;
}

.ops-status--inactive {
  color: #6b7280;
}

.ops-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ops-form {
  max-width: 540px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.ops-form__field {
  margin-bottom: 1rem;
}

.ops-form__field label {
  display: block;
  margin-bottom: 0.35rem;
}

.ops-form__field input,
.ops-form__field select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.is-hidden {
  display: none;
}

.ops-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.ops-week-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 640px;
}

.ops-week-picker select {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.ops-inline-form {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.ops-inline-form input[type="number"] {
  width: 140px;
  padding: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.ops-audit-metrics p {
  margin: 0.35rem 0;
}

.ops-audit-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ops-audit-header-row form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ops-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.ops-badge--ok {
  background: #dcfce7;
  color: #166534;
}

.ops-badge--stale {
  background: #fee2e2;
  color: #991b1b;
}

.ops-table__secondary {
  color: #6b7280;
  font-size: 0.9rem;
}
