/*--------------------------------------------------------------
# Frappe CRM look
  Loaded last, on top of NiceAdmin's style.css and Bootstrap. Layout,
  spacing and the neutral greys follow Frappe CRM (grey sidebar, white
  canvas, sticky page header, flat list view); the brand orange stays the
  only accent colour.
--------------------------------------------------------------*/
:root {
  --fx-brand: #E76F25;
  --fx-brand-hover: #d4611c;
  --fx-brand-text: #B8500F;   /* brand orange that still passes AA on white for small text */
  --fx-brand-soft: #fdf1ea;
  --fx-brand-ring: rgba(231, 111, 37, 0.22);

  --fx-ink: #171717;
  --fx-ink-2: #383838;
  --fx-ink-3: #525252;
  --fx-muted: #7c7c7c;
  --fx-line: #ededed;
  --fx-line-2: #e2e2e2;
  --fx-surface: #ffffff;
  --fx-subtle: #f8f8f8;
  --fx-hover: #f3f3f3;

  --fx-sidebar-w: 224px;
  --fx-sidebar-w-collapsed: 52px;
  --fx-header-h: 48px;
  --fx-radius: 8px;
  --fx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --fx-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  background: var(--fx-surface);
  color: var(--fx-ink-2);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.card-title, .alert-heading, .breadcrumb {
  font-family: inherit;
  color: var(--fx-ink);
}
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
h5 { font-size: 14px; font-weight: 500; line-height: 1.6; }

a { color: var(--fx-brand-text); }
a:hover { color: var(--fx-brand-hover); }

::selection { background: var(--fx-brand-soft); }

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  top: 0;
  width: var(--fx-sidebar-w);
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: var(--fx-subtle);
  border-right: 1px solid var(--fx-line);
  box-shadow: none;
  scrollbar-color: #d4d4d4 transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 4px; box-shadow: none; }
.sidebar::-webkit-scrollbar-track { background: transparent; box-shadow: none; }

/* Brand logo */
.fx-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 8px;
}
.fx-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 6px 8px;
  border-radius: var(--fx-radius);
}
.fx-collapse-btn { flex-shrink: 0; }
.fx-collapse-btn i { font-size: 16px; }
.fx-brand:hover { background: var(--fx-hover); }
.fx-brand-full { max-width: 150px; max-height: 32px; object-fit: contain; }
.fx-brand-mark { display: none; width: 30px; height: 30px; object-fit: contain; }

/* Nav */
.sidebar-nav { flex: 1; }
.sidebar-nav .nav-item { margin-bottom: 2px; }
.sidebar-nav .nav-heading {
  margin: 16px 0 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fx-muted);
}
.sidebar-nav .nav-link,
.sidebar-nav .nav-link.collapsed {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fx-ink-2);
  background: transparent;
  border-radius: var(--fx-radius);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav .nav-link span { color: inherit; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav .nav-link i,
.sidebar-nav .nav-link.collapsed i {
  flex: 0 0 18px;
  margin: 0;
  font-size: 16px;
  text-align: center;
  color: var(--fx-ink-3);
}
.sidebar-nav .nav-link:hover {
  color: var(--fx-ink);
  background: var(--fx-hover);
}
.sidebar-nav .nav-link:hover i { color: var(--fx-ink-2); }

.sidebar-nav .nav-link.active {
  color: var(--fx-ink);
  font-weight: 500;
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow-sm);
}
.sidebar-nav .nav-link.active i { color: var(--fx-brand); }

/* Layout offsets */
#main {
  margin-top: 0;
  padding: 0;
  min-height: 100vh;
}
.footer {
  padding: 12px 0;
  border-top: 1px solid var(--fx-line);
}
.footer .credits { color: var(--fx-muted); font-size: 12px; }
.footer .credits a { color: var(--fx-ink-3); }

