/* ==========================================================================
   S.P.O.T. — Combined Stylesheet
   All page styles extracted from individual HTML files and scoped to
   each page via a body.page-<name> class added to each HTML's <body>.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Reset default browser margin on body for every page */
html,
body {
  margin: 0;
  padding: 0;
}


/* ==========================================================================
   PAGE: index  (from index.html)
   ========================================================================== */
body.page-index * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-index {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-index .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-index .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-index .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-index .logo .dot {
  color: #6b8e23;
}

body.page-index .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-index .nav a,
body.page-index .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #7D848D;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: background .15s, color .15s;
}

body.page-index .nav a:hover,
body.page-index .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-index .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-index .nav a .ico,
body.page-index .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-index .nav a .ico svg,
body.page-index .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-index .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-index .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-index .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-index .topbar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-index .search {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-index .search input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-index .search .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-index .search .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-index .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-index .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
}

body.page-index .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-index .icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

body.page-index .icon-btn>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-index .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-index .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-index .profile .meta {
  line-height: 1.2;
}

body.page-index .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-index .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Cards grid ===== */
body.page-index .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.9fr);
  gap: 16px;
  margin-bottom: 24px;
}

body.page-index .card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
  min-width: 0;
}

body.page-index .stat .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-index .stat .label {
  color: #7D848D;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stat-card labels across other pages — same single-line behavior */
body[class*="page-"] .stat-card .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[class*="page-"] .stat-card .head {
  gap: 8px;
}

body.page-index .stat .value {
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 4px;
}

body.page-index .delta {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-index .delta.up {
  color: #34A853;
}

body.page-index .delta.down {
  color: #e03131;
}

body.page-index .stat .chart {
  margin-top: 6px;
  height: 56px;
}

body.page-index .icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
}

body.page-index .icon-pill svg {
  width: 28px;
  height: 28px;
}

/* User by states (chart) */
body.page-index .states-card {
  grid-row: span 2;
}

body.page-index .states-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

body.page-index .states-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  white-space: nowrap;
}

body.page-index .states-dropdown {
  font-size: 11.5px;
  color: #666;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 5px 26px 5px 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 8px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

/* ===== Lower row ===== */
body.page-index .lower {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

body.page-index .panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

body.page-index .panel-head h3 {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

body.page-index .dropdown {
  font-size: 11.5px;
  color: #666;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 5px 26px 5px 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 8px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

/* Donut card */
body.page-index .donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

body.page-index .donut-wrap svg {
  max-width: 100%;
  height: auto;
}

body.page-index .donut-center {
  text-align: center;
}

body.page-index .donut-center .total {
  font-size: 20px;
  font-weight: 700;
}

body.page-index .donut-center .lbl {
  font-size: 11px;
  color: #888;
}

body.page-index .legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
}

body.page-index .legend .row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.page-index .legend .sw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
}

body.page-index .legend .ttl {
  color: #333;
}

body.page-index .legend .sub {
  color: #888;
  font-size: 11.5px;
}

/* Most used tools */
body.page-index .tools-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-index .tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-index .tool-row .ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-index .tool-row .ic svg {
  width: 30px;
  height: 30px;
}

body.page-index .tool-row .body {
  flex: 1;
}

body.page-index .tool-row .ttl {
  font-size: 13px;
  font-weight: 500;
}

body.page-index .tool-row .delta {
  font-size: 11px;
  margin-top: 2px;
}

body.page-index .tool-row .num {
  font-weight: 700;
  font-size: 14px;
}

/* ===== Users table & leaderboard ===== */
body.page-index .bottom {
  display: grid;
  grid-template-columns: minmax(0, 2.33fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

body.page-index table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

body.page-index thead th {
  text-align: left;
  padding: 12px 8px;
  color: #000000;
  font-weight: 500;
  border-bottom: 1px solid #ececec;
}

body.page-index tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
}

body.page-index tbody tr:last-child td {
  border-bottom: none;
}

body.page-index .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-index .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-index .pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  border: 1px solid #cfdcef;
  color: #3b6bbf;
  background: #eaf1fa;
}

body.page-index .pill.free {
  color: #7D848D;
  background: #f1f1ed;
  border-color: #e2e2dc;
}

body.page-index .pill.basic {
  color: #b58105;
  background: #fff4d6;
  border-color: #f1dba0;
}

body.page-index .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

body.page-index .status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.page-index .status.active {
  color: #34A853;
}

body.page-index .status.active .dot {
  background: #2f9e44;
}

body.page-index .status.inactive {
  color: #e03131;
}

body.page-index .status.inactive .dot {
  background: #e03131;
}

body.page-index tbody td.muted {
  color: #7D848D;
}

body.page-index .actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

body.page-index .act-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e2dc;
  border-radius: 7px;
  color: #7D848D;
  cursor: pointer;
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}

body.page-index .act-btn:hover {
  background: #f7f7f2;
  color: #1f1f1f;
  border-color: #d4d4cd;
}

body.page-index .act-btn svg {
  width: 16px;
  height: 16px;
}

body.page-index .act-menu-wrap {
  position: relative;
}

body.page-index .act-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(40, 40, 40, 0.12), 0 2px 6px rgba(40, 40, 40, 0.06);
  padding: 6px;
  display: none;
  z-index: 50;
}

body.page-index .act-menu-wrap.open .act-menu {
  display: block;
}

body.page-index .act-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}

body.page-index .act-menu a:hover {
  background: #f7f7f2;
}

body.page-index .act-menu .mi-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7D848D;
  flex-shrink: 0;
}

body.page-index .act-menu .mi-ico svg {
  width: 16px;
  height: 16px;
}

/* Leaderboard */
body.page-index .leaderboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-index .lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-index .lb-row .avatar {
  width: 38px;
  height: 38px;
}

body.page-index .lb-row .info {
  flex: 1;
}

body.page-index .lb-row .name {
  font-weight: 600;
  font-size: 12px;
}

body.page-index .lb-row .pts {
  color: #888;
  font-size: 10px;
  margin-top: 2px;
}

body.page-index .lb-row .rank {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

body.page-index .lb-row .rank.up {
  color: #34A853;
}

body.page-index .lb-row .rank.down {
  color: #e03131;
}

/* Scrollbar polish */
body.page-index::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.page-index::-webkit-scrollbar-thumb {
  background: #d8d8d2;
  border-radius: 4px;
}

/* ==========================================================================
   PAGE: users  (from users.html)
   ========================================================================== */
body.page-users * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-users {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-users .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-users .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-users .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-users .logo .dot {
  color: #6b8e23;
}

body.page-users .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-users .nav a,
body.page-users .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-users .nav a:hover,
body.page-users .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-users .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-users .nav a .ico,
body.page-users .sidebar-bottom a .ico {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-users .nav a .ico svg,
body.page-users .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-users .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-users .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-users .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ececec;
}

body.page-users .topbar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-users .search {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-users .search input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-users .search .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-users .search .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-users .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-users .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
}

body.page-users .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-users .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-users .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-users .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-users .profile .meta {
  line-height: 1.2;
}

body.page-users .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-users .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Filter card ===== */
body.page-users .filter-card {
  background: #fff;
  border-radius: 14px;
  padding: 45px 24px;
  margin-bottom: 50px;
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1fr 1fr auto;
  gap: 18px;
  align-items: end;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-users .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-users .field label {
  font-size: 13px;
  color: #2c2c2c;
  font-weight: 500;
}

body.page-users .field .ctrl {
  position: relative;
  height: 42px;
}

body.page-users .field input,
body.page-users .field select {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 10px;
  background: #F9F9F9;
  outline: none;
  font-size: 13px;
  color: #2c2c2c;
  appearance: none;
  -webkit-appearance: none;
  font-family: "Inter", sans-serif;
}

body.page-users .field input::placeholder {
  color: #bdbdbd;
}

body.page-users .field input#filter-name {
  background: #fff;
}

body.page-users .field .end-ico {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  display: flex;
}

body.page-users .field .end-ico svg {
  width: 16px;
  height: 16px;
}

/* Browser supplies its own picker for date inputs, hide decorative one */
body.page-users .field input[type="date"]~.end-ico {
  display: none;
}

body.page-users .field input[type="date"] {
  padding-right: 14px;
}

body.page-users .btn-reset {
  height: 42px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1px solid #e4e4df;
  background: #fff;
  color: #4a4a4a;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-users .btn-reset:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-users .filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}

body.page-users .filter-actions-row {
  display: flex;
  gap: 10px;
}

body.page-users .btn-filter {
  height: 42px;
  padding: 0 30px;
  border-radius: 10px;
  border: none;
  background: #1f3d2a;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-users .btn-filter:hover {
  background: #295034;
}

body.page-users .btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #e4e4df;
  background: #fff;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-users .btn-export:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-users .btn-export svg {
  width: 12px;
  height: 12px;
  color: #6b6b6b;
}

/* ===== Users table card ===== */
body.page-users .user-full-area{
  display: flex;
}
body.page-users .table-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px 8px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}
body.page-users .map-card{
    padding-left: 30px;
    width: 30%;
}

body.page-users .table-card .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

body.page-users .panel-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-users .table-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
}

body.page-users .dropdown {
  font-size: 12.5px;
  color: #666;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 7px 30px 7px 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-users table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-users thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-users tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #2c2c2c;
}

body.page-users tbody tr:last-child td {
  border-bottom: none;
}

body.page-users tbody tr:hover {
  background: #fbfbf8;
}

body.page-users .checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid #7D848D;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

body.page-users .checkbox:checked {
  background: #4a6b3f;
  border-color: #4a6b3f;
}

body.page-users .user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-users .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-users .pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #cfdcef;
  color: #3b6bbf;
  background: #eaf1fa;
  font-weight: 500;
}

body.page-users .pill.free {
  color: #7D848D;
  background: #f1f1ed;
  border-color: #e2e2dc;
}

body.page-users .pill.basic {
  color: #b58105;
  background: #fff4d6;
  border-color: #f1dba0;
}

body.page-users .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

body.page-users .status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

body.page-users .status.active {
  color: #34A853;
}

body.page-users .status.active .dot {
  background: #2f9e44;
}

body.page-users .status.inactive {
  color: #e03131;
}

body.page-users .status.inactive .dot {
  background: #e03131;
}

body.page-users tbody td.muted {
  color: #7D848D;
}

body.page-users .actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

body.page-users .act-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e2dc;
  border-radius: 7px;
  color: #7D848D;
  cursor: pointer;
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}

body.page-users .act-btn:hover {
  background: #f7f7f2;
  color: #1f1f1f;
  border-color: #d4d4cd;
}

body.page-users .act-btn svg {
  width: 16px;
  height: 16px;
}

body.page-users .act-menu-wrap {
  position: relative;
}

body.page-users .act-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(40, 40, 40, 0.12), 0 2px 6px rgba(40, 40, 40, 0.06);
  padding: 6px;
  display: none;
  z-index: 50;
}

body.page-users .act-menu-wrap.open .act-menu {
  display: block;
}

body.page-users .act-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}

body.page-users .act-menu a:hover {
  background: #f7f7f2;
}

body.page-users .act-menu .mi-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7D848D;
  flex-shrink: 0;
}

body.page-users .act-menu .mi-ico svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   PAGE: leaderboard  (from leaderboard.html)
   ========================================================================== */
