/* ========================================================================== */
/* 00) TOKENS                                                                 */
/* ========================================================================== */
:root {
  --bg-0: #0b1220;
  --bg-1: #0a162b;

  --card: rgba(15, 23, 42, 0.78);
  --card-border: rgba(148, 163, 184, 0.18);

  --text: #e5e7eb;
  --muted: rgba(229, 231, 235, 0.75);

  --brand: #3b82f6;
  --brand2: #1d4ed8;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ========================================================================== */
/* 01) BASE / RESET                                                           */
/* ========================================================================== */
html,
body {
  min-height: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family:
    "Archivo Narrow",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("../img/background.png");
}

/* Links */
a {
  color: #93c5fd;
}
a:hover {
  color: #bfdbfe;
}

/* Placeholders (globale) */
::placeholder {
  color: #ffffff95 !important;
  opacity: 0.85;
}
::-webkit-input-placeholder {
  color: #ffffff95 !important;
  opacity: 0.85;
}
:-ms-input-placeholder {
  color: #ffffff95 !important;
}
::-ms-input-placeholder {
  color: #ffffff95 !important;
}

/* ========================================================================== */
/* 02) LAYOUT                                                                 */
/* ========================================================================== */
.page-shell {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

/* override moderno */
.page-shell {
  min-height: calc(100dvh - 56px);
}

.auth-wrap {
  width: 100%;
  max-width: 520px;
}
@media (min-width: 992px) {
  .auth-wrap {
    max-width: 860px;
  }
}

/* Navbar */
.navbar {
  background: rgba(2, 6, 23, 0.55) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

/* ========================================================================== */
/* 03) SURFACES (GLASS)                                                       */
/* ========================================================================== */
.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-card .card-body {
  padding: 22px;
  line-height: 1.25; /* leggibilità */
}

.glass-inner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

/* ========================================================================== */
/* 04) HEADERS / TYPO                                                         */
/* ========================================================================== */
.brand-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.22),
    rgba(29, 78, 216, 0.1)
  );
}

.brand-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-sub {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.small-muted {
  color: var(--muted);
}

.text-muted {
  color: white !important;
}

/* ========================================================================== */
/* 05) FORMS                                                                  */
/* ========================================================================== */
.form-label {
  color: rgba(229, 231, 235, 0.9);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.form-control,
.form-select {
  min-height: 44px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  background: rgba(2, 6, 23, 0.65);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.form-check-input {
  background-color: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-text {
  color: white !important;
}

/* sezioni form */
.form-section {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.22);
}
.form-section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(229, 231, 235, 0.75);
  margin: 0 0 10px 0;
}

/* righe allineate */
.row.g-2 > [class^="col"] {
  display: flex;
  flex-direction: column;
}
.row.g-2 .form-control,
.row.g-2 .form-select {
  width: 100%;
}

/* file input */
input[type="file"].form-control {
  line-height: 1.2;
}
.avatar-form .form-control[type="file"] {
  padding: 0.55rem 0.8rem;
}

/* helper */
.help-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

/* requisiti password */
.req-list {
  margin-top: 6px;
}
.req-bad {
  color: rgba(248, 113, 113, 0.85);
}
.req-ok {
  color: rgba(34, 197, 94, 0.9);
}

/* ========================================================================== */
/* 06) BUTTONS                                                                */
/* ========================================================================== */
.btn {
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 0;
}
.btn-dark {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.btn-compact {
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
}

/* ========================================================================== */
/* 07) ALERTS / BADGES / PILLS                                                */
/* ========================================================================== */
.alert {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
}

.match-badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.45);
  opacity: 0.9;
}
.match-ok {
  border-color: rgba(34, 197, 94, 0.35);
}
.match-bad {
  border-color: rgba(248, 113, 113, 0.35);
}

.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  opacity: 0.95;
  white-space: nowrap;
}
.match-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.bg-orange {
  background-color: #fd7e14 !important;
}

/* ========================================================================== */
/* 08) AVATAR                                                                 */
/* ========================================================================== */
.avatar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.avatar-box {
  max-width: 220px;
  width: 100%;
  align-items: center;
  text-align: center;
}

.avatar-img,
.avatar-placeholder {
  width: 68%;
  height: 54%;
  margin: 0 auto;
}

.avatar-img {
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: #111;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #334155, #0f172a);
  border: 3px solid rgba(255, 255, 255, 0.35);
  user-select: none;
}

