:root {
  --navy: #0f1630;
  --navy2: #1a2040;
  --navy3: #2a3060;
  --accent: #201850;
  --accent2: #2d2570;
  --accent-l: #ede9f6;
  --teal: #48b0c0;
  --teal2: #3a9aaa;
  --teal-l: #e0f5f7;
  --amber: #d97706;
  --rose: #e11d48;
  --emerald: #059669;
  --bg: #f0f2f8;
  --bg2: #e2e6f0;
  --card: #ffffff;
  --white:#fff;
  --border: #e2e6f0;
  --border2: #c8cedf;
  --txt1: #0f1630;
  --txt2: #3d4466;
  --txt3: #8890b0;
  --dropdown-item-color:#5D6772;
  --topbar-h: 52px;
  --subnav-h: 40px;
  --shadow-sm: 0 1px 2px rgba(32, 24, 80, .06), 0 1px 3px rgba(32, 24, 80, .08);
  --shadow: 0 4px 16px rgba(32, 24, 80, .10), 0 1px 4px rgba(32, 24, 80, .06);
  --shadow-lg: 0 16px 48px rgba(32, 24, 80, .18), 0 4px 12px rgba(32, 24, 80, .10);
  --r: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--txt1);
  font-size: 14px;
}

#topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: #ffffff;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: 0 2px 12px rgba(32, 24, 80, .12);
  border-bottom: 2px solid var(--teal);
  overflow: visible;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 100%;
  border-right: 1px solid var(--border2);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 160px;
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 0 2px rgba(72, 176, 192, .4);
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.nav-logo-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, .4);
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-modules {
  display: flex;
  align-items: stretch;
  flex: 1;
  height: 100%;
  overflow: visible;
}

.nav-modules::-webkit-scrollbar {
  display: none;
}

.nav-mod {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  position: relative;
  max-height: 80vh;
  border-right: 1px solid var(--border);
}

.nav-mod:hover {
  color: var(--accent);
  background: var(--teal-l);
}

.nav-mod.active {
  color: var(--accent);
  border-bottom-color: var(--teal);
  background: var(--teal-l);
}

.nav-mod-icon,
.nav-dd-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .55;
}

.nav-mod-icon {
  width: 16px;
  height: 16px;
}

.nav-mod-icon i {
  display: block;
  width: 16px;
  height: 16px;
}

.nav-mod.active .nav-mod-icon,
.nav-mod:hover .nav-mod-icon {
  opacity: 1;
}

.nav-dd-icon {
  width: 15px;
  height: 15px;
}

.nav-dd-icon i {
  display: block;
  width: 15px;
  height: 15px;
}

.nav-mod-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--rose);
  color: #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  line-height: 1.4;
}

.nav-mod-dropdown,
.nav-mod-more {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  z-index: 9999;
  padding: 6px 0;
}

.nav-dropdown-right {
  left: auto;
  right: 0;
}

.nav-mod-dropdown:hover>.nav-dropdown-menu,
.nav-mod-more:hover>.nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--txt1);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}

.nav-dropdown-item:hover {
  background: var(--teal-l);
  color: var(--teal2);
}

.nav-dropdown-arrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  opacity: .7;
}

.nav-dropdown-arrow svg {
  width: 14px;
  height: 14px;
}

.nav-dropdown-item.nav-mod-dropdown {
  position: relative;
}

.nav-dropdown-item.nav-mod-dropdown>.nav-dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
  display: none;
}

.nav-dropdown-item.nav-mod-dropdown:hover>.nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu,
.nav-dropdown-item.nav-mod-dropdown>.nav-dropdown-menu {
  pointer-events: auto;
}

.nav-dropdown-menu {
  animation: fadeIn .15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-ico svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt3);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.db-kpi-icon,
.dv-subpanel-icon,
.dv-hero-icon,
.acf-icon {
  filter: grayscale(1);
  opacity: .35;
}

.nav-has-sub {
  justify-content: flex-start;
}

.nav-sub-arrow {
  margin-left: auto;
  font-size: 9px;
  opacity: .6;
  padding-left: 12px;
}

.nav-sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: -6px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  z-index: 1000;
  padding: 6px 0;
}

.nav-sub-scroll {
  max-height: 60vh;
  overflow-y: auto;
}

.nav-has-sub:hover .nav-sub-menu {
  display: block;
}