body.page-leaderboard * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-leaderboard {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-leaderboard .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-leaderboard .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-leaderboard .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-leaderboard .logo .dot {
  color: #6b8e23;
}

body.page-leaderboard .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-leaderboard .nav a,
body.page-leaderboard .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-leaderboard .nav a:hover,
body.page-leaderboard .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-leaderboard .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-leaderboard .nav a .ico,
body.page-leaderboard .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-leaderboard .nav a .ico svg,
body.page-leaderboard .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-leaderboard .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-leaderboard .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-leaderboard .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-leaderboard .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-leaderboard .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-leaderboard .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-leaderboard .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-leaderboard .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-leaderboard .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-leaderboard .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-leaderboard .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-leaderboard .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-leaderboard .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-leaderboard .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-leaderboard .profile .meta {
  line-height: 1.2;
}

body.page-leaderboard .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-leaderboard .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Create notification bar ===== */
body.page-leaderboard .notif-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

body.page-leaderboard .btn-notif {
  height: 40px;
  padding: 0 18px;
  background: #1f3d18;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

body.page-leaderboard .btn-notif:hover {
  background: #172e12;
}

body.page-leaderboard .btn-notif svg {
  width: 15px;
  height: 15px;
}

/* ===== Stat cards row ===== */
body.page-leaderboard .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

body.page-leaderboard .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-leaderboard .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-leaderboard .stat-card .label {
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 500;
}

body.page-leaderboard .stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 4px 0 8px;
}

body.page-leaderboard .stat-card .icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
}

body.page-leaderboard .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-leaderboard .stat-card .sub {
  font-size: 12px;
}

body.page-leaderboard .stat-card .sub .up {
  color: #34A853;
  font-weight: 600;
}

body.page-leaderboard .stat-card .sub .muted {
  color: #9a9a9a;
}

/* ===== Body grid ===== */
body.page-leaderboard .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 22px;
  align-items: start;
}

/* ===== Cards ===== */
body.page-leaderboard .card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 18px;
}

body.page-leaderboard .card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

/* ===== Leaderboard table ===== */
body.page-leaderboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-leaderboard thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-leaderboard tbody td {
  padding: 13px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #9a9a9a;
}

body.page-leaderboard tbody tr:last-child td {
  border-bottom: none;
}

body.page-leaderboard tbody tr:hover {
  background: #fbfbf8;
}

body.page-leaderboard .rank-cell {
  color: #7D848D;
  font-weight: 500;
}

body.page-leaderboard .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

body.page-leaderboard .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-leaderboard .score-cell {
  color: #34A853;
  font-weight: 600;
}

body.page-leaderboard .badges-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

body.page-leaderboard .badge-ic {
  width: 24px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-leaderboard .badge-ic svg {
  width: 24px;
  height: 24px;
}

body.page-leaderboard .badge-more {
  min-width: 28px;
  height: 26px;
  border: 1px solid #d4d4cd;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  padding: 0 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-leaderboard .badge-menu {
  width: 26px;
  height: 26px;
  border: 1px solid #d4d4cd;
  border-radius: 6px;
  background: #fff;
  color: #888;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

body.page-leaderboard .badge-menu:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-leaderboard .badge-menu svg {
  width: 12px;
  height: 12px;
}

/* Pagination */
body.page-leaderboard .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 4px;
  color: #888;
  font-size: 12.5px;
}

body.page-leaderboard .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-leaderboard .pagination button,
body.page-leaderboard .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-leaderboard .pagination button:hover {
  background: #f7f7f4;
}

body.page-leaderboard .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-leaderboard .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-leaderboard .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-leaderboard .pagination svg {
  width: 12px;
  height: 12px;
}

/* ===== Top Performers ===== */
body.page-leaderboard .perf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-leaderboard .perf-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-leaderboard .perf-row .rk {
  color: #9a9a9a;
  font-size: 12.5px;
  min-width: 24px;
}

body.page-leaderboard .perf-row .avatar {
  width: 36px;
  height: 36px;
}

body.page-leaderboard .perf-row .nm {
  flex: 1;
  color: #1f1f1f;
  font-size: 13.5px;
}

body.page-leaderboard .perf-row .sc {
  color: #34A853;
  font-weight: 600;
  font-size: 13px;
}

body.page-leaderboard .view-all {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  color: #0E3E27;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Score Distribution ===== */
body.page-leaderboard .dist-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

body.page-leaderboard .dist-wrap svg {
  flex-shrink: 0;
}

body.page-leaderboard .dist-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}

body.page-leaderboard .dist-legend .row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-leaderboard .dist-legend .sw {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

body.page-leaderboard .dist-legend .lbl {
  color: #2c2c2c;
}

/* ==========================================================================
   PAGE: community  (from community.html)
   ========================================================================== */
body.page-community * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-community {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-community .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-community .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-community .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-community .logo .dot {
  color: #6b8e23;
}

body.page-community .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-community .nav a,
body.page-community .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-community .nav a:hover,
body.page-community .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-community .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-community .nav a .ico,
body.page-community .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-community .nav a .ico svg,
body.page-community .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-community .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-community .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-community .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

body.page-community .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-community .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-community .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-community .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-community .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-community .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-community .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-community .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-community .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-community .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-community .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-community .profile .meta {
  line-height: 1.2;
}

body.page-community .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-community .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Action bar (Export, Post Settings) ===== */
body.page-community .action-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

body.page-community .pill-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #444;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

body.page-community .pill-btn:hover {
  background: #f7f7f4;
}

body.page-community .pill-btn svg {
  width: 14px;
  height: 14px;
}

/* ===== Stat cards row ===== */
body.page-community .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-community .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-community .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-community .stat-card .label {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
}

body.page-community .stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 4px 0 6px;
}

body.page-community .stat-card .icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0E3E27;
}

body.page-community .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-community .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-community .delta.up {
  color: #34A853;
}

body.page-community .delta.down {
  color: #e03131;
}

/* ===== Filter row ===== */
body.page-community .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

body.page-community .filter-row select {
  flex: 0 0 150px;
  width: 150px;
}

body.page-community .filter-row .range-field {
  flex: 0 0 235px;
}

body.page-community .filter-row .right-search-wrap {
  flex: 0 0 280px;
  width: 280px;
  margin-left: auto;
}

body.page-community .filter-row .filters-btn {
  flex: 0 0 auto;
}

body.page-community .filter-row select,
body.page-community .filter-row .range-field input,
body.page-community .filter-row .right-search-wrap input {
  min-width: 0;
  box-sizing: border-box;
}

body.page-community .filter-row select {
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

body.page-community .filter-row .range-field {
  position: relative;
  height: 38px;
}

body.page-community .filter-row .range-field input {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #4a4a4a;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-community .filter-row .range-field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: #888;
  pointer-events: none;
}

body.page-community .right-search-wrap {
  display: flex;
  gap: 10px;
}

body.page-community .right-search-wrap .field {
  flex: 1;
  position: relative;
}

body.page-community .right-search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #444;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-community .right-search-wrap .field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #999;
}

body.page-community .filters-btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #3b6bbf;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-community .filters-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-community .filters-btn svg {
  width: 13px;
  height: 13px;
  color: #3b6bbf;
}

/* ===== Body grid ===== */
body.page-community .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
}

/* ===== Table card ===== */
body.page-community .table-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px 8px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-community .table-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
}

body.page-community table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-community thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-community tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7D848D;
}

body.page-community tbody tr:last-child td {
  border-bottom: none;
}

body.page-community tbody tr.selected,
body.page-community tbody tr:hover {
  background: #fbfbf8;
  cursor: pointer;
}

body.page-community .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

body.page-community .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-community .media-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a7a7a;
}

body.page-community .media-thumb {
  width: 70px;
  height: 48px;
  border-radius: 2px;
  background: #ddd center/cover no-repeat;
  position: relative;
  flex-shrink: 0;
}

body.page-community .media-thumb.video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6));
}

/* Status badges */
body.page-community .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
}

body.page-community .badge.approved {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-community .badge.rejected {
  color: #e03131;
  background: #fdecec;
  border-color: #f3c0c0;
}

body.page-community .badge.pending {
  color: #C45508;
  background: #fff1e3;
  border-color: #f4ceaa;
}

body.page-community .row-actions {
  display: flex;
  gap: 5px;
}

body.page-community .row-actions button {
  width: 26px;
  height: 22px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-community .row-actions button:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-community .row-actions button svg {
  width: 12px;
  height: 12px;
}

/* ===== Pagination ===== */
body.page-community .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px 4px;
  color: #888;
  font-size: 12.5px;
}

body.page-community .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-community .pagination button,
body.page-community .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-community .pagination button:hover {
  background: #f7f7f4;
}

body.page-community .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-community .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-community .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-community .pagination svg {
  width: 12px;
  height: 12px;
}

/* ===== Right side panels ===== */
body.page-community .panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 16px;
}

body.page-community .panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

/* Post Review */
body.page-community .post-img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 14px;
  background: #ddd;
}

body.page-community .post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.page-community .post-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-community .post-author .meta {
  flex: 1;
  line-height: 1.2;
}

body.page-community .post-author .meta .nm {
  font-weight: 600;
  color: #1f1f1f;
  font-size: 13px;
}

body.page-community .post-author .meta .h {
  color: #999;
  font-size: 12px;
}

body.page-community .post-author .stats {
  display: flex;
  gap: 16px;
  color: #7D848D;
  font-size: 13px;
}

body.page-community .post-text {
  color: #7D848D;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.45;
}

body.page-community .post-tags {
  color: #3b6bbf;
  font-size: 13px;
  margin-bottom: 6px;
}

body.page-community .post-meta {
  color: #999;
  font-size: 12.5px;
}

/* Post Actions */
body.page-community .actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-community .btn-block {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-community .btn-approve {
  background: #2f9e44;
  color: #fff;
}

body.page-community .btn-approve:hover {
  background: #28893a;
}

body.page-community .btn-remove {
  background: #e23b3b;
  color: #fff;
}

body.page-community .btn-remove:hover {
  background: #c52f2f;
}

body.page-community .btn-outline {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #e4e4df;
}

body.page-community .btn-outline:hover {
  background: #faf7ec;
}

/* Report Summary */
body.page-community .summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-community .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

body.page-community .summary-row .lbl {
  color: #1f1f1f;
}

body.page-community .summary-row .cnt {
  color: #1f1f1f;
  font-weight: 600;
}

body.page-community .view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  color: #0E3E27;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   PAGE: notifications  (from notifications.html)
   ========================================================================== */
body.page-notifications * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-notifications {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-notifications .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-notifications .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-notifications .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-notifications .logo .dot {
  color: #6b8e23;
}

body.page-notifications .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-notifications .nav a,
body.page-notifications .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-notifications .nav a:hover,
body.page-notifications .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-notifications .nav a.active,
body.page-notifications .sidebar-bottom a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-notifications .nav a .ico,
body.page-notifications .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-notifications .nav a .ico svg,
body.page-notifications .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-notifications .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-notifications .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-notifications .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-notifications .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-notifications .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-notifications .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-notifications .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-notifications .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-notifications .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-notifications .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-notifications .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-notifications .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-notifications .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-notifications .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-notifications .profile .meta {
  line-height: 1.2;
}

body.page-notifications .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-notifications .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Create notification bar ===== */
body.page-notifications .notif-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

body.page-notifications .btn-notif {
  height: 40px;
  padding: 0 18px;
  background: #1f3d18;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

body.page-notifications .btn-notif:hover {
  background: #172e12;
}

body.page-notifications .btn-notif svg {
  width: 15px;
  height: 15px;
}

/* ===== Stat cards row ===== */
body.page-notifications .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

body.page-notifications .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-notifications .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-notifications .stat-card .label {
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 500;
}

body.page-notifications .stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 4px 0 8px;
}

body.page-notifications .stat-card .icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
}

body.page-notifications .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-notifications .stat-card .sub {
  font-size: 12px;
  color: #9a9a9a;
}

/* ===== Filter row ===== */
body.page-notifications .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

body.page-notifications .filter-row select {
  height: 38px;
  flex: 0 0 160px;
  width: 160px;
  padding: 0 34px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

body.page-notifications .filter-row .spacer {
  flex: 1;
}

body.page-notifications .filter-row .search-field {
  position: relative;
  height: 38px;
  flex: 0 0 280px;
  width: 280px;
}

body.page-notifications .filter-row .search-field input {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #444;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-notifications .filter-row .search-field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #999;
}

body.page-notifications .reset-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e4e4df;
  background: #fff;
  color: #555;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-notifications .reset-btn:hover {
  background: #f7f7f4;
}

body.page-notifications .reset-btn svg {
  width: 13px;
  height: 13px;
}

/* ===== Body grid ===== */
body.page-notifications .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 22px;
  align-items: start;
}

