body { display:block; padding:0; background:var(--bg); }
.admin-app { max-width:1100px; margin:auto; }
.admin-app .k-topbar-outer { border-radius:0; }
.admin-content { padding:28px 24px 48px; }
h1,h2 { font-family:'Gloock',serif; font-weight:400; line-height:1.2; }
h1 { font-size:32px; margin-bottom:12px; } h2 { font-size:23px; margin-bottom:16px; }
.subtle { color:var(--ink-soft); margin-bottom:24px; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; padding:16px 24px; border-bottom:1px solid var(--line); }
.tabs button, button.action, .download { min-height:44px; border:1px solid var(--line); border-radius:var(--r-sm); padding:8px 16px; font:600 15px 'Hanken Grotesk',sans-serif; color:var(--forest); background:var(--surface); cursor:pointer; }
.tabs button[aria-selected=true],button.primary { background:var(--forest); color:var(--surface); border-color:var(--forest); }
button:disabled { opacity:.55; cursor:wait; } button:hover { filter:brightness(.96); }
:focus-visible { outline:3px solid var(--forest-ink); outline-offset:3px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
label { display:flex; flex-direction:column; font-size:14px; font-weight:600; gap:6px; color:var(--ink-soft); }
input,select,textarea { width:100%; min-height:44px; background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:10px 12px; font:16px 'Hanken Grotesk',sans-serif; color:var(--ink); }
input[type=checkbox] { width:20px; min-height:20px; accent-color:var(--forest); } .check { flex-direction:row; align-items:center; min-height:44px; }
fieldset { border:0; } legend { color:var(--ink-soft); font-size:14px; font-weight:600; } .days,.actions { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
.record { padding:20px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.record-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.record strong { font-weight:600; } .record p { color:var(--ink-soft); }
details { margin:12px 0; } summary { cursor:pointer; padding:12px 16px; background:var(--sand); border:1px solid var(--line); border-radius:8px; color:var(--forest); min-height:44px; } details form { padding:20px 0; }
.notice { padding:14px 16px; border:1px solid var(--line); border-radius:12px; margin-bottom:20px; color:var(--ink-soft); background:var(--sand); overflow-wrap:anywhere; }
.notice.error { background:var(--err-bg); color:var(--err-ink); } .notice.ok { background:var(--ok-bg); color:var(--ok-ink); }
.table-wrap { overflow:auto; } table { width:100%; border-collapse:collapse; font-size:15px; } th,td { padding:12px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; } th { color:var(--forest); background:var(--sand); } td.num { text-align:right; font-variant-numeric:tabular-nums; }
.layers { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; } .layer { background:var(--sand); border-radius:8px; padding:5px 10px; font-size:14px; }
[hidden] { display:none !important; }
@media(max-width:600px) { .admin-content { padding:24px 20px 40px; } .tabs { padding:12px 20px; } .form-grid { grid-template-columns:1fr; } h1 { font-size:28px; } .actions button { flex:1; } }
.layers fieldset { min-width:120px; flex:1; max-width:170px; }
@media(max-width:600px) {
 .layers:has(fieldset) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
 .layers fieldset { min-width:0; max-width:none; }
 #tablaReporte { overflow:visible; }
 #tablaReporte table,#tablaReporte tbody { display:block; }
 #tablaReporte thead { display:none; }
 #tablaReporte tr { display:block; margin-bottom:20px; border-bottom:1px solid var(--line); }
 #tablaReporte td { display:flex; justify-content:space-between; gap:12px; white-space:normal; border:0; padding:8px 12px; }
 #tablaReporte td:first-child { background:var(--sand); font-weight:600; padding:12px; }
 #tablaReporte td[data-label]::before { content:attr(data-label); text-align:left; color:var(--ink-soft); }
}
/* Pestana Marcas (2026-10-12): nota sin cortar en PC y tarjetas en el celular, igual que el reporte */
.tabla-movil td:last-child { white-space:normal; min-width:220px; }
@media(max-width:600px) {
 .tabla-movil { overflow:visible; }
 .tabla-movil table,.tabla-movil tbody { display:block; }
 .tabla-movil thead { display:none; }
 .tabla-movil tr { display:block; margin-bottom:20px; border-bottom:1px solid var(--line); }
 .tabla-movil td { display:flex; justify-content:space-between; gap:12px; white-space:normal; border:0; padding:8px 12px; min-width:0; }
 .tabla-movil td:first-child { background:var(--sand); font-weight:600; padding:12px; }
 .tabla-movil td[data-label]::before { content:attr(data-label); text-align:left; color:var(--ink-soft); }
}

.tag-mode { color:var(--forest); margin:8px 0 16px; font-weight:600; }
.mode-help { font-size:14px; max-width:65ch; margin:12px 0; }
.expiry { margin:12px 0 20px; border-color:var(--err-line); }
.provisional-url { background:var(--sand); border:1px solid var(--line); border-radius:var(--r-sm); padding:16px; margin:16px 0; }
.provisional-url textarea { overflow-wrap:anywhere; resize:vertical; }
.provisional-url .action { margin-top:12px; }
