﻿/* ================================================================
   REDMINEFLUX LOTUS THEME
   ================================================================ */

/* ----------------------------------------------------------------
   FOUC PREVENTION — hide raw Redmine chrome until JS applies
   the lotus-theme class on DOMContentLoaded
---------------------------------------------------------------- */
html.lotus-theme-loading body #header,
html.lotus-theme-loading body #top-menu,
html.lotus-theme-loading body #main-menu,
html.lotus-theme-loading body #sidebar,
html.lotus-theme-loading body #main,
html.lotus-theme-loading body #footer {
  opacity: 0 !important;
  transition: none !important;
}

body.lotus-theme #header,
body.lotus-theme #top-menu,
body.lotus-theme #main-menu,
body.lotus-theme #sidebar,
body.lotus-theme #main,
body.lotus-theme #footer {
  opacity: 1;
}

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
---------------------------------------------------------------- */
body.lotus-theme {
  --rf-primary: #2DB7A3;
  --rf-primary-dark: #22968A;
  --rf-primary-light: #EBF8F6;
  --rf-blue: #2563EB;
  --rf-blue-dark: #1D4ED8;
  --rf-blue-light: #EEF2FF;
  --rf-indigo: #4338CA;
  --rf-success: #22C55E;
  --rf-success-light: #DCFCE7;
  --rf-danger: #EF4444;
  --rf-danger-light: #FEF2F2;
  --rf-warning: #F59E0B;
  --rf-warning-light: #FFFBEB;
  --rf-orange: #F97316;
  --rf-purple: #8B5CF6;
  --rf-bg: #F5F6FA;
  --rf-white: #FFFFFF;
  --rf-text-h: #1A1F2E;
  --rf-text: #374151;
  --rf-text-muted: #6B7280;
  --rf-text-subtle: #9CA3AF;
  --rf-border: #E5E7EB;
  --rf-border-dark: #D1D5DB;
  --rf-topbar-h: 56px;
  --rf-sidebar-w: 220px;
  --rf-sidebar-col-w: 60px;
  --rf-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rf-radius-sm: 6px;
  --rf-radius: 8px;
  --rf-radius-md: 10px;
  --rf-radius-lg: 12px;
  --rf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --rf-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --rf-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
  --rf-transition: 0.15s ease;
}

/* ----------------------------------------------------------------
   BASE RESET
---------------------------------------------------------------- */
body.lotus-theme {
  font-family: var(--rf-font);
  background-color: var(--rf-bg);
  color: var(--rf-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lotus-theme *,
body.lotus-theme *::before,
body.lotus-theme *::after {
  box-sizing: border-box;
}

body.lotus-theme a {
  color: var(--rf-blue);
  text-decoration: none;
}

body.lotus-theme a:hover {
  text-decoration: none;
}

/* ----------------------------------------------------------------
   WRAPPER — offset for fixed top bar
---------------------------------------------------------------- */
body.lotus-theme #wrapper {
  padding-top: var(--rf-topbar-h);
  min-height: 100vh;
}

/* ----------------------------------------------------------------
   TOP BAR (#top-menu)
---------------------------------------------------------------- */
body.lotus-theme #top-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rf-topbar-h);
  background: var(--rf-white);
  display: flex;
  align-items: center;
  z-index: 1000;
}


#top-menu a {
  color: #3B3B3B;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

/* -- Logo + hamburger block -- */
body.lotus-theme #top-menu .rf_tb_logo {
  display: flex;
  align-items: center;
  gap: 6px;
  width: var(--rf-sidebar-w);
  min-width: var(--rf-sidebar-w);
  padding: 0px;
  height: 100%;
  flex-shrink: 0;
  transition: width var(--rf-transition), min-width var(--rf-transition);
}

body.lotus-theme #top-menu .rf_logo_link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--rf-text-h);
  font-weight: 700;
  font-size: 16px;
  flex: 1;
  overflow: hidden;
  padding: 0px;
}

body.lotus-theme #top-menu .rf_logo_link:hover {
  color: var(--rf-primary);
}

body.lotus-theme #top-menu .rf_logo_icon {
  display: inline-block;
  width: 120px;
  height: 28px;
  background: url("/assets/plugin_assets/redmineflux_lotus/flux_logo-3e691bb6.svg") no-repeat center center;
  background-size: contain;
}

body.lotus-theme #top-menu .rf_logo_text {
  font-size: 16px;
  font-weight: 700;
  color: var(--rf-text-h);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
}

body.lotus-theme #top-menu .rf_hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-text-muted);
  border-radius: var(--rf-radius-sm);
  flex-shrink: 0;
  transition: background var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme #top-menu .rf_hamburger:hover {
  background: var(--rf-bg);
  color: var(--rf-text-h);
}

/* Collapse chevron inside hamburger — points left when expanded, right when collapsed */
body.lotus-theme #top-menu .rf_hamburger .rf_hb_chevron {
  display: flex;
  align-items: center;
  margin-left: 2px;
  transition: transform var(--rf-transition);
}

body.lotus-theme.rf_sidebar_collapsed #top-menu .rf_hamburger .rf_hb_chevron {
  transform: rotate(180deg);
}

/* -- Top nav links -- */
body.lotus-theme #top-menu .rf_tb_nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
  overflow: visible;
}

/* :not(.rf_nav_overflow_menu) keeps these rules off the dropdown ul/li/a */
body.lotus-theme #top-menu .rf_tb_nav ul:not(.rf_nav_overflow_menu) {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

body.lotus-theme #top-menu .rf_tb_nav ul:not(.rf_nav_overflow_menu)>li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

body.lotus-theme #top-menu .rf_tb_nav ul:not(.rf_nav_overflow_menu)>li>a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--rf-radius);
  transition: background var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme #top-menu .rf_tb_nav ul:not(.rf_nav_overflow_menu)>li>a:hover {
  color: #1673ff;
}

body.lotus-theme #top-menu .rf_tb_nav ul:not(.rf_nav_overflow_menu)>li>a.rf_tb_active,
body.lotus-theme #top-menu .rf_tb_nav ul:not(.rf_nav_overflow_menu)>li.selected>a {
  color: #1673ff;
  font-weight: 600;
}

/* -- Overflow "More" dropdown -- */
body.lotus-theme #top-menu .rf_nav_more_item {
  position: relative;
  flex-shrink: 0;
}

body.lotus-theme #top-menu .rf_nav_more_btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--rf-radius);
  transition: background var(--rf-transition), color var(--rf-transition);
  font-family: var(--rf-font);
}

body.lotus-theme #top-menu .rf_nav_more_btn:hover {
  background: var(--rf-bg);
  color: var(--rf-text-h);
}

body.lotus-theme #top-menu .rf_nav_more_btn.rf_tb_active {
  background: var(--rf-primary-light);
  color: var(--rf-primary);
  font-weight: 600;
}

body.lotus-theme #top-menu .rf_nav_more_chev {
  display: flex;
  align-items: center;
  transition: transform var(--rf-transition);
}

body.lotus-theme #top-menu .rf_nav_more_item.rf_open .rf_nav_more_chev {
  transform: rotate(180deg);
}

/* Overflow dropdown panel — positioned via JS (position:fixed escapes all parent clipping).
   Selectors use #top-menu to beat the generic .rf_tb_nav ul rule (specificity 1,2,2). */
body.lotus-theme #top-menu .rf_tb_nav .rf_nav_overflow_menu {
  display: none;
  position: fixed;
  min-width: 180px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow-md);
  z-index: 1100;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  white-space: nowrap;
  height: auto;
  gap: 0;
}

body.lotus-theme #top-menu .rf_tb_nav .rf_nav_more_item.rf_open .rf_nav_overflow_menu {
  display: grid;
}

body.lotus-theme .rf_nav_overflow_menu>li {
  margin: 0;
  padding: 0;
}

body.lotus-theme .rf_nav_overflow_menu>li>a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_nav_overflow_menu>li>a:hover {
  background: var(--rf-bg);
  color: var(--rf-text-h);
}

body.lotus-theme .rf_nav_overflow_menu>li>a.rf_tb_active,
body.lotus-theme .rf_nav_overflow_menu>li>a.selected {
  background: var(--rf-primary-light);
  color: var(--rf-primary);
  font-weight: 600;
}

/* -- Right area: project jump + search icon + expandable search -- */
body.lotus-theme #top-menu .rf_tb_right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

#top-menu>div.rf_tb_right>a:nth-child(4) {
  margin-right: -8px;
}

/* Project jump box styling in top bar */
body.lotus-theme #top-menu .rf_tb_right #project-jump {
  display: flex;
  align-items: center;
}

body.lotus-theme #top-menu .rf_tb_right #project-jump .drdn-trigger {
  display: block;
  /* align-items: center;
  gap: 6px; */
  padding: 9px 22px 0px 8px !important;
  height: 40px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-white) url("/assets/plugin_assets/redmineflux_lotus/down-arrow-ed8cd814.svg") no-repeat 97% 50%;
  ;
  font-size: 13px;
  color: var(--rf-text-muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme #top-menu .rf_tb_right #project-jump .drdn-trigger:hover {
  border-color: var(--rf-border-dark);
  box-shadow: var(--rf-shadow-sm);
  color: var(--rf-text);
}

/* Project-jump dropdown content */
body.lotus-theme #project-jump .drdn-content {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  width: 280px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 1100;
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--rf-font);
}

body.lotus-theme #project-jump .drdn-content .quick-search {
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme #project-jump .drdn-content .quick-search input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text);
  background: var(--rf-bg);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

body.lotus-theme #project-jump .drdn-content .quick-search input:focus {
  border-color: var(--rf-blue);
}

body.lotus-theme #project-jump .drdn-content .quick-search input::placeholder {
  color: var(--rf-text-subtle);
}

body.lotus-theme #project-jump .drdn-content .drdn-items {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rf-border) transparent;
}

body.lotus-theme #project-jump .drdn-content .drdn-items>* {
  color: var(--rf-text) !important;
}

body.lotus-theme #project-jump .drdn-content .drdn-items>a,
body.lotus-theme #project-jump .drdn-content .drdn-items>span>a {
  display: block;
  padding: 7px 10px;
  color: var(--rf-text) !important;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drdn-items.selection>*:before {
  margin-right: -5px imo !important;
}


body.lotus-theme #project-jump .drdn-content .drdn-items>a:hover,
body.lotus-theme #project-jump .drdn-content .drdn-items>span>a:hover {
  background: var(--rf-bg);
  color: var(--rf-blue) !important;
}

body.lotus-theme #project-jump .drdn-content .drdn-items.all-projects {
  border-top: 1px solid var(--rf-border);
  padding: 4px 0;
}

body.lotus-theme #project-jump .drdn-content .drdn-items.all-projects a {
  font-weight: 500;
  color: var(--rf-blue) !important;
}

body.lotus-theme .rf_tb_search_btn {
  border: none;
  color: var(--rf-text-muted);
}

#top-menu>div.rf_tb_right>button>svg {
  width: 18px;
  height: 18px;
}

/* -- Account icon buttons (My Account, Sign Out) -- */
body.lotus-theme #top-menu .rf_tb_icon_btn {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme #top-menu .rf_tb_icon_btn:hover {
  background: var(--rf-bg);
  color: var(--rf-text-h);
  text-decoration: none;
}

/* Quick-search: hidden by default, shown on toggle */
body.lotus-theme #top-menu #quick-search {
  display: none !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.lotus-theme #top-menu #quick-search.rf_search_open {
  display: flex !important;
}

body.lotus-theme #top-menu #quick-search label {
  display: none;
}

body.lotus-theme #top-menu #quick-search input[type="text"] {
  padding: 0px 12px;
  height: 40px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-white);
  font-size: 13px;
  color: var(--rf-text);
  outline: none;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
  min-width: 200px;
}

body.lotus-theme #top-menu #quick-search input[type="text"]:focus {
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

body.lotus-theme #top-menu #quick-search select {
  padding: 5px 8px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-white);
  font-size: 13px;
  color: var(--rf-text);
}

/* -- Hide Redmine default top-menu elements -- */
/* body.lotus-theme #top-menu #account,
body.lotus-theme #top-menu #loggedas {
  display: none !important;
} */

/* ----------------------------------------------------------------
   HEADER (#header) — page title area
---------------------------------------------------------------- */
body.lotus-theme #header {
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
  margin-left: var(--rf-sidebar-w);
  padding: 0;
  transition: margin-left var(--rf-transition);
}

body.lotus-theme #header h1 {
  display: none;
}

/* ----------------------------------------------------------------
   MAIN MENU (#main-menu) — project secondary tabs
---------------------------------------------------------------- */
body.lotus-theme #main-menu {
  background: var(--rf-white);
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.lotus-theme #main-menu::-webkit-scrollbar {
  display: none;
}

body.lotus-theme #main-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  border-bottom: none;
}

body.lotus-theme #main-menu ul li {
  margin: 0;
  padding: 0;
}

body.lotus-theme #main-menu ul li a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--rf-transition), border-color var(--rf-transition);
  margin-bottom: -1px;
}

body.lotus-theme #main-menu ul li a:hover {
  color: var(--rf-text-h);
  border-bottom-color: var(--rf-border-dark);
}

body.lotus-theme #top-menu>ul>li>a.selected,
.controller-my.action-page #top-menu>ul>li>a.my-page,
.controller-welcome.action-index #top-menu>ul>li>a.home,
body.lotus-theme.controller-admin #top-menu>ul>li>a.administration,
body.lotus-theme.controller-settings #top-menu>ul>li>a.settings,
body.lotus-theme.controller-users #top-menu>ul>li>a.users,
body.lotus-theme.controller-roles,
body.lotus-theme.controller-trackers #sidebar .rf_sb_core_section,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_core_section,
body.lotus-theme.controller-workflows #sidebar .rf_sb_core_section,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_core_section,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_core_section,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_core_section,
body.lotus-theme.controller-groups #sidebar .rf_sb_core_section,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_core_section,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_core_section {
  color: #1673FF;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   MAIN LAYOUT (#main)
---------------------------------------------------------------- */
body.lotus-theme #main {
  display: flex;
  margin-left: var(--rf-sidebar-w);
  min-height: calc(100vh - var(--rf-topbar-h));
  transition: margin-left var(--rf-transition);
}

body.lotus-theme #main.nosidebar {
  margin-left: 200px !important;
}

body.lotus-theme #content {
  flex: 1;
  padding: 20px 24px 40px;
  min-width: 0;
  background: var(--rf-bg);
  border-top-left-radius: 10px;
}

/* ----------------------------------------------------------------
   SIDEBAR (#sidebar)
---------------------------------------------------------------- */
body.lotus-theme #sidebar {
  position: fixed !important;
  top: var(--rf-topbar-h);
  left: 0;
  width: 200px !important;
  height: calc(100vh - var(--rf-topbar-h));
  background: var(--rf-white) !important;
  display: flex !important;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 900;
  flex-shrink: 0;
  transition: width var(--rf-transition);
  scrollbar-width: thin;
  scrollbar-color: var(--rf-border) transparent;
  padding: 0px;
}

body.lotus-theme #sidebar::-webkit-scrollbar {
  width: 2px;
}

body.lotus-theme #sidebar::-webkit-scrollbar-track {
  background: transparent;
}

body.lotus-theme #sidebar::-webkit-scrollbar-thumb {
  background: var(--rf-border);
  border-radius: 2px;
}

/* Hide Redmine's default sidebar content that may bleed through */
body.lotus-theme #sidebar>p,
body.lotus-theme #sidebar>h3:not([class]),
body.lotus-theme #sidebar>ul:not([class]),
body.lotus-theme #sidebar>div.contextual,
body.lotus-theme #sidebar>.contextual {
  display: none;
}

/* -- Sidebar inner nav container -- */
body.lotus-theme #sidebar .rf_sb_inner {
  flex: 1;
  padding: 12px 10px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--rf-border) transparent;
}

body.lotus-theme #sidebar .rf_sb_inner::-webkit-scrollbar {
  width: 2px;
}

body.lotus-theme #sidebar .rf_sb_inner::-webkit-scrollbar-track {
  background: transparent;
}

body.lotus-theme #sidebar .rf_sb_inner::-webkit-scrollbar-thumb {
  background: var(--rf-border);
  border-radius: 2px;
}

/* -- Sidebar section -- */
body.lotus-theme #sidebar .rf_sb_section {
  margin-bottom: 4px;
}

/* -- Section label -- */
body.lotus-theme #sidebar .rf_sb_label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.7px;
  color: var(--rf-text-subtle);
  padding: 10px 10px 5px;
  white-space: nowrap;
  overflow: hidden;
}

/* -- Section label row (label + action button side by side) -- */
body.lotus-theme #sidebar .rf_sb_label_row {
  display: flex;
  align-items: center;
  padding: 10px 10px 5px;
  position: relative;
}

body.lotus-theme #sidebar .rf_sb_label_row .rf_sb_label {
  padding: 0;
  flex: 1;
}

/* -- Nav list -- */
body.lotus-theme #sidebar .rf_sb_list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 10px;
}

body.lotus-theme #sidebar .rf_sb_list li {
  margin: 1px 0;
}

/* -- Nav link -- */
body.lotus-theme #sidebar .rf_sb_link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--rf-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme #sidebar .rf_sb_link:hover {
  background: var(--rf-bg);
  color: var(--rf-text-h);
  text-decoration: none;
}

body.lotus-theme #sidebar .rf_sb_link.rf_active,
.controller-timelog.action-report #sidebar a.rf_sb_link.time-entries,
.controller-issues.action-show #sidebar a.rf_sb_link.issues {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%);
  color: var(--rf-white);
}

body.lotus-theme #sidebar .rf_sb_link.rf_active:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%);
  color: var(--rf-white);
}

/* -- Nav icon -- */
body.lotus-theme #sidebar .rf_sb_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* -- Nav text -- */
body.lotus-theme #sidebar .rf_sb_text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--rf-transition);
}

/* -- User card -- */
/* Core Redmine sidebar content (saved queries, watchers, etc.) */
body.lotus-theme #sidebar .rf_sb_core_section {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--rf-border);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rf-border) transparent;
}

body.lotus-theme #sidebar .rf_sb_core_section::-webkit-scrollbar {
  width: 2px;
}

body.lotus-theme #sidebar .rf_sb_core_section::-webkit-scrollbar-track {
  background: transparent;
}

body.lotus-theme #sidebar .rf_sb_core_section::-webkit-scrollbar-thumb {
  background: var(--rf-border);
  border-radius: 2px;
}

body.lotus-theme #sidebar .rf_sb_core_section h3,
body.lotus-theme #sidebar .rf_sb_core_section h4 {
  font-size: 10px;
  font-weight: 700;
  color: var(--rf-text-subtle);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  margin: 12px 0 6px;
  padding: 0;
}

body.lotus-theme #sidebar .rf_sb_core_section h3:first-child,
body.lotus-theme #sidebar .rf_sb_core_section h4:first-child {
  margin-top: 0;
}

body.lotus-theme #sidebar .rf_sb_core_section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.lotus-theme #sidebar .rf_sb_core_section ul li {
  margin: 5px 0;
  display: flex;
}

body.lotus-theme #sidebar .rf_sb_core_section ul.watchers li {
  display: flex;
  justify-content: space-between;
}

body.lotus-theme #sidebar .rf_sb_core_section ul.watchers li a.delete {
  font-size: 0px;
  height: 24px;
}

body.lotus-theme #sidebar .rf_sb_core_section ul.watchers li a {
  padding: 0px !important;
}


body.lotus-theme #sidebar .rf_sb_core_section #watchers>h3 {
  font-size: 14px;
  color: black;
  margin-bottom: 20px;
}

body.lotus-theme #sidebar .rf_sb_core_section ul li a {
  display: block;
  padding: 6px 10px 6px 20px !important;
  font-size: 12.5px;
  color: var(--rf-text);
  text-decoration: none !important;
  border-radius: var(--rf-radius-sm);
  transition: background var(--rf-transition), color var(--rf-transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-repeat: no-repeat !important;
  background-position: 2px 9px !important;
  background-size: 16px !important;
}

#admin-menu>ul>li>a>span.icon:not(:has(svg)) {
  padding-left: 4px !important;
}

body.lotus-theme #sidebar .rf_sb_core_section ul li a:hover {
  background: var(--rf-bg);
  color: var(--rf-primary-dark);
}

body.lotus-theme #sidebar .rf_sb_core_section ul li a.icon-only.icon-clear-query:hover {
  background: transparent;
}

body.lotus-theme #sidebar a.icon-only svg {
  opacity: 1;
}

body.lotus-theme #sidebar .rf_sb_core_section ul li a.selected,
body.lotus-theme #sidebar .rf_sb_core_section ul li.selected a {
  background: var(--rf-primary-light);
  color: var(--rf-primary-dark);
  font-weight: 600;
  margin-left: 1px !important;
}

body.lotus-theme #sidebar .rf_sb_core_section p {
  font-size: 12px;
  color: var(--rf-text-muted);
  margin: 4px 0;
  line-height: 1.5;
}

body.lotus-theme #sidebar .rf_sb_core_section a {
  color: var(--rf-blue);
  text-decoration: none;
}

body.lotus-theme #sidebar .rf_sb_core_section a:hover {
  text-decoration: underline;
}

/* Hide core section labels in collapsed sidebar */
body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section {
  display: none;
}

/* Hide queries list and its headings in collapsed sidebar (all pages) */
body.lotus-theme.rf_sidebar_collapsed #sidebar ul.queries,
body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section>ul.queries {
  display: none !important;
}

/* User card */
body.lotus-theme #sidebar .rf_sb_user {
  border-top: 1px solid var(--rf-border);
  background: var(--rf-white);
  flex-shrink: 0;
  overflow: hidden;
}

body.lotus-theme #sidebar .rf_user_link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: background var(--rf-transition);
}

body.lotus-theme #sidebar .rf_user_link:hover {
  background: var(--rf-bg);
  text-decoration: none;
}

body.lotus-theme #sidebar .rf_user_avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rf-primary);
  color: var(--rf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

body.lotus-theme #sidebar .rf_user_info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: opacity var(--rf-transition);
  font-size: 12.5px;
  color: var(--rf-text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.lotus-theme #sidebar .rf_user_info a {
  color: var(--rf-text-h);
  font-weight: 600;
  text-decoration: none;
}

body.lotus-theme #sidebar .rf_user_info a:hover {
  color: var(--rf-primary);
}

/* ----------------------------------------------------------------
   SIDEBAR COLLAPSED STATE
---------------------------------------------------------------- */
body.lotus-theme.rf_sidebar_collapsed #sidebar {
  width: var(--rf-sidebar-col-w) !important;
}

body.lotus-theme.rf_sidebar_collapsed #header,
body.lotus-theme.rf_sidebar_collapsed #main {
  margin-left: var(--rf-sidebar-col-w);
}

body.lotus-theme.rf_sidebar_collapsed #main.nosidebar {
  margin-left: var(--rf-sidebar-col-w) !important;
}

body.lotus-theme.rf_sidebar_collapsed #top-menu .rf_tb_logo {
  width: 100px;
  min-width: var(--rf-sidebar-col-w);
  justify-content: center;
  padding: 0;
  border-right-color: var(--rf-border);
}

body.lotus-theme.rf_sidebar_collapsed #top-menu .rf_logo_text {
  display: none;
}

body.lotus-theme.rf_sidebar_collapsed #top-menu .rf_logo_icon {
  width: 28px;
  height: 28px;
  background-image: url("/assets/plugin_assets/redmineflux_lotus/flux_logo_small-39e104fb.svg");
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_text,
body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_label,
body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_user_info {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_link {
  /* justify-content: center;
  padding: 10px 0; */
  border-radius: 8px;
  margin: 0 auto;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_list {
  margin-left: 0;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_user {
  justify-content: center;
  padding: 12px 0;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_inner {
  padding: 12px 6px;
}

/* Sidebar collapsed — JS tooltip (appended to body) */
body.lotus-theme .rf_sidebar_tip {
  position: fixed;
  background: #1E293B;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}

body.lotus-theme .rf_sidebar_tip.rf_visible {
  opacity: 1;
}

body.lotus-theme .rf_sidebar_tip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1E293B;
}

/* ----------------------------------------------------------------
   REDMINE DEFAULT OVERRIDES
---------------------------------------------------------------- */

/* Hide Redmine's default project table on the projects page */
/* body.lotus-theme table.projects {
  display: none !important;
} */

/* Flash messages */
body.lotus-theme div.flash,
div.flash.error,
#errorExplanation {
  margin: 0 0 16px;
  /* padding: 11px 16px; */
  border-radius: var(--rf-radius);
  border-left: 4px solid;
  font-size: 13px;
  font-weight: 500;
}

body.lotus-theme div.flash.notice {
  background: var(--rf-success-light);
  border-color: var(--rf-success);
  color: #166534;
}

body.lotus-theme div.flash.warning {
  background: var(--rf-warning-light);
  border-color: var(--rf-warning);
  color: #92400E;
}

body.lotus-theme div.flash.error,
div.flash.error,
#errorExplanation {
  background: var(--rf-danger-light);
  border-color: var(--rf-danger);
  color: #991B1B;
}

/* Pagination (Redmine's default) — Modern Redesign */

/* Outer wrapper — spans across pages + info */
body.lotus-theme .pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--rf-text-muted);
}

/* Pages list */
body.lotus-theme .pagination ul.pages,
body.lotus-theme .pagination .pages {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* All page items (li) */
body.lotus-theme .pagination ul.pages li {
  margin: 0;
  border-radius: 8px;
}

/* Page number links + spans */
body.lotus-theme .pagination ul.pages li a,
body.lotus-theme .pagination ul.pages li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--rf-border);
  background: var(--rf-white);
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text);
  text-decoration: none;
  transition: all var(--rf-transition);
  cursor: pointer;
}

body.lotus-theme .pagination ul.pages li a:hover {
  background: #F0F4FF;
  border-color: #1673FF;
  color: #1673FF;
}

/* Current/active page */
body.lotus-theme .pagination ul.pages li.current span {
  background: #1673FF;
  color: #fff;
  border-color: #1673FF;
  font-weight: 600;
}

/* Previous / Next buttons */
body.lotus-theme .pagination ul.pages li.previous a,
body.lotus-theme .pagination ul.pages li.next a {
  font-weight: 500;
  color: var(--rf-text);
  padding: 0 12px;
}

body.lotus-theme .pagination ul.pages li.previous a:hover,
body.lotus-theme .pagination ul.pages li.next a:hover {
  background: #F0F4FF;
  border-color: #1673FF;
  color: #1673FF;
}

/* Disabled previous/next (no more pages) */
body.lotus-theme .pagination ul.pages li.previous span,
body.lotus-theme .pagination ul.pages li.next span {
  color: var(--rf-text-subtle);
  cursor: default;
  opacity: 0.5;
}

/* Spacer / ellipsis */
body.lotus-theme .pagination ul.pages li.spacer span {
  border: none;
  background: none;
  min-width: 20px;
  color: var(--rf-text-subtle);
  cursor: default;
  font-weight: 400;
}

/* Items count + per-page info */
body.lotus-theme .pagination>span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--rf-text-muted);
}

body.lotus-theme .pagination span.items {
  font-size: 13px;
  color: var(--rf-text-muted);
  font-weight: 400;
}

body.lotus-theme .pagination span.per-page {
  font-size: 13px;
  color: var(--rf-text-muted);
}

body.lotus-theme .pagination span.per-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--rf-border);
  background: var(--rf-white);
  color: var(--rf-text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  margin: 0 2px;
  transition: all var(--rf-transition);
}

body.lotus-theme .pagination span.per-page a:hover {
  border-color: #1673FF;
  color: #1673FF;
  background: #F0F4FF;
}

body.lotus-theme .pagination span.per-page span.selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid #1673FF;
  background: #1673FF;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin: 0 2px;
}

/* ---- p.pagination fallback (used on some pages) ---- */
body.lotus-theme p.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0;
}

body.lotus-theme p.pagination a,
body.lotus-theme p.pagination>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--rf-border);
  background: var(--rf-white);
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text);
  text-decoration: none;
  transition: all var(--rf-transition);
}

body.lotus-theme p.pagination a:hover {
  background: #F0F4FF;
  border-color: #1673FF;
  color: #1673FF;
}

body.lotus-theme p.pagination span.current {
  background: #1673FF;
  color: #fff;
  border-color: #1673FF;
  font-weight: 600;
}

/* ---- Pagination (old li-based fallback) ---- */

body.lotus-theme .pagination li.active span,
body.lotus-theme .pagination li span.current {
  background: #1673FF;
  color: #fff;
  border-color: #1673FF;
  font-weight: 600;
}


body.controller-gantts.action-show.lotus-theme .pagination {
  display: block;

  padding: 14px 0;
  font-size: 13px;
  color: var(--rf-text-muted);
}

/* Pages list */
body.controller-gantts.action-show.lotus-theme .pagination ul.pages,
body.controller-gantts.action-show.lotus-theme .pagination .pages {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}



/* ----------------------------------------------------------------
   PROJECTS PAGE — TOOLBAR
---------------------------------------------------------------- */
body.lotus-theme .rf_page_title {
  font-size: 21px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0 0 16px;
  padding: 0;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

body.lotus-theme .rf_projects_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  padding: 8px 12px;
  margin-bottom: 18px;
  box-shadow: var(--rf-shadow-sm);
}