.nav-has-sub:hover {
  background: var(--teal-l);
  color: var(--teal2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  flex-shrink: 0;
  border-left: 1px solid var(--border2);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 6px 12px;
  width: 200px;
}

.nav-search input {
  border: none;
  background: none;
  outline: none;
  color: var(--txt1);
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
}

.nav-search input::placeholder {
  color: var(--txt3);
}

.nav-search-icon {
  color: var(--txt3);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-search-icon svg {
  height: 13px;
  width: 13px;
}

.nav-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--txt2);
  font-size: 14px;
  transition: all .15s;
}

.nav-icon-btn:hover {
  background: var(--teal-l);
  color: var(--teal2);
}

.profile-dropdown-area .dropdown-menu .dropdown-item svg{
  height: 14px;
  width: 14px;
}
.profile-dropdown-area .dropdown-menu .dropdown-item{
  padding: 6px 8px;
  font-size: 13px;
}
.dropdown-item.active, .dropdown-item:active {
  background-color: unset;
}

#subnav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: var(--subnav-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 190;
  box-shadow: var(--shadow-sm);
}

.subnav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subnav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt1);
  letter-spacing: -.02em;
}

.subnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#page {
  margin-top: calc(var(--topbar-h) + var(--subnav-h));
  padding: 22px 24px;
  min-height: calc(100vh - var(--topbar-h) - var(--subnav-h));
  background: linear-gradient(180deg, #dde2f0 0%, var(--bg) 300px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.btn svg{
  height: 16px;
  width: 16px;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(72, 176, 192, .4);
}
.btn-primary:active{
  color: unset;
  background: var(--teal) !important;

}
.btn-primary:hover {
  background: var(--teal2);
  box-shadow: 0 4px 12px rgba(72, 176, 192, .5);
}

.btn-secondary {
  background: var(--card);
  color: var(--txt1);
  border: 1px solid var(--border2);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--txt1);
  border: 1px solid var(--border2);

}

