:root {
  --drug-c-bg: #f7f0e8;
  --drug-c-panel: #fffdf8;
  --drug-c-line: #d3c0b3;
  --drug-c-text: #36261f;
  --drug-c-muted: #806b60;
}

.drug-controller {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 6px 8px;
  color: var(--drug-c-text);
  background: var(--drug-c-bg);
}

.drug-controller__staff {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
}

.drug-controller__staff select {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--drug-c-line);
  border-radius: 4px;
  padding: 4px 7px;
  color: var(--drug-c-text);
  background: var(--drug-c-panel);
  font-size: 14px;
  font-weight: 800;
}

.drug-controller__note {
  color: var(--drug-c-muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.drug-controller__status {
  min-height: 12px;
  grid-column: 1 / -1;
  color: var(--drug-c-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.drug-kot-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(35, 25, 20, .52);
}

.drug-kot-modal[hidden] { display: none; }

.drug-kot-modal__panel {
  width: min(440px, 100%);
  max-height: calc(100dvh - 28px);
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--drug-c-line);
  border-radius: 6px;
  color: var(--drug-c-text);
  background: var(--drug-c-panel);
  box-shadow: 0 14px 36px rgba(35, 25, 20, .28);
}

.drug-kot-modal__panel h2 {
  margin: 0;
  color: #5f3b2d;
  font-size: 17px;
  font-weight: 900;
}

.drug-kot-modal__list {
  min-height: 54px;
  max-height: min(60dvh, 430px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--drug-c-line);
  border-radius: 4px;
  background: #fffaf2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-line;
}

.drug-kot-modal__close {
  min-height: 38px;
  border: 1px solid #5f3b2d;
  border-radius: 4px;
  color: #fffaf2;
  background: #5f3b2d;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .drug-controller { grid-template-columns: minmax(0, 1fr); }
  .drug-controller__note { white-space: normal; }
}
