/* EasyDeals-specific extras on top of ModusCore app-overrides */

.ed-chip,
.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.ed-chip-green,
.sh-chip-green { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.ed-chip-amber,
.sh-chip-amber { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.ed-chip-red,
.sh-chip-red { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.ed-chip-blue,
.sh-chip-blue { background: rgba(29, 127, 191, 0.12); color: #0f4c81; }
.ed-chip-gray,
.sh-chip-gray { background: rgba(70, 97, 124, 0.12); color: #46617c; }

.tender-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tender-summary-item {
  background: var(--ov-surface-alt, #f4f7fb);
  border-radius: var(--ov-radius-lg, 16px);
  padding: 0.85rem 1rem;
}

.tender-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ov-ink-muted, #46617c);
}

.tender-summary-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ov-ink, #10233c);
  margin-top: 0.2rem;
}

.tender-req-card {
  background: var(--ov-surface, #fff);
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: var(--ov-radius-lg, 16px);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.tender-req-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.tender-req-name { font-weight: 700; color: var(--ov-ink, #10233c); }
.tender-req-meta { font-size: 0.85rem; color: var(--ov-ink-muted, #46617c); margin-top: 0.2rem; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.wizard-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(70, 97, 124, 0.08);
  color: var(--ov-ink-muted, #46617c);
  font-size: 0.8rem;
  font-weight: 600;
}

.wizard-step.is-active {
  background: rgba(15, 76, 129, 0.12);
  color: var(--ov-primary, #0f4c81);
}

.wizard-step.is-done {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.wizard-step-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .responsive-stack-sm {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .responsive-full-sm {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .deal-doc-row-flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .deal-doc-row-flex > div {
    min-width: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* Login / first-run — same tokens as the dock chrome */
.theme-auth-page .theme-content {
  padding: 0;
  background: transparent;
}

.theme-login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.75rem;
}

.theme-login-forgot {
  font-size: 0.9rem;
  color: var(--ov-primary, #0f4c81);
}

.login-unread-list {
  display: grid;
  gap: 0.35rem;
  max-height: min(40vh, 18rem);
  overflow-y: auto;
}

.login-unread-list .theme-notification-item {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--ov-surface-alt, #f4f7fb);
  color: inherit;
  text-decoration: none;
}

/* Bright dock tiles are intentional EasyDeals branding (not a muted ModusCore default). */
.theme-sidebar-collapsed .theme-sidebar-toggle-btn {
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.18);
}

/* Deal process (Workflow V3 Phase 3) */
.dp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(15, 76, 129, 0.12);
  padding-bottom: 0.35rem;
}
.dp-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.92rem;
}
.dp-tab.is-active {
  background: rgba(15, 76, 129, 0.1);
  color: #0f4c81;
}
.dp-stage-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
}
.dp-stage-col {
  min-width: 150px;
  background: rgba(244, 247, 251, 0.7);
  border-radius: 12px;
  padding: 0.65rem;
}
.dp-stage-cards { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.dp-item-card {
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid #94a3b8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.dp-item-card-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.dp-item-card-meta { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.dp-pack-blue { border-left-color: #1d7fbf; }
.dp-pack-green { border-left-color: #059669; }
.dp-pack-violet { border-left-color: #7c3aed; }
.dp-pack-amber { border-left-color: #d97706; }
.dp-pack-pink { border-left-color: #db2777; }
.dp-pack-orange { border-left-color: #ea580c; }
.dp-pack-stone { border-left-color: #78716c; }
.ed-chip-violet { background: rgba(124, 58, 237, 0.15); color: #6d28d9; }
.ed-chip-pink { background: rgba(219, 39, 119, 0.15); color: #be185d; }
.ed-chip-orange { background: rgba(234, 88, 12, 0.15); color: #c2410c; }
.ed-chip-stone { background: rgba(120, 113, 108, 0.15); color: #57534e; }
.dp-pack-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.dp-pack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(244, 247, 251, 0.8);
  border-radius: 10px;
}
.dp-pack-main { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.dp-pack-name { font-weight: 600; color: #0f4c81; text-decoration: none; }
.dp-item-off { opacity: 0.55; }
.dp-fieldset {
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.35rem;
}
.dp-fieldset legend { padding: 0 0.35rem; font-weight: 600; color: #0f4c81; }
.dp-sentence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.dp-sentence .theme-form-input { width: auto; min-width: 8rem; max-width: 12rem; }
@media (max-width: 900px) {
  .dp-stage-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 560px) {
  .dp-stage-grid { grid-template-columns: 1fr; }
  .dp-pack-row { flex-direction: column; align-items: flex-start; }
}

.dp-questions { margin: 0.75rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.85rem; }
.dp-check-row { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; margin-top: 0.35rem; }
