/*
 * Keeps the classic table-built pages intact inside the ModernAdmin shell.
 * Bootstrap's reboot and the template reset override HTML presentational
 * attributes (border="1", width="..."), so they are put back here.
 */
.modern-no-sidebar .header {
  left: 0;
}

.modern-no-sidebar .header-logo {
  display: flex;
}

.modern-no-sidebar .main {
  margin-left: 0;
}

.modern-ui .modern-legacy {
  min-width: 0;
  overflow-x: auto;
  line-height: normal;
}

/* The classic shell put pages on a white sheet; keep one behind them. */
.modern-ui .modern-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.modern-ui .modern-frame > tbody > tr > td {
  padding: var(--spacing-md);
}

.modern-ui .modern-legacy input,
.modern-ui .modern-legacy select,
.modern-ui .modern-legacy textarea,
.modern-ui .modern-legacy button {
  font-size: 13.3333px;
  line-height: normal;
}

/* The sidebar replaces the icon bar that includes/buttons.php prints. */
.modern-ui #buttons {
  display: none;
}

.modern-ui .modern-legacy table:not(.table) {
  border-collapse: separate;
  caption-side: top;
}

.modern-ui .modern-legacy table[border]:not([border="0"]):not(.table) > tr > td,
.modern-ui .modern-legacy table[border]:not([border="0"]):not(.table) > tr > th,
.modern-ui .modern-legacy table[border]:not([border="0"]):not(.table) > * > tr > td,
.modern-ui .modern-legacy table[border]:not([border="0"]):not(.table) > * > tr > th {
  border: 1px inset grey;
}

.modern-ui .modern-legacy table:not(.table) th {
  text-align: center;
}

.modern-ui .modern-legacy img {
  vertical-align: baseline;
}

.modern-ui .modern-legacy label {
  display: inline;
}

@media print {
  .modern-ui .main {
    margin: 0;
  }
}

/* TECK.net logo: full colour on a white panel (the template whitens its own logo). */
.modern-ui .sidebar-header {
  height: auto;
  min-height: var(--header-height);
  padding: var(--spacing-sm);
  justify-content: center;
  position: relative;
  background: #fff;
}

.modern-ui .sidebar-logo {
  justify-content: center;
  min-width: 0;
}

.modern-ui .sidebar-logo img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 88px;
  filter: none;
}

.modern-ui .sidebar-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  color: #07126b;
}

.modern-ui .header-logo img {
  height: 52px;
}

.modern-ui .sidebar-close:hover {
  background-color: #eef1f6;
  color: #07126b;
}

/* Rebuilt pages: template cards fill the sheet instead of the classic fixed widths. */
.modern-ui .modern-legacy .card {
  width: 100%;
  min-width: min(960px, 100%);
  line-height: 1.6;
}

