/*
 * BKK theme: the look of the Bangkok public-policy site (https://public-policy.techsure.xyz, BKK design system tokens)
 * over the Material Pro admin template of the legacy pages. Loaded last by AppAsset; the header is layouts/_topbar.php.
 */
@font-face { font-family: 'Sao Chingcha'; font-weight: 400; font-display: swap; src: local('Sao Chingcha'), local('SaoChingcha-Regular'), url('fonts/sao-chingcha.otf') format('opentype'); }
@font-face { font-family: 'Sao Chingcha'; font-weight: 700; font-display: swap; src: local('Sao Chingcha Bold'), local('SaoChingcha-Bold'), url('fonts/sao-chingcha-bold.otf') format('opentype'); }

:root {
  --p0: #F4F9F7; --p50: #E6F1ED; --p100: #C2DED4; --p200: #91C3B2; --p500: #00744B; --p700: #005235; --p900: #003422; /* primary */
  --dg800: #123325; --dg900: #0E281D;                                                                                 /* dark green */
  --n0: #FFFFFF; --n100: #EEF1F0; --n200: #D0D8D4; --n300: #AAB0AD; --n500: #626664; --n700: #414442; --n800: #232424; --n900: #121313;
  --blue: #1D6FD8; --amber: #F2A93B; --red: #D9363E;
  --font: Anuphan, 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Sao Chingcha', Anuphan, 'IBM Plex Sans Thai', sans-serif;
  --r: 8px; --r-lg: 12px; --r-xl: 20px;
  --shadow: 0 6px 16px 0 rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05);
  --header-h: 64px;
}