/* ===== Cards ===== */
body.page-notifications .card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 18px;
}

body.page-notifications .card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

/* ===== Notifications table ===== */
body.page-notifications table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-notifications thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-notifications tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7a7a7a;
}

body.page-notifications tbody tr:last-child td {
  border-bottom: none;
}

body.page-notifications tbody tr:hover {
  background: #fbfbf8;
}

body.page-notifications .nt-title {
  color: #1f1f1f;
  font-weight: 500;
  margin-bottom: 2px;
}

body.page-notifications .nt-sub {
  color: #aaa;
  font-size: 12px;
}

body.page-notifications .pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  border: 1px solid;
  font-weight: 500;
}

body.page-notifications .pill.all {
  color: #6b5ca5;
  background: #eeebf7;
  border-color: #d8d0ee;
}

body.page-notifications .pill.premium {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-notifications .pill.state {
  color: #3b6bbf;
  background: #eaf1fa;
  border-color: #cfdcef;
}

body.page-notifications .type-push {
  color: #34A853;
  font-weight: 500;
}

body.page-notifications .type-email {
  color: #C45508;
  font-weight: 500;
}

body.page-notifications .open-cell {
  min-width: 120px;
}

body.page-notifications .open-pct {
  font-size: 12px;
  color: #1f1f1f;
  margin-bottom: 4px;
}

body.page-notifications .open-bar-bg {
  height: 6px;
  border-radius: 3px;
  background: #f0f0ec;
  overflow: hidden;
  width: 100px;
}

body.page-notifications .open-bar {
  height: 100%;
  border-radius: 3px;
}

body.page-notifications .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
}

body.page-notifications .badge.sent {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-notifications .badge.draft {
  color: #C45508;
  background: #fff1e3;
  border-color: #f4ceaa;
}

body.page-notifications .row-actions {
  display: flex;
  gap: 5px;
}

body.page-notifications .row-actions button {
  width: 26px;
  height: 22px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-notifications .row-actions button:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-notifications .row-actions button svg {
  width: 12px;
  height: 12px;
}

/* Pagination */
body.page-notifications .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 24px;
  color: #888;
  font-size: 12.5px;
}

body.page-notifications .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-notifications .pagination button,
body.page-notifications .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-notifications .pagination button:hover {
  background: #f7f7f4;
}

body.page-notifications .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-notifications .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-notifications .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-notifications .pagination svg {
  width: 12px;
  height: 12px;
}

/* ===== Performance Overview ===== */
body.page-notifications .perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

body.page-notifications .perf-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

body.page-notifications .perf-item .p-body {
  min-width: 0;
}

body.page-notifications .perf-item .p-ic {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eef1ea;
  color: #2d4a23;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-notifications .perf-item .p-ic svg {
  width: 22px;
  height: 22px;
}

body.page-notifications .perf-item .p-body .p-top {
  color: #8a8a8a;
  font-size: 12.5px;
  margin-bottom: 2px;
}

body.page-notifications .perf-item .p-body .p-val {
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-notifications .perf-item .p-body .p-sub {
  color: #9a9a9a;
  font-size: 11.5px;
  margin-top: 3px;
}

/* ===== Send New Notifications ===== */
body.page-notifications .send-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-notifications .send-item {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px;
  margin: -6px;
  transition: background .15s;
}

body.page-notifications .send-item:hover {
  background: #faf7ec;
}

body.page-notifications .send-item .s-ic {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #eef1ea;
  color: #2d4a23;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-notifications .send-item .s-ic svg {
  width: 26px;
  height: 26px;
}

body.page-notifications .send-item .s-body .s-title {
  color: #1f1f1f;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

body.page-notifications .send-item .s-body .s-sub {
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

/* ===== Why Send / Best Practices ===== */
body.page-notifications .why-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-notifications .why-item .w-title {
  color: #1f1f1f;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
}

body.page-notifications .why-item .w-sub {
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

body.page-notifications .practice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-notifications .practice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #2c2c2c;
}

body.page-notifications .practice-item .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #34A853;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-notifications .practice-item .check svg {
  width: 11px;
  height: 11px;
}

/* ==========================================================================
   PAGE: memberships  (from memberships.html)
   ========================================================================== */
body.page-memberships * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-memberships {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-memberships .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-memberships .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-memberships .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-memberships .logo .dot {
  color: #6b8e23;
}

body.page-memberships .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-memberships .nav a,
body.page-memberships .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-memberships .nav a:hover,
body.page-memberships .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-memberships .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-memberships .nav a .ico,
body.page-memberships .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-memberships .nav a .ico svg,
body.page-memberships .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-memberships .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-memberships .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-memberships .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-memberships .topbar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-memberships .search {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-memberships .search input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-memberships .search .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-memberships .search .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-memberships .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-memberships .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
}

body.page-memberships .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-memberships .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-memberships .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-memberships .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-memberships .profile .meta {
  line-height: 1.2;
}

body.page-memberships .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-memberships .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Stat cards row ===== */
body.page-memberships .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-memberships .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-memberships .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

body.page-memberships .stat-card .label {
  color: #7D848D;
  font-size: 13px;
  font-weight: 500;
}

body.page-memberships .stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

body.page-memberships .stat-card .icon-pill {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #1f3d2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-memberships .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-memberships .stat-card .icon-pill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.page-memberships .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-memberships .delta.up {
  color: #34A853;
}

body.page-memberships .delta.down {
  color: #e03131;
}

/* ===== Plans card ===== */
body.page-memberships .plans-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-memberships .plans-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

body.page-memberships .plans-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-memberships .btn-add-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1f3d2a;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background .15s;
}

body.page-memberships .btn-add-plan:hover {
  background: #295034;
}

body.page-memberships .btn-add-plan svg {
  width: 16px;
  height: 16px;
}

/* === Add New Plan modal === */
body.page-memberships .modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 30, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.page-memberships .modal-overlay.open {
  display: flex;
}

body.page-memberships .modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body.page-memberships .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #ececec;
}

body.page-memberships .modal-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-memberships .modal-close {
  width: 32px;
  height: 32px;
  border-radius: 15px;
  background: transparent;
  border: 1px solid transparent;
  color: #7D848D;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.page-memberships .modal-close:hover {
  background: #f7f7f2;
  color: #1f1f1f;
}

body.page-memberships .modal-close svg {
  width: 18px;
  height: 18px;
}

body.page-memberships .modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-memberships .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-memberships .form-row-inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

body.page-memberships .form-label {
  color: #4a4a4a;
  font-size: 12.5px;
  font-weight: 500;
}

body.page-memberships .form-row input[type="text"],
body.page-memberships .form-row select,
body.page-memberships .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 15px;
  font-size: 13.5px;
  color: #1f1f1f;
  font-family: "Inter", sans-serif;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

body.page-memberships .form-row input:focus,
body.page-memberships .form-row select:focus,
body.page-memberships .form-row textarea:focus {
  border-color: #1f3d2a;
}

body.page-memberships .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.page-memberships .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

body.page-memberships .switch input {
  display: none;
}

body.page-memberships .switch .slider {
  position: absolute;
  inset: 0;
  background: #d4d4cd;
  border-radius: 999px;
  transition: background .15s;
}

body.page-memberships .switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.page-memberships .switch input:checked+.slider {
  background: #1f3d2a;
}

body.page-memberships .switch input:checked+.slider::before {
  transform: translateX(18px);
}

body.page-memberships .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
}

body.page-memberships .btn-cancel,
body.page-memberships .btn-save {
  padding: 9px 18px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  border: none;
}

body.page-memberships .btn-cancel {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #e2e2dc;
}

body.page-memberships .btn-cancel:hover {
  background: #f7f7f2;
}

body.page-memberships .btn-save {
  background: #1f3d2a;
  color: #fff;
}

body.page-memberships .btn-save:hover {
  background: #295034;
}

body.page-memberships .plans-table {
  width: 100%;
  border-collapse: collapse;
}

body.page-memberships .plans-table thead th {
  text-align: left;
  padding: 14px 12px;
  color: black;
  font-weight: 500;
  border-bottom: 1px solid #ececec;
  font-size: 13.5px;
}

body.page-memberships .plans-table tbody td {
  padding: 22px 12px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: top;
  color: #2c2c2c;
  font-size: 13.5px;
}

body.page-memberships .plans-table tbody tr:last-child td {
  border-bottom: none;
}

body.page-memberships .actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

body.page-memberships .act-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e2dc;
  border-radius: 7px;
  color: #7D848D;
  cursor: pointer;
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}

body.page-memberships .act-btn:hover {
  background: #f7f7f2;
  color: #1f1f1f;
  border-color: #d4d4cd;
}

body.page-memberships .act-btn svg {
  width: 16px;
  height: 16px;
}

body.page-memberships .act-menu-wrap {
  position: relative;
}

body.page-memberships .act-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(40, 40, 40, 0.12), 0 2px 6px rgba(40, 40, 40, 0.06);
  padding: 6px;
  display: none;
  z-index: 50;
}

body.page-memberships .act-menu-wrap.open .act-menu {
  display: block;
}

body.page-memberships .act-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}

body.page-memberships .act-menu a:hover {
  background: #f7f7f2;
}

body.page-memberships .act-menu .mi-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7D848D;
  flex-shrink: 0;
}

body.page-memberships .act-menu .mi-ico svg {
  width: 16px;
  height: 16px;
}

body.page-memberships .plan-name {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.page-memberships .plan-name .plan-ico {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-memberships .plan-name .plan-ico svg {
  width: 24px;
  height: 24px;
}

body.page-memberships .plan-name .plan-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.page-memberships .plan-name .ttl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 4px;
}

body.page-memberships .plan-name .desc {
  font-size: 13px;
  color: #888;
  font-weight: 400;
}

body.page-memberships .badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #34A853;
  font-weight: 500;
}

body.page-memberships .badge-active .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e44;
}

body.page-memberships .price-main {
  font-size: 18px;
  font-weight: 400;
  color: #1f1f1f;
  margin-bottom: 4px;
}

body.page-memberships .price-sub {
  font-size: 13px;
  color: #888;
}

