/* --- Общие --- */
body {
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* --- Таблица --- */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.custom-table th {
  background: #f9fafb;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}

.custom-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}

/* --- Пагинация --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.page-btn {
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: 0.2s;
}

.page-btn:hover {
  background: #2563eb;
}

.page-current {
  font-size: 0.875rem;
  color: #374151;
}

/* --- Табы --- */
.tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #f3f4f6;
  color: #374151;
  font-weight: 500;
  transition: 0.2s;
}

.tab-btn:hover {
  background: #e5e7eb;
}

.tab-btn.active {
  background: #3b82f6;
  color: white;
}

/* --- Карточки активов --- */
.asset-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.15s ease;
}

.asset-card:hover {
  transform: translateY(-2px);
}

.asset-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
}

/* --- Цвета для активов --- */
.asset-btc { background: #f59e0b; }   /* оранжевый */
.asset-usdt { background: #10b981; }  /* зелёный */
.asset-rub { background: #3b82f6; }   /* синий */
.asset-default { background: #6b7280; } /* серый */

.asset-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.asset-inline img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 9999px;
}

.asset-select-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.asset-select-preview,
.asset-icon-preview {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asset-select-preview img,
.asset-icon-preview img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.asset-select-preview span,
.asset-icon-preview span {
  color: #6b7280;
  font-size: 0.7rem;
}

.asset-icon-manager {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.875rem;
  background: #f9fafb;
}

.asset-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.625rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.25rem;
}

.asset-icon-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem;
  background: #fff;
}

.asset-icon-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.asset-icon-meta strong,
.asset-icon-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-icon-meta strong {
  font-size: 0.8rem;
  color: #111827;
}

.asset-icon-meta span {
  font-size: 0.7rem;
  color: #6b7280;
}

.icon-upload-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.icon-upload-form label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.55rem;
  border-radius: 0.375rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

button,
a[class*="bg-"],
a.btn,
.icon-upload-form label,
.page-btn,
.tab-btn {
  border-radius: 0.8rem !important;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    background-color 0.16s ease;
}

button:hover,
a[class*="bg-"]:hover,
a.btn:hover,
.icon-upload-form label:hover,
.page-btn:hover,
.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  filter: brightness(1.04);
}

button:active,
a[class*="bg-"]:active,
a.btn:active,
.icon-upload-form label:active,
.page-btn:active,
.tab-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.1);
}

button.text-\[10px\],
button.text-xs,
a.text-xs {
  border-radius: 0.65rem !important;
  min-height: 1.75rem;
}

button:not([class]) {
  padding: 0.35rem 0.8rem;
}

.rate-control {
  background: #eef0ff;
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0e4ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rate-control-form {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.rate-control label {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem 0 0.85rem;
  white-space: nowrap;
}

.rate-control input {
  width: 12.5rem;
  min-height: 2.25rem;
  border: 0;
  outline: none;
  padding: 0 0.55rem;
  background: #fff;
}

.rate-control input:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.rate-control button {
  min-height: 3rem;
  align-self: stretch;
  border-radius: 0 !important;
  padding: 0 1rem;
  background: #eef0ff;
  color: #111827;
  box-shadow: none;
  border-left: 1px solid #dde2ff;
}

.rate-control button:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  background: #e2e7ff;
}

.shift-summary-panel {
  border-radius: 1rem !important;
}