/* ---------- base ---------- */
body {
  font-family: var(--font); font-size: 15px; color: var(--n900);
  background: var(--n100) linear-gradient(180deg, var(--p0) 0, var(--n100) 720px) no-repeat;
  -webkit-font-smoothing: antialiased;
}
/* static/css/style.css sets "body * { font-family: Arial }"; icon fonts use class selectors, which still win */
body * { font-family: var(--font); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font); color: var(--n900); }
a { color: var(--p500); }
a:hover, a:focus { color: var(--p700); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.text-themecolor, .text-darkgreen { color: var(--p700) !important; }
.text-muted { color: var(--n500) !important; }
.preloader { background: var(--p0); }
.preloader .circular .path { stroke: var(--p500); }
::selection { background: var(--p100); }

/* ---------- C01 header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--n100); transition: box-shadow .3s ease;
}
.app-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.app-header .header-row { height: var(--header-h); display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.app-header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--p500); flex: none; }
/* bangkok-logo.svg: green wordmark, 119 x 42 */
.app-header .brand img { width: auto; height: 38px; }
.app-header .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.app-header .brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--p500); white-space: nowrap; }
.app-header .brand-sub { font-size: 11px; font-weight: 500; color: var(--n500); white-space: nowrap; letter-spacing: .02em; }
.app-header .pill-nav { display: flex; gap: 4px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.app-header .pill-nav::-webkit-scrollbar { display: none; }
.app-header .pill-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  color: var(--n700); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s;
}
.app-header .pill-nav a:hover { background: var(--n100); color: var(--n900); }
.app-header .pill-nav a.on { background: var(--p50); color: var(--p700); }
.app-header .pill-nav i { font-size: 18px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.app-header .pill-nav a:hover i { transform: translateY(-2px) rotate(-8deg); }
.app-header .header-tools { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.app-header .icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--n700);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: background .2s;
}
.app-header .icon-btn:hover, .app-header .show > .icon-btn { background: var(--n100); color: var(--n900); }
.app-header .icon-btn:focus { outline: 2px solid var(--p200); outline-offset: 1px; }
.app-header .user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--n100); background: var(--n0); color: var(--n900); cursor: pointer; }
.app-header .user-btn:hover, .app-header .show > .user-btn { border-color: var(--n200); }
.app-header .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--p500); color: var(--n0); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.app-header .user-name { font-size: 14px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header .dropdown-menu { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px; margin-top: 8px; }
.app-header .dropdown-menu .dropdown-item { border-radius: var(--r); padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: var(--n700); }
.app-header .dropdown-menu .dropdown-item:hover { background: var(--n100); color: var(--n900); }
.app-header .user-card { padding: 8px 12px 12px; border-bottom: 1px solid var(--n100); margin-bottom: 6px; min-width: 240px; }
.app-header .user-card b { display: block; font-size: 15px; }
.app-header .user-card small { color: var(--n500); }
/* process pills with a drop-down of their sub-menus (layouts/_topbar.php); the pill bar must not clip it */
.app-header .pill-nav.has-drops { overflow: visible; }
.app-header .pill-drop .caret { font-size: 12px; margin-left: -2px; color: var(--n500); transition: transform .2s; }
.app-header .pill-drop.show > a { background: var(--n100); color: var(--n900); }
.app-header .pill-drop.show > a.on { background: var(--p50); color: var(--p700); }
.app-header .pill-drop.show .caret { transform: rotate(180deg); }
/* the panel is centred under the header (the toggles use data-display="static", so Popper sets no inline position)
   and never taller or wider than the screen; the header's backdrop-filter makes it the containing block of "fixed" */
.app-header .sub-menu {
  position: fixed !important; top: calc(var(--header-h) - 2px) !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 12px; margin-top: 0;
  scrollbar-width: thin; scrollbar-color: var(--n300) transparent;
}
.app-header .sub-menu.show { animation: subIn .16s ease-out; }
@keyframes subIn { from { opacity: 0; margin-top: -6px; } to { opacity: 1; margin-top: 0; } }
.app-header .sub-menu > .sub-head { position: sticky; top: 0; z-index: 2; margin: 0 -12px 8px; width: calc(100% + 24px); border-radius: 0; padding: 12px 22px; box-shadow: 0 1px 0 var(--n100); background: var(--n0); }
.app-header .sub-head { display: flex !important; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: var(--r-lg); background: var(--p0); color: var(--n900); }
.app-header .sub-head:hover { background: var(--p50); color: var(--p700); }
.app-header .sub-head .app-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--p500); color: var(--n0); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.app-header .sub-head b { font-size: 15px; font-weight: 700; }
.app-header .sub-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--p500); white-space: nowrap; }
.app-header .sub-groups { columns: 3 240px; column-gap: 16px; column-rule: 1px solid var(--n100); }
.app-header .sub-group { break-inside: avoid; padding: 4px 0 10px; }
.app-header .sub-group h6 { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--p700); }
.app-header .sub-group h6 i { font-size: 16px; color: var(--p500); }
.app-header .sub-group ul { list-style: none; margin: 0; padding: 0; }
/* third level (e.g. แผนฯ 20 ปี) as compact chips, so long lists do not stretch the panel */
.app-header .sub-group ul ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px 27px; padding: 0; border: 0; }
.app-header .sub-group ul ul li a { padding: 2px 9px; font-size: 12.5px; border: 1px solid var(--n100); border-radius: 999px; background: var(--n0); }
.app-header .sub-group ul ul li a .dot { display: none; }
.app-header .sub-group li a { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--r); color: var(--n700); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.app-header .sub-group li a:hover { background: var(--p0); color: var(--p700); }
.app-header .sub-group li a.on { background: var(--p50); color: var(--p700); font-weight: 600; }
.app-header .sub-group li a .dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--n300); margin: 0 4px; }
.app-header .sub-group li a:hover .dot, .app-header .sub-group li a.on .dot { background: var(--p500); }
.app-header .sub-group li a > i.ph { flex: none; width: 13px; font-size: 14px; color: var(--p500); }
.app-header .sub-group .badge { margin-left: auto; }
@media (max-width: 1439px) { .app-header .pill-drop .caret, .app-header:not(.pub-header) .user-name { display: none; } }
/* notification menus (bell = Alert, mail = Announce; views/notification/*) */
.app-header .nt-drop .icon-btn { position: relative; }
.app-header .nt-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E32526; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--n0); }
.app-header .nt-badge[hidden] { display: none; }
.app-header .nt-menu { width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 8px; scrollbar-width: thin; }
.app-header .nt-loading, .app-header .nt-empty { display: flex; align-items: center; gap: 8px; padding: 28px 18px; color: var(--n500); font-size: 14px; justify-content: center; }
.app-header .nt-loading i { animation: ntSpin 1s linear infinite; font-size: 18px; }
@keyframes ntSpin { to { transform: rotate(360deg); } }
.app-header .nt-empty i { font-size: 22px; }
.app-header .nt-empty.ok { color: var(--p700); }
.app-header .nt-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--n0); border-bottom: 1px solid var(--n100); }
.app-header .nt-head b { display: block; font-size: 15px; color: var(--n900); }
.app-header .nt-head small { display: block; color: var(--n500); font-size: 12.5px; line-height: 1.35; }
.app-header .nt-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #FFF4E5; color: #B26B00; font-size: 19px; }
.app-header .nt-ico.mail { background: var(--p50); color: var(--p700); }
.app-header .nt-all { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--p500); }
.app-header .nt-list, .app-header .nt-projects, .app-header .nt-projects ul { list-style: none; margin: 0; padding: 0; }
.app-header .nt-list li a { display: flex; gap: 10px; padding: 10px 14px; color: var(--n700); border-bottom: 1px solid var(--n50, #f4f6f5); }
.app-header .nt-list li a:hover { background: var(--p0); text-decoration: none; }
.app-header .nt-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--n300); }
.app-header .nt-list li.is-new { background: #FFFBF2; }
.app-header .nt-list li.is-new .nt-dot { background: #E32526; }
.app-header .nt-body { min-width: 0; flex: 1; }
.app-header .nt-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--n900); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-header .nt-sub { display: flex; gap: 4px; align-items: baseline; font-size: 12.5px; color: var(--n500); margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-header .nt-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--n500); }
.app-header .nt-meta span, .app-header .nt-sub { align-items: center; }
.app-header .nt-meta i, .app-header .nt-sub i { margin-right: 3px; }
.app-header .nt-result { color: var(--p700); font-weight: 600; }
.app-header .nt-id { flex: none; font-size: 11px; color: var(--n300); }
.app-header .nt-filters { display: flex; gap: 8px; padding: 10px 14px; background: var(--p0); border-bottom: 1px solid var(--n100); margin: 0; flex-wrap: wrap; }
.app-header .nt-filters label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--p700); font-size: 13px; }
.app-header .nt-filters label.grow { flex: 1; min-width: 180px; }
.app-header .nt-filters select { height: 32px; border: 1px solid var(--n100); border-radius: 8px; padding: 0 8px; font-size: 13px; background: var(--n0); width: 100%; }
.app-header .nt-depart { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--n700); }
.app-header .nt-sum { padding: 10px 14px 12px; font-size: 13px; color: var(--n700); border-bottom: 1px solid var(--n100); }
.app-header .nt-sum b { font-size: 18px; color: #C2410C; }
.app-header .nt-sum span { color: var(--n500); }
.app-header .nt-bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--p500) var(--p), #FCD9C2 var(--p)); }
.app-header .nt-project { display: flex; align-items: center; gap: 6px; padding: 10px 14px 4px; font-size: 13px; font-weight: 700; color: var(--n900); }
.app-header .nt-project a { color: var(--n900); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header .nt-project a:hover { color: var(--p700); }
.app-header .nt-project i { color: var(--p500); flex: none; }
.app-header .nt-count { margin-left: auto; flex: none; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #FDEBDD; color: #C2410C; font-size: 11.5px; text-align: center; }
.app-header .nt-projects ul li a { display: block; padding: 5px 14px 5px 34px; color: var(--n700); }
.app-header .nt-projects ul li a:hover { background: var(--p0); text-decoration: none; }
.app-header .nt-projects ul .nt-title { font-weight: 500; font-size: 13px; }
.app-header .nt-last { display: block; font-size: 11.5px; color: var(--n500); }
/* TH / EN switch (site/overview; the public home page has its own in public-home.css) */
.app-header .lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--n100); gap: 2px; flex: none; }
.app-header .lang-switch button { border: 0; background: transparent; height: 30px; min-width: 38px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .04em; color: var(--n500); cursor: pointer; transition: background .2s, color .2s; }
.app-header .lang-switch button:hover { color: var(--n900); }
.app-header .lang-switch button[aria-pressed="true"] { background: var(--n0); color: var(--p700); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.app-header .lang-switch button:focus-visible { outline: 2px solid var(--p500); outline-offset: 1px; }
.app-header .apps-menu { width: min(560px, calc(100vw - 32px)); padding: 12px; }
.app-header .apps-menu .apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.app-header .scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--p500); transform-origin: left; transform: scaleX(var(--scroll-p, 0)); }
.app-header .sidebartoggler, .app-header .nav-toggler { font-size: 18px; }
@media (max-width: 1279px) { .app-header .brand-sub, .app-header .user-name { display: none; } .app-header .pill-nav a { padding: 8px 10px; } }
@media (max-width: 1099px) { .app-header .pill-nav a span { display: none; } .app-header .pill-nav a { padding: 10px; } .app-header .pill-nav i { font-size: 20px; } }
@media (max-width: 767px) { .app-header .header-row { padding: 0 12px; gap: 8px; } .app-header .brand-name { font-size: 17px; } .app-header .pill-nav { display: none; } }