/* ========================================================================== */
/* 09) FAQ ACCORDION                                                          */
/* ========================================================================== */
.faq-accordion .accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}
.faq-accordion .accordion-button::after {
  display: none;
  color: white !important;
}
.faq-chevron {
  color: #ffffff;
  transition: transform 0.25s ease;
  font-size: 1rem;
  opacity: 0.85;
}
.faq-accordion .accordion-button:not(.collapsed) .faq-chevron {
  color: #ffffff;
  transform: rotate(180deg);
  opacity: 1;
}
.faq-accordion .accordion-button:hover {
  background: rgba(148, 163, 184, 0.08);
}
.faq-accordion .accordion-body {
  line-height: 1.55;
  font-size: 0.95rem;
}
.faq-accordion .accordion-button:hover .faq-chevron,
.faq-accordion .accordion-button:focus .faq-chevron {
  color: #ffffff;
}

/* ========================================================================== */
/* 10) CARD FISICA                                                            */
/* ========================================================================== */
.card-phys {
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  min-height: 190px;
}
.card-phys::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 255, 255, 0.1),
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    );
  transform: rotate(12deg);
  pointer-events: none;
}
.card-phys__stripe {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1));
  transform: rotate(18deg);
  opacity: 0.7;
  pointer-events: none;
}
.card-phys__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-phys__card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.card-phys__card-img,
.card-phys__chip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-phys__title {
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-phys__sub {
  opacity: 0.85;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-phys__badge {
  position: relative;
  flex: 0 0 auto;
}
.card-phys__number {
  position: relative;
  margin-top: 22px;
  font-size: 1.35rem;
  letter-spacing: 2px;
  font-weight: 700;
}
.card-phys__meta {
  position: relative;
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* badge scadenza */
.card-expiry-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}
.card-expiry-badge--ok {
  background: rgba(25, 135, 84, 0.95);
  color: #fff;
}
.card-expiry-badge--warn {
  background: rgba(255, 193, 7, 0.95);
  color: #111;
}
.card-expiry-badge--danger {
  background: rgba(220, 53, 69, 0.95);
  color: #fff;
}
.card-expiry-badge--na {
  background: rgba(108, 117, 125, 0.95);
  color: #fff;
}

/* ========================================================================== */
/* 11) FIELD PAIRS                                                            */
/* ========================================================================== */
.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.95;
}
.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 4px;
}
.field-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

/* ========================================================================== */
/* 12) MODALS                                                                 */
/* ========================================================================== */
.modal-content.glass-card {
  overflow: hidden;
}
.modal-backdrop.show {
  opacity: 0.75;
}

/* Modal Contact */
.modal-contact__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-contact__body {
  padding: 1rem;
}
.modal-contact__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
}
.modal-contact__card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}
.modal-contact__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.modal-contact__note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

/* ========================================================================== */
/* 13) FILTERS + PRACTICES TABLE                                              */
/* ========================================================================== */
.filters-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
}
.filters-card .form-label {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.filters-card .form-control,
.filters-card .form-select {
  border-radius: 10px;
}
.filters-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
}

#practicesTable thead th {
  font-size: 0.82rem;
  letter-spacing: 0.25px;
  opacity: 0.9;
  white-space: nowrap;
}
#practicesTable tbody td {
  vertical-align: middle;
}
#practicesTable tbody td:nth-child(1) {
  font-weight: 700;
  white-space: nowrap;
}
#practicesTable tbody td:nth-child(2),
#practicesTable tbody td:nth-child(3),
#practicesTable tbody td:nth-child(4),
#practicesTable tbody td:nth-child(5) {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================================== */
/* 14) DOCUMENTS UI                                                           */
/* ========================================================================== */
.docs-wrap .glass {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-kpis {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.docs-kpi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}
.docs-kpi strong {
  font-weight: 700;
}

.docs-tabs.nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.docs-tabs .nav-link {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  padding: 0.55rem 0.8rem;
}
.docs-tabs .nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.docs-tabs .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.12) transparent;
}