.btn-ghost {
  background: transparent;
  color: var(--txt2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
}

.btn-danger {
  background: var(--rose);
  color: #fff;
}

.btn-danger:hover {
  background: #be123c;
}

.btn-success {
  background: var(--emerald);
  color: #fff;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-xs {
  padding: 3px 9px;
  font-size: 11px;
}

.card {
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.card-head-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card-body {
  padding: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.stat-val {
  font-size: 30px;
  font-weight: 800;
  color: var(--txt1);
  letter-spacing: -.03em;
  margin: 5px 0 3px;
  line-height: 1;
}

.stat-meta {
  font-size: 12px;
  color: var(--txt2);
}

.stat-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-icon.blue {
  background: #e0f5f7;
}

.stat-icon.green {
  background: #d1fae5;
}

.stat-icon.amber {
  background: #fef3c7;
}

.stat-icon.rose {
  background: #ffe4e6;
}

.stat-trend {
  font-size: 11px;
  font-weight: 600;
}

.stat-trend.up {
  color: var(--emerald);
}

.stat-trend.down {
  color: var(--rose);
}

.tbl-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.tbl-wrap::-webkit-scrollbar {
  height: 6px;
}

.tbl-wrap::-webkit-scrollbar-track {
  background: inherit;
  border-radius: 3px;
}

.tbl-wrap::-webkit-scrollbar-thumb {
  background: inherit;
  border-radius: 3px;
}
.table-searchbar{
flex:1;
min-width:160px;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--txt3);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.tbl thead th:hover {
  background: #f1f5f9;
  color: var(--txt2);
  text-decoration: underline;
}

.tbl tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.tbl tbody tr:last-child {
  border-bottom: none;
}

.tbl tbody tr:hover {
  background: #f8fafc;
}
.tbl .action-cell{
  text-decoration: none;

}
.tbl .action-cell .dropdown-menu{
  padding: 0.75rem;
  min-width: 11rem !important;
  background-color:var(--white) ;
}
.tbl .action-cell .dropdown-menu .dropdown-item{
  color: var(--dropdown-item-color);
  padding: 0.5rem 0.9375rem;
  font-size: 13px;
}
.tbl .action-cell svg{
  height: 16px;
  width: 16px;
  cursor: pointer;
  color: initial;
}
.tbl td {
  padding: 11px 14px;
  font-size: 13px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Table column width */
.tbl td.check-col, 
.tbl th.check-col {
  width: 38px;
  text-align: center;
}

/* Hide default checkbox */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Custom checkmark */
.custom-checkbox .checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
  border-radius: 4px; /* slightly rounded for modern look */
  transition: all 0.2s ease;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}

/* Checkmark indicator */
.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Checked state */
.custom-checkbox input:checked + .checkmark {
  background-color: var(--teal);
  border-color: var(--teal);
}

.custom-checkbox input:checked + .checkmark::after {
  opacity: 1;
}
.row-acts {
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity .15s;
}

.tbl tbody tr:hover .row-acts {
  opacity: 1;
}

.act-btn {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: var(--txt2);
  transition: all .12s;
  font-family: inherit;
}

.act-btn:hover {
  background: var(--bg2);
  color: var(--txt1);
}

.act-btn.del:hover {
  background: #fff0f3;
  color: var(--rose);
  border-color: #fda4af;
}

.act-btn.edit:hover {
  background: var(--teal-l);
  color: var(--teal2);
  border-color: #a0dde5;
}

.cell-link {
  color: var(--teal2);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.cell-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.b-success {
  background: #d1fae5;
  color: #065f46;
}

.b-success::before {
  background: #059669;
}

.b-warning {
  background: #fef3c7;
  color: #92400e;
}

.b-warning::before {
  background: #d97706;
}

.b-danger {
  background: #ffe4e6;
  color: #9f1239;
}

.b-danger::before {
  background: #e11d48;
}

.b-info {
  background: #e4e0f5;
  color: #201850;
}

.b-info::before {
  background: #201850;
}

.b-purple {
  background: #ede9fe;
  color: #5b21b6;
}

.b-purple::before {
  background: #7c3aed;
}

.b-gray {
  background: #f1f5f9;
  color: #475569;
}

.b-gray::before {
  background: #94a3b8;
}

.b-teal {
  background: #e0f5f7;
  color: #1a6a78;
}

.b-teal::before {
  background: #48b0c0;
}

.b-amber {
  background: #fef3c7;
  color: #78350f;
}

.b-amber::before {
  background: #d97706;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--txt2);
}

.pager-btns {
  display: flex;
  gap: 3px;
}

.pager-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
  font-size: 12px;
  font-family: inherit;
  color: var(--txt1);
  transition: all .12s;
}

.pager-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.pager-btn:hover:not(.active) {
  background: var(--bg);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.filter-bar select,
.filter-bar input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--txt1);
}

.filter-bar input::placeholder {
  color: var(--txt3);
}

.filter-sep {
  color: var(--border2);
  font-size: 20px;
  user-select: none;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}

.overlay.open {
  display: flex;
}
/* 
.modal {
  background: var(--card);
  border-radius: 14px;
  width: 700px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn .22s cubic-bezier(.34, 1.56, .64, 1);
  margin: auto;
}

.modal.modal-wide {
  width: 860px;
}

@keyframes modalIn {
  from {
    transform: translateY(-20px) scale(.97);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc, #fff);
  border-radius: 14px 14px 0 0;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--txt3);
  margin-top: 2px;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--txt2);
  font-size: 16px;
  transition: all .12s;
}

.modal-close:hover {
  background: var(--bg2);
  color: var(--txt1);
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 5px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

.modal-ft {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  border-radius: 0 0 14px 14px;
} */

.form-section {
  margin-bottom: 22px;
}

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--teal);
  border-radius: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.fg-full {
  grid-column: 1/-1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--txt2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .req {
  color: var(--rose);
  font-size: 10px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--border2);
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--txt1);
  background: var(--card);
  outline: none;
  transition: border .15s, box-shadow .15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(72, 176, 192, .15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--txt3);
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.form-hint {
  font-size: 11px;
  color: var(--txt3);
  margin-top: -2px;
}

.input-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border2);
  border-radius: 7px;
  overflow: hidden;
  transition: border .15s, box-shadow .15s;
}

.input-prefix:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(72, 176, 192, .15);
}

.input-prefix-sym {
  background: #f8fafc;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--txt2);
  border-right: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.input-prefix input {
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--txt1);
  background: none;
  flex: 1;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tab {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
}

.tab:hover {
  color: var(--txt2);
}

.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.kanban::-webkit-scrollbar {
  height: 5px;
}

.kanban::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

.kb-col {
  width: 220px;
  flex-shrink: 0;
}

.kb-col-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 7px 7px 0 0;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-bottom: none;
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.kb-count {
  background: var(--border);
  color: var(--txt2);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}

.kb-body {
  min-height: 80px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 7px 7px;
  padding: 8px;
  background: #fafcff;
}

.kb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .12s;
}

.kb-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.kb-card:last-child {
  margin-bottom: 0;
}

.kb-card-name {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}

.kb-card-acct {
  font-size: 11.5px;
  color: var(--txt2);
}

.kb-card-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.kb-card-amt {
  font-size: 12px;
  font-weight: 800;
  color: var(--txt1);
  font-family: 'JetBrains Mono', monospace;
}

