/* Ajustes del registro sobre los mismos estilos corporativos del dashboard de add-ons. */
.registry-nav { display: flex; align-items: center; gap: 6px; }
.registry-nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.registry-nav a:hover, .registry-nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.account-name { max-width: 220px; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); }
.registry-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; }
.registry-filters label, .login-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.registry-filters .search-field { grid-column: span 2; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.status-pending { color: #74551c; background: #fff1cf; }
.status-abandoned { color: #5c6460; background: #edf0ee; }
.status-drive-trashed, .status-trashed { color: #74551c; background: #fff1cf; }
.status-drive-deleted, .status-deleted { color: #b3261e; background: #fce8e6; }
.status-badge[title], .help-heading { cursor: help; }
.help-heading span { font-size: 13px; text-transform: none; }
.help-label { cursor: help; }
.help-icon { color: var(--green); font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.nowrap { white-space: nowrap; }
.heading-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { display: inline; }
.row-actions .text-button { padding: 6px 4px; }
.danger-text { color: #b3261e; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.01em; }
/* Listado de proyectos: cabecera compacta y tabla con scroll propio. */
.list-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.list-title h1 { margin: 0; font-family: "Quicksand", sans-serif; font-size: 30px; font-weight: 500; }
.list-meta { color: var(--muted); font-size: 13px; }
.list-panel { margin-top: 14px; padding: 16px 18px; }
.list-panel .registry-filters { gap: 10px; margin: 0 0 12px; }
.list-panel .registry-filters input, .list-panel .registry-filters select { height: 38px; }
.list-panel thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 9px 12px; }
.list-panel td { padding: 9px 12px; }
.list-panel .document-link { margin-bottom: 0; min-width: 200px; }
.list-panel .pagination { margin-top: 12px; }
@media (min-width: 1281px) {
  .list-panel .registry-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
  .list-panel .registry-filters .search-field { grid-column: auto; }
}
@media (min-width: 821px) {
  body.list-page { height: 100vh; display: flex; flex-direction: column; }
  body.list-page .page-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 0 12px; }
  body.list-page .list-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.list-page .project-results { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.list-page .list-panel .table-wrap { flex: 1; min-height: 0; overflow: auto; }
  body.list-page .footer { padding: 6px 20px 10px; }
}
.registry-notice { margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; color: var(--green-dark); background: var(--green-soft); }
.registry-error { padding: 14px 16px; border-radius: 10px; color: #b3261e; background: #fce8e6; overflow-wrap: anywhere; }
.registry-dashboard details pre { max-width: 600px; }
.registry-dashboard .metadata-panel a { color: var(--green); }
.registry-dashboard .hero h1 { overflow-wrap: anywhere; }
.registry-dashboard .page-shell { width: min(1680px, calc(100% - 40px)); }
.login-shell { width: min(520px, 100%); margin: 24px auto; }
.login-shell .hero h1 { font-size: 38px; }
.login-form { display: grid; gap: 18px; }
.login-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); outline: none; }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(89, 119, 34, 0.1); }
.login-form button:disabled { opacity: .6; cursor: wait; }
.login-error { margin: 16px 0 0; color: #b3261e; line-height: 1.5; }
.login-error:empty { display: none; }
.login-shell .panel-heading h2 { font-size: 23px; }
@media (max-width: 1100px) { .registry-dashboard .clock { display: none; } .registry-dashboard .topbar-meta { gap: 10px; } .account-name { max-width: 170px; } }
@media (max-width: 820px) {
  .registry-dashboard .topbar { height: auto; min-height: 72px; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .registry-nav { order: 3; width: 100%; }
  .registry-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .registry-filters { grid-template-columns: 1fr; }
  .registry-filters .search-field { grid-column: auto; }
  .registry-dashboard th:nth-child(2), .registry-dashboard td:nth-child(2), .registry-dashboard th:nth-child(4), .registry-dashboard td:nth-child(4) { display: table-cell; }
  .account-name { max-width: 145px; }
}
