﻿:root {
  --accent: #078c36;
}

body {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
}

.btn {
  font-size: 16px;
}

.accordion-button:not(.collapsed) {
  background-color: #e6f4ea;
  color: #0f6b2f;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(7, 140, 54, 0.2);
}

.navbar-brand {
  color: var(--accent);
}

.brand-logo {
  height: 28px;
  width: auto;
  display: inline-block;
}

.btn-success {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-success {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-success:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.card-action {
  border-left: 4px solid var(--accent);
}

.test-watermark {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 64px;
  color: rgba(7, 140, 54, 0.08);
  pointer-events: none;
  z-index: 2000;
}

.table thead th {
  background: #f5f7f8;
}

.tab-pane {
  padding-top: 12px;
}

.badge-status {
  background: #e9f7ef;
  color: #0f6b2f;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-step {
  padding: 6px 10px;
  border-radius: 16px;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.9rem;
}

.wizard-step.done {
  background: #e9f7ef;
  color: #0f6b2f;
  border: 1px solid #cfe9d8;
}

.wizard-step.current {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.step-help {
  white-space: pre-line;
}

.step-help ol {
  margin: 0 !important;
  padding-left: 0.9rem !important;
}

.step-help li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  margin-bottom: 2px !important;
}

.step-help li:last-child {
  margin-bottom: 0 !important;
}

.status-planned { background:#e3f2fd; color:#0d47a1; }
.status-in_production, .status-in_progress, .status-materials_ready, .status-packing { background:#fff3cd; color:#856404; }
.status-bulk_done, .status-done, .status-closed { background:#e9f7ef; color:#0f6b2f; }
.status-cancelled, .status-rejected { background:#f8d7da; color:#842029; }
.status-ok { background:#d4edda; color:#155724; }
.status-hold, .status-quarantine { background:#ffeeba; color:#7a5d00; }
.status-ready, .status-released, .status-passed { background:#d4edda; color:#155724; }
.status-active, .status-draft { background:#e3f2fd; color:#0d47a1; }
.status-archived { background:#e2e3e5; color:#6c757d; }
.status-candidate { background:#fff3cd; color:#856404; }
.status-locked { background:#f8d7da; color:#842029; }
.status-finalized { background:#e9f7ef; color:#0f6b2f; }

.ajax-select .js-ajax-results {
  z-index: 1050;
  max-height: 240px;
  overflow-y: auto;
}

a {
	text-transform: capitalize;
	color: var(--accent);
  text-decoration: none;
}

.tooltip-icon {
   display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    vertical-align: middle;
    line-height: 1;
    font-size: 14px;
    color: var(--accent) !important;
}

.offcanvas .sidebar .accordion-button,
.offcanvas .sidebar .list-group-item {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar {
  overflow-x: hidden;
}
.sidebar .accordion-button,
.sidebar .list-group-item {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width: 992px) {
  .sidebar {
    min-width: 220px;
    max-width: 280px;
  }
  .layout-row {
    flex-wrap: nowrap;
  }
  #main {
    min-width: 0;
  }
  .inventory-filters.sticky-top {
    top: 56px;
    z-index: 1020;
  }
}


@media (max-width: 767px) {
  .navbar .text-muted.small { display: none; }
  aside { display: none !important; }
  #main { padding: 12px; }
}