.kb-card-date {
  font-size: 10.5px;
  color: var(--txt3);
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.feed-body {
  flex: 1;
}

.feed-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.feed-meta {
  font-size: 11.5px;
  color: var(--txt3);
  margin-top: 3px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}

.bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  transition: opacity .15s;
  position: relative;
}

.bar:hover {
  opacity: .8;
}

.bar-label {
  font-size: 10px;
  color: var(--txt3);
  text-align: center;
  margin-top: 5px;
}

.bar-chart-wrap {
  overflow: hidden;
}

.detail-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--r) var(--r) 0 0;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #fff;
}

.detail-av {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.detail-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.detail-desc {
  font-size: 13px;
  opacity: .65;
  margin-top: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--card);
}

.detail-field {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-field:nth-child(3n) {
  border-right: none;
}

.df-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

.df-val {
  font-size: 13.5px;
  color: var(--txt1);
  font-weight: 500;
}

.prog-bar {
  background: var(--bg2);
  border-radius: 4px;
  height: 7px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
}

#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: none;
  animation: modalIn .2s ease;
}

.toast-inner {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px 12px 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--accent2);
}

.toast-ico {
  font-size: 16px;
}

#toast.show {
  display: block;
}

/* .views .view {
  display: none;
}

.views .view.active {
  display: block;
} */

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-head-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--border));
  margin: 20px 0;
  opacity: .3;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--txt3);
}

.empty-ico {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: .4;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg2);
  color: var(--txt2);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.db-hero {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  animation: dbFadeUp .5s ease both;
  box-shadow: var(--shadow-sm);
}

@keyframes dbFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.db-hero-bg {
  display: none;
}

.db-hero-grid {
  display: none;
}

.db-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.db-hero-left {
  flex: 1;
}

.db-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.db-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .3);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .3);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .1);
  }
}

.db-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--txt1);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.db-hero-name {
  color: var(--teal2);
}

.db-hero-sub {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 460px;
}

.db-hero-sub strong {
  color: var(--txt1);
}

.db-hero-actions {
  display: flex;
  gap: 10px;
}

.db-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.db-hero-ring-wrap {
  position: relative;
  width: 170px;
  height: 170px;
}

.db-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.db-ring circle {
  fill: none;
  stroke-width: 12;
  transform-origin: 50% 50%;
}

.db-ring-bg {
  stroke: var(--border2);
}

.db-ring-arc {
  stroke: #48b0c0;
  stroke-dasharray: 314;
  stroke-dashoffset: 80;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1);
}

.db-ring-arc {
  stroke-dasharray: 408.4;
  stroke-dashoffset: 65;
}

.db-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--txt1);
  pointer-events: none;
}

.db-hero-stats-mini {
  display: flex;
  align-items: center;
  gap: 16px;
}

.db-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.db-mini-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--txt1);
  letter-spacing: -.02em;
  font-family: 'JetBrains Mono', monospace;
}

.db-mini-lbl {
  font-size: 10px;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.db-mini-divider {
  width: 1px;
  height: 28px;
  background: var(--border2);
}

.db-ring-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--txt1);
}

.db-ring-val span {
  font-size: 16px;
}

.db-ring-sub {
  font-size: 12px;
  color: var(--txt3);
  margin-top: 4px;
  white-space: nowrap;
}

.db-hero-stats-mini {
  display: flex;
  align-items: center;
  gap: 20px;
}

.db-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.db-kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 18px 20px 16px;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  animation: dbFadeUp .5s ease both;
  transition: box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}

.db-kpi-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border2);
}

.db-kpi-blue,
.db-kpi-rose,
.db-kpi-emerald,
.db-kpi-amber,
.db-kpi-violet {
  background: var(--card);
}

.db-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.db-kpi-icon {
  font-size: 18px;
  opacity: .5;
}

.db-kpi-spark {
  width: 60px;
  height: 28px;
}

.db-kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--txt1);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.db-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.db-kpi-trend {
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  color: var(--txt2);
}

.db-kpi-trend.up {
  color: var(--emerald);
}

.db-kpi-trend.down {
  color: var(--rose);
}

.db-kpi-glow {
  display: none;
}

.db-main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
}

.db-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 0 0 0 transparent;
  animation: dbFadeUp .5s ease both;
  transition: box-shadow .2s;
}

.db-panel:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.db-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fafbfd, #fff);
}

.db-panel-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--txt1);
}

.db-panel-sub {
  font-size: 11.5px;
  color: var(--txt3);
  margin-top: 1px;
}

.db-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--txt2);
}

.db-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.db-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #f0fdf4;
  color: #166534;
}

.db-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

.db-chart-wrap {
  padding: 20px 20px 0;
}