body.page-memberships .features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-memberships .feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #888;
}

body.page-memberships .feature .chk {
  color: #4a6b3f;
  display: flex;
  flex-shrink: 0;
}

body.page-memberships .feature .chk svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

body.page-memberships .sub-main {
  font-size: 18px;
  font-weight: 400;
  color: #1f1f1f;
  margin-bottom: 4px;
}

body.page-memberships .sub-sub {
  font-size: 13px;
  color: #888;
}

body.page-memberships .rev-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.page-memberships .rev-main {
  font-size: 18px;
  font-weight: 400;
  color: #1f1f1f;
  margin-bottom: 4px;
}

body.page-memberships .rev-sub {
  font-size: 13px;
  color: #888;
}

body.page-memberships .rev-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

body.page-memberships .rev-bars span {
  width: 6px;
  background: #4a6b3f;
  border-radius: 1px;
}

/* ===== Bottom row: Promo codes + Distribution ===== */
body.page-memberships .bottom-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

body.page-memberships .panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-memberships .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

body.page-memberships .panel-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
}

body.page-memberships .pill-btn {
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 15px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #444;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-memberships .pill-btn:hover {
  background: #f7f7f4;
}

body.page-memberships .promo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-memberships .promo-table thead th {
  text-align: left;
  padding: 12px 8px;
  color: #7D848D;
  font-weight: 500;
  border-bottom: 1px solid #ececec;
  font-size: 12.5px;
}

body.page-memberships .promo-table tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid #f1f1ed;
  color: #2c2c2c;
  vertical-align: middle;
}

body.page-memberships .promo-table tbody tr:last-child td {
  border-bottom: none;
}

body.page-memberships .promo-code {
  font-weight: 600;
  color: #1f1f1f;
  letter-spacing: .3px;
}

body.page-memberships .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

body.page-memberships .status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.page-memberships .status.active {
  color: #34A853;
}

body.page-memberships .status.active .dot {
  background: #2f9e44;
}

body.page-memberships .actions {
  display: flex;
  gap: 6px;
}

body.page-memberships .act-btn {
  width: 30px;
  height: 24px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-memberships .act-btn:hover {
  background: #f7f7f4;
}

body.page-memberships .act-btn svg {
  width: 13px;
  height: 13px;
}

/* Donut */
body.page-memberships .distribution-card {
  display: flex;
  flex-direction: column;
}

body.page-memberships .donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* ==========================================================================
   PAGE: licenses  (from licenses.html)
   ========================================================================== */
body.page-licenses * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-licenses {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-licenses .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-licenses .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-licenses .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-licenses .logo .dot {
  color: #6b8e23;
}

body.page-licenses .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-licenses .nav a,
body.page-licenses .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-licenses .nav a:hover,
body.page-licenses .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-licenses .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-licenses .nav a .ico,
body.page-licenses .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-licenses .nav a .ico svg,
body.page-licenses .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-licenses .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-licenses .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-licenses .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-licenses .topbar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-licenses .search {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-licenses .search input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-licenses .search .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-licenses .search .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-licenses .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-licenses .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-licenses .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-licenses .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-licenses .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-licenses .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-licenses .profile .meta {
  line-height: 1.2;
}

body.page-licenses .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-licenses .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Stat cards row ===== */
body.page-licenses .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-licenses .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-licenses .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

body.page-licenses .stat-card .label {
  color: #7D848D;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex: 1;
}

body.page-licenses .stat-card .head {
  overflow: visible;
}

body.page-licenses .stat-card .value {
  font-size: 26px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

body.page-licenses .stat-card .icon-pill {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #1f3d2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-licenses .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-licenses .stat-card .icon-pill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.page-licenses .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-licenses .delta.up {
  color: #34A853;
}

body.page-licenses .delta.down {
  color: #e03131;
}

/* ===== Filter row ===== */
body.page-licenses .filter-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

body.page-licenses .filter-row select {
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  min-width: 180px;
}

body.page-licenses .filter-row select:hover {
  border-color: #cfcfca;
}

/* ===== Toolbar (Export / Filters) — inline with filter row ===== */
body.page-licenses .filter-row {
  align-items: center;
  flex-wrap: wrap;
}

body.page-licenses .lic-toolbar {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

body.page-licenses .lic-tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #e4e4df;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2c2c2c;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

body.page-licenses .lic-tb-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-licenses .lic-tb-btn svg {
  width: 16px;
  height: 16px;
  color: #7D848D;
}

body.page-licenses #btn-filters {
  color: #3b6bbf;
}

body.page-licenses #btn-filters svg {
  color: #3b6bbf;
}

/* ===== Actions column ===== */
body.page-licenses .lic-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.page-licenses .lic-act-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e2dc;
  border-radius: 7px;
  background: #fff;
  color: #7D848D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

body.page-licenses .lic-act-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-licenses .lic-act-btn svg {
  width: 16px;
  height: 16px;
}

body.page-licenses .lic-act-btn[data-act="view"],
body.page-licenses .lic-act-btn[data-act="mail"] {
  color: #7D848D;
}

body.page-licenses .lic-act-btn[data-act="view"] svg,
body.page-licenses .lic-act-btn[data-act="mail"] svg {
  stroke: #7D848D;
}

body.page-licenses .lic-act-btn.approve {
  color: #34A853;
}

body.page-licenses .lic-act-btn.approve:hover {
  background: #eaf7ee;
  border-color: #b9e0c3;
}

body.page-licenses .lic-act-btn.reject {
  color: #e03131;
}

body.page-licenses .lic-act-btn.reject:hover {
  background: #fdecec;
  border-color: #f1c1c1;
}

/* ===== Table card ===== */
body.page-licenses .table-card {
  background: #fff;
  border-radius: 14px;
  padding: 6px 20px 8px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-licenses table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-licenses thead th {
  text-align: left;
  padding: 16px 10px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-licenses tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7D848D;
}

body.page-licenses tbody tr:last-child td {
  border-bottom: none;
}

body.page-licenses tbody tr:hover {
  background: #fbfbf8;
}

body.page-licenses .checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid #7D848D;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

body.page-licenses .checkbox:checked {
  background: #4a6b3f;
  border-color: #4a6b3f;
}

body.page-licenses .user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111111;
}

body.page-licenses .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Status badges */
body.page-licenses .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

body.page-licenses .badge.approved {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-licenses .badge.rejected {
  color: #e03131;
  background: #fdecec;
  border-color: #f3c0c0;
}

body.page-licenses .badge.pending {
  color: #C45508;
  background: #fff1e3;
  border-color: #f4ceaa;
}

body.page-licenses .badge.resub {
  color: #7D848D;
  background: #f1f1ed;
  border-color: #d8d8d2;
}

/* Footer count */
body.page-licenses .table-footer {
  padding: 24px 4px 8px;
  color: #7D848D;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pagination */
body.page-licenses .lic-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-licenses .pg-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #7D848D;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

body.page-licenses .pg-btn:hover {
  background: #f5efdc;
  color: #1f1f1f;
}

body.page-licenses .pg-btn.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-licenses .pg-btn svg {
  width: 14px;
  height: 14px;
}

body.page-licenses .pg-prev,
body.page-licenses .pg-next {
  color: #7D848D;
}

body.page-licenses .pg-ellipsis {
  color: #7D848D;
  padding: 0 4px;
  font-size: 13px;
  user-select: none;
}

/* ===== Bottom row: Legend + Actions ===== */
body.page-licenses .bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

body.page-licenses .panel {
  background: #fff;
  border-radius: 26px;
  padding: 22px 26px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
  min-width: 0;
}

body.page-licenses .panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

body.page-licenses .legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

body.page-licenses .legend-item {
  min-width: 0;
}

body.page-licenses .legend-item .legend-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 4px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

body.page-licenses .legend-item .legend-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.page-licenses .legend-item.approved .legend-head {
  color: #34A853;
}

body.page-licenses .legend-item.approved .dot {
  background: #2f9e44;
}

body.page-licenses .legend-item.pending .legend-head {
  color: #C45508;
}

body.page-licenses .legend-item.pending .dot {
  background: #C45508;
}

body.page-licenses .legend-item.rejected .legend-head {
  color: #e03131;
}

body.page-licenses .legend-item.rejected .dot {
  background: #e03131;
}

body.page-licenses .legend-item.resub .legend-head {
  color: #7D848D;
}

body.page-licenses .legend-item.resub .dot {
  background: #9a9a9a;
}

body.page-licenses .legend-item .legend-desc {
  color: #999;
  font-size: 12.5px;
  line-height: 1.4;
}

body.page-licenses .actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

body.page-licenses .action-item {
  cursor: pointer;
}

body.page-licenses .action-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 4px;
}

body.page-licenses .action-head svg {
  width: 14px;
  height: 14px;
}

body.page-licenses .action-item .action-desc {
  color: #999;
  font-size: 12.5px;
  line-height: 1.4;
}

body.page-licenses .action-item.view .action-head {
  color: #C45508;
}

body.page-licenses .action-item.approve .action-head {
  color: #34A853;
}

body.page-licenses .action-item.reject .action-head {
  color: #e03131;
}

body.page-licenses .action-item.resub .action-head {
  color: #7D848D;
}

/* ==========================================================================
   PAGE: revenue  (from revenue.html)
   ========================================================================== */
body.page-revenue * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-revenue {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-revenue .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-revenue .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-revenue .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-revenue .logo .dot {
  color: #6b8e23;
}

body.page-revenue .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-revenue .nav a,
body.page-revenue .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-revenue .nav a:hover,
body.page-revenue .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-revenue .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-revenue .nav a .ico,
body.page-revenue .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-revenue .nav a .ico svg,
body.page-revenue .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-revenue .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-revenue .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-revenue .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-revenue .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-revenue .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-revenue .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-revenue .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-revenue .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-revenue .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-revenue .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-revenue .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-revenue .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-revenue .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-revenue .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-revenue .profile .meta {
  line-height: 1.2;
}

body.page-revenue .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-revenue .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Stat cards row ===== */
body.page-revenue .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-revenue .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-revenue .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-revenue .stat-card .label {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
}

body.page-revenue .stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 4px 0 6px;
}

body.page-revenue .stat-card .icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  color: #1f3d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-revenue .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-revenue .stat-card .icon-pill.ad {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #1f3d2a;
}

body.page-revenue .stat-card .icon-pill.pct {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f3d2a;
  color: #fff;
}

body.page-revenue .stat-card .icon-pill.pct svg {
  width: 20px;
  height: 20px;
}

body.page-revenue .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-revenue .delta.up {
  color: #34A853;
}

body.page-revenue .delta.down {
  color: #e03131;
}

/* ===== Filter row ===== */
body.page-revenue .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

body.page-revenue .filter-row select {
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  min-width: 150px;
}

body.page-revenue .filter-row .spacer {
  flex: 1;
}

body.page-revenue .btn-apply {
  height: 38px;
  padding: 0 22px;
  background: #2d4a23;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-revenue .btn-apply:hover {
  background: #24391b;
}

body.page-revenue .btn-reset {
  height: 38px;
  padding: 0 18px;
  background: #fff;
  color: #555;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-revenue .btn-reset:hover {
  background: #f7f7f4;
}

body.page-revenue .btn-reset svg {
  width: 13px;
  height: 13px;
}

/* ===== Body grid ===== */
body.page-revenue .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 425px;
  gap: 18px;
}

/* ===== Cards ===== */
body.page-revenue .card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 18px;
}

body.page-revenue .card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

/* Charts row */
body.page-revenue .charts-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
}