/* compact app tiles (header drop-down) */
.app-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-lg); color: var(--n800); font-weight: 600; font-size: 14px; line-height: 1.35; }
.app-link:hover { background: var(--p0); color: var(--p700); }
.app-link .app-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--p50); color: var(--p500); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* ---------- layout: sidebar + page ---------- */
.left-sidebar { padding-top: var(--header-h); background: rgba(255,255,255,.96); box-shadow: none; border-right: 1px solid var(--n100); }
.fix-sidebar .left-sidebar { z-index: 40; }
.scroll-sidebar { padding-top: 8px; }
.sidebar-nav, .sidebar-nav ul { background: transparent; }
.sidebar-nav > ul > li { margin-bottom: 2px; }
.sidebar-nav #sidebarnav .nav-small-cap, .sidebar-nav > ul > li.nav-small-cap {
  font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--p700); padding: 12px 22px 8px; text-transform: none; line-height: 1.35;
}
.sidebar-nav ul li a {
  color: var(--n700); font-weight: 500; font-size: 14.5px; border-radius: 999px; margin: 0 12px; padding: 9px 14px; line-height: 1.4; transition: background .2s, color .2s;
}
.sidebar-nav > ul > li > a i { color: var(--n500); font-size: 18px; width: 26px; }
.sidebar-nav ul li a:hover, .sidebar-nav ul li a:focus { background: var(--n100); color: var(--n900); }
.sidebar-nav ul li a:hover i { color: var(--p500); }
.sidebar-nav > ul > li.active > a, .sidebar-nav > ul > li > a.active, .sidebar-nav > ul > li.active > a:hover {
  background: var(--p50) !important; color: var(--p700) !important; font-weight: 600; box-shadow: none; border-left: 0;
}
.sidebar-nav > ul > li.active > a i, .sidebar-nav > ul > li > a.active i { color: var(--p500) !important; }
.sidebar-nav ul li ul { padding: 2px 0 6px; }
.sidebar-nav ul li ul li a { padding: 6px 14px 6px 48px; font-size: 14px; color: var(--n700); border-radius: var(--r); }
.sidebar-nav ul li ul li a i { font-size: 5px; vertical-align: middle; margin-right: 6px; color: var(--n300); }
/* long labels wrap (hanging indent) instead of being cut at the sidebar's edge */
.sidebar-nav ul li a, .sidebar-nav ul li a .hide-menu { white-space: normal; }
.sidebar-nav > ul > li > a { display: flex; align-items: center; }
.sidebar-nav > ul > li > a > i { flex: none; }
.sidebar-nav ul li ul li a { text-indent: -11px; padding-left: 59px; }
.sidebar-nav ul li ul li a.active, .sidebar-nav ul li ul li.active > a { color: var(--p700); font-weight: 600; background: var(--p0); }
.sidebar-nav ul li ul li a.active i { color: var(--p500); }
.sidebar-nav .has-arrow::after { border-color: var(--n300); }
.sidebar-footer { background: var(--n0); border-top: 1px solid var(--n100); }
.sidebar-footer a { color: var(--n500); }
@media (min-width: 768px) {
  .mini-sidebar .sidebar-nav #sidebarnav > li > a { margin: 0 6px; padding: 10px 12px; }
  .mini-sidebar .sidebar-nav #sidebarnav > li:hover > a { background: var(--p50); color: var(--p700); border-radius: 999px 0 0 999px; }
  .mini-sidebar .sidebar-nav #sidebarnav > li > ul { background: var(--n0); border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow); }
}

