/* PharmaFlow 3.2: readable operations, explicit batches and finance. */
.page-head h1 {
  font:
    650 30px/1.2 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  letter-spacing: -0.6px;
}
.page-head > div:first-child > p:last-child {
  font-size: 14px;
  line-height: 1.6;
}
th,
.depo-table th {
  font-size: 12px;
}
td,
.depo-table td {
  font-size: 14px;
  max-width: none;
}
.depo-table td {
  white-space: normal;
  overflow: visible;
}
.depo-table .numeric {
  white-space: nowrap;
}
.scan-box button,
.today small,
.today strong,
.status,
.tabs span {
  font-size: 12px;
}
.kpi > div strong {
  font:
    650 28px/1.2 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.kpi > div small,
.kpi > div p {
  font-size: 13px;
  color: #587263;
}
.panel-head > button,
.warehouse-bars span,
.warehouse-bars strong,
.warehouse-bars small,
.queue-list small,
.compact-head,
.compact-table > button,
.compact-table > button strong,
.compact-table > button small,
.timeline strong,
.timeline small,
.timeline > button > b,
.table-toolbar span,
.table-toolbar p,
.tabs button,
.partner-grid strong,
.partner-grid small,
.partner-grid p,
.count-head > div > p:last-child,
.count-head select,
.count-lines strong,
.count-lines small,
.count-lines label,
.count-lines input,
.count-actions span,
.empty strong,
.empty p,
.field > span,
.field input,
.field select,
.form-note > span,
.form-note p,
.check-field strong,
.check-field small,
.form-error,
.return-line-list label span {
  font-size: 13px;
}
.login-panel h1 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.login-brand small,
.login-copy,
.login-form label,
.login-form input,
.login-form button,
.login-error,
.login-aside-card > span,
.login-aside p,
.login-features strong,
.login-features small {
  font-size: 14px;
}
:root {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  --muted: #53685f;
  --line: #dce5df;
  --ink: #183a30;
  font-size: 15px;
  color: var(--ink);
}
body {
  background: #f5f7f5;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
h1,
h2,
h3,
.brand strong {
  font-family: inherit;
}
.sidebar {
  width: 258px;
  padding: 24px 16px 16px;
  background: #123b30;
  box-shadow: none;
}
.workspace {
  margin-left: 258px;
}
.brand {
  padding: 0 8px 28px;
}
.brand strong {
  font-size: 21px;
}
.brand small {
  font-size: 10px;
  color: #bfd5cb;
  letter-spacing: 1.1px;
}
.brand-mark {
  font-family: inherit;
}
.sidebar nav section > p {
  font-size: 11px;
  color: #a1c2b3;
  letter-spacing: 0.8px;
  margin-bottom: 9px;
}
.sidebar nav button {
  font-size: 14px;
  min-height: 45px;
  height: auto;
  padding: 11px 12px;
  color: #c5d9d0;
  border-radius: 7px;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar nav button.active {
  background: #e1f0e6;
  color: #123b30;
  font-weight: 650;
}
.sidebar nav button.active > .icon {
  color: #176e53;
}
.sidebar nav button > i {
  background: #176e53;
}
.sidebar nav section {
  margin-bottom: 22px;
}
.sidebar-foot strong {
  font-size: 12px;
  max-width: 150px;
}
.sidebar-foot small {
  font-size: 11px;
  color: #a9c7b9;
}
.sidebar-foot > button {
  width: 36px;
  height: 36px;
  color: #c5d9d0;
}
.avatar {
  font-size: 12px;
}
.topbar {
  height: 74px;
  padding: 0 28px;
  box-shadow: none;
}
.global-search {
  width: min(480px, 43vw);
  height: 42px;
}
.global-search input,
.scan-box input {
  font-size: 13px;
}
.global-search kbd {
  font-size: 11px;
}
.scan-box {
  height: 42px;
}
.content {
  max-width: 1700px;
  padding: 28px;
}
.page-header h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
}
.page-header p,
.page-description {
  font-size: 14px;
  line-height: 1.65;
}
.eyebrow {
  font-size: 11px !important;
  letter-spacing: 1px;
}
.primary-button,
.ghost-button {
  font-size: 13px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.primary-button {
  background: #176e53;
  color: white;
  border: 1px solid #176e53;
}
.ghost-button {
  background: white;
  color: #204c3b;
  border: 1px solid #cbdad0;
}
.primary-button:hover {
  background: #12593f;
}
.ghost-button:hover {
  background: #f0f6f2;
}
.row-action {
  background: transparent;
  border: 0;
  color: #126649;
  font-size: 13px;
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 2px;
}
.panel {
  box-shadow: none;
  border-radius: 10px;
}
.table-toolbar {
  font-size: 14px;
}
.data-table th,
.data-table td {
  font-size: 13px;
  padding: 14px;
}
.status-badge,
.health-badge {
  font-size: 12px;
}
.panel-head h2 {
  font-size: 17px;
}
.panel-head p,
.panel-head small {
  font-size: 13px;
}
.stat-card strong {
  font-size: 29px;
}
.stat-card p,
.stat-card small {
  font-size: 13px;
}
.form-field > span,
.form-field > label {
  font-size: 13px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-size: 14px;
  min-height: 42px;
}
.drawer-head h2 {
  font-size: 24px;
  font-family: inherit;
}
.drawer-head span {
  font-size: 13px;
}
.form-note {
  font-size: 13px;
}
.toast p {
  font-size: 14px;
}
.error-banner p {
  font-size: 14px;
}
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}
.depo-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  background: #0b231ecc;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.depo-modal {
  width: min(800px, 100%);
  background: white;
  border-radius: 14px;
  box-shadow: 0 24px 80px #071c2c33;
  outline: 0;
  margin: auto;
}
.depo-modal.wide {
  width: min(1180px, 100%);
}
.depo-modal > header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: space-between;
}
.depo-modal h2 {
  margin: 3px 0 7px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.depo-modal > header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.depo-form {
  border: 0;
  padding: 24px 28px;
  margin: 0;
  min-width: 0;
}
.depo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 18px;
}
.depo-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
}
.depo-field > span {
  font-size: 13px;
  font-weight: 600;
  color: #304e41;
}
.depo-field small {
  font-size: 12px;
  color: #566b60;
}
.depo-field input,
.depo-field select,
.depo-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid #bdcfc3;
  background: #fff;
  color: #17392e;
  border-radius: 6px;
  min-height: 43px;
  font-size: 14px;
  line-height: 1.4;
}
.depo-field input:focus,
.depo-field select:focus,
.depo-field textarea:focus {
  border-color: #176e53;
}
.depo-field input:disabled,
.depo-field select:disabled {
  background: #f1f4f2;
}
.depo-field textarea {
  resize: vertical;
}
.depo-costs {
  padding: 16px 18px;
  background: #f4f8f5;
  border: 1px solid #dce8df;
  border-radius: 8px;
  margin: 20px 0;
}
.depo-costs summary {
  font-weight: 600;
  cursor: pointer;
}
.depo-costs p {
  font-size: 13px;
  color: #566b60;
}
.depo-product-tools {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin: 22px 0 12px;
}
.depo-search {
  position: relative;
}
.depo-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: white;
  border: 1px solid #cbdad0;
  border-radius: 8px;
  box-shadow: 0 8px 25px #17382d22;
  max-height: 320px;
  overflow: auto;
}
.depo-search-results button {
  display: block;
  background: white;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
}
.depo-search-results button:hover,
.depo-search-results button:focus-visible {
  background: #edf6ef;
}
.depo-search-results small {
  display: block;
  color: #627469;
  font-size: 12px;
}
.depo-search-results p {
  padding: 12px;
}
.depo-notice {
  background: #f2f7f3;
  border-left: 3px solid #86b79b;
  color: #426250;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
}
.depo-error {
  color: #8c2929;
  background: #fff0ee;
  border: 1px solid #e9b9b3;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 28px;
  font-size: 14px;
}
.depo-stock-line {
  border: 1px solid #d5e2d9;
  border-radius: 9px;
  padding: 18px;
  margin: 18px 0;
  background: #fff;
}
.depo-line-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.depo-line-heading strong {
  font-size: 16px;
}
.depo-lots {
  margin-top: 18px;
  background: #f6f8f6;
  border: 1px solid #e0e8e1;
  border-radius: 7px;
  padding: 14px 16px;
}
.depo-lot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.depo-lots > small {
  display: block;
  color: #566b60;
  font-size: 12px;
  margin-top: 12px;
}
.depo-lot-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.depo-lot-facts span {
  color: #5b7063;
  font-size: 12px;
}
.depo-lot-facts b {
  display: block;
  color: #234c37;
  font-size: 15px;
  font-weight: 600;
}
.depo-price-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.6fr 1.7fr;
  gap: 16px;
  margin-top: 18px;
}
.depo-recommendation {
  background: #eaf4e9;
  border: 1px solid #cfe2cd;
  padding: 11px 14px;
  border-radius: 7px;
  display: grid;
  gap: 4px;
}
.depo-recommendation span,
.depo-recommendation small {
  color: #416444;
  font-size: 12px;
}
.depo-recommendation strong {
  font-size: 17px;
}
.depo-recommendation .row-action {
  text-align: left;
  justify-self: start;
}
.depo-total {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.depo-total strong {
  font-size: 19px;
}
.depo-form-footer {
  border-top: 1px solid var(--line);
  background: #f9fbf9;
  padding: 16px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  border-radius: 0 0 14px 14px;
}
.depo-finance-top,
.depo-inventory-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.depo-inventory-head > div:first-child { flex: 1 1 300px; }
.product-packaging h3 { margin: 4px 0 12px; font-size: 16px; }
.depo-inventory .depo-table td:first-child .row-action { display: block; margin-top: 5px; }
.depo-finance-top strong,
.depo-inventory-head strong {
  font-size: 18px;
}
.depo-finance-top p,
.depo-inventory-head p {
  color: #586e61;
  font-size: 13px;
  margin: 6px 0;
}
.depo-inventory-head .depo-field {
  min-width: 200px;
}
.depo-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  border-bottom: 1px solid #d6e1d8;
  margin-bottom: 24px;
  padding-bottom: 0;
}
.depo-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #526c5b;
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 14px;
}
.depo-tabs button.active {
  border-bottom-color: #176e53;
  color: #12593f;
  font-weight: 650;
}
.depo-tabs button:hover {
  background: #eaf2eb;
}
.depo-section-intro {
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}
.depo-section-intro h2 {
  font-size: 21px;
  margin: 0;
}
.depo-section-intro p {
  font-size: 13px;
  color: #586e61;
  margin: 0 0 8px;
}
.depo-section-intro .depo-field {
  max-width: 440px;
}
.depo-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.depo-table th {
  padding: 13px 16px;
  background: #f3f6f3;
  font-size: 12px;
  font-weight: 650;
  color: #4c6455;
  white-space: nowrap;
  text-align: left;
  border-bottom: 1px solid #dce5df;
}
.depo-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5ebe6;
  vertical-align: middle;
}
.depo-table td:first-child {
  min-width: 155px;
}
.depo-table td small {
  display: block;
  font-size: 12px;
  color: #657c6b;
  max-width: 260px;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.depo-table tbody tr:hover {
  background: #f8fbf8;
}
.depo-finance .panel {
  margin-top: 18px;
  overflow: auto;
}
.depo-empty {
  padding: 32px;
  text-align: center;
  color: #526c5b;
  font-size: 14px;
}
.depo-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.depo-account {
  background: #fff;
  border: 1px solid #d6e2d9;
  border-radius: 9px;
  padding: 24px;
}
.depo-account > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #52735e;
  letter-spacing: 0.7px;
}
.depo-account h2 {
  font-size: 18px;
  margin: 20px 0 12px;
}
.depo-account > strong {
  font-size: 27px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.depo-account > strong small {
  font-size: 14px;
  font-weight: 500;
  color: #687e6d;
}
.depo-report-filter {
  background: white;
  border: 1px solid #d7e4da;
  border-radius: 9px;
  padding: 18px 22px;
}
.depo-report-filter > .primary-button {
  margin-top: 18px;
}
.depo-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.depo-report-metrics > div {
  padding: 18px;
  background: #e8f1e8;
  border-left: 3px solid #83a68a;
}
.depo-report-metrics span {
  font-size: 12px;
  color: #42644a;
  display: block;
}
.depo-report-metrics strong {
  display: block;
  font-size: 22px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.depo-report-metrics small {
  font-size: 12px;
  font-weight: 500;
}
.positive {
  color: #176847;
}
.negative {
  color: #a23737;
}
.depo-product-stock {
  background: white;
  border: 1px solid #d6e2d9;
  border-radius: 8px;
  margin: 14px 0;
  overflow: hidden;
}
.depo-product-stock summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.depo-product-stock summary:before {
  content: "+";
  font-size: 22px;
  color: #528161;
}
.depo-product-stock[open] summary:before {
  content: "−";
}
.depo-product-stock summary > div {
  flex: 1;
}
.depo-product-stock summary strong {
  font-size: 17px;
  font-weight: 600;
}
.depo-product-stock summary small {
  display: block;
  font-size: 12px;
  color: #657c6b;
  margin-top: 4px;
}
.depo-product-stock summary > span {
  color: #577460;
  font-size: 12px;
  min-width: 90px;
}
.depo-product-stock summary b {
  display: block;
  font-size: 22px;
  color: #204d34;
  font-variant-numeric: tabular-nums;
}
.depo-warning {
  background: #fff2d4;
  color: #81530a;
  padding: 4px 7px;
  border-radius: 4px;
}
.depo-danger {
  background: #ffebe9;
  color: #a23228;
  padding: 4px 7px;
  border-radius: 4px;
}
@media (max-width: 1100px) {
  .depo-finance-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .depo-report-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .depo-product-tools {
    grid-template-columns: 1fr 1fr;
  }
  .depo-price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .depo-recommendation {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 258px;
  }
  .workspace {
    margin-left: 0;
  }
  .content {
    padding: 20px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .depo-overlay {
    padding: 10px;
  }
  .depo-modal > header,
  .depo-form {
    padding: 20px;
  }
  .depo-modal h2 {
    font-size: 22px;
  }
  .depo-form-footer {
    padding: 14px 18px;
  }
  .depo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .depo-inventory-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .depo-inventory-head .depo-field {
    width: 100%;
  }
  .depo-lot-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .depo-product-stock summary {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .depo-product-stock summary > div {
    min-width: 60%;
  }
  .depo-product-stock summary > span {
    min-width: 70px;
  }
}
@media (max-width: 520px) {
  .depo-grid,
  .depo-product-tools {
    grid-template-columns: 1fr;
  }
  .depo-price-grid {
    grid-template-columns: 1fr 1fr;
  }
  .depo-price-grid > .depo-field:first-child {
    grid-column: 1/-1;
  }
  .depo-report-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .depo-report-metrics > div {
    padding: 12px;
  }
  .depo-report-metrics strong {
    font-size: 18px;
  }
  .depo-form-footer {
    flex-wrap: wrap;
  }
  .depo-tabs button {
    padding: 12px 10px;
    font-size: 13px;
  }
  .page-header h1 {
    font-size: 25px;
  }
  .depo-stock-line {
    padding: 12px;
  }
  .depo-lot-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.depo-field textarea{width:100%;min-height:88px;resize:vertical;padding:10px 12px;border:1px solid #bdcbc6;border-radius:6px;font:inherit;color:inherit;background:#fff}.depo-field textarea:focus-visible{outline:2px solid #176e53;outline-offset:2px}.management-panel + .management-panel{margin-top:16px}

.record-link{color:#176e53;text-decoration:underline;text-decoration-color:#a3bdb2;text-underline-offset:3px;overflow-wrap:anywhere}.record-link:hover{color:#0d4937;text-decoration-color:currentColor}.record-link:focus-visible{outline:2px solid #176e53;outline-offset:3px;border-radius:2px}
