html { overflow-y: scroll; }
:focus-visible { outline: 2px solid #7a5ecb; outline-offset: 2px; }

/* Hide content until auth check completes */
body:not(.auth-ready) header,
body:not(.auth-ready) main {
  display: none !important;
}

table.min-w-full {
  table-layout: auto;
}

@media (min-width: 1024px) {
  table.min-w-full {
    table-layout: fixed;
  }

  .col-firm-ref,
  .col-client-name {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .col-client-id {
    max-width: 120px;
  }

  .col-firm-ref {
    max-width: 220px;
  }

  .col-type {
    max-width: 120px;
  }

  .col-client-name {
    max-width: 380px;
  }

  .col-risk {
    max-width: 150px;
  }

  .col-edd {
    max-width: 110px;
  }

  .col-cdd-status {
    max-width: 120px;
  }

  .col-last-cdd {
    max-width: 140px;
  }

  .col-next-cdd {
    max-width: 140px;
  }
}

@media (max-width: 1023px) {
  .col-firm-ref {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    min-width: 140px;
    max-width: 240px;
  }
}

.row-menu {
  left: 0;
  top: 0;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-top-color: #7a5ecb;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}

.spinner-lg {
  width: 34px;
  height: 34px;
  border-width: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
