:root,
.theme-blue {
  --pc-primary: #1a3e72;
  --pc-primary-dark: #132f57;
  --pc-primary-mid: #245091;
  --pc-primary-light: #e8eef6;
  --pc-success: #1f7a4d;
  --pc-success-light: #e6f6ed;
  --pc-success-border: #9fd4b5;
  --pc-danger: #b42318;
  --pc-danger-light: #fef3f2;
  --pc-danger-border: #fecdca;
  --pc-body-bg: #f4f7f9;
  --pc-surface: #ffffff;
  --pc-text: #1f2933;
  --pc-text-muted: #5f6c7b;
  --pc-border: #d9e2ec;
  --pc-radius: 6px;
  --pc-shadow: 0 1px 2px rgba(26, 62, 114, .06), 0 4px 14px rgba(26, 62, 114, .04);
  --pc-sidebar-width: 248px;
  --pc-topbar-height: 56px;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--pc-text);
  background: var(--pc-body-bg);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.theme-classic {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.app-anonymous {
  background: #f5f6f8;
}

a {
  text-decoration: none;
}

/* ——— Shell ——— */

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--pc-body-bg);
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 1040;
  flex: 0 0 var(--pc-sidebar-width);
  width: var(--pc-sidebar-width);
  height: 100vh;
  overflow-y: auto;
  background: var(--pc-primary);
  color: #fff;
  box-shadow: 2px 0 12px rgba(15, 35, 65, .18);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff !important;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-brand-text strong {
  font-size: .95rem;
  font-weight: 700;
}

.sidebar-brand-text small {
  margin-top: .15rem;
  font-size: .72rem;
  opacity: .75;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: var(--pc-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.auth-logo .brand-mark {
  background: var(--pc-primary);
  color: #fff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem .65rem 1.5rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: .65rem;
}

.sidebar-section-label {
  padding: .45rem .75rem .25rem;
  color: rgba(255, 255, 255, .55);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .58rem .75rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
  font-weight: 550;
  transition: background .15s ease, color .15s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.sidebar-link.active {
  background: var(--pc-primary-mid);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #fff;
}

.sidebar-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex-shrink: 0;
}

.sidebar-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-frame {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--pc-topbar-height);
  padding: 0 1.25rem;
  background: var(--pc-surface);
  border-bottom: 1px solid var(--pc-border);
  box-shadow: 0 1px 0 rgba(26, 62, 114, .04);
}

.app-topbar-left,
.app-topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.app-topbar-title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--pc-text);
}

.sidebar-toggle {
  display: inline-grid;
  gap: 4px;
  width: 38px;
  height: 38px;
  place-content: center;
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--pc-primary);
  border-radius: 1px;
}

.btn-topbar-logout {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pc-primary);
  min-height: 0;
}

.btn-topbar-logout:hover {
  background: var(--pc-primary-light);
  border-color: #b7c8df;
  color: var(--pc-primary-dark);
}

.btn-topbar-logout svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-user-name {
  font-weight: 600;
  color: var(--pc-text);
  font-size: .9rem;
}

.navbar-user-role {
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--pc-primary-light);
  color: var(--pc-primary);
  font-size: .72rem;
  font-weight: 700;
}

.sidebar-backdrop {
  display: none;
}

.app-main {
  flex: 1 1 auto;
  width: min(100% - 2rem, 1280px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-shell.sidebar-collapsed .app-sidebar {
  flex-basis: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
}

.panel > .section-bar:first-child {
  margin: -1.25rem -1.25rem 1rem;
  border-radius: var(--pc-radius) var(--pc-radius) 0 0;
}

/* ——— Page banners (NetSol-style) ——— */

.page-banner,
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.15rem;
  padding: 1.15rem 1.35rem;
  background: var(--pc-primary);
  color: #fff;
  border: 1px solid var(--pc-primary-dark);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
}

.page-banner-body,
.page-heading > div:first-child {
  min-width: 0;
}

.page-banner-eyebrow,
.page-heading .eyebrow {
  margin-bottom: .3rem;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-banner-title,
.page-heading h1,
.page-toolbar h1 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.page-banner-subtitle,
.page-heading p {
  margin: .35rem 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
  line-height: 1.45;
}

.page-banner-toolbar,
.page-heading > .d-flex,
.page-heading > a.btn,
.page-heading > .btn {
  flex-shrink: 0;
}

.page-heading .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--pc-primary);
}

