/* Shared square-corner theme. Load after page styles so every admin surface agrees. */
:is(.admin-app, .login-page) {
  --radius: 0px;
  --shadow: none;
  --shadow-soft: none;
  --line: #e0e6ee;
  --line-strong: #cbd5e1;
}

/* Older modules specify their own radii; the theme owns this property across them. */
:is(.admin-app, .login-page) :where(*) {
  border-radius: 0 !important;
}

.admin-app .nav-item.active::before,
.admin-app .module-tab.active::after {
  border-radius: 0;
}

.admin-app :is(.panel, .toolbar, .detail, .stat-card, .summary-strip, .compact-stats,
  .module-tabs, .pagination-bar, .settings-index, .settings-pane,
  .telegram-accounts, .telegram-group-rules, .text-toolbar) {
  box-shadow: none;
}

.admin-app .module-tabs {
  gap: 0;
  padding: 0;
  margin-bottom: 20px;
}
.admin-app .module-tab {
  min-height: 48px;
  padding: 12px 20px;
  border-right: 1px solid var(--line);
}
.admin-app .module-tab:last-child { border-right: 0; }
.admin-app .module-tab.active { background: var(--accent-soft); }
.admin-app .module-tab.active::after { left: 0; right: 0; }

.admin-app .panel-head { min-height: 58px; padding: 16px 20px; }
.admin-app .toolbar { padding: 16px 20px; }
.admin-app .clean-table td { padding-block: 15px; }
.admin-app th { background: #f4f7fa; }
.admin-app .panel > .pagination-bar {
  margin: 0;
  padding: 12px 18px;
  border-width: 1px 0 0;
}
.admin-app .flash { padding: 12px 16px; border-left-width: 3px; }
.admin-app :is(button, .button):hover { box-shadow: none; }

@media (max-width: 700px) {
  .admin-app .module-tab { min-height: 44px; padding: 10px 14px; }
  .admin-app .panel-head { padding: 14px 16px; }
}