.db-chart-area {
  display: flex;
  gap: 12px;
}

.db-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: var(--txt3);
  padding-bottom: 0;
  font-family: 'JetBrains Mono', monospace;
  width: 36px;
  flex-shrink: 0;
  text-align: right;
}

.db-bars-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 140px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 0 0 8px;
  position: relative;
}

.db-bars::before,
.db-bars::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 0;
  border-top: 1px dashed var(--border);
}

.db-bars::before {
  top: 33%;
}

.db-bars::after {
  top: 66%;
}

.db-bar-item {
  flex: 1;
  border-radius: 4px 4px 0 0;
  position: relative;
  cursor: pointer;
  transition: all .2s;
  min-width: 0;
  background: var(--border2);
}

.db-bar-item:hover {
  background: var(--teal2);
  opacity: 1;
}

.db-bar-item.current {
  background: var(--teal);
}

.db-bar-item .db-bar-tip {
  display: none;
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
}

.db-bar-item:hover .db-bar-tip {
  display: block;
}

.db-bars-labels {
  display: flex;
  gap: 5px;
  padding: 0 0 0 8px;
}

.db-bar-lbl {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  color: var(--txt3);
  font-weight: 600;
  text-transform: uppercase;
}

.db-chart-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.db-chart-sum-item {
  padding: 14px 20px;
}

.db-chart-sum-val {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-family: 'JetBrains Mono', monospace;
  color: var(--txt1);
}

.db-chart-sum-lbl {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.db-chart-sum-sep {
  width: 1px;
  background: var(--border);
}

.db-pipeline-list {
  padding: 14px 20px;
}

.db-pipeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.db-pipeline-row:last-child {
  border-bottom: none;
}

.db-pipeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-pipeline-info {
  flex: 1;
  min-width: 0;
}

.db-pipeline-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-pipeline-acct {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 1px;
}

.db-pipeline-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.db-pipeline-amt {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--txt1);
}

.db-pipeline-prog {
  width: 80px;
}

.db-tasks-list {
  padding: 6px 16px;
}

.db-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.db-task-item:last-child {
  border-bottom: none;
}

.db-task-cb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.db-task-cb:hover {
  border-color: var(--teal);
  background: var(--teal-l);
}

.db-task-body {
  flex: 1;
  min-width: 0;
}

.db-task-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-task-meta {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 1px;
}

.db-task-prio {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.db-task-prio.high {
  background: #ffe4e6;
  color: #9f1239;
}

.db-task-prio.medium {
  background: #fef3c7;
  color: #92400e;
}

.db-task-prio.low {
  background: #f1f5f9;
  color: #475569;
}

.db-feed {
  padding: 0 20px;
}

.db-feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.db-feed-item:last-child {
  border-bottom: none;
}

.db-feed-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--txt2);
}

.db-feed-icon svg {
  height: 16px;
  width: 16px;
}

.db-feed-body {
  flex: 1;
}

.db-feed-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--txt1);
}

.db-feed-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.db-feed-time {
  font-size: 11px;
  color: var(--txt3);
}

.db-prog-list {
  padding: 10px 20px 14px;
}

.db-prog-item {
  margin-bottom: 14px;
}

.db-prog-item:last-child {
  margin-bottom: 0;
}

.db-prog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.db-prog-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt1);
}

.db-prog-count {
  font-size: 11.5px;
  color: var(--txt2);
  font-family: 'JetBrains Mono', monospace;
}

.db-prog-track {
  background: var(--bg2);
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
}

.db-prog-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

.cal-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: var(--bg);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: var(--txt2);
}

.cal-nav-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cal-month-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt1);
  letter-spacing: -.02em;
  min-width: 160px;
  text-align: center;
}

.cal-view-tabs {
  display: flex;
  gap: 4px;
}

.cal-view-tab {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--txt2);
  background: var(--bg);
  transition: all .15s;
}

