/*
 * Admin Inquiries – dedicated stylesheet.
 *
 * Layout:
 * - sticky header iz header.css
 * - main: grid z levo listo + desno kartico
 *
 * Ta datoteka je samo za inquiries_admin.php
 */

/* page background – temno, malo proti zeleni */
body.adm-shell.theme-dark.inquiries-page {
  background: #020f14;
  color: #e5e7eb;
}

/* Glavni section */
.inq-section {
  padding: 12px 16px 16px;
}

/* Grid: levi stolpec (seznam) | desni (detajl) */
.inq-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(260px, 1fr);
  gap: 12px;
  min-height: calc(100vh - 96px); /* header ~80–90px */
}

/* LEVA STRAN ------------------------------------------------------- */

.inq-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* toolbar nad seznamom */
.inq-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #07101a;
  border: 1px solid #1f2937;
}

.inq-unit-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.inq-unit-select span {
  color: #9ca3af;
}

.inq-unit-select select {
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
}

/* seznam povpraševanj */
.inq-list {
  flex: 1;
  min-height: 260px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #1f2937;
}

/* ena vrstica v seznamu */
.inq-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(170px, 1.5fr) minmax(120px, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: #020617;
  border: 1px solid #111827;
  font-size: 13px;
  cursor: pointer;
}

.inq-row:hover {
  background: #081427;
  border-color: #1f2937;
}

.inq-row.active {
  background: #10233a;
  border-color: #2563eb;
}

/* stolpci v vrstici */
.inq-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ID + mark dot */
.inq-id-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: transparent;
}

.inq-row.is-marked .mark-dot {
  background: #facc15;
  border-color: #fbbf24;
}

/* datumi + noči */
.dates-text {
  white-space: nowrap;
}

.nights-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  background: #111827;
  color: #e5e7eb;
}

/* gost */
.inq-guest {
  color: #e5e7eb;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* DESNA STRAN ------------------------------------------------------ */

.inq-detail {
  min-height: 260px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #1f2937;
}

/* kartica */
.inq-card {
  background: #071827;                 /* malo svetlejša, modro-zelena ploščica */
  border-radius: 10px;
  border: 1px solid #111827;           /* mehkejši, temno moder rob */
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  font-size: 14px;
}
.inq-card-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

.inq-card-row span {
  color: #9ca3af;
}

.inq-card-row b {
  font-weight: 500;
  color: #e5e7eb;
}

/* gumbi pod podatki */
.inq-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}

/* Raw JSON */
.inq-json {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #020617;
  border: 1px dashed #374151;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #9ca3af;
  white-space: pre;
  overflow-x: auto;
}

/* RESPONSIVE -------------------------------------------------------- */

@media (max-width: 900px) {
  .inq-wrap {
    grid-template-columns: 1fr;
  }
  .inq-detail {
    max-height: none;
  }
}