@media (min-width: 1200px) {
  #main, #footer { margin-left: var(--fx-sidebar-w); }

  /* Collapsed: icon rail, same as Frappe's collapsed sidebar */
  .toggle-sidebar .sidebar { left: 0; width: var(--fx-sidebar-w-collapsed); }
  .toggle-sidebar #main,
  .toggle-sidebar #footer { margin-left: var(--fx-sidebar-w-collapsed); }
  .toggle-sidebar .sidebar .fx-brand-full,
  .toggle-sidebar .sidebar .nav-link span:not(.entry-badge),
  .toggle-sidebar .sidebar .nav-heading { display: none; }
  /* Section labels become a thin divider on the icon rail */
  .toggle-sidebar .sidebar .nav-heading + .nav-item { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--fx-line); }
  .toggle-sidebar .sidebar .fx-brand { justify-content: center; padding: 6px 0; }
  .toggle-sidebar .sidebar .fx-brand-mark { display: block; }
  .toggle-sidebar .sidebar .nav-link { justify-content: center; padding: 0; position: relative; }
  /* Rail: the "F" mark on top, the expand button right under it */
  .toggle-sidebar .sidebar .fx-brand-row { flex-direction: column; gap: 2px; }
  .toggle-sidebar .sidebar .nav-link .entry-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
    border: 0;
    background: var(--fx-brand) !important;
  }
}
@media (max-width: 1199px) {
  .sidebar { left: calc(-1 * var(--fx-sidebar-w) - 2px); }
  .toggle-sidebar .sidebar { left: 0; box-shadow: var(--fx-shadow-md); }
}

/*--------------------------------------------------------------
# Page header (sticky, Frappe-style)
--------------------------------------------------------------*/
.fx-page-header {
  position: sticky;
  top: 0;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--fx-header-h);
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--fx-line);
}
.fx-page-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fx-page-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-page-header .breadcrumb {
  margin: 0;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--fx-line-2);
  font-size: 13px;
  font-weight: 400;
  color: var(--fx-muted);
  flex-wrap: nowrap;
}
.fx-page-header .breadcrumb a { color: var(--fx-muted); }
.fx-page-header .breadcrumb a:hover { color: var(--fx-ink); }
.fx-page-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #c7c7c7;
}
.fx-page-header .breadcrumb .active { color: var(--fx-ink-3); font-weight: 400; }
.fx-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fx-page-header-actions > * { margin: 0 !important; }

/* Account menu in the header */
.fx-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px 0 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-ink);
}
.fx-profile-btn:hover,
.fx-profile-btn[aria-expanded="true"] { background: var(--fx-hover); }
.fx-profile-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.fx-profile-btn .bi-chevron-down { font-size: 12px; color: var(--fx-muted); }
.fx-profile .dropdown-menu { min-width: 220px; margin-top: 6px !important; }

/* Hover label for the collapsed icon rail (positioned by main.js) */
.fx-rail-tip {
  position: fixed;
  z-index: 2000;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--fx-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

.fx-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fx-ink-3);
  font-size: 18px;
}
.fx-icon-btn:hover { background: var(--fx-hover); color: var(--fx-ink); }

@media (max-width: 767px) {
  .fx-page-header { padding: 8px 12px; }
  .fx-page-header .breadcrumb { display: none; }
}

.fx-page-body { padding: 16px 20px 24px; }
@media (max-width: 767px) { .fx-page-body { padding: 12px; } }

/* The shared content card becomes a flat canvas */
.fx-page-body > .section > .row > [class*="col-"] > .row > .col-12 > .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  margin-bottom: 0;
}
.fx-page-body > .section > .row > [class*="col-"] > .row > .col-12 > .card > .card-body {
  padding: 0 !important;
}

/*--------------------------------------------------------------
# Cards, alerts, dropdowns
--------------------------------------------------------------*/
.card {
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  box-shadow: none;
  margin-bottom: 16px;
}
.card-header, .card-footer {
  background: var(--fx-subtle);
  border-color: var(--fx-line);
  color: var(--fx-ink-3);
  padding: 10px 16px;
}
.card-title {
  padding: 14px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fx-ink);
}
.card-title span { color: var(--fx-muted); font-size: 13px; }
.card-body { padding: 0 16px 16px; }

.alert {
  border-radius: var(--fx-radius);
  font-size: 13px;
  padding: 10px 14px;
}