.docs-pane {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.docs-table {
  margin: 0;
}
.docs-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(12, 16, 24, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.docs-table th,
.docs-table td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
}
.docs-table .col-actions {
  width: 1%;
  white-space: nowrap;
}
.docs-table .file-cell {
  max-width: 320px;
}
.docs-table .truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.docs-table .meta-muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.docs-mobile {
  display: none;
}
.docs-desktop {
  display: block;
}

/* ========================================================================== */
/* 15) RESPONSIVE                                                             */
/* ========================================================================== */
@media (max-width: 576px) {
  /* =========================
     Layout base (mobile)
  ========================== */
  .brand-header { padding: 16px 18px; }
  .glass-card .card-body { padding: 16px; }
  .glass-inner { padding: 14px !important; }

  .field-value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Header pagina: titolo + bottoni */
  body .d-flex.align-items-center.justify-content-between.mb-3 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
  body .d-flex.align-items-center.justify-content-between.mb-3 h1.h4 {
    margin: 0 !important;
    line-height: 1.2;
    font-size: 1.05rem;
  }
  body .d-flex.align-items-center.justify-content-between.mb-3 > .d-flex.gap-2 {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  body .d-flex.align-items-center.justify-content-between.mb-3 > .d-flex.gap-2 > .btn {
    flex: 1 1 calc(50% - 8px);
    white-space: nowrap;
  }

  /* =========================
     Tabelle normali (non-cards)
  ========================== */
  .table-responsive:not(.table-mobile-cards) {
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive:not(.table-mobile-cards) table th,
  .table-responsive:not(.table-mobile-cards) table td {
    white-space: nowrap;
    padding: 0.6rem 0.65rem;
    font-size: 0.9rem;
  }

  /* =========================
     Tabelle in modalità cards
  ========================== */
  .table-mobile-cards { overflow: visible !important; }
  .table-mobile-cards thead { display: none !important; }

  .table-mobile-cards table,
  .table-mobile-cards tbody,
  .table-mobile-cards tr,
  .table-mobile-cards td {
    display: block;
    width: 100%;
  }

  /* reset bootstrap .table */
  .table-mobile-cards table th,
  .table-mobile-cards table td {
    padding: 0 !important;
    font-size: inherit !important;
    white-space: normal !important;
  }

  /* card wrapper */
  .table-mobile-cards tbody tr {
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
  }

  /* righe: label + valore */
  .table-mobile-cards tbody td {
    border: 0 !important;
    padding: 11px 12px !important;

    display: grid !important;
    grid-template-columns: 42% 1fr !important;
    column-gap: 12px !important;
    align-items: start !important;

    box-sizing: border-box !important;
  }

  .table-mobile-cards tbody td + td {
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }

  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
    padding-top: 2px;
    line-height: 1.2;
  }

  .table-mobile-cards tbody td > * { min-width: 0; }

  /* ellissi SOLO su .truncate */
  .table-mobile-cards .truncate {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Azioni: stack + full width */
  .table-mobile-cards td[data-label="Azioni"] {
    grid-template-columns: 1fr !important;
  }
  .table-mobile-cards td[data-label="Azioni"]::before {
    display: none !important;
  }
  .table-mobile-cards td[data-label="Azioni"] .d-inline-flex {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
  }
  .table-mobile-cards td[data-label="Azioni"] .btn {
    width: 100%;
  }

  /* =========================
     Fix specifici: Practices table
  ========================== */
  .table-mobile-cards #practicesTable tbody td,
  .table-mobile-cards #practicesTable tbody td:nth-child(1),
  .table-mobile-cards #practicesTable tbody td:nth-child(2),
  .table-mobile-cards #practicesTable tbody td:nth-child(3),
  .table-mobile-cards #practicesTable tbody td:nth-child(4),
  .table-mobile-cards #practicesTable tbody td:nth-child(5) {
    max-width: none !important;
    width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .table-mobile-cards #practicesTable tbody td .truncate {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* =========================
     Fix specifici: docs-table (evita "fascia" a destra)
  ========================== */
  .table-mobile-cards .docs-table,
  .table-mobile-cards .docs-table tbody,
  .table-mobile-cards .docs-table tr,
  .table-mobile-cards .docs-table td {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .table-mobile-cards .docs-table .file-cell,
  .table-mobile-cards .docs-table td.file-cell {
    max-width: none !important;
    width: 100% !important;
  }
  .table-mobile-cards .docs-table td {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  /* Azioni docs-table: stack (ridondante ma isolato) */
  .table-mobile-cards .docs-table td[data-label="Azioni"] {
    grid-template-columns: 1fr !important;
  }
  .table-mobile-cards .docs-table td[data-label="Azioni"]::before {
    display: none !important;
  }
  .table-mobile-cards .docs-table td[data-label="Azioni"] .d-inline-flex {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
  }
  .table-mobile-cards .docs-table td[data-label="Azioni"] .btn {
    width: 100%;
  }

  /* NOTA: questa regola rimane valida per desktop, ma in mobile viene neutralizzata dai fix sopra */
  .docs-table .file-cell { max-width: 180px; }
  .docs-table th, .docs-table td { padding: 0.5rem 0.6rem; }

  /* =========================
     View alternativa Documenti (lista mobile)
  ========================== */
  .docs-desktop { display: none !important; }
  .docs-mobile  { display: block !important; }

  .docs-group {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
  }
  .docs-group__title {
    padding: 12px 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .docs-group .mt-2 {
    padding: 10px 12px 12px;
  }
  .docs-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    padding: 10px 10px;
  }
  .docs-item__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
  }
  .docs-item__name {
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
  }
  .docs-item__desc {
    margin-top: 6px;
    opacity: .85;
    font-size: .9rem;
  }
  .docs-item__actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .docs-item__actions .btn {
    width: 100%;
  }

  /* =========================
     Modal
  ========================== */
  .modal-dialog.modal-lg { margin: 0.75rem; }
  .modal-contact__body { padding: 0.9rem; }
}

