 :root {
  --sb-w: 248px;
  --sb-bg: #1e2d5a;
  --sb-darker: #162247;
  --sb-hover: rgba(255, 255, 255, 0.06);
  --sb-active-bg: rgba(77, 149, 255, 0.18);
  --sb-active-bar: #4d95ff;
  --sb-text: rgba(255, 255, 255, 0.62);
  --sb-text-h: #ffffff;
  --sb-group: rgba(255, 255, 255, 0.25);
  --sb-sub-bg: rgba(0, 0, 0, 0.18);

  --bg: #f0f3fa;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --border: #e2e8f4;
  --border-strong: rgba(44, 123, 229, 0.2);
  --text: #1a2540;
  --text-soft: #627191;
  --text-muted: #a0aec8;
  --shadow: 0 2px 14px rgba(20, 40, 100, 0.08);
  --shadow-soft: 0 6px 28px rgba(20, 40, 100, 0.14);
  --radius: 12px;
  --radius-sm: 8px;

  --blue: #2c7be5;
  --blue-soft: #eaf2ff;
  --teal: #00b8a9;
  --teal-soft: #e0faf8;
  --green: #00c875;
  --green-soft: #e3faf0;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --orange: #f77f00;
  --orange-soft: #fff3e0;
  --purple: #6b5eae;
  --purple-soft: #eeecf8;
  --red: #e63757;
  --red-soft: #fde8ec;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.pubplus-v3 {
  margin: 0;
  min-width: 0 !important;
  background: var(--bg) !important;
  color: var(--text);
  font-family: var(--font);
}

body.pubplus-v3 a {
  color: inherit;
  text-decoration: none;
}

body.pubplus-v3 #wrap {
  min-height: 100vh;
  background: var(--bg) !important;
}

body.pubplus-v3 #top,
body.pubplus-v3 #footer,
body.pubplus-v3 footer.Footer,
body.pubplus-v3 .user-media,
body.pubplus-v3 .user-wrapper,
body.pubplus-v3 .head,
body.pubplus-v3 header.head {
  display: none !important;
}

body.pubplus-v3 #left {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sb-w) !important;
  min-width: var(--sb-w);
  height: 100vh;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--sb-bg) !important;
  color: var(--sb-text);
  box-shadow: 4px 0 24px rgba(10, 20, 60, 0.2);
  z-index: 500;
  overflow: hidden;
}

body.pubplus-v3 #content {
  position: relative;
  min-height: 100vh;
  margin-left: var(--sb-w) !important;
  padding: 56px 0 0 !important;
  float: none !important;
  background: var(--bg) !important;
}

body.pubplus-v3 #content > .outer,
body.pubplus-v3 #content > .outer > .inner,
body.pubplus-v3 #content .outer,
body.pubplus-v3 #content .inner,
body.pubplus-v3 form {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.pubplus-v3 .topbar.pubplus-bar {
  position: fixed;
  top: 0;
  left: var(--sb-w);
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(20, 40, 100, 0.05);
  backdrop-filter: blur(16px);
  z-index: 450;
}

body.pubplus-v3 .topbar.pubplus-bar .logo-mark,
body.pubplus-v3 .topbar.pubplus-bar .logo-name,
body.pubplus-v3 .topbar.pubplus-bar .tb-search {
  display: none !important;
}

body.pubplus-v3 .topbar.pubplus-bar .fa,
body.pubplus-v3 #left .fa,
body.pubplus-v3 .dashboard-v3 .fa {
  font-family: FontAwesome !important;
}

.ml {
  margin-left: auto;
}

.co-pill,
.fy-pill,
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.co-pill {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--blue-soft);
  border-color: rgba(44, 123, 229, 0.2);
  color: var(--blue);
}

.fy-pill {
  background: var(--purple-soft);
  border-color: rgba(107, 94, 174, 0.2);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
}

.user-pill {
  background: #eef4ff;
  border-color: rgba(44, 123, 229, 0.2);
  color: var(--blue);
}

.tb-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: #687897;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.tb-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.tb-label {
  font-size: 12px;
  font-weight: 600;
}

