@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* FlotGPS shared application theme: matches the dark, mint-accented public site. */
:root{
  color-scheme:dark;
  --nav:#091724;--nav2:#10283a;--blue:#6fffd2;--bg:#07121e;--line:#ffffff18;
  --text:#edf5f8;--muted:#9aabba;--white:#0d1d2b;--green:#6fffd2;--red:#ff7e84;
  --fg-surface:#0d1d2b;--fg-surface-raised:#112638;--fg-border:#ffffff18;--fg-accent:#6fffd2;
}
html{background:var(--bg)}
body{background:radial-gradient(ellipse at 75% 0%,#0d55712a,transparent 42%),var(--bg)!important;color:var(--text)!important;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif!important}
h1,h2,h3,h4,strong,.brand,#title,#pageTitle{font-family:Manrope,'DM Sans',sans-serif}
a{color:var(--fg-accent)}
a:hover{color:#a1ffe7}
header,.top,header.top{background:#091724ed!important;color:#f2f7fa!important;border-bottom:1px solid var(--fg-border);backdrop-filter:blur(16px)}
header a,.top a{color:var(--fg-accent)!important}
main{color:var(--text)}
.side,aside.side{background:linear-gradient(180deg,#091724,#0a1927)!important;color:#e9f3f7!important;border-right:1px solid var(--fg-border);box-shadow:12px 0 34px #0002}
.brand{color:#f5fbfc!important;letter-spacing:-.5px}
.brand span,.brand em{color:var(--fg-accent)!important}
.navbtn,.nav button,.side button{color:#b9c8d2!important;border:1px solid transparent!important;background:transparent!important;transition:background .18s,border-color .18s,color .18s}
.navbtn:hover,.nav button:hover,.side button:hover{background:#ffffff0a!important;color:#fff!important;border-color:#ffffff10!important}
.navbtn.active,.nav button.active,.side button.active{background:#6fffd21a!important;color:#a9ffe8!important;border-color:#6fffd23a!important;box-shadow:inset 3px 0 #6fffd2}
.main,.content,.framewrap{background:transparent!important;color:var(--text)!important}
.top{color:var(--text)!important}
.card,.box,.tarjeta,.metric,.toolbar,.chart,.filters,.table-wrap,.tablewrap,.dialog,.detail,.section-note,.notice,.seccion{
  background:linear-gradient(145deg,#102334,#0c1c2a)!important;color:var(--text)!important;
  border:1px solid var(--fg-border)!important;border-radius:16px!important;box-shadow:0 12px 34px #0002!important
}
.metric,.tarjeta{background:linear-gradient(145deg,#142b3d,#102334)!important}
.seccion{margin-top:25px!important;padding:20px!important}
.fila{border-color:#ffffff18!important}
.numero{color:#a9ffe8!important}
.estado{color:#8af2c8!important}
.boton-mapa{background:linear-gradient(105deg,#6fffd2,#70cdfd)!important;color:#071923!important;border:1px solid transparent!important;border-radius:10px!important;font-weight:700;box-shadow:0 6px 18px #26ddbb1c}
.notice,.section-note{border-color:#6fffd22a!important}
.msg{border-radius:10px;padding:10px 12px}
.muted,.mutedsmall,.muted small,.metric-label,.subtitulo{color:var(--muted)!important}
label{color:#dce8ed!important;font-weight:600}
input,select,textarea{background:#091824!important;color:#edf6f9!important;border:1px solid #ffffff28!important;border-radius:10px!important;min-height:40px}
input::placeholder,textarea::placeholder{color:#8296a5!important}
input:focus,select:focus,textarea:focus{outline:2px solid #6fffd244!important;border-color:#6fffd2!important;box-shadow:0 0 0 4px #6fffd214!important}
button,.button,.btn{background:linear-gradient(105deg,#6fffd2,#70cdfd)!important;color:#071923!important;border:1px solid transparent!important;border-radius:10px!important;font-weight:700;box-shadow:0 6px 18px #26ddbb1c;transition:transform .18s,filter .18s,box-shadow .18s}
button:hover,.button:hover,.btn:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 9px 24px #26ddbb25}
button:disabled{filter:grayscale(.6);opacity:.55;box-shadow:none}
button.secondary,.secondary,button.small,.danger,.green,#logout,.salir{background:#ffffff0a!important;color:#d9e8ee!important;border:1px solid #ffffff22!important;box-shadow:none!important}
button.danger,.danger{color:#ff9da1!important;border-color:#ff737438!important;background:#ff737410!important}
button.green,.green{color:#87f5cb!important;border-color:#6fffd238!important;background:#6fffd210!important}
button.active{color:#071923!important;background:linear-gradient(105deg,#6fffd2,#70cdfd)!important}
table{border-color:#ffffff17!important;color:#dce7ed!important}
th{background:#13293a!important;color:#a9ffe8!important;border-color:#ffffff17!important}
td{border-color:#ffffff12!important}
tr:hover td{background:#ffffff05!important}
pre,code,.command,.command-row{background:#071722!important;color:#a6ffe4!important;border:1px solid #ffffff1a!important;border-radius:10px!important}
.pill,.tag{background:#6fffd212!important;color:#9bffe4!important;border:1px solid #6fffd235!important;border-radius:999px!important}
.status,.paid{color:#8af2c8!important}
.login{background:linear-gradient(145deg,#102334,#0b1a27)!important;color:var(--text)!important;border:1px solid var(--fg-border)!important;border-radius:20px!important;box-shadow:0 25px 70px #0005!important}
.login h1,.login h2{color:#f2f8fa!important}
.login .logo{background:#102b3a!important;color:var(--fg-accent)!important}
#map,#mapa,.mapa{border:1px solid #ffffff20;border-radius:14px;overflow:hidden}
.leaflet-control-zoom a,.leaflet-bar a{background:#0d1d2b!important;color:#dffaf1!important;border-color:#ffffff22!important}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#102334!important;color:#edf5f8!important}
hr{border-color:#ffffff17!important}
@media(max-width:760px){
  .side,aside.side{box-shadow:10px 0 30px #0006}
  .top{min-height:58px}
  .card,.box,.tarjeta,.metric,.toolbar,.chart,.filters,.table-wrap,.tablewrap,.seccion{border-radius:13px!important}
  table{font-size:12px}
}

/* Client billing: give Mercado Pago's secure iframe fields the same framed
   treatment as the regular inputs, and make invoice states easy to scan. */
#mpCardForm{
  width:100%;max-width:680px!important;margin:16px 0 0;padding:20px;
  background:linear-gradient(145deg,#102334,#0c1c2a);
  border:1px solid #ffffff22;border-radius:16px;box-shadow:0 12px 34px #0002
}
#mpCardForm>div>label,#mpCardForm .grid2 label{display:block;margin:0 0 7px;color:#dce8ed;font-weight:600}
#mpCardForm .grid2>div{min-width:0}
#mpCardForm .mpSecureField{
  width:100%;height:46px;min-height:46px;padding:0 12px;overflow:hidden;
  display:flex;align-items:center;background:#091824;border:1px solid #ffffff35;border-radius:10px;
  transition:border-color .18s,box-shadow .18s
}
#mpCardForm .mpSecureField:focus-within{border-color:#6fffd2;box-shadow:0 0 0 4px #6fffd214}
#mpCardForm .mpSecureField iframe{display:block;width:100%;height:100%;min-height:28px;border:0;background:transparent}
#mpCardForm input:not([type=checkbox]),#mpCardForm select{width:100%;min-height:46px;padding:0 12px}
#mpCardForm label:has(#mpConsent){margin:4px 0;padding:13px;border:1px solid #ffffff1c;border-radius:11px;background:#ffffff06;color:#c4d3dc!important;line-height:1.5}
#mpCardForm #mpConsent{flex:0 0 auto;accent-color:#6fffd2}
#mpCardForm #mpSaveCard{width:auto;min-width:190px;min-height:44px;padding:0 18px}
#mpCardSetup>p{max-width:70ch;color:#aebfca}
#mpBillingStatus{border-radius:13px!important;line-height:1.6}
#v-facturas>.box:last-child{border-color:#6fffd21a!important}
#v-facturas>.box:last-child h2{display:flex;align-items:center;gap:10px}
#v-facturas>.box:last-child h2:before{content:"";width:4px;height:23px;border-radius:4px;background:linear-gradient(#6fffd2,#70cdfd)}
#invoiceRows .invoice-pill{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
#invoiceRows .invoice-pill.paid{color:#9dffe1!important;background:#6fffd216;border:1px solid #6fffd238}
#invoiceRows .invoice-pill.pending{color:#ffe09a!important;background:#ffc85714;border:1px solid #ffc85738}
#invoiceRows .invoice-pill.overdue{color:#ffadb0!important;background:#ff727514;border:1px solid #ff72753a}
#v-facturas .tablewrap{background:#091824!important;border:1px solid #ffffff20!important;border-radius:14px!important}
#v-facturas .tablewrap table,#v-facturas .tablewrap tbody,#v-facturas .tablewrap tr{background:#0d1d2b!important}
#v-facturas .tablewrap td{background:#0d1d2b!important;color:#dce8ed!important;border-color:#ffffff16!important}
#v-facturas .tablewrap tbody tr:nth-child(even) td{background:#102334!important}
#v-facturas .tablewrap tbody tr:hover td{background:#173144!important}
#v-facturas .tablewrap th{background:#153044!important;color:#9bffe4!important}
@media(max-width:600px){#mpCardForm{padding:15px}#mpCardForm .grid2{grid-template-columns:1fr;gap:10px}#mpCardForm #mpSaveCard{width:100%}#v-facturas .tablewrap{overflow-x:auto}#invoiceRows .invoice-pill{font-size:10px}}

/* Client maps: night palette, animated signal points, and visible battery data. */
.flotgps-night-map{background:#0a1a28!important;border:1px solid #6fffd23b;border-radius:16px;overflow:hidden;box-shadow:0 12px 35px #0004,0 0 28px #42e8c20c}
.flotgps-night-map .leaflet-tile-pane{filter:invert(.88) hue-rotate(180deg) saturate(.78) brightness(.8) contrast(.91)}
.flotgps-night-map .leaflet-control-attribution{background:#07121ed9!important;color:#b7cbd3!important}
.flotgps-night-map .leaflet-control-attribution a{color:#6fffd2!important}
.flotgps-marker-icon{background:transparent!important;border:0!important;box-shadow:none!important}
.flotgps-beacon{position:relative;display:block;width:34px;height:34px;border-radius:50%;background:radial-gradient(circle,#6fffd22b 0 23%,#4edfff17 24% 51%,transparent 72%);filter:drop-shadow(0 0 8px #6fffd2aa)}
.flotgps-beacon-pulse{position:absolute;inset:6px;border:2px solid #6fffd2;border-radius:50%;animation:flotgps-pulse 2s ease-out infinite}
.flotgps-beacon-pulse:after{content:"";position:absolute;inset:-3px;border:1px solid #4edfff;border-radius:50%;animation:flotgps-pulse 2s ease-out .65s infinite}
.flotgps-beacon-core{position:absolute;width:10px;height:10px;left:12px;top:12px;border-radius:50%;background:#a4ffe8;border:2px solid #fff;box-shadow:0 0 7px #6fffd2,0 0 17px #4edfff,0 0 28px #6fffd2;animation:flotgps-glow 1.8s ease-in-out infinite alternate}
@keyframes flotgps-pulse{0%{transform:scale(.55);opacity:.95}80%,100%{transform:scale(2.1);opacity:0}}
@keyframes flotgps-glow{from{filter:brightness(.9);box-shadow:0 0 5px #6fffd2,0 0 12px #4edfff}to{filter:brightness(1.3);box-shadow:0 0 9px #6fffd2,0 0 23px #4edfff,0 0 32px #6fffd2}}
.battery-chip{display:inline-flex;align-items:center;gap:6px;margin-top:7px;padding:5px 9px;border-radius:999px;border:1px solid #6fffd22e;background:#6fffd20b;color:#a8ffe6;font-size:11px;font-weight:600}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#102334!important;color:#edf5f8!important;border:1px solid #ffffff20}
.leaflet-popup-content a{color:#6fffd2!important}
@media(prefers-reduced-motion:reduce){.flotgps-beacon-pulse,.flotgps-beacon-pulse:after,.flotgps-beacon-core{animation:none!important}.flotgps-beacon-pulse{opacity:.65}}
