body {
  background: #000;
  color: #fff;
  font-family: Consolas, monospace;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* теперь слева */
}


h1, h2 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.table-scroll {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
}

.compact-table {
  width: 950px;
  border-collapse: collapse;
  table-layout: fixed;
}

.compact-table th,
.compact-table td {
  border-bottom: 1px solid #444;
  padding: 0.4rem 0.6rem;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.compact-table th:nth-child(1),
.compact-table td:nth-child(1) { min-width: 80px; }
.compact-table th:nth-child(2),
.compact-table td:nth-child(2) { min-width: 40px; }
.compact-table th:nth-child(3),
.compact-table td:nth-child(3) { min-width: 80px; }
.compact-table th:nth-child(4),
.compact-table td:nth-child(4) { min-width: 60px; }
.compact-table th:nth-child(5),
.compact-table td:nth-child(5) { min-width: 40px; }
.compact-table th:nth-child(6),
.compact-table td:nth-child(6) { min-width: 40px; }
.compact-table th:nth-child(7),
.compact-table td:nth-child(7) { min-width: 40px; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.compact-table td, .compact-table th {
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.2;
}
.rfq-row-oneway {
  background-color: #665c00;
  color: white;
}
.rfq-row-twoway {
  background-color: #3c135f;
  color: white;
}


button {
  font-family: Consolas, monospace;
}
.btn-bid {
  background: #ffcccc;
  color: black;
  border: 1px solid #ff9999;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-ask {
  background: #ccffcc;
  color: black;
  border: 1px solid #99ff99;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-oneway {
  background-color: #d4b000;
  color: black;
  border: none;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
  margin-right: 4px;
  font-weight: bold;
}

.btn-twoway {
  background-color: #7a32a3;
  color: white;
  border: none;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

#side-panel {
  width: 320px;
  background: #111;
  padding: 1rem;
  border-left: 1px solid #333;
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  animation: slideIn 0.3s ease forwards;
}
.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #111;
  padding: 1rem;
  border-left: 1px solid #333;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.slide-panel:not(.hidden) {
  transform: translateX(0);
}

#quote-panel button {
  font-family: Consolas, monospace;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

input[type="number"],
input[type="date"],
input[type="text"] {
  background-color: #000;
  color: white;
  border: 1px solid #444;
  padding: 0.3rem;
  width: 100%;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #28a745;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

#bank-buttons {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -0.5rem;
}

#bank-buttons button {
  padding: 0.4rem 0.8rem;
  min-width: 80px;
  border: 1px solid white;
  background: transparent;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
}

#bank-buttons button.selected {
  background-color: #3366cc;
  color: white;
  border-color: white;
}

.side-button {
  flex: 1;
  padding: 0.4rem;
  border: 1px solid white;
  border-radius: 4px;
  background: black;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.side-button.active.red {
  background-color: #992222;
}

.side-button.active.green {
  background-color: #228822;
}

#side-buttons {
  display: flex;
  gap: 10px;
}

.send-button {
  margin-top: 20px;
  align-self: flex-end;  /* прижмём кнопку вправо в панели */
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  background-color: #d4b000;
}


#close-panel {
  align-self: flex-end;
  background: none;
  border: 1px solid #aaa;
  color: white;
  font-size: 1.1rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
}

#selected-mode {
  text-align: center;
  font-weight: bold;
  padding: 0.3rem;
  border-radius: 4px;
  font-size: 1rem;
}

.hidden {
  display: none;
}
.quote-protocol-label {
  font-weight: bold;
  text-align: center;
  padding: 0.4rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.quote-field {
  margin-bottom: 0.6rem;
  font-size: 14px;
  line-height: 1.4;
}

#quote-panel input {
  width: 40%;
  max-width: 100px;
  margin-top: 4px;
  font-size: 13px;
}
.input-pair {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.input-pair input {
  width: 90px;
  font-size: 13px;
}

.mid-clickable {
  text-decoration: underline;
  cursor: pointer;
}

.quote-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

#quote-send-btn {
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: sans-serif;           /* убрать Consolas */
  color: white;
  background-color: #9900cc;
  width: 120px;
  height: 50px;
  border: none;
  border-radius: 4px;                /* убрать "мягкость" */
  box-shadow: 0 0 6px #9900cc88;
}

.reject-button {
  background-color: #444;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  height: 24px;
  line-height: 1;
  min-width: 60px;
  text-align: center;
}

.reject-button:hover {
  background-color: #666;
}









#close-quote-panel {
  align-self: flex-end;
  background: none;
  border: 1px solid #aaa;
  color: white;
  font-size: 1.1rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
}
