/* Базовые стили admin-dashboard (выделено из prototype/css/cabinet.css) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --cab-transition: 200ms ease;
  --cab-focus: 0 0 0 2px var(--tp-color-bg-elevated), 0 0 0 4px var(--tp-color-primary);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--tp-font-sans);
  font-size: var(--tp-text-body-size);
  color: var(--tp-color-text-primary);
  background: var(--tp-color-bg-page);
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--tp-color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--cab-focus);
  border-radius: var(--tp-radius-sm);
}

.skip-link {
  display: none;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--tp-space-4));
  padding: 0 var(--tp-space-4);
}

.table-mini {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.table-mini th {
  text-align: left;
  font-weight: 500;
  color: var(--tp-color-text-secondary);
  padding: var(--tp-space-2) var(--tp-space-3);
  border-bottom: 1px solid var(--tp-color-border);
  white-space: nowrap;
}

.table-mini td {
  padding: 12px var(--tp-space-3);
  border-bottom: 1px solid var(--tp-color-border);
  vertical-align: middle;
}

.table-mini tbody tr {
  transition: background var(--cab-transition);
}

.table-mini tbody tr:hover {
  background: var(--tp-table-row-hover);
}

.table-mini tr:last-child td {
  border-bottom: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--tp-radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--cab-transition), border-color var(--cab-transition);
}

.btn--primary {
  background: var(--tp-color-primary);
  color: var(--tp-color-text-on-primary);
}

.btn--primary:hover {
  background: var(--tp-color-primary-hover);
}

.btn--secondary {
  background: var(--tp-color-bg-elevated);
  color: var(--tp-color-text-primary);
  border: 1px solid var(--tp-color-border);
}

.btn--secondary:hover {
  background: var(--tp-color-bg-page);
}

a.btn {
  text-decoration: none;
  box-sizing: border-box;
}

a.btn:hover {
  text-decoration: none;
}