.cal-view-tab.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.cal-grid-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.cal-dow {
  text-align: center;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 96px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 7px;
  position: relative;
  cursor: pointer;
  transition: background .1s;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell:hover {
  background: #f8fafc;
}

.cal-cell.other-month {
  background: #fafcff;
}

.cal-cell.other-month .cal-day-num {
  color: var(--txt3);
}

.cal-cell.today {
  background: #e0f5f7;
}

.cal-cell.today .cal-day-num {
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt2);
  margin-bottom: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-event {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity .12s;
  line-height: 1.5;
}

.cal-event:hover {
  opacity: .8;
}

.cal-event.ev-meeting {
  background: #e0f5f7;
  color: #1a6a78;
}

.cal-event.ev-task {
  background: #fef3c7;
  color: #78350f;
}

.cal-event.ev-call {
  background: #d1fae5;
  color: #065f46;
}

.cal-event.ev-deadline {
  background: #ffe4e6;
  color: #9f1239;
}

.cal-event.ev-program {
  background: #ede9fe;
  color: #5b21b6;
}

.cal-more {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  margin-top: 1px;
}

.cal-week-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cal-week-hd {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
}

.cal-week-hd-cell {
  padding: 10px 6px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.cal-week-hd-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cal-week-hd-date {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt1);
  margin-top: 2px;
}

.cal-week-hd-date.today {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 0;
  font-size: 14px;
}

.cal-week-body {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  max-height: 560px;
  overflow-y: auto;
}

.cal-week-body::-webkit-scrollbar {
  width: 5px;
}

.cal-week-body::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

.cal-time-col {
  border-right: 1px solid var(--border);
}

.cal-time-slot {
  height: 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding: 3px 6px;
}

.cal-time-label {
  font-size: 10px;
  color: var(--txt3);
  font-weight: 600;
  white-space: nowrap;
}

.cal-day-col {
  border-left: 1px solid var(--border);
  position: relative;
}

.cal-day-slot {
  height: 48px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}

.cal-day-slot:hover {
  background: #f0f7ff;
}

.cal-week-event {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: opacity .12s;
  z-index: 2;
}

.cal-week-event:hover {
  opacity: .85;
}

.cal-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
  align-items: start;
}

.cal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cal-legend {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.cal-legend-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--txt2);
  font-weight: 500;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-upcoming {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.cal-upcoming-hd {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}

.cal-upcoming-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}

.cal-upcoming-item:last-child {
  border-bottom: none;
}

.cal-upcoming-item:hover {
  background: #f8fafc;
}

.cal-upcoming-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.cal-upcoming-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt1);
  line-height: 1.3;
}

.cal-upcoming-meta {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 2px;
}

.cal-popover {
  position: fixed;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 280px;
  z-index: 600;
  display: none;
  animation: modalIn .18s cubic-bezier(.34, 1.56, .64, 1);
}

.cal-popover.open {
  display: block;
}

.cal-popover-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cal-popover-close {
  cursor: pointer;
  color: var(--txt3);
  font-size: 16px;
}

.cal-popover-close:hover {
  color: var(--txt1);
}

.appt-stat-val {
  font-size: 20px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--txt1);
}

.appt-stat-lbl {
  font-size: 11px;
  color: var(--txt3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 1px;
}

.spark-svg {
  width: 60px;
  height: 28px;
  overflow: visible;
}

.modal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.modal-bc-mod {
  color: #64748b;
  font-weight: 500;
}

.modal-bc-sep {
  color: #94a3b8;
}

.modal-bc-action {
  color: #1e293b;
  font-weight: 700;
}

.modal-more-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  letter-spacing: 2px;
  line-height: 1;
}

.modal-more-btn:hover {
  background: #f1f5f9;
}

.modal-acf {
  max-width: 1140px !important;
  width: 96vw !important;
}

.modal-acf .modal-hd {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 20px;
}

.modal-acf .modal-body {
  max-height: 82vh;
  overflow-y: auto;
  padding: 0 20px 20px;
}

.modal-acf .modal-ft {
  display: none;
}

.cf-wrap {
  width: 100%;
}

.cf-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  padding-top: 16px;
  align-items: start;
}

.cf-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.cf-fg {
  display: flex;
  flex-direction: column;
}

.cf-row {
  width: 100%;
}

.cf-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cf-name-row {
  display: flex;
  gap: 6px;
}

.cf-salutation {
  width: 72px;
  flex-shrink: 0;
}

.cf-name-first,
.cf-name-last {
  flex: 1;
}

.cf-addr-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.cf-add-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  line-height: 1;
  padding: 0;
}

.cf-add-btn:hover {
  background: #e0f2fe;
  border-color: #93c5fd;
}

.cf-readonly-val {
  font-size: 13px;
  color: #94a3b8;
  padding: 7px 0;
}

.cf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-sb-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 50px;
}

.cf-sb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cf-select-with-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cf-sb-arrow,
.cf-sb-x {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.cf-sb-arrow:hover,
.cf-sb-x:hover {
  background: #f1f5f9;
}

@media (max-width: 860px) {
  .cf-body {
    grid-template-columns: 1fr;
  }
  .cf-row-2col {
    grid-template-columns: 1fr;
  }
  .cf-sidebar {
    position: static;
  }
}

.acf-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.acf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0 !important;
  margin-bottom: 0;
  background: #fff;
  /* position: sticky; */
  top: 0;
  z-index: 10;
}

