@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#080d16;--panel:#101827;--panel2:#0c1422;--line:#233149;--text:#eaf1fb;--muted:#8797ae;--blue:#4f9cff;--cyan:#39d7e8;--green:#49dfa0;--violet:#b19cff;--red:#ff6d83}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% -10%,#152d4c 0,transparent 42%),radial-gradient(ellipse at 100% 10%,#14223a 0,transparent 36%),var(--bg);color:var(--text);font:14px Manrope,system-ui,sans-serif;min-height:100vh}.shell{max-width:1500px;margin:auto;padding:28px 32px 24px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:4px 0 25px;border-bottom:1px solid #26334a}.brand{display:flex;align-items:center;gap:16px}.brand-mark{width:64px;height:64px;border:1px solid #428ef0;border-radius:18px;display:grid;place-items:center;font-size:20px;font-weight:800;letter-spacing:-1px;color:#fff;background:linear-gradient(145deg,#183e69,#10233d);box-shadow:0 0 30px #1b6bd126,inset 0 0 20px #4e9cff13}.eyebrow{font:500 10px 'DM Mono',monospace;letter-spacing:1.8px;color:#6caeff}.brand h1{font-size:23px;letter-spacing:-.7px;margin:4px 0}.brand p{margin:0;color:var(--muted);font-size:12px}.top-actions{display:flex;align-items:center;gap:9px;color:#90a4bf;font:10px 'DM Mono',monospace;letter-spacing:.4px}.live-dot{width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 12px #49dfa0}.refresh{margin-left:10px;text-decoration:none;color:#d9e9ff;border:1px solid #2a4362;padding:9px 12px;border-radius:9px;font:600 12px Manrope}.nav{display:flex;gap:5px;padding:18px 0 22px;border-bottom:1px solid #1c293b;overflow-x:auto}.nav a{white-space:nowrap;text-decoration:none;color:#8ea1bb;font-size:12px;font-weight:700;padding:10px 14px;border-radius:9px}.nav a:hover,.nav a.active{background:#152944;color:#a9d1ff;box-shadow:inset 0 0 0 1px #294e77}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0 23px}.hero h2{margin:8px 0;font-size:24px;letter-spacing:-.8px}.hero p{margin:0;color:var(--muted);font-size:13px}.hero-meta{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.hero-meta small{color:#8090a7;font:10px 'DM Mono',monospace}.pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:7px;font:10px 'DM Mono',monospace;letter-spacing:.5px}.pill i{width:6px;height:6px;border-radius:50%;background:currentColor}.pill-ok{color:var(--green);background:#123126;border:1px solid #205642}.pill-warn{color:#ffc66d;background:#302516;border:1px solid #62451f}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat{padding:18px 19px 17px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#121e30,#0d1522);box-shadow:0 12px 35px #00000013;min-width:0}.stat-label{display:flex;align-items:center;gap:9px;font:500 10px 'DM Mono',monospace;letter-spacing:1px;color:#98abc4}.stat-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;font-size:17px}.blue{color:var(--blue);background:#172e4d}.cyan{color:var(--cyan);background:#12323a}.violet{color:var(--violet);background:#292443}.green{color:var(--green);background:#12352c}.stat-value{font-size:36px;font-weight:800;letter-spacing:-1.5px;margin:13px 0 3px}.stat-foot{font-size:11px;color:#8294ac}.grid-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:16px;margin-bottom:16px}.panel{border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#101827f5,#0c1421f5);overflow:hidden;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 20px;border-bottom:1px solid #202d40}.panel-head h3{font-size:15px;margin:5px 0 0;letter-spacing:-.3px}.panel-head a{font-size:11px;text-decoration:none;color:#76b4ff;white-space:nowrap}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font:500 9px 'DM Mono',monospace;letter-spacing:1px;color:#7387a2;background:#0b1320;padding:13px 16px}td{padding:13px 16px;border-top:1px solid #1b283a;color:#b5c3d5;font-size:11px}tbody tr:hover{background:#17253a55}.callsign{font-weight:800;color:#eef5ff;letter-spacing:.2px}.mono{font-family:'DM Mono',monospace}.tag{font:9px 'DM Mono',monospace;color:#8ec4ff;background:#152b46;padding:5px 7px;border-radius:5px}.module{display:inline-grid;place-items:center;min-width:24px;padding:4px 7px;border-radius:6px;color:#64e1c3;background:#12332e;border:1px solid #225649;font:500 10px 'DM Mono',monospace}.empty{padding:22px!important;color:#8798ae;text-align:center;white-space:normal}.status-chip,.count{font:10px 'DM Mono',monospace;color:#8aa0bb;border:1px solid #293950;padding:6px 8px;border-radius:6px}.source-list{padding:4px 18px}.source{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #1d293b}.source:last-child{border:0}.source-symbol{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid #2a3d58;background:#142239;border-radius:9px;color:#80baff;font:10px 'DM Mono',monospace}.source>div{min-width:0;flex:1}.source strong{display:block;font-size:11px}.source small{display:block;color:#7186a0;font:9px 'DM Mono',monospace;margin-top:4px;overflow-wrap:anywhere}.source-state{font:9px 'DM Mono',monospace}.source-state.ok{color:var(--green)}.source-state.bad{color:var(--red)}.note{margin:0 18px 18px;padding:11px 12px;border-radius:8px;background:#0a1320;color:#7187a2;font-size:10px;line-height:1.6;border:1px solid #1c2b40}.log-panel{margin-bottom:22px}.log-list{padding:5px 18px 12px}.log-row{display:grid;grid-template-columns:8px 92px minmax(0,1fr);align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid #1a2637}.log-row:last-child{border:0}.log-bullet{width:6px;height:6px;border-radius:50%;margin-top:5px;background:#66809f}.log-bullet.good{background:var(--green);box-shadow:0 0 9px #49dfa033}.log-bullet.error{background:var(--red)}.log-bullet.muted{background:#65758b}.log-source{font:9px 'DM Mono',monospace;color:#6f8baa}.log-row code{white-space:pre-wrap;overflow-wrap:anywhere;color:#b1bfd1;font:10px/1.6 'DM Mono',monospace}.full-log{max-height:650px;overflow:auto}.full-log .log-row{grid-template-columns:8px 95px minmax(0,1fr)}footer{display:flex;justify-content:space-between;gap:15px;padding:18px 2px;color:#536780;font:10px 'DM Mono',monospace;border-top:1px solid #1c293b}
@media(max-width:1000px){.shell{padding:20px 18px}.grid-main{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end}.hero h2{font-size:21px}}
@media(max-width:620px){.shell{padding:14px 11px}.topbar{flex-direction:column}.top-actions{justify-content:flex-start}.brand-mark{width:52px;height:52px}.brand h1{font-size:20px}.hero{align-items:flex-start;flex-direction:column}.hero-meta{align-items:flex-start}.stats{gap:9px}.stat{padding:14px}.stat-value{font-size:30px}.stat-label{font-size:9px;letter-spacing:.4px}.stat-foot{font-size:10px}.panel-head{padding:15px}.log-row{grid-template-columns:8px 1fr}.log-source{display:none}.log-row code{grid-column:2}footer{flex-direction:column}}

