/* DuaForge · estilos de la aplicación (sin dependencias) */
:root {
  --bg: #f4f6f9; --panel: #ffffff; --ink: #1c2330; --muted: #5e6878; --line: #dde2ea; --soft: #eef1f6;
  --brand: #1f5fa8; --brand-ink: #ffffff; --brand-soft: #e5eefa;
  --ok: #1d7a46; --ok-soft: #e3f4ea; --warn: #9a6200; --warn-soft: #fdf1dc; --err: #b3261e; --err-soft: #fbe6e4; --info: #245d8f; --info-soft: #e4eef8;
  --radius: 10px; --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 2px 8px rgba(20, 30, 50, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d; --panel: #1a2029; --ink: #e5e9f0; --muted: #9aa4b4; --line: #2c3441; --soft: #222a35;
    --brand: #6ea8ec; --brand-ink: #0c1420; --brand-soft: #1d2a3b;
    --ok: #5cc98a; --ok-soft: #173024; --warn: #e8b35a; --warn-soft: #33281a; --err: #f08378; --err-soft: #3a1f1d; --info: #7fb4e6; --info-soft: #1b2a3a;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.45rem; margin: 0 0 .25rem; line-height: 1.25; }
h2 { font-size: 1.08rem; margin: 0 0 .6rem; }
h3 { font-size: .98rem; margin: 1rem 0 .4rem; }
p { margin: .3rem 0 .7rem; }
code { background: var(--soft); padding: 0 .3em; border-radius: 4px; font-size: .9em; word-break: break-all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .normal { font-weight: 400; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .c { text-align: center; } .mt { margin-top: 1rem; }
.err-text { color: var(--err); } .warn-text { color: var(--warn); font-weight: 600; }

/* Barra superior y navegación */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: .4rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.brand.big { font-size: 1.6rem; justify-content: center; }
.logo { color: var(--brand); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.user { display: flex; flex-direction: column; text-align: right; text-decoration: none; color: var(--ink); font-size: .88rem; line-height: 1.2; }
.user small { color: var(--muted); }
.curso-sel select { font-weight: 600; }
.navtoggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; font-size: 1.1rem; padding: .2rem .55rem; cursor: pointer; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 54px); }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: .8rem .6rem 2rem; position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; }
.navgroup { margin-bottom: .8rem; }
.navtitle { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .2rem .6rem; }
.sidebar a { display: block; padding: .38rem .6rem; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.sidebar a:hover { background: var(--soft); }
.sidebar a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.navfoot { font-size: .75rem; color: var(--muted); padding: .6rem; }
.main { padding: 1.2rem 1.4rem 3rem; min-width: 0; max-width: 1500px; }

/* Bloques */
.pagehead { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.pagehead .actions, .actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs { margin: 0 0 .2rem; font-size: .85rem; } .crumbs a { text-decoration: none; }
.intro { color: var(--muted); max-width: 70em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow); min-width: 0; }
.card.narrow { max-width: 520px; }
.cardhead { display: flex; gap: .8rem; justify-content: space-between; align-items: flex-start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.grid2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid2 > * { min-width: 0; }
.cards, .cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cards3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.linkcard { text-decoration: none; color: inherit; display: block; } .linkcard:hover { border-color: var(--brand); }
.empty { color: var(--muted); text-align: center; padding: 1.2rem; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; box-shadow: var(--shadow); }
.kpi .kv { font-size: 1.45rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .kv small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.kpi .kl { color: var(--muted); font-size: .82rem; }
.kpi.bad { border-left: 4px solid var(--err); } .kpi.warn { border-left: 4px solid var(--warn); } .kpi.good { border-left: 4px solid var(--ok); }

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; gap: .3rem; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 8px; padding: .45rem .9rem; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err-soft); }
.btn.danger:hover { background: var(--err-soft); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { padding: .25rem .55rem; font-size: .82rem; }
.btn.block { width: 100%; justify-content: center; padding: .65rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; font-size: .85rem; padding: 0 .2rem; text-decoration: underline; }
.link.danger { color: var(--err); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: .42rem .55rem; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
input[readonly] { background: var(--soft); }
textarea { width: 100%; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] { opacity: .85; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.form .field, .field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .7rem; }
.field label { font-weight: 600; font-size: .88rem; }
.field input:not([type=checkbox]):not([type=radio]), .field select { width: 100%; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1rem; }
.formgrid .wide { grid-column: 1 / -1; }
.formsection { grid-column: 1 / -1; font-size: .95rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; margin: .8rem 0 .6rem; color: var(--brand); }
.formactions { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.help { color: var(--muted); font-size: .8rem; }
label.check { display: flex; gap: .45rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
label.check input { margin-top: .25rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .2rem .8rem; }
.checks.scroll { max-height: 190px; overflow-y: auto; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 7px; padding: .4rem .6rem; }
.niveles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem 1rem; }
.niveles label { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9rem; }
.inline { display: inline; }
.inlineform { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-top: .6rem; }
.inlineform label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; gap: .15rem; }
.inlineform fieldset.days { display: flex; gap: .15rem; }
.inlineform fieldset.days label { flex-direction: column; align-items: center; font-weight: 400; }
.toolbar, .filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.filters label { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.filters select { max-width: 280px; }
.tablefilter { min-width: 240px; }
.stateflow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
details.pop { display: inline-block; position: relative; }
details.pop.inline { display: inline; }
details.pop > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.pop > summary::-webkit-details-marker { display: none; }
summary.link { color: var(--brand); font-size: .85rem; text-decoration: underline; }
.popform { display: flex; flex-direction: column; gap: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .7rem; margin-top: .4rem; min-width: min(420px, 80vw); box-shadow: 0 6px 24px rgba(0,0,0,.12); position: relative; z-index: 5; }
.popform label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; gap: .15rem; }

/* Asistente IA */
.btn.ia { background: #6a4bc4; border-color: #6a4bc4; color: #fff; }
.link.ia { color: #6a4bc4; font-weight: 600; text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn.ia { background: #9d85f0; border-color: #9d85f0; color: #140c2a; } .link.ia { color: #b7a6f5; } }
.ia-out h3 { margin-top: 1rem; color: var(--brand); } .ia-out ul, .ia-out ol { padding-left: 1.3rem; } .ia-out li { margin-bottom: .3rem; }
form[data-ia].busy button { opacity: .6; cursor: progress; }
.mb { margin-bottom: .5rem; }

/* Tablas */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--soft); position: sticky; top: 0; }
.table th.right, .table td.right { text-align: right; } .table .c { text-align: center; }
.table tfoot th { background: var(--soft); }
.table.compact th, .table.compact td { padding: .32rem .45rem; }
.table tbody tr:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.table td.detail { max-width: 460px; font-size: .82rem; color: var(--muted); word-break: break-word; }
.row-err td { background: var(--err-soft); } .row-warn td:first-child { box-shadow: inset 3px 0 var(--err); } .row-muted td { opacity: .55; }
.grouprow th { background: var(--brand-soft); color: var(--brand); font-size: .85rem; }
.pager { display: flex; gap: .5rem; margin-top: .6rem; }

/* Etiquetas */
.badge { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); } .badge.info { background: var(--info-soft); color: var(--info); }
.flash { padding: .6rem .85rem; border-radius: 8px; margin-bottom: .75rem; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.err { background: var(--err-soft); color: var(--err); } .flash.warn { background: var(--warn-soft); color: var(--warn); }

/* Alertas */
.alerts { list-style: none; margin: 0; padding: 0; }
.alert { display: flex; gap: .55rem; padding: .5rem .6rem; border-radius: 8px; margin-bottom: .35rem; font-size: .9rem; }
.alert.error { background: var(--err-soft); } .alert.aviso { background: var(--warn-soft); } .alert.info, .alert.ok { background: var(--soft); }
.alert .ico { flex: 0 0 auto; }
.why summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.why p { font-size: .84rem; margin: .2rem 0; }

/* Barras de progreso */
.bar { position: relative; height: 8px; background: var(--soft); border-radius: 99px; min-width: 70px; margin: .2rem 0; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 99px; }
.bar span.err { background: var(--err); } .bar span.warn { background: var(--warn); }
.bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.hbars { list-style: none; padding: 0; margin: 0; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 2rem; gap: .5rem; align-items: center; font-size: .86rem; margin-bottom: .3rem; }
.hbars .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { height: 10px; background: var(--soft); border-radius: 99px; position: relative; }
.hbar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 99px; }
.hbars .val { text-align: right; font-variant-numeric: tabular-nums; }
.occ, .planlist { list-style: none; padding: 0; margin: 0; }
.occ li, .planlist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }

/* Currículo */
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .8rem; }
.tab { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--panel); font-weight: 600; font-size: .9rem; }
.tab small { color: var(--muted); font-weight: 400; }
.tab.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .tab.active small { color: inherit; opacity: .8; }
.ra h2 { font-size: .98rem; }
.ces { margin: .3rem 0 .6rem; padding-left: 1.1rem; font-size: .9rem; }
.ces li { margin-bottom: .25rem; }

/* Matriz */
.sticky-sum { position: sticky; top: 62px; z-index: 6; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .92rem; }
.sticky-sum .sum b { font-variant-numeric: tabular-nums; }
.summsg { font-weight: 600; }
.summsg.err { color: var(--err); } .summsg.ok { color: var(--ok); } .summsg.warn { color: var(--warn); }
.ra-grid { display: grid; grid-template-columns: minmax(0, 3fr) 110px 110px minmax(150px, 1fr); gap: .7rem; align-items: end; margin-bottom: .5rem; }
.ra-grid label, label.block { display: flex; flex-direction: column; font-size: .78rem; font-weight: 600; color: var(--muted); gap: .15rem; }
.ra-desc { font-size: .92rem; align-self: start; }
input.num { text-align: right; font-variant-numeric: tabular-nums; width: 100%; }
.ces-table { margin-top: .5rem; }
.ces-table td:first-child { font-size: .86rem; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: .6rem 0; border-top: 1px solid var(--line); }

/* PFI */
.pfi-ra { border-top: 1px solid var(--line); padding: .5rem 0; }
.pfi-ra .hours { display: inline-flex; gap: .4rem; align-items: center; margin: .3rem 0 .3rem 1.6rem; font-size: .85rem; }
.pfi-ces { margin-left: 1.6rem; display: grid; gap: .1rem; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.biblio { max-height: 260px; overflow-y: auto; padding-left: 0; list-style: none; }
.sug { padding-left: 1.2rem; margin: 0; }
.sug li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.sughead { display: flex; justify-content: space-between; gap: .5rem; }
.score { font-weight: 700; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 0 .4rem; font-size: .82rem; }
.pro { color: var(--ok); } .con { color: var(--err); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .5rem 0 .5rem .8rem; border-left: 2px solid var(--line); margin-left: .3rem; font-size: .9rem; }
.steps li { margin-bottom: .3rem; }

/* Gantt */
.gantt { padding: .5rem 0; overflow-x: auto; }
.g-row { display: grid; grid-template-columns: 260px minmax(560px, 1fr); border-bottom: 1px solid var(--line); min-height: 30px; align-items: center; }
.g-label { padding: .25rem .8rem; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: sticky; left: 0; background: var(--panel); z-index: 2; }
.g-track { position: relative; height: 30px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100%/12 - 1px), var(--line) calc(100%/12 - 1px), var(--line) calc(100%/12)); background: none; }
.g-head { background: var(--soft); font-weight: 600; position: sticky; top: 0; z-index: 3; }
.g-head .g-label { background: var(--soft); }
.g-month { position: absolute; top: 6px; font-size: .74rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 3px; height: 100vh; }
.g-today { position: absolute; top: 0; width: 2px; background: var(--err); height: 100vh; z-index: 1; }
.g-bar { position: absolute; top: 6px; height: 18px; border-radius: 5px; font-size: .72rem; color: #fff; overflow: hidden; white-space: nowrap; text-decoration: none; padding: 0 5px; line-height: 18px; z-index: 2; }
.g-bar.periodo { background: var(--brand-soft); border: 1px dashed var(--brand); }
.g-periodo { background: color-mix(in srgb, var(--brand-soft) 40%, transparent); }
.g-bar.c1 { background: #2f6db5; } .g-bar.c2 { background: #2a8a6a; } .g-bar.c3 { background: #8a5cc2; } .g-bar.c4 { background: #c0782a; }
.g-bar.c5 { background: #3a8fa6; } .g-bar.c6 { background: #a24d7a; } .g-bar.c7 { background: #5c7a2a; } .g-bar.c8 { background: #6a6f80; }
.g-bar.tentative { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px); }
.g-bar.conflict { background: var(--err) !important; outline: 2px solid var(--err); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.month h3 { margin: 0 0 .4rem; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .78rem; text-align: center; }
.mgrid .dn { color: var(--muted); font-weight: 600; }
.mgrid .day { padding: .25rem 0; border-radius: 4px; }
.mgrid .day.we { color: var(--muted); } .mgrid .day.fest { text-decoration: line-through; color: var(--err); }
.mgrid .day.on { background: color-mix(in srgb, var(--brand) calc(var(--i) * 100%), transparent); color: #fff; font-weight: 600; }

/* Acceso */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.loginbox { width: 100%; max-width: 400px; text-align: center; padding: 2rem 1.6rem; }
.loginbox form { text-align: left; margin-top: 1rem; }

/* Responsive */
@media (max-width: 1000px) {
  .grid2, .grid2.wide-left { grid-template-columns: 1fr; }
  .ra-grid { grid-template-columns: 1fr 1fr; }
  .ra-desc { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .navtoggle { display: inline-block; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; top: 54px; left: 0; right: 0; bottom: 0; height: auto; z-index: 30; border-right: 0; }
  .sidebar.open { display: block; }
  .main { padding: 1rem 16px 3rem; }
  .brand small, .user { display: none; }
  .topbar { gap: .5rem; padding: .5rem 12px; }
  .filters { width: 100%; }
  .filters label { width: 100%; }
  .filters select, .pagehead form select { flex: 1; min-width: 0; max-width: none; }
  .pagehead > form, .pagehead .inline { width: 100%; }
  .pagehead .actions { width: 100%; }
  .pagehead .actions form.inline, .pagehead > form.inline { display: flex; width: 100%; }
  .pagehead .actions form.inline select { flex: 1; min-width: 0; width: 100%; }
  .ces-table td:first-child { word-break: break-word; }
  .curso-sel select { max-width: 130px; }
  .tablefilter { min-width: 0; width: 100%; }
  .g-row { grid-template-columns: 150px minmax(520px, 1fr); }
  .dl { grid-template-columns: 1fr; } .dl dt { margin-top: .3rem; }
}
@media print {
  .topbar, .sidebar, .actions, .formactions, .toolbar, .filters, .btn, .navtoggle { display: none !important; }
  .shell { display: block; } .main { padding: 0; } .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* Anexos oficiales */
details.anexo { padding: 0; }
details.anexo > summary { cursor: pointer; padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; list-style: none; }
details.anexo > summary::-webkit-details-marker { display: none; }
details.anexo > summary::before { content: '▸'; color: var(--muted); }
details.anexo[open] > summary::before { content: '▾'; }
details.anexo[open] > summary { border-bottom: 1px solid var(--line); }
details.anexo > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
details.anexo > form, details.anexo > .tablewrap:last-child, details.anexo > p:last-child { margin-bottom: 1rem; }
.anexo-cod { font-weight: 700; min-width: 6.5em; } .anexo-tit { flex: 1 1 18em; }
details.anexo > table.kvt { width: calc(100% - 2rem); }
.kvt th { width: 8em; color: var(--muted); font-weight: 600; vertical-align: top; }
details.anexo h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