.page-wrapper { background: transparent; padding-top: 0; }
/* site/overview: the executive dashboard in a frame filling the window below the header */
.page-wrapper.full-bleed { padding: 0; min-height: 0 !important; }
.exec-frame { display: block; width: 100%; height: calc(100vh - var(--header-h)); border: 0; background: var(--n0); }
.container-fluid { padding: 0 28px 28px; }
.page-titles {
  background: transparent; box-shadow: none; margin: 0 -28px 12px; padding: 24px 28px 12px;
}
.page-titles h3, .page-titles .text-themecolor {
  font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--n900) !important; margin-top: 0;
}
.page-titles .breadcrumb { font-size: 13px; margin-top: 4px; }
.page-titles .breadcrumb a, .breadcrumb a { color: var(--p500); }
.page-titles .breadcrumb .breadcrumb-item.active, .breadcrumb .breadcrumb-item.active { color: var(--n500); }
.footer { background: transparent; border-top: 1px solid var(--n200); color: var(--n500); font-size: 13px; padding: 16px 28px; }

/* ---------- cards ---------- */
.card, .card-no-border .card {
  border: 0; border-radius: var(--r-xl); background: var(--n0);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(18,51,37,.04); margin-bottom: 20px;
}
.card .card-body { padding: 24px; }
.card .card-header { background: transparent; border-bottom: 1px solid var(--n100); padding: 18px 24px; border-radius: var(--r-xl) var(--r-xl) 0 0 !important; font-weight: 600; }
.card .card-footer { background: var(--p0); border-top: 1px solid var(--n100); border-radius: 0 0 var(--r-xl) var(--r-xl) !important; }
.card-title, .card .card-title, .box-title { font-family: var(--font); font-weight: 600; font-size: 18px; color: var(--n900); }
.card-subtitle { color: var(--n500); }
.card-outline-info .card-header, .card-outline-success .card-header, .card-outline-primary .card-header,
.card-inverse.card-info, .card.bg-info .card-header { background: var(--p500); border-color: var(--p500); color: var(--n0); }
.card-outline-info, .card-outline-success, .card-outline-primary { border: 0; }
.card-outline-info .card-header *, .card-outline-success .card-header *, .card-outline-primary .card-header * { color: var(--n0); }