body.pubplus-v3 #left.sb {
  display: flex;
  flex-direction: column;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sb-group-title {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-section {
  display: block;
  padding: 14px 16px 4px;
  color: var(--sb-group);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3d91ff 0%, #19d1ff 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(29, 146, 255, 0.32);
}

.logo-name {
  color: #fff;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.15;
}

.logo-ver {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.sb-search {
  position: relative;
  margin: 12px 12px 10px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.sb-search .tb-search-ico {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.sb-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-family: var(--font);
}

.sb-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.sb-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(15, 31, 73, 0.98);
  box-shadow: 0 14px 30px rgba(5, 12, 38, 0.42);
  z-index: 4;
}

.sb-search-results li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-search-results.is-active {
  display: grid;
  gap: 6px;
}

.sb-search-result,
.sb-search-empty {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.sb-search-result:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
}

.sb-search-empty {
  color: rgba(255, 255, 255, 0.54);
}

#ShowActiveTransacton.sb-search-results {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  height: auto !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 8px !important;
  background: rgba(15, 31, 73, 0.98) !important;
}

#ShowActiveTransacton.sb-search-results li a {
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 10px;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 12px !important;
  font-weight: 600;
  text-decoration: none !important;
}

#ShowActiveTransacton.sb-search-results li a:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
}

.sb-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 18px;
}

.sb-scroll::-webkit-scrollbar {
  width: 4px;
}

.sb-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

body.pubplus-v3 #menu {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  background: transparent !important;
}

body.pubplus-v3 #menu > li,
body.pubplus-v3 #menu li ul li {
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sb-item,
.sb-sub-item,
.sb-sub2-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 0;
  margin: 1px 8px;
  padding: 9px 14px 9px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--sb-text);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.14s ease;
}

.sb-sub-item,
.sb-sub2-item {
  min-height: 0;
  margin: 0;
  padding: 7px 14px 7px 38px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.52);
}

.sb-sub2-item {
  padding-left: 52px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
}

.sb-item:hover,
.sb-sub-item:hover,
.sb-sub2-item:hover {
  background: var(--sb-hover);
  color: var(--sb-text-h);
  border-color: transparent;
}

body.pubplus-v3 #menu li.active > .sb-item,
body.pubplus-v3 #menu li.active > .sb-sub-item,
body.pubplus-v3 #menu li.active > .sb-sub2-item {
  background: transparent;
  color: var(--sb-active-bar);
  border-color: transparent;
  box-shadow: none;
}

body.pubplus-v3 #menu li.active > .sb-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--sb-active-bar);
}

body.pubplus-v3 #menu li.active > .sb-item {
  background: var(--sb-active-bg);
  color: var(--sb-text-h);
  font-weight: 600;
}

.sb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  color: #dce9ff;
  font-size: 12px;
  box-shadow: none;
  opacity: 1;
}

.sb-icon i {
  font-size: 13px;
}

.sb-sub-item .sb-icon,
.sb-sub2-item .sb-icon {
  display: none;
}

.sb-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

.sb-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  margin-left: auto;
  transition: transform 0.18s ease;
}

.sb-parent.open > .sb-item .sb-arrow,
.sb-sub-parent.open > .sb-sub-item .sb-arrow {
  transform: rotate(90deg);
}

.sb-sub,
.sb-sub2 {
  display: none !important;
  margin: 2px 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding-bottom: 0;
  background: var(--sb-sub-bg);
}

.sb-parent.open > .sb-sub,
.sb-sub-parent.open > .sb-sub2 {
  display: block !important;
}

body.pubplus-v3 .page {
  width: 100%;
  padding: 20px 22px 28px !important;
  background: transparent;
}

.dashboard-v3 {
  width: 100%;
  max-width: none;
  margin: 0;
}

.dashboard-tab-panel {
  display: none;
}

.dashboard-tab-panel.is-active {
  display: block;
}

.dash-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dash-switcher-copy {
  flex: 0 0 auto;
  min-width: 0;
}

.dash-switcher-kicker {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-switcher-copy h2 {
  display: none;
}

.dash-switcher-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}

.dash-switcher-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  line-height: 1;
  transition: 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.dash-switcher-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
}

.dash-switcher-link:hover {
  border-color: var(--blue);
  background: #f5f9ff;
  color: var(--blue);
}

.dash-switcher-link.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(44, 123, 229, 0.15);
}

.dash-switcher-toggle {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
}

.dash-switcher-toggle:hover,
.dash-switcher-toggle.is-active {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
  gap: 12px;
  margin-bottom: 18px;
}

.kpi {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 12px 14px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
}

.kpi.tint1::before {
  background: var(--orange);
}

.kpi.tint2::before {
  background: var(--blue);
}

.kpi.tint3::before {
  background: var(--purple);
}

.kpi.tint4::before {
  background: var(--amber);
}

.kpi.tint5::before {
  background: var(--green);
}

.kpi.tint6::before {
  background: var(--red);
}

.kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #edf3fb;
  color: var(--blue);
  font-size: 13px;
}

