:root {
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --bg-page: #eef1f4;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f6f9fc;
  --bg-sidebar: #f8fafc;
  --text-main: #162336;
  --text-muted: #607489;
  --border-color: #d7e0e8;
  --primary: #2f6fed;
  --primary-soft: #e8efff;
  --success: #1f9a67;
  --warning: #c17a1e;
  --danger: #c64739;
  --info: #2d8fc1;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 10px 24px rgba(16, 34, 56, 0.08);
  --shadow-lg: 0 18px 34px rgba(16, 34, 56, 0.12);
  --sidebar-width: 244px;
  --sidebar-collapsed-width: 78px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.theme-admin {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background: radial-gradient(circle at 7% 8%, #f8fbff 0%, #eef1f4 55%, #ebeff3 100%);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.35);
  outline-offset: 1px;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #265ed0;
  --bs-btn-hover-border-color: #265ed0;
  --bs-btn-active-bg: #1f52bc;
  --bs-btn-active-border-color: #1f52bc;
  --bs-btn-focus-shadow-rgb: 47, 111, 237;
}

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

.surface-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c4cfd8 transparent;
}

.custom-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background-color: #c4cfd8;
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Auth layout */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-shell {
  width: min(1100px, 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.auth-promo {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, #f4f7fb, #eef3f9 50%, #e9f0fb);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-promo::before,
.auth-promo::after {
  content: "";
  position: absolute;
  border-radius: 100%;
  z-index: -1;
}

.auth-promo::before {
  width: 280px;
  height: 280px;
  background: rgba(47, 111, 237, 0.12);
  top: -80px;
  left: -110px;
}

.auth-promo::after {
  width: 320px;
  height: 320px;
  background: rgba(31, 154, 103, 0.1);
  right: -120px;
  bottom: -120px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #2f6fed, #3f84ff);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 650;
}

.auth-promo h1 {
  font-size: clamp(1.8rem, 1.25rem + 1.8vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.auth-promo p {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 45ch;
}

.auth-kpis {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.auth-kpis .kpi {
  flex: 1 1 140px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem;
}

.auth-kpis strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.auth-kpis span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.auth-form-wrap {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-wrap h2 {
  margin-bottom: 0.4rem;
}

.auth-form-wrap .lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.auth-form .form-label {
  font-weight: 600;
  font-size: 0.87rem;
  margin-bottom: 0.35rem;
}

.auth-form .form-control,
.auth-form .form-select {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-height: 46px;
  padding-inline: 0.9rem;
  font-size: 0.95rem;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.15);
}

.auth-form .form-text {
  color: var(--text-muted);
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

/* App shell */
.app-shell {
  position: relative;
  min-height: 100vh;
}

.app-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1050;
  transition: left var(--transition);
}

.app-shell.sidebar-collapsed .app-header {
  left: var(--sidebar-collapsed-width);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
}

.header-left,
.header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.toggle-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.header-brand .brand-name {
  font-size: 1.02rem;
  font-family: var(--font-heading);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  color: var(--text-muted);
  display: inline-grid;
  place-items: center;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  padding: 0.2rem 0.5rem 0.2rem 0.3rem;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(145deg, #2f6fed, #5a90f5);
}

.dropdown-menu-soft {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.45rem;
  box-shadow: var(--shadow-sm);
}

.dropdown-menu-soft .dropdown-item {
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 0.52rem 0.68rem;
}

.dropdown-menu-soft .dropdown-item i {
  margin-right: 0.5rem;
}

.dropdown-menu-soft .dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--border-color);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 1100;
  transition: width var(--transition), transform var(--transition);
}

.sidebar-head {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.7rem 0.9rem;
}

.sidebar-label {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  margin: 0.2rem 0 0.5rem;
}

.sidebar-list,
.submenu,
.submenu-inner {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  margin-bottom: 0.2rem;
}

.menu-link,
.submenu-link {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  color: var(--text-main);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.menu-link i:first-child,
.submenu-link i:first-child {
  width: 18px;
  text-align: center;
  color: #567089;
}

.menu-text {
  flex: 1;
  text-align: left;
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
}

.menu-chevron,
.submenu-chevron {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-chevron,
.submenu-toggle[aria-expanded="true"] .submenu-chevron {
  transform: rotate(180deg);
}

.menu-link:hover,
.submenu-link:hover,
.menu-link.active,
.submenu-link.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(47, 111, 237, 0.12);
}

.menu-link:hover i:first-child,
.submenu-link:hover i:first-child,
.menu-link.active i:first-child,
.submenu-link.active i:first-child {
  color: var(--primary);
}

.submenu {
  padding: 0.2rem 0 0.35rem 1.95rem;
}

.submenu .submenu-link {
  font-size: 0.89rem;
  padding: 0.5rem 0.58rem;
  border-radius: 10px;
}

.submenu-inner {
  padding-left: 1.1rem;
  margin-top: 0.25rem;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.55rem 0.7rem;
  display: flex;
  justify-content: center;
}

.sidebar-action {
  min-width: 112px;
  height: 32px;
  border-radius: 9px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0 0.8rem;
}

.sidebar-action .action-text {
  line-height: 1;
}

.sidebar-action:hover {
  color: var(--primary);
  border-color: #c7d5e3;
  background: #fff;
}

.app-main {
  margin-left: var(--sidebar-width);
  padding-top: calc(var(--header-height) + 1rem);
  transition: margin-left var(--transition);
}

.app-shell.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}

.app-shell.sidebar-collapsed .menu-text,
.app-shell.sidebar-collapsed .sidebar-label,
.app-shell.sidebar-collapsed .menu-chevron,
.app-shell.sidebar-collapsed .submenu {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-head .brand-title {
  display: none;
}

.app-shell.sidebar-collapsed .menu-link {
  justify-content: center;
}

.app-shell.sidebar-collapsed .app-sidebar,
.app-shell.sidebar-collapsed .sidebar-nav {
  overflow: visible;
}

.app-shell.sidebar-collapsed .menu-item {
  position: relative;
}

.app-shell.sidebar-collapsed .menu-item > .collapse.submenu {
  display: none !important;
  position: absolute;
  top: 0;
  left: calc(100% - 6px);
  min-width: 220px;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1300;
}

.app-shell.sidebar-collapsed .menu-item:hover > .collapse.submenu,
.app-shell.sidebar-collapsed .menu-item:focus-within > .collapse.submenu {
  display: block !important;
}

.app-shell.sidebar-collapsed .submenu li {
  position: relative;
}

.app-shell.sidebar-collapsed .submenu .submenu-inner {
  display: none !important;
  position: absolute;
  top: 0;
  left: calc(100% - 6px);
  min-width: 210px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1310;
}

.app-shell.sidebar-collapsed .submenu li:hover > .submenu-inner,
.app-shell.sidebar-collapsed .submenu li:focus-within > .submenu-inner {
  display: block !important;
}

.app-shell.sidebar-collapsed .sidebar-action {
  min-width: 34px;
  width: 34px;
  padding: 0;
}

.app-shell.sidebar-collapsed .sidebar-action .action-text {
  display: none;
}

.page-wrap {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem 0.55rem;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-title-row h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
}

.page-title-row p {
  margin: 0.38rem 0 0;
  color: var(--text-muted);
}

.stat-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.stat-value {
  margin: 0.18rem 0 0.42rem;
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

.widget-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.widget-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #ebf0f4;
}

.widget-card .card-title {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-heading);
}

.widget-card .card-subtitle {
  margin: 0.18rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.widget-card .card-body-pad {
  padding: 1rem;
}

.chart-holder {
  min-height: 290px;
}

.quick-list {
  display: grid;
  gap: 0.7rem;
}

.quick-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface-soft);
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-item strong {
  font-size: 0.9rem;
}

.quick-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.table-card .card-body-pad {
  padding: 1rem;
}

.page-content {
  flex: 1;
}

.app-footer {
  margin-top: 0.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid #e8edf2;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: right;
}

.filters-wrap {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-surface-soft);
  padding: 0.78rem;
}

.form-section {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-surface);
  padding: 1rem;
}

.form-section-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.form-help {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.editor-shell .ql-toolbar.ql-snow,
.editor-shell .ql-container.ql-snow {
  border-color: var(--border-color);
}

.editor-shell .ql-toolbar.ql-snow {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.editor-shell .ql-container.ql-snow {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  min-height: 180px;
  background: #fff;
}

.demo-accent-bar {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6fed, #1f9a67, #2d8fc1);
}

.demo-widget {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
}

.demo-widget h3 {
  margin: 0;
  font-size: 1.08rem;
}

.demo-widget p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.timeline-vertical {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #d8e2eb;
}

.timeline-vertical li {
  position: relative;
  padding-left: 2.15rem;
  margin-bottom: 0.95rem;
}

.timeline-vertical li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}

.timeline-vertical .timeline-card {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
}

.timeline-vertical .timeline-card small {
  color: var(--text-muted);
}

.demo-navbar-preview {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.demo-navbar-preview .navbar {
  background: #f8fbff;
  border-bottom: 1px solid var(--border-color);
}

.demo-widget-stack {
  display: grid;
  gap: 0.7rem;
}

.demo-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: #fff;
  font-size: 0.78rem;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.kanban-col {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem;
}

.kanban-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-surface-soft);
  padding: 0.58rem 0.62rem;
  margin-top: 0.52rem;
}

.kanban-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.81rem;
}

.tiny-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem 0.58rem;
  background: #fff;
}

.tiny-metric strong {
  font-size: 0.9rem;
}

.tiny-metric span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-tile {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  padding: 0.82rem 0.88rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.metric-tile .metric-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-tile .metric-value {
  margin: 0.34rem 0 0.24rem;
  font-size: 1.34rem;
}

.metric-trend {
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-trend.positive {
  color: var(--success);
}

.metric-trend.negative {
  color: var(--danger);
}

.info-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.widget-stat-list {
  display: grid;
  gap: 0.52rem;
}

.widget-stat-row {
  border: 1px solid var(--border-color);
  border-radius: 11px;
  background: var(--bg-surface-soft);
  padding: 0.56rem 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.widget-stat-row strong {
  font-size: 0.9rem;
}

.widget-stat-row span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.progress-soft {
  height: 8px;
  border-radius: 999px;
  background: #e8edf2;
}

.progress-soft .progress-bar {
  border-radius: 999px;
}

.modal-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.72rem;
}

.navbar-preview {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.navbar-preview .navbar {
  border-bottom: 1px solid #ebf0f4;
}

.navbar-preview .preview-body {
  padding: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-callout {
  border: 1px dashed #c9d6e4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.78rem 0.88rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.widget-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.widget-board .board-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  padding: 0.72rem;
}

.widget-board .board-item h3 {
  font-size: 0.95rem;
  margin: 0;
}

.widget-board .board-item p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.81rem;
}

.form-demo-tabs .nav-link {
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.form-demo-tabs .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.approval-matrix td,
.approval-matrix th {
  font-size: 0.86rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background: #28a36f;
}

.status-dot.warning {
  background: #d3912b;
}

.status-dot.offline {
  background: #cf4a3c;
}

.tabbed-navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 600;
}

.tabbed-navbar-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #d8e4fb #d8e4fb transparent;
}

.tabbed-navbar-pane {
  border: 1px solid var(--border-color);
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 0.88rem;
  background: #fff;
}

.input-group-soft .input-group-text {
  border: 1px solid var(--border-color);
  background: #fff;
}

.input-group-soft .form-control {
  border: 1px solid var(--border-color);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface-soft);
  padding: 0.66rem 0.75rem;
}

.timeline-item strong {
  font-size: 0.9rem;
}

.timeline-item p {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.table-card table.dataTable {
  width: 100% !important;
}

.table-card .table thead th {
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-card .table td {
  vertical-align: middle;
  padding: 0.78rem 0.55rem;
  font-size: 0.9rem;
}

.badge-soft {
  font-size: 0.73rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.badge-soft.success {
  color: #0f7c4f;
  background: #daf6ea;
}

.badge-soft.warning {
  color: #9a6319;
  background: #fcefd8;
}

.badge-soft.info {
  color: #1f6e97;
  background: #ddf2fb;
}

.badge-soft.danger {
  color: #a12d22;
  background: #f9e2df;
}

.dt-container .dt-input {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  min-height: 34px;
  padding: 0.22rem 0.6rem;
}

.dt-container .dt-length select {
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.dt-container .dt-paging .dt-paging-button {
  border: 1px solid var(--border-color) !important;
  border-radius: 9px !important;
  background: #fff !important;
  margin-left: 0.2rem;
}

.dt-container .dt-paging .dt-paging-button.current {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  border-color: #cad8fb !important;
}

.dt-container .dt-buttons .dt-button {
  border: 1px solid var(--border-color) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--text-main) !important;
  padding: 0.35rem 0.65rem !important;
  margin-right: 0.35rem !important;
  font-size: 0.83rem !important;
}

.dt-container .dt-buttons .dt-button:hover {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.select2-container--bootstrap-5 .select2-selection {
  min-height: 46px;
  border-color: var(--border-color);
  border-radius: 12px;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  background: var(--primary-soft);
  border: 1px solid #cad8fb;
  color: var(--primary);
}

.flatpickr-input.form-control {
  background: #fff;
}

.dropdown-menu-notify {
  width: min(320px, 92vw);
}

.notify-item {
  white-space: normal;
  border-radius: 8px;
  padding: 0.52rem 0.62rem;
}

.notify-item small {
  color: var(--text-muted);
  display: block;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-promo {
    display: none;
  }

  .app-header {
    left: 0;
  }

  .app-main {
    margin-left: 0 !important;
    padding-top: calc(var(--header-height) + 0.8rem);
  }

  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 25, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1090;
  }

  .app-shell.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 575.98px) {
  .header-brand .brand-name {
    max-width: 130px;
  }

  .profile-trigger span {
    display: none;
  }

  .page-wrap {
    padding-inline: 0.8rem;
  }

  .app-footer {
    text-align: center;
  }

  .kanban-grid {
    grid-template-columns: 1fr;
  }
}
