body{background:#eef2f6;font-family:Arial,sans-serif;text-align:center;margin:8px}
.topHeader{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  min-height:38px;
  margin-bottom:20px;
}
.homeBtn{
  grid-column:1;
  justify-self:start;
  background:#3498db;
  color:#fff;
  padding:8px 14px;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
}
.pageTitle{
  grid-column:2;
  justify-self:center;
  margin:0;
  font-size:26px;
  color:#222;
}
.towers{display:flex;flex-wrap:wrap;justify-content:center;gap:25px}
.tower{text-align:center}.tower h3{margin:0 0 5px}
svg{display:block;margin:auto;stroke-linecap:square;overflow:visible}
.rotate{animation:spin 1.2s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.pumpOn circle{fill:#bbb;animation:pulse 1s infinite alternate}
@keyframes pulse{from{filter:brightness(1)}to{filter:brightness(1.4)}}
.voltBox{width:125px;margin:auto}.row{display:flex;justify-content:space-between}
.towerInfo{font-size:11px;font-weight:bold;color:#555;margin:0 0 3px;white-space:nowrap}
.electricalBottom{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start;min-height:18px;margin-top:1px}
.relayControl{grid-column:1 / 3;display:flex;flex-direction:column;align-items:center;gap:6px}
.relayMainButton{border:1px solid #cfd6df;background:#fff;border-radius:5px;padding:2px 7px;font-size:12px;font-weight:bold;line-height:1.25;cursor:pointer;white-space:nowrap}
.relayMainButton.auto{box-shadow:inset 0 0 0 1px rgba(47,111,209,.08)}
.relayMainButton.manual{border-color:#8e6bbd;background:#f6f0fc}
.relayMainButton:disabled,.relayCommandBtn:disabled{opacity:.55;cursor:wait}
.relayManualButtons{display:none;justify-content:center;gap:8px;margin-top:1px;margin-bottom:3px}
.relayManualButtons.open{display:flex}
.relayCommandBtn{border:0;border-radius:4px;padding:3px 9px;font-size:11px;font-weight:bold;color:#fff;cursor:pointer}
.relayOnBtn{background:#27ae60}.relayOffBtn{background:#c0392b}
.relayCommandBtn.active{outline:2px solid #555;outline-offset:1px}
.relayPlaceholder{visibility:hidden}
.ampCell{grid-column:3;grid-row:1;font-size:12px;text-align:center;padding-top:3px}
.statBtn{display:inline-block;background:#2f6fd1;color:#fff;padding:4px 10px;font-size:13px;border-radius:5px;text-decoration:none;white-space:nowrap;flex-shrink:0}
.statManageRow{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:11px}
.manageGear{border:none;background:none;color:#8e6bbd;cursor:pointer;font-size:18px;padding:0;width:22px;min-width:22px;line-height:1;font-family:"Segoe UI Emoji","Segoe UI Symbol",Arial,sans-serif;transition:.15s;flex-shrink:0}
.manageGear:hover{color:#6f4ea2;transform:scale(1.12)}
.pressureModal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);align-items:center;justify-content:center;z-index:9999;padding:10px}
.pressureBox{background:#fff;width:330px;max-width:92vw;max-height:92vh;overflow:auto;padding:20px;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.35);text-align:left}
.pressureBox h3{text-align:center;margin-top:0}.pressureRow{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}
.pressureRow input{width:85px;padding:5px;font-size:16px;box-sizing:border-box}.pressureRow input[type="text"]{width:150px}
.pressureButtons{display:flex;justify-content:center;gap:10px;margin-top:18px}.pressureButtons button{border:0;padding:7px 14px;border-radius:6px;cursor:pointer;font-weight:bold}
.savePressure{background:#2f6fd1;color:#fff}.cancelPressure{background:#ddd}.deleteInside{background:#e74c3c;color:#fff;width:100%;margin-top:12px;border:0;padding:8px 12px;border-radius:6px;cursor:pointer;font-weight:bold}
.addBtnTower{
position:fixed;
bottom:70px;
right:20px;
width:60px;
height:60px;
border-radius:50%;
border:none;
font-size:30px;
color:white;
background:#3498db;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
cursor:pointer;
z-index:999;
}
.addBtnTower:hover{background:#2476ad}
.addCheckRow{display:flex;align-items:center;gap:8px;margin:14px 0 6px;font-size:14px}.addCheckRow input{width:18px;height:18px}.readonlyId{background:#eef1f4;color:#555}
.dimensionText{fill:#555;font-size:9px;font-weight:bold;paint-order:stroke;stroke:#eef2f6;stroke-width:3px;stroke-linejoin:round}
.pumpLabel{fill:#333;font-size:9px;font-weight:bold;paint-order:stroke;stroke:#eef2f6;stroke-width:3px;stroke-linejoin:round}
.formError{color:#c0392b;text-align:center;font-size:13px;min-height:18px}
.settingsDivider{border:0;border-top:1px solid #ddd;margin:18px 0 8px}
@media(max-width:520px){
  .pageTitle{font-size:23px}
}

/* =========================================================
   CONFIRMARE RELEU TURN
   A / M este înlocuit temporar de spinner
   ========================================================= */

.relayModeSlot{
  display:inline-flex;
  width:14px;
  height:14px;
  align-items:center;
  justify-content:center;
  vertical-align:-2px;
  margin-left:1px;
}

.relayPendingSpinner{
  display:inline-block;
  width:8px;
  height:8px;

  border:2px solid #cfd6df;
  border-top-color:#8e6bbd;
  border-radius:50%;

  animation:relayPendingSpin .75s linear infinite;

  box-sizing:content-box;
  pointer-events:none;
}

@keyframes relayPendingSpin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