.kpi.tint1 .kpi-icon { background: var(--orange-soft); color: var(--orange); }
.kpi.tint2 .kpi-icon { background: var(--blue-soft); color: var(--blue); }
.kpi.tint3 .kpi-icon { background: var(--purple-soft); color: var(--purple); }
.kpi.tint4 .kpi-icon { background: var(--amber-soft); color: var(--amber); }
.kpi.tint5 .kpi-icon { background: var(--green-soft); color: var(--green); }
.kpi.tint6 .kpi-icon { background: var(--red-soft); color: var(--red); }

.kpi-lbl {
  display: block;
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi-val {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
}

.kpi-val strong {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.kpi-val .kpi-text,
.kpi-val a {
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.kpi-val .percent {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.kpi-val .percent.neutral {
  background: var(--amber-soft);
  color: var(--amber);
}

.kpi-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.kpi-note {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

.up,
.dn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.up {
  color: var(--green);
  background: var(--green-soft);
}

.dn {
  color: var(--red);
  background: var(--red-soft);
}

.snap-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.snap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(135deg, var(--sb-bg) 0%, #1e3d8f 100%);
  box-shadow: 0 10px 24px rgba(15, 30, 90, 0.18);
}

.snap-link {
  color: inherit;
  text-decoration: none;
}

.snap-link:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.snap-l {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snap-v {
  margin-bottom: 5px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

.snap-s {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(90deg, #213d89 0%, #1d2f69 100%);
  box-shadow: var(--shadow-soft);
}

.stats-strip .stat {
  min-height: 82px;
  padding: 12px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stats-strip .stat:last-child {
  border-right: 0;
}

.stat-label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-val {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.stat-note {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
}

.quick-actions-strip,
.fav-strip {
  margin-bottom: 18px;
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid rgba(44, 123, 229, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%);
  box-shadow: 0 10px 30px rgba(20, 40, 100, 0.08);
}

.quick-actions-strip::before,
.fav-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--amber) 0%, #ffb347 100%);
}

.fav-strip::before {
  background: linear-gradient(180deg, var(--blue) 0%, #56a2ff 100%);
}

.source-counters {
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.section-title i {
  color: var(--orange);
}

.quick-actions-grid,
.fav-grid {
  display: grid;
  gap: 10px;
}

.quick-actions-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fav-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.quick-btn,
#myfav button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #536480;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26, 50, 90, 0.05);
  transition: 0.18s ease;
  white-space: normal;
  line-height: 1.35;
  position: relative;
  overflow: hidden;
}

.quick-btn::after,
#myfav button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--blue) 0%, #75aefe 100%);
  opacity: 0.9;
}

#myfav button .fav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff4dc 0%, #ffedd1 100%);
  color: var(--amber);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#myfav button .fav-label {
  display: inline-flex;
  align-items: center;
}

.quick-btn {
  width: auto;
}

.quick-btn:hover,
#myfav button:hover {
  border-color: var(--blue);
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(44, 123, 229, 0.14);
}

.quick-btn .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(180deg, #eef4ff 0%, #e4eeff 100%);
  color: var(--blue);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.quick-actions-grid .quick-btn:nth-child(6n + 1)::after,
#myfav button:nth-child(6n + 1)::after { background: linear-gradient(180deg, #2c7be5 0%, #75aefe 100%); }
.quick-actions-grid .quick-btn:nth-child(6n + 2)::after,
#myfav button:nth-child(6n + 2)::after { background: linear-gradient(180deg, #00b8a9 0%, #62ded4 100%); }
.quick-actions-grid .quick-btn:nth-child(6n + 3)::after,
#myfav button:nth-child(6n + 3)::after { background: linear-gradient(180deg, #f59e0b 0%, #ffc266 100%); }
.quick-actions-grid .quick-btn:nth-child(6n + 4)::after,
#myfav button:nth-child(6n + 4)::after { background: linear-gradient(180deg, #6b5eae 0%, #9a8fe1 100%); }
.quick-actions-grid .quick-btn:nth-child(6n + 5)::after,
#myfav button:nth-child(6n + 5)::after { background: linear-gradient(180deg, #e63757 0%, #ff7f9c 100%); }
.quick-actions-grid .quick-btn:nth-child(6n + 6)::after,
#myfav button:nth-child(6n + 6)::after { background: linear-gradient(180deg, #1d9bf0 0%, #7ec9ff 100%); }

.quick-actions-grid .quick-btn:nth-child(6n + 1) .fa { background: linear-gradient(180deg, #eef5ff 0%, #dce9ff 100%); color: #2c7be5; }
.quick-actions-grid .quick-btn:nth-child(6n + 2) .fa { background: linear-gradient(180deg, #e8fcf9 0%, #d3f7f2 100%); color: #00b8a9; }
.quick-actions-grid .quick-btn:nth-child(6n + 3) .fa { background: linear-gradient(180deg, #fff7e8 0%, #ffedc2 100%); color: #f59e0b; }
.quick-actions-grid .quick-btn:nth-child(6n + 4) .fa { background: linear-gradient(180deg, #f4f1ff 0%, #e7e0ff 100%); color: #6b5eae; }
.quick-actions-grid .quick-btn:nth-child(6n + 5) .fa { background: linear-gradient(180deg, #ffeef2 0%, #ffd7e1 100%); color: #e63757; }
.quick-actions-grid .quick-btn:nth-child(6n + 6) .fa { background: linear-gradient(180deg, #ebf7ff 0%, #d7efff 100%); color: #1d9bf0; }

#myfav button:nth-child(6n + 1) .fav-ico { background: linear-gradient(180deg, #eef5ff 0%, #dce9ff 100%); color: #2c7be5; }
#myfav button:nth-child(6n + 2) .fav-ico { background: linear-gradient(180deg, #e8fcf9 0%, #d3f7f2 100%); color: #00b8a9; }
#myfav button:nth-child(6n + 3) .fav-ico { background: linear-gradient(180deg, #fff7e8 0%, #ffedc2 100%); color: #f59e0b; }
#myfav button:nth-child(6n + 4) .fav-ico { background: linear-gradient(180deg, #f4f1ff 0%, #e7e0ff 100%); color: #6b5eae; }
#myfav button:nth-child(6n + 5) .fav-ico { background: linear-gradient(180deg, #ffeef2 0%, #ffd7e1 100%); color: #e63757; }
#myfav button:nth-child(6n + 6) .fav-ico { background: linear-gradient(180deg, #ebf7ff 0%, #d7efff 100%); color: #1d9bf0; }

.quick-btn .label,
#myfav button::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-btn .label {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #edf2fb;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

#myfav button {
  cursor: pointer;
  position: relative;
  font-family: var(--font);
  width: auto !important;
}

#myfav button::before {
  display: none;
}

.fav-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue) 0%, #569dff 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(44, 123, 229, 0.3);
}

.quick-actions-strip .section-title i {
  color: var(--orange);
}

.fav-strip .section-title i {
  color: var(--amber);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.widget-card {
  grid-column: span 6;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, var(--panel-soft) 100%);
  box-shadow: var(--shadow);
}

.widget-card.chart-card {
  min-height: 360px;
}

.widget-card.wide {
  grid-column: span 12;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.widget-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}

.widget-title i {
  color: var(--purple);
}

.widget-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.widget-actions img {
  height: 18px;
}

.widget-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3f7ff;
  color: var(--blue);
  font-size: 12px;
}

.widget-body {
  padding: 0;
}

.widget-card table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.widget-card thead th {
  padding: 12px 16px;
  background: #f7faff;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-card tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #edf2fa;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.widget-card tbody tr:last-child td {
  border-bottom: 0;
}

.widget-card tbody tr:hover td {
  background: #f9fbff;
}

.widget-card .body,
.widget-card .panel-body {
  min-height: 260px;
}

.chart-holder,
#chartBranchWiseSaleReceiptChart,
#divYearlySales,
#bar {
  width: 100%;
  height: 320px;
}

.widget-card.chart-card .widget-body {
  padding: 12px 14px 18px;
}

.dashboard-v3 .modal-content {
  width: min(1100px, calc(100vw - 120px));
  height: auto;
  max-height: calc(100vh - 120px);
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  overflow-y: auto;
}

.dashboard-v3 #myModal .box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dashboard-v3 #myModal h5 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.dashboard-v3 #myModal .toolbar nav {
  padding: 0 !important;
}

.dashboard-v3 #myModal .btn.btn-primary {
  border-radius: 10px;
}

body.pubplus-v3 #supportTicket {
  border: 0;
  border-radius: 12px 0 0 0;
  padding: 4px 12px 4px 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(22, 41, 87, 0.14);
}

.coming-soon-card {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}

.coming-soon-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-soon-card h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
}

.coming-soon-card p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1600px) {
  .kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .snap-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .widget-card {
    grid-column: span 12;
  }

  .dash-switcher {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-switcher-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  :root {
    --sb-w: 224px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .snap-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.pubplus-v3 #left {
    position: static;
    width: 100% !important;
    height: auto;
  }

  body.pubplus-v3 #content {
    margin-left: 0 !important;
    padding-top: 72px !important;
  }

  body.pubplus-v3 .topbar.pubplus-bar {
    left: 0;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 10px 16px;
  }

  body.pubplus-v3 .page {
    padding: 18px 16px 28px !important;
  }

  .dashboard-v3 {
    width: 100%;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .snap-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .snap {
    min-width: 0;
    padding: 0;
  }
}
