/* Admin konzola — hustá, vecná, bez ozdôb. */

#konzola {
  position: fixed;
  inset: 0;
  background: #0b0b0c;
  color: #e8e8ea;
  z-index: 40;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

#konzola header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1f;
}
#konzola h1 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: 0.04em; }
#konzola header button { margin-left: auto; }

#konzola nav { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid #1c1c1f; flex-wrap: wrap; }
#konzola nav button { background: none; border: none; color: #6f6f78; padding: 6px 10px; border-radius: 4px; cursor: pointer; font: inherit; }
#konzola nav button.akt { background: #1c1c22; color: #e8e8ea; }

.zalozka { flex: 1; overflow-y: auto; padding: 14px 16px; }

.riadok { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

button, select {
  background: #1c1c22;
  border: 1px solid #2b2b33;
  color: #e8e8ea;
  border-radius: 5px;
  padding: 6px 11px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button:hover { border-color: #3d3d48; }
select { min-width: 220px; }

.odznak { font-size: 11px; padding: 3px 8px; border-radius: 10px; border: 1px solid #2b2b33; color: #8a8a95; }
.odznak.ok { color: #4a9d6a; border-color: #21402f; }
.odznak.zle { color: #cc5a5a; border-color: #4a2020; }
.odznak.zamknute { color: #c8873f; border-color: #4a3520; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #17171a; vertical-align: top; }
th { color: #6f6f78; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
td.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #b9b9c2; }
tbody tr:hover td { background: #121216; }

.tabulkaObal { overflow-x: auto; }

.sprava-arch { padding: 8px 10px; border-left: 2px solid #2b2b33; margin-bottom: 8px; }
.sprava-arch .hlavicka { font-size: 11px; color: #6f6f78; margin-bottom: 3px; font-family: ui-monospace, monospace; }
.sprava-arch.owner { border-left-color: #3d5a80; }
.sprava-arch.host { border-left-color: #5a4a3d; }
.sprava-arch .telo { white-space: pre-wrap; word-break: break-word; }

.prazdne { color: #6f6f78; font-size: 13px; padding: 20px 0; }

.klope {
  background: #16161a;
  border: 1px solid #2b2b33;
  border-left: 3px solid #4a9d6a;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.klope-hlava { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.klope-kod {
  font-family: ui-monospace, monospace;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #fff;
  margin-right: auto;
}
.klope-popis { font-size: 12px; color: #8a8a95; margin-top: 8px; }
.klope button.nie { background: #3a1f1f; border-color: #5a2c2c; }

/* ── nastavenia ─────────────────────────────────────────────────────────── */

.nast-skupina { margin-bottom: 26px; max-width: 620px; }
.nast-skupina h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6f6f78;
  font-weight: 500;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #1c1c1f;
}

.nast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #131316;
}
.nast > span:first-child { font-size: 14px; }
.nast small { grid-column: 1 / -1; color: #6f6f78; font-size: 12px; line-height: 1.55; }
.nast-vstup { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #6f6f78; }

.nast input[type="number"] {
  width: 84px;
  padding: 8px 10px;
  background: #0b0b0c;
  border: 1px solid #2b2b33;
  border-radius: 5px;
  color: #e8e8ea;
  font: inherit;
  font-size: 16px;      /* 16 px, inak iOS pri písaní zoomuje */
  text-align: center;
  outline: none;
}
.nast input[type="number"]:focus { border-color: #3d3d48; }
.nast input[type="checkbox"] { width: 21px; height: 21px; accent-color: #4a9d6a; }
.nast select { font-size: 15px; padding: 8px 10px; }

.nast-lista {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  background: #0b0b0c;
  border-top: 1px solid #1c1c1f;
  max-width: 620px;
}
.nast-lista button.hlavne { margin-left: auto; background: #1f4030; border-color: #2c5a44; padding: 10px 18px; }
#nastStav { font-size: 12px; color: #4a9d6a; }

@media (max-width: 560px) {
  .nast { grid-template-columns: 1fr; }
  .nast-vstup { justify-content: flex-start; }
}

#fraza {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
#fraza .okno {
  background: #131316;
  border: 1px solid #26262b;
  border-radius: 8px;
  padding: 20px;
  width: min(420px, 90vw);
}
#fraza p { margin: 0 0 10px; font-size: 13px; }
#fraza .poznamka { color: #6f6f78; font-size: 11.5px; line-height: 1.5; margin: 10px 0 0; }
#fraza input {
  width: 100%;
  padding: 9px 11px;
  background: #0b0b0c;
  border: 1px solid #2b2b33;
  border-radius: 5px;
  color: #e8e8ea;
  font: inherit;
  outline: none;
}
#fraza .tlacidla { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 560px) {
  select { min-width: 0; flex: 1; }
  .zalozka { padding: 12px; }
}

/* Nezvratné nastavenie musí byť opticky odlíšené. */
.nast.nebezpecna { border-left: 2px solid #4a2020; padding-left: 12px; }
.nast.nebezpecna > span:first-child { color: #d08a8a; }
