/* ========================================================================== 
   Panel administratora — układ aplikacyjny w estetyce Doint
   ========================================================================== */
.admin-workspace {
  --admin-navy: #18223a;
  --admin-navy-hover: #26334e;
  --admin-blue: var(--green);
  --admin-blue-dark: var(--green-dark);
  --admin-ink: #172033;
  --admin-muted: #667085;
  --admin-line: #d5dbe6;
  min-height: 100vh;
  color: var(--admin-ink);
  background: #f4f6fa;
  font-size: 14px;
}
.admin-workspace .ss-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 228px;
  min-height: 100vh;
  padding: 26px 15px 17px;
  overflow-y: auto;
  color: #fff;
  background: var(--admin-navy);
}
.admin-workspace .ss-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}
.admin-workspace .ss-brand > span,
.admin-workspace .ss-brand-logo {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid color-mix(in srgb, var(--admin-blue) 65%, #fff);
  border-radius: 50%;
  object-fit: contain;
}
.admin-workspace .ss-brand-logo { padding: 3px; background: #fff; }
.admin-workspace .ss-brand strong { color: #fff; font-size: 18px; font-weight: 700; }
.admin-workspace .ss-menu-label {
  margin: 36px 10px 10px;
  color: color-mix(in srgb, var(--admin-blue) 45%, #fff);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.admin-workspace .ss-sidebar nav { display: grid; gap: 4px; }
.admin-workspace .ss-sidebar nav a,
.admin-workspace .ss-sidebar-bottom a,
.admin-workspace .ss-sidebar-bottom button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  gap: 10px;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  color: #bac4d8;
  background: transparent;
  font: 400 14px var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.admin-workspace .ss-sidebar nav a:hover,
.admin-workspace .ss-sidebar nav a.active,
.admin-workspace .ss-sidebar-bottom a:hover,
.admin-workspace .ss-sidebar-bottom button:hover {
  color: #fff;
  background: var(--admin-navy-hover);
}
.admin-workspace .ss-nav-icon {
  display: inline-grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  color: color-mix(in srgb, var(--admin-blue) 62%, #fff);
  font-size: 13px;
}
.admin-workspace .ss-sidebar nav a.active .ss-nav-icon { color: color-mix(in srgb, var(--admin-blue) 42%, #fff); }
.admin-workspace .ss-sidebar-bottom {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.admin-workspace .ss-sidebar-bottom form { margin: 0; }
.admin-workspace .ss-shell {
  min-height: 100vh;
  margin-left: 228px;
}
.admin-workspace .ss-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 63px;
  padding: 0 32px;
  color: var(--admin-muted);
  background: #fff;
  border-bottom: 1px solid #e3e7ef;
  font-size: 12px;
}
.admin-workspace .ss-topbar span { display: flex; align-items: center; gap: 9px; }
.admin-workspace .ss-topbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #45c998;
  box-shadow: 0 0 0 4px #e8faf3;
}
.admin-workspace .ss-topbar strong { color: var(--admin-muted); font-size: 12px; font-weight: 600; }
.admin-workspace .ss-shell > main {
  min-height: calc(100vh - 63px);
  padding-bottom: 55px;
  overflow: visible;
}
.admin-workspace .admin-head {
  padding: 30px 32px 0;
  color: var(--admin-ink);
  background: transparent;
}
.admin-workspace .admin-head > .shell {
  width: 100%;
  max-width: none;
}
.admin-workspace .admin-head .breadcrumbs,
.admin-workspace .admin-head .breadcrumbs a,
.admin-workspace .admin-head p { color: var(--admin-muted); }
.admin-workspace .admin-head .kicker {
  color: var(--admin-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.admin-workspace .admin-head h1,
.admin-workspace .admin-head .section-head h1,
.admin-workspace .moderation-admin-head h1 {
  margin: 7px 0 6px;
  color: var(--admin-ink);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.admin-workspace .admin-head .section-head { align-items: flex-end; gap: 22px; }
.admin-workspace .admin-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-workspace .primary-button,
.admin-workspace .ghost-button,
.admin-workspace .admin-filter-form button,
.admin-workspace .admin-filter-form a {
  min-height: 47px;
  padding: 12px 19px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
}
.admin-workspace .primary-button,
.admin-workspace .admin-filter-form button {
  border-color: transparent;
  color: #fff;
  background: var(--admin-blue);
}
.admin-workspace .primary-button:hover,
.admin-workspace .admin-filter-form button:hover { background: var(--admin-blue-dark); }
.admin-workspace .ghost-button,
.admin-workspace .admin-head .ghost-button,
.admin-workspace .admin-filter-form a {
  border: 1px solid var(--admin-line);
  color: var(--admin-ink);
  background: #fff;
}
.admin-workspace .ghost-button:hover,
.admin-workspace .admin-head .ghost-button:hover,
.admin-workspace .admin-filter-form a:hover { border-color: #aeb8ca; background: #f9fafc; }
.admin-workspace .admin-filter-form {
  display: grid;
  grid-template-columns: minmax(250px,1.35fr) minmax(190px,.75fr) minmax(230px,1fr) auto auto;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #e3e7ef;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36,49,79,.025);
}
.admin-workspace .admin-filter-form input,
.admin-workspace .admin-filter-form select {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--admin-line);
  border-radius: 5px;
  color: var(--admin-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}
.admin-workspace .admin-filter-form input:focus,
.admin-workspace .admin-filter-form select:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-blue) 12%, transparent);
}
.admin-workspace .admin-list-tools { gap: 10px; margin-top: 14px; }
.admin-workspace .admin-list-tools .ghost-button { background: #fff; }
.admin-workspace .section.admin-list-section { padding: 24px 0 55px; }
.admin-workspace .admin-table-shell {
  width: calc(100% - 96px);
  max-width: none;
  margin: 0 auto;
}
.admin-workspace .table-wrap {
  border: 1px solid #e3e7ef;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36,49,79,.025);
}
.admin-workspace table { color: var(--admin-ink); background: #fff; }
.admin-workspace th {
  color: var(--admin-muted);
  background: #f9fafc;
  border-color: #e3e7ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.admin-workspace td { border-color: #e3e7ef; }
.admin-workspace tbody tr:hover td { background: #fbfcfe; }
.admin-workspace .admin-companies-table .admin-company-name { color: var(--admin-ink); }
.admin-workspace .admin-companies-table .branch-cell,
.admin-workspace .admin-companies-table td small { color: var(--admin-muted); }
.admin-workspace .permalink-cell a,
.admin-workspace .actions a { color: var(--admin-blue-dark); }
.admin-workspace .status.live { color: #2f6a4d; background: #e2f3e8; }
.admin-workspace .status.warning { color: #7b651c; background: #fff3c4; }
.admin-workspace .marketing-consent-yes { color: #2f6a4d; }
.admin-workspace .pagination { margin-top: 22px; }
.admin-workspace .pagination a { border-radius: 5px; background: #fff; }
.admin-workspace .ss-shell main > .section.shell {
  width: 100%;
  max-width: none;
  padding: 24px 32px 55px;
}
.admin-workspace .form-shell { max-width: none; }
.admin-workspace .company-form fieldset,
.admin-workspace .tool-card,
.admin-workspace .category-admin-card {
  border-color: #dfe4dc;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36,49,79,.025);
}
.admin-workspace .company-form input,
.admin-workspace .company-form textarea,
.admin-workspace .company-form select,
.admin-workspace .tool-card input,
.admin-workspace .tool-card textarea,
.admin-workspace .tool-card select {
  font-weight: 400;
}
.admin-workspace .format-button { border-radius: 5px; font-weight: 400; }
.admin-workspace .alert { border-radius: 6px; }
.admin-workspace .actions .moderation-edit-button,
.admin-workspace .actions .moderation-generate-form .ghost-button {
  border-radius: 5px;
  color: var(--admin-blue-dark);
}
.admin-workspace .actions .moderation-approve-button,
.admin-workspace .actions .moderation-reject-button { border-radius: 5px; }

@media (max-width: 1100px) {
  .admin-workspace .ss-sidebar { width: 72px; padding-inline: 10px; }
  .admin-workspace .ss-shell { margin-left: 72px; }
  .admin-workspace .ss-brand { justify-content: center; }
  .admin-workspace .ss-brand strong,
  .admin-workspace .ss-menu-label,
  .admin-workspace .ss-nav-label { display: none; }
  .admin-workspace .ss-sidebar nav a,
  .admin-workspace .ss-sidebar-bottom a,
  .admin-workspace .ss-sidebar-bottom button { justify-content: center; padding-inline: 0; }
  .admin-workspace .ss-nav-icon { flex-basis: 22px; width: 22px; font-size: 15px; }
  .admin-workspace .admin-filter-form { grid-template-columns: 1fr 1fr; }
  .admin-workspace .admin-filter-form button,
  .admin-workspace .admin-filter-form a { width: 100%; }
}
@media (max-width: 700px) {
  .category-description-card { padding: 18px; }
  .category-empty-state { padding: 34px 20px; }
  .admin-workspace .ss-sidebar { width: 62px; padding-inline: 7px; }
  .admin-workspace .ss-shell { margin-left: 62px; }
  .admin-workspace .ss-brand > span,
  .admin-workspace .ss-brand-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .admin-workspace .ss-topbar { height: 56px; padding-inline: 16px; }
  .admin-workspace .ss-topbar strong { display: none; }
  .admin-workspace .ss-shell > main { min-height: calc(100vh - 56px); }
  .admin-workspace .admin-head { padding: 24px 16px 0; }
  .admin-workspace .admin-head .section-head { align-items: flex-start; flex-direction: column; }
  .admin-workspace .admin-buttons { justify-content: flex-start; }
  .admin-workspace .admin-filter-form { grid-template-columns: 1fr; }
  .admin-workspace .admin-list-tools { align-items: stretch; flex-direction: column; }
  .admin-workspace .admin-table-shell { width: calc(100% - 32px); }
  .admin-workspace .ss-shell main > .section.shell { padding: 20px 16px 45px; }
  .admin-workspace .admin-head h1,
  .admin-workspace .admin-head .section-head h1,
  .admin-workspace .moderation-admin-head h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