.dropdown-menu {
  padding: 4px;
  border-radius: 10px;
  border: 0;
  box-shadow: var(--fx-shadow-md);
  font-size: 14px;
}
.dropdown-menu .dropdown-header {
  text-align: left;
  font-size: 13px;
  padding: 8px 10px;
}
.dropdown-menu .dropdown-header h6 { font-size: 14px; font-weight: 600; margin: 0; color: var(--fx-ink); }
.dropdown-menu .dropdown-header span { font-size: 12px; color: var(--fx-muted); }
.dropdown-menu .dropdown-divider { margin: 4px 0; border-color: var(--fx-line); opacity: 1; }
.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fx-ink-2);
}
.dropdown-menu .dropdown-item i { font-size: 15px; margin-right: 8px; color: var(--fx-ink-3); }
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus { background: var(--fx-hover); color: var(--fx-ink); }
.dropdown-menu-arrow::before { display: none; }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--fx-radius);
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn.w-100 { display: flex; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 40px; padding: 0 16px; font-size: 15px; }
.btn:focus, .btn:focus-visible { box-shadow: 0 0 0 3px var(--fx-brand-ring) !important; }

.btn-primary {
  background: var(--fx-brand) !important;
  border: 1px solid var(--fx-brand) !important;
  color: #fff;
}
.btn-primary:hover, .btn-primary:active { background: var(--fx-brand-hover) !important; border-color: var(--fx-brand-hover) !important; }

.btn-outline-primary {
  color: var(--fx-brand-text);
  border-color: var(--fx-line-2);
  background: #fff;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
  color: var(--fx-brand-text);
  border-color: var(--fx-brand);
  background: var(--fx-brand-soft);
}