body.page-revenue .charts-row .card {
  margin-bottom: 0;
  min-width: 0;
}

/* Donut */
body.page-revenue .donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

body.page-revenue .donut-wrap svg {
  flex-shrink: 0;
  max-width: 100%;
}

body.page-revenue .legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12.5px;
}

body.page-revenue .legend .row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.page-revenue .legend .sw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
}

body.page-revenue .legend .ttl {
  color: #1f1f1f;
  font-weight: 500;
}

body.page-revenue .legend .sub {
  color: #888;
  font-size: 12px;
}

/* Side mini cards */
body.page-revenue .mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-revenue .mini-card .mini-ic {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eef1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-revenue .mini-card .mini-ic svg {
  width: 26px;
  height: 26px;
}

body.page-revenue .mini-card .mini-body .mini-top {
  color: #7D848D;
  font-size: 12.5px;
  margin-bottom: 3px;
}

body.page-revenue .mini-card .mini-body .mini-val {
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-revenue .mini-card .mini-body .mini-sub {
  color: #999;
  font-size: 12px;
  margin-top: 2px;
}

/* Alerts */
body.page-revenue .alert-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-revenue .alert-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

body.page-revenue .alert-item .a-ic {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-revenue .alert-item .a-ic svg {
  width: 13px;
  height: 13px;
}

body.page-revenue .alert-item.warn .a-ic {
  background: #1f3d2a;
  color: #fff;
}

body.page-revenue .alert-item.info .a-ic {
  background: #1f3d2a;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

body.page-revenue .alert-item.good .a-ic {
  background: transparent;
  color: #1f3d2a;
}

body.page-revenue .alert-item.good .a-ic svg {
  width: 24px;
  height: 24px;
}

body.page-revenue .alert-item .a-body .a-title {
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 500;
}

body.page-revenue .alert-item .a-body .a-sub {
  color: #999;
  font-size: 12px;
  margin-top: 2px;
}

/* Quick Actions */
body.page-revenue .qa-list {
  display: flex;
  flex-direction: column;
}

body.page-revenue .qa-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid #f1f1ed;
  cursor: pointer;
}

body.page-revenue .qa-list a:last-child {
  border-bottom: none;
}

body.page-revenue .qa-list a:hover {
  color: #2d4a23;
}

body.page-revenue .qa-list a svg {
  width: 14px;
  height: 14px;
  color: #aaa;
}

/* ===== Transactions table ===== */
body.page-revenue table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-revenue thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-revenue tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7a7a7a;
}

body.page-revenue tbody tr:last-child td {
  border-bottom: none;
}

body.page-revenue tbody tr:hover {
  background: #fbfbf8;
}

body.page-revenue td.amount {
  color: #1f1f1f;
  font-weight: 500;
}

body.page-revenue td.amount.neg {
  color: #e03131;
}

body.page-revenue .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
}

body.page-revenue .badge.completed {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-revenue .badge.refunded {
  color: #e03131;
  background: #fdecec;
  border-color: #f3c0c0;
}

/* Pagination */
body.page-revenue .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 4px;
  color: #888;
  font-size: 12.5px;
}

body.page-revenue .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-revenue .pagination button,
body.page-revenue .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-revenue .pagination button:hover {
  background: #f7f7f4;
}

body.page-revenue .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-revenue .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-revenue .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-revenue .pagination svg {
  width: 12px;
  height: 12px;
}

body.page-revenue .chart-scroll {
  overflow: visible;
}

/* ==========================================================================
   PAGE: reports  (from reports.html)
   ========================================================================== */
body.page-reports * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-reports {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-reports .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-reports .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-reports .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-reports .logo .dot {
  color: #6b8e23;
}

body.page-reports .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-reports .nav a,
body.page-reports .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-reports .nav a:hover,
body.page-reports .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-reports .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-reports .nav a .ico,
body.page-reports .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-reports .nav a .ico svg,
body.page-reports .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-reports .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-reports .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-reports .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-reports .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-reports .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-reports .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-reports .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-reports .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-reports .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-reports .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-reports .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-reports .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-reports .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-reports .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-reports .profile .meta {
  line-height: 1.2;
}

body.page-reports .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-reports .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Stat cards row ===== */
body.page-reports .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

body.page-reports .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-reports .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

body.page-reports .stat-card .label {
  color: #7D848D;
  font-size: 14px;
  font-weight: 500;
}

body.page-reports .stat-card .value {
  font-size: 30px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-reports .stat-card .icon-pill {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #1f3d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-reports .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

/* ===== Filter row ===== */
body.page-reports .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

body.page-reports .filter-row select {
  height: 38px;
  flex: 0 0 175px;
  width: 175px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

body.page-reports .filter-row .spacer {
  flex: 1;
}

body.page-reports .filter-row .search-field {
  flex: 0 0 280px;
  width: 280px;
}

body.page-reports .filter-row .search-field {
  position: relative;
  height: 38px;
}

body.page-reports .filter-row .search-field input {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #444;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-reports .filter-row .search-field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #999;
}

body.page-reports .filters-btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #3b6bbf;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-reports .filters-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-reports .filters-btn svg {
  width: 13px;
  height: 13px;
  color: #3b6bbf;
}

/* ===== Body grid ===== */
body.page-reports .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 18px;
}

/* ===== Cards ===== */
body.page-reports .card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 18px;
}

body.page-reports .card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
}

body.page-reports .card.with-divider h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 14px;
}

/* ===== Reports table ===== */
body.page-reports table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-reports thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-reports tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7a7a7a;
}

body.page-reports tbody tr:last-child td {
  border-bottom: none;
}

body.page-reports tbody tr.selected,
body.page-reports tbody tr:hover {
  background: #fbfbf8;
  cursor: pointer;
}

body.page-reports .checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #7D848D;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

body.page-reports .checkbox:checked {
  background: #4a6b3f;
  border-color: #4a6b3f;
}

body.page-reports .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

body.page-reports .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-reports .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
}

body.page-reports .badge.resolved {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-reports .badge.review {
  color: #3b6bbf;
  background: #eaf1fa;
  border-color: #cfdcef;
}

body.page-reports .badge.pending {
  color: #C45508;
  background: #fff1e3;
  border-color: #f4ceaa;
}

body.page-reports .row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

body.page-reports .mini-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Inter", sans-serif;
}

body.page-reports .mini-btn svg {
  width: 11px;
  height: 11px;
}

body.page-reports .mini-btn.ok {
  border: 1px solid #b8e0c2;
  background: #fff;
  color: #34A853;
}

body.page-reports .mini-btn.ok:hover {
  background: #e8f5ec;
}

body.page-reports .mini-btn.danger {
  border: 1px solid #f3c0c0;
  background: #fff;
  color: #e03131;
}

body.page-reports .mini-btn.danger:hover {
  background: #fdecec;
}

body.page-reports .mini-btn.icon {
  width: 24px;
  padding: 0;
  justify-content: center;
  border: 1px solid #e4e4df;
  background: #fff;
  color: #888;
}

body.page-reports .mini-btn.icon:hover {
  background: #f7f7f4;
  color: #e03131;
}

/* Pagination */
body.page-reports .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 24px;
  color: #888;
  font-size: 12.5px;
}

body.page-reports .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-reports .pagination button,
body.page-reports .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-reports .pagination button:hover {
  background: #f7f7f4;
}

body.page-reports .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-reports .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-reports .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-reports .pagination svg {
  width: 12px;
  height: 12px;
}

/* ===== Moderation Insights ===== */
body.page-reports .insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

body.page-reports .insight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.page-reports .insight-item .ins-ic {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eef1ec;
  color: #1f3d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-reports .insight-item .ins-ic svg {
  width: 24px;
  height: 24px;
}

body.page-reports .insight-item .ins-body .ins-top {
  color: #7D848D;
  font-size: 12.5px;
  margin-bottom: 3px;
}

body.page-reports .insight-item .ins-body .ins-val {
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-reports .insight-item .ins-body .ins-sub {
  color: #999;
  font-size: 12px;
  margin-top: 3px;
}

/* ===== Report Details panel ===== */
body.page-reports .detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

body.page-reports .detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 13px;
}

body.page-reports .detail-row .d-label {
  color: #888;
}

body.page-reports .detail-row .d-value {
  color: #1f1f1f;
}

body.page-reports .detail-row .d-value.muted {
  color: #7D848D;
}

body.page-reports .section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 6px 0 10px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
}

body.page-reports .content-preview {
  background: #ebf2f3;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 18px 38px;
  color: #7D848D;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}

body.page-reports .mod-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

body.page-reports .btn-block {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-reports .btn-resolve {
  background: #2f9e44;
  color: #fff;
}

body.page-reports .btn-resolve:hover {
  background: #28893a;
}

body.page-reports .btn-suspend {
  background: #e23b3b;
  color: #fff;
}

body.page-reports .btn-suspend:hover {
  background: #c52f2f;
}

body.page-reports .btn-outline {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #e4e4df;
}

body.page-reports .btn-outline:hover {
  background: #faf7ec;
}

/* ==========================================================================
   PAGE: resources  (from resources.html)
   ========================================================================== */
body.page-resources * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-resources {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-resources .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-resources .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-resources .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-resources .logo .dot {
  color: #6b8e23;
}

body.page-resources .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-resources .nav a,
body.page-resources .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-resources .nav a:hover,
body.page-resources .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-resources .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-resources .nav a .ico,
body.page-resources .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-resources .nav a .ico svg,
body.page-resources .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-resources .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-resources .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-resources .topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-resources .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.35;
}

body.page-resources .search-top {
  flex: 1;
  max-width: 520px;
  margin: 4px 24px 0;
  position: relative;
}

body.page-resources .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-resources .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-resources .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-resources .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

body.page-resources .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-resources .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-resources .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-resources .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-resources .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-resources .profile .meta {
  line-height: 1.2;
}

body.page-resources .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-resources .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Stat cards row ===== */
body.page-resources .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-resources .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-resources .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

body.page-resources .stat-card .label {
  color: #7D848D;
  font-size: 13px;
  font-weight: 500;
}

body.page-resources .stat-card .value {
  font-size: 26px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

body.page-resources .stat-card .icon-pill {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #1f3d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-resources .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-resources .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-resources .delta.up {
  color: #34A853;
}

body.page-resources .delta.down {
  color: #e03131;
}

/* ===== Body grid (table + sidebar) ===== */
body.page-resources .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
}

@media (max-width: 1400px) {
  body.page-resources .body-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
  }
}

@media (max-width: 1200px) {
  body.page-resources .body-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
}

/* ===== Filter row (above table) ===== */
body.page-resources .filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

body.page-resources .filter-row select {
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  flex: 0 0 165px;
  width: 165px;
}

/* ===== Right column search + filters btn ===== */
body.page-resources .right-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

body.page-resources .right-search .field {
  flex: 1;
  position: relative;
}

body.page-resources .right-search input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #444;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-resources .right-search .field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #999;
}

body.page-resources .filters-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #3b6bbf;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-resources .filters-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-resources .filters-btn svg {
  width: 13px;
  height: 13px;
  color: #3b6bbf;
}

/* ===== Table card ===== */
body.page-resources .table-card {
  background: #fff;
  border-radius: 14px;
  padding: 4px 20px 6px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
}