body.lotus-theme .rf_toolbar_left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

body.lotus-theme .rf_toolbar_right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* View toggle buttons */
body.lotus-theme .rf_view_toggles {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

body.lotus-theme .rf_view_btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rf-border);
  background: var(--rf-white);
  border-radius: var(--rf-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-text-muted);
  transition: background var(--rf-transition), color var(--rf-transition), border-color var(--rf-transition);
  padding: 0;
}

body.lotus-theme .rf_view_btn:hover,
body.lotus-theme .rf_view_btn.rf_active {
  background: var(--rf-bg);
  color: var(--rf-text-h);
  border-color: var(--rf-border-dark);
}

/* Search input wrapper */
body.lotus-theme .rf_search_wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  padding: 5px 10px;
  background: var(--rf-white);
  flex: 1;
  max-width: 280px;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
}

body.lotus-theme .rf_search_wrap:focus-within {
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-primary-light);
}

body.lotus-theme .rf_search_icon {
  color: var(--rf-text-subtle);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

body.lotus-theme .rf_search_wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--rf-text);
  width: 100%;
  font-family: var(--rf-font);
  line-height: 1.4;
}

body.lotus-theme .rf_search_wrap input::placeholder {
  color: var(--rf-text-subtle);
}

/* Hidden utility class */
body.lotus-theme .rf_hidden {
  display: none !important;
}

/* Outline / secondary button */
body.lotus-theme .rf_btn_outline,
body.lotus-theme a.rf_btn_outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-white);
  color: var(--rf-text);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--rf-font);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  transition: background var(--rf-transition), border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_btn_outline:hover,
body.lotus-theme a.rf_btn_outline:hover {
  background: var(--rf-bg);
  border-color: var(--rf-border-dark);
  color: var(--rf-text-h);
  text-decoration: none;
}

/* Primary / CTA button */
body.lotus-theme .rf_btn_primary,
body.lotus-theme a.rf_btn_primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  border: none;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-blue);
  color: var(--rf-white) !important;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--rf-font);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.4;
  transition: background var(--rf-transition);
}

body.lotus-theme .rf_btn_primary:hover,
body.lotus-theme a.rf_btn_primary:hover {
  background: var(--rf-blue-dark);
  color: var(--rf-white) !important;
  text-decoration: none !important;
}

/* ----------------------------------------------------------------
   PROJECT CARD GRID
---------------------------------------------------------------- */
body.lotus-theme .rf_projects_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

/* ----------------------------------------------------------------
   PROJECT CARD
---------------------------------------------------------------- */
body.lotus-theme .rf_project_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--rf-shadow-sm);
  transition: box-shadow var(--rf-transition), border-color var(--rf-transition), transform var(--rf-transition);
}

body.lotus-theme .rf_project_card:hover {
  box-shadow: var(--rf-shadow-md);
  border-color: var(--rf-border-dark);
}

/* Title row */
body.lotus-theme .rf_card_title_row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.lotus-theme .rf_card_title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rf-text-h);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  display: block;
  line-height: 1.4;
}

body.lotus-theme .rf_card_title:hover {
  color: var(--rf-blue);
  text-decoration: none;
}

body.lotus-theme .rf_card_arrow {
  flex-shrink: 0;
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("/assets/plugin_assets/redmineflux_lotus/left-arrow-83659301.svg") no-repeat center / contain;
  transition: transform var(--rf-transition), opacity var(--rf-transition);
  cursor: pointer;
  border: none;
  padding: 0;
}

body.lotus-theme .rf_card_arrow.rf_expanded {
  transform: rotate(90deg);
}

body.lotus-theme .rf_project_card:hover .rf_card_arrow {
  opacity: 1;
}

.controller-projects.action-index #content>p>span.icon {
  color: black;
}


/* Subprojects section */
body.lotus-theme .rf_subprojects_section {
  border-top: 1px solid var(--rf-border);
  padding-top: 10px;
  margin-top: 4px;
}

body.lotus-theme .rf_subprojects_header {
  margin-bottom: 8px;
}

body.lotus-theme .rf_subprojects_label {
  font-size: 11px;
  font-weight: 700;
  color: var(--rf-text-muted);
  text-transform: capitalize;
  letter-spacing: 0.4px;
}

body.lotus-theme .rf_subprojects_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.lotus-theme .rf_subproject_card {
  background: #fbfcff;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
}

body.lotus-theme .rf_subproject_card:hover {
  border-color: var(--rf-border-dark);
  box-shadow: var(--rf-shadow-sm);
}

/* Deeper nesting: nested subproject sections get left accent line */
body.lotus-theme .rf_subproject_card .rf_subprojects_section {
  border-left: 2px solid #2196f3;
  padding-left: 12px;
  margin-left: 4px;
}

/* Description */
body.lotus-theme .rf_card_desc {
  font-size: 12px;
  color: var(--rf-text-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dates row */
body.lotus-theme .rf_card_dates {
  display: flex;
  gap: 10px;
}

body.lotus-theme .rf_card_date_item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

body.lotus-theme .rf_date_label {
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  text-transform: capitalize;
  letter-spacing: 0.4px;
}

body.lotus-theme .rf_date_value {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--rf-indigo);
  background: var(--rf-blue-light);
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Customer / PM row */
body.lotus-theme .rf_card_people {
  display: flex;
  gap: 10px;
}

body.lotus-theme .rf_person_item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.lotus-theme .rf_person_label {
  font-size: 10px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  text-transform: capitalize;
  letter-spacing: 0.4px;
}

body.lotus-theme .rf_person_name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rf-text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress bar */
/* ----------------------------------------------------------------
   CARD BOTTOM SECTION (Progress + Stats + Avatars)
---------------------------------------------------------------- */
body.lotus-theme .rf_card_bottom {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rf-border);
  margin-top: 2px;
}

body.lotus-theme .rf_card_progress_side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.lotus-theme .rf_card_pct_row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

body.lotus-theme .rf_card_pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--rf-text-h);
  line-height: 1;
}

body.lotus-theme .rf_card_pct_label {
  font-size: 11px;
  font-weight: 500;
  color: var(--rf-text-muted);
}

/* Progress bar */
body.lotus-theme .rf_card_progress_wrap {
  padding: 0;
}

body.lotus-theme .rf_progress_bar_track {
  width: 100%;
  height: 6px;
  background: var(--rf-border);
  border-radius: 999px;
  overflow: hidden;
}

body.lotus-theme .rf_progress_bar_fill {
  height: 100%;
  background: var(--rf-success);
  border-radius: 999px;
  min-width: 0;
  transition: width 0.4s ease;
}

/* Stats row */
body.lotus-theme .rf_card_stats_row {
  display: flex;
  gap: 12px;
}

body.lotus-theme .rf_stat_item {
  display: flex;
  align-items: center;
  gap: 3px;
}

body.lotus-theme .rf_stat_num {
  font-size: 12px;
  font-weight: 700;
  color: var(--rf-text-h);
}

body.lotus-theme .rf_stat_label {
  font-size: 10.5px;
  color: var(--rf-text-muted);
}

body.lotus-theme .rf_stat_closed .rf_stat_num {
  color: var(--rf-success);
}

body.lotus-theme .rf_stat_open .rf_stat_num {
  color: var(--rf-warning);
}

/* Avatar side (right of bottom section) */
body.lotus-theme .rf_card_avatar_side {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}

/* Avatar stack */
body.lotus-theme .rf_avatar_stack {
  display: flex;
  align-items: baseline;
}

body.lotus-theme .rf_avatar_stack .rf_avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rf-primary);
  color: var(--rf-white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rf-white);
  margin-top: -37px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: -8px;
}

body.lotus-theme .rf_avatar_stack .rf_avatar:nth-child(2) {
  background: #8B5CF6;
}

body.lotus-theme .rf_avatar_stack .rf_avatar:nth-child(3) {
  background: #F97316;
}

body.lotus-theme .rf_avatar_stack .rf_avatar:nth-child(4) {
  background: #2563EB;
}

body.lotus-theme .rf_avatar_stack .rf_avatar:nth-child(5) {
  background: #EC4899;
}

body.lotus-theme .rf_avatar_stack .rf_avatar_more {
  background: var(--rf-bg);
  color: var(--rf-text-muted);
  border-color: var(--rf-border);
  font-size: 9.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

body.lotus-theme .rf_avatar_stack a.rf_avatar_more:hover {
  background: var(--rf-border);
  color: var(--rf-text-h);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   PAGINATION WRAPPER
---------------------------------------------------------------- */
body.lotus-theme .rf_pagination_wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ----------------------------------------------------------------
   ACTIVITY PAGE — FILTER BAR
---------------------------------------------------------------- */
body.lotus-theme .rf_activity_filter_bar {
  margin-bottom: 16px;
  position: relative;
}

body.lotus-theme .rf_activity_filter_bar form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pill wrapper (positions the chevron overlay) */
body.lotus-theme .rf_filter_pill_wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Date input pill */
body.lotus-theme .rf_filter_date_pill {
  appearance: none;
  -webkit-appearance: none;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  padding: 6px;
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
  min-width: 120px;
}

body.lotus-theme .rf_filter_date_pill:focus {
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-primary-light);
}

/* User select pill */
body.lotus-theme .rf_filter_user_pill {
  appearance: none;
  -webkit-appearance: none;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  padding: 6px 32px 6px 14px;
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
  min-width: 90px;
}

body.lotus-theme .rf_filter_user_pill:focus {
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-primary-light);
}

/* Chevron overlay on pills */
body.lotus-theme .rf_pill_chevron {
  position: absolute;
  right: 10px;
  color: var(--rf-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

body.lotus-theme .rf_scope_apply {
  margin: 0;
}

body.lotus-theme .rf_activity_filter_bar .rf_btn_filter_icon {
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   ACTIVITY PAGE — DAY CARDS (collapsible)
---------------------------------------------------------------- */
body.lotus-theme .rf_activity_day_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--rf-shadow-sm);
  transition: border-color var(--rf-transition);
}

/* Expanded card — blue left accent border */
body.lotus-theme .rf_activity_day_card:not(.rf_collapsed) {
  border-top: 3px solid var(--rf-blue);
}

/* Collapsed card — no accent */
body.lotus-theme .rf_activity_day_card.rf_collapsed {
  border-top-width: 1px;
  border-top-color: var(--rf-border);
}

/* Day header (clickable toggle row) */
body.lotus-theme .rf_activity_day_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  user-select: none;
  background: var(--rf-white);
  transition: background var(--rf-transition);
}

body.lotus-theme .rf_activity_day_header:hover {
  background: var(--rf-bg);
}

body.lotus-theme .rf_activity_day_label {
  font-size: 14px;
  font-weight: 700;
  color: var(--rf-text-h);
  letter-spacing: -0.2px;
}

/* Chevron icon — rotates when collapsed */
body.lotus-theme .rf_day_chevron {
  color: var(--rf-text-muted);
  display: flex;
  align-items: center;
  transition: transform var(--rf-transition);
}

body.lotus-theme .rf_activity_day_card.rf_collapsed .rf_day_chevron {
  transform: rotate(-90deg);
}

/* Content area (hidden when collapsed) */
body.lotus-theme .rf_activity_day_content {
  padding: 2px 10px 20px 10px;
}

body.lotus-theme .rf_activity_day_card.rf_collapsed .rf_activity_day_content {
  display: none;
}

/* ----------------------------------------------------------------
   ACTIVITY PAGE — ACTIVITY ITEMS
---------------------------------------------------------------- */
body.lotus-theme .rf_activity_item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  margin-bottom: 10px;
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
}

body.lotus-theme .rf_activity_item:last-child {
  margin-bottom: 0;
}

body.lotus-theme .rf_activity_item:hover {
  border-color: var(--rf-border-dark);
  box-shadow: var(--rf-shadow-sm);
}

/* Grouped / hierarchy: child events indented under parent */
body.lotus-theme .rf_activity_item.rf_grouped {
  margin-left: 52px;
  padding: 14px 18px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
}

body.lotus-theme .rf_activity_item.rf_grouped .rf_activity_avatar {
  width: 28px;
  height: 28px;
}

body.lotus-theme .rf_activity_item.rf_grouped .rf_activity_avatar img,
body.lotus-theme .rf_activity_item.rf_grouped .rf_activity_avatar .gravatar {
  width: 28px !important;
  height: 28px !important;
}

body.lotus-theme .rf_activity_item.rf_grouped .rf_avatar_initials {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

body.lotus-theme .rf_activity_item.rf_grouped .rf_activity_headline {
  font-size: 12px;
}

body.lotus-theme .rf_activity_item.rf_grouped .rf_activity_subject {
  font-size: 13px;
}

body.lotus-theme .rf_activity_item.rf_grouped .rf_activity_title {
  font-size: 12.5px;
}

/* Avatar circle */
body.lotus-theme .rf_activity_avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 1px;
}

body.lotus-theme .rf_activity_avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Initials fallback avatar */
body.lotus-theme .rf_activity_avatar .rf_avatar_initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rf-primary);
  color: var(--rf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Activity body (title + description) */
body.lotus-theme .rf_activity_body {
  flex: 1;
  min-width: 0;
}

/* Project name badge – shown on global activity */
body.lotus-theme .rf_activity_project {
  display: inline;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rf-text-h);
  line-height: 1.4;
}

body.lotus-theme .rf_activity_project a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme .rf_activity_project a:hover {
  color: var(--rf-primary-dark);
}

/* Headline row: [Project] - [Tracker #ID (Status)] */
body.lotus-theme .rf_activity_headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 12.5px;
  color: var(--rf-text-muted);
  line-height: 1.5;
  margin-bottom: 2px;
}

body.lotus-theme .rf_activity_sep {
  color: var(--rf-text-subtle);
  font-weight: 400;
}

body.lotus-theme .rf_activity_tracker_info {
  font-weight: 500;
  color: var(--rf-text-muted);
}

body.lotus-theme .rf_activity_tracker_info a {
  color: #0EA578;
  text-decoration: none;
}

body.lotus-theme .rf_activity_tracker_info a:hover {
  color: var(--rf-blue);
}

/* Subject line (below headline) */
body.lotus-theme .rf_activity_subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-text-h);
}

body.lotus-theme .rf_activity_subject a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme .rf_activity_subject a:hover {
  color: var(--rf-blue);
}

/* Title line (fallback for non-issue events without headline) */
body.lotus-theme .rf_activity_title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rf-text-h);
  line-height: 1.45;
  word-break: break-word;
}

/* Project name part of title (first <a> = project link) */
body.lotus-theme .rf_activity_title a:first-child {
  color: #666666;
  font-weight: 600;
  text-decoration: none;
}

body.lotus-theme .rf_activity_title a:first-child:hover {
  color: var(--rf-blue);
}

/* Issue link inside title (second <a> = issue link) */
body.lotus-theme .rf_activity_title a+a,
body.lotus-theme .rf_activity_title a[href*="/issues/"] {
  text-decoration: none;
  font-weight: 600;
}

/* Issue type color classes — applied by JS based on title text */

body.lotus-theme .rf_activity_item .rf_activity_title a[href*="/issues/"] {
  color: var(--rf-blue);
}

/* Description */
body.lotus-theme .rf_activity_desc {
  font-size: 12.5px;
  color: var(--rf-text-muted);
  margin-top: 4px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 680px;
}

/* Meta section (right-aligned: time + author) */
body.lotus-theme .rf_activity_meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 90px;
  padding-top: 1px;
}

body.lotus-theme .rf_activity_time {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-blue);
  white-space: nowrap;
}

/* Highlight time for current logged-in user's events */
body.lotus-theme .rf_activity_item.rf_me .rf_activity_time {
  background: var(--rf-primary);
  color: var(--rf-white);
  padding: 2px 8px;
  border-radius: var(--rf-radius-sm);
  font-size: 12px;
}

body.lotus-theme .rf_activity_author {
  font-size: 12px;
  color: var(--rf-text-muted);
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   ACTIVITY PAGE — NAVIGATION
---------------------------------------------------------------- */
body.lotus-theme .rf_activity_pagination {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

/* ----------------------------------------------------------------
   ACTIVITY PAGE — SUBTITLE
---------------------------------------------------------------- */
body.lotus-theme .rf_activity_subtitle {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin: -10px 0 16px;
}

/* ----------------------------------------------------------------
   ACTIVITY PAGE — SCOPE FILTER PANEL
---------------------------------------------------------------- */
body.lotus-theme .rf_scope_toggle_wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.lotus-theme .rf_activity_scope_panel {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 100;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  box-shadow: var(--rf-shadow-md);
  padding: 14px 16px;
  min-width: 220px;
  margin-top: 6px;
}

/* (position: relative already set above) */

body.lotus-theme .rf_scope_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.lotus-theme .rf_scope_item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--rf-text);
}

body.lotus-theme .rf_scope_item input[type="checkbox"] {
  accent-color: var(--rf-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

body.lotus-theme .rf_scope_item label {
  cursor: pointer;
  flex: 1;
}

body.lotus-theme .rf_scope_item label a {
  color: var(--rf-text);
  text-decoration: none;
  font-weight: 500;
}

body.lotus-theme .rf_scope_item label a:hover {
  color: var(--rf-primary);
}

body.lotus-theme .rf_scope_subprojects {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text);
}

body.lotus-theme .rf_scope_subprojects label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}


body.lotus-theme .rf_btn_sm {
  padding: 5px 14px;
  font-size: 12px;
}

/* ----------------------------------------------------------------
   STATUS BADGES (used in activity titles via JS)
---------------------------------------------------------------- */
body.lotus-theme .rf_status_badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--rf-blue-light);
  color: var(--rf-indigo);
  white-space: nowrap;
}

body.lotus-theme .rf_status_badge.rf_badge_open {
  background: var(--rf-success-light);
  color: #166534;
}

body.lotus-theme .rf_status_badge.rf_badge_closed {
  background: var(--rf-border);
  color: var(--rf-text-muted);
}

body.lotus-theme .rf_status_badge.rf_badge_in_progress {
  background: #FEF3C7;
  color: #92400E;
}

/* Screen-reader only utility */
body.lotus-theme .rf_sr_only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------------------------------
   EMPTY STATE
---------------------------------------------------------------- */
body.lotus-theme .rf_empty_state {
  text-align: center;
  padding: 48px 24px;
  color: var(--rf-text-muted);
  font-size: 14px;
}

/* ----------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
---------------------------------------------------------------- */

/* 3-column grid at 1280px */
@media (max-width: 1280px) {
  body.lotus-theme .rf_projects_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2-column grid at 1024px */
@media (max-width: 1024px) {
  body.lotus-theme .rf_projects_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.lotus-theme .rf_search_wrap {
    max-width: 220px;
  }
}

/* Mobile: hide sidebar, stack layout */
@media (max-width: 768px) {

  body.lotus-theme #header,
  body.lotus-theme #main,
  body.lotus-theme #main.nosidebar {
    margin-left: 0 !important;
  }

  body.lotus-theme #sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease, width var(--rf-transition);
  }

  body.lotus-theme.rf_sidebar_open #sidebar {
    transform: translateX(0);
  }

  body.lotus-theme.rf_sidebar_collapsed #header,
  body.lotus-theme.rf_sidebar_collapsed #main,
  body.lotus-theme.rf_sidebar_collapsed #main.nosidebar {
    margin-left: 0 !important;
  }

  body.lotus-theme .rf_projects_grid {
    grid-template-columns: 1fr;
  }

  body.lotus-theme .rf_tb_logo {
    width: auto !important;
    min-width: auto !important;
    border-right: none !important;
  }

  body.lotus-theme .rf_projects_toolbar {
    flex-wrap: wrap;
  }

  body.lotus-theme .rf_toolbar_right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ----------------------------------------------------------------
   CONTEXTUAL ACTION LINKS (top right)
---------------------------------------------------------------- */
body.lotus-theme .contextual {
  float: right;
  display: flex;
  align-items: center;
  margin-top: -8px;
  gap: 4px;
}

body.lotus-theme .contextual a.icon,
#tab-content-members>p>a.icon.icon-add,
#tab-content-versions>p>a.icon.icon-add,
#tab-content-categories>p>a.icon.icon-add,
#tab-content-repositories>p>a.icon.icon-add,
#tab-content-boards>p>a.icon.icon-add,
.controller-enumerations #content>p>a.icon.icon-add,
.controller-workflows #content>form>p>input[type=submit],
#tab-content-memberships>p>a.icon.icon-add,
#tab-content-users>p>a.icon.icon-add,
body.lotus-theme #content div#new-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px !important;
  height: 40px;
  box-sizing: border-box;
  border-radius: var(--rf-radius) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--rf-text) !important;
  background: var(--rf-white) !important;
  border: 1px solid var(--rf-border) !important;
  text-decoration: none !important;
  transition: background var(--rf-transition), border-color var(--rf-transition);
}

body.lotus-theme .contextual a.icon:hover,
.controller-workflows #content>form>p>input[type=submit]:hover,
#tab-content-memberships>p>a.icon.icon-add:hover,
#tab-content-users>p>a.icon.icon-add:hover {
  background: var(--rf-bg);
  border-color: var(--rf-border-dark);
  text-decoration: none;
}

body.lotus-theme .contextual a.icon-add,
.controller-timelog.lotus-theme .contextual a.icon-time-add,
#tab-content-members>p>a.icon.icon-add,
#tab-content-versions>p>a.icon.icon-add,
#tab-content-categories>p>a.icon.icon-add,
#tab-content-repositories>p>a.icon.icon-add,
#tab-content-boards>p>a.icon.icon-add,
.controller-enumerations #content>p>a.icon.icon-add,
#tab-content-memberships>p>a.icon.icon-add,
#tab-content-users>p>a.icon.icon-add,
body.lotus-theme #content div#new-run-btn,
body.lotus-theme .testrun-modal-btn .create-testrun,
body.lotus-theme #content>div.form-navigation>a.button_for_cancel.btn_for_import,
body.lotus-theme .action-btn-primary {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  color: var(--rf-white) !important;
  order: 10;
}

body.lotus-theme .contextual a.icon-add::before,
.controller-timelog.lotus-theme .contextual a.icon-time-add::before,
#tab-content-members>p>a.icon.icon-add::before,
#tab-content-versions>p>a.icon.icon-add::before,
#tab-content-categories>p>a.icon.icon-add::before,
#tab-content-repositories>p>a.icon.icon-add::before,
#tab-content-boards>p>a.icon.icon-add::before,
.controller-enumerations #content>p>a.icon.icon-add::before,
#tab-content-memberships>p>a.icon.icon-add::before,
#tab-content-users>p>a.icon.icon-add::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") no-repeat center center;
  background-size: contain;
  vertical-align: middle;
}

body.lotus-theme .contextual a.icon-add:hover,
.controller-timelog.lotus-theme .contextual a.icon-time-add:hover,
#tab-content-members>p>a.icon.icon-add:hover,
#tab-content-versions>p>a.icon.icon-add:hover,
#tab-content-categories>p>a.icon.icon-add:hover,
#tab-content-repositories>p>a.icon.icon-add:hover,
#tab-content-boards>p>a.icon.icon-add:hover,
.controller-enumerations #content>p>a.icon.icon-add:hover,
#tab-content-memberships>p>a.icon.icon-add:hover,
#tab-content-users>p>a.icon.icon-add:hover,
body.lotus-theme #content div#new-run-btn:hover,
body.lotus-theme .testrun-modal-btn .create-testrun:hover,
body.lotus-theme #content>div.form-navigation>a.button_for_cancel.btn_for_import:hover,
body.lotus-theme .action-btn-primary:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%) !important;
}

div.contextual>a>svg,
.controller-enumerations.action-index #content>p>a.icon-add>svg,
#tab-content-members>p>a.icon.icon-add>svg,
#tab-content-versions>p>a.icon.icon-add>svg,
#tab-content-categories>p>a.icon.icon-add>svg,
#tab-content-repositories>p>a.icon.icon-add>svg,
#tab-content-boards>p>a.icon.icon-add>svg,
.controller-enumerations.action-index #content>p>a.icon-add>svg,
#tab-content-memberships>p>a.icon.icon-add>svg,
#tab-content-users>p>a.icon.icon-add>svg {
  display: none;
}

div.contextual>a.icon.icon-settings {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/setting-90448ecb.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 30px !important;
  background-position: 10px 10px !important;
  background-size: 18px !important;
  order: 10;

}

/* Filter toggle button (auto-injected by wireFilterToggle JS) */
body.lotus-theme .rf_btn_filter_icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rf-border);
  background: var(--rf-white) url("/assets/plugin_assets/redmineflux_lotus/filter_icon-9e109574.svg") no-repeat center center;
  background-size: 36px;
  border-radius: var(--rf-radius);
  cursor: pointer;
  order: 10;
  transition: var(--rf-transition);
  padding: 0;
  flex-shrink: 0;
}

body.lotus-theme .rf_btn_filter_icon:hover {
  border-color: var(--rf-primary);
  background-color: #F0FDF9;
}

body.lotus-theme .rf_btn_filter_icon.rf_active {
  border-color: var(--rf-primary);
  background-color: var(--rf-primary);
}

body.lotus-theme .controller-issues.action-index #content>div.contextual>span,
body.lotus-theme .controller-timelog .contextual a.icon-time-add {
  order: 10;
}



/* Hide import link inside the dropdown (JS clones it outside as .rf_import_btn) */
body.lotus-theme #content>.contextual .drdn .drdn-items>a.icon.icon-import,
body.lotus-theme .controller-issues.action-index #content>div.contextual>span>span>span.icon-only.icon-actions,
.controller-timelog.action-index #content>div.contextual>span>span>span.icon-only.icon-actions,
.controller-users.action-index #content>div.contextual>span>span>span.icon-actions {
  display: none !important;
}

/* Import button — extracted outside dropdown by JS */
body.lotus-theme .rf_import_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  height: 40px;
  background: var(--rf-white);
  color: #1673FF;
  border: 1px solid #1673FF;
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition);
  white-space: nowrap;
  order: 10;
}

body.lotus-theme .rf_import_btn:hover {
  border-color: #1673FF;
  color: #1673FF;
  background: #79aeff1f;
}



/* ----------------------------------------------------------------
   QUERY FORM STYLING (filters/options fieldsets)
---------------------------------------------------------------- */
body.lotus-theme #query_form {
  margin-bottom: 16px;
}

body.lotus-theme #query_form_with_buttons {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  padding: 0;
  margin-bottom: 16px;
  box-shadow: var(--rf-shadow-sm);
}

body.lotus-theme #query_form_content {
  padding: 0;
}

body.lotus-theme #query_form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

body.lotus-theme #query_form fieldset#filters,
body.lotus-theme #query_form fieldset#options {
  border-bottom: 1px solid var(--rf-border);
  width: 100%;
}

body.lotus-theme #query_form fieldset#filters:last-child,
body.lotus-theme #query_form fieldset#options:last-child {
  border-bottom: none;
}

body.lotus-theme #query_form fieldset legend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text-h);
  cursor: pointer;
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  transition: background var(--rf-transition);
}

body.lotus-theme #query_form fieldset legend:hover {
  background: var(--rf-bg);
}

body.lotus-theme #query_form fieldset>div {
  padding: 0px 20px 0px 12px;
  border-top: 1px solid var(--rf-border);
}

body.lotus-theme #query_form fieldset.collapsed>div {
  display: none;
}

body.lotus-theme #query_form p.buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--rf-border);
  background: var(--rf-bg);
  border-radius: 0 0 var(--rf-radius-md) var(--rf-radius-md);
}

body.lotus-theme #query_form p.buttons a.icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--rf-primary) !important;
  color: var(--rf-white);
  border-color: var(--rf-primary);
  text-decoration: none;
  transition: background var(--rf-transition);
  margin-left: -2px;
}

body.lotus-theme #query_form p.buttons a.icon:hover {
  background: var(--rf-primary-dark) !important;
  text-decoration: none;
}


body.controller-gantts.lotus-theme #query_form p.buttons a.icon {
  margin-left: 2px !important;
}


body.lotus-theme #query_form fieldset #filters-table {
  margin: 15px 0px;
}

#query_form_with_buttons>p>a>svg {
  display: none;
}

body.lotus-theme #query_form fieldset>div {
  border: none !important;
}

/* ----------------------------------------------------------------
   QUERY DESCRIPTION
---------------------------------------------------------------- */
body.lotus-theme .rf_query_desc {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin: -8px 0 16px;
  padding: 0;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   MY PROJECTS / MY BOOKMARKS LEGEND
---------------------------------------------------------------- */
body.lotus-theme .rf_legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--rf-text-muted);
}

body.lotus-theme .rf_legend_item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---------------------------------------------------
CANCEL BUTTON (used in various forms, e.g. query form, project settings)
--------------------------------------------------- */

