/* Osnovno */
body {
  margin: 0;
  background: #1a5cff;
  color: #000;
  font-family: "DejaVu Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
}
.pageWrap {
  max-width: 1280px;
  margin: 16px auto 64px auto;
  padding: 0 12px 80px;
  overflow-x: hidden;
  box-sizing: border-box;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #dcdfe6;
  padding: 16px 16px 20px 16px;
  margin-bottom: 16px;
}
.title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #000;
}
/* Grid obrazca */
.formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.formCol .lbl {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin-bottom: 10px;
}
.lblCheckRow {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #000;
}
.input {
  margin-top: 4px;
  border: 1px solid #ccd0d9;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  background: #fff;
  color: #000;
  width: 100%;
  box-sizing: border-box;
}
.noteCount {
  text-align: right;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
  font-weight: 400;
}
.stationsRow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.autoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  border-top: 1px solid #eee;
  gap: 16px;
  padding-top: 16px;
  margin-top: 16px;
  align-items: flex-start;
}
.radioRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  line-height: 1.3;
  margin: 8px 0;
}
.btnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Gumbi */
.btn {
  font-size: 14px;
  line-height: 1.2;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 8px 10px;
  font-family: inherit;
  background: #eee;
  color: #000;
  user-select: none;
}
.btnGreen {
  background: #5b8f1a;
  color: #fff;
  border-color: #4f7c16;
}
.btnGreen:hover { background: #4f7c16; }
.btnBlue {
  background: #1a47a8;
  color: #fff;
  border-color: #153987;
}
.btnBlue:hover { background: #153987; }
.btnOrange {
  background: #cc7c00;
  color: #fff;
  border-color: #b46d00;
}
.btnOrange:hover { background: #b46d00; }
.btnGhost {
  background: #fff;
  border: 1px solid #ccd0d9;
  color: #000;
}
.btnGhost:hover {
  background: #f4f5f8;
}

/* Highlight selected cells when copying patterns. A dashed outline helps users see which cells
   will be copied when they press Ctrl+C. */
.selectedCell {
  outline: 2px dashed #3498db;
}
.fileLabel { position: relative; }
/* HEADER BLOK NAD TABELO */
.headerRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
/* Banner image size adjustments.  The default height is larger on desktop
   and scales down on smaller screens.  Keeping object-fit ensures the
   logo preserves its aspect ratio. */
.bannerImg {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 0;
}
@media (max-width: 768px) {
  .bannerImg {
    height: 60px;
  }
}
.metaCompact {
  width: 100%;
  /* Increase font size for metadata lines (two steps larger) */
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  white-space: normal;
  word-break: break-word;
  text-align: left;
}
.metaCompact .line {
  margin-bottom: 4px;
  font-weight: 500;
}
/* Opombe */
.notesOutRow {
  /* Increase font size for notes (two steps larger) */
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #000;
}

/* Container for dynamically added radio logos */
.logoContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  /* Align the logos to the right rather than centered/left.  Using
     flex-end moves all logos to the right edge of the container. */
  justify-content: flex-end;
}

/* Besedilo v modalnem oknu pomoči naj se ohrani prelom, uporablja
   isti font kot ostalo besedilo in je nekoliko manjše od naslovov. */
.helpText {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
  max-height: 50vh;
  overflow-y: auto;
}

/* Stil za <object> element v modalnem oknu pomoči.  Raztegne se preko
   celotne modalBody in omogoča drsnik. */
.modalBody object {
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
}
#helpModal .modalBody {
  /* Naj bo modalno telo za pomoč dovolj visoko, da je prikazan tekst.  */
  max-height: 60vh;
  min-height: 200px;
}
.logoContainer img {
  /* Ensure all logos have a consistent height.  Set both height and
     max-height so that taller images shrink to this value.  Width is
     set to auto so logos maintain aspect ratio.  A max-width limits
     overly wide logos. */
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Note below the table about approximate timings */
.tableNote {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
  color: #444;
}
/* WRAPPER TABELA */
.tableWrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: hidden;
}
/* MREŽA */
#grid {
  border-collapse: collapse;
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
  line-height: 1.2;
  color: #000;
  background: #fff;
}
/* GLAVA TABELE / DATUMI */
#grid thead th {
  border: 1px solid #555;
  background: #f9fafc;
  text-align: center;
  white-space: normal;
  vertical-align: middle;
  overflow: hidden;
  padding: 2px 0;
  font-size: 10px;
  line-height: 1.1;
  height: 42px;
}
.dh1,
.dh2,
.dh3 {
  display: block;
  line-height: 1.1;
  margin: 0;
  padding: 0;
}
.dh1 { font-size: 10px; font-weight: 600; }
.dh2 { font-size: 11px; font-weight: 700; }
.dh3 { font-size: 9px;  font-weight: 400; color: #555; }
/* TELO TABELE */
#grid tbody td {
  border: 1px solid #555;
  padding: 4px 2px;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
/* FOOTER TABELE */
#grid tfoot td.tdFoot {
  border: 1px solid #555;
  padding: 4px 2px;
  text-align: right;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  background: #f9fafc;
  font-weight: 600;
}
/* PRVI STOLPEC (TERMIN) */
.firstCol {
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  white-space: nowrap;
  font-weight: 600;
  width:220px;
  min-width:220px;
  max-width:220px;
}
.slotLbl {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
/* DNEVI */
.dayCol {
  /* Increase the column width so that multiple multi‑spot letters (e.g. "A,B")
     fit on a single line.  With a width of 24px each day column still
     allows all 31 days to fit across most screens (31 * 24px = 744px) while
     providing enough space for up to three characters. */
  width: 24px;
  min-width: 24px;
  max-width: 24px;
}
.cell {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  /* Match the width of the day column so letters and commas don't wrap */
  width: 24px;
  min-width: 24px;
  max-width: 24px;
}
.cell:read-only {
  background:#fafafa;
  color:#999;
}

/* Editable time labels in the first column ("Ure po želji") */
.timeCell {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  width: 100%;
  text-align: left;
}
/* "Skupaj" stolpec */
.totalCol {
  width:30px;
  min-width:30px;
  max-width:30px;
  background:#f9fafc;
  font-weight:600;
  text-align:right;
}
.tdFootTotal {
  width:30px;
  min-width:30px;
  max-width:30px;
  background:#f9fafc;
  font-weight:600;
  text-align:right;
}
/* PDF klon */
.print-hide-ph input.cell {
  border: 0;
  background: transparent;
}
/* MODAL ZA POSTAJE */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}
.modal[style*="display:none"] {
  display: none !important;
}
.modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.modalCard {
  position: relative;
  width: min(720px,100%);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  border: 1px solid #dcdfe6;
  z-index: 1;
  overflow: hidden;
}
.modalHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;
}
.modalTitle {
  flex: 1 1 auto;
  color: #000;
}
.modalBody {
  padding: 12px 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  font-size: 14px;
}
.modalFoot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid #eee;
}
.modalTopRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.stationsList {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 6px 14px;
  font-size: 14px;
}
.station-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 2px;
  font-size: 14px;
}
.station-item input {
  transform: translateY(1px);
}
/* responsive */
@media (max-width: 768px) {
  .btnRow { flex-direction: column; align-items: flex-start; }
  #grid { font-size: 11px; }
  .metaCompact { font-size: 11px; }
  .bannerImg { height: 32px; }
}
/* Ozadje celotne strani */
html, body {
  background: #1A5CFF !important;
}

/* Za vsak slučaj še tipični “oviti” elementi */
.wrapper, .page, .container, .container-fluid, .app, .content, .layout {
  background: #1A5CFF !important;
}11:03 14. 11. 202511:03 14. 11. 2025
/* popolnoma pobeli stran, ne glede na bootstrap bg-* razrede */
html,
body,
body[class*="bg-"],
body.bg-light {
  background-color: #ffffff !important;
}

/* Za vsak slučaj še tipični “oviti” elementi okrog aplikacije */
.wrapper,
.page,
.app,
.app-body,
.main,
.main-content,
.container-fluid {
  background-color: #ffffff !important;
}

