/* Web portal of the e-CF service. Port of the approved design (ui.css), with a system font
   stack (the CSP allows no outside host) and classes in the place of the inline styles of the
   mock-ups (the CSP allows no inline style). */
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F4F5F7}
*{box-sizing:border-box}
.app{display:flex;flex-wrap:wrap;font-family:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:15px;line-height:1.45;color:#121826;background:#F4F5F7}
.app h1,.app h2,.app h3,.app p{margin:0}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;font-size:.92em}

.side{flex:1 1 232px;background:#0F1B33;color:#C9D2E6;padding:24px 16px;display:flex;flex-direction:column;gap:28px}
.brand{font-size:20px;font-weight:600;color:#fff;padding:0 12px}
.brand span{color:#9DB7F5;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;font-weight:500}
.navlabel{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#9AA8C7;padding:0 12px}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:6px;color:#C9D2E6;text-decoration:none}
.nav a:hover{background:#1A2A4D;color:#fff}
.nav a.on{background:#24365F;color:#fff;font-weight:500}
.who{margin-top:auto;padding:16px 12px 0;border-top:1px solid #2A3A5E;font-size:13px;display:flex;flex-direction:column;gap:4px}
.who a{color:#9DB7F5;min-height:44px;display:flex;align-items:center}

.main{flex:999 1 560px;min-width:0;padding:32px 40px 56px;display:flex;flex-direction:column;gap:24px}
.head{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between}
.h1{font-size:28px;font-weight:600;letter-spacing:-.01em}
.h2{font-size:17px;font-weight:600}
.muted{color:#4B5567}
.small{font-size:13px}
.lnk{color:#1B3F8B;font-weight:500}
.lnk:hover{color:#122B61}
.card{background:#fff;border:1px solid #DDE1E8;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.between{justify-content:space-between}
.stat{font-size:32px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:6px;border:1px solid #1B3F8B;background:#1B3F8B;color:#fff;font:inherit;font-weight:500;text-decoration:none;cursor:pointer}
.btn:hover{background:#122B61}
.btn.ghost{background:#fff;color:#1B3F8B}
.btn.ghost:hover{background:#E0E8FA}
.btn.danger{background:#fff;color:#8F1A1A;border-color:#8F1A1A}
.btn.danger:hover{background:#FBE3E3}

.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:500;white-space:nowrap;border:1px solid transparent}
.badge.ok{background:#DDF2E6;color:#0E5132}
.badge.proc{background:#E0E8FA;color:#1B3F8B}
.badge.rej{background:#FBE3E3;color:#8F1A1A}
.badge.unk{background:#FCEBC8;color:#5C3800}
.badge.err{background:#E6E8EC;color:#2F3747}
.badge.rec{background:#fff;color:#2F3747;border-color:#8A93A3}

.scroll{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;min-width:760px}
.tbl th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#4B5567;font-weight:500;padding:10px 12px;border-bottom:1px solid #DDE1E8;white-space:nowrap}
.tbl td{padding:14px 12px;border-bottom:1px solid #EDEFF3;vertical-align:middle}
.tbl a{color:#1B3F8B;font-weight:500}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums}

.kv{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:10px 16px;margin:0}
.kv dt{color:#4B5567}
.kv dd{margin:0;overflow-wrap:anywhere}

.field{display:flex;flex-direction:column;gap:6px;flex:1 1 180px;min-width:0}
.field label{font-size:13px;font-weight:500}
.field input,.field select{min-height:44px;padding:0 12px;border:1px solid #8A93A3;border-radius:6px;font:inherit;background:#fff;color:#121826;width:100%}
.check{display:flex;align-items:center;gap:10px;min-height:44px}
.check input{width:18px;height:18px}

.note{background:#FCEBC8;color:#4A2E00;border-radius:8px;padding:16px 20px;display:flex;flex-direction:column;gap:8px}
.note.info{background:#E0E8FA;color:#14306B}
.note.ok{background:#DDF2E6;color:#0B4229}
.code{background:#0F1B33;color:#E6ECFA;border-radius:8px;padding:16px 20px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;font-size:13px;line-height:1.6;overflow-x:auto;white-space:pre;margin:0}

.steps{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}
.step{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:10px 0;border-top:1px solid #EDEFF3}
.step .n{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;font-size:13px;border:1px solid #8A93A3;color:#2F3747;background:#fff;flex:none}
.step .t{flex:1 1 240px;min-width:0}
.step.hecho .n{background:#0E5132;border-color:#0E5132;color:#fff}
.step.actual .n{background:#1B3F8B;border-color:#1B3F8B;color:#fff}
.step.actual .t{font-weight:600}
.step.bloqueado .n{background:#5C3800;border-color:#5C3800;color:#fff}
.step.bloqueado .t{font-weight:600}
.step.pendiente .t{color:#4B5567}

/* ---- additions to the design file: what the mock-ups had as inline styles ---- */
.app{min-height:100vh}
.sans{font-family:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.stack{display:flex;flex-direction:column;gap:6px;min-width:0}
.stack.tight{gap:4px}
.card.tight{gap:8px}
.card.filters{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
.field.narrow{flex:0 1 260px}
.field.wide{flex:2 1 220px}
.field.auto{flex:0 0 auto}
.cols.wide{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.tbl.w520{min-width:520px}
.tbl.w560{min-width:560px}
.tbl.w640{min-width:640px}
.tbl.w920{min-width:920px}
.tbl.w940{min-width:940px}
.tbl.w980{min-width:980px}
.stat.ok{color:#0E5132}
.stat.warn{color:#5C3800}
.grow{flex:1 1 320px}
.step .quien{flex:0 1 220px}
.note.bad{background:#FBE3E3;color:#6E1212}
.wrap{overflow-wrap:anywhere}
.inline{display:inline}
.row.ends{align-items:flex-end}
.pick{display:flex;gap:12px;align-items:flex-end;flex:0 1 360px}
.pick .field{flex:1 1 200px}
.check input{flex:none}
.card:not(.filters)>.field{flex:0 0 auto}
.tbl .btn,.tbl .nw{white-space:nowrap}
.pager{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.narrowpage{max-width:560px;width:100%}
.secret{background:#0F1B33;color:#E6ECFA;border-radius:8px;padding:16px 20px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;font-size:17px;overflow-wrap:anywhere;user-select:all}
.field input:disabled,.check input:disabled{opacity:.55}
button.btn{appearance:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9DB7F5;outline-offset:2px}

/* The exit button in the side bar: a form with a button that looks like the link of the design. */
.who form{margin:0}
.linkbtn{appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:#9DB7F5;min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline}
.linkbtn:hover{color:#fff}
.who a.plain{min-height:0;display:inline}

/* Login page. */
.hero{flex:1 1 420px;background:#0F1B33;color:#C9D2E6;padding:56px 48px;display:flex;flex-direction:column;gap:24px;justify-content:space-between}
.hero .brand{padding:0;font-size:24px}
.hero-text{display:flex;flex-direction:column;gap:16px;max-width:440px}
.hero-text h1{font-size:40px;line-height:1.1;font-weight:600;color:#fff;letter-spacing:-.02em}
.hero-text p{font-size:17px}
.hero .host{color:#9AA8C7}
.login-pane{flex:1 1 420px;min-width:0;padding:56px 48px;display:flex;align-items:center;justify-content:center}
.card.login{width:100%;max-width:420px;padding:32px;gap:20px}
.card.login .h1{font-size:24px}
.center{flex:1 1 100%;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 16px}

@media (max-width:640px){
.main{padding:24px 16px 40px}
.hero,.login-pane{padding:32px 20px}
.hero-text h1{font-size:30px}
}

/* Second step of the administrator login: code page, enrollment (QR code), recovery codes. */
.card.login.wide{max-width:520px}
.card.login form{margin:0}
.formstack{display:flex;flex-direction:column;gap:20px;min-width:0}
.linkbtn.dark{color:#1B3F8B}
.linkbtn.dark:hover{color:#122B61}
.qr{width:220px;height:220px;max-width:100%;align-self:center;border:1px solid #DDE1E8;border-radius:8px;background:#fff}
.numbered{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.codes{list-style:none;margin:0;padding:16px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;background:#0F1B33;color:#E6ECFA;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;font-size:15px;user-select:all}
@media (max-width:480px){
.codes{grid-template-columns:minmax(0,1fr)}
}