#new_time_entry>a,
#issue-form>a,
#new_membership>p>a,
#repository-form>p>a,
#new-watcher-form>p.buttons>a,
.edit_time_entry>a,
#new-relation-form>p>a,
.note>p>a,
.controller-projects.action-destroy #content>form>p>a,
#edit_membership>p>a,
.cancel-btn,
#new_rf_canned_response>p>a,
.edit_rf_canned_response>p>a,
.back-button,
#content>form>input.back-button,
#new_rf_organization>p>a,
.edit_rf_organization>p>a,
#customer_form>p>a,
a.btn-link,
#new_rf_product>p>a,
.edit_rf_product>p>a,
#edit-customer-form>p>a,
#customer-form>p>a,
.mypage-box>div>form>p>a.add-filter,
#new_testcase_report>a,
#news-form>a,
#new_document>p>a,
#wiki_form>p>a,
#new_page>p>a,
.controller-wikis.action-destroy #content>form>a,
#ajax-modal>form>p>a,
.mypage-box>div>form>p>a,
.controller-sprint_crafts a.cancel_button,
.controller-enumerations.action-destroy #content>form>a,
.controller-checklist_templates #content>a.cancel-btn,
.controller-testcase_import a.button_for_cancel,
.edit_testcase_report>a,
.controller-tags #content>form>a,
.controller-testcase_email_templates .back-button,
body.lotus-theme .crm-form-btn-cancel,
body.lotus-theme .rf-gantt-btn--ghost,
.kb-btn-cancel,
#cancel_defect_form,
.testcase-modal-btn .cancel-btn,
#new_customer>a,
a.cancel,
.controller-users.action-destroy #content>form>p>a,
#csv-export-form>p.buttons>a,
#message-form>p>a,
a.cancel_button,
.rf-sprint-cancel-btn,
#csv-export-options>p.buttons>input[type=button] {
  background: #E1E6ED !important;
  width: 80px !important;
  height: 39px !important;
  border-radius: 6px;
  color: #161616 !important;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: background var(--rf-transition);
  align-items: baseline;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  justify-content: center;
  border: 1px solid #E1E6ED !important;
}

#new_time_entry>a:hover,
#issue-form>a:hover,
#new_membership>p>a:hover,
#repository-form>p>a:hover,
#new-watcher-form>p.buttons>a:hover,
.edit_time_entry>a:hover,
#new-relation-form>p>a:hover,
.note>p>a:hover,
.controller-projects.action-destroy #content>form>p>a:hover,
#edit_membership>p>a:hover,
.cancel-btn:hover,
#new_rf_canned_response>p>a:hover,
.edit_rf_canned_response>p>a:hover,
.back-button:hover,
#content>form>input.back-button:hover,
#new_rf_organization>p>a:hover,
.edit_rf_organization>p>a:hover,
#customer_form>p>a:hover,
a.btn-link:hover,
#new_rf_product>p>a:hover,
.edit_rf_product>p>a:hover,
#edit-customer-form>p>a:hover,
#customer-form>p>a:hover,
.mypage-box>div>form>p>a.add-filter:hover,
#new_testcase_report>a:hover,
#news-form>a:hover,
#new_document>p>a:hover,
#wiki_form>p>a:hover,
#new_page>p>a:hover,
.controller-wikis.action-destroy #content>form>a:hover,
#ajax-modal>form>p>a:hover,
.mypage-box>div>form>p>a:hover,
.controller-sprint_crafts a.cancel_button:hover,
.controller-enumerations.action-destroy #content>form>a:hover,
.controller-checklist_templates #content>a.cancel-btn:hover,
.controller-testcase_import a.button_for_cancel:hover,
.edit_testcase_report>a:hover,
.controller-tags #content>form>a:hover,
.controller-testcase_email_templates .back-button:hover,
body.lotus-theme .crm-form-btn-cancel:hover,
body.lotus-theme .rf-gantt-btn--ghost:hover,
.kb-btn-cancel:hover,
#cancel_defect_form:hover,
#new_customer>a:hover,
a.cancel:hover,
.controller-users.action-destroy #content>form>p>a:hover,
#csv-export-form>p.buttons>a:hover,
#message-form>p>a:hover,
a.cancel_button:hover,
.rf-sprint-cancel-btn:hover,
#csv-export-options>p.buttons>input[type=button]:hover {
  background: #D1D7E0 !important;
  color: #161616 !important;
  text-decoration: none;
}


#csv-export-options>p.buttons>input[type=button]{
  height: 37px !important;

}


/* ----------------------------------------------------------------
   PROJECT CONTEXT — SIDEBAR HEADER + HIDE MAIN-MENU
---------------------------------------------------------------- */

/* Page title moved into sidebar */
body.lotus-theme .rf_sb_page_title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-text-h);
  padding: 16px 16px 8px;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.lotus-theme .rf_sb_page_title a {
  color: var(--rf-text-h);
  text-decoration: none;
}

body.lotus-theme .rf_sb_page_title a:hover {
  color: var(--rf-primary);
}

body.lotus-theme.rf_sidebar_collapsed .rf_sb_page_title {
  display: none;
}

/* Hide horizontal tab bar when sidebar has project nav */
body.lotus-theme.rf_project_page #main-menu {
  display: none !important;
}

/* Hide header */
body.lotus-theme #header {
  display: none !important;
}

/* Project header inside sidebar (name + "+" button) */
body.lotus-theme .rf_sb_project_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

body.lotus-theme .rf_sb_project_name {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-sb-text, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

/* Collapsed sidebar — hide project name text */
body.lotus-theme.rf_sidebar_collapsed .rf_sb_project_name {
  display: none;
}

body.lotus-theme .rf_sb_add_btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--rf-border-dark);
  background: var(--rf-white);
  color: var(--rf-text-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--rf-transition), border-color var(--rf-transition), color var(--rf-transition);
  padding: 0;
}

body.lotus-theme .rf_sb_add_btn:hover {
  background: var(--rf-primary-light);
  border-color: var(--rf-primary);
  color: var(--rf-primary);
}

/* Collapsed sidebar — hide add button and entire label row */
body.lotus-theme.rf_sidebar_collapsed .rf_sb_add_btn {
  display: none;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_label_row {
  display: none;
}

/* ----------------------------------------------------------------
   PROJECT OVERVIEW PAGE
---------------------------------------------------------------- */
body.lotus-theme .rf_overview_page {
  width: 100%;
}



/* --- Header card (full-width project summary) --- */
body.lotus-theme .rf_project_header_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 22px 28px 20px;
  margin-bottom: 20px;
  box-shadow: var(--rf-shadow-sm);
}

/* Main row: left col (name+people) side by side with right col (stats) */
body.lotus-theme .rf_ph_main_row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* Left column holds name row + people row stacked */
body.lotus-theme .rf_ph_left_col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Name row: checkmark icon + project title */
body.lotus-theme .rf_ph_name_row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.lotus-theme .rf_ph_check_icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: url("/assets/plugin_assets/redmineflux_lotus/flux_logo_small-39e104fb.svg") no-repeat center center;
  background-size: 22px 22px;
}

body.lotus-theme .rf_ph_project_name {
  font-size: 18px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

/* Right column: 2×2 grid of inline label : value pairs */
body.lotus-theme .rf_ph_right {
  display: grid;
  grid-template-columns: auto auto;
  row-gap: 14px;
  column-gap: 36px;
  flex-shrink: 0;
  align-content: start;
  padding-top: 6px;
  padding-left: 36px;
  border-left: 1px solid #EBEEF2;
}

body.lotus-theme .rf_ph_stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  min-width: 0;
}

body.lotus-theme .rf_ph_stat_label {
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-subtle);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

body.lotus-theme .rf_ph_stat_label::after {
  content: ' : ';
  white-space: pre;
  color: var(--rf-text-subtle);
}

body.lotus-theme .rf_ph_stat_value {
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text-h);
  white-space: nowrap;
}

body.lotus-theme .rf_ph_stat_value.rf_stat_blue {
  color: var(--rf-text-h);
}

/* People row */
body.lotus-theme .rf_ph_people_row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

body.lotus-theme .rf_ph_person {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.lotus-theme .rf_ph_person_label {
  font-size: 10px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  text-transform: capitalize;
  letter-spacing: 0.4px;
}

body.lotus-theme .rf_ph_person_value {
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text-h);
}

/* Progress bar — inside rf_ph_right, spans full width */
body.lotus-theme .rf_ph_progress_row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  grid-column: 1 / -1;
}

body.lotus-theme .rf_ph_pct_label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

body.lotus-theme .rf_ph_progress_track {
  flex: 1;
  height: 7px;
  background: var(--rf-border);
  border-radius: 999px;
  overflow: hidden;
}

body.lotus-theme .rf_ph_progress_fill {
  height: 100%;
  background: var(--rf-primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* --- Description — lives inside the header card --- */
body.lotus-theme .rf_ph_description {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text);
  line-height: 1.7;
}

body.lotus-theme .rf_ph_desc_heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin-bottom: 6px;
}

/* Keep old class for backwards compat (no-op) */
body.lotus-theme .rf_overview_description {
  display: none;
}

/* --- Two-column body --- */
body.lotus-theme .rf_overview_body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  align-items: start;
}

/* Issue tracking card + Members card */
body.lotus-theme .rf_issue_tracking_card,
body.lotus-theme .rf_members_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

body.lotus-theme .rf_card_heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--rf-text-h);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--rf-border);
  margin: 0;
}

/* Issue tracking table */
body.lotus-theme .rf_issue_tracking_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.lotus-theme .rf_issue_tracking_table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  background: var(--rf-bg);
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme .rf_issue_tracking_table td {
  padding: 15px 20px;
  color: var(--rf-text);
}

body.lotus-theme .rf_issue_tracking_table tbody tr:last-child td {
  border-bottom: none;
}

body.lotus-theme .rf_issue_tracking_table tbody tr:hover td {
  background: #F8FAFC;
}

body.lotus-theme .rf_issue_tracking_table .rf_it_tracker {
  font-weight: 500;
  color: var(--rf-text);
}

body.lotus-theme .rf_issue_tracking_table .rf_it_open {
  color: var(--rf-text);
  font-weight: 500;
}

body.lotus-theme .rf_issue_tracking_table .rf_it_total {
  font-weight: 500;
  color: var(--rf-text);
}

body.lotus-theme .rf_issue_tracking_table .rf_it_num a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme .rf_issue_tracking_table .rf_it_num a:hover {
  color: var(--rf-primary);
  text-decoration: underline;
}

body.lotus-theme .rf_it_total_row td {
  font-weight: 700;
  background: var(--rf-bg);
  border-top: 2px solid var(--rf-border);
  color: var(--rf-text-h);
}

/* Quick links below issue table — plain pipe-separated links */
body.lotus-theme .rf_it_quick_links {
  padding: 13px 20px;
  border-top: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text-subtle);
}

body.lotus-theme .rf_it_quick_links a {
  font-size: 13px;
  font-weight: 500;
  color: #1673FF;
  text-decoration: none;
  padding: 0;
  border: none;
  background: none;
}

body.lotus-theme .rf_it_quick_links a:hover {
  color: #0066ff;
  font-weight: 600;
}

/* Members card */
body.lotus-theme .rf_role_group {
  padding: 12px 20px;
}

body.lotus-theme .rf_role_group:last-child {
  border-bottom: none;
}

body.lotus-theme .rf_role_label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  margin-bottom: 10px;
}

body.lotus-theme .rf_role_members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.lotus-theme .rf_member_chip {
  padding: 4px 14px;
  border-radius: 4px;
  border: 1px solid #D8E7FF;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--rf-transition), border-color var(--rf-transition);
  background: #ffffff;
  color: #1673FF;
}

body.lotus-theme .rf_member_chip:hover {
  background: #1673ff1a;
  border-color: #1673FF;
  color: #1673FF;
  text-decoration: none;
  cursor: pointer;
}

body.lotus-theme .rf_member_chip_avatar {
  display: none;
}

/* Overview page responsive */
@media (max-width: 900px) {
  body.lotus-theme .rf_overview_body {
    grid-template-columns: 1fr;
  }

  body.lotus-theme .rf_ph_main_row {
    flex-direction: column;
    gap: 16px;
  }

  body.lotus-theme .rf_ph_right {
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }

  body.lotus-theme .rf_project_header_card {
    padding: 18px 16px 14px;
  }
}

/* --- Two-column body: left + right --- */
body.lotus-theme .rf_overview_left,
body.lotus-theme .rf_overview_right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Time Tracking card --- */
body.lotus-theme .rf_time_tracking_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

body.lotus-theme .rf_tt_body {
  padding: 14px 20px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

body.lotus-theme .rf_tt_item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.lotus-theme .rf_tt_label {
  font-size: 11px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

body.lotus-theme .rf_tt_value {
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-text-h);
}

/* --- News card --- */
body.lotus-theme .rf_news_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

body.lotus-theme .rf_news_list {
  padding: 12px 20px;
}

body.lotus-theme .rf_news_list h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text-h);
  margin: 8px 0 4px;
}

body.lotus-theme .rf_news_list p {
  font-size: 13px;
  color: var(--rf-text);
  margin: 0 0 6px;
  line-height: 1.6;
}

body.lotus-theme .rf_news_list .author {
  font-size: 12px;
  color: var(--rf-text-muted);
}

/* --- Subprojects card --- */
body.lotus-theme .rf_subprojects_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

body.lotus-theme .rf_subprojects_body {
  padding: 12px 20px;
}

body.lotus-theme .rf_subproject_item {
  padding: 6px 0;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme .rf_subproject_item:last-child {
  border-bottom: none;
}

body.lotus-theme .rf_subproject_link {
  font-size: 13px;
  font-weight: 500;
  color: #1673FF;
  text-decoration: none;
}

body.lotus-theme .rf_subproject_link:hover {
  color: #0066ff;
  font-weight: 600;
}

/* --- Card heading link (e.g. "Details" next to heading) --- */
body.lotus-theme .rf_card_heading_link {
  float: right;
  font-size: 12px;
  font-weight: 500;
  color: #1673FF;
  text-decoration: none;
  background-image: url("/assets/plugin_assets/redmineflux_lotus/zoom-in-15d0fd88.svg") !important;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-left: 15px;
}

#content>div.rf_overview_page>div.rf_overview_body>div.rf_overview_left>div.rf_issue_tracking_card>h3>a>span.icon.icon-zoom-in {
  background-image: none;
  padding-left: 5px;
}

#content>div.rf_overview_page>div.rf_overview_body>div.rf_overview_left>div.rf_issue_tracking_card>h3>a>svg {
  display: none;
}

body.lotus-theme .rf_card_heading_link:hover {
  color: #0066ff;
  font-weight: 600;
}

/* Quick links separator */
body.lotus-theme .rf_it_quick_links a+a::before {
  content: ' | ';
  color: var(--rf-text-subtle);
  padding: 0 6px;
}

/* ----------------------------------------------------------------
   PROJECT SIDEBAR — NEW-OBJECT QUICK ACTIONS (Redmine native)
---------------------------------------------------------------- */

/* Container li needs relative positioning for dropdown */
body.lotus-theme .rf_sb_label_row>li {
  position: relative;
  list-style: none;
}

/* Style the cloned + link to match the old rf_sb_add_btn */
body.lotus-theme .rf_sb_label_row>li>a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--rf-border-dark);
  background: var(--rf-white);
  color: var(--rf-text-muted);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--rf-transition), border-color var(--rf-transition), color var(--rf-transition);
  flex-shrink: 0;
}

body.lotus-theme .rf_sb_label_row>li>a:hover {
  background: var(--rf-primary-light);
  border-color: var(--rf-primary);
  color: var(--rf-primary);
  text-decoration: none;
}

/* Dropdown — hidden by default, shown when rf_sb_open is toggled */
body.lotus-theme .rf_sb_label_row>li .menu-children {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 2000;
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

body.lotus-theme .rf_sb_label_row>li.rf_sb_open .menu-children {
  display: block;
}

body.lotus-theme .rf_sb_label_row>li .menu-children li {
  list-style: none;
}

body.lotus-theme .rf_sb_label_row>li .menu-children a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_sb_label_row>li .menu-children a:hover {
  background: var(--rf-bg);
  color: var(--rf-text-h);
  text-decoration: none;
}

/* Hide in collapsed sidebar */
body.lotus-theme.rf_sidebar_collapsed .rf_sb_label_row>li {
  display: none;
}

body.lotus-theme .rf_legend_item svg {
  width: 14px;
  height: 14px;
}

/* ----------------------------------------------------------------
   OTHER FORMATS LINKS (Atom, CSV)
---------------------------------------------------------------- */

body.lotus-theme .other-formats span {
  font-size: 12px;
  color: var(--rf-text-muted);
}

body.lotus-theme .other-formats a {
  padding: 4px 10px;
  border-radius: var(--rf-radius-sm);
  color: var(--rf-text);
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  text-decoration: none;
  transition: background var(--rf-transition);
}

/* ----------------------------------------------------------------
   CARD ICONS (member, bookmark)
---------------------------------------------------------------- */
body.lotus-theme .rf_card_icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 4px;
}

body.lotus-theme .rf_card_icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-text-subtle);
}

body.lotus-theme .rf_card_icon svg {
  width: 14px;
  height: 14px;
}

body.lotus-theme .rf_icon_member,
.icon-user {
  /* color: var(--rf-primary); */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234299E1'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0' /%3E%3C/svg%3E") no-repeat center/14px 14px !important;
}

body.lotus-theme .rf_icon_bookmark,
.icon-bookmarked-project,
#content>div.rf_projects_page>p.rf_legend>span:nth-child(2)>span.icon.icon-bookmarked {
  /* color: var(--rf-warning); */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F6AD55' stroke='%23DD6B20' stroke-width='1.5'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 21 12 17.27 5.82 21 7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center/14px 14px !important;
}

.icon-bookmarked-project svg use {
  display: none;
}

/* ----------------------------------------------------------------
   CARD IDENTIFIER
---------------------------------------------------------------- */
body.lotus-theme .rf_card_identifier {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.lotus-theme .rf_id_label {
  font-size: 10px;
  font-weight: 600;
  color: var(--rf-text-subtle);
  text-transform: capitalize;
}

body.lotus-theme .rf_id_value {
  font-size: 11px;
  font-weight: 500;
  color: var(--rf-text-muted);
  background: var(--rf-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}


#projects-index>li.child {
  display: block;
}

/* ----------------------------------------------------------------
   LIST VIEW TABLE STYLING
---------------------------------------------------------------- */
body.lotus-theme .rf_table_wrap {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  /* overflow: hidden; */
  box-shadow: var(--rf-shadow-sm);
}

body.lotus-theme .rf_projects_table,
body.lotus-theme table.list.projects {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.lotus-theme table.list.projects thead th {
  background: #e8f3ff;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--rf-text-h);
  text-align: left;
  border-bottom: 1px solid var(--rf-border);
  white-space: nowrap;
}

body.lotus-theme table.list.projects thead th a {
  color: var(--rf-text-h);
  text-decoration: none;
}

body.lotus-theme table.list.projects thead th a:hover {
  color: var(--rf-blue);
}

body.lotus-theme table.list.projects tbody tr {
  transition: background var(--rf-transition);
}

body.lotus-theme table.list.projects tbody tr:hover {
  background: #F8FAFC;
}

body.lotus-theme table.list.projects tbody tr.odd {
  background: var(--rf-white);
}

body.lotus-theme table.list.projects tbody tr.even {
  background: var(--rf-white);
}

body.lotus-theme table.list.projects tbody tr.odd:hover,
body.lotus-theme table.list.projects tbody tr.even:hover {
  background: #F8FAFC;
}

body.lotus-theme table.list.projects tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rf-border);
  color: var(--rf-text);
  vertical-align: middle;
}

body.lotus-theme table.list.projects tbody tr:last-child td {
  border-bottom: none;
}

body.lotus-theme table.list.projects tbody td a {
  color: var(--rf-blue);
  text-decoration: none;
  font-weight: 500;
}

/* body.lotus-theme table.list.projects tbody td a:hover {
  text-decoration: underline;
} */

body.lotus-theme table.list.projects tbody td.checkbox {
  width: 30px;
  text-align: center;
}

body.lotus-theme table.list.projects tbody td.buttons {
  width: 24px;
  text-align: center;
}


body.lotus-theme .context-menu-selection a,
body.lotus-theme .context-menu-selection a:hover,
body.lotus-theme .context-menu-selection,
body.lotus-theme .context-menu-selection:hover {
  color: #394178 !important;
}

/* Group rows */
body.lotus-theme table.list.projects tr.group td {
  background: var(--rf-primary-light);
  padding: 8px 12px;
  font-weight: 600;
  color: var(--rf-text-h);
  border-bottom: 1px solid var(--rf-primary);
}

body.lotus-theme table.list.projects tr.group .expander {
  cursor: pointer;
  margin-right: 6px;
}

body.lotus-theme table.list.projects tr.group .count {
  color: var(--rf-text-muted);
  font-weight: 400;
  margin-left: 4px;
}

body.lotus-theme table.list.projects tr.group .toggle-all {
  float: right;
  font-size: 11px;
  font-weight: 400;
  color: var(--rf-text-muted);
}

/* Indentation for nested projects */
body.lotus-theme table.list.projects tr.idnt-1 td:first-child {
  padding-left: 28px;
}

body.lotus-theme table.list.projects tr.idnt-2 td:first-child {
  padding-left: 44px;
}

body.lotus-theme table.list.projects tr.idnt-3 td:first-child {
  padding-left: 60px;
}

body.lotus-theme table.list.projects tr.idnt-4 td:first-child {
  padding-left: 76px;
}

body.lotus-theme table.list.projects tr.idnt-5 td:first-child {
  padding-left: 92px;
}

/* My project / bookmarked indicators in list view */

body.lotus-theme table.list.projects tr.bookmarked-project td a.project {
  color: var(--rf-warning);
}

body.lotus-theme .query-totals .value {
  font-weight: 600;
  color: var(--rf-text-h);
}

body.lotus-theme .context-menu-selection svg.icon-svg,
body.lotus-theme #sidebar a.selected svg.icon-svg {
  stroke: var(--rf-blue) !important;
}

/* ----------------------------------------------------------------
   MODAL STYLING (CSV export, etc.)
---------------------------------------------------------------- */

/* Ensure modal overlay + dialog appear above fixed sidebar/topbar */
body.lotus-theme .ui-widget-overlay {
  z-index: 1100 !important;
}

body.lotus-theme .ui-dialog.modal {
  z-index: 1200 !important;
}

body.lotus-theme #csv-export-options {
  padding: 20px;
}

body.lotus-theme #csv-export-options h3.title {
  font-size: 16px;
  font-weight: 600;
  color: var(--rf-text-h);
  margin: 0 0 16px;
}

body.lotus-theme #csv-export-options p {
  margin: 0 0 12px;
}

body.lotus-theme #csv-export-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rf-text);
  cursor: pointer;
  padding: 4px 0;
}

body.lotus-theme #csv-export-options p.buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rf-border);
}

body.lotus-theme #csv-export-options input[type="submit"] {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%);
  color: var(--rf-white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--rf-radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--rf-transition);
  margin-top: 1px;
  height: 37px;
}

body.lotus-theme #csv-export-options input[type="submit"]:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%);
}

body.lotus-theme #csv-export-options label input#c__ {
  height: 13px;
}



/* ----------------------------------------------------------------
   FILTER LABELS & INPUTS
---------------------------------------------------------------- */
body.lotus-theme #filters table {
  width: 100%;
  border-collapse: collapse;
}

body.lotus-theme #filters table td {
  padding: 4px 8px 4px 0;
  vertical-align: middle;
}

body.lotus-theme #filters table td.field {
  width: 140px;
  font-weight: 500;
  color: var(--rf-text-h);
  font-size: 13px;
}

body.lotus-theme #filters table td.operator {
  width: 100px;
}

body.lotus-theme #filters table select,
body.lotus-theme #filters table input[type="text"] {
  padding: 6px 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text);
  background: var(--rf-white);
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
}

body.lotus-theme #filters table select:focus,
body.lotus-theme #filters table input[type="text"]:focus {
  outline: none;
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-primary-light);
}

body.lotus-theme #filters .add-filter {
  margin-top: 8px;
  margin-bottom: 8px;
}

body.lotus-theme #filters .add-filter a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--rf-blue);
}

/* body.lotus-theme #filters .add-filter a:hover {
  text-decoration: underline;
} */


option {
  background: #FEFFFF url("/assets/plugin_assets/redmineflux_lotus/more_icon-2e09ba28.svg") no-repeat !important;
  background-position: 98% 8px !important;
  display: block;
  white-space: nowrap !important;
  min-height: 1.2em;
  width: auto !important;
  padding: 5px 15px 5px 15px;
  margin: 10px 10px 10px 10px !important;
  text-align: start !important;
  border: 1px dashed rgba(16, 70, 70, 0.14) !important;
  border-radius: 3px !important;
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
}

select#available_c,
select#selected_c {
  background: aliceblue;
  width: 313px;
}

select[multiple=multiple] {
  padding-right: 10px;
  height: 300px !important;
  width: 333px;
  background-color: #FEFFFF !important;
}

#list-definition>tbody>tr:nth-child(1)>td:nth-child(2) {
  display: flex;
  align-items: center;
}

#list-definition>tbody>tr>td>div.buttons {
  margin: 0px 25px;
}

/* Create forms */

.box.tabular,
.box {
  background-color: #ffffff;
  border: 1px solid #E1E6ED;
}

input,
select {
  border: 1px solid #E1E6ED;
  background-color: #ffffff;
  height: 40px;
}

input[type="submit"],
button[type="submit"] {
  cursor: pointer;
  background-color: #fff;
  height: 40px;
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%);
  color: var(--rf-white);
  padding: 0px 20px;
  border-radius: 8px;
  font-size: 12px;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%);
}


/* ================================================================
   LOGIN PAGE — SPLIT-SCREEN LAYOUT
   body.controller-account.action-login
   ================================================================ */

/* Hide all standard Redmine chrome on login page */
body.controller-account.action-login {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

body.controller-account.action-login #top-menu,
body.controller-account.action-login #sidebar,
body.controller-account.action-login #main-menu,
body.controller-account.action-login #footer,
body.controller-account.action-login #header {
  display: none !important;
}

/* Reset wrapper / main to allow full-height split */
body.controller-account.action-login #wrapper {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

body.controller-account.action-login #main {
  flex: 1;
  display: flex;
  min-height: 0;
  max-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

body.controller-account.action-login #content {
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background: #fff;
}

body.controller-account.action-login #wrapper #main {
  margin-left: 0px !important;
}

/* ── SPLIT WRAPPER ───────────────────────────────── */
body.controller-account.action-login .rf_login_split {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ── LEFT PANEL ──────────────────────────────────── */
body.controller-account.action-login .rf_login_left {
  width: 50%;
  height: calc(100vh - 60px);
  background: linear-gradient(135deg, #4F7BFF 0%, #3B5BDB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  margin: 30px 0 30px 30px;
  border-radius: 24px;
}

/* Subtle background circle decorations */
body.controller-account.action-login .rf_login_left::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

body.controller-account.action-login .rf_login_left::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -90px;
  left: -90px;
  pointer-events: none;
}

/* Logo (top-left) */
body.controller-account.action-login .rf_login_logo {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
}

body.controller-account.action-login .rf_login_logo_text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

/* Preview card wrapper */
body.controller-account.action-login .rf_login_preview_wrap {
  position: relative;
  margin-bottom: 36px;
  margin-top: 20px;
  z-index: 1;
}

/* Preview card (white rounded card with mock dashboard) */
body.controller-account.action-login .rf_login_preview_card {
  width: 370px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

body.controller-account.action-login .rf_lp_title_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

body.controller-account.action-login .rf_lp_title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

body.controller-account.action-login .rf_lp_avatar_sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini project card grid */
body.controller-account.action-login .rf_lp_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.controller-account.action-login .rf_lp_col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.controller-account.action-login .rf_lp_mini_card {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px 7px 7px;
  border: 1px solid #E2E8F0;
}

body.controller-account.action-login .rf_lp_mini_bar {
  height: 5px;
  background: #93C5FD;
  border-radius: 3px;
  margin-bottom: 4px;
}

body.controller-account.action-login .rf_lp_bar_sm {
  width: 60% !important;
  background: #E2E8F0;
}

body.controller-account.action-login .rf_lp_mini_progress {
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin: 5px 0 5px;
  overflow: hidden;
}

body.controller-account.action-login .rf_lp_mini_fill {
  height: 100%;
  background: #22C55E;
  border-radius: 2px;
}

/* Mini avatar stack */
body.controller-account.action-login .rf_lp_mini_avatars {
  display: flex;
  margin-top: 4px;
}

body.controller-account.action-login .rf_lp_avatar_xs {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  margin-left: -4px;
  font-size: 7px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

body.controller-account.action-login .rf_lp_mini_avatars .rf_lp_avatar_xs:first-child {
  margin-left: 0;
}

body.controller-account.action-login .rf_av_1 {
  background: #60A5FA;
}

body.controller-account.action-login .rf_av_2 {
  background: #34D399;
}

body.controller-account.action-login .rf_av_3 {
  background: #F87171;
}

body.controller-account.action-login .rf_av_more {
  background: #E2E8F0;
  color: #64748B;
  font-size: 6px;
}

/* Floating circular avatars around the card */
body.controller-account.action-login .rf_lp_float_avatar {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

body.controller-account.action-login .rf_lp_float_top {
  top: -14px;
  right: -14px;
}

body.controller-account.action-login .rf_lp_float_bottom {
  bottom: -14px;
  left: -14px;
}

/* Tagline */
body.controller-account.action-login .rf_login_tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 16px 0 8px;
  line-height: 1.3;
}

body.controller-account.action-login .rf_login_tagline_sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto 24px;
}

/* Slider dots */
body.controller-account.action-login .rf_login_dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.controller-account.action-login .rf_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  transition: all 0.2s ease;
}

body.controller-account.action-login .rf_dot_active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* ── RIGHT PANEL (Login Form) ────────────────────── */
body.controller-account.action-login .rf_login_right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F6F8;
}