/* Original XLX country flags + APRS/GPS shortcut */
.flag-wrap{display:inline-flex;align-items:center;gap:7px;max-width:150px}.country-flag{display:block;width:22px;height:15px;object-fit:cover;border-radius:2px;border:1px solid #34465d;box-shadow:0 1px 4px #0005}.flag-name{font-size:10px;color:#879bb5;max-width:110px;overflow:hidden;text-overflow:ellipsis}.aprs-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#70baff;font-size:10px;font-weight:700;padding:4px 7px;border:1px solid #294664;border-radius:6px;background:#102238}.aprs-link:hover{color:#bce2ff;background:#183553;border-color:#3d78a9}.aprs-link img{width:17px;height:17px;object-fit:contain}.muted{color:#596d86}
/* Acceso privado al registro */
.auth-panel{max-width:680px;margin:8px auto 28px}.auth-form{display:grid;gap:12px;padding:22px}.auth-form label{font-size:12px;color:#a8bad0;font-weight:700}.auth-form input{width:100%;padding:12px 13px;border:1px solid #2b405b;border-radius:8px;background:#09111d;color:#eef5ff;font:13px system-ui,sans-serif;outline:none}.auth-form input:focus{border-color:#4d9cff;box-shadow:0 0 0 3px #4d9cff22}.auth-form button{justify-self:start;padding:11px 16px;border:1px solid #367ac4;border-radius:8px;background:#174477;color:#fff;font-weight:700;cursor:pointer}.auth-form button:hover{background:#205a96}.auth-error{margin-top:16px;color:#ffb7b7;border-color:#65363e;background:#26151b}.log-actions{display:flex;align-items:center;gap:12px}.log-actions a{font-size:11px;color:#76b4ff;text-decoration:none;white-space:nowrap}

/* Nombre del operador debajo del indicativo */
.operator-name{display:block;margin-top:4px;color:#9db2cc;font:500 11px Manrope,system-ui,sans-serif;letter-spacing:0;white-space:normal}

/* =========================================================
   DCS214 PRO — RESPONSIVE REAL PARA TABLETS Y MÓVILES
   Añadido al final para prevalecer sobre las reglas anteriores.
   ========================================================= */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video{max-width:100%;height:auto}
body{overflow-x:hidden}
.shell{width:100%;min-width:0}
.brand-mark{flex:0 0 64px}
.brand-mark img{width:100%;height:100%;object-fit:cover}
.nav{scrollbar-width:thin;scrollbar-color:#31557c transparent;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.nav a{flex:0 0 auto}
.table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
table{min-width:620px}
.overview-current table{min-width:560px}
.panel-head>div{min-width:0}
.panel-head p{line-height:1.5}
.top-actions{min-width:0}
.refresh{flex:0 0 auto}

@media (max-width:1000px){
 .shell{padding:20px 18px 22px}
 .topbar{gap:16px}
 .grid-main{grid-template-columns:minmax(0,1fr)}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .overview-current{width:100%}
 .hero{padding:22px 0 19px}
 .panel-head{padding:16px}
}
@media (max-width:700px){
 .shell{padding:14px 12px 18px}
 .topbar{align-items:flex-start;flex-direction:column;padding-bottom:17px;gap:13px}
 .brand{gap:12px;width:100%;min-width:0}
 .brand-mark{width:56px;height:56px;flex-basis:56px;border-radius:12px}
 .brand h1{font-size:clamp(17px,4.8vw,21px);line-height:1.2;overflow-wrap:anywhere}
 .eyebrow{font-size:9px;letter-spacing:1.3px}
 .top-actions{width:100%;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:9px}
 .refresh{margin-left:auto;padding:8px 10px}
 .nav{padding:12px 0 14px;gap:4px;margin:0 -1px}
 .nav a{padding:9px 11px;font-size:11px}
 .hero{align-items:flex-start;flex-direction:column;gap:12px;padding:19px 0 16px}
 .hero h2{font-size:clamp(19px,5.5vw,23px);line-height:1.25;overflow-wrap:anywhere}
 .hero p{font-size:12px;line-height:1.55}
 .hero-meta{align-items:flex-start;width:100%;gap:7px}
 .hero-meta small{font-size:9px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 .stat{padding:12px 11px;border-radius:11px}
 .stat-label{font-size:9px;letter-spacing:.25px;gap:6px;line-height:1.4}
 .stat-icon{width:25px;height:25px;flex:0 0 25px;font-size:15px}
 .stat-value{font-size:clamp(25px,8vw,32px);margin:10px 0 3px}
 .stat-foot{font-size:10px;line-height:1.4}
 .grid-main{gap:12px;margin-bottom:12px}
 .panel{border-radius:11px}
 .panel-head{align-items:flex-start;gap:10px;padding:13px}
 .panel-head h3{font-size:14px;line-height:1.35}
 .panel-head a{font-size:10px;white-space:normal;text-align:right}
 .count,.status-chip{font-size:9px;white-space:nowrap}
 th{padding:11px 12px;font-size:9px}
 td{padding:11px 12px;font-size:11px}
 .table-wrap{max-width:100%;}
 .note{margin:0 12px 12px;padding:10px;font-size:10px}
 .source-list{padding:4px 12px}
 .source{gap:8px;flex-wrap:wrap}
 .source small{overflow-wrap:anywhere}
 .log-list{padding:5px 12px 10px}
 .log-row{grid-template-columns:7px minmax(0,1fr);gap:8px}
 .log-source{display:none}
 .log-row code{grid-column:2;min-width:0;overflow-wrap:anywhere}
 .full-log{max-height:70vh}
 .auth-panel{width:100%;max-width:100%}
 .auth-form{padding:14px}
 .auth-form button{width:100%;justify-self:stretch}
 .log-actions{align-items:flex-end;flex-direction:column;gap:7px}
 footer{flex-direction:column;gap:7px;padding:14px 2px;font-size:9px}
}
@media (max-width:380px){
 .shell{padding-left:9px;padding-right:9px}
 .brand-mark{width:48px;height:48px;flex-basis:48px}
 .brand{gap:9px}
 .brand h1{font-size:17px}
 .top-actions{font-size:8px}
 .stats{gap:7px}
 .stat{padding:10px 9px}
 .stat-label{font-size:8px}
 .stat-value{font-size:25px;letter-spacing:-1px}
 .stat-foot{font-size:9px}
 .nav a{padding:8px 9px;font-size:10px}
 .panel-head{padding:11px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* DCS214 PRO — RESTAURAR FONDO PANORÁMICO
   Mantiene el fondo oscuro para legibilidad y la imagen visible detrás de los paneles.
   Coloca dcs214-background.png en la carpeta img/ del dashboard.
*/
html, body {
  min-height: 100%;
}
body {
  background-color: #050b15;
  background-image:
    linear-gradient(rgba(3, 8, 18, .62), rgba(3, 8, 18, .76)),
    url("../img/dcs214-background.png");
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
/* Nombres configurables de módulos: centrados y con color */
.module-display{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:max-content;
  max-width:100%;
  margin:0 auto;
  text-align:center;
  vertical-align:middle;
}
.module-display .module{
  display:grid;
  place-items:center;
  min-width:30px;
  min-height:28px;
  padding:5px 9px;
  border-radius:8px;
  color:#b8f7ff;
  background:linear-gradient(145deg,#123d56,#12332e);
  border:1px solid #36b8cf;
  box-shadow:0 0 10px rgba(54,184,207,.16), inset 0 0 8px rgba(54,184,207,.08);
  font-weight:700;
  text-align:center;
}
.module-friendly-name{
  display:block;
  width:max-content;
  max-width:130px;
  margin:0 auto;
  padding:3px 8px;
  border:1px solid rgba(79,156,255,.32);
  border-radius:6px;
  color:#9fd2ff;
  background:rgba(24,57,91,.72);
  font-size:9px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.35px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
  text-shadow:0 0 8px rgba(79,156,255,.18);
}
.tx-module-name{
  display:block;
  width:max-content;
  max-width:130px;
  margin:5px auto 0;
  padding:3px 8px;
  border:1px solid rgba(73,223,160,.35);
  border-radius:6px;
  color:#8df3c0;
  background:rgba(18,49,38,.8);
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  overflow-wrap:anywhere;
}
