/* Jedinstven prikaz datuma/vremena i dve kompaktne brze komande. */
.header-analysis-summary.header-analysis-summary-unified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.header-unified-datetime {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.header-unified-datetime small {
  color: var(--theme-muted, var(--muted));
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .045em;
}

.header-unified-datetime strong,
.header-unified-control {
  color: var(--theme-text, var(--ink));
  font-size: .9rem;
  font-weight: 850;
  white-space: nowrap;
}

.header-unified-divider {
  color: var(--theme-border-strong, #9aabb9);
  font-weight: 700;
}

.header-time-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 50%;
  color: var(--accent, #0b8bd6);
  background: var(--theme-surface-raised, var(--card));
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.header-time-action:hover,
.header-time-action:focus-visible {
  border-color: var(--accent, #0b8bd6);
  background: var(--theme-soft-blue, rgba(11, 139, 214, .1));
  outline: none;
}

.manual-time-backdrop {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 18, 29, .48);
  backdrop-filter: blur(5px);
}

.manual-time-backdrop[hidden] { display: none !important; }

.manual-time-dialog {
  width: min(420px, 100%);
  padding: 20px;
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 18px;
  color: var(--theme-text, var(--ink));
  background: var(--theme-surface-raised, var(--card));
  box-shadow: 0 22px 60px rgba(4, 16, 27, .24);
}

.manual-time-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.manual-time-heading small,
.manual-time-field > span {
  color: var(--theme-muted, var(--muted));
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .045em;
}

.manual-time-heading h2 { margin: 3px 0 0; font-size: 1.35rem; }

.manual-time-close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 50%;
  color: var(--theme-text, var(--ink));
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.manual-time-field { display: grid; gap: 7px; }
.manual-time-field input {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--theme-border, var(--border));
  border-radius: 12px;
  color: var(--theme-text, var(--ink));
  background: var(--theme-field, var(--theme-surface, #fff));
  font: inherit;
}

.manual-time-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 17px;
}

.manual-time-actions button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.manual-time-cancel {
  border: 1px solid var(--theme-border, var(--border));
  color: var(--theme-text, var(--ink));
  background: transparent;
}

.manual-time-apply {
  border: 1px solid var(--accent, #0b8bd6);
  color: #fff;
  background: var(--accent, #0b8bd6);
}

body.manual-time-open { overflow: hidden; }

@media (max-width: 700px) {
  .header-analysis-summary.header-analysis-summary-unified {
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    padding-top: 7px;
  }

  .header-unified-datetime strong,
  .header-unified-control { font-size: .8rem; }
  .header-time-action { width: 32px; min-width: 32px; height: 32px; }
}