body.controller-account.action-login .rf_login_form_wrap {
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}

body.controller-account.action-login .rf_login_title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

body.controller-account.action-login .rf_login_subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #8A8A8A;
  margin: 0 0 28px;
  line-height: 1.5;
  font-weight: 400;
}

/* Flash messages */
body.controller-account.action-login .rf_login_flash {
  padding: 10px 14px;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.4;
}

body.controller-account.action-login .rf_flash_error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-left: 4px solid;
}

body.controller-account.action-login .rf_flash_notice {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* Form */
body.controller-account.action-login .rf_login_form {
  border: none !important;
  background: none !important;
}

body.controller-account.action-login .rf_form_group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.controller-account.action-login .rf_form_label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #8A8A8A;
}

body.controller-account.action-login .rf_form_input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 12px;
  border: 1px solid #D6D6D6;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

body.controller-account.action-login .rf_form_input::placeholder {
  color: #C0C0C0;
}

body.controller-account.action-login .rf_form_input:focus {
  border-color: #4F7CF3;
}

/* Password show/hide wrapper */
body.controller-account.action-login .rf_pw_wrap {
  position: relative;
}

body.controller-account.action-login .rf_pw_wrap .rf_form_input,
body.controller-account.action-login .rf_pw_wrap input[type="password"],
body.controller-account.action-login .rf_pw_wrap input[type="text"] {
  padding-right: 44px !important;
  box-sizing: border-box;
}

body.controller-account.action-login .rf_pw_toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  line-height: 1;
  z-index: 1;
}

body.controller-account.action-login .rf_pw_toggle:hover {
  color: #4F7CF3;
}

/* Legacy #login-form password toggle (non-Lotus) */
#login-form .rf_pw_wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

#login-form .rf_pw_wrap input[type="password"],
#login-form .rf_pw_wrap input[type="text"] {
  padding-right: 36px !important;
  box-sizing: border-box;
  width: 100%;
}

#login-form .rf_pw_toggle {
  position: absolute;
  right: 8px;
  top: 40%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  line-height: 1;
}

#login-form .rf_pw_toggle:hover {
  color: #374151;
}

body.controller-account.action-login div.flash.error {
  display: none !important;
}

/* Remember me + forgot password row */
body.controller-account.action-login .rf_form_row_inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

body.controller-account.action-login .rf_remember_wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

body.controller-account.action-login .rf_checkbox {
  width: 15px !important;
  height: 15px !important;
  border-radius: 3px;
  accent-color: #3B82F6;
  cursor: pointer;
  margin: 0;
}

body.controller-account.action-login .rf_remember_label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #666666;
  user-select: none;
}

body.controller-account.action-login .rf_forgot_link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #1673FF;
  text-decoration: none !important;
  font-weight: 500;
}

body.controller-account.action-login .rf_forgot_link:hover {
  text-decoration: underline;
}

/* Login button */
body.controller-account.action-login .rf_login_btn,
body.controller-account.action-login input.rf_login_btn {
  width: 100% !important;
  height: 46px !important;
  padding: 0;
  background: linear-gradient(90deg, #4F7CF3 0%, #3CC3A4 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

body.controller-account.action-login .rf_login_btn:hover,
body.controller-account.action-login input.rf_login_btn:hover {
  opacity: 0.92;
}

body.controller-account.action-login .rf_login_btn:active,
body.controller-account.action-login input.rf_login_btn:active {
  transform: translateY(1px);
  opacity: 0.88;
}

/* Register link below login button */
body.controller-account.action-login .rf_login_register {
  text-align: center;
  margin-top: 0px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #8A8A8A;
  font-weight: 500;
}

body.controller-account.action-login .rf_register_link {
  color: #3B82F6;
  font-weight: 600;
  text-decoration: none !important;
}

body.controller-account.action-login .rf_register_link:hover {
  color: #0061ff;
  font-weight: 600;
}

/* ── LOGIN PAGE — RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  body.controller-account.action-login .rf_login_left {
    width: 42%;
    padding: 40px 28px;
  }

  body.controller-account.action-login .rf_login_preview_card {
    width: 280px;
    padding: 16px;
  }

  body.controller-account.action-login .rf_login_right {
    padding: 0 40px;
  }
}

@media (max-width: 680px) {
  body.controller-account.action-login .rf_login_split {
    flex-direction: column;
  }

  body.controller-account.action-login .rf_login_left {
    width: 100%;
    min-height: auto;
    padding: 48px 24px 40px;
  }

  body.controller-account.action-login .rf_login_right {
    padding: 40px 24px;
  }

  body.controller-account.action-login .rf_login_preview_card {
    width: 280px;
  }

  body.controller-account.action-login .rf_login_title {
    font-size: 26px;
  }
}

/* ================================================================
   GENERIC TABLE.LIST — universal styling for ALL list tables
   (issues, time-entries, projects, users, roles, trackers, etc.)
   Specific table rules below can override as needed.
   ================================================================ */

/* Base table */
body.lotus-theme table.list {
  width: 100%;
  border-collapse: collapse;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  overflow: hidden;
  font-size: 13px;
  font-family: var(--rf-font);
}

/* Header row */
body.lotus-theme table.list thead tr {
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme table.list thead th {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--rf-border);
  background: #e6f3ff;
  letter-spacing: 0.2px;
  /* text-align: left; */
  text-transform: capitalize;
}

body.lotus-theme table.list thead th a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme table.list thead th a:hover {
  color: var(--rf-blue);
}

/* Sort arrows */
body.lotus-theme table.list thead th.sort.asc a::after,
body.lotus-theme table.list thead th.sort.desc a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
}

body.lotus-theme table.list thead th.sort.asc a::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--rf-blue);
}

body.lotus-theme table.list thead th.sort.desc a::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--rf-blue);
}

input[type="checkbox" i] {
  height: 24px;
}

th.firstname,
th.lastname,
.controller-groups.action-index #content>div.autoscroll>table>thead>tr>th:nth-child(1),
.controller-roles.action-index #content>table.list.roles>thead>tr>th:nth-child(1),
.controller-trackers.action-index #content>table.list.trackers>thead>tr>th:nth-child(1),
#content>table.list.issue_statuses>thead>tr>th:nth-child(1),
#tab-content-IssueCustomField>table>thead>tr>th:nth-child(1),
#content>table.list.enumerations>thead>tr>th:nth-child(1),
.tab-content>table>thead>tr>th:nth-child(1),
#tab-content-members>table>thead>tr>th:nth-child(2),
#tab-content-activities>form>table>thead>tr>th:nth-child(1),
#tab-content-memberships>table>thead>tr>th:nth-child(2),
#workflow_form>div>table>thead>tr:nth-child(1)>th:nth-child(1) {
  text-align: justify;
  padding-left: 15px;
}

/* Body rows */
body.lotus-theme table.list tbody tr {
  border-bottom: 1px solid var(--rf-border);
  transition: background var(--rf-transition);
}

body.lotus-theme table.list tbody tr:last-child {
  border-bottom: none;
}

body.lotus-theme table.list tbody tr:hover {
  background: #F8FAFC !important;
}

body.lotus-theme table.list tbody tr.odd {
  background: var(--rf-white) !important;
}

body.lotus-theme table.list tbody tr.even {
  background: var(--rf-white) !important;
}

body.lotus-theme table.list tbody tr.odd:hover,
body.lotus-theme table.list tbody tr.even:hover {
  background: #F8FAFC !important;
}

table.list:not(.odd-even) tbody tr:nth-child(even),
.even,
#issue-changesets div.changeset:nth-child(even),
table.list:not(.odd-even) tbody tr:nth-child(odd),
.odd,
#issue-changesets div.changeset:nth-child(odd) {
  background-color: #ffffff !important;
}

/* Cells */
body.lotus-theme table.list tbody td {
  padding: 11px 14px;
  color: var(--rf-text);
  font-size: 13px;
  vertical-align: middle;
  border-bottom: none;
}

body.lotus-theme table.list tbody td a {
  color: var(--rf-text);
  text-decoration: none;
}

body.lotus-theme table.list tbody td a:hover {
  color: var(--rf-blue);
}



/* Buttons / actions column */
body.lotus-theme table.list td.buttons {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}

body.lotus-theme table.list td.buttons a {
  padding: 4px 8px;
  border-radius: var(--rf-radius-sm);
  font-size: 12px;
}



body.lotus-theme table.list td.buttons a.icon-edit,
div.table-list-cell.buttons>a.icon.icon-edit {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/blue-edit-0a5d62f5.svg");
  background-repeat: no-repeat;
  background-position: 0px 8px;
  padding: 18px 10px 7px 12px;
  font-size: 0px;
}

body.lotus-theme table.list td.buttons a.icon-del,
div.table-list-cell.buttons>a.icon.icon-del {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/blue-delete-d21f07e0.svg");
  background-repeat: no-repeat;
  background-position: 0px 8px;
  padding: 18px 4px 7px 12px;
  font-size: 0px;
}


body.lotus-theme table.list td.buttons a.icon-edit svg,
body.lotus-theme table.list td.buttons a.icon-del svg,
div.table-list-cell.buttons>a.icon.icon-edit svg,
div.table-list-cell.buttons>a.icon.icon-del svg {
  display: none;
}

#tab-content-boards>div>div {
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--rf-border);
  background: var(--rf-white);
  letter-spacing: 0.2px;
}

#tab-content-boards>div>div>div>div {
  background: var(--rf-white) !important;
  border-bottom: 1px solid var(--rf-border);
  transition: background var(--rf-transition);
  cursor: default;
  padding: 5px 11px;
}

/* Group rows */
body.lotus-theme table.list tr.group td {
  padding: 10px 14px;
  background: #F8FAFC;
  font-weight: 600;
  font-size: 13px;
  color: var(--rf-text-h);
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme table.list tr.group .expander {
  cursor: pointer;
  margin-right: 6px;
}

body.lotus-theme table.list tr.group .count {
  color: var(--rf-text-muted);
  font-weight: 400;
  margin-left: 6px;
}

body.lotus-theme table.list tr.group .toggle-all {
  font-size: 11px;
  color: var(--rf-text-muted);
  margin-left: 8px;
}

/* Selected / context-menu row */
body.lotus-theme table.list tbody tr.context-menu-selection,
body.lotus-theme table.list tbody tr.selected-row {
  background: #2dd1a07a !important;
}

/* Pagination after table */
/* body.lotus-theme table.list+.pagination,
body.lotus-theme table.list~.pagination {
  padding: 14px 20px;
  margin-top: 0;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-top: none;
  border-radius: 0 0 var(--rf-radius) var(--rf-radius);
  font-size: 13px;
  color: var(--rf-text-muted);
} */

/* ================================================================
   ISSUES LIST PAGE
   body.lotus-theme.controller-issues.action-index
   ================================================================ */

/* ----------------------------------------------------------------
   ISSUES PAGE WRAPPER
---------------------------------------------------------------- */







/* ----------------------------------------------------------------
   ISSUES PAGE HEADER BAR
   (Estimated Time / Spent Time summary + action buttons)
---------------------------------------------------------------- */
body.lotus-theme .rf_issues_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
  gap: 12px;
  flex-wrap: wrap;
}

body.lotus-theme .rf_issues_header_left {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.lotus-theme .rf_issues_total_item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--rf-text-muted);
  font-weight: 400;
}

body.lotus-theme .rf_issues_total_val {
  color: var(--rf-blue);
  font-weight: 600;
}

body.lotus-theme .rf_issues_filter_icon_btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rf-text-muted);
  transition: border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_issues_filter_icon_btn:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
}

body.lotus-theme .rf_issues_header_right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----------------------------------------------------------------
   ISSUES TABLE CONTAINER
---------------------------------------------------------------- */
body.lotus-theme #issues-index .issues,
body.lotus-theme .issues {
  margin: 0;
  padding: 16px 24px;
}

/* ----------------------------------------------------------------
   ISSUES TABLE
---------------------------------------------------------------- */
body.lotus-theme table.list.issues {
  width: 100%;
  border-collapse: collapse;
  background: var(--rf-white);
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-border);
  overflow: hidden;
  font-size: 13px;
  font-family: var(--rf-font);
  box-shadow: var(--rf-shadow-sm);
}

/* Table header */
body.lotus-theme table.list.issues thead tr {
  background: #e6f3ff;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme table.list.issues thead th {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--rf-border);
  background: #e9f4ff;
  letter-spacing: 0.2px;
}

body.lotus-theme table.list.issues thead th a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme table.list.issues thead th a:hover {
  color: var(--rf-blue);
}

/* Sort arrows */
body.lotus-theme table.list.issues thead th.sort.asc a::after,
body.lotus-theme table.list.issues thead th.sort.desc a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
}

body.lotus-theme table.list.issues thead th.sort.asc a::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--rf-blue);
}

body.lotus-theme table.list.issues thead th.sort.desc a::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--rf-blue);
}

/* Table rows */
body.lotus-theme table.list.issues tbody tr {
  border-bottom: 1px solid var(--rf-border);
  transition: background var(--rf-transition);
  cursor: default;
}

body.lotus-theme table.list.issues tbody tr:last-child {
  border-bottom: none;
}

body.lotus-theme table.list.issues tbody tr:hover {
  background: #F8FAFC;
}

body.lotus-theme table.list.issues tbody tr.odd {
  background: var(--rf-white);
}

body.lotus-theme table.list.issues tbody tr.even {
  background: var(--rf-white);
}

body.lotus-theme table.list.issues tbody tr.odd:hover,
body.lotus-theme table.list.issues tbody tr.even:hover {
  background: #F8FAFC;
}

/* Table cells */
body.lotus-theme table.list.issues tbody td {
  padding: 11px 14px;
  color: var(--rf-text);
  font-size: 13px;
  vertical-align: middle;
  border-bottom: none;
}

/* Checkbox column */
body.lotus-theme table.list.issues td.checkbox {
  width: 36px;
}

body.lotus-theme table.list.issues td.checkbox input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: var(--rf-blue);
  cursor: pointer;
  border-radius: 3px;
  margin: 0;
}

/* Ticket # (id column) */
body.lotus-theme table.list.issues td.id,
body.lotus-theme table.list.issues td.id a {
  color: var(--rf-blue);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

/* body.lotus-theme table.list.issues td.id a:hover {
  text-decoration: underline;
} */

/* Project column */
body.lotus-theme table.list.issues td.project {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-user {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/user-icon-34664cf8.svg") !important;
}

.icon-user svg use {
  display: none;
}


tr.member td.icon-user,
#principals_for_new_member .icon-user {
  background: transparent !important;
}

tr.idnt-1 td.subject,
tr.idnt-1 td.name {
  padding-left: 24px !important;
}

/* body.lotus-theme table.list.issues td.project a {
  color: var(--rf-text);
}

body.lotus-theme table.list.issues td.project a:hover {
  color: var(--rf-blue);
} */

/* Tracker column */
/* body.lotus-theme table.list.issues td.tracker {
  font-size: 12px;
  color: var(--rf-text-muted);
  white-space: nowrap;
} */

/* ----------------------------------------------------------------
   STATUS COLUMN — text badges per status
---------------------------------------------------------------- */
body.lotus-theme table.list.issues td.status {
  white-space: nowrap;
}

body.lotus-theme table.list.issues td.status span,
body.lotus-theme table.list.issues td.status a {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: #F1F5F9;
  color: var(--rf-text);
  text-decoration: none;
}

/* New */
body.lotus-theme table.list.issues tbody tr td.status span[title*="New"],
body.lotus-theme table.list.issues tbody tr td.status a[title*="New"] {
  background: #F1F5F9;
  color: #1E293B;
}

/* Open */
body.lotus-theme table.list.issues tbody tr td.status span[title*="Open"],
body.lotus-theme table.list.issues tbody tr td.status a[title*="Open"] {
  background: #ECFDF5;
  color: #065F46;
}

/* In Progress */
body.lotus-theme table.list.issues tbody tr td.status span[title*="In Progress"],
body.lotus-theme table.list.issues tbody tr td.status a[title*="In Progress"] {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* In QA / QA */
body.lotus-theme table.list.issues tbody tr td.status span[title*="QA"],
body.lotus-theme table.list.issues tbody tr td.status a[title*="QA"] {
  background: #FFF7ED;
  color: #C2410C;
}

/* Resolved / Closed / Done */
body.lotus-theme table.list.issues tbody tr td.status span[title*="Resolved"],
body.lotus-theme table.list.issues tbody tr td.status a[title*="Resolved"],
body.lotus-theme table.list.issues tbody tr td.status span[title*="Closed"],
body.lotus-theme table.list.issues tbody tr td.status a[title*="Closed"] {
  background: #F0FDF4;
  color: #166534;
}

/* Fallback: show actual text in the td as a pill */
body.lotus-theme table.list.issues td.status {
  font-size: 12px;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   PRIORITY COLUMN — coloured text
---------------------------------------------------------------- */
body.lotus-theme table.list.issues td.priority {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

/* High */
body.lotus-theme table.list.issues td.priority.priority-high,
body.lotus-theme table.list.issues td.priority span.priority-high,
body.lotus-theme table.list.issues td.priority[class*="high"] {
  color: #DC2626;
}

/* Low */
body.lotus-theme table.list.issues td.priority.priority-low,
body.lotus-theme table.list.issues td.priority span.priority-low,
body.lotus-theme table.list.issues td.priority[class*="low"] {
  color: #16A34A;
}

/* Normal / Medium */
body.lotus-theme table.list.issues td.priority.priority-normal,
body.lotus-theme table.list.issues td.priority span.priority-normal,
body.lotus-theme table.list.issues td.priority[class*="normal"],
body.lotus-theme table.list.issues td.priority.priority-medium,
body.lotus-theme table.list.issues td.priority[class*="medium"] {
  color: #D97706;
}

/* Urgent */
body.lotus-theme table.list.issues td.priority.priority-urgent,
body.lotus-theme table.list.issues td.priority span.priority-urgent {
  color: #B91C1C;
}

/* Immediate */
body.lotus-theme table.list.issues td.priority.priority-immediate,
body.lotus-theme table.list.issues td.priority span.priority-immediate {
  color: #7F1D1D;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   SUBJECT COLUMN
---------------------------------------------------------------- */
body.lotus-theme table.list.issues td.subject {
  max-width: 260px;
}

body.lotus-theme table.list.issues td.subject a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 260px;
}

body.lotus-theme table.list.issues tbody td,
body.lotus-theme table.list.issues tbody td a {
  color: #3B3B3B !important;
  font-weight: 400 !important;
}

/* ----------------------------------------------------------------
   ASSIGNEE / DATES COLUMNS
---------------------------------------------------------------- */
body.lotus-theme table.list.issues td.assigned_to,
body.lotus-theme table.list.issues td.updated_on,
body.lotus-theme table.list.issues td.start_date,
body.lotus-theme table.list.issues td.due_date,
body.lotus-theme table.list.issues td.created_on {
  font-size: 12px;
  color: var(--rf-text-muted);
  white-space: nowrap;
}

body.lotus-theme table.list.issues td.assigned_to a {
  color: var(--rf-text-muted);
}

body.lotus-theme table.list.issues td.assigned_to a:hover {
  color: var(--rf-blue);
}

/* ----------------------------------------------------------------
   ACTIONS + TOTALS ROW (below heading on issues/timelog index)
   query-totals LEFT  |  contextual buttons RIGHT
---------------------------------------------------------------- */
#content>div.rf_actions_totals_row>div>span>span>span.icon-only.icon-actions {
  display: none;
}


body.lotus-theme .rf_actions_totals_row {
  display: flex;
  align-items: baseline;
  margin: 10px 0 12px;
  justify-content: flex-end;
}

/* When query-totals is present, push it left and contextual right */
body.lotus-theme .rf_actions_totals_row:has(.query-totals),
body.lotus-theme .rf_actions_totals_row:has(#query-totals) {
  justify-content: space-between;
}

body.lotus-theme .rf_actions_totals_row>.contextual {
  float: none;
  margin-top: 0;
  order: 2;
}

body.lotus-theme .rf_actions_totals_row>.query-totals,
body.lotus-theme .rf_actions_totals_row>#query-totals {
  padding: 0;
  background: none;
  border-bottom: none;
  order: 1;
  margin-bottom: 0px;
}

/* ----------------------------------------------------------------
   ISSUES TOTALS / QUERY DESCRIPTION BAR
   (Estimated Time: X | Spent Time: Y)
---------------------------------------------------------------- */
body.lotus-theme #query-totals,
body.lotus-theme .query-totals {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text-muted);
}

body.lotus-theme #query-totals .total-for-estimated-hours .value,
body.lotus-theme #query-totals .total-for-spent-hours .value,
body.lotus-theme .query-totals span.value {
  color: var(--rf-blue);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   CONTEXTUAL BUTTONS ON ISSUES PAGE
   (+ New Issue, Import)
---------------------------------------------------------------- */
body.lotus-theme.controller-issues #header .contextual,
body.lotus-theme.controller-issues-with-query #header .contextual {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* New Issue = primary blue button */
body.lotus-theme.controller-issues #header .contextual a.icon-add,
body.lotus-theme.controller-issues-with-query #header .contextual a.icon-add,
body.lotus-theme.controller-issues #header .contextual a[href$="/issues/new"] {
  background: var(--rf-blue);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background var(--rf-transition);
}

body.lotus-theme.controller-issues #header .contextual a.icon-add:hover {
  background: var(--rf-blue-dark);
}

/* Import = outlined button */
body.lotus-theme.controller-issues #header .contextual a:not(.icon-add),
body.lotus-theme.controller-issues-with-query #header .contextual a:not(.icon-add) {
  background: var(--rf-white);
  color: var(--rf-text);
  border: 1px solid var(--rf-border);
  padding: 6px 14px;
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme.controller-issues #header .contextual a:not(.icon-add):hover,
body.lotus-theme.controller-issues-with-query #header .contextual a:not(.icon-add):hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
}

/* ----------------------------------------------------------------
   ISSUES — BULK CONTROLS & PAGINATION
---------------------------------------------------------------- */
body.lotus-theme .issues .pagination,
body.lotus-theme #list-action-bar {
  padding: 14px 24px;
  background: var(--rf-white);
  border-top: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text-muted);
}

/* Selected row highlight */
body.lotus-theme table.list.issues tbody tr.selected-row,
body.lotus-theme table.list.issues tbody tr.context-menu-selection {
  background: #2dd1a07a !important;
}

/* ----------------------------------------------------------------
   ISSUES — RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.lotus-theme table.list.issues td.subject a {
    max-width: 180px;
  }

  body.lotus-theme table.list.issues td.project {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  body.lotus-theme table.list.issues {
    font-size: 12px;
  }

  body.lotus-theme table.list.issues thead th,
  body.lotus-theme table.list.issues tbody td {
    padding: 8px 10px;
  }

  body.lotus-theme table.list.issues td.start_date,
  body.lotus-theme table.list.issues td.updated_on {
    display: none;
  }
}

/* ================================================================
   SPENT TIME PAGE  (timelog/index)
   Mirrors Issues list page layout — same structure, same CSS patterns.
   ================================================================ */

/* ----------------------------------------------------------------
   FILTER PANEL
---------------------------------------------------------------- */
.controller-timelog.lotus-theme #query_form_with_buttons {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  padding: 0;
  margin-bottom: 16px;
  box-shadow: var(--rf-shadow-sm);
}

/* ----------------------------------------------------------------
   SPENT TIME TABLE  (table.list.time-entries)
---------------------------------------------------------------- */
body.lotus-theme table.list.time-entries {
  width: 100%;
  border-collapse: collapse;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  overflow: hidden;
  font-size: 13px;
  font-family: var(--rf-font);
  box-shadow: var(--rf-shadow-sm);
}

/* Header */
body.lotus-theme table.list.time-entries thead tr {
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme table.list.time-entries thead th {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  text-align: left;
  white-space: nowrap;
  background: var(--rf-white);
  letter-spacing: 0.2px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme table.list.time-entries thead th a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme table.list.time-entries thead th a:hover {
  color: var(--rf-blue);
}

/* Sort indicators */
body.lotus-theme table.list.time-entries thead th.sort.asc a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--rf-blue);
}

body.lotus-theme table.list.time-entries thead th.sort.desc a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--rf-blue);
}

/* Body rows */
body.lotus-theme table.list.time-entries tbody tr {
  border-bottom: 1px solid var(--rf-border);
  transition: background var(--rf-transition);
}

body.lotus-theme table.list.time-entries tbody tr:last-child {
  border-bottom: none;
}

body.lotus-theme table.list.time-entries tbody tr.odd,
body.lotus-theme table.list.time-entries tbody tr.even {
  background: var(--rf-white);
}

body.lotus-theme table.list.time-entries tbody tr:hover {
  background: #F8FAFC;
}

/* Cells */
body.lotus-theme table.list.time-entries tbody td {
  padding: 11px 14px;
  color: var(--rf-text);
  font-size: 13px;
  vertical-align: middle;
}

/* Checkbox */
body.lotus-theme table.list.time-entries td.checkbox {
  width: 36px;
  padding: 11px 8px 11px 14px;
}

body.lotus-theme table.list.time-entries td.checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--rf-blue);
  cursor: pointer;
  margin: 0;
}

/* Date column */
body.lotus-theme table.list.time-entries td.spent_on {
  white-space: nowrap;
  font-size: 13px;
  color: var(--rf-text);
  font-weight: 500;
}

/* User column */
body.lotus-theme table.list.time-entries td.user a {
  color: var(--rf-text);
  font-weight: 500;
}

body.lotus-theme table.list.time-entries td.user a:hover {
  color: var(--rf-blue);
}

/* Activity */
body.lotus-theme table.list.time-entries td.activity {
  font-size: 12px;
  color: var(--rf-text-muted);
}

/* Issue column — link in blue */
body.lotus-theme table.list.time-entries td.issue a {
  color: var(--rf-blue);
  font-weight: 600;
}

/* 
body.lotus-theme table.list.time-entries td.issue a:hover {
  text-decoration: underline;
} */