/* ---------- buttons ---------- */
.btn { border-radius: var(--r); font-weight: 600; font-family: var(--font); box-shadow: none !important; transition: background .2s, border-color .2s, color .2s; }
.btn-rounded { border-radius: 999px; }
.btn-primary, .btn-success, .btn-themecolor, .btn-primary.disabled, .btn-success.disabled {
  background: var(--p500); border-color: var(--p500); color: var(--n0);
}
.btn-primary:hover, .btn-success:hover, .btn-themecolor:hover, .btn-primary:focus, .btn-success:focus,
.btn-primary:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled):active {
  background: var(--p700); border-color: var(--p700); color: var(--n0);
}
.btn-info, .btn-info.disabled { background: var(--p50); border-color: var(--p100); color: var(--p700); }
.btn-info:hover, .btn-info:focus, .btn-info:not(:disabled):not(.disabled):active { background: var(--p100); border-color: var(--p200); color: var(--p900); }
.btn-secondary, .btn-default, .btn-light, .btn-white { background: var(--n0); border: 1px solid var(--n200); color: var(--n800); }
.btn-secondary:hover, .btn-default:hover, .btn-light:hover, .btn-white:hover { background: var(--n100); border-color: var(--n300); color: var(--n900); }
.btn-warning { background: var(--amber); border-color: var(--amber); color: var(--n900); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-outline-primary, .btn-outline-success, .btn-outline-info { color: var(--p500); border-color: var(--p200); background: transparent; }
.btn-outline-primary:hover, .btn-outline-success:hover, .btn-outline-info:hover { background: var(--p50); color: var(--p700); border-color: var(--p200); }
.btn-link { color: var(--p500); }

/* ---------- forms ---------- */
.form-control, .custom-select, select.form-control, .input-group-text {
  font-family: var(--font); border: 1px solid var(--n200); border-radius: var(--r); background-image: none; background-color: var(--n0);
  color: var(--n900); padding: 7px 12px; min-height: 38px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .custom-select:focus { border-color: var(--p500); box-shadow: 0 0 0 3px rgba(0,116,75,.12); background-image: none; }
.form-control-sm { min-height: 32px; padding: 4px 10px; }
.input-group-text { background: var(--n100); color: var(--n500); }
label, .control-label { font-weight: 600; color: var(--n700); }
/* Material Pro check boxes (drawn on the label) */
[type="checkbox"]:checked + label:before { border-right-color: var(--p500); border-bottom-color: var(--p500); }
[type="checkbox"].filled-in:checked + label:after { border-color: var(--p500) !important; background-color: var(--p500) !important; }
[type="radio"]:checked + label:after, [type="radio"].with-gap:checked + label:after { border-color: var(--p500) !important; background-color: var(--p500) !important; }
[type="radio"].with-gap:checked + label:before { border-color: var(--p500) !important; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple {
  border: 1px solid var(--n200); border-radius: var(--r); min-height: 38px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--p500); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--p500); }
.select2-dropdown { border-color: var(--n200); border-radius: var(--r); }

/* ---------- tables ---------- */
.table { color: var(--n900); }
.table thead th, .table th {
  color: var(--n500); font-weight: 600; font-size: 13px; border-top: 0; border-bottom: 1px solid var(--n200); vertical-align: bottom; background: transparent;
}
.table td { border-top: 1px solid var(--n100); vertical-align: top; }
.table-hover tbody tr:hover, .table-striped tbody tr:nth-of-type(odd):hover { background: var(--p0); }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(238,241,240,.45); }
.table-bordered, .table-bordered td, .table-bordered th { border-color: var(--n100); }
.table thead.bg-info th, .table thead.bg-success th, .table thead.bg-primary th, .table .thead-dark th { color: var(--n0); background: var(--p700); border-color: var(--p700); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--n200); border-radius: var(--r); padding: 4px 10px; background-image: none; min-height: 34px;
}
.dataTables_wrapper .dataTables_info { color: var(--n500); font-size: 13px; }