body.page-resources table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-resources thead th {
  text-align: left;
  padding: 16px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-resources tbody td {
  padding: 13px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7a7a7a;
}

body.page-resources tbody tr:last-child td {
  border-bottom: none;
}

body.page-resources tbody tr:hover {
  background: #fbfbf8;
}

body.page-resources .res-title {
  color: #1f1f1f;
  font-weight: 500;
  margin-bottom: 2px;
}

body.page-resources .res-sub {
  color: #a0a0a0;
  font-size: 12px;
}

/* Visibility badges */
body.page-resources .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
}

body.page-resources .badge.published {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-resources .badge.archived {
  color: #7D848D;
  background: #f1f1ed;
  border-color: #d8d8d2;
}

body.page-resources .badge.need {
  color: #C45508;
  background: #fff1e3;
  border-color: #f4ceaa;
}

/* Row actions */
body.page-resources .row-actions {
  display: flex;
  gap: 6px;
}

body.page-resources .row-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e2dc;
  border-radius: 6px;
  background: #fff;
  color: #7D848D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}

body.page-resources .row-actions button:hover {
  background: #f7f7f4;
  color: #2d4a23;
  border-color: #d4d4cd;
}

body.page-resources .row-actions button svg {
  width: 14px;
  height: 14px;
}

/* ===== Pagination ===== */
body.page-resources .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4px 8px;
  color: #7D848D;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 16px;
}

body.page-resources .pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-resources .pagination button,
body.page-resources .pagination span {
  min-width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7D848D;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  padding: 0 8px;
  transition: background .15s, color .15s;
}

body.page-resources .pagination button:hover {
  background: #f5efdc;
  color: #1f1f1f;
}

body.page-resources .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-resources .pagination .ellipsis {
  cursor: default;
  color: #7D848D;
}

body.page-resources .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-resources .pagination svg {
  width: 14px;
  height: 14px;
}

/* ===== Right side cards ===== */
body.page-resources .panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, 0.10), 0 2px 6px rgba(60, 60, 60, 0.06);
  margin-bottom: 16px;
}

body.page-resources .panel {
  padding: 22px 24px;
}

body.page-resources .panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececec;
}

/* Resource Actions */
body.page-resources .action-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page-resources .action-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

body.page-resources .action-list a:hover {
  color: #2d4a23;
}

body.page-resources .action-list a svg {
  width: 20px;
  height: 20px;
  color: #1f3d2a;
  flex-shrink: 0;
}

body.page-resources .action-list a.has-dot::before {
  content: '';
  position: absolute;
  left: 16px;
  top: -1px;
  width: 6px;
  height: 6px;
  background: #34A853;
  border-radius: 50%;
}

/* Resource Categories */
body.page-resources .cat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page-resources .cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

body.page-resources .cat-row .cat-ic {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f3d2a;
  flex-shrink: 0;
}

body.page-resources .cat-row .cat-ic svg {
  width: 24px;
  height: 24px;
}

body.page-resources .cat-row .cat-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1f1f1f;
}

body.page-resources .cat-row .cat-count {
  color: #7D848D;
  font-size: 13px;
}

/* Recent activity */
body.page-resources .activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-resources .activity-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

body.page-resources .activity-item .a-title {
  font-weight: 600;
  color: #1f1f1f;
  font-size: 13.5px;
  margin-bottom: 3px;
}

body.page-resources .activity-item .a-sub {
  color: #999;
  font-size: 12px;
}

body.page-resources .activity-item .a-date {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

body.page-resources .view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  color: #0E3E27;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   PAGE: gps  (from gps.html)
   ========================================================================== */
body.page-gps * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-gps {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-gps .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-gps .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-gps .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-gps .logo .dot {
  color: #6b8e23;
}

body.page-gps .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-gps .nav a,
body.page-gps .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-gps .nav a:hover,
body.page-gps .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-gps .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-gps .nav a .ico,
body.page-gps .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-gps .nav a .ico svg,
body.page-gps .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-gps .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-gps .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-gps .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-gps .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-gps .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-gps .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-gps .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-gps .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-gps .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-gps .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-gps .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-gps .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-gps .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-gps .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-gps .profile .meta {
  line-height: 1.2;
}

body.page-gps .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-gps .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Export bar ===== */
body.page-gps .export-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

body.page-gps .pill-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #444;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

body.page-gps .pill-btn:hover {
  background: #f7f7f4;
}

body.page-gps .pill-btn svg {
  width: 14px;
  height: 14px;
}

body.page-gps .pill-btn.dropdown {
  padding: 0 36px 0 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
}

/* ===== Stat cards row ===== */
body.page-gps .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-gps .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-gps .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-gps .stat-card .label {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
}

body.page-gps .stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 4px 0 6px;
}

body.page-gps .stat-card .value.small {
  font-size: 21px;
}

body.page-gps .stat-card .icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
}

body.page-gps .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-gps .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-gps .delta.up {
  color: #34A853;
}

body.page-gps .delta.down {
  color: #e03131;
}

body.page-gps .delta.info {
  color: #3b6bbf;
}

/* ===== Filter row ===== */
body.page-gps .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

body.page-gps .filter-row select {
  flex: 0 0 150px;
  width: 150px;
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

body.page-gps .filter-row .range-field {
  position: relative;
  height: 38px;
  flex: 0 0 235px;
}

body.page-gps .filter-row .range-field input {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #4a4a4a;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-gps .filter-row .range-field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: #888;
  pointer-events: none;
}

body.page-gps .right-search-wrap {
  display: flex;
  gap: 10px;
  flex: 0 0 280px;
  width: 280px;
  margin-left: auto;
}

body.page-gps .filter-row .filters-btn {
  flex: 0 0 auto;
}

body.page-gps .right-search-wrap .field {
  flex: 1;
  position: relative;
}

body.page-gps .right-search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #444;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-gps .right-search-wrap .field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #999;
}

body.page-gps .filters-btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #3b6bbf;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-gps .filters-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-gps .filters-btn svg {
  width: 13px;
  height: 13px;
  color: #3b6bbf;
}

/* ===== Body grid (table + sidebar) ===== */
body.page-gps .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 22px;
}

/* ===== Table card ===== */
body.page-gps .table-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px 8px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-gps .table-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
}

body.page-gps table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-gps thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-gps tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7a7a7a;
}

body.page-gps tbody tr:last-child td {
  border-bottom: none;
}

body.page-gps tbody tr:hover {
  background: #fbfbf8;
}

body.page-gps .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

body.page-gps .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-gps .loc-main {
  color: #1f1f1f;
  font-weight: 500;
}

body.page-gps .loc-sub {
  color: #b0b0b0;
  font-size: 12px;
  margin-top: 2px;
}

body.page-gps .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid;
}

body.page-gps .badge.yes {
  color: #34A853;
  background: #e8f5ec;
  border-color: #b8e0c2;
}

body.page-gps .badge.no {
  color: #e03131;
  background: #fdecec;
  border-color: #f3c0c0;
}

body.page-gps .row-actions {
  display: flex;
  gap: 5px;
}

body.page-gps .row-actions button {
  width: 26px;
  height: 22px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-gps .row-actions button:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-gps .row-actions button svg {
  width: 12px;
  height: 12px;
}

/* ===== Pagination ===== */
body.page-gps .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px 4px;
  color: #888;
  font-size: 12.5px;
}

body.page-gps .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-gps .pagination button,
body.page-gps .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-gps .pagination button:hover {
  background: #f7f7f4;
}

body.page-gps .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-gps .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-gps .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-gps .pagination svg {
  width: 12px;
  height: 12px;
}

/* ===== Right side panels ===== */
body.page-gps .panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 16px;
}

body.page-gps .panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

/* Top States bars */
body.page-gps .top-states {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-gps .top-states .row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 10px;
}

body.page-gps .top-states .name {
  color: #7D848D;
  font-size: 13px;
}

body.page-gps .top-states .bar {
  height: 8px;
  border-radius: 4px;
  background: #2d4a23;
}

body.page-gps .view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  color: #0E3E27;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* Tag types donut */
body.page-gps .donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.page-gps .donut-wrap svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  flex-shrink: 0;
}

body.page-gps .legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  width: 100%;
}

body.page-gps .legend .row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-gps .legend .sw {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

body.page-gps .legend .ttl {
  color: #2c2c2c;
  font-weight: 500;
  font-size: 12.5px;
}

body.page-gps .legend .num {
  margin-left: auto;
  color: #888;
  font-size: 12px;
  padding-left: 8px;
}

/* ==========================================================================
   PAGE: ai  (from ai.html)
   ========================================================================== */
body.page-ai * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-ai {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-ai .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-ai .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-ai .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-ai .logo .dot {
  color: #6b8e23;
}

body.page-ai .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-ai .nav a,
body.page-ai .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-ai .nav a:hover,
body.page-ai .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-ai .nav a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-ai .nav a .ico,
body.page-ai .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-ai .nav a .ico svg,
body.page-ai .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-ai .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-ai .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-ai .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-ai .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-ai .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-ai .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-ai .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-ai .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-ai .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-ai .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
}

body.page-ai .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-ai .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-ai .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-ai .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-ai .profile .meta {
  line-height: 1.2;
}

body.page-ai .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-ai .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Stat cards row ===== */
body.page-ai .stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

body.page-ai .stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
}

body.page-ai .stat-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

body.page-ai .stat-card .label {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
}

body.page-ai .stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 4px 0 6px;
}

body.page-ai .stat-card .icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0E3E27;
}

body.page-ai .stat-card .icon-pill svg {
  width: 28px;
  height: 28px;
}

body.page-ai .delta {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-ai .delta.up {
  color: #34A853;
}

body.page-ai .delta.down {
  color: #e03131;
}

/* ===== Filter row ===== */
body.page-ai .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

body.page-ai .filter-row select {
  flex: 0 0 160px;
  width: 160px;
}

body.page-ai .filter-row .range-field {
  flex: 0 0 235px;
}

body.page-ai .filter-row .search-field {
  flex: 0 0 280px;
  width: 280px;
}

body.page-ai .filter-row .spacer,
body.page-ai .filter-row .filters-btn {
  flex: 0 0 auto;
}

body.page-ai .filter-row .filters-btn {
  margin-left: auto;
}

body.page-ai .filter-row .reset-btn {
  flex: 0 0 auto;
}

body.page-ai .filter-row select,
body.page-ai .filter-row input[type="text"] {
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #4a4a4a;
  font-family: "Inter", sans-serif;
  outline: none;
}

body.page-ai .filter-row select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
}

body.page-ai .filter-row .range-field,
body.page-ai .filter-row .search-field {
  position: relative;
  height: 38px;
}

body.page-ai .filter-row .range-field input,
body.page-ai .filter-row .search-field input {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #4a4a4a;
  outline: none;
  font-family: "Inter", sans-serif;
}

body.page-ai .filter-row .range-field svg,
body.page-ai .filter-row .search-field svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #888;
  pointer-events: none;
}

body.page-ai .filters-btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  color: #3b6bbf;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-ai .filters-btn:hover {
  background: #f7f7f2;
  border-color: #d4d4cd;
}

body.page-ai .filters-btn svg {
  width: 13px;
  height: 13px;
  color: #3b6bbf;
}

body.page-ai .reset-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

body.page-ai .reset-btn:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-ai .reset-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== Body grid ===== */
body.page-ai .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
}

/* ===== Cards ===== */
body.page-ai .card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 18px;
}

