/* Daily Report page */

.app:not(.dr-unlocked) {
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "main";
}

.dr-login {
  max-width: 420px;
  margin: 2rem auto;
}

.dr-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dr-login-form input[type="password"] {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
}

.dr-error {
  color: var(--red) !important;
}

.btn-primary,
.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-dim);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-send {
  background: var(--green);
  color: #0f0f12;
  border-color: #4aa85a;
}

.btn-send:hover {
  filter: brightness(1.08);
}

.btn-primary:disabled,
.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dr-status-bar {
  margin: 0 0 1rem;
  min-height: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dr-empty {
  text-align: center;
  color: var(--text-muted);
}

.dr-warehouse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dr-warehouse-head h2 {
  margin: 0;
}

.dr-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.dr-badge--draft {
  color: var(--orange);
  border-color: var(--orange);
}

.dr-badge--sent {
  color: var(--green);
  border-color: var(--green);
}

.dr-badge--error {
  color: var(--red);
  border-color: var(--red);
}

.dr-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.dr-kpi {
  min-width: 7rem;
}

.dr-kpi-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dr-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
}

.dr-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.dr-section-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.dr-section-meta {
  display: grid;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.dr-section-meta dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.dr-section-meta dd {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .dr-section-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.dr-section-notes-label {
  display: block;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dr-section-card textarea,
#dr-notes-overall,
#dr-recipients {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

#dr-username,
#dr-pw-current,
#dr-pw-new {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
}

.dr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

.dr-actions .hint {
  flex: 1 1 100%;
  margin: 0;
}

#dr-sidebar .btn-primary {
  margin-top: 0.5rem;
  width: 100%;
}

#dr-sidebar textarea {
  width: 100%;
  margin-bottom: 0.35rem;
}