/* ---------- pagination, tabs, badges, alerts, modals ---------- */
.page-link { color: var(--n700); border-color: var(--n200); }
.page-item:first-child .page-link { border-radius: var(--r) 0 0 var(--r); }
.page-item:last-child .page-link { border-radius: 0 var(--r) var(--r) 0; }
.page-item.active .page-link, .paginate_button.active .page-link { background: var(--p500); border-color: var(--p500); color: var(--n0); }
.page-link:hover { background: var(--p0); color: var(--p700); }
.nav-tabs { border-bottom: 1px solid var(--n200); }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--n500); font-weight: 600; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: var(--p700); border-bottom-color: var(--p500); background: transparent; }
.nav-pills .nav-link { border-radius: 999px; color: var(--n700); font-weight: 600; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--p50); color: var(--p700); }
.badge, .label { border-radius: 999px; font-weight: 600; padding: 3px 10px; }
.badge-success, .label-success, .badge-primary, .label-primary { background: var(--p500); }
.badge-info, .label-info { background: var(--p50); color: var(--p700); }
.alert { border-radius: var(--r-lg); border: 0; }
.alert-success { background: var(--p50); color: var(--p700); }
.alert-info { background: #E8F1FC; color: #134E99; }
.modal-content { border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.modal-header { border-bottom: 1px solid var(--n100); }
.modal-footer { border-top: 1px solid var(--n100); }
.dropdown-menu { border-color: var(--n100); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.dropdown-item.active, .dropdown-item:active { background: var(--p500); }
.progress { border-radius: 999px; background: var(--n100); }
/* watch copy: digitalplan1's `.progress-bar, .bg-success, .bg-info, .text-success, .text-info { ... !important }` are left out here.
   Watch's dashboards colour progress bars and badges by status (bg-* classes and inline styles), which those rules would turn green. */
.progress-bar:not([class*="bg-"]):not([style*="background"]) { background-color: var(--p500); }
.round, .round-success { background: var(--p500); }

/* ---------- step wizard (plugins/wizard, loaded after this file: "body" raises specificity) ---------- */
body .wizard-content .wizard > .steps > ul > li.current .step { border-color: var(--p500); color: var(--p500); background: var(--n0); }
body .wizard-content .wizard > .steps > ul > li.done .step { background: var(--p500); border-color: var(--p500); color: var(--n0); }
body .wizard-content .wizard > .steps > ul > li.current > a { color: var(--p700); font-weight: 600; }
body .wizard-content .wizard > .steps > ul > li > a, body .wizard-content .wizard > .steps > ul > li.done > a { color: var(--n500); }
body .wizard-content .wizard > .steps .step { border-color: var(--n200); color: var(--n500); }
body .wizard-content .wizard > .actions > ul > li > a { background: var(--p500); border-radius: var(--r); font-weight: 600; }
body .wizard-content .wizard > .actions > ul > li > a:hover { background: var(--p700); }
body .wizard-content .wizard > .actions > ul > li.disabled > a { background: var(--n0); color: var(--n300); border: 1px solid var(--n200); }
body .wizard-content .wizard > .actions > ul > li > a[href="#previous"] { background: var(--n0); color: var(--n800); border: 1px solid var(--n200); }

/* dark table heads and panels: the dark green of the theme */
.bg-inverse, .bg-dark, .table .thead-dark th, .table-inverse thead th, .table-dark thead th, .thead-inverse th { background-color: var(--dg800) !important; border-color: var(--dg800) !important; color: var(--n0); }

/* group headers of the sidebar: room for the arrow */
.sidebar-nav ul li a.has-arrow { padding-right: 34px; position: relative; }
.sidebar-nav .has-arrow::after { right: 16px !important; }

/* ---------- main menu (site/menu) ---------- */
.home-hero { padding: 48px 0 28px; }
.home-wrap { max-width: 1200px; margin-inline: auto; padding: 0 20px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--p700); background: var(--p50); border-radius: 999px; padding: 4px 12px; }
.home-title { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.1; color: var(--n900); margin: 14px 0 0; }
.home-title em { font-style: normal; color: var(--p500); }
.home-lead { color: var(--n500); font-size: 16px; margin-top: 10px; max-width: 720px; }
.live-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; font-size: 13px; color: var(--n500); }
.live-meta .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p500); box-shadow: 0 0 0 0 rgba(0,116,75,.5); animation: live-pulse 2s infinite; }
.live-meta .lm-sep { color: var(--n300); }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,116,75,.45); } 70% { box-shadow: 0 0 0 8px rgba(0,116,75,0); } 100% { box-shadow: 0 0 0 0 rgba(0,116,75,0); } }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .count { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--p700); background: var(--p50); border-radius: 999px; padding: 1px 10px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 22px;
  border-radius: var(--r-xl); background: var(--n0); color: var(--n900); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(18,51,37,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.app-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--n900); }