/* Comment / Description */
body.lotus-theme table.list.time-entries td.comments,
body.lotus-theme table.list.time-entries td.block-column {
  max-width: 280px;
  font-size: 13px;
  color: var(--rf-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hours column — highlighted blue bold */
body.lotus-theme table.list.time-entries td.hours {
  color: var(--rf-blue);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

/* Edit / Delete action buttons */
body.lotus-theme table.list.time-entries td.buttons {
  white-space: nowrap;
  text-align: right;
  padding: 8px 12px;
}

/* body.lotus-theme table.list.time-entries td.buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--rf-border);
  background: var(--rf-white);
  color: var(--rf-text-muted);
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition), background var(--rf-transition);
  margin-left: 3px;
}

body.lotus-theme table.list.time-entries td.buttons a:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
  background: var(--rf-blue-light);
}

body.lotus-theme table.list.time-entries td.buttons a.icon-del:hover {
  border-color: var(--rf-danger);
  color: var(--rf-danger);
  background: var(--rf-danger-light);
} */

/* Group rows */
body.lotus-theme table.list.time-entries tbody tr.group {
  background: #F8FAFC;
}

body.lotus-theme table.list.time-entries tbody tr.group td {
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme table.list.time-entries .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--rf-blue-light);
  color: var(--rf-blue);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

body.lotus-theme table.list.time-entries .totals {
  font-size: 12px;
  color: var(--rf-blue);
  font-weight: 600;
  margin-left: 8px;
}

/* Selected row */
body.lotus-theme table.list.time-entries tbody tr.context-menu-selection {
  background: #2dd1a07a !important;
}

/* ----------------------------------------------------------------
   SPENT TIME — RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.lotus-theme table.list.time-entries td.comments {
    display: none;
  }
}

@media (max-width: 768px) {
  body.lotus-theme table.list.time-entries {
    font-size: 12px;
  }

  body.lotus-theme table.list.time-entries thead th,
  body.lotus-theme table.list.time-entries tbody td {
    padding: 8px 10px;
  }

  body.lotus-theme table.list.time-entries td.activity,
  body.lotus-theme table.list.time-entries td.project {
    display: none;
  }
}

/* ================================================================
   CALENDAR PAGE  (calendars/show)
   body.lotus-theme.controller-calendars
   ================================================================ */

/* ----------------------------------------------------------------
   CALENDAR GRID
---------------------------------------------------------------- */
body.lotus-theme ul.cal {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: 2.5rem repeat(7, 1fr);
  border: 1px solid #D1D5DB;
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
  background: var(--rf-white);
  margin: 0;
  padding: 0;
}


table.cal .ending a.issue, p.cal.legend .ending ,
table.cal .starting a.issue,
p.cal.legend .starting{
  background-position: -1px 2px !important;
  padding-left: 16px !important;
}


/* ----------------------------------------------------------------
   HEADER ROW (Day names)
---------------------------------------------------------------- */
body.lotus-theme .cal .calhead {
  background: #E8EAF0;
  font-weight: 600;
  font-size: 12px;
  color: #4B5563;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #D1D5DB;
  border-right: 1px solid #D1D5DB;
  font-family: var(--rf-font);
}

body.lotus-theme .cal .calhead:last-of-type {
  border-right: none;
}

body.lotus-theme .cal .calhead.week-number {
  background: #E8EAF0;
  font-size: 10px;
  color: #6B7280;
  border-right: 1px solid #D1D5DB;
}

/* ----------------------------------------------------------------
   WEEK NUMBER COLUMN
---------------------------------------------------------------- */
body.lotus-theme .cal .week-number {
  background: #EEF0F4;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid #D1D5DB;
  border-bottom: 1px solid #D1D5DB;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ----------------------------------------------------------------
   DAY CELLS
---------------------------------------------------------------- */
body.lotus-theme .cal .calbody {
  border-right: 1px solid #D1D5DB;
  border-bottom: 1px solid #D1D5DB;
  font-size: 12px;
  min-height: 100px;
  padding: 6px 8px;
  line-height: 1.4;
  transition: background var(--rf-transition);
  font-family: var(--rf-font);
}

body.lotus-theme .cal .calbody:nth-child(8n) {
  border-right: none;
}

/* Current month */
body.lotus-theme .cal .calbody.this-month {
  background: var(--rf-white);
}

/* Other month (greyed out) */
body.lotus-theme .cal .calbody.other-month {
  background: #F0F1F3;
}

body.lotus-theme .cal .calbody.other-month p.day-num {
  color: #9CA3AF;
}

/* Today — highlighted */
body.lotus-theme .cal .calbody.today {
  background: #DBEAFE;
}

body.lotus-theme .cal .calbody.today p.day-num {
  font-weight: 700;
  color: #1254CC;
}

/* Non-working day */
body.lotus-theme .cal .calbody.nwday:not(.other-month) {
  background: #F0F0F0;
}

/* Hover on day cell */
body.lotus-theme .cal .calbody:hover {
  background: #EDF0F5;
}

body.lotus-theme .cal .calbody.today:hover {
  background: #BFDBFE;
}

/* ----------------------------------------------------------------
   DAY NUMBER
---------------------------------------------------------------- */
body.lotus-theme .cal .calbody p.day-num {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
  text-align: right;
  margin: 0 0 4px;
  padding: 2px 0;
}

body.lotus-theme .cal .calbody p.day-num .abbr-day {
  display: none;
}

/* ----------------------------------------------------------------
   ISSUES INSIDE DAY CELLS
---------------------------------------------------------------- */
body.lotus-theme .cal .calbody div.issue {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  padding: 2px 4px;
  margin: 1px 0;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--rf-text);
  transition: background var(--rf-transition);
  position: relative;
}

body.lotus-theme .cal .calbody div.issue:hover {
  background: #EFF6FF;
}

body.lotus-theme .cal .calbody div.issue a {
  color: #1F2937;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lotus-theme .cal .calbody div.issue a:hover {
  color: #1673FF;
}

/* Issue status color bars on the left */
body.lotus-theme .cal .calbody div.issue::before {
  content: '';
  display: inline-block;
  width: 3px;
  min-height: 12px;
  border-radius: 2px;
  background: var(--rf-border);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Priority-based left-bar colors */
body.lotus-theme .cal .calbody div.issue.priority-high::before,
body.lotus-theme .cal .calbody div.issue.priority-urgent::before,
body.lotus-theme .cal .calbody div.issue.priority-immediate::before {
  background: #DC2626;
}

body.lotus-theme .cal .calbody div.issue.priority-normal::before {
  background: #D97706;
}

body.lotus-theme .cal .calbody div.issue.priority-low::before {
  background: #16A34A;
}

/* Closed issues — muted */
body.lotus-theme .cal .calbody div.issue.closed {
  opacity: 0.55;
}

body.lotus-theme .cal .calbody div.issue.closed a {
  text-decoration: line-through;
}

/* Overdue issues */
body.lotus-theme .cal .calbody div.issue.overdue a {
  color: #B91C1C;
}

/* Icons inside issue cells */
body.lotus-theme .cal .calbody .icon {
  padding: 0;
  flex-shrink: 0;
}

body.lotus-theme .cal .calbody .icon svg {
  width: 14px;
  height: 14px;
}

/* ----------------------------------------------------------------
   TOOLTIPS
---------------------------------------------------------------- */
body.lotus-theme .cal .tooltip:hover span.tip {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-white);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--rf-text);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   MONTH NAVIGATION
---------------------------------------------------------------- */
body.lotus-theme.controller-calendars #content form p.buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

body.lotus-theme.controller-calendars #content select {
  padding: 6px 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text);
  background: var(--rf-white);
  height: 36px;
  cursor: pointer;
  transition: border-color var(--rf-transition);
}

body.lotus-theme.controller-calendars #content select:focus {
  outline: none;
  border-color: #1673FF;
  box-shadow: 0 0 0 3px rgba(22, 115, 255, 0.1);
}

body.lotus-theme.controller-calendars #content input[type="submit"] {
  padding: 6px 16px;
  height: 36px;
  border: none;
  border-radius: var(--rf-radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--rf-font);
}

body.lotus-theme.controller-calendars .cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.lotus-theme.controller-calendars .cal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  color: var(--rf-text-muted);
  text-decoration: none;
  transition: all var(--rf-transition);
  background: var(--rf-white);
  font-size: 16px;
}

body.lotus-theme.controller-calendars .cal-nav a:hover {
  border-color: #1673FF;
  color: #1673FF;
  background: #EFF6FF;
}

/* ----------------------------------------------------------------
   LEGEND
---------------------------------------------------------------- */
body.lotus-theme p.cal.legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 14px 0 0;
  padding: 10px 16px;
  background: var(--rf-bg);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  font-size: 12px;
  color: var(--rf-text-muted);
  font-family: var(--rf-font);
}

body.lotus-theme p.cal.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ----------------------------------------------------------------
   VERSIONS (milestones) IN CALENDAR
---------------------------------------------------------------- */
body.lotus-theme .cal .calbody div.icon-package {
  font-size: 11px;
  padding: 2px 4px;
  margin: 1px 0;
  border-radius: 4px;
  color: var(--rf-primary-dark);
  font-weight: 500;
}

body.lotus-theme .cal .calbody div.icon-package:hover {
  background: var(--rf-primary-light);
}

/* ----------------------------------------------------------------
   CALENDAR — RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.lotus-theme .cal .calbody {
    min-height: 70px;
    padding: 4px 5px;
    font-size: 11px;
  }

  body.lotus-theme .cal .calbody p.day-num {
    font-size: 12px;
  }

  body.lotus-theme .cal .calbody div.issue a {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  body.lotus-theme ul.cal {
    grid-template-columns: 1.8rem repeat(7, 1fr);
    font-size: 11px;
  }

  body.lotus-theme .cal .calhead {
    font-size: 10px;
    padding: 6px 2px;
  }

  body.lotus-theme .cal .calbody {
    min-height: 50px;
    padding: 2px;
  }

  body.lotus-theme .cal .calbody div.issue {
    font-size: 10px;
  }

  body.lotus-theme .cal .calbody div.issue::before {
    display: none;
  }

  body.lotus-theme p.cal.legend {
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* ================================================================
   ISSUE DETAIL PAGE  (issues/show)
   Spec: Redmine Issue Detail Page UI Redesign v3
   Two-column: info card (left, fluid) + history panel (right, 380px)
   ================================================================ */

/* ----------------------------------------------------------------
   PAGE WRAPPER
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_detail {
  padding: 0;
  background: #f5f6fa;
  border: none;
  box-shadow: none;
}

/* ----------------------------------------------------------------
   HEADER ROW  — issue ID / badge (left) + action buttons (right)
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_detail_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 18px 24px 14px; */
  gap: 12px;
  flex-wrap: wrap;
}

body.lotus-theme .rf_issue_title_group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.lotus-theme .rf_issue_title_text {
  color: var(--rf-text-h);
}

body.lotus-theme .rf_issue_title_text a {
  color: var(--rf-text-h);
  text-decoration: none;
}

/* Status badge */
body.lotus-theme .rf_issue_title_group .badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: white;
  border: 1px solid #E1E6ED;
  line-height: 0px;
}

/* Action buttons row */
body.lotus-theme .rf_issue_header_actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Generic action button (Add Notes, Edit, Watch, Copy) */
body.lotus-theme .rf_action_btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  background: var(--rf-white);
  color: var(--rf-text);
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--rf-font);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--rf-transition), color var(--rf-transition), background var(--rf-transition);
  white-space: nowrap;
}

body.lotus-theme .rf_action_btn:hover {
  border-color: var(--rf-blue) !important;
  color: var(--rf-blue) !important;
  background: var(--rf-blue-light) !important;
}

div.rf_issue_detail_header>div.rf_issue_header_actions>div>div>a.icon.icon-edit,
div.rf_issue_edit_section>div.contextual>a.icon.icon-edit {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/edit-94d712e6.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 30px !important;
  background-size: 18px !important;
  background-position: 8px 7px !important;
}

div.rf_issue_detail_header>div.rf_issue_header_actions>div>div>a.icon.icon-time-add,
div.rf_issue_edit_section>div.contextual>a.icon.icon-time-add {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/log-time-a987dbce.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 32px !important;
  background-size: 14px !important;
  background-position: 12px 7px !important;
}

div.rf_issue_detail_header>div.rf_issue_header_actions>div>div>a.icon.icon-fav-off,
div.rf_issue_edit_section>div.contextual>a.icon.icon-fav-off {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/watch-icon-ed239301.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 35px !important;
  background-size: 17px !important;
  background-position: 12px 10px !important;
}

div.rf_issue_detail_header>div.rf_issue_header_actions>div>div>a.icon.icon-fav,
div.rf_issue_edit_section>div.contextual>a.icon.icon-fav {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/unwatch-icon-371fc0bc.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 35px !important;
  background-size: 17px !important;
  background-position: 12px 10px !important;
}

div.rf_issue_detail_header>div.rf_issue_header_actions>div>div>a.icon.icon-copy,
div.rf_issue_edit_section>div.contextual>a.icon.icon-copy {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/copy-e30d8181.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 30px !important;
  background-size: 14px !important;
  background-position: 10px 9px !important;
}

body.lotus-theme a.icon.icon-unlock {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/unlock-icon-d47ff122.svg") !important;
  background-repeat: no-repeat !important;
  padding-left: 20px !important;
  background-size: 16px !important;
  background-position: 0px 2px !important;
}

/* Action menu wrapper — flattens .contextual float */
body.lotus-theme .rf_action_menu_wrap {
  display: flex;
  align-items: center;
}

body.lotus-theme .rf_action_menu_wrap .contextual {
  display: flex;
  align-items: center;
  gap: 8px;
  float: none;
  margin: 0;
}

body.lotus-theme .rf_action_menu_wrap .contextual a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  background: var(--rf-white);
  color: var(--rf-text);
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--rf-font);
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition), background var(--rf-transition);
  white-space: nowrap;
}

body.lotus-theme .rf_action_menu_wrap .contextual a:hover {
  border-color: var(--rf-blue) !important;
  color: var(--rf-blue) !important;
  background: var(--rf-blue-light) !important;
}

/* Start Timer / Log Time — gradient primary button */
body.lotus-theme .rf_action_menu_wrap .contextual a.icon-time-add,
body.lotus-theme .rf_action_menu_wrap .contextual a[class*="start-timer"],
body.lotus-theme .rf_action_menu_wrap .contextual a[class*="timer"] {
  background: linear-gradient(135deg, #4F7CF3, #3CC3A4);
  border: none;
  color: #fff;
  font-weight: 600;
}

body.lotus-theme .rf_action_menu_wrap .contextual a.icon-time-add:hover,
body.lotus-theme .rf_action_menu_wrap .contextual a[class*="start-timer"]:hover,
body.lotus-theme .rf_action_menu_wrap .contextual a[class*="timer"]:hover {
  background: linear-gradient(135deg, #3D6AE1, #2AB192);
  color: #fff;
}

/* Actions dropdown trigger */
body.lotus-theme .rf_action_menu_wrap .contextual .drdn {
  position: relative;
}

body.lotus-theme .rf_action_menu_wrap .contextual .drdn .drdn-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  background: var(--rf-white);
  color: var(--rf-text-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_action_menu_wrap .contextual .drdn .drdn-trigger:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
}

#content>div.contextual>span.drdn>span.drdn-trigger>span.icon-only.icon-actions {
  transform: rotate(90deg);
}

span.drdn.expanded>div.drdn-content>div.drdn-items>a {
  display: block;
  background: #fff !important;
  color: var(--rf-text) !important;
  border: none !important;
  padding: 4px 6px !important;
  height: 26px;
}

span.drdn.expanded>div.drdn-content>div.drdn-items>a::before {
  display: none;
}

span.drdn.expanded>div.drdn-content>div.drdn-items>a:hover {
  color: var(--rf-blue) !important;
}

span.drdn.expanded>div.drdn-content {
  margin-top: 12px;
}

#issue_tree .issue>td.subject,
#relations .issue>td.subject {
  min-width: auto !important;
}

/* ----------------------------------------------------------------
   PREV / NEXT NAVIGATION
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_prevnext {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 0px;
  font-size: 12px;
  font-weight: 500;

}

body.lotus-theme .rf_issue_prevnext a {
  color: #1673FF;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--rf-border);
  border-radius: 6px;
  background: var(--rf-white);
  transition: all var(--rf-transition);
}

body.lotus-theme .rf_issue_prevnext a:hover {
  border-color: #1673FF;
  background: #F0F4FF;
}

/* ----------------------------------------------------------------
   TWO-COLUMN BODY
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_detail_body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  /* padding: 20px 24px; */
}

body.lotus-theme .rf_issue_left_col {
  flex: 2 1 0;
  min-width: 0;
}

body.lotus-theme .rf_issue_right_col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* When history is empty — left col takes full width, right col hides */
body.lotus-theme .rf_issue_detail_body.rf_no_history .rf_issue_left_col {
  flex: 1 1 100%;
}

body.lotus-theme .rf_issue_detail_body.rf_no_history .rf_issue_right_col {
  display: none;
}

/* ----------------------------------------------------------------
   EDIT SECTION (below detail body, full width)
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_edit_section {
  padding: 21px 0px 0px 0px;
}

body.lotus-theme .rf_issue_edit_section #update {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  padding: 20px 24px;
  margin-top: 0;
}

body.lotus-theme .rf_issue_edit_section #update h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme .rf_issue_edit_section .contextual {
  margin-bottom: 8px;
}

/* ----------------------------------------------------------------
   COPY URL ROW (clipboard icon above card)
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_copy_row {
  margin-bottom: 10px;
}

body.lotus-theme .rf_copy_btn_wrap .drdn-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  background: var(--rf-white);
  color: var(--rf-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_copy_btn_wrap .drdn-trigger:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
}

/* ----------------------------------------------------------------
   ISSUE INFO CARD  (left column main card)
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_info_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

/* Card head: avatar + title + author */
body.lotus-theme .rf_issue_info_head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme .rf_issue_info_avatar {
  flex-shrink: 0;
  position: relative;
}

body.lotus-theme .rf_issue_info_avatar img,
body.lotus-theme .rf_issue_info_avatar .gravatar {
  border-radius: 50%;
  display: block;
}

body.lotus-theme .rf_issue_info_title_wrap {
  flex: 1;
  min-width: 0;
}

body.lotus-theme .rf_issue_info_subject {
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-text-h);
  line-height: 1.4;
  margin-bottom: 4px;
}

body.lotus-theme .rf_issue_info_subject a {
  color: inherit;
  text-decoration: none;
}

body.lotus-theme .rf_issue_info_meta {
  font-size: 12px;
  color: var(--rf-text-muted);
  margin: 0;
  line-height: 1.4;
}

body.lotus-theme .rf_issue_info_meta a {
  color: var(--rf-blue);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   ATTRIBUTES 2-COLUMN GRID
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_attrs_grid {
  display: grid;
  grid-auto-flow: column;
  padding: 0 24px 4px;
  border-bottom: 1px solid var(--rf-border);
  position: relative;
}

body.lotus-theme .rf_attrs_col {
  padding: 16px 0;
}

body.lotus-theme .rf_attrs_col:last-child {
  padding-left: 24px;
}

body.lotus-theme .rf_attr_row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Hide the dot bullet — cleaner design */
body.lotus-theme .rf_attr_dot {
  margin-right: 5px;
}

body.lotus-theme .rf_attr_lbl {
  color: var(--rf-text-muted);
  font-size: 13px;
  font-weight: 500;
  min-width: 140px;
  flex-shrink: 0;
}

body.lotus-theme .rf_attr_val {
  color: var(--rf-text-h);
  font-weight: 500;
  font-size: 13px;
  flex: 1;
  min-width: 0;
}

body.lotus-theme .rf_attr_val a {
  color: var(--rf-text-h);
  text-decoration: none;
}

body.lotus-theme .rf_attr_val a:hover {
  color: var(--rf-blue);
}

/* Icon + date/hours values */
body.lotus-theme .rf_attr_icon_val {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.lotus-theme .rf_attr_icon_val svg {
  background-color: #EBF8F6 !important;
    border-color: rgba(45, 183, 163, 0.3) !important;
    color: #2DB7A3 !important;
  flex-shrink: 0;
}

body.lotus-theme .rf_date_icon::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("/assets/plugin_assets/redmineflux_lotus/date-4e3b39d3.svg") no-repeat center / contain;
  flex-shrink: 0;
}

body.lotus-theme .rf_time_icon::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("/assets/plugin_assets/redmineflux_lotus/ion_time-19155bc6.svg") no-repeat center / contain;
  flex-shrink: 0;
}

/* Progress bar attribute — gradient fill */
body.lotus-theme .rf_attr_progress_val {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

body.lotus-theme .rf_progress_track {
  flex: 1;
  max-width: 120px;
  height: 7px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

body.lotus-theme .rf_progress_fill {
  display: block;
  height: 100%;
  background: linear-gradient(95.31deg, #0EA578 4.25%, #11DA9E 93.57%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

body.lotus-theme .rf_progress_pct {
  color: var(--rf-text-h);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   CUSTOM FIELDS ROW
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_custom_fields_wrap {
  padding: 14px 24px;
  border-bottom: 1px solid var(--rf-border);
  font-size: 13px;
}

body.lotus-theme .rf_issue_custom_fields_wrap table.attributes {
  width: 100%;
  border-collapse: collapse;
}

body.lotus-theme .rf_issue_custom_fields_wrap table.attributes td {
  padding: 5px 8px 5px 0;
  color: var(--rf-text-h);
  font-size: 13px;
  vertical-align: top;
}

body.lotus-theme .rf_issue_custom_fields_wrap table.attributes td.label {
  color: var(--rf-text-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 110px;
}

/* ----------------------------------------------------------------
   DESCRIPTION SECTION
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_desc_section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme .rf_issue_section_label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin-bottom: 10px;
}

div.rf_issue_section_row.rf_issue_desc_section>div.rf_issue_section_label>div>a.icon.icon-comment {
  border: none;
  background-image: url("/assets/plugin_assets/redmineflux_lotus/quotes-a759243b.svg");
  background-repeat: no-repeat;
  background-position: 6px 11px;
  padding-left: 20px;
  font-size: 14px;
  background-size: 14px;
}


body.lotus-theme .rf_issue_desc_content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--rf-text);
}

/* ----------------------------------------------------------------
   GENERIC SECTION ROWS  (subtasks, relations, attachments, watchers)
   Each section: heading with "+ Add" link, collapsible content
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_section_row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rf-border);
  font-size: 13px;
}

body.lotus-theme .rf_issue_section_row:last-child {
  border-bottom: none;
}

/* Section heading (h3 from subtasks/relations partials) */
body.lotus-theme .rf_issue_section_row h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "Add" contextual links — styled as small action button */
body.lotus-theme .rf_issue_section_row .contextual {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.lotus-theme .rf_issue_section_row .contextual a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--rf-blue);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--rf-border);
  border-radius: 6px;
  background-color: var(--rf-white);
  background-image: url("/assets/plugin_assets/redmineflux_lotus/grey-plus-81d697f1.svg");
  transition: border-color var(--rf-transition), background var(--rf-transition);
  background-repeat: no-repeat;
  background-position: 8px 6px;
  padding-left: 25px;
}

body.lotus-theme .rf_issue_section_row .contextual a:hover {
  border-color: var(--rf-blue);
  background-color: var(--rf-blue-light);
}

/* subtask and Relations delete (unlink) button */
body.lotus-theme table tbody tr td.buttons a.icon-only.icon-link-break {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/unlink-icon-a376af3f.svg") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  font-size: 0;
}

body.lotus-theme table tbody tr td.buttons a.icon-only.icon-link-break svg use {
  display: none;
}


/* Sub-issue / relation table */
body.lotus-theme .rf_issue_section_row table.issues {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--rf-text);
}

body.lotus-theme .rf_issue_section_row table.issues td,
body.lotus-theme .rf_issue_section_row table.issues th {
  padding: 6px 8px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

body.lotus-theme .rf_issue_section_row table.issues a {
  color: var(--rf-blue);
  text-decoration: none;
}

body.lotus-theme .rf_issue_section_body {
  font-size: 13px;
  color: var(--rf-text);
}

body.lotus-theme .rf_issue_watchers_row {
  border-bottom: none;
}

/* ----------------------------------------------------------------
   HISTORY CARD  (right column) — Activity Panel
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_history_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

/* Tab bar */
body.lotus-theme .rf_issue_history_card .tabs {
  border-bottom: 1px solid var(--rf-border);
  background: var(--rf-white);
}

body.lotus-theme .rf_issue_history_card .tabs ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 14px;
  gap: 0;
  overflow-x: auto;
}

body.lotus-theme .rf_issue_history_card .tabs ul li {
  margin: 0;
  flex-shrink: 0;
}

body.lotus-theme .rf_issue_history_card .tabs ul li a {
  display: block;
  padding: 6px 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--rf-text-muted) !important;
  text-decoration: none;
  border: none !important;
  transition: color var(--rf-transition), border-color var(--rf-transition);
  white-space: nowrap;
}

body.lotus-theme .rf_issue_history_card .tabs ul li.selected a,
body.lotus-theme .rf_issue_history_card .tabs ul li a.selected {
  color: var(--rf-blue) !important;
  border-bottom-color: var(--rf-blue) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.lotus-theme .rf_issue_history_card .tabs ul li a:hover {
  color: var(--rf-blue) !important;
  font-weight: 600 !important;
}

/* Tab scroll buttons — left/right arrows */
/* body.lotus-theme #history .tabs .tabs-buttons {
  background: var(--rf-white);
}

body.lotus-theme #history .tabs .tabs-buttons button.tab-left {
  background: #b3e2ff url("/assets/plugin_assets/redmineflux_lotus/left-arrow-83659301.svg") no-repeat center / 6px;
  transform: scaleX(-1);
  border: 1px solid var(--rf-border);
  border-radius: 3px 0 0 3px;
}

body.lotus-theme #history .tabs .tabs-buttons button.tab-right {
  background: #b3e2ff url("/assets/plugin_assets/redmineflux_lotus/left-arrow-83659301.svg") no-repeat center / 6px;
  border: 1px solid var(--rf-border);
  border-radius: 0 3px 3px 0;
}

body.lotus-theme #history .tabs .tabs-buttons button.tab-left:hover,
body.lotus-theme #history .tabs .tabs-buttons button.tab-right:hover {
  background-color: var(--rf-bg-hover);
}

body.lotus-theme #history .tabs .tabs-buttons button.tab-left.disabled,
body.lotus-theme #history .tabs .tabs-buttons button.tab-right.disabled {
  opacity: 0.7;
  cursor: default;
} */

body.lotus-theme div.journal h4 img.gravatar {
  margin: -10px 6px 0px -2px;
}

.note>div.contextual>span>a.icon.icon-comment {
  background: none !important;
  border: none !important;
  padding: 0px;
}

h4.note-header {
  border: none;
}

.note>h4>a.user.active {
  color: #1673FF;
}

/* Tab content area — scrollable */
body.lotus-theme .rf_issue_history_card .tab-content {
  padding: 0;
  max-height: 600px;
  overflow-y: auto;
  border: none !important;
  box-shadow: none !important;
}

/* Individual journal entries */
body.lotus-theme .rf_issue_history_card .journal {
  padding: 16px 18px;
  overflow: hidden;
}

body.lotus-theme .rf_issue_history_card .journal:last-child {
  border-bottom: none;
}

/* Gravatar in history entry */
body.lotus-theme .rf_issue_history_card .journal>.gravatar,
body.lotus-theme .rf_issue_history_card .journal>.gravatar-with-child {
  float: left;
  margin-right: 10px;
  margin-bottom: 4px;
}

body.lotus-theme .rf_issue_history_card .journal img.gravatar {
  border-radius: 50%;
  width: 30px !important;
  height: 30px !important;
}

/* Journal header line */
body.lotus-theme .rf_issue_history_card .journal>p:first-of-type,
body.lotus-theme .rf_issue_history_card .journal .journal-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--rf-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

body.lotus-theme .rf_issue_history_card .journal>p:first-of-type a {
  color: var(--rf-blue);
  font-weight: 500;
  text-decoration: none;
}

/* #N badge (right-aligned in the header) */
body.lotus-theme .rf_issue_history_card .journal .id {
  margin-left: auto;
  color: var(--rf-text-subtle);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

/* Journal note body */
body.lotus-theme .rf_issue_history_card .journal .wiki {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rf-text);
  margin: 6px 0;
}

/* Property changes list */
body.lotus-theme .rf_issue_history_card .journal ul.details {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

body.lotus-theme .rf_issue_history_card .journal ul.details li {
  font-size: 12px;
  color: var(--rf-text-muted);
  padding: 3px 0;
  line-height: 1.5;
}

body.lotus-theme .rf_issue_history_card .journal ul.details li strong {
  color: var(--rf-text);
}

/* ----------------------------------------------------------------
   EXPORT ROW  (Atom / CSV / PDF buttons)
---------------------------------------------------------------- */
body.lotus-theme .rf_issue_export_row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

body.lotus-theme .rf_issue_export_row a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  background: var(--rf-white);
  color: var(--rf-text-muted);
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_issue_export_row a:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
}

/* ================================================================
   ISSUE EDIT PAGE  (issues/edit)
   ================================================================ */

body.lotus-theme .rf_issue_edit_page {
  padding: 0;
}

body.lotus-theme .rf_issue_edit_header {
  padding: 18px 24px 14px;
  background: var(--rf-white);
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme .rf_issue_edit_title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0;
  line-height: 1.3;
}

body.lotus-theme .rf_issue_edit_card {
  margin: 20px 24px 24px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  overflow: hidden;
}

/* Outer box container */
body.lotus-theme .rf_issue_edit_card #issue-form .box {
  padding: 20px 24px;
}

/* Fieldsets */
body.lotus-theme .rf_issue_edit_card fieldset.tabular {
  border: none;
  border-bottom: 1px solid var(--rf-border);
  padding: 0 0 20px;
  margin: 0 0 20px;
}

body.lotus-theme .rf_issue_edit_card fieldset.tabular:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.lotus-theme .rf_issue_edit_card fieldset.tabular legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rf-border);
  width: 100%;
  float: none;
  display: block;
}

/* All inputs */
body.lotus-theme .rf_issue_edit_card #issue-form input[type="text"],
body.lotus-theme .rf_issue_edit_card #issue-form input[type="date"],
body.lotus-theme .rf_issue_edit_card #issue-form input[type="number"],
body.lotus-theme .rf_issue_edit_card #issue-form select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text-h);
  background: var(--rf-white);
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
  box-sizing: border-box;
  width: 100%;
}

body.lotus-theme .rf_issue_edit_card #issue-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--rf-font);
  color: var(--rf-text-h);
  background: var(--rf-white);
  min-height: 120px;
  resize: vertical;
  transition: border-color var(--rf-transition);
  box-sizing: border-box;
  width: 100%;
}

body.lotus-theme .rf_issue_edit_card #issue-form input:focus,
body.lotus-theme .rf_issue_edit_card #issue-form select:focus,
body.lotus-theme .rf_issue_edit_card #issue-form textarea:focus {
  outline: none;
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Two-column splitcontent inside attributes */
body.lotus-theme .rf_issue_edit_card .splitcontent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

body.lotus-theme .rf_issue_edit_card .splitcontentleft,
body.lotus-theme .rf_issue_edit_card .splitcontentright {
  min-width: 0;
}

/* Wiki toolbar wrapper */
body.lotus-theme .rf_issue_edit_card .jstEditor {
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  overflow: hidden;
}

body.lotus-theme .rf_issue_edit_card .jstEditor textarea {
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  min-height: 120px;
}

body.lotus-theme .rf_issue_edit_card .jstEditor:focus-within {
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Submit button — gradient */
body.lotus-theme .rf_issue_edit_card #issue-form input[type="submit"] {
  height: 38px;
  width: auto;
  padding: 0 22px;
  background: linear-gradient(135deg, #4F7CF3, #3CC3A4);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--rf-font);
  cursor: pointer;
  transition: opacity var(--rf-transition);
}

body.lotus-theme .rf_issue_edit_card #issue-form input[type="submit"]:hover {
  opacity: 0.9;
}