body.page-ai .card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
}

body.page-ai .card.with-divider h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 14px;
}

body.page-ai table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-ai thead th {
  text-align: left;
  padding: 14px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
}

body.page-ai tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #7a7a7a;
}

body.page-ai tbody tr:last-child td {
  border-bottom: none;
}

body.page-ai tbody tr:hover {
  background: #fbfbf8;
}

body.page-ai .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

body.page-ai .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-ai .qa-num {
  color: #1f1f1f;
  font-weight: 500;
}

body.page-ai .qa-sub {
  color: #b0b0b0;
  font-size: 12px;
  margin-top: 2px;
}

body.page-ai .pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  border: 1px solid;
  font-weight: 500;
}

body.page-ai .pill.premium {
  color: #3b6bbf;
  background: #eaf1fa;
  border-color: #cfdcef;
}

body.page-ai .pill.free {
  color: #7D848D;
  background: #f1f1ed;
  border-color: #e2e2dc;
}

body.page-ai .pill.basic {
  color: #b58105;
  background: #fff4d6;
  border-color: #f1dba0;
}

body.page-ai .rating {
  color: #7D848D;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-ai .rating .star {
  color: #c4933d;
}

body.page-ai .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

body.page-ai .status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.page-ai .status.active {
  color: #34A853;
}

body.page-ai .status.active .dot {
  background: #2f9e44;
}

body.page-ai .status.inactive {
  color: #e03131;
}

body.page-ai .status.inactive .dot {
  background: #e03131;
}

body.page-ai .row-actions {
  display: flex;
  gap: 5px;
}

body.page-ai .row-actions button {
  width: 26px;
  height: 22px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-ai .row-actions button:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-ai .row-actions button svg {
  width: 12px;
  height: 12px;
}

/* Pagination */
body.page-ai .table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 4px;
  color: #888;
  font-size: 12.5px;
  margin-bottom: 18px;
}

body.page-ai .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-ai .pagination button,
body.page-ai .pagination span {
  min-width: 28px;
  height: 28px;
  border: 1px solid #e4e4df;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 0 8px;
  font-family: "Inter", sans-serif;
}

body.page-ai .pagination button:hover {
  background: #f7f7f4;
}

body.page-ai .pagination .active {
  background: #f5efdc;
  color: #1f1f1f;
  border-color: #e6dfc6;
  font-weight: 600;
}

body.page-ai .pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: #888;
}

body.page-ai .pagination button[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

body.page-ai .pagination svg {
  width: 12px;
  height: 12px;
}

/* Flagged prompts pill */
body.page-ai .pill.violates {
  color: #e03131;
  background: #fdecec;
  border-color: #f3c0c0;
}

/* Donut */
body.page-ai .donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

body.page-ai .legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
}

body.page-ai .legend .row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.page-ai .legend .sw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
}

body.page-ai .legend .ttl {
  color: #1f1f1f;
  font-weight: 500;
}

body.page-ai .legend .sub {
  color: #888;
  font-size: 12px;
}

/* Feedback bars */
body.page-ai .feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-ai .feedback-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

body.page-ai .feedback-row .lbl {
  color: #1f1f1f;
}

body.page-ai .feedback-row .bar-bg {
  height: 8px;
  border-radius: 4px;
  background: #f0f0ec;
  overflow: hidden;
}

body.page-ai .feedback-row .bar {
  height: 100%;
  border-radius: 4px;
}

body.page-ai .feedback-row .pct {
  color: #1f1f1f;
  font-size: 12.5px;
  text-align: right;
}

body.page-ai .view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  color: #0E3E27;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   PAGE: settings  (from settings.html)
   ========================================================================== */
body.page-settings * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page-settings {
  font-family: "Inter", sans-serif;
  background: #F9F9F9;
  color: #2c2c2c;
  font-size: 13px;
}

body.page-settings .app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
body.page-settings .sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #ececec;
  padding: 0 14px 22px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

body.page-settings .logo {
  font-weight: 800;
  font-size: 22px;
  color: #4a6b3f;
  letter-spacing: 1px;
  padding: 15px 35px 24px;
}

body.page-settings .logo .dot {
  color: #6b8e23;
}

body.page-settings .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 14px;
}

body.page-settings .nav a,
body.page-settings .sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9a9a96;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

body.page-settings .nav a:hover,
body.page-settings .sidebar-bottom a:hover {
  background: #faf5e6;
  color: #1f1f1f;
  padding: 11px 14px;
}

body.page-settings .nav a.active,
body.page-settings .sidebar-bottom a.active {
  background: #f5efdc;
  color: #1f1f1f;
  font-weight: 600;
}

body.page-settings .nav a .ico,
body.page-settings .sidebar-bottom a .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4a23;
  flex-shrink: 0;
}

body.page-settings .nav a .ico svg,
body.page-settings .sidebar-bottom a .ico svg {
  width: 26px;
  height: 26px;
}

body.page-settings .sidebar-bottom {
  border-top: 1px solid #ececec;
  padding: 14px 0 0 14px;
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Main ===== */
body.page-settings .main {
  flex: 1;
  padding: 22px 28px;
  min-width: 0;
}

/* Topbar */
body.page-settings .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

body.page-settings .topbar h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-settings .search-top {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
  position: relative;
}

body.page-settings .search-top input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: none;
  border-radius: 15px;
  background: #fff;
  outline: none;
  font-size: 13.5px;
  color: #444;
}

body.page-settings .search-top .s-ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
}

body.page-settings .search-top .s-ico svg {
  width: 18px;
  height: 18px;
}

body.page-settings .top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-settings .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5efdc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #4a6b3f;
  flex-shrink: 0;
  text-decoration: none;
}

body.page-settings .icon-btn svg {
  width: 20px;
  height: 20px;
}

body.page-settings .icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: #6b8e23;
  border-radius: 50%;
  border: 2px solid #f5efdc;
}

body.page-settings .profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #ececec;
}

body.page-settings .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

body.page-settings .profile .meta {
  line-height: 1.2;
}

body.page-settings .profile .name {
  font-weight: 600;
  font-size: 13px;
}

body.page-settings .profile .role {
  font-size: 11px;
  color: #999;
}

/* ===== Body grid ===== */
body.page-settings .body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

/* ===== Cards ===== */
body.page-settings .card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(60, 60, 60, .10), 0 2px 6px rgba(60, 60, 60, .06);
  margin-bottom: 18px;
}

body.page-settings .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

body.page-settings .card-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}