.acf-tab {
  padding: 10px 18px;
  font-size: 13.5px;
  color: #64748b !important;
  cursor: pointer;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  white-space: nowrap;
  font-weight: 500 !important;
  transition: color .15s, border-color .15s;
}

.acf-tab:hover {
  color: #1e293b !important;
}

.acf-tab.active {
  color: var(--teal) !important;
  border-bottom-color: var(--teal) !important;
  font-weight: 600 !important;
}
.acf-tabs.nav-tabs .nav-link{
  border: none;
}
.acf-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
  padding-top: 16px;
}

.acf-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.acf-tabpane {
  display: none;
  flex-direction: column;
  gap: 0;
}

.acf-tabpane.active {
  display: flex;
}

.acf-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 14px;
  /* overflow: hidden; removed to show tomselect dropdown */
}

.acf-section-hd {
  background: #dbeafe;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-bottom: 1px solid #bfdbfe;
}

.acf-section>*:not(.acf-section-hd) {
  padding: 0 14px;
}

.acf-section>.acf-grid {
  padding: 14px;
}

.acf-section>div[style] {
  padding: 14px 14px 0;
}

.acf-section>div[style]:last-child {
  padding-bottom: 14px;
}

.acf-grid {
  display: grid;
  gap: 14px;
}

.acf-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.acf-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.acf-grid-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.acf-fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acf-fg-full {
  grid-column: 1/-1;
}

.acf-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
}

.acf-req {
  color: #ef4444;
  margin-left: 2px;
}

.acf-input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.acf-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}

.acf-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  resize: vertical;
}

.acf-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}

.acf-select {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 7px 28px 7px 10px;
  font-size: 13px;
  color: #1e293b;
  /* background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 10px center; */
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.acf-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.acf-select-sm {
  width: auto;
  min-width: 80px;
  padding: 6px 24px 6px 8px;
  font-size: 12px;
}

.acf-readonly {
  font-size: 13px;
  color: #94a3b8;
  padding: 7px 0;
}

.acf-input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.acf-input-icon .acf-input {
  padding-right: 32px;
}

.acf-icon {
  position: absolute;
  right: 8px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  line-height: 1;
}

.acf-photo-upload {
  width: 44px;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  background: #f8fafc;
  transition: background .15s;
}

.acf-photo-upload:hover {
  background: #e0f2fe;
}

.acf-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.acf-checkbox input[type=checkbox] {
  display: none;
}

.acf-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 3px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all .15s;
}

.acf-checkbox input:checked+.acf-checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}

.acf-checkbox input:checked+.acf-checkmark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.acf-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
}

.acf-checkbox-label .acf-checkmark {
  flex-shrink: 0;
}

.acf-phone-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.acf-phone-row .acf-input {
  flex: 1;
}

.acf-icon-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: background .15s;
}
.acf-icon-btn svg{
  height: 14px;
  width: 14px;
}
.acf-icon-btn:hover {
  background: #f1f5f9;
}

.acf-yesno {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  overflow: hidden;
}

.acf-yn-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #374151;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.acf-yn-btn+.acf-yn-btn {
  border-left: 1px solid #cbd5e1;
}

.acf-yn-btn.active {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}

.acf-collaborator-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 6px 10px;
  margin-bottom: 4px;
  font-size: 13px;
}

.acf-collab-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acf-collab-remove {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
  padding: 0 2px;
  line-height: 1;
}

.acf-collab-remove:hover {
  color: #ef4444;
}

.acf-select-multi {
  position: relative;
}

.acf-select-multi .acf-select {
  padding-right: 28px;
}

.acf-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: #64748b;
  pointer-events: none;
}

.acf-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 50px;
}

.acf-sb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acf-doc-checklist {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acf-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.acf-doc-row:last-child {
  border-bottom: none;
}

.acf-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.acf-upload-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}

.acf-upload-btn:hover {
  background: #e0f2fe;
}

.acf-dropzone {
  margin: 14px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: #94a3b8;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.acf-dropzone:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.acf-checklist {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acf-check-row {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.acf-check-row:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .acf-body {
    grid-template-columns: 1fr;
  }
  .acf-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .acf-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {

  .acf-grid-2,
  .acf-grid-3 {
    grid-template-columns: 1fr;
  }
}

.dv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  overflow-y: auto;
  animation: dvSlideIn .22s cubic-bezier(.4, 0, .2, 1);
  top: 0;
}

.dv-overlay.open {
  display: block;
}