/* Cancel link */
body.lotus-theme .rf_issue_edit_card #issue-form>a,
body.lotus-theme .rf_issue_edit_card #issue-form .box>a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  margin-left: 8px;
  background: var(--rf-white);
  color: var(--rf-text-muted) !important;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme .rf_issue_edit_card #issue-form>a:hover,
body.lotus-theme .rf_issue_edit_card #issue-form .box>a:hover {
  border-color: var(--rf-blue) !important;
  color: var(--rf-blue) !important;
}

/* ================================================================
   ISSUE DETAIL + EDIT — RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  body.lotus-theme .rf_issue_detail_body {
    flex-direction: column;
  }

  body.lotus-theme .rf_issue_right_col {
    width: 100%;
  }

  body.lotus-theme .rf_issue_history_card .tab-content {
    max-height: none;
  }

  body.lotus-theme .rf_issue_edit_section {
    padding: 0 12px 12px;
  }
}

@media (max-width: 768px) {
  body.lotus-theme .rf_issue_detail_body {
    /* padding: 12px; */
    gap: 12px;
  }

  body.lotus-theme .rf_issue_edit_section {
    padding: 0 12px 12px;
  }

  body.lotus-theme .rf_issue_attrs_grid {
    grid-template-columns: 1fr;
  }

  body.lotus-theme .rf_attrs_col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--rf-border);
    padding-right: 0;
    padding-bottom: 12px;
  }

  body.lotus-theme .rf_attrs_col:last-child {
    padding-left: 0;
    padding-top: 12px;
  }

  body.lotus-theme .rf_issue_edit_card {
    margin: 12px;
  }

  body.lotus-theme .rf_issue_edit_card .splitcontent {
    grid-template-columns: 1fr;
  }

  body.lotus-theme .rf_issue_detail_header {
    flex-direction: column;
    align-items: flex-start;
    /* padding: 14px 16px; */
  }

  body.lotus-theme .rf_issue_header_actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.lotus-theme .rf_issue_info_head {
    padding: 16px;
  }

  body.lotus-theme .rf_issue_attrs_grid {
    padding: 0 16px 4px;
  }

  body.lotus-theme .rf_issue_desc_section,
  body.lotus-theme .rf_issue_section_row {
    padding: 14px 16px;
  }
}

/* ----------------------------------------------------------------
   ADMINISTRATION SUB-PAGES — hide main nav, show only admin menu
   When the admin layout injects admin-menu into sidebar, hide the
   lotus-built Main Menu / Settings sections so only admin-menu shows.
   ---------------------------------------------------------------- */
body.lotus-theme.controller-admin:not(.action-index) #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-settings #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-users #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-roles #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-trackers #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-workflows #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-groups #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_inner .rf_sb_section,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_inner .rf_sb_section {
  display: none;
}

body.lotus-theme.controller-users.action-show .rf_sb_inner .rf_sb_section {
  display: block !important;
}



/* Keep the page title visible on admin sub-pages */
body.lotus-theme.controller-admin:not(.action-index) #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-settings #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-users #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-roles #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-trackers #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-workflows #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-groups #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_inner .rf_sb_page_title {
  display: block;
}

/* Hide page title when sidebar is collapsed on admin sub-pages — overrides the keep-visible rule above */
body.lotus-theme.rf_sidebar_collapsed.controller-admin:not(.action-index) #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-settings #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-users #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-roles #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-trackers #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-issue_statuses #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-workflows #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-custom_fields #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-custom_field_enumerations #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-enumerations #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-groups #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-auth_sources #sidebar .rf_sb_inner .rf_sb_page_title,
body.lotus-theme.rf_sidebar_collapsed.controller-principal_memberships #sidebar .rf_sb_inner .rf_sb_page_title {
  display: none;
}

/* Admin sub-pages: collapse rf_sb_inner so core section moves up */
body.lotus-theme.controller-admin:not(.action-index) #sidebar .rf_sb_inner,
body.lotus-theme.controller-settings #sidebar .rf_sb_inner,
body.lotus-theme.controller-users #sidebar .rf_sb_inner,
body.lotus-theme.controller-roles #sidebar .rf_sb_inner,
body.lotus-theme.controller-trackers #sidebar .rf_sb_inner,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_inner,
body.lotus-theme.controller-workflows #sidebar .rf_sb_inner,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_inner,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_inner,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_inner,
body.lotus-theme.controller-groups #sidebar .rf_sb_inner,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_inner,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_inner {
  flex: 0;
  padding: 12px 10px 0;
  overflow: visible;
}

/* Admin sub-pages: remove top border from core section so it blends up */
body.lotus-theme.controller-admin:not(.action-index) #sidebar .rf_sb_core_section,
body.lotus-theme.controller-settings #sidebar .rf_sb_core_section,
body.lotus-theme.controller-users #sidebar .rf_sb_core_section,
body.lotus-theme.controller-roles #sidebar .rf_sb_core_section,
body.lotus-theme.controller-trackers #sidebar .rf_sb_core_section,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_core_section,
body.lotus-theme.controller-workflows #sidebar .rf_sb_core_section,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_core_section,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_core_section,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_core_section,
body.lotus-theme.controller-groups #sidebar .rf_sb_core_section,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_core_section,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_core_section {
  border-top: none;
  padding-top: 4px;
}

/* ----------------------------------------------------------------
   ADMINISTRATION PAGE – CARD GRID
   ---------------------------------------------------------------- */

/* Admin sub-pages (expanded sidebar): icon ::before on admin-menu links */
body.lotus-theme.controller-admin:not(.action-index) #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-settings #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-users #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-roles #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-trackers #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-workflows #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-groups #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_core_section #admin-menu ul li a,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_core_section #admin-menu ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px !important;
  background-size: 18px !important;
  background-position: 10px 10px !important;

}

body.lotus-theme.controller-admin:not(.action-index) #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-settings #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-users #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-roles #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-trackers #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-issue_statuses #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-workflows #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-custom_fields #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-custom_field_enumerations #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-enumerations #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-groups #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-auth_sources #sidebar .rf_sb_core_section #admin-menu ul li a::before,
body.lotus-theme.controller-principal_memberships #sidebar .rf_sb_core_section #admin-menu ul li a::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.75;
}

/* Icon mappings for expanded admin-menu */
/* body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-projects::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/project-admin-721b5bb3.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-user::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/user-admin-fc9ba22e.svg") !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-group::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/group-admin-da74f722.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-roles::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/role-permission-admin-dcd02f1d.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-issue::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/tracker-admin-056ead8c.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-issue-edit::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/issue-status-admin-f9e00ca5.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-workflows::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/workflow-admin-73c0258b.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-custom-fields::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/custom-fields-admin-e4e4cf8f.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-list::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/enumerations-admin-2f11e8e4.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-settings::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/setting-admin-bd8ed632.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-server-authentication::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/ldap-admin-6fe1e93f.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-plugins::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/plugin-admin-f2676263.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-help::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/information-admin-434789a0.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="helpdesk"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/helpdesk-admin-a13a6743.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="issue-template"]::before,
body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="template"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/issue-template-admin-32e5d6f2.svg");
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="knowledgebase"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/knowledgebase-admin-25991c0e.svg");
} */

/* Also hide the Redmine inline SVG since we use ::before icon */
body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a svg {
  display: none;
}

/* Admin sub-pages: keep core section visible when sidebar is collapsed */
body.lotus-theme.rf_sidebar_collapsed.controller-admin:not(.action-index) #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-settings #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-users #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-roles #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-trackers #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-issue_statuses #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-workflows #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-custom_fields #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-custom_field_enumerations #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-enumerations #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-groups #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-auth_sources #sidebar .rf_sb_core_section,
body.lotus-theme.rf_sidebar_collapsed.controller-principal_memberships #sidebar .rf_sb_core_section {
  display: block !important;
  padding: 8px 6px;
  border-top: none;
  overflow-y: auto;
}

/* Hide heading text in collapsed admin sidebar */
body.lotus-theme.rf_sidebar_collapsed.controller-admin:not(.action-index) #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-settings #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-users #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-roles #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-trackers #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-issue_statuses #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-workflows #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-custom_fields #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-custom_field_enumerations #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-enumerations #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-groups #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-auth_sources #sidebar .rf_sb_core_section>h3,
body.lotus-theme.rf_sidebar_collapsed.controller-principal_memberships #sidebar .rf_sb_core_section>h3 {
  display: none;
}

/* Style admin-menu links as icon-only boxes when collapsed */
body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section #admin-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section #admin-menu ul li {
  margin: 2px 0;
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section #admin-menu ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  padding: 0 !important;
  border-radius: 8px;
  font-size: 0;
  color: transparent;
  overflow: hidden;
  background-position: center !important;
  background-size: 18px !important;
  background-repeat: no-repeat !important;
  transition: background-color var(--rf-transition);
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section #admin-menu ul li a:hover {
  background-color: var(--rf-bg);
}

body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section #admin-menu ul li a.selected {
  background-color: var(--rf-primary-light) !important;
}

/* Suppress ::before pseudo-icon in collapsed admin sidebar — icon is shown via background-image on <a> */
body.lotus-theme.rf_sidebar_collapsed #sidebar .rf_sb_core_section #admin-menu ul li a::before {
  display: none;
}

/* Hide inline SVGs in collapsed admin-menu links */
body.lotus-theme #sidebar .rf_sb_core_section #admin-menu>ul>li>a svg {
  display: none;
}

/* Admin-menu collapsed sidebar icon backgrounds */
body.lotus-theme #sidebar .rf_sb_core_section #admin-menu>ul>li>a.icon-projects {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/project-admin-721b5bb3.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu>ul>li>a.icon-user {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/user-admin-fc9ba22e.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-group {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/group-admin-da74f722.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-roles {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/role-permission-admin-dcd02f1d.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-issue {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/tracker-admin-056ead8c.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-issue-edit {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/issue-status-admin-f9e00ca5.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-workflows {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/workflow-admin-73c0258b.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-custom-fields {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/custom-fields-admin-e4e4cf8f.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-list {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/enumerations-admin-2f11e8e4.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-settings {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/setting-admin-bd8ed632.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-server-authentication {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/ldap-admin-6fe1e93f.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-plugins {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/plugin-admin-f2676263.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a.icon-help {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/information-admin-434789a0.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="helpdesk"] {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/helpdesk-admin-a13a6743.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="issue-template"],
body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="template"] {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/issue-template-admin-32e5d6f2.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="invoice-settings"]{
  background-image: url("/assets/plugin_assets/redmineflux_lotus/invoice-settings-admin-659fef3a.svg");
  background-repeat: no-repeat !important;
  background-position: 10px 7px !important;
}

body.lotus-theme #sidebar .rf_sb_core_section #admin-menu ul li a[class*="knowledgebase"] {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/knowledgebase-admin-25991c0e.svg");
  background-repeat: no-repeat !important;
}

body.lotus-theme.controller-admin.action-index #admin-index {
  padding: 0;
}

body.lotus-theme.controller-admin.action-index #admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.lotus-theme.controller-admin.action-index #admin-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.lotus-theme.controller-admin.action-index #admin-menu li {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 215px;
  height: 162px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition), transform var(--rf-transition);
  overflow: hidden;
  cursor: pointer;
}

body.lotus-theme.controller-admin.action-index #admin-menu li:hover {
  border-color: var(--rf-primary);
  box-shadow: var(--rf-shadow-md);
  transform: translateY(-2px);
}

body.lotus-theme.controller-admin.action-index #admin-menu li a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0px 12px 25px 0px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-h);
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

body.lotus-theme.controller-admin.action-index #admin-menu li a:hover {
  color: var(--rf-primary-dark);
}

/* Icon area – space reserved for icons (top portion of card) */
body.lotus-theme.controller-admin.action-index #admin-menu li a::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Admin card icons — mapped to SVG files */
body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-projects::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/project-admin-721b5bb3.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-user::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/user-admin-fc9ba22e.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-group::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/group-admin-da74f722.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-roles::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/role-permission-admin-dcd02f1d.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-issue::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/tracker-admin-056ead8c.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-issue-edit::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/issue-status-admin-f9e00ca5.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-workflows::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/workflow-admin-73c0258b.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-custom-fields::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/custom-fields-admin-e4e4cf8f.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-list::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/enumerations-admin-2f11e8e4.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-settings::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/setting-admin-bd8ed632.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-server-authentication::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/ldap-admin-6fe1e93f.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-plugins::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/plugin-admin-f2676263.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon-help::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/information-admin-434789a0.svg");
}

/* Plugin admin items */
body.lotus-theme.controller-admin.action-index #admin-menu li a[class*="helpdesk"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/helpdesk-admin-a13a6743.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a[class*="issue-template"]::before,
body.lotus-theme.controller-admin.action-index #admin-menu li a[class*="template"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/issue-template-admin-32e5d6f2.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a[class*="invoice-settings"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/invoice-settings-admin-659fef3a.svg");
}

body.lotus-theme.controller-admin.action-index #admin-menu li a[class*="knowledgebase"]::before {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/knowledgebase-admin-25991c0e.svg");
}


/* Hide default Redmine icon sprites and inline SVGs on admin cards */
body.lotus-theme.controller-admin.action-index #admin-menu li a.icon {
  background-image: none !important;
  padding-left: 12px;
}

body.lotus-theme.controller-admin.action-index #admin-menu li a.icon.icon-user.users {
  width: auto;
  height: auto;
}

body.lotus-theme.controller-admin.action-index #admin-menu li a svg {
  display: none;
}

/* Responsive: tablets */
@media screen and (max-width: 768px) {

  body.lotus-theme.controller-admin.action-index #admin-menu,
  body.lotus-theme.controller-admin.action-index #admin-menu ul {
    gap: 14px;
    justify-content: center;
  }

  body.lotus-theme.controller-admin.action-index #admin-menu li {
    width: 170px;
    height: 110px;
  }
}

/* Responsive: mobile */
@media screen and (max-width: 480px) {

  body.lotus-theme.controller-admin.action-index #admin-menu,
  body.lotus-theme.controller-admin.action-index #admin-menu ul {
    gap: 10px;
    justify-content: center;
  }

  body.lotus-theme.controller-admin.action-index #admin-menu li {
    width: calc(50% - 10px);
    height: 100px;
  }

  body.lotus-theme.controller-admin.action-index #admin-menu li a {
    font-size: 12px;
    padding-bottom: 12px;
  }

  body.lotus-theme.controller-admin.action-index #admin-menu li a::before {
    width: 40px;
    height: 40px;
    top: 18px;
  }
}

/* ----------------------------------------------------------------
 MY PAGE
---------------------------------------------------------------- */

body.lotus-theme .mypage-box>div.contextual>a>svg {
  display: block;
}

body.lotus-theme div#my-page {
  margin-top: 25px;
}

body.lotus-theme select#block-select,
body.lotus-theme #add_filter_select,
body.lotus-theme #filters-table .filter .operator select,
select {
  background: var(--rf-white) url("/assets/plugin_assets/redmineflux_lotus/down-arrow-ed8cd814.svg") no-repeat 100% 50% !important;
  background-size: 18px !important;
}

body.lotus-theme #context-menu li>a,
#context-menu>ul>li>a>span {
  flex-grow: 1;
  padding-left: 5px !important;
  background-image: none;
}

#context-menu>ul>li>a>span {
  margin-left: -4px !important;
}

body.lotus-theme #context-menu a svg {
  display: none;
}


#context-menu li.folder>ul {
  left: 145px !important;
}

body.lotus-theme .icon-actions {
  transform: rotate(90deg);
  font-size: 0px !important;
}

body.lotus-theme .mypage-box>.contextual {
  margin-top: 0px;
}

/* ===== Home / Welcome Page ===== */

body.lotus-theme.controller-welcome.action-index #main-menu {
  display: none;
}

body.lotus-theme.controller-welcome.action-index #sidebar {
  display: none;
}

body.lotus-theme.controller-welcome.action-index #content {
  width: 100%;
  margin: 0;
}

/* Hero */
body.lotus-theme .rf_home_hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, #2DB7A3 0%, #1a9986 50%, #177d6d 100%);
  border-radius: var(--rf-radius-lg);
  padding: 44px 48px;
  margin-bottom: 24px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

body.lotus-theme .rf_home_hero_decor1 {
  position: absolute;
  top: -80px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

body.lotus-theme .rf_home_hero_decor2 {
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

body.lotus-theme .rf_home_hero_content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.lotus-theme .rf_home_date {
  font-size: 13px;
  opacity: 0.7;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

body.lotus-theme .rf_home_greeting {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

body.lotus-theme .rf_home_username {
  color: #A7F3D0;
}

body.lotus-theme .rf_home_tagline {
  font-size: 15px;
  opacity: 0.75;
  margin: 0;
  font-weight: 400;
}

/* Hero quick action buttons */
body.lotus-theme .rf_home_hero_actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

body.lotus-theme .rf_hero_btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: #009688;
  backdrop-filter: blur(4px);
}

body.lotus-theme .rf_hero_btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

body.lotus-theme .rf_hero_btn_primary {
  background: #009688;
  border-color: #009688;
}

body.lotus-theme .rf_hero_btn_primary:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.lotus-theme .rf_hero_btn svg {
  flex-shrink: 0;
}

/* Hero illustration */
body.lotus-theme .rf_home_hero_visual {
  flex: 0 0 340px;
  max-width: 340px;
  position: relative;
  z-index: 1;
}

body.lotus-theme .rf_home_illustration svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
  border-radius: 14px;
}

/* Stats */
body.lotus-theme .rf_home_stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

#content>div.rf_home_page>div.rf_home_stats>a:nth-child(1):before {
  background: #2db7a3;
}

#content>div.rf_home_page>div.rf_home_stats>a:nth-child(1):hover {
  border-color: #2db7a3;
  box-shadow: 0 4px 16px rgb(45 183 163 / 21%);
  transform: translateY(-2px);
}

body.lotus-theme .rf_home_stat_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  padding: 22px 16px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body.lotus-theme .rf_home_stat_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3f61e8;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.lotus-theme .rf_home_stat_card:hover {
  border-color: #2196F3;
  box-shadow: 0 4px 16px rgb(33 150 243 / 19%);
  transform: translateY(-2px);
}

body.lotus-theme .rf_home_stat_card:hover::before {
  opacity: 1;
}

body.lotus-theme .rf_stat_overdue::before {
  background: var(--rf-danger);
}

body.lotus-theme .rf_stat_overdue:hover {
  border-color: var(--rf-danger);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1);
}

/* Stat card icon */
body.lotus-theme .rf_stat_card_icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

body.lotus-theme .rf_stat_icon_projects {
  background: #F0FDF9;
  color: var(--rf-primary);
}

body.lotus-theme .rf_stat_icon_issues {
  background: #EFF6FF;
  color: var(--rf-blue);
}

body.lotus-theme .rf_stat_icon_overdue {
  background: #FEF2F2;
  color: var(--rf-danger);
}

body.lotus-theme .rf_stat_card_num {
  font-size: 26px;
  font-weight: 700;
  color: var(--rf-text-h);
  line-height: 1;
}

body.lotus-theme .rf_stat_card_label {
  font-size: 12px;
  color: var(--rf-text-muted);
  text-align: center;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

/* Two-column content */
body.lotus-theme .rf_home_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

body.lotus-theme .rf_home_left,
body.lotus-theme .rf_home_right {
  min-width: 0;
}

/* Content cards */
body.lotus-theme .rf_home_card {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}

body.lotus-theme .rf_home_card_title {
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-text-h);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rf-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.lotus-theme .rf_home_card_title svg {
  flex-shrink: 0;
}

body.lotus-theme .rf_home_card .wiki {
  font-size: 14px;
  line-height: 1.7;
  color: var(--rf-text);
}

body.lotus-theme .rf_home_card .wiki h1,
body.lotus-theme .rf_home_card .wiki h2,
body.lotus-theme .rf_home_card .wiki h3 {
  color: var(--rf-text-h);
  margin-top: 0;
}

body.lotus-theme .rf_home_card_footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rf-border);
  text-align: right;
}

body.lotus-theme .rf_home_view_all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

body.lotus-theme .rf_home_view_all:hover {
  gap: 8px;
  color: var(--rf-primary-dark);
}

body.lotus-theme .rf_home_card_footer a {
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-primary);
  text-decoration: none;
}

body.lotus-theme .rf_home_card_footer a:hover {
  color: var(--rf-primary-dark);
}

/* News items - timeline style */
body.lotus-theme .rf_home_news_list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.lotus-theme .rf_home_news_item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
  position: relative;
}

body.lotus-theme .rf_home_news_item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.lotus-theme .rf_home_news_item:first-child {
  padding-top: 0;
}

body.lotus-theme .rf_news_dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rf-primary);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
}

body.lotus-theme .rf_news_dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: calc(100% + 14px);
  background: #E5E7EB;
}

body.lotus-theme .rf_home_news_item:last-child .rf_news_dot::after {
  display: none;
}

body.lotus-theme .rf_news_body {
  flex: 1;
  min-width: 0;
}

body.lotus-theme .rf_news_head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.lotus-theme .rf_news_title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-text-h);
  text-decoration: none;
  line-height: 1.3;
}

body.lotus-theme .rf_news_title:hover {
  color: var(--rf-primary);
}

body.lotus-theme .rf_news_comments {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--rf-text-muted);
  background: #F3F4F6;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
}

body.lotus-theme .rf_news_summary {
  font-size: 13px;
  color: var(--rf-text);
  margin: 4px 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.lotus-theme .rf_news_meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--rf-text-muted);
}

body.lotus-theme .rf_news_sep {
  color: var(--rf-border-dark);
  font-size: 10px;
}

body.lotus-theme .rf_news_project a {
  color: var(--rf-primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 12px;
}

body.lotus-theme .rf_news_project a:hover {
  text-decoration: underline;
}

body.lotus-theme .rf_news_author {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  body.lotus-theme .rf_home_hero {
    flex-direction: column;
    padding: 28px 24px;
    text-align: center;
  }

  body.lotus-theme .rf_home_hero_actions {
    justify-content: center;
  }

  body.lotus-theme .rf_home_hero_visual {
    flex: 0 0 auto;
    max-width: 280px;
  }

  body.lotus-theme .rf_home_stats {
    grid-template-columns: 1fr;
  }

  body.lotus-theme .rf_home_content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body.lotus-theme .rf_home_greeting {
    font-size: 22px;
  }

  body.lotus-theme .rf_home_hero_visual {
    max-width: 220px;
  }

  body.lotus-theme .rf_home_hero_actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ================================================================
   ROADMAP PAGE (versions#index) & VERSION DETAIL (versions#show)
   Uses core Redmine classes/IDs — no features hidden
   ================================================================ */

/* --- Page heading --- */
body.lotus-theme.controller-versions #content>h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin-bottom: 24px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

/* --- Contextual action buttons (top-right) --- */
body.lotus-theme.controller-versions #content>.contextual {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

/* --- Actions dropdown --- */
body.lotus-theme.controller-versions .drdn .drdn-items {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow-md);
  padding: 4px;
  min-width: 180px;
}

body.lotus-theme.controller-versions .drdn .drdn-items a {
  border: none !important;
  border-radius: var(--rf-radius-sm);
  padding: 8px 12px !important;
  font-size: 13px;
}

body.lotus-theme.controller-versions .drdn .drdn-items a:hover {
  background: var(--rf-bg) !important;
  border: none !important;
}

/* --- No data --- */
body.lotus-theme.controller-versions p.nodata {
  text-align: center;
  padding: 80px 20px;
  color: var(--rf-text-muted);
  font-size: 14px;
  background: var(--rf-white);
  border-radius: var(--rf-radius-lg);
  border: 2px dashed var(--rf-border);
}

/* --- #roadmap container --- */
body.lotus-theme div#roadmap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Version article card --- */
body.lotus-theme div#roadmap .version-article {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-left: 3px solid var(--rf-primary);
  border-radius: var(--rf-radius-lg);
  padding: 24px 28px;
  box-shadow: var(--rf-shadow-sm);
  transition: all var(--rf-transition);
  position: relative;
}

body.lotus-theme div#roadmap .version-article:hover {
  box-shadow: var(--rf-shadow);
  border-left-color: var(--rf-primary-dark);
}

/* Status-based left accent colors */
body.lotus-theme div#roadmap .version-article.status-open {
  border-left-color: var(--rf-blue);
}

body.lotus-theme div#roadmap .version-article.status-open:hover {
  border-left-color: var(--rf-blue-dark);
}

body.lotus-theme div#roadmap .version-article.status-locked {
  border-left-color: var(--rf-warning);
}

body.lotus-theme div#roadmap .version-article.status-closed {
  border-left-color: var(--rf-success);
}

/* --- Article header (version name + badge) --- */
body.lotus-theme div#roadmap .version-article>header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

body.lotus-theme div#roadmap .version-article>header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--rf-text-h);
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.lotus-theme div#roadmap .version-article>header h3 a {
  color: var(--rf-text-h);
  text-decoration: none;
  transition: color var(--rf-transition);
}

body.lotus-theme div#roadmap .version-article>header h3 a:hover {
  color: var(--rf-blue);
}

/* Package icon — colored pill background */
body.lotus-theme div#roadmap .version-article>header h3 svg {
display: none;
}

/* --- Edit button inside article --- */
/* body.lotus-theme div#roadmap .version-article>.contextual {
  position: absolute;
  top: 18px;
  right: 22px;
  opacity: 0;
  transition: opacity var(--rf-transition);
} */

/* body.lotus-theme div#roadmap .version-article:hover>.contextual {
  opacity: 1;
} */

body.lotus-theme div#roadmap .version-article>.contextual a {

  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-size: 20px;
  background-image: url("/assets/plugin_assets/redmineflux_lotus/edit-94d712e6.svg");
}

/* body.lotus-theme div#roadmap .version-article>.contextual a:hover {
  background: transparent;
  color: var(--rf-blue);
}

body.lotus-theme div#roadmap .version-article>.contextual a::before {
  content: none;
} */

/* Hide the text inside edit link, show only icon */
body.lotus-theme div#roadmap .version-article>.contextual a .s-svg {
  width: 16px;
  height: 16px;
}

/* --- Status badges --- */
body.lotus-theme div#roadmap .badge,
body.lotus-theme.controller-versions .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  position: static;
  bottom: auto;
  line-height: 1.3;
}

body.lotus-theme .badge-status-open {
  color: var(--rf-blue);
  background: var(--rf-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

body.lotus-theme .badge-status-locked {
  color: var(--rf-warning);
  background: var(--rf-warning-light);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

body.lotus-theme .badge-status-closed {
  color: var(--rf-success);
  background: var(--rf-success-light);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* --- Version overview section --- */
body.lotus-theme .version-overview {
  margin-bottom: 14px;
}

/* Due date — styled as inline chip */
body.lotus-theme .version-overview>p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rf-text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  margin: 0 0 12px;
  line-height: 1.4;
}

body.lotus-theme .version-overview>p:first-child strong {
  color: var(--rf-text-h);
  font-weight: 600;
}

/* Description text */
body.lotus-theme .version-overview>p+p {
  font-size: 13px;
  color: var(--rf-text);
  line-height: 1.6;
  margin: 0 0 10px;
}

/* custom field values list */
body.lotus-theme .version-overview ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

body.lotus-theme .version-overview ul li {
  font-size: 12px;
  color: var(--rf-text);
  background: var(--rf-bg);
  padding: 4px 10px;
  border-radius: var(--rf-radius-sm);
}

body.lotus-theme .version-overview ul li .label {
  font-weight: 600;
  color: var(--rf-text-muted);
  margin-right: 2px;
}

/* --- Progress bar + percent on same line --- */
body.lotus-theme .version-overview table.progress {
  width: calc(100% - 50px);
  border-radius: 8px;
  overflow: hidden;
  height: 10px;
  float: left;
  margin: 2px 0 6px;
  background: var(--rf-bg);
}

body.lotus-theme .version-overview table.progress td {
  height: 10px;
  border: none;
  padding: 0;
}

body.lotus-theme .version-overview table.progress td.closed {
  background: linear-gradient(135deg, #1A8A7A 0%, #14756A 100%);
}

body.lotus-theme .version-overview table.progress td.done {
  background: linear-gradient(135deg, #7EC8BD 0%, #A8DDD5 100%);
}

body.lotus-theme .version-overview table.progress td.todo {
  background: #e5e7eb;
}

/* Percent label — inline with progress bar */
body.lotus-theme .version-overview p.percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0;
  float: left;
  width: 45px;
  text-align: right;
  line-height: 14px;
  float: inline-end;
}

/* Progress info — issue counts */
body.lotus-theme .version-overview p.progress-info {
  font-size: 12px;
  color: var(--rf-text-muted);
  margin-top: 4px;
  clear: both;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

body.lotus-theme .version-overview p.progress-info a {
  color: var(--rf-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--rf-transition);
}

body.lotus-theme .version-overview p.progress-info a:hover {
  color: var(--rf-blue);
}

/* --- Related issues — collapsible section --- */
body.lotus-theme div#roadmap .rf_related_toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 0 8px;
  margin-top: 8px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-text-muted);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  transition: color var(--rf-transition);
  user-select: none;
}

body.lotus-theme div#roadmap .rf_related_toggle:hover {
  color: var(--rf-text-h);
}

body.lotus-theme div#roadmap .rf_related_toggle .rf_toggle_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--rf-bg);
  transition: transform 0.2s ease, background 0.15s ease;
}

body.lotus-theme div#roadmap .rf_related_toggle:hover .rf_toggle_icon {
  background: var(--rf-border);
}