.btn-secondary, .btn-light {
  color: var(--fx-ink);
  background: var(--fx-hover);
  border: 1px solid var(--fx-hover);
}
.btn-secondary:hover, .btn-light:hover { background: #ebebeb; border-color: #ebebeb; color: var(--fx-ink); }

/* Success / danger keep their meaning but in Frappe's softer tones */
.btn-success { background: #278f5e; border-color: #278f5e; }
.btn-success:hover { background: #1f7a4f; border-color: #1f7a4f; }
.btn-danger { background: #e03636; border-color: #e03636; }
.btn-danger:hover { background: #c92b2b; border-color: #c92b2b; }

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
label, .form-label, .col-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fx-ink-3);
  margin-bottom: 4px;
}
.form-control, .form-select {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 14px;
  color: var(--fx-ink);
  background-color: var(--fx-hover);
  border: 1px solid var(--fx-hover);
  border-radius: var(--fx-radius);
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.form-select { padding-right: 32px; }
textarea.form-control { padding: 8px 10px; }
.form-control:hover, .form-select:hover { background-color: #ebebeb; border-color: #ebebeb; }
.form-control:focus, .form-select:focus {
  background-color: #fff;
  border-color: var(--fx-brand);
  box-shadow: 0 0 0 3px var(--fx-brand-ring);
  color: var(--fx-ink);
}
.form-control::placeholder { color: #a3a3a3; }
.form-control:disabled, .form-control[readonly] { background-color: var(--fx-subtle); color: var(--fx-ink-3); }
.form-check-input:checked { background-color: var(--fx-brand); border-color: var(--fx-brand); }
.form-check-input:focus { border-color: var(--fx-brand); box-shadow: 0 0 0 3px var(--fx-brand-ring); }
.input-group-text {
  font-size: 14px;
  background: var(--fx-subtle);
  border-color: var(--fx-line-2);
  border-radius: var(--fx-radius);
}
.invalid-feedback, .text-danger { font-size: 12px; }

/* CKEditor sits in the same frame as the other inputs */
.cke_chrome { border: 1px solid var(--fx-line-2) !important; border-radius: var(--fx-radius); overflow: hidden; box-shadow: none !important; }
.cke_top { background: var(--fx-subtle) !important; border-bottom: 1px solid var(--fx-line) !important; }

/*--------------------------------------------------------------
# Tables / list view
--------------------------------------------------------------*/
.table {
  font-size: 14px;
  color: var(--fx-ink-2);
  margin-bottom: 0;
  border-color: var(--fx-line);
}
.table > :not(:first-child) { border-top: 0; }
.table > thead > tr > th {
  height: 32px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fx-muted);
  background: var(--fx-subtle);
  border-bottom: 0 !important;
  white-space: nowrap;
  vertical-align: middle;
}
.table > thead > tr > th:first-child { border-radius: var(--fx-radius) 0 0 var(--fx-radius); }
.table > thead > tr > th:last-child { border-radius: 0 var(--fx-radius) var(--fx-radius) 0; }
.table > tbody > tr > td {
  height: 40px;
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--fx-line);
  background: transparent;
  box-shadow: none !important;
}
.table > tbody > tr:hover > td { background: var(--fx-subtle); }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; }

/* Row actions rendered by the controllers */
.table td .btn { height: 28px; padding: 0 8px; font-size: 13px; }
.table td .btn + .btn, .table td a + a { margin-left: 4px; }

/* DataTables (1.11, Bootstrap 5 integration) */
table.dataTable { width: 100% !important; margin-top: 0 !important; margin-bottom: 0 !important; border-collapse: separate !important; border-spacing: 0; }
table.dataTable > thead > tr > th.sorting,
table.dataTable > thead > tr > th.sorting_asc,
table.dataTable > thead > tr > th.sorting_desc { padding-right: 26px; }
table.dataTable > thead .sorting::before,
table.dataTable > thead .sorting::after,
table.dataTable > thead .sorting_asc::before,
table.dataTable > thead .sorting_asc::after,
table.dataTable > thead .sorting_desc::before,
table.dataTable > thead .sorting_desc::after { font-size: 10px; bottom: 50% !important; transform: translateY(50%); }
table.dataTable > thead .sorting::before,
table.dataTable > thead .sorting_asc::before,
table.dataTable > thead .sorting_desc::before { bottom: calc(50% + 3px) !important; }

.dataTables_wrapper { font-size: 13px; color: var(--fx-ink-3); }
.dataTables_wrapper .row:first-child { margin-bottom: 10px; }
.dataTables_wrapper .row:last-child { margin-top: 10px; align-items: center; }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { font-size: 13px; font-weight: 400; color: var(--fx-ink-3); }
.dataTables_wrapper .dataTables_length select { width: auto; display: inline-block; min-height: 28px; padding-top: 2px; padding-bottom: 2px; margin: 0 4px; }
.dataTables_wrapper .dataTables_filter input { min-height: 28px; margin-left: 6px; }
.dataTables_wrapper .dataTables_info { padding-top: 0 !important; color: var(--fx-muted); }
.dataTables_wrapper .dataTables_processing {
  background: #fff;
  border: 0;
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow-md);
  color: var(--fx-ink-3);
  font-size: 13px;
  padding: 10px !important;
}
.dataTables_wrapper .table-responsive, .dataTables_wrapper .col-sm-12 { overflow-x: auto; }

.pagination { gap: 2px; margin: 0 !important; }
.page-link {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--fx-ink-2);
  border: 0;
  border-radius: 6px !important;
  background: transparent;
}
.page-link:hover { background: var(--fx-hover); color: var(--fx-ink); }
.page-link:focus { box-shadow: 0 0 0 3px var(--fx-brand-ring); }
.page-item.active .page-link { background: var(--fx-brand); color: #fff; }
.page-item.disabled .page-link { background: transparent; color: #c7c7c7; }

/* Badges: Frappe-style soft pills */
.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
}

/*--------------------------------------------------------------
# Tabs
--------------------------------------------------------------*/
.nav-tabs, .nav-tabs-bordered { border-bottom: 1px solid var(--fx-line); gap: 4px; }
.nav-tabs .nav-link, .nav-tabs-bordered .nav-link {
  margin-bottom: -1px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--fx-ink-3);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
}
.nav-tabs .nav-link:hover, .nav-tabs-bordered .nav-link:hover { color: var(--fx-ink); }
.nav-tabs .nav-link.active, .nav-tabs-bordered .nav-link.active {
  color: var(--fx-ink);
  font-weight: 500;
  background: transparent;
  border-bottom-color: var(--fx-brand);
}

/*--------------------------------------------------------------
# Dashboard number cards
--------------------------------------------------------------*/
.dashboard a.col-xxl-4, .dashboard a[class*="col-"] { color: inherit; }
.dashboard .info-card {
  padding-bottom: 0;
  border: 1px solid var(--fx-line);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dashboard a:hover .info-card { border-color: var(--fx-line-2); box-shadow: var(--fx-shadow-sm); }
.dashboard .info-card .card-title { padding: 14px 0 6px; font-size: 13px; font-weight: 500; color: var(--fx-muted); }
.dashboard .info-card h6 { font-size: 26px; font-weight: 600; color: var(--fx-ink); letter-spacing: -0.01em; }
.dashboard .card-icon {
  width: 40px;
  height: 40px;
  font-size: 18px;
  border-radius: 10px !important;
}
.dashboard .customers-card .card-icon,
.dashboard .sales-card .card-icon,
.dashboard .revenue-card .card-icon { color: var(--fx-brand); background: var(--fx-brand-soft); }

/*--------------------------------------------------------------
# Misc
--------------------------------------------------------------*/
.back-to-top { background: var(--fx-ink); border-radius: var(--fx-radius); width: 36px; height: 36px; }
.back-to-top:hover { background: var(--fx-ink-2); }

.swal2-popup { border-radius: 12px !important; font-family: inherit !important; }
.swal2-styled.swal2-confirm { background: var(--fx-brand) !important; border-radius: var(--fx-radius) !important; }
.swal2-styled { box-shadow: none !important; }

/* Profile photo picker */
.user_profile_image .upload-icon { border: 1px solid var(--fx-line-2); }

/*--------------------------------------------------------------
# Auth screens (login / forgot / reset)
--------------------------------------------------------------*/
.register { background: var(--fx-subtle); }
body:has(.register) { background: var(--fx-subtle); }
.register .logo { width: auto; margin-bottom: 20px; }
.register .logo img { max-width: 180px; }
.register .card { border: 0; box-shadow: var(--fx-shadow-md); border-radius: 12px; width: 100%; }
.register .card-body { padding: 8px 24px 24px; }
.register .card-title { font-size: 18px !important; }
.register p.small { color: var(--fx-muted); }

/* Phones: keep list rows one line high and let the table scroll sideways */
@media (max-width: 767px) {
  .table > tbody > tr > td { white-space: nowrap; }
  .dataTables_wrapper .dataTables_length { text-align: left !important; }
}

/*--------------------------------------------------------------
# Dashboard "Recent" boxes
--------------------------------------------------------------*/
.fx-recent { overflow: hidden; }
.fx-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fx-line);
}
.fx-recent-head h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.fx-recent-head h5 i { color: var(--fx-brand); font-size: 15px; }
.fx-recent-all { font-size: 13px; font-weight: 500; color: var(--fx-ink-3); display: inline-flex; align-items: center; gap: 4px; }
.fx-recent-all:hover { color: var(--fx-brand-text); }

.fx-recent-list { list-style: none; margin: 0; padding: 4px; }
.fx-recent-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--fx-radius);
  color: inherit;
}
.fx-recent-list li a:hover { background: var(--fx-subtle); }
.fx-recent-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fx-brand-soft);
  color: var(--fx-brand-text);
  font-size: 13px;
  font-weight: 600;
}
.fx-recent-main { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.fx-recent-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-recent-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-brand); }
.fx-recent-sub {
  font-size: 12px;
  color: var(--fx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-recent-meta { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fx-recent-meta .badge { font-size: 11px; padding: 2px 7px; }
.fx-recent-time { font-size: 12px; color: var(--fx-muted); }
.fx-badge-soft { background: var(--fx-hover); color: var(--fx-ink-3); }
.fx-recent-empty { padding: 24px 10px; text-align: center; font-size: 13px; color: var(--fx-muted); }
