html {
  font-size: 14px;
}

/* Table row color rules */
tr.row-danger { background-color: #fef2f2 !important; }
tr.row-danger:hover { background-color: #fee2e2 !important; }
tr.row-info { background-color: #eff6ff !important; }
tr.row-info:hover { background-color: #dbeafe !important; }
tr.row-success { background-color: #f0fdf4 !important; }
tr.row-success:hover { background-color: #dcfce7 !important; }

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}﻿/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* ===== Mobile Card Layout for Entity List ===== */
.entity-card-list {
  display: none;
}

@media (max-width: 767px) {
  .entity-table-wrap {
    display: none;
  }

  .entity-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .entity-card {
    background: var(--fallback-b1, oklch(var(--b1) / 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--fallback-bc, oklch(var(--bc) / 0.08));
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .entity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--fallback-p, oklch(var(--p))) 0%, var(--fallback-s, oklch(var(--s))) 100%);
    opacity: 0.3;
    transition: opacity 0.2s ease, width 0.2s ease;
  }

  .entity-card:active, .entity-card:focus-within {
    border-color: var(--fallback-p, oklch(var(--p) / 0.3));
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  }

  .entity-card:active::before, .entity-card:focus-within::before {
    width: 5px;
    opacity: 1;
  }

  .entity-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-right: 2.25rem; /* Room for checkbox */
    margin-bottom: 0.75rem;
  }

  .entity-card-title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .entity-card-title a {
    color: var(--fallback-bc, oklch(var(--bc)));
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .entity-card-title a:hover {
    color: var(--fallback-p, oklch(var(--p)));
  }

  .entity-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
  }

  .entity-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem 1rem;
    font-size: 0.85rem;
    color: var(--fallback-bc, oklch(var(--bc) / 0.85));
    margin-bottom: 0.5rem;
  }

  .entity-card-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .entity-card-field.col-span-2 {
    grid-column: span 2 / span 2;
  }

  .entity-card-field-label {
    font-size: 0.675rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fallback-bc, oklch(var(--bc) / 0.45));
    font-weight: 700;
    margin-bottom: 0.125rem;
  }

  .entity-card-field-value {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--fallback-bc, oklch(var(--bc) / 0.9));
  }

  .entity-card-field.text-wrap-normal .entity-card-field-value {
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.45;
  }

  .entity-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fallback-bc, oklch(var(--bc) / 0.06));
  }

  .entity-card-actions .btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    min-height: 1.875rem;
    height: auto;
    border-radius: 0.5rem;
  }

  .entity-card .card-checkbox {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    border-radius: 9999px;
  }
}

@media (min-width: 768px) {
  .entity-table-wrap {
    display: block;
  }
  .entity-card-list {
    display: none;
  }
}