.modern-ui .modern-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Tighter than .btn-sm's 1rem sides so All, # and A-Z fit on one line on a desktop sheet. */
.modern-ui .modern-letters > .btn {
  min-width: 1.75rem;
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

/* custom.css colours every a:link blue, which hides the label on solid buttons. */
.modern-ui a.btn-primary:link,
.modern-ui a.btn-primary:visited {
  color: #fff;
}

/* Same for outline danger buttons (Audit Report): red label, white on hover. */
.modern-ui a.btn-outline-danger:link,
.modern-ui a.btn-outline-danger:visited {
  color: var(--danger-color);
}

.modern-ui a.btn-outline-danger:hover,
.modern-ui a.btn-outline-danger:focus-visible,
.modern-ui a.btn-outline-danger:active {
  color: #fff;
}

.modern-ui .modern-legacy .table th,
.modern-ui .modern-legacy .datatable-sorter {
  text-align: left;
}

/* Leave room for the sort arrows on narrow datatable columns. */
.modern-ui .modern-legacy .datatable-table > thead > tr > th {
  white-space: nowrap;
}

.modern-ui .modern-legacy .datatable-table > thead > tr > th .datatable-sorter {
  padding-right: 1.5rem;
}

.modern-ui .modern-legacy .datatable-container {
  overflow-x: auto;
}

.modern-ui .modern-toggle {
  font-size: 1.4rem;
  line-height: 1;
  vertical-align: middle;
}

/* These lists carry up to ten columns; tighter cells keep them inside the page. */
.modern-ui .modern-legacy .datatable-table > tbody > tr > td,
.modern-ui .modern-legacy .datatable-table > thead > tr > th {
  padding: 0.6rem 0.5rem;
}

/* Much narrower sidebar than the template's 280px. The logo scales inside it and keeps its proportions. */
body.modern-ui {
  --sidebar-width: 180px;
}

.modern-ui .sidebar-logo img {
  max-height: 60px;
  object-fit: contain;
}

/* Dashboard tiles are links; keep their text in the card colours, not link blue. */
.modern-ui .modern-dashboard a.card:link,
.modern-ui .modern-dashboard a.card:visited {
  color: inherit;
}

.modern-ui .modern-dashboard .card {
  min-width: 0;
}

.modern-ui .modern-dashboard .table > thead > tr > th {
  text-align: left;
}

.modern-ui .modern-dashboard .table > thead > tr > th.text-end {
  text-align: right;
}

.modern-ui .modern-ticket-details {
  min-width: 260px;
  max-width: 520px;
}

/* Row colour coding carried over from the classic lists (Billing). */
.modern-ui .modern-legacy .datatable-table > tbody > tr.modern-row-today > td {
  background-color: #ceefbf;
}

.modern-ui .modern-legacy .datatable-table > tbody > tr.modern-row-problem > td {
  background-color: #ffefaf;
}

.modern-ui .modern-legacy .datatable-table > tbody > tr.modern-row-overdue > td {
  background-color: #f8d7da;
  font-style: italic;
}

.modern-ui .modern-legacy .datatable-table > tbody > tr.modern-row-problem.modern-row-overdue > td {
  background-color: #ffefaf;
}

.modern-ui .modern-row-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 2px;
  vertical-align: -2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.modern-ui .modern-row-swatch.modern-row-today {
  background-color: #ceefbf;
}

.modern-ui .modern-row-swatch.modern-row-problem {
  background-color: #ffefaf;
}

.modern-ui .modern-row-swatch.modern-row-overdue-swatch {
  background-color: #f8d7da;
}

/* Dashboard lists must stay inside their cards: long names wrap, and anything
   still too wide scrolls inside the card instead of spilling out of it. */
.modern-ui .modern-dashboard .card-body {
  overflow-x: auto;
}

.modern-ui .modern-dashboard .table {
  width: 100%;
}

.modern-ui .modern-dashboard .table td,
.modern-ui .modern-dashboard .table th {
  overflow-wrap: anywhere;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.modern-ui .modern-dashboard .table .badge {
  white-space: nowrap;
}

.modern-ui .modern-dashboard .table th {
  overflow-wrap: normal;
  white-space: nowrap;
}

/* Tab strips above Projects, Merchant and Recent (includes/*_buttons.php print
   them as bordered boxes with their own inline styles): template-style tabs. */
.modern-ui section.recents {
  max-width: none;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.modern-ui section.recents .column {
  flex: 0 0 auto;
  margin: 0 0 -1px;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: 0.9rem;
}

.modern-ui section.recents .column a:link,
.modern-ui section.recents .column a:visited {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--muted-color, #64748b);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.modern-ui section.recents .column a:hover {
  color: var(--accent-color);
}

/* Merchant statements: Important Information stays hidden until toggled on. */
.modern-ui .modern-ii {
  display: none;
  white-space: normal;
  max-width: 560px;
}

.modern-ui .modern-ii-on .modern-ii {
  display: block;
}

.modern-ui .modern-statements-summary {
  max-width: 560px;
}

.modern-ui .modern-legacy .modern-statements-summary th.text-end {
  text-align: right;
}

.modern-ui .modern-legacy .form-control,
.modern-ui .modern-legacy .form-select {
  font-size: 0.9rem;
  line-height: 1.5;
}

.modern-ui .modern-legacy textarea.form-control {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Very wide report tables (Residuals has 18 columns): smaller type and cells. */
.modern-ui .modern-legacy table.modern-compact > tbody > tr > td,
.modern-ui .modern-legacy table.modern-compact > thead > tr > th {
  font-size: 0.78rem;
  padding: 0.35rem 0.4rem;
}

.modern-ui .modern-legacy table.modern-compact > thead > tr > th {
  white-space: normal;
  vertical-align: bottom;
}

.modern-ui .modern-legacy table.modern-compact > thead > tr > th .datatable-sorter {
  padding-right: 1rem;
}

/* Residuals: the 18-column table scrolls sideways inside its card instead of
   stretching the card (and its header buttons) past the edge of the window. */
.modern-ui .modern-residuals .datatable-container {
  max-width: calc(100vw - 5rem);
}

@media (min-width: 1200px) {
  .modern-ui .modern-residuals .datatable-container {
    max-width: calc(100vw - var(--sidebar-width) - 9rem);
  }

  .sidebar-collapsed.modern-ui .modern-residuals .datatable-container {
    max-width: calc(100vw - var(--sidebar-collapsed-width) - 9rem);
  }
}

/* Alternating light grey / white rows on every list table. */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr:nth-child(odd) > td {
  background-color: #f1f3f6;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr:nth-child(even) > td {
  background-color: #fff;
}

/* Striped rows still take the template's hover highlight. */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr:hover > td {
  background-color: #e2e8f0;
}

/* A flagged row keeps its yellow on a striped table (Residuals). */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-problem > td {
  background-color: #ffefaf;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-problem:hover > td {
  background-color: #ffe189;
}

/* Billing keeps its colour-coded rows on top of the stripes. */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-today > td {
  background-color: #ceefbf;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-overdue > td {
  background-color: #f8d7da;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-problem.modern-row-overdue > td {
  background-color: #ffefaf;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-today:hover > td {
  background-color: #b4ef99;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-overdue:hover > td {
  background-color: #f1c0c5;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-problem:hover > td {
  background-color: #ffe189;
}

/* Light red alert rows (Merchant Accounts: PCI is No; PCI Status: status is not Compliant). */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-alert > td,
.modern-ui .modern-legacy .datatable-table > tbody > tr.modern-row-alert > td {
  background-color: #f8d7da;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-alert:hover > td,
.modern-ui .modern-legacy .datatable-table > tbody > tr.modern-row-alert:hover > td {
  background-color: #f1c0c5;
}

.modern-ui .modern-legacy .modern-registrar-activity .table > thead > tr > th {
  text-align: left;
}

/* Booking reports: 13 figure columns that scroll inside the card, with bold
   subtotal and total rows that stand apart from the stripes. */
.modern-ui .modern-table-scroll {
  overflow-x: auto;
  max-width: calc(100vw - 5rem);
}

@media (min-width: 1200px) {
  .modern-ui .modern-table-scroll {
    max-width: calc(100vw - var(--sidebar-width) - 9rem);
  }

  .sidebar-collapsed.modern-ui .modern-table-scroll {
    max-width: calc(100vw - var(--sidebar-collapsed-width) - 9rem);
  }
}

.modern-ui .modern-legacy table.modern-booking-table td,
.modern-ui .modern-legacy table.modern-booking-table th {
  white-space: nowrap;
}

.modern-ui .modern-legacy table.modern-booking-table th.text-end {
  text-align: right;
}

.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.modern-row-total > td,
.modern-ui .modern-legacy table.modern-striped-rows > tfoot > tr.modern-row-total > td {
  background-color: #e2e8f0;
  font-weight: 700;
}

/* Invoices: Balance and Status only as wide as their content, so Items gets the room. */
.modern-ui .modern-legacy #ordersDataTable > thead > tr > th:nth-child(4),
.modern-ui .modern-legacy #ordersDataTable > tbody > tr > td:nth-child(4) {
  width: 42%;
}

.modern-ui .modern-legacy #ordersDataTable > thead > tr > th:nth-child(7),
.modern-ui .modern-legacy #ordersDataTable > tbody > tr > td:nth-child(7),
.modern-ui .modern-legacy #ordersDataTable > thead > tr > th:nth-child(8),
.modern-ui .modern-legacy #ordersDataTable > tbody > tr > td:nth-child(8) {
  width: 1%;
  white-space: nowrap;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

.modern-ui .modern-legacy #ordersDataTable > thead > tr > th:nth-child(7) .datatable-sorter,
.modern-ui .modern-legacy #ordersDataTable > thead > tr > th:nth-child(8) .datatable-sorter {
  padding-right: 1.1rem;
}

/* Time Doctor task pages. The classic page sets body and select2 to 10px Verdana; keep the shell's type. */
body.modern-ui {
  font-family: var(--default-font);
}

.modern-ui .modern-tasks .select2,
.modern-ui .modern-tasks .select2-selection__rendered,
.modern-ui .select2-container .select2-results__option {
  font-family: inherit !important;
  font-size: 0.8125rem !important;
}

.modern-ui .modern-tasks .task-row {
  cursor: pointer;
}

.modern-ui .modern-tasks td.modern-tasks-company {
  width: 140px;
  min-width: 120px;
}

.modern-ui .modern-tasks #disable-selection {
  display: none;
}

/* A selected row (the page's script adds task-selected) wins over stripes and hover. */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.task-selected > td,
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr.task-selected:hover > td {
  background-color: #d4edda;
}

.modern-ui .modern-tasks td.text-cell {
  min-width: 200px;
  width: 30%;
}

.modern-ui .modern-tasks .form-check-input {
  border-color: #94a3b8;
  margin: 0;
}

.modern-ui .modern-tasks form .form-label {
  margin-bottom: 0.25rem;
}

.modern-ui .modern-tasks .modern-tasks-table > thead > tr > th,
.modern-ui .modern-tasks .modern-tasks-table > tbody > tr > td {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Pop-up windows drawn in the new look (merchant notes): one card, no sidebar. */
body.modern-ui.modern-popup {
  padding: 1rem;
}

/* A single light red cell, whatever the row's stripe or hover colour. */
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr > td.modern-cell-alert,
.modern-ui .modern-legacy table.modern-striped-rows > tbody > tr:hover > td.modern-cell-alert {
  background-color: #f8d7da;
}

/* Page background: #068BF9 tinted about 82% toward white. Only the body: the template's
 * --background-color token also drives hovers, card footers and inputs, so it is left alone. */
body.modern-ui {
  background-color: #D3EBFE;
}

/*
 * Login form (utilities/adminlogin.php, print_login_form). Styled from here so the auth
 * file stays untouched; :has() limits every rule to the frame that holds the Login button.
 * Its classic markup is two tables of <font size="1">; the rows are stacked into a card.
 */
.modern-ui .modern-frame:has(input[name="auth_login"]) {
  width: 400px;
  max-width: 100%;
  margin-top: 8vh;
  box-shadow: var(--shadow-lg);
}

.modern-ui .modern-frame:has(input[name="auth_login"]) > tbody > tr > td {
  padding: 2.5rem 2.25rem 2rem;
}

.modern-ui .modern-frame:has(input[name="auth_login"]) table {
  width: 100%;
  height: auto;
}

.modern-ui .modern-frame:has(input[name="auth_login"]) font {
  font-family: inherit;
  font-size: inherit;
}

.modern-ui .modern-frame:has(input[name="auth_login"]) br {
  display: none;
}

/* "Please login below" becomes the card's heading. */
.modern-ui .modern-frame:has(input[name="auth_login"]) p {
  margin: 0 0 1.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  text-align: center;
}

.modern-ui .modern-frame:has(input[name="auth_login"]) form table tr {
  display: flex;
  flex-direction: column;
}

.modern-ui .modern-frame:has(input[name="auth_login"]) form table td {
  width: auto;
  padding: 0;
  text-align: left;
}

/* Label cell, then field cell. */
.modern-ui .modern-frame:has(input[name="auth_login"]) form table td:first-child:not(:last-child) {
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--default-color);
}

.modern-ui .modern-frame:has(input[name="auth_login"]) form table td + td {
  padding-bottom: 1.125rem;
}

.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="email_address"],
.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="password"] {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--default-color);
  background: var(--input-bg);
  border: 1px solid var(--border-color-dark);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="email_address"]:focus,