.page-heading .btn-primary:hover {
  background: var(--pc-primary-light);
  border-color: var(--pc-primary-light);
  color: var(--pc-primary-dark);
}

.page-heading .btn-outline-secondary,
.page-heading .btn-outline-primary {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.page-heading .btn-outline-secondary:hover,
.page-heading .btn-outline-primary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  color: #fff;
}

.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .65rem;
  margin: -.55rem 0 1.15rem;
}

/* ——— Panels / forms / tables ——— */

.panel {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 1.25rem;
}

.panel-head {
  margin: -1.25rem -1.25rem 1rem;
  padding: .7rem 1.15rem;
  background: var(--pc-primary);
  border-bottom: 1px solid var(--pc-primary-dark);
  border-radius: var(--pc-radius) var(--pc-radius) 0 0;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.panel-head .text-muted,
.panel-head p {
  color: rgba(255, 255, 255, .78) !important;
}

.section-bar {
  margin: 0 0 0;
  padding: .65rem 1rem;
  background: var(--pc-primary);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  border: 1px solid var(--pc-primary-dark);
  border-bottom: 0;
  border-radius: var(--pc-radius) var(--pc-radius) 0 0;
}

.section-bar + .panel,
.section-bar + .table-responsive,
.section-bar + .section-body {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.search-row {
  display: flex;
  align-items: end;
  gap: .75rem;
  flex-wrap: wrap;
}

.form-label {
  font-weight: 600;
  color: var(--pc-text);
  font-size: .84rem;
}

.form-control,
.form-select {
  min-height: 38px;
  border-color: var(--pc-border);
  border-radius: 4px;
  font-size: .9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pc-primary-mid);
  box-shadow: 0 0 0 .2rem rgba(26, 62, 114, .15);
}

.btn {
  min-height: 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .88rem;
}

.btn-primary {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--pc-primary-dark);
  border-color: var(--pc-primary-dark);
}

.btn-dark {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}

.btn-dark:hover {
  background: var(--pc-primary-dark);
  border-color: var(--pc-primary-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--pc-primary);
  border-color: #9db4d4;
}

.btn-outline-primary:hover {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--pc-text-muted);
  border-color: var(--pc-border);
}

.btn-outline-danger {
  color: var(--pc-danger);
  border-color: var(--pc-danger-border);
}

.btn-outline-danger:hover {
  background: var(--pc-danger);
  border-color: var(--pc-danger);
  color: #fff;
}

.table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-responsive > .table {
  margin-bottom: 0;
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.panel {
  max-width: 100%;
  min-width: 0;
}

.app-container,
.app-frame {
  max-width: 100%;
  min-width: 0;
}

.table > :not(caption) > * > * {
  padding: .8rem .9rem;
  border-color: var(--pc-border);
  vertical-align: middle;
}

.table thead th {
  background: #eef3f8;
  color: var(--pc-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--pc-border);
}

.table tbody tr:hover {
  background: #f7fafc;
}

.table strong {
  font-weight: 600;
}

.license-key {
  display: inline-block;
  padding: .28rem .5rem;
  border-radius: 4px;
  background: var(--pc-primary-light);
  border: 1px solid #c5d4e8;
  color: var(--pc-primary);
  font-size: .82rem;
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
}

.status-active {
  color: var(--pc-success);
  background: var(--pc-success-light);
}

.status-inactive {
  color: var(--pc-danger);
  background: var(--pc-danger-light);
}

.status-pending {
  color: #92400e;
  background: #fff7ed;
}

.empty-state {
  padding: 2.5rem !important;
  text-align: center;
  color: var(--pc-text-muted) !important;
}

/* ——— Alerts ——— */

.alert {
  border-radius: var(--pc-radius);
  border-width: 1px;
  border-style: solid;
  padding: .9rem 1rem;
}

.alert-danger {
  background: var(--pc-danger-light);
  border-color: var(--pc-danger-border);
  color: #7a271a;
}

.alert-success {
  background: var(--pc-success-light);
  border-color: var(--pc-success-border);
  color: #14532d;
}

.alert-warning {
  background: #fff8eb;
  border-color: #f5d59a;
  color: #7a4b08;
}

.text-muted {
  color: var(--pc-text-muted) !important;
}

.form-panel {
  max-width: 980px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pc-border);
}

