/* Página de gestión del sitio ([herbario_gestion]). Usa los tokens del tema si existen. */
.hn-gestion { --hn-ink: var(--ink, #201607); --hn-paper: var(--paper, #EDE4C8); --hn-paper-2: var(--paper-2, #E1D4A9); --hn-border: var(--border, #C9B87F); --hn-stamp: var(--stamp, #94301A); --hn-stamp-deep: var(--stamp-deep, #6E2410); --hn-muted: var(--muted, #5C4B28); font-family: 'Work Sans', system-ui, sans-serif; font-size: 15px; color: var(--hn-ink); }
.hn-gestion h2 { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; font-size: 28px; margin: 8px 0 20px; }
.hn-gestion input[type=text], .hn-gestion input[type=number], .hn-gestion input[type=search], .hn-gestion input[type=password], .hn-gestion select { font: inherit; padding: 9px 12px; border: 1px solid var(--hn-border); border-radius: 3px; background: var(--hn-paper); color: var(--hn-ink); }
.hn-gestion input[type=file] { font: inherit; font-size: 14px; }
.hn-gestion .hn-fieldset { background: var(--hn-paper-2); border-color: var(--hn-border); }

.hn-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--hn-stamp); color: var(--hn-paper) !important; border: 1px solid var(--hn-stamp); border-radius: 3px; padding: 10px 18px; font: 600 15px 'Work Sans', system-ui, sans-serif; cursor: pointer; text-decoration: none !important; }
.hn-btn:hover { background: var(--hn-stamp-deep); border-color: var(--hn-stamp-deep); }
.hn-btn--ghost { background: transparent; color: var(--hn-ink) !important; border-color: var(--hn-border); }
.hn-btn--ghost:hover { background: var(--hn-paper-2); }

.hn-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hn-search { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 480px; }
.hn-search input { flex: 1; min-width: 0; }
.hn-count { color: var(--hn-muted); font-size: 13px; margin: 8px 0; }

.hn-table-wrap { overflow-x: auto; border: 1px solid var(--hn-border); }
.hn-table { width: 100%; border-collapse: collapse; background: var(--hn-paper); }
.hn-table th, .hn-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hn-border); vertical-align: middle; }
.hn-table th { background: var(--hn-paper-2); font-size: 13px; color: var(--hn-muted); font-weight: 600; white-space: nowrap; }
.hn-table tbody tr:hover { background: var(--hn-paper-2); }
.hn-num { font-variant-numeric: tabular-nums; width: 3.5em; }
.hn-status { display: inline-block; margin-left: 6px; font-size: 12px; padding: 1px 6px; border: 1px solid var(--hn-border); border-radius: 2px; color: var(--hn-muted); }
.hn-actions { white-space: nowrap; }
.hn-actions form { display: inline; margin-left: 12px; }
.hn-link-danger { background: none; border: 0; padding: 0; font: inherit; color: #b32d2e; cursor: pointer; text-decoration: underline; }

.hn-notice { padding: 12px 16px; margin: 0 0 18px; border-left: 4px solid; background: var(--hn-paper-2); }
.hn-notice ul { margin: 6px 0 0; padding-left: 20px; }
.hn-notice p { margin: 0; }
.hn-notice--ok { border-color: #2F5233; }
.hn-notice--error { border-color: #b32d2e; }

.hn-submit { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.hn-footer-links { margin-top: 20px; font-size: 14px; }

.hn-gestion #loginform p { display: flex; flex-direction: column; gap: 4px; max-width: 340px; }
.hn-gestion #loginform .login-remember { flex-direction: row; }
.hn-gestion #loginform .button-primary { background: var(--hn-stamp); color: var(--hn-paper); border: 0; border-radius: 3px; padding: 10px 18px; font: 600 15px 'Work Sans', system-ui, sans-serif; cursor: pointer; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