body.page-settings .card h3.plain {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

body.page-settings .card-sub {
  color: #999;
  font-size: 12.5px;
  margin-top: 6px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ececec;
}

body.page-settings .btn-green {
  height: 34px;
  padding: 0 14px;
  background: #1f3d18;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

body.page-settings .btn-green:hover {
  background: #172e12;
}

body.page-settings .btn-green svg {
  width: 13px;
  height: 13px;
}

body.page-settings .manage-link {
  display: inline-block;
  margin-top: 14px;
  color: #0E3E27;
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Tables ===== */
body.page-settings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.page-settings thead th {
  text-align: left;
  padding: 12px 8px;
  color: #111111;
  font-weight: 600;
  border-bottom: 1px solid #ececec;
  font-size: 12.5px;
}

body.page-settings tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid #f1f1ed;
  vertical-align: middle;
  color: #8a8a8a;
}

body.page-settings tbody tr:last-child td {
  border-bottom: none;
}

body.page-settings tbody tr:hover {
  background: #fbfbf8;
}

body.page-settings td.strong {
  color: #1f1f1f;
}

body.page-settings .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

body.page-settings .status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.page-settings .status.active {
  color: #34A853;
}

body.page-settings .status.active .dot {
  background: #2f9e44;
}

body.page-settings .status.inactive {
  color: #e03131;
}

body.page-settings .status.inactive .dot {
  background: #e03131;
}

body.page-settings .row-actions {
  display: flex;
  gap: 6px;
}

body.page-settings .row-actions button {
  width: 26px;
  height: 24px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-settings .row-actions button:hover {
  background: #f7f7f4;
  color: #2d4a23;
}

body.page-settings .row-actions button.del:hover {
  color: #e03131;
}

body.page-settings .row-actions button svg {
  width: 12px;
  height: 12px;
}

/* ===== Two-column inner row ===== */
body.page-settings .inner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

body.page-settings .inner-row .card {
  margin-bottom: 0;
  min-width: 0;
}

/* ===== Settings rows (label + control) ===== */
body.page-settings .set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

body.page-settings .set-row .lbl {
  color: #4a4a4a;
  font-size: 13px;
}

body.page-settings .set-row .lbl-grp {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-settings .set-input {
  width: 84px;
  height: 30px;
  border: 1px solid #e4e4df;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: #1f1f1f;
  outline: none;
  font-family: "Inter", sans-serif;
  text-align: left;
}

body.page-settings .unit {
  color: #9a9a9a;
  font-size: 12.5px;
}

/* Toggle switch */
body.page-settings .toggle {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #d4d4cd;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}

body.page-settings .toggle:checked {
  background: #3b86d6;
}

body.page-settings .toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

body.page-settings .toggle:checked::after {
  left: 20px;
}

body.page-settings .toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-settings .toggle-label .t-text {
  color: #4a4a4a;
  font-size: 12.5px;
}

/* Categories list */
body.page-settings .cat-list {
  display: flex;
  flex-direction: column;
}

body.page-settings .cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f1f1ed;
}

body.page-settings .cat-row:last-child {
  border-bottom: none;
}

body.page-settings .cat-row .cat-name {
  color: #1f1f1f;
  font-size: 13.5px;
}

body.page-settings .cat-row .cat-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-settings .cat-menu {
  width: 24px;
  height: 24px;
  border: 1px solid #e4e4df;
  border-radius: 5px;
  background: #fff;
  color: #888;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-settings .cat-menu:hover {
  background: #f7f7f4;
}

body.page-settings .cat-menu svg {
  width: 12px;
  height: 12px;
}

/* Setting Menu */
body.page-settings .menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-settings .menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-radius: 15px;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 13.5px;
  cursor: pointer;
}

body.page-settings .menu-list a:hover {
  background: #faf7ec;
  color: #2d4a23;
}

body.page-settings .menu-list a .m-ic {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f3d2a;
  flex-shrink: 0;
}

body.page-settings .menu-list a .m-ic svg {
  width: 22px;
  height: 22px;
}

/* Chips */
body.page-settings .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

body.page-settings .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f1ed;
  border: 1px solid #e2e2dc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #4a4a4a;
}

body.page-settings .chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #999;
  padding: 0;
  display: flex;
}

body.page-settings .chip button:hover {
  color: #e03131;
}

body.page-settings .chip button svg {
  width: 11px;
  height: 11px;
}

/* Select */
body.page-settings .set-select {
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid #e4e4df;
  border-radius: 7px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 12.5px;
  color: #4a4a4a;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

body.page-settings .field-label {
  color: #4a4a4a;
  font-size: 12.5px;
  margin: 12px 0 4px;
}

/* ==========================================================================
   TOPBAR TITLE — keep on a single line on desktop (truncate if too long).
   ========================================================================== */
body[class*="page-"] .topbar h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SIDEBAR NAV scrollbar — hidden by default, appears when hovered/scrolled.
   Applies to every page (.nav inside .sidebar).
   ========================================================================== */
body[class*="page-"] .sidebar .nav {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color .2s ease;
}

body[class*="page-"] .sidebar .nav::-webkit-scrollbar {
  width: 6px;
}

body[class*="page-"] .sidebar .nav::-webkit-scrollbar-track {
  background: transparent;
}

body[class*="page-"] .sidebar .nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background .2s ease;
}

body[class*="page-"] .sidebar:hover .nav,
body[class*="page-"] .sidebar .nav:hover,
body[class*="page-"] .sidebar .nav:focus-within {
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

body[class*="page-"] .sidebar:hover .nav::-webkit-scrollbar-thumb,
body[class*="page-"] .sidebar .nav:hover::-webkit-scrollbar-thumb,
body[class*="page-"] .sidebar .nav:focus-within::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   ICON-BTN images (topbar Settings + Notifications) — applies to every page.
   ========================================================================== */
body[class*="page-"] .icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

body[class*="page-"] .icon-btn>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE — applies to every page (selectors keep specificity parity with
   the page-scoped rules above; this block is last, so it wins inside the
   matching media queries).
   ========================================================================== */

/* Hamburger button (hidden by default; shown ≤ 1024px) */
body[class*="page-"] .menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 15px;
  color: #1f1f1f;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

body[class*="page-"] .menu-toggle svg {
  width: 20px;
  height: 20px;
}

body[class*="page-"] .sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

body[class*="page-"].sidebar-open .sidebar-backdrop {
  display: block;
}

/* ===== Tablet ≤ 1024px ===== */
@media (max-width: 1024px) {
  body[class*="page-"] .menu-toggle {
    display: inline-flex;
  }

  body[class*="page-"] .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  }

  body[class*="page-"].sidebar-open .sidebar {
    transform: translateX(0);
  }

  body[class*="page-"] .main {
    padding: 18px 18px !important;
  }

  /* Topbar: 2 rows — row 1: burger + title + actions, row 2: full-width search */
  body[class*="page-"] .topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "burger title  actions"
      "search search search";
    gap: 12px 12px !important;
    align-items: center;
  }

  body[class*="page-"] .menu-toggle {
    grid-area: burger;
  }

  body[class*="page-"] .topbar .search {
    grid-area: search;
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body[class*="page-"] .topbar h1 {
    grid-area: title;
    min-width: 0;
  }

  body[class*="page-"] .top-actions {
    grid-area: actions;
    justify-self: end;
    flex-shrink: 0;
  }

  body[class*="page-"] .topbar .profile .meta {
    display: none;
  }

  body[class*="page-"] .topbar .profile svg {
    display: none;
  }

  /* Dashboard: clean 2-column layout for tablet/medium screens */
  body.page-index .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  body.page-index .grid .states-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.page-index .lower {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  body.page-index .lower>.card:nth-child(3) {
    grid-column: 1 / -1;
  }

  body.page-index .bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  body.page-index .bottom>.card:first-child {
    grid-column: 1 / -1;
  }

  /* Memberships / Licenses / Resources / Revenue / Reports / AI / GPS bottom rows */
  body[class*="page-"] .bottom-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Memberships: Plan Distribution stacks beneath Active Promo Codes */
  body.page-memberships .bottom-row {
    grid-template-columns: 1fr !important;
  }

  /* Licenses: Status Legend stacks above Actions */
  body.page-licenses .bottom-row {
    grid-template-columns: 1fr !important;
  }

  body.page-licenses .bottom-row .panel {
    min-width: 0;
  }

  /* Memberships: panels and their contents shrink with the screen */
  body.page-memberships .bottom-row .panel {
    min-width: 0;
    overflow-x: auto;
  }

  body.page-memberships .promo-table {
    min-width: 560px;
  }

  body.page-memberships .donut-wrap svg {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  body[class*="page-"] .stat-grid,
  body[class*="page-"] .stats-row,
  body[class*="page-"] .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Filter card → 2-col grid */
  body[class*="page-"] .filter-card {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 20px !important;
  }

  body[class*="page-"] .filter-card .btn-reset {
    grid-column: 1 / -1;
    justify-self: end;
  }

  /* Tables scroll horizontally — any card that contains a table */
  body[class*="page-"] .table-card,
  body[class*="page-"] .plans-card,
  body[class*="page-"] .card:has(table) {
    overflow-x: auto;
  }

  /* Fallback for browsers without :has() — scroll the table itself */
  body[class*="page-"] .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body[class*="page-"] table {
    min-width: 640px;
  }

  /* ===== Resources page: body-grid stacks to single column ===== */
  body.page-resources .body-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  /* Grid items must be allowed to shrink below their content width */
  body[class*="page-"] .body-grid > * {
    min-width: 0;
  }

  body.page-resources .filter-row {
    gap: 10px !important;
  }

  body.page-resources .filter-row select {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  body.page-resources .right-search {
    flex-wrap: wrap;
  }

  body.page-resources .right-search .field {
    flex: 1 1 200px;
    min-width: 0;
  }


  /* ===== Community / AI / Reports / GPS / Revenue / Leaderboard / Settings / Notifications: stack body-grid ===== */
  body.page-community .body-grid,
  body.page-ai .body-grid,
  body.page-reports .body-grid,
  body.page-gps .body-grid,
  body.page-revenue .body-grid,
  body.page-leaderboard .body-grid,
  body.page-settings .body-grid,
  body.page-notifications .body-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  /* Revenue: Revenue by Plan / Revenue by Month stack vertically */
  body.page-revenue .charts-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Filter rows: collapse multi-col grids into flex-wrap */
  body.page-community .filter-row,
  body.page-ai .filter-row,
  body.page-reports .filter-row,
  body.page-gps .filter-row,
  body.page-revenue .filter-row,
  body.page-notifications .filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 10px !important;
  }

  body.page-community .filter-row>*,
  body.page-ai .filter-row>*,
  body.page-reports .filter-row>*,
  body.page-gps .filter-row>*,
  body.page-revenue .filter-row>*,
  body.page-notifications .filter-row>* {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  /* Empty flex spacer serves no purpose once the row wraps */
  body.page-revenue .filter-row .spacer,
  body.page-reports .filter-row .spacer,
  body.page-notifications .filter-row .spacer {
    display: none;
  }

  body.page-community .filter-row .filters-btn,
  body.page-ai .filter-row .filters-btn,
  body.page-reports .filter-row .filters-btn,
  body.page-gps .filter-row .filters-btn,
  body.page-revenue .filter-row .filters-btn,
  body.page-ai .reset-btn,
  body.page-revenue .btn-apply,
  body.page-notifications .reset-btn {
    flex: 0 0 auto;
  }

  body.page-notifications .filter-row select,
  body.page-reports .filter-row select,
  body.page-ai .filter-row select {
    flex: 1 1 calc(50% - 6px) !important;
    width: auto !important;
  }

  body.page-notifications .filter-row .search-field,
  body.page-reports .filter-row .search-field,
  body.page-ai .filter-row .search-field,
  body.page-ai .filter-row .range-field {
    flex: 1 1 100% !important;
    width: auto !important;
  }

  /* Right-search wrapper wraps */
  body.page-community .right-search-wrap,
  body.page-ai .right-search-wrap,
  body.page-gps .right-search-wrap {
    flex-wrap: wrap;
  }

  body.page-community .right-search-wrap .field,
  body.page-ai .right-search-wrap .field,
  body.page-gps .right-search-wrap .field {
    flex: 1 1 200px;
    min-width: 0;
  }
}

/* ===== Mobile ≤ 720px ===== */
@media (max-width: 720px) {
  body[class*="page-"] .main {
    padding: 14px 14px !important;
  }

  /* Settings: Resources Categories stacks below AI Limits */
  body.page-settings .inner-row {
    grid-template-columns: 1fr;
  }


  body[class*="page-"] .topbar h1 {
    font-size: 18px !important;
    line-height: 1.2;
  }

  body[class*="page-"] .top-actions {
    gap: 8px !important;
    flex-wrap: nowrap;
  }

  body[class*="page-"] .top-actions .profile {
    padding: 0;
    gap: 0;
  }

  body[class*="page-"] .top-actions .profile img {
    width: 36px;
    height: 36px;
  }

  body[class*="page-"] .icon-btn {
    width: 38px;
    height: 38px;
  }

  body[class*="page-"] .icon-btn img {
    width: 22px;
    height: 22px;
  }

  /* Dashboard: single column */
  body.page-index .grid {
    grid-template-columns: 1fr;
  }

  body.page-index .grid .states-card {
    grid-column: auto;
  }

  body.page-index .lower,
  body.page-index .bottom {
    grid-template-columns: 1fr;
  }

  body.page-index .lower>.card:nth-child(3),
  body.page-index .bottom>.card:first-child {
    grid-column: auto;
  }

  body[class*="page-"] .stat-grid,
  body[class*="page-"] .stats-row,
  body[class*="page-"] .stats-grid {
    grid-template-columns: 1fr !important;
  }

  body[class*="page-"] .filter-card {
    grid-template-columns: 1fr !important;
  }

  /* Plans table head: title + add button stack */
  body.page-memberships .plans-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* ===== Resources page: single-column filters + stacked panels on mobile ===== */
  body.page-resources .filter-row select {
    flex: 1 1 100% !important;
  }


  /* ===== Community / AI / Reports / GPS / Revenue / Notifications: single-column filters on mobile ===== */
  body.page-community .filter-row>*,
  body.page-ai .filter-row>*,
  body.page-reports .filter-row>*,
  body.page-gps .filter-row>*,
  body.page-revenue .filter-row>*,
  body.page-notifications .filter-row>*,
  body.page-notifications .filter-row select,
  body.page-reports .filter-row select {
    flex: 1 1 100% !important;
  }

  /* Icon-only reset button must stay a fixed circle, not stretch full width */
  body.page-ai .filter-row .reset-btn,
  body.page-notifications .filter-row .reset-btn {
    flex: 0 0 38px !important;
    width: 38px !important;
  }

  body.page-community .stat-card .value,
  body.page-ai .stat-card .value,
  body.page-reports .stat-card .value,
  body.page-gps .stat-card .value,
  body.page-revenue .stat-card .value,
  body.page-leaderboard .stat-card .value {
    font-size: 22px !important;
  }

  body.page-resources .panel {
    padding: 18px 18px !important;
  }

  body.page-resources .stat-card .value {
    font-size: 22px !important;
  }

  body.page-resources .table-footer {
    justify-content: center !important;
    gap: 12px !important;
  }

  body.page-resources .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  body[class*="page-"] .panel-head {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ===== Tiny ≤ 420px ===== */
@media (max-width: 420px) {
  body[class*="page-"] .topbar .profile {
    padding: 0;
  }


  body[class*="page-"] .topbar .profile svg {
    display: none;
  }

  body[class*="page-"] .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* ===== Chart segment hover tooltip (all pages) ===== */
.chart-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: #1f3d2a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.donut-seg {
  cursor: pointer;
  transition: opacity .15s ease;
}

.donut-seg:hover {
  opacity: .82;
}

.chart-pt {
  cursor: pointer;
  transition: r .12s ease;
}

.chart-pt:hover {
  r: 6;
}

/* ===== Tables scroll horizontally instead of breaking the layout (all widths) ===== */
body[class*="page-"] .table-card,
body[class*="page-"] .card:has(table),
body[class*="page-"] .panel:has(table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

body[class*="page-"] .table-card table,
body[class*="page-"] .card:has(table) table,
body[class*="page-"] .panel:has(table) table {
  min-width: 600px;
}