@keyframes dvSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dv-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.dv-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal2);
  font-family: inherit;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .13s;
}

.dv-back-btn:hover {
  background: var(--teal-l);
}

.dv-topbar-mid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.dv-breadcrumb {
  font-size: 14px;
  color: var(--txt1);
  white-space: nowrap;
}

.dv-breadcrumb-sep svg {
  color:var(--txt1);
height: 16px;
width: 16px;
}

.dv-breadcrumb-cur {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dv-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt2);
}

.dv-close-btn:hover {
  background: var(--bg2);
}

.dv-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  min-height: calc(100vh - 48px);
  align-items: start;
}

.dv-main {
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--border);
}

.dv-sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafbfc;
}

.dv-hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.dv-hero-av {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.dv-hero-info {
  flex: 1;
  min-width: 0;
}

.dv-hero-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--txt1);
}

.dv-hero-sub {
  font-size: 13px;
  color: var(--txt2);
  margin-top: 2px;
}

.dv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dv-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--txt2);
  text-decoration: none;
}
a{
  color: unset;
}
.dv-meta-chip svg{
  height: 14px;
  width: 14px;
}
.dv-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.dv-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.dv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.dv-panel-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--txt2);
}

.dv-panel-edit-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--txt2);
  cursor: pointer;
  font-family: inherit;
  transition: all .12s;
}

.dv-panel-edit-btn:hover {
  background: var(--teal-l);
  color: var(--teal2);
  border-color: var(--teal);
}

.dv-panel-body {
  padding: 16px;
}

.dv-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dv-field {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dv-field:nth-child(2n) {
  border-right: none;
}

.dv-field-wide {
  grid-column: 1/-1;
  border-right: none;
}

.dv-field-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 5px;
}

.dv-field-val {
  font-size: 13.5px;
  color: var(--txt1);
  font-weight: 500;
  line-height: 1.4;
}

.dv-empty {
  color: var(--txt3);
  font-weight: 400;
}

.dv-subpanel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.dv-subpanel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f1f5f9, #f8fafc);
}

.dv-subpanel-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dv-subpanel-icon {
  font-size: 14px;
  filter: grayscale(1);
  opacity: .45;
}

.dv-subpanel-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--txt1);
}

.dv-subpanel-count {
  background: var(--border2);
  color: var(--txt2);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.dv-subpanel-actions {
  display: flex;
  gap: 5px;
}

.dv-subpanel-body {
  overflow-x: auto;
}

.dv-subpanel-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--txt3);
}

.dv-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.dv-sidebar-card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--txt3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.dv-sidebar-fields {
  padding: 6px 0;
}

.dv-sf-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.dv-sf-row:last-child {
  border-bottom: none;
}

.dv-sf-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt3);
  flex-shrink: 0;
  padding-top: 1px;
}

.dv-sf-val {
  font-size: 12.5px;
  color: var(--txt1);
  font-weight: 500;
  text-align: right;
}

.dv-activity-compose {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.dv-activity-list {
  padding: 6px 0;
}

.dv-activity-item {
  display: flex;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.dv-activity-item:last-child {
  border-bottom: none;
}

.dv-activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  filter: grayscale(1);
  opacity: .45;
  background: #f1f5f9 !important;
}

.dv-activity-body {
  flex: 1;
  min-width: 0;
}

.dv-activity-text {
  font-size: 12.5px;
  color: var(--txt1);
  line-height: 1.4;
}

.dv-activity-time {
  font-size: 11px;
  color: var(--txt3);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .dv-body {
    grid-template-columns: 1fr;
  }
  .dv-main {
    border-right: none;
  }
  .dv-sidebar {
    border-top: 1px solid var(--border);
  }
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt2);
  transition: 0.2s;
}

.settings-item svg {
  width: 16px;
  height: 16px;
}

.settings-item.active {
  color: var(--accent);
  background: var(--accent-l);
}

.nav-icon-btn svg {
  height: 16px;
  width: 16px;
}








.view_details_offcanvas{
  width: 95% !important;
}
@media only screen and (min-width:1600px){
.view_details_offcanvas{
    width: 75% !important;
  }
}
.icon_box_glob svg{
  height: 15px;
  width: 15px;cursor: pointer;
}
.list-group-item svg{
  height: 16px;
  width: 16px;cursor: pointer;
}

.status_badge_custom{
  color: #ff4aa8;
  background-color: #f8c5dd;
  max-width: calc(100%);
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align: top;
    margin-top: calc(1px * -1);
    margin-bottom: calc(1px * -1);
    font-size: 12px;
    padding: 1px 7px 2px;
    border-radius: 4px;
    top: 0;
}