.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="password"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(26, 102, 196, 0.2);
}

.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="auth_login"] {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-color);
  border: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="auth_login"]:hover,
.modern-ui .modern-frame:has(input[name="auth_login"]) input[name="auth_login"]:focus-visible {
  background: #15529e;
}

/* Error message row (bad email or password). */
.modern-ui .modern-frame:has(input[name="auth_login"]) form table td[colspan] p {
  margin: 0 0 1.25rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: #b91c1c;
  background: var(--danger-color-light);
  border-radius: var(--radius-lg);
}

/* A badge that follows a date or a toggle goes on its own line instead of widening the
 * column; a long one (Billing's "No Responsible Party. ...") wraps inside it. */
.modern-ui .modern-legacy .badge.modern-badge-below {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.25rem;
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

/* Billing: overdue and unbillable sites, folded into one section above the table. */
.modern-ui .modern-attention {
  border: 1px solid #f5d98a;
  border-radius: var(--radius-lg);
  background: #fffbeb;
}

.modern-ui .modern-attention > summary {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  user-select: none;
}

.modern-ui .modern-attention[open] > summary {
  border-bottom: 1px solid #f5d98a;
}

.modern-ui .modern-attention-table {
  --bs-table-bg: transparent;
}

.modern-ui .modern-legacy .modern-attention-table > :not(caption) > * > * {
  padding: 0.375rem 0.875rem;
  vertical-align: middle;
}

.modern-ui .modern-legacy .modern-attention-table > thead > tr > th {
  text-align: left;
}

/* Statements chart: one toggle per year (swatch + year), which is also the chart's legend. */
.modern-ui .modern-year-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.modern-ui .modern-legacy .modern-year-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
}