.app-tile .app-no { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--p500); }
.app-tile .app-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--p50); color: var(--p500); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; transition: background .25s, color .25s; }
.app-tile:hover .app-ico { background: var(--p500); color: var(--n0); }
.app-tile .app-bg { position: absolute; right: -22px; bottom: -30px; font-size: 150px; color: var(--p50); opacity: .7; transition: transform .4s ease; pointer-events: none; }
.app-tile:hover .app-bg { transform: rotate(-8deg) scale(1.05); }
.app-tile .app-name { position: relative; font-size: 19px; font-weight: 700; line-height: 1.35; }
.app-tile .app-desc { position: relative; color: var(--n500); font-size: 14px; line-height: 1.5; }
.app-tile .app-go { position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--p500); font-weight: 600; font-size: 14px; }
.app-tile:hover .app-go i { transform: translateX(3px); }
.app-tile .app-go i { transition: transform .2s; }
.app-tile.featured { background: var(--p500); color: var(--n0); }
.app-tile.featured .app-no, .app-tile.featured .app-go { color: var(--n0); }
.app-tile.featured .app-desc { color: rgba(255,255,255,.8); }
.app-tile.featured .app-ico { background: rgba(255,255,255,.16); color: var(--n0); }
.app-tile.featured .app-bg { color: rgba(255,255,255,.08); opacity: 1; }
.app-tile.featured:hover { color: var(--n0); }
.task-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.task-tile { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--n0); color: var(--n800); font-weight: 600; box-shadow: 0 0 0 1px rgba(18,51,37,.05); transition: background .2s; }
.task-tile:hover { background: var(--p0); color: var(--p700); }
.task-tile .app-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--n100); color: var(--n700); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.task-tile .arrow { margin-left: auto; color: var(--n300); font-size: 18px; transition: transform .2s; }
.task-tile:hover .arrow { transform: translateX(3px); color: var(--p500); }
.reveal { opacity: 0; transform: translateY(12px); animation: reveal-in .5s ease forwards; }
@keyframes reveal-in { to { opacity: 1; transform: none; } }
@media (max-width: 991px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-title { font-size: 40px; } }
@media (max-width: 575px) {
  .app-grid, .task-tiles { grid-template-columns: 1fr; } .home-title { font-size: 30px; overflow-wrap: anywhere; } .home-hero { padding-top: 28px; }
  .page-titles h3, .page-titles .text-themecolor { font-size: 26px; overflow-wrap: anywhere; } .container-fluid { padding: 0 14px 20px; } .page-titles { margin: 0 -14px 8px; padding: 18px 14px 8px; }
}

/* ---------- C03 footer (pages without sidebar) ---------- */
.app-footer { background: var(--dg900); color: rgba(255,255,255,.8); padding: 28px 0; margin-top: 48px; }
.app-footer .footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.app-footer .brand-mini { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--n0); }
.app-footer .brand-mini img { width: auto; height: 34px; filter: brightness(0) invert(1); }
.app-footer .footer-meta { font-size: 13px; color: rgba(255,255,255,.6); }

@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } .app-tile, .app-tile .app-bg { transition: none; } }