body.lotus-theme div#roadmap .rf_related_toggle.rf_collapsed .rf_toggle_icon {
  transform: rotate(-90deg);
}

body.lotus-theme div#roadmap .rf_related_wrap {
  overflow: hidden;
  transition: max-height 0.25s ease;
}

body.lotus-theme div#roadmap .rf_related_wrap.rf_collapsed {
  max-height: 0 !important;
}

body.lotus-theme div#roadmap table.related-issues {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  overflow: hidden;
  margin-top: 4px;
}

body.lotus-theme div#roadmap table.related-issues caption {
  display: none;
}

body.lotus-theme div#roadmap table.related-issues tr {
  transition: background var(--rf-transition);
}

body.lotus-theme div#roadmap table.related-issues tr:nth-child(even) {
  background: rgba(245, 246, 250, 0.5);
}

body.lotus-theme div#roadmap table.related-issues tr:hover {
  background: var(--rf-primary-light);
}

body.lotus-theme div#roadmap table.related-issues td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rf-border);
  font-size: 13px;
  color: var(--rf-text);
  vertical-align: middle;
}

body.lotus-theme div#roadmap table.related-issues tr:last-child td {
  border-bottom: none;
}

body.lotus-theme div#roadmap table.related-issues td.checkbox {
  width: 28px;
  padding-left: 12px;
  padding-right: 0;
}

body.lotus-theme div#roadmap table.related-issues td.checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  accent-color: var(--rf-primary);
  cursor: pointer;
}

body.lotus-theme div#roadmap table.related-issues td.assigned_to {
  width: 36px;
  padding: 6px 6px;
}

body.lotus-theme div#roadmap table.related-issues td.assigned_to img {
  border-radius: 50%;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid var(--rf-white);
  box-shadow: 0 0 0 1px var(--rf-border);
}

body.lotus-theme div#roadmap table.related-issues td.subject {
  font-weight: 400;
}

body.lotus-theme div#roadmap table.related-issues td.subject a {
  color: var(--rf-text);
  text-decoration: none;
  transition: color var(--rf-transition);
}

body.lotus-theme div#roadmap table.related-issues td.subject a:hover {
  color: var(--rf-blue);
}

body.lotus-theme div#roadmap table.related-issues td.buttons {
  width: 28px;
  text-align: center;
  padding-right: 12px;
}

body.lotus-theme div#roadmap table.related-issues td.buttons a {
  color: var(--rf-text-subtle);
}


/* Issue status classes in related issues */
body.lotus-theme div#roadmap table.related-issues tr.issue.closed td.subject a {
  text-decoration: line-through;
  color: var(--rf-text-muted);
}

body.lotus-theme div#roadmap table.related-issues tr.issue.closed td.subject a:hover {
  color: var(--rf-text-subtle);
}

/* --- Wiki content inside version article --- */
body.lotus-theme div#roadmap .wiki {
  margin: 14px 0;
  padding: 14px 18px;
  background: var(--rf-bg);
  border-radius: var(--rf-radius);
  border-left: 3px solid var(--rf-primary);
  font-size: 13px;
  line-height: 1.7;
  color: var(--rf-text);
}

body.lotus-theme div#roadmap .wiki h1:first-child {
  display: none;
}

body.lotus-theme div#roadmap .wiki h1 {
  font-size: 16px;
  font-weight: 600;
  color: var(--rf-text-h);
}

body.lotus-theme div#roadmap .wiki h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-text-h);
}

/* ================================================================
   VERSION DETAIL PAGE  (versions#show)
   CSS-only. All selectors target real Redmine core HTML.
   Applies only when Lotus theme is active (body.lotus-theme).
================================================================ */

/* ---- Page wrapper: 2-column grid ----
   Row 1 : h2 (col 1, 1fr)    | badge (col 2, auto)
   Row 2 : version-overview (full width, spans both cols)
   Row 3 : related-issues (col 1)    | version-summary sidebar (col 2)
---- */
body.lotus-theme.controller-versions.action-show div#roadmap {
  display: grid;
  grid-template-columns: 1fr 360px;
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
}

/* Row 1, full width — version name with badge inline after title (JS moves badge inside h2) */
body.lotus-theme.controller-versions.action-show div#roadmap > h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0;
}

/* Badge inside h2 after JS move — reset grid/margin, prevent shrink */
body.lotus-theme.controller-versions.action-show div#roadmap > h2 > span.badge {
  margin-left: 0;
  flex-shrink: 0;
}

/* Row 2, full width — version overview (due date, progress bar, counts) */
body.lotus-theme.controller-versions.action-show div.version-overview {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Row 3, col 1 — related issues table */
body.lotus-theme.controller-versions.action-show div#roadmap > form {
  grid-column: 1;
  grid-row: 3;
}

/* Row 3, col 2 — time tracking + issues by tracker sidebar */
body.lotus-theme.controller-versions.action-show div#version-summary {
  grid-column: 2;
  grid-row: 3;
}

body.lotus-theme.controller-versions.action-show div#roadmap span.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  vertical-align: middle;
  margin-left: 10px;
  width: fit-content;
}

body.lotus-theme.controller-versions.action-show div#roadmap span.badge-status-open {
  background: var(--rf-success-light);
  color: #166534;
}

body.lotus-theme.controller-versions.action-show div#roadmap span.badge-status-closed {
  background: var(--rf-border);
  color: var(--rf-text-muted);
}

body.lotus-theme.controller-versions.action-show div#roadmap span.badge-status-locked {
  background: #FEF3C7;
  color: #92400E;
}

/* ---- Version overview card (description, date, custom fields, progress) ---- */
body.lotus-theme.controller-versions.action-show div.version-overview {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 22px 26px;
  box-shadow: var(--rf-shadow-sm);
}

/* Due date paragraph */
body.lotus-theme.controller-versions.action-show .version-overview > p:first-child {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin: 0 0 12px;
}

body.lotus-theme.controller-versions.action-show .version-overview > p:first-child strong {
  color: var(--rf-text-h);
  font-weight: 600;
}

/* Description paragraph */
body.lotus-theme.controller-versions.action-show .version-overview > p:not(.progress-info):not(:first-child) {
  font-size: 13px;
  line-height: 1.7;
  color: var(--rf-text);
  margin: 0 0 16px;
}

/* Custom fields list */
body.lotus-theme.controller-versions.action-show .version-overview ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.lotus-theme.controller-versions.action-show .version-overview ul li {
  font-size: 13px;
  display: flex;
  gap: 8px;
}

body.lotus-theme.controller-versions.action-show .version-overview ul li span.label {
  color: var(--rf-text-muted);
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

/* Progress bar */
body.lotus-theme.controller-versions.action-show .version-overview table.progress {
  width: 100%;
  height: 10px;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 8px;
  float: none;
}

body.lotus-theme.controller-versions.action-show .version-overview table.progress td {
  height: 10px;
  padding: 0;
}

body.lotus-theme.controller-versions.action-show .version-overview table.progress td.closed {
  background: linear-gradient(135deg, #1A8A7A 0%, #14756A 100%);
}

body.lotus-theme.controller-versions.action-show .version-overview table.progress td.done {
  background: linear-gradient(135deg, #7EC8BD 0%, #A8DDD5 100%);
}

body.lotus-theme.controller-versions.action-show .version-overview table.progress td.todo {
  background: #e5e7eb;
}

/* Progress info: "X issues (Y closed — Z open)" */
body.lotus-theme.controller-versions.action-show .version-overview p.progress-info {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin: 0;
}

body.lotus-theme.controller-versions.action-show .version-overview p.progress-info a {
  color: var(--rf-blue);
  text-decoration: none;
  font-weight: 500;
}

body.lotus-theme.controller-versions.action-show .version-overview p.progress-info a:hover {
  text-decoration: underline;
}

/* ---- Wiki content card — full width between overview and related issues ---- */
body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* When wiki exists, push related-issues and sidebar to row 4 */
body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki ~ form {
  grid-column: 1;
  grid-row: 4;
}

body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki ~ #version-summary {
  grid-column: 2;
  grid-row: 4;
}

body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-left: 3px solid var(--rf-primary);
  border-radius: var(--rf-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--rf-shadow-sm);
  font-size: 13px;
  line-height: 1.7;
  color: var(--rf-text);
}

/* ---- Version summary: time tracking + status breakdown stacked (sidebar) ---- */
body.lotus-theme #version-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Time tracking fieldset ---- */
body.lotus-theme #version-summary fieldset.time-tracking {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--rf-shadow-sm);
  margin: 0;
  width: 400px;
}

body.lotus-theme #version-summary fieldset.time-tracking legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-text-h);
  padding: 0 10px;
  background: var(--rf-white);
  letter-spacing: 0.3px;
}

body.lotus-theme #version-summary fieldset.time-tracking table {
  width: 100%;
  border-collapse: collapse;
}

body.lotus-theme #version-summary fieldset.time-tracking table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--rf-border);
  white-space: nowrap;
}

body.lotus-theme #version-summary fieldset.time-tracking table td {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text-h);
  padding: 9px 0;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme #version-summary fieldset.time-tracking table tr:last-child th,
body.lotus-theme #version-summary fieldset.time-tracking table tr:last-child td {
  border-bottom: none;
}

body.lotus-theme #version-summary fieldset.time-tracking table td a {
  color: var(--rf-blue);
  text-decoration: none;
  font-weight: 600;
}

body.lotus-theme #version-summary fieldset.time-tracking table td a:hover {
  text-decoration: underline;
}

/* ---- Status-by breakdown fieldset ---- */
body.lotus-theme #version-summary #status_by {
  min-width: 0;
      width: 400px;
}

body.lotus-theme #version-summary #status_by fieldset {
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--rf-shadow-sm);
  margin: 0;
}

body.lotus-theme #version-summary #status_by fieldset legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-text-h);
  padding: 0 10px;
  background: var(--rf-white);
}

body.lotus-theme #version-summary #status_by table {
  width: 100%;
  border-collapse: collapse;
}

body.lotus-theme #version-summary #status_by table tr td {
  padding: 6px 0;
  vertical-align: middle;
  font-size: 13px;
  border-bottom: 1px solid var(--rf-border);
}

body.lotus-theme #version-summary #status_by table tr:last-child td {
  border-bottom: none;
}

body.lotus-theme #version-summary #status_by table tr td:first-child {
  text-align: right;
  padding-right: 14px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--rf-text);
}

body.lotus-theme #version-summary #status_by table tr td:first-child a {
  color: var(--rf-text);
  text-decoration: none;
}

body.lotus-theme #version-summary #status_by table tr td:first-child a:hover {
  color: var(--rf-blue);
}

body.lotus-theme #version-summary #status_by table.progress {
  width: 100%;
  height: 8px;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  float: none;
  margin: 0;
}

body.lotus-theme #version-summary #status_by table.progress td {
  height: 8px;
  padding: 0;
  border: none;
}

body.lotus-theme #version-summary #status_by table.progress td.closed {
  background: linear-gradient(135deg, #1A8A7A 0%, #14756A 100%);
}

body.lotus-theme #version-summary #status_by table.progress td.done {
  background: linear-gradient(135deg, #7EC8BD 0%, #A8DDD5 100%);
}

body.lotus-theme #version-summary #status_by table.progress td.todo {
  background: #e5e7eb;
}

body.lotus-theme #version-summary #status_by p.percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-primary);
  margin: 4px 0 0;
  float: inline-end;
}

body.lotus-theme #version-summary #status_by select {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-white);
  color: var(--rf-text);
  outline: none;
  cursor: pointer;
  margin-bottom: 8px;
}

body.lotus-theme #version-summary #status_by select:focus {
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 2px rgba(45, 183, 163, 0.15);
}

/* ---- Related Issues table (version show) ---- */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues {
  width: 100%;
  background: var(--rf-white);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  overflow: hidden;
  box-shadow: var(--rf-shadow-sm);
  border-collapse: collapse;
  border-spacing: 0;
}

/* Caption = section heading */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues caption {
  display: table-caption;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--rf-text-h);
  padding: 14px 18px 13px;
  border-bottom: 1px solid var(--rf-border);
  background: var(--rf-white);
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues tr {
  border-bottom: 1px solid var(--rf-border);
  transition: background var(--rf-transition);
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues tr:last-child {
  border-bottom: none;
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues tr:hover {
  background: var(--rf-primary-light);
}

/* All cells: reset */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td {
  padding: 10px 8px;
  font-size: 13px;
  color: var(--rf-text);
  vertical-align: middle;
  border-bottom: none;
}

/* Checkbox: compact, keep for bulk actions */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.checkbox {
  width: 28px;
  padding: 10px 0 10px 14px;
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--rf-primary);
  cursor: pointer;
  display: block;
}

/* Assignee avatar: hidden — subject already contains tracker + id context */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.assigned_to {
  display: none;
}

/* Subject: full remaining width
   Contains: <a class="issue tracker-N">Tracker #ID</a>: subject text
   Tracker badge pill is styled by tracker_border_colors_css in hooks.rb */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.subject {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--rf-text);
}

/* Issue link (tracker badge pill — colored by hooks.rb) */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.subject a.issue {
  margin-right: 4px;
  text-decoration: none;
}

/* Subject plain text link */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.subject a:not(.issue) {
  color: var(--rf-text);
  text-decoration: none;
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.subject a:not(.issue):hover {
  color: var(--rf-blue);
}

/* Closed issue: line-through */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues tr.issue.closed td.subject {
  color: var(--rf-text-muted);
  text-decoration: line-through;
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues tr.issue.closed td.subject a {
  color: var(--rf-text-muted);
}

/* Buttons: three-dot context menu icon */
body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.buttons {
  width: 36px;
  padding: 10px 14px 10px 4px;
  text-align: right;
}

body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--rf-radius-sm);
  color: var(--rf-text-muted);
  opacity: 1;
  transition: all var(--rf-transition);
  text-decoration: none;
}

#roadmap>form>table>tbody>tr>td.buttons>a>svg {
  stroke: #000000;
  font-weight: bolder;
}


body.lotus-theme.controller-versions.action-show div#roadmap table.related-issues td.buttons a:hover {
  background: var(--rf-border);
  color: var(--rf-text-h);
  opacity: 1;
}

/* ---- Responsive: single column below 900px ---- */
@media (max-width: 900px) {
  body.lotus-theme.controller-versions.action-show div#roadmap {
    grid-template-columns: 1fr;
  }

  body.lotus-theme.controller-versions.action-show div#roadmap > h2,
  body.lotus-theme.controller-versions.action-show div#roadmap > span.badge,
  body.lotus-theme.controller-versions.action-show div.version-overview,
  body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki,
  body.lotus-theme.controller-versions.action-show div#roadmap > form,
  body.lotus-theme.controller-versions.action-show div#version-summary,
  body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki ~ form,
  body.lotus-theme.controller-versions.action-show div#roadmap > div.wiki ~ #version-summary {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ================================================================
   ROADMAP SIDEBAR
   ================================================================ */

/* --- Sidebar form (tracker filters) --- */
body.lotus-theme.controller-versions #sidebar h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--rf-text-h);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rf-border);
  text-transform: capitalize;
  letter-spacing: 0.4px;
}

body.lotus-theme.controller-versions #sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

body.lotus-theme.controller-versions #sidebar ul li {
  padding: 2px 0;
}

body.lotus-theme.controller-versions #sidebar ul li label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rf-text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--rf-radius-sm);
  transition: all var(--rf-transition);
}

body.lotus-theme.controller-versions #sidebar ul li label:hover {
  color: var(--rf-text-h);
  background: var(--rf-bg);
}

body.lotus-theme.controller-versions #sidebar ul li label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--rf-primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* Apply button */
body.lotus-theme.controller-versions #sidebar input.button-small,
body.lotus-theme.controller-versions #sidebar input[type="submit"] {
  background: var(--rf-primary);
  color: var(--rf-white);
  border: none;
  padding: 7px 20px;
  border-radius: var(--rf-radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rf-transition);
  letter-spacing: 0.2px;
}

body.lotus-theme.controller-versions #sidebar input.button-small:hover,
body.lotus-theme.controller-versions #sidebar input[type="submit"]:hover {
  background: var(--rf-primary-dark);
  box-shadow: 0 2px 6px rgba(45, 183, 163, 0.25);
}

/* version quick links inside sidebar */
body.lotus-theme.controller-versions #sidebar ul li a {
  color: var(--rf-text);
  text-decoration: none;
  font-size: 13px;
  /* display: block; */
  /* padding: 4px 8px; */
  border-radius: var(--rf-radius-sm);
  transition: all var(--rf-transition);
}

body.lotus-theme.controller-versions #sidebar ul li a:hover {
  color: var(--rf-blue);
  background: var(--rf-blue-light);
}

/* completed versions toggle */
body.lotus-theme.controller-versions #sidebar .collapsible {
  font-size: 13px;
  color: var(--rf-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  transition: color var(--rf-transition);
}

body.lotus-theme.controller-versions #sidebar .collapsible:hover {
  color: var(--rf-text-h);
}

body.lotus-theme.controller-versions #sidebar #completed-versions {
  list-style: none;
  padding: 6px 0 0 12px;
  margin: 0;
  border-left: 2px solid var(--rf-border);
  margin-left: 8px;
}

body.lotus-theme.controller-versions #sidebar #completed-versions li {
  padding: 3px 0;
}

body.lotus-theme.controller-versions #sidebar #completed-versions li a {
  color: var(--rf-text-muted);
  font-size: 12px;
  padding: 2px 6px;
}

body.lotus-theme.controller-versions #sidebar #completed-versions li a:hover {
  color: var(--rf-blue);
  background: var(--rf-blue-light);
}

/* ================================================================
   ROADMAP — RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  body.lotus-theme div#roadmap .version-article {
    padding: 18px 20px;
  }
}

@media (max-width: 600px) {
  body.lotus-theme div#roadmap .version-article {
    padding: 14px 16px;
    border-radius: var(--rf-radius);
    border-left-width: 3px;
  }

  body.lotus-theme div#roadmap .version-article>header h3 {
    font-size: 15px;
  }

  body.lotus-theme .version-overview table.progress {
    height: 8px;
  }

  body.lotus-theme div#roadmap table.related-issues td {
    padding: 8px 10px;
    font-size: 12px;
  }

  body.lotus-theme div#roadmap .version-article>.contextual {
    opacity: 1;
  }
}

.gantt_subjects div,
.gantt_selected_column_content div {
  line-height: 10px !important;
  height: 25px !important;
}

body.lotus-theme .gantt_content #query_form p.buttons {
  display: block;
}


#sidebar-switch-button {
  display: none !important;
}



.controller-groups.action-index #content>form>fieldset>a.icon.icon-reload svg,
.controller-projects.action-settings #tab-content-versions>form>fieldset>a.icon.icon-reload>svg,
.controller-timelog.action-report #query_form>p>a.icon.icon-reload>svg {
  display: none;
}

.controller-groups.action-index #content>form>fieldset>a.icon.icon-reload,
.controller-projects.action-settings #tab-content-versions>form>fieldset>a.icon.icon-reload,
.controller-timelog.action-report #query_form>p>a.icon.icon-reload {
  padding: 3px 15px;
  height: 39px;
  background: var(--rf-white);
  color: #1673FF;
  border: 1px solid #1673FF;
  border-radius: var(--rf-radius-sm);
  font-size: 13px;
  font-weight: 500;
}


.controller-groups.action-index #content>form>fieldset>a.icon.icon-reload:hover,
.controller-projects.action-settings #tab-content-versions>form>fieldset>a.icon.icon-reload:hover,
.controller-timelog.action-report #query_form>p>a.icon.icon-reload:hover {
  border-color: #1673FF;
  color: #1673FF;
  background: #79aeff1f
}

/* All plugins */

/* tag plugin */

/* ---- Tags attribute row - matches rf_attr_row layout exactly ---- */
body.lotus-theme .tags.attribute {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
}

body.lotus-theme .tags.attribute .label::before {
  content: "\2022";
  color: var(--rf-text-muted);
  font-size: 14px;
  margin-right: 5px;
  flex-shrink: 0;
}

body.lotus-theme .tags.attribute .label.tag_label {
  color: var(--rf-text-muted);
  font-size: 13px;
  font-weight: 500;
  min-width: 140px;
  flex-shrink: 0;
}

body.lotus-theme .tags.attribute .value-tag {
  flex: 1;
  min-width: 0;
  color: var(--rf-text-h);
  font-size: 13px;
  font-weight: 500;
  margin-right: 0 !important;
}

/* ---- for_tag button moved by JS into right col (after progress row).
   Reset float/absolute from default flux_tags so it sits in normal flow. ---- */
/* body.lotus-theme .rf_attrs_col .contextual.for_tag {
  position: static !important;
  float: none !important;
  clear: none !important;
  margin: 8px 0 0 0 !important;
  display: inline-flex !important;
  align-items: center;
} */

/* tag_box edit form follows for_tag in right column */
body.lotus-theme .rf_attrs_col .box.tag_box {
  margin: 4px 0 0 0 !important;
  width: 100% !important;
  margin-left: -40% !important;
  border: none;
    box-shadow: none;
    padding: 0px;
}


.contextual.for_tag {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  color: white !important;
  padding: 7px 10px 7px 7px;
  border-radius: var(--rf-radius) !important;
  margin-top: 10px !important;
}

.contextual.for_tag:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%) !important;
}

.contextual.for_tag a {
  color: white !important;
}

.contextual.for_tag::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") no-repeat center center;
  background-size: contain;
  vertical-align: middle;
}

.plugin-flux_tags #tab-content-project>p.nodata,
.plugin-flux_tags #tab-content-time_entry>p.nodata,
.plugin-flux_tags #tab-content-issue>p.nodata {
  padding-left: 0px !important;
}

/* ================================================================
   FLUX_TAGS — Issue details page compatibility (Lotus UI)
   Scoped under body.lotus-theme so it only applies when Lotus is
   active. Keeps custom icon-color tags intact (MD5 bg is preserved);
   only geometry, typography and border tokens are normalised.
================================================================ */

/* --- Colored tag chip (MD5-generated background-color kept) --- */
body.lotus-theme .tag-label-color {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--rf-font);
  line-height: 1.5;
  margin: 2px 4px 2px 0;
  transition: opacity var(--rf-transition), transform var(--rf-transition);
}

body.lotus-theme .tag-label-color:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

body.lotus-theme .tag-label-color a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
}

/* --- Plain tag chip (no color) --- */
body.lotus-theme .tag-label-without-color {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--rf-border) !important;
  background: var(--rf-primary-light);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--rf-font);
  line-height: 1.5;
  margin: 2px 4px 2px 0;
  transition: border-color var(--rf-transition), transform var(--rf-transition);
}

body.lotus-theme .tag-label-without-color:hover {
  border-color: var(--rf-primary) !important;
  transform: translateY(-1px);
}

body.lotus-theme .tag-label-without-color a {
  color: var(--rf-primary-dark) !important;
  text-decoration: none;
}

body.lotus-theme .tag-label-without-color a:hover {
  color: var(--rf-primary) !important;
}

/* --- Tag count "(N)" --- */
body.lotus-theme .tag-count {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 3px;
}

/* --- Edit-mode fieldset: override flux_tags negative-margin layout --- */
/* body.lotus-theme .box.tag_box {
  background: var(--rf-white) !important;
  border: 1px solid var(--rf-border) !important;
  border-radius: var(--rf-radius) !important;
  box-shadow: var(--rf-shadow-sm);
  padding: 10px 14px !important;
  margin: 4px 0 8px !important;
  width: auto !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

body.lotus-theme #issue_tags {
  flex: 1;
  min-width: 200px;
  width: auto !important;
} */

/* --- Tagit widget (the multi-tag input) --- */
body.lotus-theme ul.tagit {
  border: 1px solid var(--rf-border) !important;
  border-radius: var(--rf-radius) !important;
  background: var(--rf-white) !important;
  padding: 4px 6px !important;
  width: 100% !important;
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

body.lotus-theme ul.tagit:focus-within {
  border-color: var(--rf-primary) !important;
  box-shadow: 0 0 0 3px rgba(45, 183, 163, 0.12) !important;
}

/* Individual chip inside tagit */
body.lotus-theme ul.tagit li.tagit-choice {
  display: inline-flex;
  align-items: center;
  background: var(--rf-primary-light) !important;
  color: var(--rf-primary-dark) !important;
  border: 1px solid rgba(45, 183, 163, 0.35) !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 500;
  font-family: var(--rf-font);
  padding: 2px 20px 2px 10px !important;
  margin: 2px !important;
}

body.lotus-theme ul.tagit li.tagit-choice:hover,
body.lotus-theme ul.tagit li.tagit-choice.remove {
  background: rgba(45, 183, 163, 0.18) !important;
  color: var(--rf-primary-dark) !important;
  text-decoration: none;
}

/* Close × icon on each chip */
body.lotus-theme ul.tagit li.tagit-choice a.tagit-close {
  color: var(--rf-primary) !important;
  text-decoration: none;
  margin-left: 4px;
  opacity: 0.6;
  transition: opacity var(--rf-transition), color var(--rf-transition);
}

body.lotus-theme ul.tagit li.tagit-choice a.tagit-close:hover {
  opacity: 1;
  color: var(--rf-danger) !important;
}

body.lotus-theme ul.tagit li.tagit-choice .ui-icon {
  display: none;
}

body.lotus-theme ul.tagit li.tagit-choice .tagit-close .text-icon {
  font-size: 14px;
  line-height: 1;
}

/* New-tag text input inside tagit */
body.lotus-theme ul.tagit li.tagit-new {
  padding: 2px 0;
  margin: 2px;
}

body.lotus-theme ul.tagit li.tagit-new input {
  font-size: 12px !important;
  font-family: var(--rf-font);
  color: var(--rf-text);
  background: transparent !important;
  min-width: 110px;
}

/* --- Tagit autocomplete dropdown --- */
body.lotus-theme .ui-autocomplete.ui-widget-content {
  border: 1px solid var(--rf-border) !important;
  border-radius: var(--rf-radius) !important;
  box-shadow: var(--rf-shadow-md) !important;
  font-family: var(--rf-font);
  font-size: 12px !important;
  padding: 4px !important;
}

body.lotus-theme .ui-autocomplete .ui-menu-item-wrapper {
  padding: 6px 10px !important;
  border-radius: var(--rf-radius-sm) !important;
  font-size: 12px !important;
}

body.lotus-theme .ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background: var(--rf-primary-light) !important;
  color: var(--rf-primary-dark) !important;
  border: none !important;
}

/* --- Save / Cancel buttons in tag edit mode --- */
body.lotus-theme .tagedit_button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
}

body.lotus-theme .tagedit_button input[type="submit"],
body.lotus-theme .tagedit_button button {
  height: 32px !important;
  padding: 0 14px;
  border-radius: var(--rf-radius) !important;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--rf-font);
  cursor: pointer;
  transition: all var(--rf-transition);
  white-space: nowrap;
}

body.lotus-theme .tagedit_button input#save_tag {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  margin: 2px -3px 0px 7px;
}

body.lotus-theme .tagedit_button input#save_tag:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%) !important;
}

/* Issue template */

#content>div.contextual.add_issue_template>a,
#content>div.containerBlock>div>a.rf-icon-link.icon.rf-icon-sprite {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  color: white !important;
}

#content>div.contextual.add_issue_template>a:hover,
#content>div.containerBlock>div>a.rf-icon-link.icon.rf-icon-sprite:hover {
  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%) !important;
}


.issue_template_button>input,
.issue_template_button>button#clearButton,
.issue_template_button>a#cancel_button,
.issue_template_button>button#submited,
.issue_template_button>a#cancel_template {
  height: 40px !important;
  width: 70px;
  border-radius: var(--rf-radius) !important;
}

#content>div.contextual.add_issue_template>a::before,
#content>div.containerBlock>div>a.rf-icon-link.icon.rf-icon-sprite::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") no-repeat center center;
  background-size: contain;
  vertical-align: middle;
  /* margin-right: -22px; */
}

#content>div.contextual.add_issue_template>a>span.icon.icon-add {
  background-image: none;
  padding-left: 0px;
}

#global-template>div>table>tbody>tr>td.template_action>a ,
#project-template>div>table>tbody>tr>td.template_action>a{
  padding-left: 0px;
}

/* Checklist */

p#modalMessagechecklist {
  margin-top: 0px !important;
  margin-bottom: 10px;
  color: black !important;
  font-weight: 500 !important;
}


#tab-content-checklist_template>div.contextual.add_checklist_template>div>svg,
body.lotus-theme .contextual #create-checklist-template-link>svg>use {
  display: none;
}

body.lotus-theme .contextual #create-checklist-template-link>svg {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg");
}

.checklist-para {
  padding: 16px 24px;
  font-size: 13px;
  border-bottom: 1px solid var(--rf-border);
}

.checklist-para .icon-actions {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/actions-44c0eb1e.svg") !important;
  background-size: 15px;
  padding-left: 22px !important;
  background-position-x: 7px !important;
  transform: rotate(0deg) !important;
}

td.actions-column {
  width: 9%;
}

.checklist_option_dropdown a.rf-icon-link.icon,
.dropdown_subchecklist a.rf-icon-link.icon {
  padding: 7px 10px;
}