.form-section-title {
  margin: 1rem 0 .2rem;
  padding: .55rem .85rem;
  background: var(--pc-primary);
  color: #fff;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-top: 0;
}

.form-section-title:first-child {
  margin-top: 0;
}

.details-panel {
  max-width: 980px;
}

.details-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: -1.25rem -1.25rem 1rem;
  padding: .85rem 1.15rem;
  background: var(--pc-primary);
  color: #fff;
  border-radius: var(--pc-radius) var(--pc-radius) 0 0;
}

.details-header h2,
.details-header .h2 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.details-header .text-muted,
.details-header .text-muted.small {
  color: rgba(255, 255, 255, .72) !important;
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.details-list dt {
  color: var(--pc-text-muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.details-list dd {
  margin: .2rem 0 0;
}

.details-wide {
  grid-column: 1 / -1;
}

pre {
  padding: .85rem;
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  background: #f8fafc;
}

/* ——— Dashboard (preserve structure) ——— */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  padding: .95rem 1.1rem;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
}

.stat-label {
  color: var(--pc-text-muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stat-card strong {
  display: block;
  margin: .25rem 0;
  font-size: 1.35rem;
}

.stat-caption {
  color: var(--pc-text-muted);
  font-size: .8rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.dashboard-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.dashboard-section-title {
  margin: .35rem 0 1rem;
  color: var(--pc-text-muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 0;
  padding: 1.25rem;
  border-radius: var(--pc-radius);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.dashboard-card:hover {
  border-color: #c5d4e8;
  box-shadow: 0 4px 16px rgba(26, 62, 114, .1);
  transform: translateY(-1px);
}

.dashboard-card h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.dashboard-card p {
  margin: 0;
  color: var(--pc-text-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.dashboard-card > .btn,
.dashboard-card > a.btn,
.dashboard-card > button.btn {
  align-self: flex-start;
  margin-top: .15rem;
  border-radius: 4px;
  padding-inline: 1.05rem;
}

.dashboard-card-muted {
  background: #fbfcfe;
}

.dashboard-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dashboard-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-icon-blue {
  background: var(--pc-primary-light);
  color: var(--pc-primary);
}

.dashboard-icon-indigo {
  background: #eef1f8;
  color: #3d4f7a;
}

.dashboard-icon-slate {
  background: #eef2f6;
  color: #64748b;
}

.dashboard-icon-teal {
  background: #e6f8fa;
  color: #1aa7b5;
}

.dashboard-icon-green {
  background: var(--pc-success-light);
  color: var(--pc-success);
}

.dashboard-icon-orange {
  background: #fff4e8;
  color: #c56a12;
}

/* ——— Auth / sign-in ——— */

.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: #f5f6f8;
}

.signin-page {
  width: min(100%, 420px);
}

.signin-brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.signin-logo {
  display: block;
  height: 88px;
  width: auto;
  margin: 0 auto .75rem;
  object-fit: contain;
  background: transparent;
}

.signin-brand h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #12315c;
}

.signin-product {
  margin: .35rem 0 0;
  font-size: .95rem;
  font-weight: 600;
  color: #3b5a86;
}

.signin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .08);
  padding: 1.5rem 1.5rem 1.15rem;
}

.signin-alert {
  margin-bottom: 1rem;
  padding: .75rem .85rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .88rem;
  list-style: none;
}

.signin-page label {
  margin-bottom: 0;
}

.signin-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.signin-alert:empty,
.signin-alert.validation-summary-valid {
  display: none;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.signin-field {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  padding: .7rem .85rem;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  cursor: text;
}

.signin-field:focus-within {
  border-color: #1a3e72;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 62, 114, .12);
}

.signin-field-icon {
  flex: 0 0 22px;
  color: #9ca3af;
}

.signin-field-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.signin-field-stack {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.signin-field-label {
  font-size: .72rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.1;
}

.signin-input {
  width: 100%;
  border: 0;
  padding: .12rem 0 0;
  background: #fff;
  color: #12315c;
  font-size: .98rem;
  font-weight: 600;
  outline: none;
  box-shadow: none;
}

.signin-input:-webkit-autofill,
.signin-input:-webkit-autofill:hover,
.signin-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #12315c;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: #12315c;
  transition: background-color 9999s ease-out;
}

.signin-input::placeholder {
  color: #c4c9d2;
  font-weight: 500;
}

.signin-toggle-password {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: .15rem;
  line-height: 0;
  cursor: pointer;
}

.signin-toggle-password svg {
  width: 20px;
  height: 20px;
}

.signin-toggle-password:hover {
  color: #4b5563;
}

.signin-field-error {
  display: block;
  min-height: 0;
  margin: -.35rem 0 0 .2rem;
  color: #b91c1c;
  font-size: .78rem;
}

.signin-field-error:empty {
  display: none;
}

.signin-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .15rem 0 .35rem;
}

.signin-remember {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: #6b7280;
  font-size: .88rem;
  cursor: pointer;
}

.signin-remember input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #1a3e72;
}

.signin-help {
  color: #6b7280;
  font-size: .78rem;
  text-align: right;
}

.signin-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: .8rem 1rem;
  background: #1a3e72;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.signin-submit:hover {
  background: #132f57;
}

.signin-copy {
  margin: 1.1rem 0 0;
  text-align: center;
  color: #9ca3af;
  font-size: .8rem;
}

.auth-center {
  width: min(100%, 400px);
}

.auth-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.25rem;
}

.auth-logo-title {
  font-weight: 700;
  color: var(--pc-primary);
}

.auth-logo-sub {
  font-size: .78rem;
  color: var(--pc-text-muted);
}

.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 650;
  margin-bottom: .35rem;
  color: var(--pc-primary);
}

.d-inline-flex.gap-2 > form {
  display: inline-flex;
}

.d-inline-flex.gap-2 .btn {
  white-space: nowrap;
}

.badge {
  border-radius: 4px;
  font-weight: 600;
}

.bg-success {
  background: var(--pc-success-light) !important;
  color: var(--pc-success) !important;
}

.bg-secondary {
  background: #eef2f6 !important;
  color: var(--pc-text-muted) !important;
}

.bg-info {
  background: var(--pc-primary-light) !important;
  color: var(--pc-primary) !important;
}

/* ——— Responsive ——— */

@media (max-width: 991px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .2s ease;
    opacity: 1;
    pointer-events: auto;
    flex-basis: var(--pc-sidebar-width);
    width: var(--pc-sidebar-width);
    overflow-y: auto;
  }

  .app-shell.sidebar-collapsed .app-sidebar {
    flex-basis: var(--pc-sidebar-width);
    width: var(--pc-sidebar-width);
    opacity: 1;
    pointer-events: none;
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  .app-shell.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 35, 65, .45);
  }

  .app-shell.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-toolbar,
  .page-heading,
  .page-banner,
  .search-row,
  .details-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-grid,
  .dashboard-grid-2,
  .stats-grid,
  .details-list {
    grid-template-columns: 1fr;
  }

  .app-main {
    width: calc(100% - 1.25rem);
    padding-inline: .65rem;
  }

  .app-topbar-title {
    font-size: .92rem;
  }

  .navbar-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