.modern-ui .modern-year-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modern-ui .modern-year-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.35;
}

.modern-ui .modern-year-toggle:has(input:checked) {
  color: var(--heading-color);
  font-weight: 600;
  border-color: var(--border-color-dark);
  background: var(--surface-color);
}

.modern-ui .modern-year-toggle:has(input:checked) .modern-year-swatch {
  opacity: 1;
}

.modern-ui .modern-year-toggle:has(input:focus-visible) {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* 2FA screen (verify.php -> includes/modern/verify_form.php): a card like the login form. */
.modern-ui .modern-frame:has(.modern-verify) {
  width: 420px;
  max-width: 100%;
  margin-top: 8vh;
  box-shadow: var(--shadow-lg);
}

.modern-ui .modern-frame:has(.modern-verify) > tbody > tr > td {
  padding: 2.25rem 2rem 1.75rem;
}

.modern-ui .modern-verify {
  text-align: center;
  line-height: 1.5;
}

.modern-ui .modern-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--accent-color);
  background: #e8f1fc;
  border-radius: 50%;
}

.modern-ui .modern-verify-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
}

.modern-ui .modern-verify-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted-color);
}

.modern-ui .modern-verify-error {
  margin: 0 0 1.25rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: #b91c1c;
  background: var(--danger-color-light);
  border-radius: var(--radius-lg);
}

.modern-ui .modern-verify-boxes {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.modern-ui .modern-legacy .modern-verify-boxes input {
  width: 46px;
  height: 56px;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--heading-color);
  background: var(--input-bg);
  border: 1px solid var(--border-color-dark);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modern-ui .modern-legacy .modern-verify-boxes input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(26, 102, 196, 0.2);
}

.modern-ui .modern-verify-submit {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-color);
  border: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.modern-ui .modern-verify-submit:hover,
.modern-ui .modern-verify-submit:focus-visible {
  background: #15529e;
}

.modern-ui .modern-verify-resend {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-color);
}

.modern-ui .modern-verify-back {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.modern-ui .modern-verify-back a {
  color: var(--muted-color);
}

@media (max-width: 400px) {
  .modern-ui .modern-legacy .modern-verify-boxes input {
    width: 40px;
    height: 50px;
  }
}

.modern-ui a.modern-verify-submit:link,
.modern-ui a.modern-verify-submit:visited {
  color: #fff;
  text-decoration: none;
}

/* A card shown in the shared modal (footer_modern.php) sits flush in it. */
#modern-modal-content > .modern-legacy > .card {
  margin: 0;
  border: 0;
  box-shadow: none;
}