.modal-bg_checklist_delete,
div#deletechecklist {
  z-index: 9999 !important;
}

select.checklist-item-state {
  height: 30px;
}

a#create-checklist-template-link::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") no-repeat center center;
  background-size: contain;
  vertical-align: middle;
  margin-right: -22px;
}

#create-checklist-template-link>span.icon.icon-add {
  background-image: none;
}


/* Helpdesk plugin */

body.lotus-theme #tab-content-canned_responses>table>tbody>tr>td.buttons>a {
  padding: 3px 8px !important;
  font-size: 0px;
}


/* add button */
#content>div.helpdesk_top_section>div>a.icon.icon-add,
#create-run-type-link {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  color: var(--rf-white) !important;
  padding: 10px;
  border-radius: 8px;
}

#content>div.helpdesk_top_section>div>a.icon.icon-add::before,
#create-run-type-link::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") no-repeat center center;
  background-size: contain;
  vertical-align: middle;
}

#content>div.helpdesk_top_section>div>a.icon.icon-add>svg,
#create-run-type-link>svg {
  display: none;
}

/* New , create, update, save , apply button style */

button.applyBtn.btn.btn-sm.btn-primary,
.new-testsuite-modal .testsuite-modal-btn .create-testsuite,
.edit_testsuite-modal input#update-btn,
.testrun-modal-btn input#update-btn.update-run,
.testrun-select-cases-modal-btn .create-test-cases-run,
button.isclosed_run_button,
.add-page-modal .action-btn .next-btn,
div.add-result-btn>#update-btn,
#bulk-update-submit-btn,
.jira-btn-primary,
.controller-rf_skills #content .btn-primary,
.controller-rf_teams #content .btn-primary,
.controller-rf_workloads #content .btn-primary,
.controller-rf_settings #content .btn-primary,
.controller-rf_leaves #content .btn-primary,
.controller-rf_skills #content [class*="btn-primary"],
.controller-rf_teams #content [class*="btn-primary"],
.controller-rf_workloads #content [class*="btn-primary"],
.controller-rf_settings #content [class*="btn-primary"],
.controller-rf_leaves #content [class*="btn-primary"],
.controller-rf_skills #content .settings-btn-primary,
.controller-rf_settings #content .settings-btn-primary,
.controller-rf_workloads #content .wid-btn-primary,
.btn-start-stop,
button#calendar_add_entry,
button#add_tag_btn,
button#save_edit_tag,
input.tt-settings-btn.tt-settings-btn-primary,
button.btn-issue.btn-add.btn-add-issue,
#create-checklist-template-link,
button#addChartBtn,
button#confirmAddChart,
.btn-primary,
button#submited,
#bulk-update-result-btn.bulk-update-btn,
.controller-rf_board_configs #query-form>div.rf-options-actions>input,
.ts-modal-log-btn,
.ts-topbar-submit,
#content>div.settings-container>form>div.settings-actions>button.settings-btn.settings-btn-primary {
  background: linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  color: white !important;
  border-radius: 8px !important;

}

#content>div.helpdesk_top_section>div>a.icon.icon-add:hover,
#create-run-type-link:hover,
button.applyBtn.btn.btn-sm.btn-primary:hover,
.new-testsuite-modal .testsuite-modal-btn .create-testsuite:hover,
.edit_testsuite-modal input#update-btn:hover,
.testrun-modal-btn input#update-btn.update-run:hover,
.testrun-select-cases-modal-btn .create-test-cases-run:hover,
button.isclosed_run_button:hover,
.add-page-modal .action-btn .next-btn:hover,
div.add-result-btn>#update-btn:hover,
#bulk-update-submit-btn:hover,
.jira-btn-primary:hover,
.controller-rf_skills #content .btn-primary:hover,
.controller-rf_teams #content .btn-primary:hover,
.controller-rf_workloads #content .btn-primary:hover,
.controller-rf_settings #content .btn-primary:hover,
.controller-rf_leaves #content .btn-primary:hover,
.controller-rf_skills #content [class*="btn-primary"]:hover,
.controller-rf_teams #content [class*="btn-primary"]:hover,
.controller-rf_workloads #content [class*="btn-primary"]:hover,
.controller-rf_settings #content [class*="btn-primary"]:hover,
.controller-rf_leaves #content [class*="btn-primary"]:hover,
.controller-rf_skills #content .settings-btn-primary:hover,
.controller-rf_settings #content .settings-btn-primary:hover,
.controller-rf_workloads #content .wid-btn-primary:hover,
.btn-start-stop:hover,
button#calendar_add_entry:hover,
button#add_tag_btn:hover,
button#save_edit_tag:hover,
input.tt-settings-btn.tt-settings-btn-primary:hover,
button.btn-issue.btn-add.btn-add-issue:hover,
#create-checklist-template-link:hover,
button#addChartBtn:hover,
button#confirmAddChart:hover,
.btn-primary:hover,
button#submited:hover,
#bulk-update-result-btn.bulk-update-btn:hover,
.controller-rf_board_configs #query-form>div.rf-options-actions>input:hover,
.ts-modal-log-btn:hover,
.ts-topbar-submit:hover,
#content>div.settings-container>form>div.settings-actions>button.settings-btn.settings-btn-primary:hover {

  background: linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%) !important;
}

/* cancel button */

button#edit-card-cancel-btn,
#jira-edit-modal>div>div.jira-edit-modal-footer>button.jira-btn.jira-btn-secondary,
button#chartSettingsCancel,
input#cancel_tag,
#cancel_button,
#delete-issue-template>div.issue-template-footer-folder>div>div>button.issue-template_cancel-btn,
#cancel_template,
#delete-email-template>div.tag-footer-folder>div>div>button.tag_cancel-btn,
#delete_run>div.footer-folder>div>div>form>button.isClosed_cancel-btn,
button.report_cancel-btn,
.controller-rf_board_configs #query-form>div.rf-options-actions>a.rf-btn.rf-btn-secondary,
.rf-options-actions .rf-btn-secondary,
div.rf-modal-footer>button.btn.btn-secondary,
.btn-secondary,
.button-secondary,
button.cancelBtn.btn.btn-sm.btn-default,
button.my-page-agile-btn.my-page-agile-btn-secondary,
.settings-btn-secondary,
.wid-btn-secondary,
button.settings-btn.settings-btn-secondary,
.activity-btn-secondary,
button#activity_export_csv,
#cancelchecklistBtn,
body.lotus-theme .tagedit_button input#cancel_tag {
  background: #E1E6ED !important;
  color: #161616 !important;
  border-radius: 8px !important;
}

button#edit-card-cancel-btn:hover,
#jira-edit-modal>div>div.jira-edit-modal-footer>button.jira-btn.jira-btn-secondary:hover,
button#chartSettingsCancel:hover,
input#cancel_tag:hover,
#cancel_button:hover,
#delete-issue-template>div.issue-template-footer-folder>div>div>button.issue-template_cancel-btn:hover,
#cancel_template:hover,
#delete-email-template>div.tag-footer-folder>div>div>button.tag_cancel-btn:hover,
#delete_run>div.footer-folder>div>div>form>button.isClosed_cancel-btn:hover,
button.report_cancel-btn:hover,
.controller-rf_board_configs #query-form>div.rf-options-actions>a.rf-btn.rf-btn-secondary:hover,
.rf-options-actions .rf-btn-secondary:hover,
div.rf-modal-footer>button.btn.btn-secondary:hover,
.btn-secondary:hover,
.button-secondary:hover,
button.cancelBtn.btn.btn-sm.btn-default:hover,
button.my-page-agile-btn.my-page-agile-btn-secondary:hover,
.settings-btn-secondary:hover,
.wid-btn-secondary:hover,
button.settings-btn.settings-btn-secondary:hover,
.activity-btn-secondary:hover,
button#activity_export_csv:hover,
#cancelchecklistBtn:hover,
body.lotus-theme .tagedit_button input#cancel_tag:hover {
  background: #D1D7E0 !important;
  color: #161616 !important;
}

/* filter/option button style */

.rf-filter-actions .rf-btn-secondary,
.rf-options-actions .rf-btn-primary,
#content>div.wid-dashboard>div.wid-filter-panel>form>div.wid-filter-actions>input,
input#applyFilterBtn,
button#tag_popup_apply,
button#applyFilters,
.chart-settings-apply-btn,
button#activity_apply_filters,
#create-btn.create-testcase-filter,
#bulk-clear-selection-btn.bulk-clear-btn,
.rf-filter-actions .rf-btn-primary,
.controller-global_invoices.action-report #content>form>fieldset>input.button-small,
.controller-invoices.action-report #content>form>fieldset>input.button-small,
#ts-apply-filter-btn.ts-ub-apply-btn,
button.applyBtn.btn.btn-sm.btn-primary,
#rptFilterBody>form>div.alg-filter-actions>input.alg-filter-btn--apply,
#addTeamSubmit.adm-late-filter-apply,
input.alg-filter-btn.alg-filter-btn--apply,
input.my-page-agile-btn.my-page-agile-btn-primary {
  background: var(--rf-primary) !important;
  color: white !important;
  border-radius: 8px !important;
}

.rf-filter-actions .rf-btn-secondary:hover,
.rf-options-actions .rf-btn-primary:hover,
#content>div.wid-dashboard>div.wid-filter-panel>form>div.wid-filter-actions>input:hover,
input#applyFilterBtn:hover,
button#tag_popup_apply:hover,
button#applyFilters:hover,
.chart-settings-apply-btn:hover,
button#activity_apply_filters:hover,
#clearButtonFilter:hover,
#create-btn.create-testcase-filter:hover,
#bulk-clear-selection-btn.bulk-clear-btn:hover,
.rf-filter-actions .rf-btn-primary:hover,
.controller-global_invoices.action-report #content>form>fieldset>input.button-small:hover,
.controller-invoices.action-report #content>form>fieldset>input.button-small:hover,
#ts-apply-filter-btn.ts-ub-apply-btn:hover,
button.applyBtn.btn.btn-sm.btn-primary:hover,
#rptFilterBody>form>div.alg-filter-actions>input.alg-filter-btn--apply:hover,
#addTeamSubmit.adm-late-filter-apply:hover,
input.alg-filter-btn.alg-filter-btn--apply:hover,
input.my-page-agile-btn.my-page-agile-btn-primary:hover {
  background: var(--rf-primary-dark) !important;
  color: white !important;

}

#create-btn.create-testcase-filter,
button.applyBtn.btn.btn-sm.btn-primary {
  border-color: var(--rf-primary) !important;
  border-radius: 8px !important;
}


.chart-settings-apply-btn,
button#applyFilters {
  border: 1px solid var(--rf-primary) !important;
  border-radius: 8px !important;
}

.controller-rf_knowledgebase input.kb-btn-submit,
.controller-rf_knowledgebase_nodes input.kb-btn-submit,
body.lotus-theme .kb-btn-cancel,
.new-testsuite-modal .testsuite-modal-btn .cancel-btn,
.edit_testsuite-modal button#close-testsuite-edit-modal,
#create-btn,
.new-testsuite-modal .testsuite-modal-btn .create-testsuite,
.edit_testsuite-modal input#update-btn {
  font-size: 13px !important;
  font-family: var(--rf-font, 'Inter', system-ui, sans-serif) !important;
  border-radius: 8px !important;
}

/* Delete modal button style */

#delete-environment-form>input.milestone_run_button,
#delete_folder_form>input.delete-folder,
#delete_run>div.footer-folder>div>div>form>input.isclosed_run_button,
#delete_report>div.report-footer-folder>div>div>form>input.report_run_button,
button#delete-item,
button#confirmchecklistBtn,
#delete-issue-template>div.issue-template-footer-folder>div>div>button.issue-template_button,
#confirm-delete,
.controller-documents.action-show #content>div.contextual>a.icon.icon-del,
button#as-confirm-proceed-btn,
#confirmchecklistBtn {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: white !important;
  border-radius: 8px !important;

}

#delete-environment-form>input.milestone_run_button:hover,
#delete_folder_form>input.delete-folder:hover,
#delete_run>div.footer-folder>div>div>form>input.isclosed_run_button:hover,
#delete_report>div.report-footer-folder>div>div>form>input.report_run_button:hover,
button#delete-item:hover,
button#confirmchecklistBtn:hover,
#delete-issue-template>div.issue-template-footer-folder>div>div>button.issue-template_button:hover,
#confirm-delete:hover,
.controller-documents.action-show #content>div.contextual>a.icon.icon-del:hover,
button#as-confirm-proceed-btn:hover,
#confirmchecklistBtn:hover {
  background: #b91c1c !important;
  border: 1px solid #b91c1c !important;
  color: white !important;
}

/* button border radius */
.rf-options-actions .rf-btn {
  border-radius: 8px !important;
}





/* ************************************** */

/* Testcase */


table.list td.buttons>div>ul.run-list>li>a {
  padding: 6px 24px 5px 30px !important;
}

.testcase-modal-btn #close-add-result-modal.cancel-btn {
  height: 45px !important;
  font-size: 15px !important;
  font-family: var(--rf-font);
}

#create-btn,
.new-testsuite-modal .testsuite-modal-btn .create-testsuite,
.edit_testsuite-modal input#update-btn {
  padding: 0px 20px 0px 20px !important;
  height: 39px !important;
  color: white !important;
}


#steps-container .sort-handle {
  margin-top: -6px;
}

#new_run>p.new_modal,
#new_run>p:nth-child(14),
p.edit_modal,
#edit_run_1>p:nth-child(15),
#new_run>p:nth-child(15) {
  margin: -10px 0px 0px 0px !important;
}

div.add-result-btn>#update-btn,
#bulk-update-submit-btn {
  width: 100px !important;
}


#clearButtonFilter {
  padding: 13px 16px 26px 17px !important;
  border-radius: 8px !important;
  background: var(--rf-primary) !important;
  margin-right: -5px;
  color: white !important;
}

#edit-add-assignment {
  background-image: none !important;
}

.controller-runs.action-show span.select2-container span.select2-dropdown.select2-dropdown--below.custom-select2-dropdown {
  width: 1015px !important;
}

a.create-issue-link {
  color: white !important;

}

.controller-test_suites table.list td.checkbox {
  padding: 0px 0px 0px 10px !important;
}

.controller-test_suites table.list>thead>tr>th.checkbox {
  padding: 0px 0px 0px 7px !important;
}

#email_templates>table>tbody>tr>td.email_template_actions>a {
  font-size: 0px;
}

button#close-chid-modal,
.add-page-modal .action-btn .cancel-btn,
.add-page-modal .action-btn .next-btn,
.delete-modal .action-btn .cancel-btn,
.delete-modal .action-btn .delete-btn {
  width: 100% !important;
  border-radius: 8px !important;
}

#child-no-title-error.text-danger {
  color: red !important;
}


#watcher_link.icon-add-bullet {
  background-image: none;
  padding-left: 0px !important;
}


#sidebar_right.closed button#sidebar_toggle {
  right: 0px !important;
}

.controller-test_suites.action-releases button#sidebar_toggle.toggle-icon {
  right: 320px !important;
}

/* ----------------------------------------------------------------
   TIMESHEET – SIDEBAR MOVED INTO #main
   ---------------------------------------------------------------- */
#ts-reportrange.ts-ub-daterange-btn,
#ts-top-selection-log-btn.ts-modal-log-btn {
  height: 40px;
}

#content>div.tsa-schema-section>div.tsa-schema-body>p>a {
  padding: 10px 12px 10px 30px !important;
  border-radius: var(--rf-radius) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") 9px 11px no-repeat,
    linear-gradient(95.99deg, #1673FF 4.75%, #10C08B 123.45%) !important;
  color: var(--rf-white) !important;
  margin-left: 7px;
}

#content>div.tsa-schema-section>div.tsa-schema-body>p>a:hover {
  background: url("/assets/plugin_assets/redmineflux_lotus/plus-d08c3110.svg") 9px 11px no-repeat, linear-gradient(95.99deg, #1260D9 4.75%, #0DA577 123.45%) !important;
}

body.lotus-theme #main.rf_has_ts_sidebar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex {
  position: sticky;
  top: var(--rf-topbar-h);
  width: 52px;
  min-width: 52px;
  height: calc(100vh - var(--rf-topbar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  background: var(--rf-white);
  border-right: 1px solid var(--rf-border);
  box-sizing: border-box;
  z-index: 1;
  flex-shrink: 0;
}

body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex .workload_action_links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex .workload_action_links>div {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color var(--rf-transition);
}

body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex .workload_action_links>div:hover {
  background-color: var(--rf-bg);
}

body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex .workload_action_links>div a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-position: center !important;
  background-size: 20px !important;
  background-repeat: no-repeat !important;
  margin-bottom: 0 !important;
}

/* Override timesheet_sidebar.css's #sidebar positioning */
body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex+#content {
  flex: 1;
  min-width: 0;
}

/* Reset timesheet_sidebar.css overrides on #sidebar for lotus theme */
body.lotus-theme #main.rf_has_ts_sidebar>#timesheet_sidebar_flex {
  margin-top: 0;
  float: none;
}

/* Neutralize timesheet plugin's #sidebar overrides when lotus theme is active */
body.lotus-theme.controller-timesheets #sidebar,
body.lotus-theme.controller-timesheet_approvals #sidebar,
body.lotus-theme.controller-timesheet_reports #sidebar,
body.lotus-theme.controller-timesheet_teams #sidebar,
body.lotus-theme.controller-timesheet_logs #sidebar,
body.lotus-theme.controller-approval_schemas #sidebar {
  width: var(--rf-sidebar-w) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: var(--rf-white) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.lotus-theme.rf_sidebar_collapsed.controller-timesheets #sidebar,
body.lotus-theme.rf_sidebar_collapsed.controller-timesheet_approvals #sidebar,
body.lotus-theme.rf_sidebar_collapsed.controller-timesheet_reports #sidebar,
body.lotus-theme.rf_sidebar_collapsed.controller-timesheet_teams #sidebar,
body.lotus-theme.rf_sidebar_collapsed.controller-timesheet_logs #sidebar,
body.lotus-theme.rf_sidebar_collapsed.controller-approval_schemas #sidebar {
  width: var(--rf-sidebar-col-w) !important;
}


/* ================================================================
   REDMINE VERSION COMPATIBILITY
   Rules below handle elements that differ between Redmine 5.x and
   6.x. All rules are safe no-ops on versions where the targeted
   elements do not exist in the DOM.
================================================================ */

/* Redmine 6.x introduces a flyout navigation menu and a mobile
   toggle button. The Lotus top bar fully replaces navigation, so
   these elements must be hidden when the theme is active.
   On Redmine 5.x these selectors simply match nothing.            */
body.lotus-theme .flyout-menu,
body.lotus-theme .js-flyout-menu,
body.lotus-theme a.mobile-toggle-button.js-flyout-menu-toggle-button {
  display: none !important;
}

/* Redmine 6.x sidebar switch panel / button conflicts with the
   Lotus collapse control. Hide it; Lotus provides its own toggle.
   On Redmine 5.x these elements do not exist.                     */
body.lotus-theme #sidebar-switch-panel,
body.lotus-theme #sidebar-switch-button {
  display: none !important;
}

.message.reply>div.contextual>a {
  padding: 0px !important;
  background: none !important;
  border: none !important;
}

.message.reply>div.contextual>a>svg {
  display: block;
  padding: 0px !important;
  background: none !important;
  border: none !important;
}

.icon-download {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/download-d324509d.svg") !important;
  font-size: 0px !important;
  background-repeat: no-repeat;
  /* background-position: 12px 6px; */
  background-size: 15px;
}

.icon-download svg use {
  display: none;
}

.controller-attachments.action-show #content>div.contextual>a.icon.icon-download {
  background-position: 5px 0px !important;
  font-size: 13px !important;
}

#tab-content-versions>form>fieldset>input[type="submit"],
#tab-content-versions>form>fieldset>a.icon-reload,
.controller-groups.action-index #content>form>fieldset>input.small,
.controller-groups.action-index #content>form>fieldset>a.icon.icon-reload,
.controller-admin.action-projects #content>form>fieldset>input.small,
.controller-admin.action-projects #content>form>fieldset>a.icon.icon-reload,
.controller-timelog.action-report #query_form>p>a.icon.icon-reload,
.controller-users.action-index #users_form>fieldset>input.small,
.controller-users.action-index #users_form>fieldset>a.icon.icon-reload {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--rf-radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: var(--rf-primary) !important;
  color: var(--rf-white) !important;
  border-color: var(--rf-primary) !important;
  text-decoration: none;
  transition: background var(--rf-transition);
  margin-left: 2px;
  height: 35px !important;
}


body.lotus-theme table.list td.buttons a.icon.icon-copy,
body.lotus-theme table.list td.buttons a.icon.icon-lock {
  padding: 15px 0px 0px 0px;
  font-size: 0;
  height: 25px;
  width: 18px;
  display: inline-block;
}

table>tbody>tr>td.buttons>a.icon.icon-copy>svg {
  margin-top: -9px;
}

a.add-commit-keywords.icon-only.icon-add {
  font-size: 0px !important;
  background-image: url("/assets/plugin_assets/redmineflux_lotus/add-icon-4d9d65f9.svg") !important;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: 15px 0px;
}


body.lotus-theme .icon-lock,
body.lotus-theme .icon-locked {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/archive-b967e4a8.svg");
  background-size: contain;
  background-repeat: no-repeat;
}


a.icon.icon-unlock{

}

body.lotus-theme .icon-checked,
body.lotus-theme .icon-ok {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/checked-c1c094af.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-sort-handle {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/reorder-d023b3b4.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-close {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/cross-f4883a6c.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-warning {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/warning-ec12888e.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-package {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/icon-package-b4fe2ce5.svg");
  background-size: 18px;
  padding-left: 20px !important;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-issue {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/ticket-e6879a22.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-error {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/exclamation-58fa3955.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme .icon-group,
body.lotus-theme .icon-groupnonmember,
body.lotus-theme .icon-groupanonymous {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/group-admin-da74f722.svg");
  background-size: 18px;
  padding-left: 24px !important;
  background-repeat: no-repeat;

}

.mypage-box>div>a.icon-only.icon-settings {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/setting-90448ecb.svg") !important;
  background-size: contain;
  background-repeat: no-repeat;
}

body.lotus-theme input.autocomplete {
  background: #fff url("/assets/plugin_assets/redmineflux_lotus/search-c965d22d.svg") no-repeat 2px 50%;
  background-size: 18px;
  background-repeat: no-repeat;

}


button.tab-left {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/tab-left-5be7349a.svg") !important;
  background-size: contain;
}


button.tab-right {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/tab-right-7dd838b6.svg") !important;
  background-size: contain;
}


a.add-commit-keywords.icon-only.icon-add svg use,
body.lotus-theme .icon-lock svg use,
body.lotus-theme .icon-locked svg use,
body.lotus-theme .icon-checked svg use,
body.lotus-theme .icon-ok svg use,
body.lotus-theme .icon-sort-handle svg use,
body.lotus-theme .icon-close svg use,
body.lotus-theme .icon-warning svg use,
body.lotus-theme .icon-package svg use,
body.lotus-theme .icon-issue svg use,
body.lotus-theme .icon-error svg use,
body.lotus-theme .icon-group svg use,
body.lotus-theme .icon-groupnonmember svg use,
body.lotus-theme .icon-groupanonymous svg use,
.mypage-box>div>a.icon-only.icon-settings svg use,
div.flash.error svg.icon-svg,
#errorExplanation svg.icon-svg {
  display: none
}

#content>div.contextual>span.drdn>div.drdn-content>div.drdn-items>a>span {
  background-image: none;
  padding: 0px !important;
}


#content>div.rf_actions_totals_row>div>a.icon.icon-time-add>span.icon.icon-time-add,
#content>div.rf_actions_totals_row>div>a.rf_import_btn>span.icon.icon-import {
  background-image: none;
  padding-left: 0px !important;
}

.controller-users.action-edit #content>div.contextual>a.icon.icon-user {
  width: auto;
}


.controller-my.action-account #ajax-modal>table>tbody>tr>td.buttons>a.icon.icon-del {
  margin: -3px -2px 2px -8px !important;

}

#content>div.contextual>span.drdn>div.drdn-content>div.drdn-items>a.icon-lock>svg>use {
  display: block !important;
}

a.icon-only.icon-del.remove-upload {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/blue-delete-d21f07e0.svg") !important;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 6px;
}


div.rf_issue_section_body>div.attachments>div.contextual>a.icon-only.icon-edit {
  padding: 14px;
  background-image: url("/assets/plugin_assets/redmineflux_lotus/blue-edit-0a5d62f5.svg");
  border: none;
}

div.rf_issue_section_body>div.attachments>div.contextual>a.icon-only.icon-download {
  padding: 14px;
  background-image: url("./blue-download.svg");
  border: none;
  margin-left: -10px;
}

.rf_issue_section_row.rf_issue_watchers_row>#watchers>ul.watchers>li {
  display: table-row;
}

.rf_issue_section_row.rf_issue_watchers_row>#watchers>ul.watchers>li>a.user.active.user {
  display: table-cell;
  right: 10px;
  position: relative;
}

#issue_tree>form>table>tbody>tr>td.subject>a {
  display: inline-block;
}

.icon-not-ok {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/cross-red-bold-a0ce37e3.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

#errorExplanation svg,
#context-menu>ul>li>span>svg,
#tab-content-repositories>div>table>tbody>tr>td.buttons>a.icon.icon-user>svg,
a.icon-only.icon-del.remove-upload>svg>use,
div.flash.notice svg.icon-svg {
  display: none;
}

body.lotus-theme div.flash.error,
div.flash.error,
#errorExplanation {
  background-image: url("/assets/plugin_assets/redmineflux_lotus/exclamation-58fa3955.svg") !important;
  background-size: 16px !important;
  background-repeat: no-repeat !important;
  background-position: 11px;
}

div.flash.error:not(:has(svg)),
#errorExplanation:not(:has(svg)) {
  background-image: none;
}

#context-menu li a.submenu {
  background: url("/assets/plugin_assets/redmineflux_lotus/left-arrow-83659301.svg") right no-repeat !important;
}

#tab-content-repositories>div>table>tbody>tr>td.buttons>a.icon.icon-user {
  background-position: 0px 4px !important;
  padding-left: 15px;
}

.controller-auth_sources.action-index a.icon.icon-test {
  background-position: 0px 4px !important;
  padding-left: 15px !important;
}

.controller-auth_sources.action-index #content>table.list {
  margin-left: -3px;
}

div.flash.notice {
  background: url("/assets/plugin_assets/redmineflux_lotus/tick_icon_green-918a7138.svg") 8px 10px no-repeat !important;
  background-color: #dfffdf !important;
  border-color: #9fcf9f !important;
  color: #005f00 !important;
}

.controller-timelog.action-report table.list thead th {
  text-align: left;
}

.controller-projects.action-index #content>p:nth-child(7)>span.icon,
.controller-projects.action-index #content>div.rf_projects_page>p.rf_legend>span>span,
#content>div.rf_projects_page>p.rf_legend>span:nth-child(2)>span.icon.icon-bookmarked {
  background-position: 3px 3px !important;
}

#csv-export-form>p>br {
  display: none;
}

.cal .starting a.issue,
p.cal.legend .starting {
  background: url("./bullet_go.png") no-repeat 0px 2px;
  padding-left: 16px !important;
}


body.lotus-theme.controller-welcome.action-index div#main {
  min-height: auto;
}

/* #content>div.contextual>a.icon.icon-fav-off,
#content>div.contextual>a.icon.icon-fav {
  margin-right: 0px;
} */



.controller-roles.action-index #content>table>tbody>tr>td.buttons>a.icon.icon-del,
.controller-trackers.action-index #content>table>tbody>tr>td.buttons>a.icon.icon-del,
.controller-issue_statuses.action-index #content>table>tbody>tr>td.buttons>a.icon.icon-del {
  font-size:0;
}

#tab-content-issues>form>fieldset>p>label.inline {
  margin-right: 10px;
}

#list-definition>div {
  gap: 4px 5px !important;
}

#context-menu.reverse-x li.folder ul {
  left: auto !important;
}

.controller-reports.action-issue_report_details #content>a,
.controller-documents.action-show #content>div.contextual>a.icon.icon-edit {
  background: white !important;
  padding: 6px 10px;
  border: 1px solid var(--rf-blue) !important;
  border-radius: 6px;
}

.controller-reports.action-issue_report_details #content>a:hover,
.controller-documents.action-show #content>div.contextual>a.icon.icon-edit:hover {
  border-color: #1673FF !important;
  color: #1673FF !important;
  background: #79aeff1f !important;
}

.controller-admin.action-projects #content>form>div>table>thead>tr>th.identifier {
  text-align: center;
}


.controller-enumerations.action-index #content>p>a>span.icon.icon-add {
  padding-left: 0px !important;
}

#bulk-selection>li {
  margin: 4px 0;
}


#content>div.contextual>a.icon.icon-summary {
  margin-right: 5px;
}

.controller-files #content>div.autoscroll>table.list>tbody>tr>td.buttons>a.icon-only.icon-download {
  width: 20px;
  padding-bottom: 13px !important;
  background-size: 14px !important;
  margin-top: 7px;
}

.controller-files #content>div.autoscroll>table>tbody>tr>td.buttons>a.icon-only.icon-download>svg {
  display: none;
}