:root {
  --bg: #e6e9f3;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #f5c400;
  --primary-dark: #b88f00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-footer {
  position: fixed;
  right: 1.5rem;
  bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  pointer-events: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  padding: 1.5rem;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 48px;
  width: auto;
}

.top-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link:hover {
  background: transparent;
  color: var(--primary);
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-summary-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.user-summary-link:hover {
  text-decoration: none;
}

.user-summary-link:hover .user-name {
  text-decoration: underline;
}

.user-summary-link:hover .avatar {
  text-decoration: none;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.avatar.image {
  background: none;
  overflow: hidden;
}

.avatar.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.avatar.large {
  width: 96px;
  height: 96px;
  font-size: 2.5rem;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.profile-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
}

.user-email {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn {
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--border);
  color: var(--text);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.danger {
  background: #111827;
  color: #fff;
}

.btn.warning {
  background: #facc15;
  color: #78350f;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn.full {
  width: 100%;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search input {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  min-width: 280px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.pipeline-disabled {
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.6);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.column {
  background: #fdfdfd;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.column-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.column-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-name {
  font-weight: 600;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.15s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--primary);
  outline: none;
}

.column-header-right {
  font-size: 0.9rem;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
}

.status-pill.department-sales {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.2);
}

.status-pill.department-operations {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid rgba(7, 89, 133, 0.2);
}

.status-pill.department-hr {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid rgba(91, 33, 182, 0.2);
}

.status-pill.department-finance {
  background: #ecfdf3;
  color: #065f46;
  border: 1px solid rgba(6, 95, 70, 0.2);
}

.status-pill.department-management {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.status-on-track {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-issues {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.status-off-track {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.status-open {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-in-progress {
  background: rgba(234, 179, 8, 0.18);
  color: #a16207;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.status-closed {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.column-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column-empty {
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
}

.deal-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 25px -15px rgba(15, 23, 42, 0.3);
}

.metric-pipeline-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 25px -15px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-pipeline-card p.muted {
  font-size: 0.85rem;
}

.metric-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.metric-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-header-right {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 1rem;
}

.metric-title {
  font-weight: 600;
}

.metric-target-value {
  color: var(--muted);
}

.metric-target-divider {
  color: var(--muted);
}

.metric-current-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.metric-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.deal-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deal-summary .muted {
  margin-top: -6px;
}

.deal-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.deal-title {
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.deal-title:hover,
.deal-title:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.deal-title:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.deal-card .muted,
.muted {
  color: var(--muted);
}

.chip {
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stage-chip {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.35);
}

.timestamp {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.deal-form__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.deal-form__header h2 {
  margin: 0;
}

.deal-form__title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.actions.actions-right {
  justify-content: flex-end;
}

.action-group {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.stage-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
  max-width: 260px;
}

.danger-zone {
  margin: 0;
}

.notes {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1rem;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.note-item {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #f9fafb;
}

.note-body {
  margin: 0;
}

.note-author {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.note-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.note-form textarea {
  flex: 1;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.5rem;
  min-height: 80px;
  resize: vertical;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header.with-filters {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header .filter-title {
  margin: 0 0 0.4rem 0;
}

.business-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.business-header-left {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.business-header-left h1 {
  margin: 0;
}

.dashboard-filters {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-title h1 {
  margin: 0;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-left: auto;
}

.filter-label {
  font-size: 0.8rem;
  text-transform: none !important;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
  justify-content: flex-start;
}

.select-wrapper {
  position: relative;
}

.filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.55rem 2.5rem 0.55rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.select-wrapper::after {
  content: "\25BC";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--muted);
}

.filter-display {
  font-weight: 600;
  padding: 0.55rem 0;
}

@media (max-width: 720px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.signal-filter-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.signal-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.signal-filter-form select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font: inherit;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
}

.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signal-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  background: #fff;
}

@media (max-width: 640px) {
  .signal-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .signal-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.signal-title {
  font-weight: 600;
  color: var(--text);
}

.signal-title:hover {
  text-decoration: underline;
}

.signal-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.signal-opened {
  font-size: 0.9rem;
  color: var(--muted);
}

.signal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.signal-status {
  display: flex;
  align-items: center;
}

.signal-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.signal-message {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
}

.signal-message.own {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.signal-message header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.signal-reply-form textarea {
  resize: vertical;
}

.metric-section-grid {
  display: grid;
  gap: 1.5rem;
}

.metric-section {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.metric-card-grid {
  display: grid;
  gap: 1rem;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.8);
}


.metric-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.metric-card-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.metric-card-title h4 {
  margin: 0;
}

.metric-description {
  font-size: 0.9rem;
  color: var(--muted);
}

.metric-card-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
}

.metric-last-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-last-value {
  font-size: 1rem;
}

.metric-last-polled {
  font-size: 0.85rem;
  color: var(--muted);
}

.metric-webhook-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metric-webhook-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.metric-edit-inline {
  margin-left: auto;
}

.metric-edit-inline summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  list-style: none;
}

.metric-edit-inline[open] {
  width: 100%;
}

.metric-edit-inline[open] form {
  margin-top: 0.75rem;
  width: 100%;
}

.metric-edit-inline summary::-webkit-details-marker {
  display: none;
}

.metric-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.metric-card dl dt {
  font-weight: 600;
  color: var(--muted);
}

.metric-card dl dd {
  margin: 0;
}

.metric-status-pill {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

.metric-form textarea {
  resize: vertical;
}

.metric-add {
  margin-top: 0.5rem;
}

.log-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.log-filters .separator {
  color: var(--muted);
}

.log-filter-link {
  color: var(--muted);
}

.log-filter-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.log-filter-link.active {
  color: var(--primary);
  font-weight: 600;
}

.contacts-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.contacts-actions .log-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.contacts-actions .search {
  max-width: 320px;
  width: clamp(220px, 30vw, 320px);
}

.modal {
  border: none;
  border-radius: 1rem;
  padding: 1rem;
  width: min(640px, 90vw);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.modal-panel {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  min-width: min(460px, 90vw);
}

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

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stacked-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.stacked-form input {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font: inherit;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.stacked-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.stacked-form select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  width: 100%;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.admin-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -40px rgba(15, 23, 42, 0.5);
  margin-bottom: 1.5rem;
}

.admin-card > h2 {
  margin: 0 0 0.75rem;
}

.settings-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 920px) {
  .settings-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.link-action,
.link-button {
  font-weight: 600;
  color: var(--primary);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.link-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.restore-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.restore-form .file-upload {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.restore-form input[type="file"] {
  font-size: 0.85rem;
}

.backup-warning {
  font-size: 0.85rem;
  line-height: 1.4;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.profile-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.profile-side form {
  width: 100%;
}

.profile-divider {
  width: 1px;
  background: var(--border);
  opacity: 0.6;
  height: 100%;
  align-self: stretch;
  justify-self: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button-row.twofa-row {
  flex-wrap: nowrap;
}

.button-row.twofa-row .inline-form {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  white-space: nowrap;
}

.button-row.twofa-row .inline-form button {
  white-space: nowrap;
}

.two-factor-secret {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  display: inline-block;
}

.two-factor-setup {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.two-factor-setup .two-factor-verify {
  margin-top: 1rem;
}

.resend-hint {
  margin-top: 0.75rem;
}

@media (max-width: 820px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-divider {
    display: none;
  }
}

.business-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.business-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.business-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.business-logo {
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-dark);
}

.business-logo.placeholder {
  background: rgba(245, 196, 0, 0.1);
}

.business-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  background: rgba(245, 196, 0, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--primary-dark);
}

.dashboard-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -40px rgba(15, 23, 42, 0.5);
  margin-top: 1.5rem;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-card .notice {
  box-shadow: none;
}

.objectives-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.objective-item {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
}

.objective-item.completed {
  opacity: 0.6;
}

.objective-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.objective-toggle-form {
  margin: 0;
}

.objective-title-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.objective-title-text {
  display: inline-block;
  font: inherit;
  color: var(--text);
}

.objective-title-link:hover,
.objective-title-link:focus-visible {
  color: var(--primary);
  outline: none;
  text-decoration: underline;
}

.objective-toggle-button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  color: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.objective-toggle-button:hover,
.objective-toggle-button:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.objective-toggle-button.completed {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  font-weight: 700;
}

.objective-toggle-button.completed:hover,
.objective-toggle-button.completed:focus-visible {
  filter: brightness(0.95);
}

.objective-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  justify-content: flex-end;
}


.objective-row-inline {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.objective-meta .objective-toggle-form {
  margin: 0;
}

.objective-dod {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.objective-dod--empty {
  font-style: italic;
}

.objective-meta span:first-child {
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.objective-item.completed .status-dot {
  background: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.objective-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.objective-delete-form {
  margin: 0;
}

.objective-actions-right {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.objective-empty {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 0.85rem;
}

.business-form {
  display: grid;
  gap: 0.75rem;
}

.business-actions {
  display: flex;
  gap: 0.5rem;
}

.business-actions .btn.small {
  min-width: 96px;
}

.multi-select {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font: inherit;
}

.business-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .business-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.business-tile {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.business-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.business-tile h3 {
  margin: 0;
}

.business-tile h3 a {
  color: inherit;
}

.business-tile h3 a:hover {
  text-decoration: underline;
}

.business-list-logo {
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid var(--border);
}

.business-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.business-title-group .muted {
  font-size: 0.9rem;
}

.business-settings-form .business-settings-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.business-settings-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.business-settings-form .logo-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.business-settings-form .logo-field label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.business-settings-form .logo-field small {
  display: block;
}

.business-settings-form .metrics-toggle {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.75rem;
}

.business-settings-form .metrics-toggle input {
  width: auto;
}

.business-settings-form .remove-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .business-settings-form .business-settings-row {
    grid-template-columns: 1fr;
  }

  .business-settings-form .metrics-toggle {
    padding-top: 0;
    align-self: start;
  }
}

.polling-form .select-wrapper {
  max-width: 220px;
}

.polling-form .polling-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.polling-form .polling-frequency {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
}

.polling-form .polling-row .checkbox-inline {
  margin: 0;
}

.polling-form .polling-row .filter-select {
  min-width: 160px;
}

@media (max-width: 640px) {
  .polling-form .polling-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.report-form .report-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.report-form .report-day,
.report-form .report-time {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-form .report-time-inputs {
  display: inline-flex;
  gap: 0.75rem;
}

.report-form .report-time .filter-select,
.report-form .report-day .filter-select {
  min-width: 140px;
}

.report-form .report-row .checkbox-inline {
  margin: 0;
}

@media (max-width: 640px) {
  .report-form .report-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .report-form .report-time-inputs {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.business-create-form .business-create-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.business-create-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.business-create-form input[type="text"] {
  width: 100%;
}

@media (max-width: 640px) {
  .business-create-form .business-create-row {
    grid-template-columns: 1fr;
  }
}

.period-create {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.period-create-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.period-create-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

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

.period-actions .inline-form {
  margin: 0;
}

.period-actions .btn.small {
  min-width: 90px;
}

.business-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.business-create-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.business-create-side label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.business-create-divider {
  width: 1px;
  background: var(--border);
  opacity: 0.6;
  height: 100%;
  align-self: stretch;
}

@media (max-width: 820px) {
  .business-create-grid {
    grid-template-columns: 1fr;
  }

  .business-create-divider {
    display: none;
  }
}

.admin-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.checkbox-pair {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox input {
  width: auto;
}

.full-span {
  grid-column: 1 / -1;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inline-field input[type="number"] {
  max-width: 120px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.checkbox-inline input {
  width: auto;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
}

.task-item.completed {
  opacity: 0.7;
}

.task-item.overdue {
  border-color: #f87171;
  background: #fee2e2;
}

.task-item.due-today {
  border-color: #facc15;
  background: #fef3c7;
}


.task-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-title-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.task-title-button:hover,
.task-title-button:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

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

.task-title {
  font-weight: 600;
}

.task-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.task-meta.due {
  color: #b91c1c;
  font-weight: 600;
}

.task-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
}

.task-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-top: 0.75rem;
}

.dashboard-main {
  padding-right: 1.5rem;
}

.dashboard-separator {
  width: 1px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.22), rgba(15, 118, 110, 0.05));
  min-height: 100%;
}

.dashboard-noticeboard {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.noticeboard-header h2 {
  margin: 0;
}

.noticeboard-content {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(15, 118, 110, 0.08);
}

.noticeboard-content .noticeboard-header {
  margin-bottom: 0.75rem;
}

.noticeboard-content p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.noticeboard-content ul,
.noticeboard-content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.noticeboard-content a {
  color: var(--primary);
  text-decoration: underline;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

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

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.wysiwyg-toolbar .btn.small {
  padding: 0.3rem 0.65rem;
}

.noticeboard-editor {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
}

.noticeboard-editor .editor-surface {
  min-height: 220px;
  padding: 1rem;
  border-radius: 0.75rem;
  outline: none;
}

.noticeboard-editor .editor-surface:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.noticeboard-editor .editor-surface p {
  margin-bottom: 0.75rem;
}

.noticeboard-editor .editor-surface:last-child {
  margin-bottom: 0;
}

.noticeboard-editor ul,
.noticeboard-editor ol {
  padding-left: 1.25rem;
}

.noticeboard-editor a {
  color: var(--primary);
  text-decoration: underline;
}

.task-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
}

.task-controls select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font: inherit;
  min-width: 240px;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pagination a {
  color: var(--primary);
}

.form-grid input,
.form-grid select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font: inherit;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.form-actions.split {
  justify-content: space-between;
  gap: 0.75rem;
}

.table-wrapper {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.data-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.02);
}

.table-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.table-input:focus {
  outline: 2px solid rgba(245, 196, 0, 0.25);
  outline-offset: 1px;
}

.table-input[type="date"] {
  padding-right: 2.5rem;
}

.table-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.table-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.table-empty {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.role-form {
  margin: 0;
}

.role-form select {
  width: 100%;
  max-width: 200px;
}

.inline-form.role-only {
  flex-wrap: nowrap;
}

.inline-form select,
.inline-form input {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
  font: inherit;
}

.inline-form input[type="password"] {
  min-width: 170px;
  flex: 1;
  width: 100%;
}

.twofa-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.twofa-row .inline-form {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  white-space: nowrap;
}

.twofa-row .inline-form button {
  width: auto;
  min-width: 0;
}

.twofa-row .inline-form input,
.twofa-row .inline-form select {
  width: auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .twofa-row {
    flex-wrap: wrap;
  }
}

/* Ensure password fields in profile stretch fully */
.profile-side input[type="password"],
.profile-side input[type="text"],
.profile-side input[type="email"],
.profile-side textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }
}

.profile-side form {
  width: 100%;
}

.inline-form select {
  min-width: 140px;
}

.inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-actions.spaced {
  margin-top: 1rem;
}

.btn.small {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.user-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.text-cap {
  text-transform: capitalize;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-footer .footer-left {
  flex: 1;
}

.modal-footer .link-button {
  margin-left: auto;
}

.link-button {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.deal-form header h2 {
  margin: 0 0 1rem;
}

.deal-form .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.deal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.deal-form input,
.deal-form textarea,
.deal-form select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font: inherit;
}

.deal-form .input-with-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deal-form .input-with-action input {
  flex: 1;
}

.field-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.field-action:hover,
.field-action:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
  text-decoration: none;
}

.deal-form label.full {
  grid-column: 1 / -1;
}

.deal-form .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.login-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -25px rgba(30, 64, 175, 0.35);
  width: min(400px, 90vw);
  text-align: center;
}

.login-card .logo {
  height: 72px;
  width: auto;
}

.login-card .stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.login-card input {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.form-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.alert {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.notice {
  background: #d1fae5;
  color: #065f46;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .toolbar {
    flex-direction: column;
    gap: 0.75rem;
  }
  .search input {
    width: 100%;
  }

  .note-form {
    flex-direction: column;
    align-items: stretch;
  }

  .note-form button {
    width: 100%;
  }

  .note-author {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form select,
  .inline-form input,
  .inline-form button {
    width: 100%;
  }

  .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .dashboard-main {
    padding-right: 0;
  }

  .dashboard-separator {
    display: none;
  }

  .dashboard-noticeboard {
    padding-left: 0;
    margin-top: 0;
  }
}
.objectives {
  margin-bottom: 1.5rem;
}
.stacked-form textarea {
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  resize: vertical;
  font: inherit;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.report-grid {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.report-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-divider {
  width: 1px;
  background: var(--border);
  opacity: 0.45;
  border-radius: 999px;
  align-self: stretch;
}

.report-grid .report-panel:last-child {
  justify-content: center;
}

@media (max-width: 820px) {
  .report-grid {
    flex-direction: column;
  }

  .report-divider {
    display: none;
  }
}

.file-upload-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.files-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.file-upload input[type="file"] {
  display: none;
}

.file-table td,
.file-table th {
  vertical-align: middle;
}

.file-actions {
  text-align: right;
  white-space: nowrap;
}

.file-link {
  font-weight: 600;
  color: #1f2933;
}

.file-link:hover,
.file-link:focus-visible {
  text-decoration: underline;
}

.business-user-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.business-user-form label {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.business-user-actions {
  text-align: right;
  white-space: nowrap;
}
