@charset "UTF-8";
/* ── TOKENS ─────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap");
:root {
  --teal: #6cca98;
  --teal-dark: #4fa37b;
  --teal-darker: #346b51;
  --teal-light: #eaf8f5;
  --teal-mid: rgba(41, 186, 155, 0.15);
  --teal-glow: rgba(41, 186, 155, 0.2);
  /* Accents */
  --orange: #f97316;
  --orange-light: #fff4ed;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --green: #22c55e;
  --green-light: #f0fdf4;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --red: #ef4444;
  --red-light: #fef2f2;
  --purple: #a855f7;
  --purple-light: rgba(139, 92, 246, 0.12);
  --indigo: #6366f1;
  --indigo-light: rgba(99, 102, 241, 0.12);
  /* Neutrals */
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #6cca98;
  --text-primary: #385cad;
  --text-main: #385cad;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  /* Layout */
  --sidebar-w: 240px;
  --sidebar-w-col: 72px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 32px rgba(41, 186, 155, 0.12);
  /* Transitions */
  --dur: 0.22s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  font-family: "Sora", sans-serif;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── TYPOGRAPHY & LAYOUT HIGHLIGHTS (Sora) ──────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", sans-serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.tox:not(.tox-tinymce-inline) .tox-editor-header {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f8fffe));
  background: linear-gradient(180deg, #ffffff 0%, #f8fffe 100%);
  border-right: 1px solid #e8f5f2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  z-index: 200;
  -webkit-transition: width var(--dur) var(--ease), -webkit-transform var(--dur) var(--ease);
  transition: width var(--dur) var(--ease), -webkit-transform var(--dur) var(--ease);
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease);
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease), -webkit-transform var(--dur) var(--ease);
  overflow: hidden;
}

.sidebar__logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 8px 0;
}

.sidebar__logo img {
  width: 60px;
  height: auto;
  display: block;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
}

.sidebar__brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  gap: 10px;
  padding: 0 16px;
  height: var(--topbar-h);
  border-bottom: 1px solid #e8f5f2;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.sidebar__brand-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  line-height: 1;
}

.sidebar__brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.sidebar__brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sidebar__close {
  position: absolute;
  right: 15px;
  color: var(--text-muted);
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: background var(--dur);
  transition: background var(--dur);
}

.sidebar__close:hover {
  background: var(--bg);
}

.sidebar__nav {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar__nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.sidebar__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  position: relative;
  margin-bottom: 2px;
  white-space: nowrap;
}

.sidebar__item:hover {
  background: rgba(41, 186, 155, 0.07);
  color: var(--teal);
}

.sidebar__item:hover .sidebar__icon {
  background: rgba(41, 186, 155, 0.1);
  color: var(--teal);
}

.sidebar__item.active {
  background: linear-gradient(135deg, rgba(41, 186, 155, 0.12), rgba(41, 186, 155, 0.05));
  color: var(--teal);
  font-weight: 600;
  -webkit-box-shadow: 0 1px 4px rgba(41, 186, 155, 0.08);
          box-shadow: 0 1px 4px rgba(41, 186, 155, 0.08);
}

.sidebar__item.active .sidebar__icon {
  background: rgba(41, 186, 155, 0.15);
  color: var(--teal);
}

.sidebar__item.active .sidebar__indicator {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--teal);
  border-radius: 99px 0 0 99px;
}

.sidebar__icon {
  width: 32px;
  height: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  background: transparent;
}

.sidebar__label {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.sidebar__toggle {
  margin-left: auto;
  font-size: 11px;
  -webkit-transition: -webkit-transform var(--dur) var(--ease);
  transition: -webkit-transform var(--dur) var(--ease);
  transition: transform var(--dur) var(--ease);
  transition: transform var(--dur) var(--ease), -webkit-transform var(--dur) var(--ease);
  opacity: 0.6;
}

.sidebar__item-has-children {
  margin-bottom: 2px;
}

.sidebar__item-has-children > .sidebar__item {
  margin-bottom: 0;
}

.sidebar__item-has-children.expanded > .sidebar__item {
  color: var(--teal);
  background: rgba(41, 186, 155, 0.05);
  font-weight: 600;
}

.sidebar__item-has-children.expanded > .sidebar__item .sidebar__icon {
  background: rgba(41, 186, 155, 0.1);
  color: var(--teal);
}

.sidebar__item-has-children.expanded .sidebar__toggle {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  opacity: 1;
}

.sidebar__submenu {
  display: none;
  padding: 4px 0 4px 16px;
  margin-left: 16px;
  border-left: 1.5px solid #e2f5f0;
}

.sidebar__submenu.open {
  display: block;
  -webkit-animation: submenuFade var(--dur) var(--ease);
          animation: submenuFade var(--dur) var(--ease);
}

.sidebar__subitem {
  display: block;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 8px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  margin-bottom: 2px;
  text-decoration: none;
}

.sidebar__subitem:hover {
  background: rgba(41, 186, 155, 0.07);
  color: var(--teal);
}

.sidebar__subitem.active {
  color: var(--teal);
  font-weight: 600;
  background: rgba(41, 186, 155, 0.07);
}

.sidebar__divider {
  height: 1px;
  background: #e8f5f2;
  margin: 8px 12px;
}

.sidebar__footer {
  padding: 12px;
  border-top: 1px solid #e8f5f2;
  background: #f8fffe;
}

.sidebar__user {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  -webkit-transition: background var(--dur);
  transition: background var(--dur);
}

.sidebar__user:hover {
  background: rgba(41, 186, 155, 0.07);
}

.sidebar__avatar, .topbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-shadow: 0 2px 8px rgba(41, 186, 155, 0.3);
          box-shadow: 0 2px 8px rgba(41, 186, 155, 0.3);
}

.sidebar__user-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.sidebar__user-name {
  display: block;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar__logout {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.sidebar__logout:hover {
  color: #dc2626;
  background: #fef2f2;
}

.sidebar__cache-wrap {
  padding: 8px 8px 4px;
  border-top: 1px solid #e8f5f2;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.sidebar__cache-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13.5px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
}

.sidebar__cache-btn .sidebar__label {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  /* bu satırı ekle */
}

.sidebar__cache-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.sidebar__cache-btn:hover .sidebar__icon {
  background: #fee2e2;
  color: #dc2626;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.overlay.active {
  display: block;
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 100;
  -webkit-transition: left var(--dur) var(--ease);
  transition: left var(--dur) var(--ease);
}

.topbar__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.topbar__menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: var(--radius-sm);
  -webkit-transition: background var(--dur);
  transition: background var(--dur);
}

.topbar__menu:hover {
  background: var(--bg);
}

.topbar__menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 99px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.topbar__title {
  display: none;
  width: 250px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar__center {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.topbar__currency {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  font-family: "Sora", sans-serif;
}

.topbar__currency .currency-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.topbar__currency .currency-item i {
  color: var(--teal);
  font-size: 11px;
}

.topbar__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.topbar__search {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 35px 8px 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  font-size: 13px;
}

.topbar__search:focus-within {
  border-color: var(--teal);
  background: #fff;
  -webkit-box-shadow: 0 0 0 3px var(--teal-glow);
          box-shadow: 0 0 0 3px var(--teal-glow);
}

.topbar__search i {
  color: var(--text-muted);
  font-size: 13px;
}

.topbar__search input {
  background: none;
  border: none;
  width: 180px;
  color: var(--text-primary);
}

.topbar__search input::-webkit-input-placeholder {
  color: var(--text-muted);
}

.topbar__search input:-ms-input-placeholder {
  color: var(--text-muted);
}

.topbar__search input::-ms-input-placeholder {
  color: var(--text-muted);
}

.topbar__search input::placeholder {
  color: var(--text-muted);
}

.topbar__search .header-search-loader {
  position: absolute;
  right: 15px;
  color: var(--teal);
}

.topbar__search .header-search-results {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
          box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.topbar__search .header-search-results .search-result-item {
  padding: 10px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  cursor: pointer;
  text-align: left;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}

.topbar__search .header-search-results .search-result-item:last-child {
  border-bottom: none;
}

.topbar__search .header-search-results .search-result-item:hover {
  background: var(--bg-hover, #f8fafc);
}

.topbar__search .header-search-results .search-result-item.selected {
  background: var(--teal-light, rgba(11, 167, 143, 0.08));
}

.topbar__search .header-search-results .search-result-item .result-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.topbar__search .header-search-results .search-result-item .result-detail {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.topbar__search .header-search-results .search-result-item .result-detail .detail-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.topbar__search .header-search-results .search-result-item .result-detail .detail-phone {
  font-weight: 500;
  color: var(--text-secondary);
}

.topbar__search .header-search-results .search-result-item .result-detail .detail-phone i {
  font-size: 10px;
}

.topbar__search .header-search-results .search-result-item .result-detail .detail-meta {
  gap: 12px;
  color: var(--text-muted);
}

.topbar__search .header-search-results .search-result-item .result-detail .detail-meta span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.topbar__search .header-search-results .search-no-results,
.topbar__search .header-search-results .search-error {
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
}

.topbar__icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.topbar__icon-btn:hover {
  background: var(--bg);
  color: var(--teal);
}

.topbar__profile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-transition: background var(--dur);
  transition: background var(--dur);
}

.topbar__profile:hover {
  background: var(--bg);
}

.topbar__name {
  font-weight: 600;
  font-size: 13px;
}

.currency-widget {
  position: relative;
}

.currency-trigger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
}

.currency-trigger:hover {
  background: var(--bg);
  border-color: var(--teal);
}

.currency-trigger .currency-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.currency-trigger .currency-item i {
  color: var(--teal);
  font-size: 10px;
  opacity: 0.9;
}

.currency-trigger .currency-arrow {
  font-size: 9px;
  color: var(--text-muted);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
  margin-left: 4px;
}

.currency-trigger.is-active {
  background: #fff;
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 2px var(--teal-glow);
          box-shadow: 0 0 0 2px var(--teal-glow);
}

.currency-trigger.is-active .currency-arrow {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  color: var(--teal);
}

.currency-dropdown {
  position: absolute;
  top: calc(100% + 25px);
  left: 50%;
  width: 450px;
  -webkit-transform: translateX(-50%) translateY(8px) scale(0.98);
          transform: translateX(-50%) translateY(8px) scale(0.98);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  -webkit-box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
          box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 150;
}

.currency-dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  -webkit-transform: translateX(-50%) rotate(45deg);
          transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.currency-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateX(-50%) translateY(0) scale(1);
          transform: translateX(-50%) translateY(0) scale(1);
}

.currency-dropdown__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 16px;
}

.currency-dropdown__header strong {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.currency-dropdown__header small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.currency-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.currency-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.currency-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}

.currency-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 8px;
}

.currency-row .currency-field {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.currency-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
}

.currency-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.currency-field input.price-format,
.currency-field input,
.currency-field select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 0 16px;
  outline: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  font-family: "Sora", sans-serif;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.currency-field input.price-format:focus,
.currency-field input:focus,
.currency-field select:focus {
  border-color: var(--teal);
  background: #fff;
  -webkit-box-shadow: 0 0 0 3px var(--teal-glow);
          box-shadow: 0 0 0 3px var(--teal-glow);
}

.currency-field .custom-dropdown .custom-dropdown__toggle {
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 16px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.currency-field .custom-dropdown .custom-dropdown__toggle:hover {
  border-color: #cbd5e1;
  color: var(--text-secondary);
}

.currency-field .custom-dropdown.open .custom-dropdown__toggle {
  border-color: var(--teal);
  background: #fff;
  -webkit-box-shadow: 0 0 0 3px var(--teal-glow);
          box-shadow: 0 0 0 3px var(--teal-glow);
}

.currency-swap {
  width: 42px;
  height: 42px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  border: 1px solid transparent;
  color: var(--teal);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  cursor: pointer;
}

.currency-swap:hover {
  background: var(--teal);
  color: #fff;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.currency-swap i {
  font-size: 13px;
}

.currency-result {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(41, 186, 155, 0.08), rgba(41, 186, 155, 0.02));
  color: var(--teal-dark);
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.currency-rates {
  margin-top: 16px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.currency-rate-card {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: default;
}

.currency-rate-card:hover {
  background: #fff;
  border-color: var(--teal);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.currency-rate-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.currency-rate-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  color: var(--text-primary);
}

/* Mobile */
@media (max-width: 768px) {
  .topbar__center {
    display: none;
  }
  .currency-dropdown {
    position: fixed;
    top: calc(var(--topbar-h) + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  .currency-dropdown.is-open {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  .currency-dropdown::before {
    display: none;
  }
}

.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
  -webkit-transition: margin-left var(--dur) var(--ease);
  transition: margin-left var(--dur) var(--ease);
}

.page-wrapper {
  padding: 24px;
}

.page-wrapper .crm-layout {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 220px 1fr;
      grid-template-columns: 220px 1fr;
  gap: 20px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

.page {
  display: none;
  -webkit-animation: fadeSlide 0.3s var(--ease);
          animation: fadeSlide 0.3s var(--ease);
}

.page.active {
  display: block;
}

.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 24px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
}

.page-header__left h2 {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.page-header__left p {
  font-size: 13px;
  color: var(--text-muted);
}

.page-header__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

@-webkit-keyframes fadeSlide {
  from {
    opacity: 0;
    -webkit-transform: translateY(12px);
            transform: translateY(12px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    -webkit-transform: translateY(12px);
            transform: translateY(12px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@-webkit-keyframes submenuFade {
  from {
    opacity: 0;
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes submenuFade {
  from {
    opacity: 0;
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* ── Sidebar Collapsed State (Desktop) ─────────────────────── */
@media (min-width: 1025px) {
  .sidebar__label,
  .sidebar__toggle,
  .sidebar__user-info,
  .sidebar__logout {
    max-width: 200px;
    min-width: 0;
    -webkit-transition: opacity var(--dur) var(--ease), max-width var(--dur) var(--ease), visibility var(--dur) var(--ease);
    transition: opacity var(--dur) var(--ease), max-width var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  body.sidebar-collapsed {
    --sidebar-w: var(--sidebar-w-col);
  }
  body.sidebar-collapsed .sidebar__logo img {
    width: 32px;
  }
  body.sidebar-collapsed .sidebar__label, body.sidebar-collapsed .sidebar__toggle, body.sidebar-collapsed .sidebar__user-info, body.sidebar-collapsed .sidebar__logout,
  body.sidebar-collapsed .sidebar__cache-btn .sidebar__label {
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none;
  }
  body.sidebar-collapsed .sidebar__submenu {
    display: none !important;
  }
  body.sidebar-collapsed .sidebar__item {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 9px 0;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.sidebar-collapsed .sidebar__cache-btn {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 9px 0;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.sidebar-collapsed .sidebar__user {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 8px 0;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.sidebar-collapsed .sidebar__footer {
    padding: 12px 8px;
  }
}

.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.ms-0 {
  margin-left: 0 !important;
}

.me-0 {
  margin-right: 0 !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.ps-0 {
  padding-left: 0 !important;
}

.pe-0 {
  padding-right: 0 !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.m-1 {
  margin: 0.25rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.ms-1 {
  margin-left: 0.25rem !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.mx-1 {
  margin-left: 0.25rem !important;
  margin-right: 0.25rem !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.ps-1 {
  padding-left: 0.25rem !important;
}

.pe-1 {
  padding-right: 0.25rem !important;
}

.px-1 {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.m-2 {
  margin: 0.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.mx-2 {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

.ps-2 {
  padding-left: 0.5rem !important;
}

.pe-2 {
  padding-right: 0.5rem !important;
}

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.m-3 {
  margin: 1rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.mx-3 {
  margin-left: 1rem !important;
  margin-right: 1rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.ps-3 {
  padding-left: 1rem !important;
}

.pe-3 {
  padding-right: 1rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.m-4 {
  margin: 1.5rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.mx-4 {
  margin-left: 1.5rem !important;
  margin-right: 1.5rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.ps-4 {
  padding-left: 1.5rem !important;
}

.pe-4 {
  padding-right: 1.5rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.m-5 {
  margin: 3rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-5 {
  margin-left: 3rem !important;
}

.me-5 {
  margin-right: 3rem !important;
}

.mx-5 {
  margin-left: 3rem !important;
  margin-right: 3rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.ps-5 {
  padding-left: 3rem !important;
}

.pe-5 {
  padding-right: 3rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.text-start, .text-left {
  text-align: left !important;
  -webkit-box-pack: start !important;
      -ms-flex-pack: start !important;
          justify-content: flex-start !important;
}

.text-end, .text-right {
  text-align: right !important;
  -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
          justify-content: flex-end !important;
}

.text-center {
  text-align: center !important;
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
}

.text-justify {
  text-align: justify !important;
}

.text-nowrap {
  white-space: nowrap !important;
}

.text-wrap {
  white-space: normal !important;
}

.text-pre {
  white-space: pre !important;
}

.text-pre-wrap {
  white-space: pre-wrap !important;
}

.text-pre-line {
  white-space: pre-line !important;
}

.text-break-spaces {
  white-space: break-spaces !important;
}

button:focus, button:focus-visible, button:active, button:focus-within,
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn:focus-within,
a:focus,
a:focus-visible,
a:active,
a:focus-within {
  outline: 0 !important;
  outline-offset: 0 !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  /* ── SIZE MODIFIERS ─────────────────────────────────── */
  /* ── STATE MODIFIERS ────────────────────────────────── */
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(41, 186, 155, 0.3);
          box-shadow: 0 2px 8px rgba(41, 186, 155, 0.3);
}

.btn--primary:hover {
  background: var(--teal-dark);
  -webkit-box-shadow: 0 4px 16px rgba(41, 186, 155, 0.4);
          box-shadow: 0 4px 16px rgba(41, 186, 155, 0.4);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-secondary, #f1f5f9);
  color: var(--text-primary, #1e293b);
  border: 1.5px solid transparent;
}

.btn--secondary:hover {
  background: var(--bg-tertiary, #e2e8f0);
  border-color: var(--border);
}

.btn--outline {
  background: #fff;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--outline.btn--danger {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}

.btn--outline.btn--danger:hover {
  background: var(--red);
  color: #fff;
}

.btn--success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
          box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.btn--success:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  -webkit-box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
          box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
          box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn--warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  -webkit-box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
          box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--danger {
  background: var(--red);
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
          box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn--danger:hover {
  background: #dc2626;
  -webkit-box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
          box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--info {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
          box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

.btn--info:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  -webkit-box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
          box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--neutral {
  background: #64748b;
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
          box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.btn--neutral:hover {
  background: #475569;
  -webkit-box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
          box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--hot {
  background: linear-gradient(135deg, #ff6b6b, #ef4444);
  color: #fff;
}

.btn--hot:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--teal);
}

.btn--link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0;
  padding-right: 0;
}

.btn--link:hover {
  color: var(--teal-dark);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #fff;
  -webkit-box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
          box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn--whatsapp:hover {
  background: linear-gradient(135deg, #1cb255, #15803d);
  -webkit-box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
          box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.btn--pink {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  -webkit-box-shadow: 0 6px 16px rgba(244, 63, 94, 0.25);
          box-shadow: 0 6px 16px rgba(244, 63, 94, 0.25);
  border: none;
}

.btn--pink:hover {
  background: linear-gradient(135deg, #e11d48, #9f1239);
  -webkit-box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
          box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn--lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.btn:disabled, .btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  -webkit-transform: none !important;
          transform: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.btn--loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn--loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: btn-spin 0.6s linear infinite;
          animation: btn-spin 0.6s linear infinite;
}

.relative {
  position: relative;
}

.sub-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.sub-tabs::-webkit-scrollbar {
  display: none;
}

.sub-tabs .counter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 15px;
  height: 15px;
  background: #ef4444;
  color: #fff;
  border-radius: 50px;
  font-size: 9px;
  padding: 2px 6px;
  margin-left: 5px;
}

.sub-tabs .sub-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  cursor: pointer;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.sub-tabs .sub-tab.active {
  background: var(--teal);
  color: #fff;
  -webkit-box-shadow: 0 2px 8px rgba(41, 186, 155, 0.3);
          box-shadow: 0 2px 8px rgba(41, 186, 155, 0.3);
}

.sub-tabs .sub-tab:hover:not(.active) {
  color: var(--teal);
  background: var(--teal-light);
}

.sub-tabs .sub-tab.has-dropdown {
  padding-right: 10px;
}

.sub-tabs .sub-tab .arrow-icon {
  font-size: 10px;
  -webkit-transition: -webkit-transform var(--dur);
  transition: -webkit-transform var(--dur);
  transition: transform var(--dur);
  transition: transform var(--dur), -webkit-transform var(--dur);
}

.sub-tabs .sub-tab:last-child {
  border-left: none !important;
  margin-left: 0 !important;
}

.sub-tabs .dropdown-wrapper {
  position: relative;
}

.sub-tabs .dropdown-wrapper.open .arrow-icon {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.sub-tabs .dropdown-wrapper.open .dropdown-menu {
  display: block;
}

.sub-tabs .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 160px;
  z-index: 1005;
  overflow: hidden;
}

.sub-tabs .dropdown-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  white-space: nowrap;
}

.sub-tabs .dropdown-item:hover {
  background: var(--teal-light);
  color: var(--teal);
}

.sub-tabs .dropdown-item.active {
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 480px) {
  .sub-tabs .tab-label {
    display: none;
  }
  .sub-tabs .sub-tab {
    padding: 8px 10px;
  }
}

.filter-panel {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.filter-panel .filter-panel__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
}

.filter-panel .filter-panel__header .filter-panel__close {
  color: #94a3b8;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.filter-panel .filter-panel__header .filter-panel__close:hover {
  color: var(--text-main);
}

.filter-panel .filter-group {
  border-bottom: 1px solid #f1f5f9;
}

.filter-panel .filter-group:last-of-type {
  border-bottom: none;
}

.filter-panel .filter-group .filter-group__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-transition: color var(--dur), background 0.2s;
  transition: color var(--dur), background 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.filter-panel .filter-group .filter-group__title:hover {
  color: var(--teal);
  background: #f8fafc;
}

.filter-panel .filter-group .filter-group__title i {
  font-size: 11px;
  color: #94a3b8;
  -webkit-transition: -webkit-transform var(--dur);
  transition: -webkit-transform var(--dur);
  transition: transform var(--dur);
  transition: transform var(--dur), -webkit-transform var(--dur);
}

.filter-panel .filter-group .filter-group__title.collapsed i {
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.filter-panel .filter-group .filter-group__body {
  padding: 4px 20px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.filter-list-scrollable {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.filter-list-scrollable::-webkit-scrollbar {
  width: 4px;
}

.filter-list-scrollable::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.filter-list-scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.filter-conditional-select {
  height: 35px !important;
  font-size: 11px !important;
}

.filter-nr-wrapper {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.filter-nr-wrapper label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}

.filter-search-x {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  width: 100%;
  background: var(--bg);
  margin-bottom: 4px;
  -webkit-transition: border-color var(--dur);
  transition: border-color var(--dur);
}

.filter-search-x:focus {
  border-color: var(--teal);
}

.filter-checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  margin: 0;
}

.filter-checkbox input[type="checkbox"]:hover {
  border-color: var(--teal);
}

.filter-checkbox input[type="checkbox"]:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.filter-apply {
  margin: 12px;
  width: calc(100% - 24px);
}

.filter-toggle-mobile {
  display: none;
}

.select-sm {
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.select-sm:focus {
  border-color: var(--teal);
}

.date-range-picker {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.date-range-picker i {
  color: var(--teal);
}

.date-range-picker:hover {
  border-color: var(--teal);
}

.fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 20px;
  -webkit-box-shadow: 0 4px 20px rgba(41, 186, 155, 0.4);
          box-shadow: 0 4px 20px rgba(41, 186, 155, 0.4);
  z-index: 90;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.fab:hover {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
  background: var(--teal-dark);
}

.skeleton {
  background: -webkit-gradient(linear, left top, right top, color-stop(25%, var(--bg)), color-stop(50%, var(--border)), color-stop(75%, var(--bg)));
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  -webkit-animation: shimmer 1.5s infinite;
          animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 400;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  -webkit-animation: fadeSlide 0.2s var(--ease);
          animation: fadeSlide 0.2s var(--ease);
  z-index: 1005;
}

.modal-backdrop .tp-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  z-index: 100;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 16px;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.modal-backdrop .tp-loader-overlay .tp-loader-content {
  text-align: center;
  max-width: 300px;
}

.modal-backdrop .tp-loader-overlay .tp-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(13, 79, 60, 0.1);
  border-left-color: #0d4f3c;
  /* var(--teal-dark) equivalent */
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.modal-backdrop .tp-loader-overlay .tp-loader-text {
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0d4f3c;
  margin-bottom: 8px;
}

.modal-backdrop .tp-loader-overlay .tp-loader-subtext {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal-backdrop .tp-loader-overlay .tp-progress-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.modal-backdrop .tp-loader-overlay .tp-progress-fill {
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(#10b981), to(#059669));
  background: linear-gradient(90deg, #10b981, #059669);
  width: 0%;
  -webkit-transition: width 0.4s ease;
  transition: width 0.4s ease;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 560px;
  max-width: calc(100vw - 32px);
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
          box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  -webkit-animation: fadeSlide 0.25s var(--ease);
          animation: fadeSlide 0.25s var(--ease);
}

.modal--sm {
  width: 440px;
}

.modal .modal__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 16px;
}

.modal .modal__header h3 {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.modal .modal__close {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.modal .modal__close:hover {
  background: var(--red-light);
  color: var(--red);
}

.modal .modal__body {
  margin-bottom: 16px;
}

.modal .modal__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 10px;
}

.modal .modal__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 22px;
  margin: 0 auto 20px;
}

.modal .modal-form-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pm-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.pm-modal-pro {
  background: #fff;
  border-radius: var(--radius-sm);
  width: 800px;
  max-width: calc(100vw - 32px);
  -webkit-box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
          box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: visible;
  -webkit-animation: fadeSlide 0.25s var(--ease);
          animation: fadeSlide 0.25s var(--ease);
}

.pm-modal-pro--sm {
  width: 450px;
}

.pm-modal-pro--md {
  width: 600px;
}

.pm-modal-pro--lg {
  width: 1000px;
}

.pm-modal-pro .pm-modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

.pm-modal-pro .pm-modal-header .title,
.pm-modal-pro .pm-modal-header h3 {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #01385e;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.pm-modal-pro .pm-modal-header .title i,
.pm-modal-pro .pm-modal-header h3 i {
  color: var(--teal);
  font-size: 15px;
}

.pm-modal-pro .pm-modal-header .pm-close-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  color: #64748b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 15px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.pm-modal-pro .pm-modal-header .pm-close-btn:hover {
  background: #fff1f2;
  color: #ef4444;
  border-color: #fecdd3;
}

.pm-modal-pro .pm-modal-body {
  padding: 15px 20px;
  background: #fff;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.pm-modal-pro .pm-modal-body.full-height {
  max-height: 100%;
}

.pm-modal-pro .pm-modal-body::-webkit-scrollbar {
  width: 6px;
}

.pm-modal-pro .pm-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.pm-modal-pro .pm-modal-body .inbox-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pm-modal-pro .pm-modal-body .inbox-meta-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.pm-modal-pro .pm-modal-body .inbox-meta-row--last {
  border-bottom: none;
}

.pm-modal-pro .pm-modal-body .inbox-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  min-width: 70px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pm-modal-pro .pm-modal-body .inbox-value {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.5;
}

.pm-modal-pro .pm-modal-body .inbox-value--bold {
  font-weight: 500;
}

.pm-modal-pro .pm-modal-body .inbox-value--subject {
  font-weight: 600;
}

.pm-modal-pro .pm-modal-body .inbox-section-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pm-modal-pro .pm-modal-body .inbox-attachments-wrapper {
  display: none;
  /* JS ile görünür yapılacak */
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 16px;
}

.pm-modal-pro .pm-modal-body .inbox-attachments {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.pm-modal-pro .pm-modal-body .inbox-attachment-chip {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid #cbd5e1;
  -webkit-transition: background 0.15s, border-color 0.15s;
  transition: background 0.15s, border-color 0.15s;
}

.pm-modal-pro .pm-modal-body .inbox-attachment-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.pm-modal-pro .pm-modal-body .inbox-attachment-chip__size {
  color: var(--teal);
  font-size: 11px;
}

.pm-modal-pro .pm-modal-body .inbox-body {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px 20px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.pm-modal-pro .pm-modal-body .inbox-body::-webkit-scrollbar {
  width: 4px;
}

.pm-modal-pro .pm-modal-body .inbox-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.pm-modal-pro .pm-modal-body .inbox-body__loading {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

.pm-modal-pro .pm-modal-footer {
  padding: 20px 32px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  border-radius: 0 0 16px 16px;
}

.pm-modal-pro .pm-modal-footer--between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.pm-modal-pro .pm-modal-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  display: block;
}

.pm-modal-pro .pm-modal-select {
  padding: 12px;
}

.pm-modal-pro--delete .pm-modal-header--danger {
  border-bottom-color: #fecaca;
}

.pm-modal-pro--delete .pm-modal-header--danger .title {
  color: #ef4444;
}

.pm-modal-pro--delete .pm-modal-header--danger .title i {
  color: #ef4444;
}

.pm-modal-pro--delete .pm-modal-header--success {
  border-bottom-color: #bbf7d0;
}

.pm-modal-pro--delete .pm-modal-header--success h3 {
  color: #22c55e;
}

.pm-modal-pro--delete .pm-modal-header--success h3 i {
  color: #22c55e;
}

.pm-modal-pro--delete .pm-modal-header--warning {
  border-bottom-color: #fde68a;
}

.pm-modal-pro--delete .pm-modal-header--warning h3 {
  color: #f59e0b;
}

.pm-modal-pro--delete .pm-modal-header--warning h3 i {
  color: #f59e0b;
}

.pm-modal-pro--delete .pm-modal-header--info {
  border-bottom-color: #bae6fd;
}

.pm-modal-pro--delete .pm-modal-header--info h3 {
  color: #0284c7;
}

.pm-modal-pro--delete .pm-modal-header--info h3 i {
  color: #0284c7;
}

.pm-modal-pro--delete .pm-modal-header--neutral {
  border-bottom-color: #e2e8f0;
}

.pm-modal-pro--delete .pm-modal-header--neutral h3 {
  color: #475569;
}

.pm-modal-pro--delete .pm-modal-header--neutral h3 i {
  color: #475569;
}

.pm-modal-pro--delete .pm-modal-huge-icon {
  font-size: 48px;
  color: #fecdd3;
  margin-bottom: 20px;
}

.pm-modal-pro--delete .pm-modal-title {
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 10px;
}

.pm-modal-pro--delete .pm-modal-text {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

#backdropEditLead,
#backdropEditOperation,
#backdropEditHotel,
#backdropEditPersonal {
  padding: 0;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

#modalEditLead,
#modalEditOperation,
#modalEditHotel,
#modalEditPersonal {
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  max-width: calc(100vw - var(--sidebar-w, 240px));
  margin: 0;
  border-radius: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-animation: slideInRight 0.3s ease-out forwards;
          animation: slideInRight 0.3s ease-out forwards;
}

#modalEditLead .pm-modal-body,
#modalEditOperation .pm-modal-body,
#modalEditHotel .pm-modal-body,
#modalEditPersonal .pm-modal-body {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

#modalEditLead .pm-modal-footer,
#modalEditOperation .pm-modal-footer,
#modalEditHotel .pm-modal-footer,
#modalEditPersonal .pm-modal-footer {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

#modalEditLead.slide-out,
#modalEditOperation.slide-out,
#modalEditHotel.slide-out,
#modalEditPersonal.slide-out {
  -webkit-animation: slideOutRight 0.3s ease-in forwards;
          animation: slideOutRight 0.3s ease-in forwards;
}

@media (max-width: 991px) {
  #modalEditLead,
  #modalEditOperation {
    max-width: 100vw;
  }
}

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 12px;
}

.alert i {
  margin-top: 2px;
  font-size: 16px;
}

.alert.alert-info {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.alert.alert-info i {
  color: #3b82f6;
}

.alert.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert.alert-danger i {
  color: #ef4444;
}

.alert.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.alert.alert-success i {
  color: #22c55e;
}

.alert.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.alert.alert-warning i {
  color: #d97706;
}

.alert.mb-0 {
  margin-bottom: 0px;
}

.alert2 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* 🔴 DANGER - Hata Durumu */
  /* 🔵 INFO - Bilgi Durumu */
  /* 🟢 SUCCESS - Başarı Durumu */
  /* 🟠 WARNING - Uyarı Durumu */
}

.alert2 > i {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 28px;
  border-radius: 50%;
  margin-bottom: 20px;
  background: #fff;
  -webkit-box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.alert2 span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  width: 100%;
}

.alert2 span ul {
  margin: 24px 0 0 0;
  padding: 0;
  list-style: none;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
      grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
}

@media (min-width: 440px) {
  .alert2 span ul {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
}

.alert2 span ul li {
  background: rgba(255, 255, 255, 0.6);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.alert2 span ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  margin-right: 12px;
  font-weight: 700;
  font-size: 16px;
}

.alert2 span ul li:last-child:nth-child(odd) {
  grid-column: span 2;
}

.alert2.alert-danger {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #9f1239;
  border-color: #fecdd3;
}

.alert2.alert-danger i {
  color: #e11d48;
  border: 2px solid #fecdd3;
}

.alert2.alert-danger li {
  color: #9f1239;
}

.alert2.alert-danger li::before {
  content: "\f06a";
  color: #e11d48;
}

.alert2.alert-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #075985;
  border-color: #bae6fd;
}

.alert2.alert-info i {
  color: #0284c7;
  border: 2px solid #bae6fd;
}

.alert2.alert-info li {
  color: #075985;
}

.alert2.alert-info li::before {
  content: "\f05a";
  color: #0284c7;
}

.alert2.alert-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border-color: #bbf7d0;
}

.alert2.alert-success i {
  color: #16a34a;
  border: 2px solid #bbf7d0;
}

.alert2.alert-success li {
  color: #166534;
}

.alert2.alert-success li::before {
  content: "\f058";
  color: #16a34a;
}

.alert2.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-color: #fde68a;
}

.alert2.alert-warning i {
  color: #d97706;
  border: 2px solid #fde68a;
}

.alert2.alert-warning li {
  color: #92400e;
}

.alert2.alert-warning li::before {
  content: "\f06a";
  color: #d97706;
}

.alert2.mb-0 {
  margin-bottom: 0;
}

.p-text-center {
  text-align: center !important;
}

.p-text-danger {
  color: #ef4444 !important;
}

.pm-form-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[12];
      grid-template-columns: repeat(12, 1fr);
  gap: 20px 16px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  /* Standard 12-col spans */
  /* Responsive adjustments */
}

.pm-form-row > .pm-col-12 {
  grid-column: span 12;
}

.pm-form-row > .pm-col-11 {
  grid-column: span 11;
}

.pm-form-row > .pm-col-10 {
  grid-column: span 10;
}

.pm-form-row > .pm-col-9 {
  grid-column: span 9;
}

.pm-form-row > .pm-col-8 {
  grid-column: span 8;
}

.pm-form-row > .pm-col-7 {
  grid-column: span 7;
}

.pm-form-row > .pm-col-6 {
  grid-column: span 6;
}

.pm-form-row > .pm-col-5 {
  grid-column: span 5;
}

.pm-form-row > .pm-col-4 {
  grid-column: span 4;
}

.pm-form-row > .pm-col-3 {
  grid-column: span 3;
}

.pm-form-row > .pm-col-2 {
  grid-column: span 2;
}

.pm-form-row > .pm-col-1 {
  grid-column: span 1;
}

@media (max-width: 992px) {
  .pm-form-row > .pm-col-4,
  .pm-form-row > .pm-col-3 {
    grid-column: span 6;
  }
  .pm-form-row > .pm-col-8,
  .pm-form-row > .pm-col-9 {
    grid-column: span 12;
  }
}

@media (max-width: 576px) {
  .pm-form-row > [class^="pm-col-"] {
    grid-column: span 12 !important;
  }
}

.pm-form-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
}

.pm-form-group .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
}

.cc-add-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cc-add-row__input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.cc-add-row__btn {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.cc-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}

.cc-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
  border: 1px solid #e2e8f0;
}

.cc-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.cc-item__name {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-darker);
}

.cc-item__input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-size: 14px;
}

.cc-item__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.cc-empty {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: #94a3b8;
}

/* ── Toast animation ────────────────────────────────────── */
@-webkit-keyframes toastIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(16px);
            transform: translateY(16px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* NOTIFICATIONS DROPDOWN UI */
.notif-wrapper {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.notif-wrapper .notif-btn {
  position: relative;
  background: #f1f5f9;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.notif-wrapper .notif-btn:hover {
  background: #e2e8f0;
  color: var(--teal);
}

.notif-wrapper .notif-btn .badge {
  width: 25px;
  height: 25px;
  position: absolute;
  top: -7px;
  right: -15px;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 50px;
  border: 2px solid #fff;
}

.notif-wrapper .notif-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(10px);
          transform: translateY(10px);
  -webkit-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-wrapper .notif-dropdown.show {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.notif-wrapper .notif-dropdown .notif-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  color: #01385e;
  font-size: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.notif-wrapper .notif-dropdown .notif-header .notif-mark-read {
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.notif-wrapper .notif-dropdown .notif-header .notif-mark-read:hover {
  color: var(--teal-dark);
}

.notif-wrapper .notif-dropdown .notif-list {
  max-height: 400px;
  overflow-y: auto;
  background: #f4fcfb;
}

.notif-wrapper .notif-dropdown .notif-list::-webkit-scrollbar {
  width: 4px;
}

.notif-wrapper .notif-dropdown .notif-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.notif-wrapper .notif-dropdown .notif-list .notif-empty {
  padding: 15px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(41, 186, 155, 0.1);
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
  cursor: pointer;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item:hover {
  background: #e6f7f4;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item .notif-icon {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.notif-wrapper .notif-dropdown .notif-list .notif-item .notif-icon i {
  color: #0ea5e9;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item .notif-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item .notif-text strong {
  color: #01385e;
  font-size: 14px;
  font-weight: 600;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item .notif-text span {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.notif-wrapper .notif-dropdown .notif-list .notif-item .notif-text small {
  color: #94a3b8;
  font-size: 12px;
}

.notif-wrapper .notif-dropdown .notif-footer {
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
}

.notif-wrapper .notif-dropdown .notif-footer a {
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.notif-wrapper .notif-dropdown .notif-footer a:hover {
  color: #1e997f;
}

.badge--pulse {
  -webkit-animation: pulseBadge 2s infinite;
          animation: pulseBadge 2s infinite;
}

.fake-swoosh {
  width: 24px;
  height: 24px;
  border: 3px solid #01385e;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.fake-swoosh::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  bottom: -1px;
  right: 1px;
}

.litepicker {
  font-family: "Poppins", sans-serif !important;
  -webkit-box-shadow: var(--shadow-lg) !important;
          box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  -webkit-animation: fadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
          animation: fadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 999999 !important;
}

.litepicker .container__days .day-item {
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.litepicker .container__days .day-item:hover:not(.is-start-date):not(.is-end-date) {
  background-color: #f8fafc !important;
  color: var(--teal-dark) !important;
  -webkit-box-shadow: inset 0 0 0 1px var(--teal) !important;
          box-shadow: inset 0 0 0 1px var(--teal) !important;
}

.litepicker .container__days .day-item.is-start-date, .litepicker .container__days .day-item.is-end-date {
  background-color: var(--teal) !important;
  color: white !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.litepicker .container__days .day-item.is-start-date:hover, .litepicker .container__days .day-item.is-end-date:hover {
  background-color: var(--teal-dark) !important;
  color: white !important;
}

.litepicker .container__days .day-item.is-in-range {
  background-color: var(--teal-light) !important;
  color: var(--teal-dark) !important;
}

.litepicker .container__days .day-item.is-in-range:hover {
  background-color: #e0f2fe !important;
}

.litepicker .container__tooltip {
  background-color: var(--teal-dark) !important;
  color: #fff !important;
}

.litepicker select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px !important;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: var(--shadow-sm);
          box-shadow: var(--shadow-sm);
}

.custom-filters-area {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 5px;
  margin-bottom: 20px;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Sora", sans-serif;
  width: 100%;
}

.custom-dropdown.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.custom-dropdown.disabled .custom-dropdown__toggle {
  background: #f8fafc;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.custom-dropdown__selected {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-dropdown__toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 30px;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  width: 100%;
}

.custom-dropdown__toggle:hover {
  border-color: #cbd5e1;
  color: var(--text-secondary);
}

.custom-dropdown__toggle::after {
  content: "\f078";
  /* fa-chevron-down */
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", sans-serif;
  font-weight: 900;
  font-size: 11px;
  color: #94a3b8;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown__toggle {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
  color: var(--teal);
}

.custom-dropdown.open .custom-dropdown__toggle::after {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  color: var(--teal);
}

.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
  -webkit-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  padding: 6px 0;
  white-space: nowrap;
  max-height: 280px;
  overflow-y: auto;
}

.custom-dropdown__menu::-webkit-scrollbar {
  width: 4px;
}

.custom-dropdown__menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-dropdown.open .custom-dropdown__menu {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.custom-dropdown__item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.custom-dropdown__item:hover:not(.active) {
  background: #f8fafc;
  color: var(--text-main);
  padding-left: 20px;
}

.custom-dropdown__item.active {
  background: rgba(20, 184, 166, 0.06);
  color: var(--teal);
  font-weight: 500;
}

.custom-dropdown__item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.custom-dropdown__item.active::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--teal);
}

.ui-widget {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.ui-tab-content {
  position: relative;
  max-height: 315px;
  overflow: auto;
}

.ui-tab-content .ui-tab-pane {
  display: none;
  -webkit-animation: fadeSlide 0.3s var(--ease);
          animation: fadeSlide 0.3s var(--ease);
}

.ui-tab-content .ui-tab-pane.active {
  display: block;
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.empty-state i {
  font-size: 24px;
  color: #cbd5e1;
}

.hot-badge {
  font-size: 11px;
}

.hot-badge-lg {
  font-size: 14px;
}

.badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.switch {
  font-family: "Sora", sans-serif;
}

.badge--green {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge--purple {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
  border: 1px solid #d8b4fe;
}

.badge--orange {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
  border: 1px solid #fdba74;
}

.badge--teal {
  background: rgba(20, 184, 166, 0.15);
  color: #0d9488;
  border: 1px solid #5eead4;
}

.badge--success-lite {
  background: #d1fae5;
  color: #10b981;
}

.badge--danger-lite {
  background: #fee2e2;
  color: #ef4444;
}

.badge--warning-lite {
  background: #fef3c7;
  color: #f59e0b;
}

.badge--info-lite {
  background: #dbeafe;
  color: #3b82f6;
}

.badge--secondary-lite {
  background: #f1f5f9;
  color: #64748b;
}

.badge--primary {
  background: var(--teal);
  color: #fff;
}

.badge--success {
  background: #10b981;
  color: #fff;
}

.badge--warning {
  background: #f59e0b;
  color: #fff;
}

.badge--danger {
  background: #ef4444;
  color: #fff;
}

.badge--info {
  background: #3b82f6;
  color: #fff;
}

.badge--secondary {
  background: #94a3b8;
  color: #fff;
}

.badge--outline {
  background: #94a3b8;
  color: #fff;
}

.lang-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 4px 12px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.lang-tag--ru {
  background: #ffedd5;
  color: #ea580c;
}

.lang-tag--it {
  background: #fce7f3;
  color: #db2777;
}

.lang-tag--tr {
  background: #fee2e2;
  color: #dc2626;
}

.lang-tag--ak {
  background: #dcfce7;
  color: #16a34a;
}

.op-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.op-tag--hair {
  background: #ecfdf5;
  color: #059669;
}

.op-tag--dental {
  background: #eff6ff;
  color: #2563eb;
}

.pm-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.pm-tag i {
  font-size: 11px;
}

.pm-tag-success {
  background: #ecfdf5;
  color: #059669;
}

.pm-tag-warn {
  background: #fefce8;
  color: #ca8a04;
}

.pm-tag-danger {
  background: #fef2f2;
  color: #dc2626;
}

.pm-tag-muted {
  background: #f8fafc;
  color: var(--text-muted);
}

.pm-tag-cancelled {
  background: #fef2f2;
  color: #dc2626;
}

.pm-tag-info {
  background: #eff6ff;
  color: #2563eb;
}

.price-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.price-tag--list {
  background: #fefce8;
  color: #ca8a04;
}

.price-tag--offer {
  background: #ecfdf5;
  color: #059669;
}

.price-tag--cost {
  background: #fef2f2;
  color: #dc2626;
}

.op-category {
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

.status-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.status-badge--1 {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.status-badge--1::before {
  background: #22c55e;
}

.status-badge--2 {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.status-badge--2::before {
  background: #ef4444;
}

.status-badge--3 {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}

.status-badge--3::before {
  background: #14b8a6;
}

.status-badge--4 {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.status-badge--4::before {
  background: #8b5cf6;
}

.status-badge--5 {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.status-badge--5::before {
  background: #eab308;
}

.status-badge--6 {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.status-badge--6::before {
  background: #3b82f6;
}

.status-badge--7 {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.status-badge--7::before {
  background: #a78bfa;
}

.status-badge--8 {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}

.status-badge--8::before {
  background: #ec4899;
}

.status-badge--9 {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
}

.status-badge--9::before {
  background: #2dd4bf;
}

.status-badge--10 {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.status-badge--10::before {
  background: #f97316;
}

.status-badge--11 {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-badge--11::before {
  background: #10b981;
}

.status-badge--12 {
  background: rgba(219, 39, 119, 0.12);
  color: #db2777;
}

.status-badge--12::before {
  background: #db2777;
}

.status-badge--13 {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.status-badge--13::before {
  background: #7c3aed;
}

.status-badge--14 {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.status-badge--14::before {
  background: #2563eb;
}

.status-badge--15 {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.status-badge--15::before {
  background: #dc2626;
}

.status-badge--16 {
  background: rgba(30, 41, 59, 0.12);
  color: #1e293b;
}

.status-badge--16::before {
  background: #1e293b;
}

.status-badge--17 {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
}

.status-badge--17::before {
  background: #4f46e5;
}

.status-badge--18 {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
}

.status-badge--18::before {
  background: #fb923c;
}

.status-badge--19 {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.status-badge--19::before {
  background: #16a34a;
}

.status-badge--20 {
  background: rgba(253, 230, 138, 0.12);
  color: #fde68a;
}

.status-badge--20::before {
  background: #fde68a;
}

.status-badge--21 {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
}

.status-badge--21::before {
  background: #fb923c;
}

.status-badge--22 {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
}

.status-badge--22::before {
  background: #9333ea;
}

.status-badge--23 {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
}

.status-badge--23::before {
  background: #f472b6;
}

.status-badge--24 {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

.status-badge--24::before {
  background: #0ea5e9;
}

.status-badge--25 {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.status-badge--25::before {
  background: #fbbf24;
}

.status-badge--26 {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.status-badge--26::before {
  background: #4ade80;
}

.status-badge--27 {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
}

.status-badge--27::before {
  background: #c084fc;
}

.status-badge--28 {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
}

.status-badge--28::before {
  background: #2dd4bf;
}

.status-badge--29 {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.status-badge--29::before {
  background: #facc15;
}

.status-badge--30 {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.status-badge--30::before {
  background: #f59e0b;
}

.status-badge--new {
  background: #ecfdf5;
  color: #059669;
}

.status-badge--new::before {
  background: #059669;
}

.status-badge--nr {
  background: #fef3c7;
  color: #d97706;
}

.status-badge--nr::before {
  background: #d97706;
}

.status-badge--eval {
  background: #eff6ff;
  color: #2563eb;
}

.status-badge--eval::before {
  background: #2563eb;
}

.status-badge--pending {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.status-badge--rejected {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #b91c1c;
}

.status-badge--passive {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.status-badge--accepted {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.status-badge--connected {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.status-badge--success {
  background: #ecfdf5;
  color: #059669;
}

.status-badge--success::before {
  background: #059669;
}

.status-badge--warning {
  background: #fefce8;
  color: #ca8a04;
}

.status-badge--warning::before {
  background: #ca8a04;
}

.status-badge--danger {
  background: #fef2f2;
  color: #dc2626;
}

.status-badge--danger::before {
  background: #dc2626;
}

.status-badge--info {
  background: #eff6ff;
  color: #2563eb;
}

.status-badge--info::before {
  background: #2563eb;
}

.status-badge--secondary {
  background: #f8fafc;
  color: #64748b;
}

.status-badge--secondary::before {
  background: #64748b;
}

.source-tag {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.score-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 34px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.score-badge.score--a {
  background: var(--teal-light);
  color: var(--teal);
}

.score-badge.score--b {
  background: var(--amber-light);
  color: var(--amber);
}

.score-badge.score--c {
  background: var(--red-light);
  color: var(--red);
}

.aging-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.aging-badge.aging--warn {
  background: var(--amber-light);
  color: var(--amber);
}

.aging-badge.aging--danger {
  background: var(--orange-light);
  color: var(--orange);
}

.aging-badge.aging--critical {
  background: var(--red-light);
  color: var(--red);
}

.method-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.method-badge.method--cash {
  background: var(--green-light);
  color: var(--green);
}

.method-badge.method--transfer {
  background: var(--blue-light);
  color: var(--blue);
}

.method-badge.method--card {
  background: var(--amber-light);
  color: var(--amber);
}

.method-badge.method--crypto {
  background: var(--teal-light);
  color: var(--teal);
}

.pm-empty-state {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 28px 28px 28px 110px;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  min-height: 86px;
}

.pm-empty-state__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(-18deg);
          transform: translateY(-50%) rotate(-18deg);
  opacity: 0.12;
  pointer-events: none;
}

.pm-empty-state__icon i {
  font-size: 80px;
  color: var(--teal);
  line-height: 1;
}

.pm-empty-state__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 4px;
}

.pm-empty-state__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.dt-processing .pm-empty-state {
  display: none !important;
}

.pm-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8fafc;
  z-index: 99999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: visible;
  opacity: 1;
}

.pm-page-loader .pm-loader-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}

.pm-page-loader .pm-loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(13, 148, 136, 0.15);
  border-top-color: var(--teal);
  border-radius: 50%;
  -webkit-animation: pmSpin 1s linear infinite;
          animation: pmSpin 1s linear infinite;
}

.pm-page-loader .pm-loader-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  -webkit-animation: pmPulse 1.5s ease-in-out infinite;
          animation: pmPulse 1.5s ease-in-out infinite;
}

.custom-dropdown__search {
  margin-top: -6px;
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  position: -webkit-sticky;
  position: sticky;
  top: -6px;
  background: #fff;
  z-index: 10;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.custom-dropdown__search input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.custom-dropdown__search input:focus {
  border-color: #10b981;
}

.es-uploader {
  width: 100%;
}

.es-uploader__dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.es-uploader__dropzone:hover, .es-uploader__dropzone.dragover {
  background: #f0fdf4;
  border-color: var(--teal);
}

.es-uploader__dropzone:hover .es-uploader__icon i, .es-uploader__dropzone.dragover .es-uploader__icon i {
  color: var(--teal);
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
}

.es-uploader__icon {
  margin-bottom: 12px;
}

.es-uploader__icon i {
  font-size: 32px;
  color: #94a3b8;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.es-uploader__text {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

.es-uploader__text .text-teal {
  color: var(--teal);
  font-weight: 600;
}

.es-uploader__subtext {
  font-size: 13px;
  color: #94a3b8;
}

.es-uploader-queue {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
}

.es-uploader-queue__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 5px;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px;
}

.es-uploader-queue__items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
  padding: 10px 10px 10px 10px;
}

.es-uploader-queue .es-file-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #f8fafc;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.es-uploader-queue .es-file-item:hover {
  border-color: #cbd5e1;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.es-uploader-queue .es-file-item--static {
  cursor: default;
}

.es-uploader-queue .es-file-item--static:hover {
  border-color: #f1f5f9;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.es-uploader-queue .es-file-item__preview {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-right: 16px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.es-uploader-queue .es-file-item__preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.es-uploader-queue .es-file-item__preview i {
  font-size: 24px;
  color: #94a3b8;
}

.es-uploader-queue .es-file-item__info {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.es-uploader-queue .es-file-item__info .es-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.es-uploader-queue .es-file-item__info .es-file-meta {
  font-size: 11px;
  color: #64748b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.es-uploader-queue .es-file-item__info .es-file-meta .es-file-cat {
  background: #e0e7ff;
  color: #4f46e5;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.es-uploader-queue .es-file-item__remove {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #ef4444;
  cursor: pointer;
  background: transparent;
  border: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-left: 12px;
}

.es-uploader-queue .es-file-item__remove:hover {
  background: #fee2e2;
}

.edit-image-preview {
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid #e2e8f0;
}

.edit-image-preview.is-visible {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.edit-image-preview__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
}

.edit-image-preview__thumb {
  width: 60px;
  height: 60px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.edit-image-preview__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}

.edit-image-preview__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.edit-image-preview__subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.es-current-file-wrap .es-current-file-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.es-current-file-wrap .es-current-file-queue {
  margin-top: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.es-current-file-wrap .es-current-file-link {
  color: var(--primary);
  text-decoration: none;
}

.phone-feedback {
  position: absolute;
  bottom: -28px;
  left: 0;
  font-size: 11px;
  font-weight: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  -webkit-animation: pmModalFadeIn 0.2s ease;
          animation: pmModalFadeIn 0.2s ease;
  z-index: 99;
  white-space: nowrap;
  border: 1px solid transparent;
}

.phone-feedback--checking {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.phone-feedback--warning {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.phone-feedback--error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.phone-feedback--success {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.form-input--warn {
  border-color: #f59e0b !important;
  -webkit-box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
          box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.form-input--error {
  border-color: #ef4444 !important;
  -webkit-box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
          box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-input--success {
  border-color: #10b981 !important;
  -webkit-box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
          box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.tpClassModal .pm-modal-pro {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-height: calc(100vh - 40px);
}

.tpClassModal .pm-modal-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
}

.tpClassModal .pm-modal-footer {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.tpClassModal .tp-section {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.tpClassModal .tp-section + .tp-section {
  padding-top: 20px;
}

.tpClassModal .tp-section:last-child {
  border-bottom: none;
}

.tpClassModal .tp-section__label {
  margin-bottom: 16px;
}

.tpClassModal .tp-section:last-child {
  padding-bottom: 0;
}

.tpClassModal .tp-section__label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.tpClassModal .tp-section__label i {
  color: var(--teal);
  font-size: 11px;
}

.tpClassModal .tp-section__label .tp-add-op-btn {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}

.tpClassModal .pm-form-group {
  gap: 5px;
}

.tpClassModal .pm-form-group .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
}

.tpClassModal .tp-visit-counter {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
}

.tpClassModal .tp-visit-counter .tp-vc-btn {
  width: 36px;
  height: 38px;
  background: #f8fafc;
  border: none;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.tpClassModal .tp-visit-counter .tp-vc-btn:hover {
  background: #e2e8f0;
  color: var(--teal-dark);
}

.tpClassModal .tp-visit-counter .tp-vc-btn:first-child {
  border-right: 1px solid #e2e8f0;
}

.tpClassModal .tp-visit-counter .tp-vc-btn:last-child {
  border-left: 1px solid #e2e8f0;
}

.tpClassModal .tp-visit-counter .tp-vc-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  text-align: center;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 400;
  color: var(--teal-dark);
  background: #fff;
  -moz-appearance: textfield;
}

.tpClassModal .tp-visit-counter .tp-vc-input::-webkit-inner-spin-button, .tpClassModal .tp-visit-counter .tp-vc-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.tpClassModal .tp-ops-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.tpClassModal .tp-op-row {
  background: #f8fafc;
  border: 1px solid #e8ecef;
  border-radius: 10px;
  padding: 12px 14px;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 10px !important;
}

.tpClassModal .tp-op-row .tp-op-delete {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  padding-bottom: 2px;
}

.tpClassModal .tp-op-row .tp-btn-del-op {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 42px;
  padding: 0;
  color: #ef4444;
  border: 1px solid #fecaca;
  background: #fff5f5;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.tpClassModal .tp-op-row .tp-btn-del-op:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

.text-muted {
  color: var(--text-muted);
}

.tp-section.table-modal {
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.table-minimal {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.table-minimal thead tr {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.table-minimal thead th {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.table-minimal thead th:nth-child(1) {
  width: 90px;
}

.table-minimal thead th:nth-child(2) {
  width: 105px;
}

.table-minimal thead th:nth-child(3) {
  width: auto;
}

.table-minimal thead th:nth-child(4) {
  width: 110px;
}

.table-minimal thead th:nth-child(5) {
  width: 110px;
}

.table-minimal thead th.text-right {
  text-align: right;
}

.table-minimal tbody tr {
  border-bottom: 1px solid #f1f5f9;
  -webkit-transition: background 0.1s;
  transition: background 0.1s;
}

.table-minimal tbody tr:last-child {
  border-bottom: none;
}

.table-minimal tbody tr:hover {
  background: #f8fafc;
}

.table-minimal tbody td {
  padding: 11px 14px;
  color: #334155;
  vertical-align: middle;
  line-height: 1.4;
  overflow: hidden;
}

.table-minimal tbody td.text-right {
  text-align: right;
}

.table-minimal tbody td.td-date {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.table-minimal tbody td.td-detail {
  color: #1e293b;
  font-weight: 500;
}

.table-minimal tbody td.td-amount {
  font-variant-numeric: tabular-nums;
  color: #475569;
  white-space: nowrap;
}

.table-minimal tbody td.td-eur {
  font-variant-numeric: tabular-nums;
  color: #ff0000;
  white-space: nowrap;
}

.table-minimal tbody td.td-center {
  text-align: center;
  color: #94a3b8;
  padding: 28px 14px;
}

.table-minimal tbody td.td-error {
  color: #ef4444;
}

.table-minimal .currency-sym {
  font-size: 11px;
  color: #ff0000;
  margin-right: 5px;
}

.type-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.type-badge--hotel {
  background: #eef2ff;
  color: #4f46e5;
}

.type-badge--operation {
  background: #fff7ed;
  color: #ea580c;
}

.breakdown-summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0d3b5e 0%, #1a5a8a 100%);
}

.breakdown-summary__label {
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breakdown-summary__val {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.es-uploader.no-category .es-file-cat-badge {
  display: none !important;
}

.dt-image-cell {
  padding-left: 0 !important;
  padding-right: 10px !important;
}

.dt-check-cell {
  padding-right: 0 !important;
}

.pickr {
  width: 100%;
  height: 40px;
}

.pickr .pcr-button {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.pickr .pcr-button:focus, .pickr .pcr-button:focus-visible, .pickr .pcr-button:active {
  outline: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.pickr .pcr-button::before, .pickr .pcr-button::after {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.es-uploader-queue__items--single .es-file-cat-badge {
  display: none !important;
}

.org-filter-bar .table-search {
  margin-bottom: 20px;
}

.org-area {
  position: relative;
  overflow: hidden;
}

.org-side-panel {
  width: 300px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: absolute;
  right: 0;
  top: 0;
  height: calc(100vh - 180px);
  -webkit-transform: translateX(100%);
          transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  -webkit-box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
          box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
}

.org-side-panel.open {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

.org-side-panel .panel-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  text-align: center;
}

.org-side-panel .panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  color: #64748b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 20px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.org-side-panel .panel-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.org-side-panel .panel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 22px;
  font-weight: 600;
}

.org-side-panel .panel-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.org-side-panel .panel-role {
  font-size: 13px;
  color: #64748b;
}

.org-side-panel .panel-body {
  padding: 20px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
}

.org-side-panel .stat-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.org-side-panel .stat-row .stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.org-side-panel .stat-row .stat-card .stat-num {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

.org-side-panel .stat-row .stat-card .stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.org-side-panel .panel-section {
  margin-top: 24px;
}

.org-side-panel .panel-section .panel-section-title {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.org-side-panel .report-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.org-side-panel .report-item:last-child {
  border-bottom: none;
}

.org-side-panel .report-item .report-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.org-side-panel .report-item .report-name {
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.org-side-panel .report-item .report-title {
  color: #94a3b8;
  font-size: 11px;
}

/* ── USER ANALYTICS MODAL ───────────────────────────────── */
#modalUserAnalytics .pm-modal-body {
  background: #f8f9fc;
}

.analytics-loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 2rem;
}

.analytics-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  height: 100%;
}

.analytics-card--overview {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 15px;
}

.analytics-card--notes {
  padding: 15px 20px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.analytics-card__header {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.analytics-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.analytics-icon--sm {
  width: 45px;
  height: 45px;
  font-size: 18px;
}

.analytics-icon--leads {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.analytics-icon--deals {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.analytics-icon--visits {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.analytics-stat__label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.analytics-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.analytics-stat__value--sm {
  font-size: 22px;
}

.analytics-stat__value--notes {
  font-size: 18px;
  color: #64748b;
}

.analytics-activities {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  text-align: center;
  gap: 10px;
  width: 100%;
}

.analytics-activities__item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 10px;
  border-radius: 6px;
}

.analytics-activities__item--active {
  background: #f8fafc;
}

.analytics-activities__item--active .value {
  color: #3b82f6;
}

.analytics-activities__item--overdue {
  background: #fdf2f8;
}

.analytics-activities__item--overdue .value {
  color: #ec4899;
}

.analytics-activities__item--closed {
  background: #f0fdf4;
}

.analytics-activities__item--closed .value {
  color: #22c55e;
}

.analytics-activities__item .value {
  font-size: 20px;
  font-weight: 700;
}

.analytics-activities__item .label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* ── Toggle Checkbox ─────────────────────────────────────── */
.pm-toggle-label {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.pm-toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pm-toggle-label:focus-within .pm-toggle-track {
  -webkit-box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
          box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.pm-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  -webkit-transition: background 0.25s ease, border-color 0.25s ease;
  transition: background 0.25s ease, border-color 0.25s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.pm-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-toggle-label input:checked ~ .pm-toggle-track {
  background: #10b981;
  border-color: #10b981;
}

.pm-toggle-label input:checked ~ .pm-toggle-track::after {
  -webkit-transform: translateX(18px);
          transform: translateX(18px);
}

.pm-toggle-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Animations */
@-webkit-keyframes pulseBadge {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    -webkit-box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
            box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
@keyframes pulseBadge {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    -webkit-box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
            box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@-webkit-keyframes pmSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes pmSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@-webkit-keyframes pmPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pmPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@-webkit-keyframes btn-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes btn-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@-webkit-keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@-webkit-keyframes slideInRight {
  from {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  to {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  to {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@-webkit-keyframes slideOutRight {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
}

@keyframes slideOutRight {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
}

/* ── KPI CARDS ──────────────────────────────────────────── */
.kpi-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[5];
      grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-grid.mt-24 {
  margin-top: 24px;
}

.kpi-grid.grid4 {
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 1px solid var(--border);
  position: relative;
  z-index: 50;
  -webkit-animation: kpiIn 0.4s var(--ease) both;
          animation: kpiIn 0.4s var(--ease) both;
  -webkit-transition: -webkit-transform var(--dur);
  transition: -webkit-transform var(--dur);
  transition: transform var(--dur);
  transition: transform var(--dur), -webkit-transform var(--dur);
  /* Decorative corner */
}

.kpi-card:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.kpi-card[data-delay="100"] {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
}

.kpi-card[data-delay="200"] {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}

.kpi-card[data-delay="300"] {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

.kpi-card[data-delay="400"] {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 0 var(--radius) 0 100%;
  opacity: 0.06;
  pointer-events: none;
}

.kpi-card--teal .kpi-card__icon {
  background: var(--teal-light);
  color: var(--teal);
}

.kpi-card--teal::after {
  background: var(--teal);
}

.kpi-card--orange .kpi-card__icon {
  background: var(--orange-light);
  color: var(--orange);
}

.kpi-card--orange::after {
  background: var(--orange);
}

.kpi-card--green .kpi-card__icon {
  background: var(--green-light);
  color: var(--green);
}

.kpi-card--green::after {
  background: var(--green);
}

.kpi-card--amber .kpi-card__icon {
  background: var(--amber-light);
  color: var(--amber);
}

.kpi-card--amber::after {
  background: var(--amber);
}

.kpi-card--blue .kpi-card__icon {
  background: var(--blue-light);
  color: var(--blue);
}

.kpi-card--blue::after {
  background: var(--blue);
}

.kpi-card--purple .kpi-card__icon {
  background: var(--purple-light);
  color: var(--purple);
}

.kpi-card--purple::after {
  background: var(--purple);
}

.kpi-card--indigo .kpi-card__icon {
  background: var(--indigo-light);
  color: var(--indigo);
}

.kpi-card--indigo::after {
  background: var(--indigo);
}

.kpi-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.kpi-card__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.kpi-card__value {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-card__vat {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
}

.kpi-card__footer {
  position: relative;
}

.kpi-card__expand {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
  padding: 8px 0px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  font-weight: 600;
  border: none;
}

.kpi-card__expand i {
  -webkit-transition: -webkit-transform var(--dur);
  transition: -webkit-transform var(--dur);
  transition: transform var(--dur);
  transition: transform var(--dur), -webkit-transform var(--dur);
  color: var(--text-muted);
}

.kpi-card__expand.open i {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  color: #0f172a;
}

.kpi-card__detail {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  z-index: 100;
  padding: 4px 16px;
}

.kpi-card__detail .detail-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-card__detail .detail-row:last-child {
  border-bottom: none;
}

.kpi-card__detail .detail-row strong {
  color: #0f172a;
  font-weight: 700;
}

@-webkit-keyframes kpiIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes kpiIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* ── CHART CARDS ────────────────────────────────────────── */
.dashboard-charts {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1.6fr 1fr;
      grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-charts.column3 {
  -ms-grid-columns: 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr 1fr;
}

.dashboard-charts-3 {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-charts-2 {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1.6fr 1fr;
      grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-charts-full {
  display: block;
  margin-bottom: 24px;
  width: 100%;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  min-width: 0;
}

.chart-card__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 16px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
}

.chart-card__header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.chart-card__controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.chart-card .chart-period {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-area {
  position: relative;
  height: 200px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
}

.chart-area canvas {
  max-width: 100% !important;
}

.chart-area--tall {
  height: 240px;
}

.chart-area--md {
  height: 200px;
}

.chart-area--funnel {
  height: 320px;
}

.card-inner {
  padding: 20px;
}

.chart-legend {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.legend-dot--pink {
  background: #f43f5e;
}

.legend-dot--teal {
  background: var(--teal);
}

.chart-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* chart-type switcher */
.chart-type-switcher {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2px;
  background: var(--bg);
  padding: 3px;
  border-radius: 6px;
}

.chart-type-switcher .ctype {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.chart-type-switcher .ctype.active {
  background: var(--teal);
  color: #fff;
}

.chart-type-switcher .ctype:hover:not(.active) {
  background: var(--teal-light);
  color: var(--teal);
}

/* donut center overlay */
.donut-wrap {
  position: relative;
}

.donut-wrap .donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-wrap .donut-val {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.donut-wrap .donut-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* chip badges */
.chip {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.chip--green {
  background: var(--green-light);
  color: var(--green);
}

.chip--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.chip--orange {
  background: var(--orange-light);
  color: var(--orange);
}

/* ── DASHBOARD BOTTOM ───────────────────────────────────── */
.dashboard-bottom {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ranking-card,
.upcoming-card,
.field-payments-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
  /* Or just remove overflow if it breaks dropdowns, but this forces cards to wrap their content neatly */
}

.ranking-card h3,
.upcoming-card h3,
.field-payments-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.ranking-card h3 small,
.upcoming-card h3 small,
.field-payments-card h3 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.ranking-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.ranking-tabs .ranking-tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  text-align: center;
}

.ranking-tabs .ranking-tab.active {
  background: #fff;
  color: var(--teal);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ranking-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item .ranking-pos {
  width: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.ranking-item.rank-1 .ranking-pos {
  color: #f59e0b;
}

.ranking-item.rank-2 .ranking-pos {
  color: #94a3b8;
}

.ranking-item.rank-3 .ranking-pos {
  color: #cd7c3a;
}

.ranking-item .ranking-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.ranking-item .ranking-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.ranking-item .ranking-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.ranking-item .ranking-val {
  font-weight: 700;
  font-size: 13px;
  color: var(--teal);
  white-space: nowrap;
}

.upcoming-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.upcoming-tabs .upcoming-tab {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  white-space: nowrap;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.upcoming-tabs .upcoming-tab.active {
  background: var(--teal);
  color: #fff;
}

.upcoming-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.upcoming-item:last-child {
  border-bottom: none;
}

.upcoming-item .upcoming-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
  font-size: 11px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.upcoming-item .upcoming-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.upcoming-item .upcoming-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.upcoming-item .upcoming-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.upcoming-item .upcoming-meta {
  text-align: right;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.upcoming-item .upcoming-meta .upcoming-price {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--teal);
}

.upcoming-item .upcoming-meta .upcoming-ticket {
  font-size: 11px;
  color: var(--text-muted);
}

.advisor {
  color: var(--teal);
  font-weight: 600;
}

.field-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.field-item:last-child {
  border-bottom: none;
}

.field-item .field-rank {
  width: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.field-item .field-name {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-weight: 500;
}

.field-item .field-amount {
  font-weight: 700;
  color: var(--teal);
}

.field-item .field-amount--zero {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Finance tab content ────────────────────────────────── */
.fin-tab-content {
  display: none;
  -webkit-animation: fadeSlide 0.3s var(--ease);
          animation: fadeSlide 0.3s var(--ease);
}

.fin-tab-content.active {
  display: block;
}

.fin-tab-content .section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* eval grid */
.eval-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* ── Reports grid ───────────────────────────────────────── */
.reports-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.report-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  -webkit-animation: kpiIn 0.35s var(--ease) both;
          animation: kpiIn 0.35s var(--ease) both;
}

.report-card:hover {
  border-color: var(--teal);
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  -webkit-box-shadow: var(--shadow-lg);
          box-shadow: var(--shadow-lg);
}

.report-card:hover .report-card__chart polyline {
  stroke: var(--teal-dark);
}

.report-card__chart {
  margin-bottom: 12px;
}

.report-card__chart svg {
  width: 80px;
  height: 40px;
}

.report-card__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* ── Campaign Analysis chart legend ────────────────────── */
.chart-legend-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
}

.chart-legend-row .legend-pill {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  opacity: 0.9;
}

.th-highlight {
  background: var(--blue-light);
  color: var(--blue);
}

.td-highlight {
  color: var(--blue);
  font-weight: 700;
}

.td-truncate {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
  display: inline-block;
}

/* ── Target performance ─────────────────────────────────── */
.perf-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.perf-badge--critical {
  background: var(--red);
  color: #fff;
}

.perf-badge--success {
  background: var(--green);
  color: #fff;
}

.progress-bar-wrap {
  width: 140px;
  height: 20px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-bar-wrap .progress-bar {
  height: 100%;
  border-radius: 99px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  -webkit-transition: width 0.6s var(--ease);
  transition: width 0.6s var(--ease);
  white-space: nowrap;
}

.progress-bar-wrap .progress-bar--green {
  background: var(--green);
}

.progress-bar-wrap .progress-bar--amber {
  background: var(--amber);
  color: #0f172a;
}

.progress-bar-wrap .progress-bar--red {
  background: var(--red);
}

.progress-bar-wrap .progress-bar--empty {
  background: var(--border);
}

.kpi-card--red .kpi-card__icon {
  background: var(--red-light);
  color: var(--red);
}

.kpi-card--red::after {
  background: var(--red);
}

.badge-live {
  font-size: 10px;
  padding: 3px 6px;
}

.chart-area--relative {
  position: relative;
}

.chart-loader {
  position: absolute;
  inset: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
  border-radius: 12px;
  display: none;
}

.chart-loader .loader-icon {
  font-size: 2rem;
  color: var(--teal);
}

.funnel-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px 0;
  gap: 4px;
}

.funnel-stage {
  height: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
          clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
}

.funnel-stage:hover {
  -webkit-transform: scale(1.02);
          transform: scale(1.02);
}

.funnel-1 {
  background-color: #3b82f6;
  -webkit-clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
          clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}

.funnel-2 {
  background-color: #0ea5e9;
  -webkit-clip-path: polygon(2% 0, 98% 0, 96% 100%, 4% 100%);
          clip-path: polygon(2% 0, 98% 0, 96% 100%, 4% 100%);
}

.funnel-3 {
  background-color: #0ba78f;
  -webkit-clip-path: polygon(4% 0, 96% 0, 94% 100%, 6% 100%);
          clip-path: polygon(4% 0, 96% 0, 94% 100%, 6% 100%);
}

.funnel-4 {
  background-color: #f59e0b;
  -webkit-clip-path: polygon(6% 0, 94% 0, 90% 100%, 10% 100%);
          clip-path: polygon(6% 0, 94% 0, 90% 100%, 10% 100%);
}

.funnel-5 {
  background-color: #22c55e;
  -webkit-clip-path: polygon(10% 0, 90% 0, 85% 100%, 15% 100%);
          clip-path: polygon(10% 0, 90% 0, 85% 100%, 15% 100%);
  border-radius: 0 0 8px 8px;
}

.funnel-legends {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
}

.funnel-legend-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.funnel-1 {
  background-color: #3b82f6;
}

.legend-dot.funnel-2 {
  background-color: #0ea5e9;
}

.legend-dot.funnel-3 {
  background-color: #0ba78f;
}

.legend-dot.funnel-4 {
  background-color: #f59e0b;
}

.legend-dot.funnel-5 {
  background-color: #22c55e;
}

.legend-pct {
  font-weight: 600;
  color: var(--text-main);
}

.dash-data-table {
  border-collapse: collapse;
  font-size: 13px;
}

.dash-data-table th {
  padding: 10px;
  background-color: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.dash-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.dash-data-table tr:last-child td {
  border-bottom: none;
}

.dash-data-table tr:hover td {
  background-color: rgba(241, 245, 249, 0.4);
}

.activity-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 12px 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  border: 1px solid var(--border);
  border-left-width: 4px;
}

.border-left-teal {
  border-left-color: #14b8a6;
}

.border-left-blue {
  border-left-color: #3b82f6;
}

.border-left-orange {
  border-left-color: #f97316;
}

.border-left-purple {
  border-left-color: #8b5cf6;
}

.border-left-green {
  border-left-color: #22c55e;
}

.border-left-pink {
  border-left-color: #ec4899;
}

.activity-agent strong {
  font-size: 14px;
  color: var(--text-primary);
}

.activity-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
}

.activity-stats .stat {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.activity-stats .stat i {
  color: var(--teal);
  font-size: 12px;
}

/* --- Medical Advisor Component Makeovers --- */
.page-medical-advisor {
  /* Base & Layout */
  /* Metric Cards */
  /* Utilities used in Medical Advisor */
  /* Widgets Group */
  /* Card */
  /* Chart Elements */
  /* Stats Block */
  /* Circle Components */
  /* Values inside Circles */
  /* Progress Bars */
  /* Animations */
  /* Task Grid */
  /* Badges */
  /* Modern Stats & Legends */
  /* Utility margins and padding refactored from inline CSS */
  /* Icon colors */
  /* Legend backgrounds */
  /* Specific widgets */
  /* Sales Statistics vertical stacked layout */
  /* Daily Task Rate alignment fixes */
}

.page-medical-advisor .dashboard-top-metrics {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .page-medical-advisor .dashboard-top-metrics {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-medical-advisor .stats-col {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .page-medical-advisor .stats-col {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-medical-advisor .dashboard-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 2fr 1fr;
      grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .page-medical-advisor .dashboard-row {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-medical-advisor .metric-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-medical-advisor .metric-card .metric-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-medical-advisor .metric-card .metric-header .metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 20px;
}

.page-medical-advisor .metric-card .metric-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-medical-advisor .metric-card .metric-body .metric-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 8px;
}

.page-medical-advisor .metric-card .metric-body .metric-stats .metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.page-medical-advisor .metric-card .metric-body .metric-stats .metric-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-medical-advisor .metric-card--teal .metric-icon {
  background: var(--teal-light);
  color: var(--teal);
}

.page-medical-advisor .metric-card--teal .ma-progress-track {
  background: rgba(20, 184, 166, 0.15);
  outline-color: rgba(20, 184, 166, 0.3);
}

.page-medical-advisor .metric-card--teal .ma-progress-fill {
  background-color: var(--teal);
}

.page-medical-advisor .metric-card--orange .metric-icon {
  background: var(--orange-light);
  color: var(--orange);
}

.page-medical-advisor .metric-card--orange .ma-progress-track {
  background: rgba(249, 115, 22, 0.15);
  outline-color: rgba(249, 115, 22, 0.3);
}

.page-medical-advisor .metric-card--orange .ma-progress-fill {
  background-color: var(--orange);
}

.page-medical-advisor .ma-w-100 {
  width: 100%;
}

.page-medical-advisor .ma-flex-grow {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.page-medical-advisor .ma-mb-small {
  margin-bottom: 8px;
}

.page-medical-advisor .ma-mb-medium {
  margin-bottom: 16px;
}

.page-medical-advisor .ma-mb-large {
  margin-bottom: 24px;
}

.page-medical-advisor .ma-mt-small {
  margin-top: 10px;
}

.page-medical-advisor .ma-mt-auto {
  margin-top: auto;
  margin-bottom: auto;
}

.page-medical-advisor .ma-pos-rel {
  position: relative;
}

.page-medical-advisor .ma-widget-group {
  margin-bottom: 25px;
}

.page-medical-advisor .ma-widget-group .ma-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.page-medical-advisor .ma-card {
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  min-height: 250px;
}

.page-medical-advisor .ma-card .ma-card-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
  width: 100%;
}

.page-medical-advisor .ma-card .ma-card-inner.align-stretch {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.page-medical-advisor .ma-card--split {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  gap: 10px;
  height: 100%;
}

@media (max-width: 1400px) {
  .page-medical-advisor .ma-card--split {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}

.page-medical-advisor .ma-card--split .ma-card-left {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 140px;
          flex: 0 0 140px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.page-medical-advisor .ma-card--split .ma-card-right {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  gap: 10px;
  min-width: 220px;
}

@media (max-width: 1400px) {
  .page-medical-advisor .ma-card--split .ma-card-right {
    margin-top: 15px;
  }
}

.page-medical-advisor .ma-legend {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.page-medical-advisor .ma-legend .ma-legend-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.page-medical-advisor .ma-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: -4px;
}

.page-medical-advisor .ma-chart-box {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.page-medical-advisor .ma-stat-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}

.page-medical-advisor .ma-stat-block .ma-stat-name {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 15px;
}

.page-medical-advisor .ma-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.page-medical-advisor .ma-circle:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.page-medical-advisor .ma-circle--sm {
  width: 90px;
  height: 90px;
}

.page-medical-advisor .ma-circle--grey {
  border: 10px solid #f8fafc;
  background: #fff;
  -webkit-box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02), 0 4px 10px rgba(0, 0, 0, 0.04);
          box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.page-medical-advisor .ma-circle--grey-ring {
  border: 12px solid #e2e8f0;
  background: #fff;
}

.page-medical-advisor .ma-circle--red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 6px solid #fecaca;
}

.page-medical-advisor .ma-circle--solid-red {
  background: #ff0000;
  border: 8px solid rgba(255, 0, 0, 0.2);
}

.page-medical-advisor .ma-circle .ma-tick {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 8px;
  height: 14px;
  background: #3b82f6;
  border-radius: 4px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
          box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.page-medical-advisor .ma-val-blue {
  color: #3b82f6;
  font-size: 26px;
  font-weight: 700;
}

.page-medical-advisor .ma-val-white {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-medical-advisor .ma-val-white small {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.page-medical-advisor .ma-val--md {
  font-size: 20px !important;
}

.page-medical-advisor .ma-val--lg {
  font-size: 32px;
}

.page-medical-advisor .ma-progress-track {
  width: 100%;
  height: 24px;
  background: rgba(20, 184, 166, 0.15);
  border-radius: 20px;
  outline: 1px solid rgba(20, 184, 166, 0.3);
  outline-offset: 2px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-medical-advisor .ma-progress-track--kpi {
  height: 18px;
  margin-top: 10px;
  margin-bottom: 0px;
}

.page-medical-advisor .ma-progress-track .ma-progress-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--teal);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  -webkit-transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-medical-advisor .ma-progress-track .ma-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  line-height: 1;
  z-index: 5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 0, 0, 0.9);
}

@-webkit-keyframes progressZebra {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

@keyframes progressZebra {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.page-medical-advisor .ma-stripes {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  -webkit-animation: progressZebra 1.2s linear infinite;
          animation: progressZebra 1.2s linear infinite;
  background-color: var(--teal);
}

@-webkit-keyframes pulseRedRing {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    -webkit-box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
            box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes pulseRedRing {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    -webkit-box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
            box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.page-medical-advisor .ma-pulse-red {
  -webkit-animation: pulseRedRing 2s infinite;
          animation: pulseRedRing 2s infinite;
}

.page-medical-advisor .ma-task-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 15px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: auto;
}

.page-medical-advisor .ma-task-grid .ma-task-item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 120px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}

.page-medical-advisor .ma-task-txt {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin-top: 5px;
  line-height: 1.3;
}

.page-medical-advisor .ma-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.page-medical-advisor .ma-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.page-medical-advisor .ma-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: 700;
  font-size: 15px;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
  z-index: 2;
}

.page-medical-advisor .ma-badge .ma-icon-left {
  position: absolute;
  left: -22px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.page-medical-advisor .ma-badge--outline-teal {
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  background: transparent;
}

.page-medical-advisor .ma-badge--green {
  background: #10b981;
  color: white;
}

.page-medical-advisor .ma-badge--yellow {
  background: #fbbf24;
  color: #1e293b;
}

.page-medical-advisor .ma-chart-center-val {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -46%);
          transform: translate(-50%, -46%);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #0f172a;
  pointer-events: none;
}

.page-medical-advisor .ma-legend-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.page-medical-advisor .ma-legend-item .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.page-medical-advisor .ma-legend-item .legend-label strong {
  color: #0f172a;
  font-weight: 700;
}

.page-medical-advisor .ma-header-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-medical-advisor .ma-modern-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.page-medical-advisor .ma-modern-stat-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-medical-advisor .ma-modern-stat-card .stat-card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-medical-advisor .ma-modern-stat-card .stat-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-medical-advisor .ma-modern-stat-card .stat-card-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.page-medical-advisor .ma-modern-stat-card .stat-card-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.page-medical-advisor .ma-modern-stat-card--danger {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.12);
}

.page-medical-advisor .ma-modern-stat-card--danger:hover {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.22);
}

.page-medical-advisor .ma-modern-stat-card--danger .stat-card-title {
  color: #ef4444;
}

.page-medical-advisor .ma-modern-stat-card--danger .stat-card-value {
  color: #ef4444;
}

.page-medical-advisor .ma-mt-12 {
  margin-top: 12px;
}

.page-medical-advisor .ma-mt-8 {
  margin-top: 8px;
}

.page-medical-advisor .ma-m-0 {
  margin: 0;
}

.page-medical-advisor .ma-p-20 {
  padding: 20px;
}

.page-medical-advisor .ma-h-100 {
  height: 100%;
}

.page-medical-advisor .ma-flex-1-1 {
  -webkit-box-flex: 1.1;
      -ms-flex: 1.1;
          flex: 1.1;
}

.page-medical-advisor .ma-flex-1-2 {
  -webkit-box-flex: 1.2;
      -ms-flex: 1.2;
          flex: 1.2;
}

.page-medical-advisor .ma-box-150 {
  width: 150px;
  height: 150px;
}

.page-medical-advisor .ma-pos-rel {
  position: relative;
}

.page-medical-advisor .ma-min-h-200 {
  min-height: 200px;
}

.page-medical-advisor .ma-right-style {
  -webkit-box-flex: 0.9;
      -ms-flex: 0.9;
          flex: 0.9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

.page-medical-advisor .ma-right-style-0-8 {
  -webkit-box-flex: 0.8;
      -ms-flex: 0.8;
          flex: 0.8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
}

.page-medical-advisor .ma-legend-total {
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
  margin-top: 4px;
}

.page-medical-advisor .ma-tab-content-scroll {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow-y: auto;
  max-height: 250px;
}

.page-medical-advisor .ma-split-style {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  position: relative;
  gap: 20px;
}

.page-medical-advisor .ma-split-style-15 {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  position: relative;
  gap: 15px;
}

.page-medical-advisor .ma-ranking-tabs-style {
  margin-top: 0;
  margin-bottom: 12px;
  gap: 8px;
}

.page-medical-advisor .ma-upcoming-tabs-style {
  margin-top: 0;
  margin-bottom: 12px;
  gap: 6px;
}

.page-medical-advisor .ma-btn-sm {
  padding: 6px 12px;
  font-size: 11px;
}

.page-medical-advisor .ma-btn-md {
  padding: 6px 12px;
  font-size: 11.5px;
}

.page-medical-advisor .icon-teal {
  color: var(--teal);
}

.page-medical-advisor .icon-orange {
  color: var(--orange);
}

.page-medical-advisor .icon-primary {
  color: var(--primary);
}

.page-medical-advisor .legend-dot.bg-teal {
  background-color: var(--teal);
}

.page-medical-advisor .legend-dot.bg-orange {
  background-color: var(--orange);
}

.page-medical-advisor .legend-dot.bg-slate {
  background-color: #64748b;
}

.page-medical-advisor .ma-track-ref-sales {
  height: 8px;
  margin: 4px 0 0 0;
  background: #f1f5f9;
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.page-medical-advisor .ma-track-ref-sales .ma-progress-fill {
  background: #3b82f6;
}

.page-medical-advisor .ma-sales-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.page-medical-advisor .ma-sales-chart-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  margin-top: 10px;
}

.page-medical-advisor .ma-sales-cards-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: auto;
}

.page-medical-advisor .ma-daily-task-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  gap: 20px;
  width: 100%;
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

@media (max-width: 1400px) {
  .page-medical-advisor .ma-daily-task-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
  }
}

.page-medical-advisor .ma-daily-task-left {
  -webkit-box-flex: 1.2;
      -ms-flex: 1.2;
          flex: 1.2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-medical-advisor .ma-daily-task-right {
  -webkit-box-flex: 0.8;
      -ms-flex: 0.8;
          flex: 0.8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 12px;
  min-width: 150px;
  padding-left: 15px;
}

@media (max-width: 1400px) {
  .page-medical-advisor .ma-daily-task-right {
    padding-left: 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-width: unset;
    width: 100%;
  }
}

.page-medical-advisor .chart-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}

.page-medical-advisor .chart-card .card-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.page-medical-advisor .chart-card .card-inner.align-stretch {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

/* End of .page-medical-advisor namespace */
/* ── TABLE AREA ─────────────────────────────────────────── */
select.form-select {
  display: none !important;
}

.date-range-wrap {
  position: relative;
  width: 100%;
}

.date-range-wrap .date-range-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.date-range-wrap .form-input {
  padding-left: 35px !important;
}

.table-area {
  min-width: 0;
  /* flex child'ların shrink etmesini sağlar */
  overflow: hidden;
  /* taşmayı keser */
  width: 100%;
}

.custom-table-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.custom-table-toolbar .toolbar-left,
.custom-table-toolbar .toolbar-right,
.custom-table-toolbar .toolbar-full {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(0, 1fr))[12];
      grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.custom-table-toolbar .toolbar-left .table-search,
.custom-table-toolbar .toolbar-right .table-search,
.custom-table-toolbar .toolbar-full .table-search {
  max-width: none !important;
}

.custom-table-toolbar .toolbar-left [class^="col-"],
.custom-table-toolbar .toolbar-left [class*=" col-"],
.custom-table-toolbar .toolbar-right [class^="col-"],
.custom-table-toolbar .toolbar-right [class*=" col-"],
.custom-table-toolbar .toolbar-full [class^="col-"],
.custom-table-toolbar .toolbar-full [class*=" col-"] {
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.custom-table-toolbar .toolbar-left [class^="col-"] > *,
.custom-table-toolbar .toolbar-left [class*=" col-"] > *,
.custom-table-toolbar .toolbar-right [class^="col-"] > *,
.custom-table-toolbar .toolbar-right [class*=" col-"] > *,
.custom-table-toolbar .toolbar-full [class^="col-"] > *,
.custom-table-toolbar .toolbar-full [class*=" col-"] > * {
  width: 100%;
}

.custom-table-toolbar .toolbar-left [class^="col-"] .bulk-actions,
.custom-table-toolbar .toolbar-left [class*=" col-"] .bulk-actions,
.custom-table-toolbar .toolbar-right [class^="col-"] .bulk-actions,
.custom-table-toolbar .toolbar-right [class*=" col-"] .bulk-actions,
.custom-table-toolbar .toolbar-full [class^="col-"] .bulk-actions,
.custom-table-toolbar .toolbar-full [class*=" col-"] .bulk-actions {
  width: 100%;
}

.custom-table-toolbar .toolbar-left .col-1,
.custom-table-toolbar .toolbar-right .col-1,
.custom-table-toolbar .toolbar-full .col-1 {
  grid-column: span 1;
}

.custom-table-toolbar .toolbar-left .col-2,
.custom-table-toolbar .toolbar-right .col-2,
.custom-table-toolbar .toolbar-full .col-2 {
  grid-column: span 2;
}

.custom-table-toolbar .toolbar-left .col-3,
.custom-table-toolbar .toolbar-right .col-3,
.custom-table-toolbar .toolbar-full .col-3 {
  grid-column: span 3;
}

.custom-table-toolbar .toolbar-left .col-4,
.custom-table-toolbar .toolbar-right .col-4,
.custom-table-toolbar .toolbar-full .col-4 {
  grid-column: span 4;
}

.custom-table-toolbar .toolbar-left .col-5,
.custom-table-toolbar .toolbar-right .col-5,
.custom-table-toolbar .toolbar-full .col-5 {
  grid-column: span 5;
}

.custom-table-toolbar .toolbar-left .col-6,
.custom-table-toolbar .toolbar-right .col-6,
.custom-table-toolbar .toolbar-full .col-6 {
  grid-column: span 6;
}

.custom-table-toolbar .toolbar-left .col-7,
.custom-table-toolbar .toolbar-right .col-7,
.custom-table-toolbar .toolbar-full .col-7 {
  grid-column: span 7;
}

.custom-table-toolbar .toolbar-left .col-8,
.custom-table-toolbar .toolbar-right .col-8,
.custom-table-toolbar .toolbar-full .col-8 {
  grid-column: span 8;
}

.custom-table-toolbar .toolbar-left .col-9,
.custom-table-toolbar .toolbar-right .col-9,
.custom-table-toolbar .toolbar-full .col-9 {
  grid-column: span 9;
}

.custom-table-toolbar .toolbar-left .col-10,
.custom-table-toolbar .toolbar-right .col-10,
.custom-table-toolbar .toolbar-full .col-10 {
  grid-column: span 10;
}

.custom-table-toolbar .toolbar-left .col-11,
.custom-table-toolbar .toolbar-right .col-11,
.custom-table-toolbar .toolbar-full .col-11 {
  grid-column: span 11;
}

.custom-table-toolbar .toolbar-left .col-12,
.custom-table-toolbar .toolbar-right .col-12,
.custom-table-toolbar .toolbar-full .col-12 {
  grid-column: span 12;
}

.custom-table-toolbar .toolbar-left,
.custom-table-toolbar .toolbar-right {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(50% - 4px);
          flex: 0 0 calc(50% - 4px);
  max-width: calc(50% - 4px);
}

.custom-table-toolbar .toolbar-full {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.custom-table-toolbar .toolbar-right {
  margin-left: 0;
}

.custom-table-toolbar .toolbar-right > .col-1:only-child {
  -ms-grid-column: 12;
  -ms-grid-column-span: 1;
  grid-column: 12 / span 1;
}

.custom-table-toolbar .toolbar-right > .col-2:only-child {
  -ms-grid-column: 11;
  -ms-grid-column-span: 2;
  grid-column: 11 / span 2;
}

.custom-table-toolbar .toolbar-right > .col-3:only-child {
  -ms-grid-column: 10;
  -ms-grid-column-span: 3;
  grid-column: 10 / span 3;
}

.custom-table-toolbar .toolbar-right > .col-4:only-child {
  -ms-grid-column: 9;
  -ms-grid-column-span: 4;
  grid-column: 9 / span 4;
}

.custom-table-toolbar .toolbar-right > .col-5:only-child {
  -ms-grid-column: 8;
  -ms-grid-column-span: 5;
  grid-column: 8 / span 5;
}

.custom-table-toolbar .toolbar-right > .col-6:only-child {
  -ms-grid-column: 7;
  -ms-grid-column-span: 6;
  grid-column: 7 / span 6;
}

.custom-table-toolbar .toolbar-right > .col-7:only-child {
  -ms-grid-column: 6;
  -ms-grid-column-span: 7;
  grid-column: 6 / span 7;
}

.custom-table-toolbar .toolbar-right > .col-8:only-child {
  -ms-grid-column: 5;
  -ms-grid-column-span: 8;
  grid-column: 5 / span 8;
}

.custom-table-toolbar .toolbar-right > .col-9:only-child {
  -ms-grid-column: 4;
  -ms-grid-column-span: 9;
  grid-column: 4 / span 9;
}

.custom-table-toolbar .toolbar-right > .col-10:only-child {
  -ms-grid-column: 3;
  -ms-grid-column-span: 10;
  grid-column: 3 / span 10;
}

.custom-table-toolbar .toolbar-right > .col-11:only-child {
  -ms-grid-column: 2;
  -ms-grid-column-span: 11;
  grid-column: 2 / span 11;
}

.custom-table-toolbar .toolbar-right > .col-12:only-child {
  -ms-grid-column: 1;
  -ms-grid-column-span: 12;
  grid-column: 1 / span 12;
}

@media (max-width: 1024px) {
  .custom-table-toolbar {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .custom-table-toolbar .toolbar-left,
  .custom-table-toolbar .toolbar-right,
  .custom-table-toolbar .toolbar-full {
    width: 100%;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .custom-table-toolbar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  .custom-table-toolbar .toolbar-left,
  .custom-table-toolbar .toolbar-right,
  .custom-table-toolbar .toolbar-full {
    width: 100%;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
    -ms-grid-columns: (minmax(0, 1fr))[12];
        grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .custom-table-toolbar .toolbar-left .col-1,
  .custom-table-toolbar .toolbar-left .col-2,
  .custom-table-toolbar .toolbar-left .col-3,
  .custom-table-toolbar .toolbar-left .col-4,
  .custom-table-toolbar .toolbar-left .col-5,
  .custom-table-toolbar .toolbar-left .col-6,
  .custom-table-toolbar .toolbar-left .col-7,
  .custom-table-toolbar .toolbar-left .col-8,
  .custom-table-toolbar .toolbar-left .col-9,
  .custom-table-toolbar .toolbar-left .col-10,
  .custom-table-toolbar .toolbar-left .col-11,
  .custom-table-toolbar .toolbar-left .col-12,
  .custom-table-toolbar .toolbar-right .col-1,
  .custom-table-toolbar .toolbar-right .col-2,
  .custom-table-toolbar .toolbar-right .col-3,
  .custom-table-toolbar .toolbar-right .col-4,
  .custom-table-toolbar .toolbar-right .col-5,
  .custom-table-toolbar .toolbar-right .col-6,
  .custom-table-toolbar .toolbar-right .col-7,
  .custom-table-toolbar .toolbar-right .col-8,
  .custom-table-toolbar .toolbar-right .col-9,
  .custom-table-toolbar .toolbar-right .col-10,
  .custom-table-toolbar .toolbar-right .col-11,
  .custom-table-toolbar .toolbar-right .col-12,
  .custom-table-toolbar .toolbar-full .col-1,
  .custom-table-toolbar .toolbar-full .col-2,
  .custom-table-toolbar .toolbar-full .col-3,
  .custom-table-toolbar .toolbar-full .col-4,
  .custom-table-toolbar .toolbar-full .col-5,
  .custom-table-toolbar .toolbar-full .col-6,
  .custom-table-toolbar .toolbar-full .col-7,
  .custom-table-toolbar .toolbar-full .col-8,
  .custom-table-toolbar .toolbar-full .col-9,
  .custom-table-toolbar .toolbar-full .col-10,
  .custom-table-toolbar .toolbar-full .col-11,
  .custom-table-toolbar .toolbar-full .col-12 {
    grid-column: span 6;
  }
  .custom-table-toolbar .toolbar-left > [class^="col-"]:last-child:nth-child(odd),
  .custom-table-toolbar .toolbar-left > [class*=" col-"]:last-child:nth-child(odd),
  .custom-table-toolbar .toolbar-right > [class^="col-"]:last-child:nth-child(odd),
  .custom-table-toolbar .toolbar-right > [class*=" col-"]:last-child:nth-child(odd),
  .custom-table-toolbar .toolbar-full > [class^="col-"]:last-child:nth-child(odd),
  .custom-table-toolbar .toolbar-full > [class*=" col-"]:last-child:nth-child(odd) {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .custom-table-toolbar .toolbar-left .col-1,
  .custom-table-toolbar .toolbar-left .col-2,
  .custom-table-toolbar .toolbar-left .col-3,
  .custom-table-toolbar .toolbar-left .col-4,
  .custom-table-toolbar .toolbar-left .col-5,
  .custom-table-toolbar .toolbar-left .col-6,
  .custom-table-toolbar .toolbar-left .col-7,
  .custom-table-toolbar .toolbar-left .col-8,
  .custom-table-toolbar .toolbar-left .col-9,
  .custom-table-toolbar .toolbar-left .col-10,
  .custom-table-toolbar .toolbar-left .col-11,
  .custom-table-toolbar .toolbar-left .col-12,
  .custom-table-toolbar .toolbar-right .col-1,
  .custom-table-toolbar .toolbar-right .col-2,
  .custom-table-toolbar .toolbar-right .col-3,
  .custom-table-toolbar .toolbar-right .col-4,
  .custom-table-toolbar .toolbar-right .col-5,
  .custom-table-toolbar .toolbar-right .col-6,
  .custom-table-toolbar .toolbar-right .col-7,
  .custom-table-toolbar .toolbar-right .col-8,
  .custom-table-toolbar .toolbar-right .col-9,
  .custom-table-toolbar .toolbar-right .col-10,
  .custom-table-toolbar .toolbar-right .col-11,
  .custom-table-toolbar .toolbar-right .col-12,
  .custom-table-toolbar .toolbar-full .col-1,
  .custom-table-toolbar .toolbar-full .col-2,
  .custom-table-toolbar .toolbar-full .col-3,
  .custom-table-toolbar .toolbar-full .col-4,
  .custom-table-toolbar .toolbar-full .col-5,
  .custom-table-toolbar .toolbar-full .col-6,
  .custom-table-toolbar .toolbar-full .col-7,
  .custom-table-toolbar .toolbar-full .col-8,
  .custom-table-toolbar .toolbar-full .col-9,
  .custom-table-toolbar .toolbar-full .col-10,
  .custom-table-toolbar .toolbar-full .col-11,
  .custom-table-toolbar .toolbar-full .col-12 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  [class^="col-"]:empty {
    display: none;
  }
}

.table-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 42px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 100%;
  max-width: 350px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.table-search--compact {
  max-width: 280px;
}

.table-search:focus-within {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.table-search i {
  color: #94a3b8;
  font-size: 12px;
}

.table-search input {
  background: none;
  border: none;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: var(--text-muted);
  font-size: 12px;
  outline: none;
  width: 100%;
}

.table-search input::-webkit-input-placeholder {
  color: #94a3b8;
}

.table-search input:-ms-input-placeholder {
  color: #94a3b8;
}

.table-search input::-ms-input-placeholder {
  color: #94a3b8;
}

.table-search input::placeholder {
  color: #94a3b8;
}

.bulk-actions {
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  background: #f8fafc;
  padding: 0px 10px;
  height: 42px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  -webkit-animation: fadeSlide 0.2s ease forwards;
          animation: fadeSlide 0.2s ease forwards;
}

.bulk-actions.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.bulk-actions .bulk-count {
  font-size: 13.5px;
  color: var(--text-main);
  margin-right: 8px;
}

.bulk-actions .toolbar-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* ── DATA TABLE ─────────────────────────────────────────── */
.data-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  /* iOS için smooth scroll */
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg);
  border-bottom: 1px solid var(--border) !important;
  white-space: nowrap;
  outline: none !important;
  cursor: default !important;
}

.data-table th:hover, .data-table th:active {
  outline: none !important;
}

.data-table th.sorting:hover, .data-table th.sorting_asc:hover, .data-table th.sorting_desc:hover {
  background: #f8fafc;
}

.data-table th i,
.data-table th .dt-column-order {
  margin-left: 5px;
  opacity: 0.5;
  cursor: pointer;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  -webkit-transition: background var(--dur);
  transition: background var(--dur);
}

.data-table tbody tr:hover {
  background: var(--bg);
}

.th-check {
  width: 40px;
}

/* ── DT 2.x Overrides ───────────────────────────────────── */
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
  border-bottom: 1px solid #e2e8f0 !important;
}

table.dataTable > tbody > tr > th,
table.dataTable > tbody > tr > td {
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Disable the default ordering background highlight columns */
table.dataTable.display > tbody > tr > .sorting_1,
table.dataTable.order-column.hover > tbody > tr:hover > .sorting_1,
table.dataTable.display > tbody > tr > .sorting_2,
table.dataTable.display > tbody > tr > .sorting_3 {
  background-color: transparent !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

/* ── Checkbox styling ───────────────────────────────────── */
table.dataTable input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  margin: 0;
  vertical-align: middle;
}

table.dataTable input[type="checkbox"]:hover {
  border-color: var(--teal);
}

table.dataTable input[type="checkbox"]:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}

table.dataTable input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.tr-animate {
  -webkit-animation: trIn 0.35s var(--ease) both;
          animation: trIn 0.35s var(--ease) both;
}

@-webkit-keyframes trIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(-10px);
            transform: translateX(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes trIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(-10px);
            transform: translateX(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

.patient-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  -webkit-transition: color var(--dur);
  transition: color var(--dur);
}

.patient-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.data-table td:nth-child(2) {
  white-space: nowrap;
}

/* Table extras */
.td-link {
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
}

.td-link:hover {
  text-decoration: underline;
}

.td-orange {
  color: var(--orange);
  font-weight: 700;
}

.td-amber {
  color: var(--amber);
  font-weight: 700;
}

.td-zero {
  color: var(--text-muted);
}

.td-red {
  color: var(--red);
  font-weight: 700;
}

.tr--total td {
  background: var(--bg);
  font-weight: 700;
  border-top: 2px solid var(--border);
}

/* Table footer */
.table-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
}

.table-footer .table-count {
  font-size: 12px;
  color: var(--text-muted);
}

.table-footer .pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.table-footer .pagination .pag-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
}

.table-footer .pagination .pag-btn:hover:not([disabled]) {
  background: var(--teal-light);
  color: var(--teal);
}

.table-footer .pagination .pag-btn.active {
  background: var(--teal);
  color: #fff;
}

.table-footer .pagination .pag-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Override DataTables default stylesheet ─────────────── */
table.dataTable {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
}

/* Header */
table.dataTable thead th,
table.dataTable thead td {
  padding: 11px 14px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid var(--border) !important;
  border-top: none !important;
  white-space: nowrap !important;
}

/* Sort icons */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  color: var(--text-muted) !important;
  opacity: 0.6 !important;
}

table.dataTable thead .sorting:after {
  content: "\f0dc" !important;
}

table.dataTable thead .sorting_asc:after {
  content: "\f0de" !important;
  color: var(--teal) !important;
  opacity: 1 !important;
}

table.dataTable thead .sorting_desc:after {
  content: "\f0dd" !important;
  color: var(--teal) !important;
  opacity: 1 !important;
}

table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  background-color: var(--teal-light) !important;
  color: var(--teal) !important;
  border-bottom: 2px solid var(--teal) !important;
}

/* Body cells */
table.dataTable tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  vertical-align: middle !important;
  font-size: 13px !important;
}

table.dataTable tbody tr:last-child td {
  border-bottom: none !important;
}

/* Row hover */
table.dataTable tbody tr:hover td,
table.dataTable.display tbody tr:hover td,
table.dataTable.stripe tbody tr:hover td {
  background: var(--teal-light) !important;
}

/* Striped */
table.dataTable.stripe tbody tr.odd td,
table.dataTable.display tbody tr.odd td {
  background: #fafcfb !important;
}

table.dataTable.stripe tbody tr.odd:hover td,
table.dataTable.display tbody tr.odd:hover td {
  background: var(--teal-light) !important;
}

/* Selected row */
table.dataTable tbody tr.selected td {
  background: var(--teal-mid) !important;
}

/* ── dt-top toolbar ─────────────────────────────────────── */
.dt-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.dt-toolbar-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.dt-toolbar-center {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.dt-toolbar-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

/* ── Length select ──────────────────────────────────────── */
.dataTables_length select,
.dataTables_length label {
  font-family: "Poppins", sans-serif !important;
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.dataTables_length select {
  padding: 5px 10px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg) !important;
  outline: none !important;
  cursor: pointer;
  -webkit-transition: border-color var(--dur);
  transition: border-color var(--dur);
}

.dataTables_length select:focus {
  border-color: var(--teal) !important;
}

/* ── Search input ───────────────────────────────────────── */
.dataTables_filter {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  gap: 8px !important;
}

.dataTables_filter label {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  font-family: "Poppins", sans-serif !important;
  background: var(--bg) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 12px !important;
  -webkit-transition: all var(--dur) !important;
  transition: all var(--dur) !important;
}

.dataTables_filter label:focus-within {
  border-color: var(--teal) !important;
  background: #fff !important;
  -webkit-box-shadow: 0 0 0 3px var(--teal-glow) !important;
          box-shadow: 0 0 0 3px var(--teal-glow) !important;
}

.dataTables_filter label::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  color: var(--text-muted);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.dataTables_filter input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 7px 0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 13px !important;
  color: var(--text-primary) !important;
  width: 200px !important;
}

.dataTables_filter input::-webkit-input-placeholder {
  color: var(--text-muted) !important;
}

.dataTables_filter input:-ms-input-placeholder {
  color: var(--text-muted) !important;
}

.dataTables_filter input::-ms-input-placeholder {
  color: var(--text-muted) !important;
}

.dataTables_filter input::placeholder {
  color: var(--text-muted) !important;
}

/* ── Buttons ────────────────────────────────────────────── */
.dt-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
}

.dt-btn,
.dt-button {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  -webkit-transition: all var(--dur) !important;
  transition: all var(--dur) !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  text-shadow: none !important;
}

.dt-btn:hover,
.dt-button:hover {
  border-color: var(--teal) !important;
  color: var(--teal) !important;
  background: var(--teal-light) !important;
}

.dt-btn:active,
.dt-button:active {
  -webkit-transform: scale(0.97) !important;
          transform: scale(0.97) !important;
}

.dt-btn--csv i {
  color: #16a34a;
}

.dt-btn--excel i {
  color: #15803d;
}

.dt-btn--print i {
  color: var(--text-secondary);
}

.dt-btn--cols i {
  color: var(--blue);
}

/* Colvis dropdown */
.dt-button-collection {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  -webkit-box-shadow: var(--shadow-lg) !important;
          box-shadow: var(--shadow-lg) !important;
  padding: 6px !important;
  background: #fff !important;
  font-family: "Poppins", sans-serif !important;
}

.dt-button-collection .dt-button {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  width: 100% !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 12px !important;
  margin-bottom: 2px !important;
}

.dt-button-collection .dt-button.active {
  background: var(--teal-light) !important;
  color: var(--teal) !important;
}

/* ── Table wrapper ──────────────────────────────────────── */
.dt-table-wrap {
  overflow-x: auto;
}

.dt-table-wrap::-webkit-scrollbar {
  height: 5px;
}

.dt-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* ── Bottom bar ─────────────────────────────────────────── */
/* ── Pagination ─────────────────────────────────────────── */
.dt-bottom {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  -webkit-box-pack: justify !important;
      -ms-flex-pack: justify !important;
          justify-content: space-between !important;
  padding: 16px 24px !important;
  background: #fff !important;
  border-top: 1px solid #e2e8f0 !important;
  -ms-flex-wrap: wrap !important;
      flex-wrap: wrap !important;
  gap: 16px !important;
  border-radius: 0 0 var(--radius) var(--radius);
}

.dataTables_info,
.dt-info {
  font-family: inherit !important;
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.dataTables_paginate,
.dt-paging {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  gap: 4px !important;
}

.dataTables_paginate .paginate_button,
.dt-paging .dt-paging-button {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 4px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  -webkit-transition: all 0.2s ease !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.dataTables_paginate .paginate_button.disabled, .dataTables_paginate .paginate_button.disabled:hover,
.dt-paging .dt-paging-button.disabled,
.dt-paging .dt-paging-button.disabled:hover {
  color: #cbd5e1 !important;
  background: transparent !important;
  cursor: not-allowed !important;
}

div.dt-container .dataTables_paginate .paginate_button:not(.disabled):hover,
div.dt-container .dt-paging .dt-paging-button:not(.disabled):hover {
  background: #f8fafc !important;
  color: var(--teal) !important;
}

div.dt-container .dataTables_paginate .paginate_button.current,
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dataTables_paginate .paginate_button.current:hover,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--teal) !important;
  color: #ffffff !important;
  border-color: var(--teal) !important;
  font-weight: 600 !important;
  -webkit-box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2) !important;
          box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2) !important;
}

div.dt-container .dataTables_paginate .paginate_button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

div.dt-container .dataTables_paginate .paginate_button.disabled:hover,
div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text-secondary) !important;
}

/* GLOBAL WRAPPER HEIGHT FIX */
.dataTables_wrapper,
.dt-container {
  position: relative !important;
}

/* Hide Top Processing Indicator */
.dt-top .dt-processing,
.dt-top .dataTables_processing {
  display: none !important;
}

/* THE INNER WHITE PILL */
.dataTables_info,
.dt-info {
  font-family: inherit !important;
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.dataTables_paginate,
.dt-paging {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  gap: 4px !important;
}

.dt-processing-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-box-shadow: var(--shadow-lg);
          box-shadow: var(--shadow-lg);
  padding: 14px 28px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  gap: 12px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

.dt-spinner {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border: 2.5px solid var(--teal-light) !important;
  border-top-color: var(--teal) !important;
  border-radius: 50% !important;
  -webkit-animation: spin 0.7s linear infinite !important;
          animation: spin 0.7s linear infinite !important;
  -ms-flex-negative: 0 !important;
      flex-shrink: 0 !important;
  display: block !important;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

/* ── Empty / zero records ───────────────────────────────── */
.dt-empty,
.dataTables_empty {
  text-align: center !important;
  padding: 40px !important;
  color: var(--text-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  /* The icon is injected as <i> by DataTables empty language setting */
}

.dt-empty i,
.dataTables_empty i {
  font-size: 36px;
  opacity: 0.4;
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
}

.dt-empty p,
.dataTables_empty p {
  margin: 0;
}

/* ── Column visibility menu ─────────────────────────────── */
div.dt-button-info {
  font-family: "Poppins", sans-serif !important;
  border-radius: var(--radius) !important;
  -webkit-box-shadow: var(--shadow-lg) !important;
          box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
}

/* ── dt-col-check ───────────────────────────────────────── */
.dt-col-check {
  width: 36px !important;
  text-align: center !important;
}

.dt-col-check input[type="checkbox"],
.row-check {
  accent-color: var(--teal);
  cursor: pointer;
}

/* ── Selected row highlight ─────────────────────────────── */
.row-approved {
  background: var(--green-light) !important;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}

/* ── data-table-wrap overrides ──────────────────────────── */
/* Make sure our card wrapper works with DT */
.data-table-wrap .dataTables_wrapper {
  font-family: "Poppins", sans-serif;
  position: relative;
  min-height: 300px;
  /* Prevents visual collapse while loading/empty, allows loader to center properly */
}

.data-table-wrap .dataTables_wrapper .dt-top {
  border-radius: var(--radius) var(--radius) 0 0;
}

.data-table-wrap .dataTables_wrapper .dt-bottom {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Remove DataTables default padding from wrapper */
.dataTables_wrapper.no-footer .dataTables_scrollBody {
  border-bottom: none !important;
}

.dt-actions {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}

.text-end .dt-actions {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.text-center .dt-actions {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.text-start .dt-actions {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.action-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.action-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.action-btn.action-btn--danger:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.action-btn.action-btn--text {
  width: auto !important;
  padding: 0 12px !important;
  font-weight: 500;
  color: var(--teal-dark);
  /* Blue tint for view buttons */
  background: #f8fafc;
  border-color: #e2e8f0;
  gap: 6px;
  font-size: 11px;
}

.action-btn i {
  font-size: 12px;
}

table.dataTable thead > tr > th.dt-orderable-asc .dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order:before,
table.dataTable thead > tr > td.dt-orderable-asc .dt-column-order:before,
table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order:before {
  position: absolute;
  display: block;
  bottom: 50%;
  content: "\25B2";
  content: "\25B2" /"";
}

table.dataTable thead > tr > th.dt-orderable-desc .dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order:after,
table.dataTable thead > tr > td.dt-orderable-desc .dt-column-order:after,
table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order:after {
  position: absolute;
  display: block;
  top: 50%;
  content: "\25BC";
  content: "\25BC" /"";
}

table.dataTable thead > tr > th.dt-orderable-asc .dt-column-order, table.dataTable thead > tr > th.dt-orderable-desc .dt-column-order, table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order, table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order,
table.dataTable thead > tr > td.dt-orderable-asc .dt-column-order,
table.dataTable thead > tr > td.dt-orderable-desc .dt-column-order,
table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order,
table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order {
  position: relative;
  width: 12px;
  height: 20px;
}

table.dataTable thead > tr > th.dt-orderable-asc .dt-column-order:before, table.dataTable thead > tr > th.dt-orderable-asc .dt-column-order:after, table.dataTable thead > tr > th.dt-orderable-desc .dt-column-order:before, table.dataTable thead > tr > th.dt-orderable-desc .dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order:after,
table.dataTable thead > tr > td.dt-orderable-asc .dt-column-order:before,
table.dataTable thead > tr > td.dt-orderable-asc .dt-column-order:after,
table.dataTable thead > tr > td.dt-orderable-desc .dt-column-order:before,
table.dataTable thead > tr > td.dt-orderable-desc .dt-column-order:after,
table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order:before,
table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order:after,
table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order:before,
table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order:after {
  left: 0;
  opacity: 0.3;
  line-height: 9px;
  font-size: 0.8em;
}

table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc,
table.dataTable thead > tr > td.dt-orderable-asc,
table.dataTable thead > tr > td.dt-orderable-desc {
  cursor: pointer;
}

table.dataTable thead > tr > th.dt-orderable-asc:hover, table.dataTable thead > tr > th.dt-orderable-desc:hover,
table.dataTable thead > tr > td.dt-orderable-asc:hover,
table.dataTable thead > tr > td.dt-orderable-desc:hover {
  outline: 2px solid rgba(0, 0, 0, 0.05);
  outline-offset: -2px;
}

table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order:before,
table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order:before {
  opacity: 0.9;
}

table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order:after,
table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order:after {
  opacity: 0.9;
}

table.dataTable thead > tr > th.dt-orderable-none  .dt-column-order:empty,
table.dataTable thead > tr > td.dt-orderable-none  .dt-column-order:empty {
  display: none;
}

table.dataTable thead > tr > th.sorting-desc-disabled .dt-column-order:after,
table.dataTable thead > tr > td.sorting-desc-disabled .dt-column-order:after {
  display: none;
}

table.dataTable thead > tr > th.sorting-asc-disabled .dt-column-order:before,
table.dataTable thead > tr > td.sorting-asc-disabled .dt-column-order:before {
  display: none;
}

table.dataTable thead > tr > th:active,
table.dataTable thead > tr > td:active {
  outline: none;
}

#dt-patients td, #dt-activities td,
#dt-patients th,
#dt-activities th {
  white-space: nowrap !important;
}

#dt-patients thead th.sticky, #dt-activities thead th.sticky, #dt-patients thead th:nth-child(1), #dt-patients thead th:nth-child(2), #dt-activities thead th:nth-child(1) {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
}

#dt-patients tbody td.sticky, #dt-activities tbody td.sticky,
#dt-patients tbody td:nth-child(1),
#dt-patients tbody td:nth-child(2),
#dt-activities tbody td:nth-child(1) {
  position: -webkit-sticky;
  position: sticky;
  z-index: 2;
  background: #ffffff;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

#dt-patients tbody td.sticky.border-right, #dt-activities tbody td.sticky.border-right,
#dt-patients tbody td.border-right:nth-child(1),
#dt-patients tbody td:nth-child(2),
#dt-activities tbody td:nth-child(1) {
  border-right: 1px solid #e2e8f0;
}

#dt-patients tbody td.sticky.border-right::after, #dt-activities tbody td.sticky.border-right::after,
#dt-patients tbody td.border-right:nth-child(1)::after,
#dt-patients tbody td:nth-child(2)::after, #dt-activities tbody td:nth-child(1)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: #e2e8f0;
  z-index: 3;
}

#dt-patients thead th:nth-child(1),
#dt-patients tbody td:nth-child(1) {
  left: 0;
}

#dt-patients thead th:nth-child(2),
#dt-patients tbody td:nth-child(2) {
  left: 36px;
}

#dt-activities thead th:nth-child(1),
#dt-activities tbody td:nth-child(1) {
  left: 0;
}

/* --- AUTHENTICATION PAGES (LOGIN, 2FA, FORGOT PASSWORD) --- */
.page-auth {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  /* Split Layout */
  /* Form Container */
  /* 2FA Digit Inputs */
}

.page-auth__left {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 40px;
  color: #fff;
  /* Decorative Shapes */
}

.page-auth__left .shape-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vh;
  height: 50vh;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  -webkit-filter: blur(40px);
          filter: blur(40px);
}

.page-auth__left .shape-2 {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 60vh;
  height: 60vh;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-filter: blur(50px);
          filter: blur(50px);
}

.page-auth__left .auth-brand {
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  gap: 15px;
}

.page-auth__left .auth-brand h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
}

.page-auth__left .auth-brand p {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  max-width: 400px;
  line-height: 1.6;
}

.page-auth__left .auth-brand .brand-icon {
  font-size: 50px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.2);
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-auth__left .auth-brand .brand-icon i {
  color: #fff;
}

.page-auth__left .auth-brand .brand-icon img {
  padding: 10px;
}

.page-auth__right {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 500px;
          flex: 0 0 500px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #fff;
  padding: 60px;
  -webkit-box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
          box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
}

.page-auth .auth-box {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.page-auth .auth-box__header {
  margin-bottom: 35px;
  text-align: left;
  /* Automatically center headers that feature a top icon (like 2FA) */
  /* Recovered 2FA Security Ring Icon Stylings */
}

.page-auth .auth-box__header:has(> div:first-child) {
  text-align: center;
}

.page-auth .auth-box__header > div:first-child {
  width: 60px;
  height: 60px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}

.page-auth .auth-box__header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-auth .auth-box__header p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.page-auth .auth-box__alert {
  display: none;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.page-auth .auth-box__alert--success {
  background: #dcfce7;
  color: #166534;
}

.page-auth .auth-box__alert--danger {
  background: #fee2e2;
  color: #991b1b;
}

.page-auth .auth-box__alert--warning {
  background: #fef3c7;
  color: #92400e;
}

.page-auth .auth-box .qr-section {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.page-auth .auth-box .qr-section__img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 4px solid #f1f5f9;
  border-radius: 12px;
  display: block;
}

.page-auth .auth-box .qr-section__desc {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.page-auth .auth-box .qr-section__secret {
  color: #0f172a;
  font-family: monospace;
}

.page-auth .auth-box__form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

.page-auth .auth-box .form-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  position: relative;
}

.page-auth .auth-box .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.page-auth .auth-box .form-group .input-wrapper {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-auth .auth-box .form-group .input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 16px;
  -webkit-transition: color var(--dur);
  transition: color var(--dur);
}

.page-auth .auth-box .form-group .input-wrapper .toggle-password {
  left: auto;
  right: 16px;
  cursor: pointer;
}

.page-auth .auth-box .form-group .input-wrapper .toggle-password:hover {
  color: var(--teal);
}

.page-auth .auth-box .form-group input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 45px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
}

.page-auth .auth-box .form-group input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  -webkit-box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.page-auth .auth-box .form-group input:focus + i,
.page-auth .auth-box .form-group input:focus ~ i:not(.toggle-password) {
  color: var(--teal);
}

.page-auth .auth-box .form-group input::-webkit-input-placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.page-auth .auth-box .form-group input:-ms-input-placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.page-auth .auth-box .form-group input::-ms-input-placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.page-auth .auth-box .form-group input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.page-auth .auth-box .form-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: -5px;
  margin-bottom: 5px;
}

.page-auth .auth-box .form-options .remember-me {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  cursor: pointer;
}

.page-auth .auth-box .form-options .remember-me input[type="checkbox"] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  display: -ms-grid;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.page-auth .auth-box .form-options .remember-me input[type="checkbox"]::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  font-size: 10px;
  color: white;
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transition: -webkit-transform var(--dur);
  transition: -webkit-transform var(--dur);
  transition: transform var(--dur);
  transition: transform var(--dur), -webkit-transform var(--dur);
}

.page-auth .auth-box .form-options .remember-me input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}

.page-auth .auth-box .form-options .remember-me input[type="checkbox"]:checked::before {
  -webkit-transform: scale(1);
          transform: scale(1);
}

.page-auth .auth-box .form-options .remember-me span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.page-auth .auth-box .form-options .forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  -webkit-transition: color var(--dur);
  transition: color var(--dur);
}

.page-auth .auth-box .form-options .forgot-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.page-auth .auth-box .auth-btn {
  width: 100%;
  height: 50px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  -webkit-box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
          box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
  margin-top: 10px;
}

.page-auth .auth-box .auth-btn:hover {
  background: var(--teal-dark);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
          box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
}

.page-auth .auth-box .auth-btn i {
  -webkit-transition: -webkit-transform var(--dur);
  transition: -webkit-transform var(--dur);
  transition: transform var(--dur);
  transition: transform var(--dur), -webkit-transform var(--dur);
}

.page-auth .auth-box .auth-btn:hover i {
  -webkit-transform: translateX(4px);
          transform: translateX(4px);
}

.page-auth .auth-box .back-to-login {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 30px;
}

.page-auth .auth-box .back-to-login a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -webkit-transition: color var(--dur);
  transition: color var(--dur);
}

.page-auth .auth-box .back-to-login a:hover {
  color: var(--teal);
}

.page-auth .digit-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 10px;
}

.page-auth .digit-group input {
  width: 50px;
  height: 60px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: inherit;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  padding: 0;
}

.page-auth .digit-group input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  -webkit-box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.page-auth .digit-group input.filled {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.05);
}

.page-auth .resend-code {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.page-auth .resend-code a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
}

.page-auth .resend-code a:hover {
  text-decoration: underline;
}

/* ── PATIENT DETAIL ─────────────────────────────────────── */
.page-patient-detail {
  /* =========================================================
      NEW MASTER PATIENT GRID (V2 ARCHITECTURE)
      ========================================================= */
  /* --- Vertical Tabs Layout (Unified Card) --- */
  /* Master Tabs Nav — Desktop/Tablet: dikey liste */
  /* Master Tabs Nav — MOBiL: yatay scroll pill */
}

.page-patient-detail .back-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.page-patient-detail .patient-master-topbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}

.page-patient-detail .patient-master-topbar .patient-nav-left,
.page-patient-detail .patient-master-topbar .patient-nav-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-patient-detail .patient-master-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}

.page-patient-detail .pm-col-right {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 16px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

@media (max-width: 1100px) {
  .page-patient-detail .pm-col-right {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-patient-detail .pm-col {
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  -webkit-transition: -webkit-box-shadow var(--dur);
  transition: -webkit-box-shadow var(--dur);
  transition: box-shadow var(--dur);
  transition: box-shadow var(--dur), -webkit-box-shadow var(--dur);
  position: relative;
  z-index: 1;
}

.page-patient-detail .pm-col:hover {
  -webkit-box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.page-patient-detail .pm-col--identity {
  padding: 0;
  border-radius: 16px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.page-patient-detail .pm-col--identity.is-hot-lead .pm-identity-banner {
  background: linear-gradient(135deg, #1a0000, #7f1d1d, #dc2626, #7f1d1d, #1a0000);
  background-size: 300% 300%;
  -webkit-animation: hotGradient 4s ease infinite;
          animation: hotGradient 4s ease infinite;
}

@-webkit-keyframes hotGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hotGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.page-patient-detail .pm-col--identity.is-hot-lead .pm-btn-whatsapp-circle {
  background: #b91c1c;
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: visible;
  -webkit-animation: hotColorCycle 2s infinite, hotShake 1.4s infinite, hotPulse 1.2s infinite, hotBorderSpin 1.2s infinite;
          animation: hotColorCycle 2s infinite, hotShake 1.4s infinite, hotPulse 1.2s infinite, hotBorderSpin 1.2s infinite;
}

.page-patient-detail .pm-col--identity.is-hot-lead .pm-btn-whatsapp-circle::before {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), color-stop(50%, rgba(255, 255, 255, 0.4)), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  -webkit-animation: sheen 0.8s infinite;
          animation: sheen 0.8s infinite;
}

.page-patient-detail .pm-col--identity.is-hot-lead .pm-btn-whatsapp-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  -webkit-animation: hotRing 1.4s ease-out infinite;
          animation: hotRing 1.4s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}

.page-patient-detail .pm-col--identity.is-hot-lead .pm-btn-whatsapp-circle:hover {
  background: #991b1b;
  -webkit-box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6);
          box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6);
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

@-webkit-keyframes hotColorCycle {
  0% {
    background: #7f1d1d;
  }
  20% {
    background: #b91c1c;
  }
  40% {
    background: #dc2626;
  }
  60% {
    background: #b91c1c;
  }
  80% {
    background: #991b1b;
  }
  100% {
    background: #7f1d1d;
  }
}

@keyframes hotColorCycle {
  0% {
    background: #7f1d1d;
  }
  20% {
    background: #b91c1c;
  }
  40% {
    background: #dc2626;
  }
  60% {
    background: #b91c1c;
  }
  80% {
    background: #991b1b;
  }
  100% {
    background: #7f1d1d;
  }
}

@-webkit-keyframes hotPulse {
  0%,
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8);
            box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8);
  }
  50% {
    -webkit-box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
            box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

@keyframes hotPulse {
  0%,
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8);
            box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8);
  }
  50% {
    -webkit-box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
            box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

@-webkit-keyframes hotBorderSpin {
  0% {
    border-color: rgba(255, 255, 255, 0.4);
  }
  50% {
    border-color: white;
  }
  100% {
    border-color: rgba(255, 255, 255, 0.4);
  }
}

@keyframes hotBorderSpin {
  0% {
    border-color: rgba(255, 255, 255, 0.4);
  }
  50% {
    border-color: white;
  }
  100% {
    border-color: rgba(255, 255, 255, 0.4);
  }
}

@-webkit-keyframes hotShake {
  0%,
  100% {
    -webkit-transform: translateX(0) scale(1);
            transform: translateX(0) scale(1);
  }
  10% {
    -webkit-transform: translateX(-2px) rotate(-2deg) scale(1.05);
            transform: translateX(-2px) rotate(-2deg) scale(1.05);
  }
  20% {
    -webkit-transform: translateX(2px) rotate(2deg) scale(1.05);
            transform: translateX(2px) rotate(2deg) scale(1.05);
  }
  30% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
            transform: translateX(-2px) rotate(-1deg);
  }
  40% {
    -webkit-transform: translateX(2px) rotate(1deg);
            transform: translateX(2px) rotate(1deg);
  }
  50% {
    -webkit-transform: translateX(0) scale(1.08);
            transform: translateX(0) scale(1.08);
  }
  60% {
    -webkit-transform: translateX(-1px);
            transform: translateX(-1px);
  }
  70% {
    -webkit-transform: translateX(1px);
            transform: translateX(1px);
  }
  80% {
    -webkit-transform: translateX(0) scale(1.05);
            transform: translateX(0) scale(1.05);
  }
}

@keyframes hotShake {
  0%,
  100% {
    -webkit-transform: translateX(0) scale(1);
            transform: translateX(0) scale(1);
  }
  10% {
    -webkit-transform: translateX(-2px) rotate(-2deg) scale(1.05);
            transform: translateX(-2px) rotate(-2deg) scale(1.05);
  }
  20% {
    -webkit-transform: translateX(2px) rotate(2deg) scale(1.05);
            transform: translateX(2px) rotate(2deg) scale(1.05);
  }
  30% {
    -webkit-transform: translateX(-2px) rotate(-1deg);
            transform: translateX(-2px) rotate(-1deg);
  }
  40% {
    -webkit-transform: translateX(2px) rotate(1deg);
            transform: translateX(2px) rotate(1deg);
  }
  50% {
    -webkit-transform: translateX(0) scale(1.08);
            transform: translateX(0) scale(1.08);
  }
  60% {
    -webkit-transform: translateX(-1px);
            transform: translateX(-1px);
  }
  70% {
    -webkit-transform: translateX(1px);
            transform: translateX(1px);
  }
  80% {
    -webkit-transform: translateX(0) scale(1.05);
            transform: translateX(0) scale(1.05);
  }
}

@-webkit-keyframes hotRing {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0.7;
  }
  100% {
    -webkit-transform: scale(2.4);
            transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes hotRing {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0.7;
  }
  100% {
    -webkit-transform: scale(2.4);
            transform: scale(2.4);
    opacity: 0;
  }
}

.page-patient-detail .pm-col--identity .pm-identity-banner {
  background: #36c35a;
  background: -webkit-gradient(linear, left top, right top, from(#36c35a), color-stop(50%, #57c785), to(#35c0d4));
  background: linear-gradient(90deg, #36c35a 0%, #57c785 50%, #35c0d4 100%);
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.page-patient-detail .pm-col--identity .pm-identity-banner::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-banner-deco {
  position: absolute;
  right: 120px;
  bottom: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-avatar-wrap {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  z-index: 2;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-avatar-wrap .pm-btn-whatsapp-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-avatar-wrap .pm-btn-whatsapp-circle::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), color-stop(50%, rgba(255, 255, 255, 0.25)), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  -webkit-transform: rotateZ(60deg) translate(-5em, 7.5em);
          transform: rotateZ(60deg) translate(-5em, 7.5em);
  -webkit-animation: sheen 3s infinite;
          animation: sheen 3s infinite;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-avatar-wrap .pm-btn-whatsapp-circle:hover {
  background: #1ebc59;
  -webkit-box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
          box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  -webkit-transform: scale(1.06);
          transform: scale(1.06);
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  z-index: 2;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-name {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-branches {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-branches .pm-branch-icon {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: default;
  position: relative;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-branches .pm-branch-icon i {
  font-size: 10px;
  opacity: 0.8;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-branches .pm-branch-icon::after {
  content: attr(data-desc);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  z-index: 10;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-branches .pm-branch-icon:hover::after {
  opacity: 1;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  z-index: 2;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 3px;
  min-width: 200px;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group .pm-select-label {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group select,
.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group .form-select {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 28px 6px 10px;
  width: 100%;
  cursor: pointer;
  outline: none;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group select option,
.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group .form-select option {
  background: #1e293b;
  color: #fff;
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group select:hover,
.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group .form-select:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group select:focus,
.page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group .form-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) and (max-width: 1100px) {
  .page-patient-detail .pm-col--identity .pm-identity-banner {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
  }
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
  }
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group {
    min-width: 140px;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 140px;
            flex: 1 1 140px;
  }
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--identity .pm-identity-banner {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 12px;
    /* 3 select — hepsi alt alta tam genişlik */
  }
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-name-block .pm-identity-name {
    font-size: 14px;
    white-space: normal;
  }
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 8px;
  }
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group {
    width: 100%;
    min-width: 0;
  }
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group select,
  .page-patient-detail .pm-col--identity .pm-identity-banner .pm-identity-selects .pm-select-group .form-select {
    width: 100%;
    font-size: 13px;
  }
}

.page-patient-detail .pm-col--identity .pm-identity-list {
  display: none;
}

.page-patient-detail .pm-col--info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0;
}

.page-patient-detail .pm-col--info .pm-info-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .page-patient-detail .pm-col--info .pm-info-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .page-patient-detail .pm-col--info .pm-info-grid .pm-info-sub:nth-child(odd) {
    border-right: 1px solid #f1f5f9;
    padding-right: 16px;
  }
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--info .pm-info-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .page-patient-detail .pm-col--info .pm-info-grid .pm-info-sub:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }
}

.page-patient-detail .pm-col--info .pm-info-sub {
  padding: 0 16px 0 0;
}

.page-patient-detail .pm-col--info .pm-info-sub:first-child {
  padding-left: 0;
}

.page-patient-detail .pm-col--info .pm-info-sub:last-child {
  padding-right: 0;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--info .pm-info-sub {
    padding: 0 0 12px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
  }
  .page-patient-detail .pm-col--info .pm-info-sub:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

.page-patient-detail .pm-col--info .pm-data-box {
  margin-bottom: 14px;
}

.page-patient-detail .pm-col--info .pm-data-box:last-child {
  margin-bottom: 0;
}

.page-patient-detail .pm-col--info .pm-data-box .pm-data-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 3px;
}

.page-patient-detail .pm-col--info .pm-data-box .pm-data-val {
  font-size: 13px;
  color: var(--teal-dark);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: 500;
}

.page-patient-detail .pm-col--info .pm-data-box .pm-data-val-primary {
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
}

.page-patient-detail .pm-col--info .pm-data-box .pm-data-val-strong {
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 700;
}

.page-patient-detail .pm-col--info .pm-data-box .pm-btn-edit {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  margin-left: 4px;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.page-patient-detail .pm-col--info .pm-data-box .pm-btn-edit:hover {
  color: var(--teal);
}

.page-patient-detail .pm-col--info .pm-info-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--teal);
  border-radius: 2px;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 6px;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-tags span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-tags .pm-tag-healthy {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-radius: 20px;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-tags .pm-tag-standard {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-tags .pm-tag-warn {
  color: var(--teal);
  border: 1px solid var(--teal);
}

.page-patient-detail .pm-col--info .pm-medical-grid .pm-medical-tags .pm-tag-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.page-patient-detail .pm-col--info .pm-contact-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--info .pm-contact-block {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
}

.page-patient-detail .pm-col--info .pm-contact-block .pm-contact-line {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.page-patient-detail .pm-col--info .pm-contact-block .pm-contact-line a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.page-patient-detail .pm-col--info .pm-contact-block .pm-contact-line a:hover {
  text-decoration: underline;
}

.page-patient-detail .pm-col--info .pm-contact-block .pm-contact-line i {
  color: var(--teal);
  font-size: 12px;
}

.page-patient-detail .pm-col--info .pm-contact-block .pm-btn-edit {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.page-patient-detail .pm-col--info .pm-contact-block .pm-btn-edit:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.page-patient-detail .pm-col--finance .pm-fin-stats {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(0, 1fr))[3];
      grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--finance .pm-fin-stats {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    gap: 8px;
  }
}

.page-patient-detail .pm-col--finance .pm-fin-stat {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark {
  background: linear-gradient(135deg, #0d3b5e 0%, #1a5a8a 100%);
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark::after {
  content: "\f153";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -8px;
  bottom: -12px;
  font-size: 64px;
  opacity: 0.07;
  color: #fff;
  pointer-events: none;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--finance .pm-fin-stat--dark::after {
    font-size: 44px;
    right: -4px;
    bottom: -6px;
  }
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark .pm-fin-stat__label {
  color: rgba(255, 255, 255, 0.5);
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark .pm-fin-stat__sub {
  color: rgba(255, 255, 255, 0.35);
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark .pm-fin-stat__val {
  color: #fff;
}

@media (max-width: 1100px) {
  .page-patient-detail .pm-col--finance .pm-fin-stat--dark .pm-fin-stat__val {
    font-size: 20px;
    line-height: 1.1;
  }
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark .click-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark .click-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7dd3fc;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-animation: dot-breathe 1.8s ease-in-out infinite;
          animation: dot-breathe 1.8s ease-in-out infinite;
}

.page-patient-detail .pm-col--finance .pm-fin-stat--dark .click-badge__text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
}

@-webkit-keyframes dot-breathe {
  0%,
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 0.3;
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
  }
}

@keyframes dot-breathe {
  0%,
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    opacity: 0.3;
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
  }
}

.page-patient-detail .pm-col--finance .pm-fin-stat__label {
  font-size: 10px;
  font-weight: 400;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 6px;
}

.page-patient-detail .pm-col--finance .pm-fin-stat__val {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.5px;
  line-height: 1;
  margin: 0 0 4px;
}

@media (max-width: 1100px) {
  .page-patient-detail .pm-col--finance .pm-fin-stat__val {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--finance .pm-fin-stat__val {
    font-size: 20px;
  }
}

.page-patient-detail .pm-col--finance .pm-fin-stat__val--received {
  color: #10b981;
}

.page-patient-detail .pm-col--finance .pm-fin-stat__val--remaining {
  color: #f43f5e;
}

.page-patient-detail .pm-col--finance .pm-fin-stat__sub {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.page-patient-detail .pm-col--finance .pm-fc-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(0, 1fr))[4];
      grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .page-patient-detail .pm-col--finance .pm-fc-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-patient-detail .pm-col--finance .pm-fc-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-patient-detail .pm-col--finance .pm-fc {
  border: 1px solid #e8ecef;
  border-radius: 10px;
  padding: 12px;
  -webkit-transition: -webkit-box-shadow 0.2s;
  transition: -webkit-box-shadow 0.2s;
  transition: box-shadow 0.2s;
  transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
  min-width: 0;
}

.page-patient-detail .pm-col--finance .pm-fc:hover {
  -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
          box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.page-patient-detail .pm-col--finance .pm-fc-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #e8ecef;
}

.page-patient-detail .pm-col--finance .pm-fc-header i {
  font-size: 11px;
  color: var(--teal);
}

.page-patient-detail .pm-col--finance .pm-fc-header .pm-fc-currency {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
}

.page-patient-detail .pm-col--finance .pm-fc-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}

.page-patient-detail .pm-col--finance .pm-fc-row:last-child {
  margin-bottom: 0;
}

.page-patient-detail .pm-col--finance .pm-fc-row .pm-fc-label {
  color: #a0b8c9;
}

.page-patient-detail .pm-col--finance .pm-fc-row .pm-fc-value {
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}

.page-patient-detail .pm-col--finance .pm-fc-row .pm-fc-value--received {
  color: #10b981;
}

.page-patient-detail .pm-col--finance .pm-fc-row .pm-fc-value--remaining {
  color: #f43f5e;
}

.page-patient-detail .pm-col--finance .pm-fc-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.page-patient-detail .pm-col--finance .pm-fc-footer .pm-fc-label {
  color: #64748b;
}

.page-patient-detail .pm-col--finance .pm-fc-footer .pm-fc-value--remaining {
  color: #f43f5e;
}

.page-patient-detail .pm-col--finance .pm-finance-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--finance .pm-finance-footer {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
}

.page-patient-detail .pm-col--finance .pm-finance-footer .pm-finance-note {
  font-size: 12px;
  color: #94a3b8;
}

.page-patient-detail .pm-col--finance .pm-btn-receive {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0 3px 10px rgba(225, 29, 72, 0.22);
          box-shadow: 0 3px 10px rgba(225, 29, 72, 0.22);
  white-space: nowrap;
}

.page-patient-detail .pm-col--finance .pm-btn-receive i {
  font-size: 12px;
}

.page-patient-detail .pm-col--finance .pm-btn-receive:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 5px 14px rgba(225, 29, 72, 0.32);
          box-shadow: 0 5px 14px rgba(225, 29, 72, 0.32);
}

.page-patient-detail .pm-col--finance .pm-btn-receive:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

@media (max-width: 767px) {
  .page-patient-detail .pm-col--finance .pm-btn-receive {
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

.page-patient-detail .pm-tab-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-top: 24px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-tab-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-top: 16px;
    border-radius: 10px;
  }
}

.page-patient-detail .pm-tab-sidebar {
  width: 320px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-right: 1px solid #f8f8f8;
  padding: 24px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .page-patient-detail .pm-tab-sidebar {
    width: 220px;
    padding: 20px 16px;
    border-right: 1px solid #f1f5f9;
  }
}

@media (max-width: 767px) {
  .page-patient-detail .pm-tab-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    overflow: hidden;
  }
}

.page-patient-detail .pm-tab-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  padding: 32px;
  background: #fff;
}

@media (max-width: 767px) {
  .page-patient-detail .pm-tab-content {
    padding: 16px;
  }
}

.page-patient-detail .master-tabs-nav.modern-vertical {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.page-patient-detail .master-tabs-nav.modern-vertical::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.page-patient-detail .master-tabs-nav.modern-vertical::-webkit-scrollbar-track {
  background: transparent;
}

.page-patient-detail .master-tabs-nav.modern-vertical::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.page-patient-detail .master-tabs-nav.modern-vertical::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.page-patient-detail .master-tabs-nav.modern-vertical .master-tab {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #475569;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
}

.page-patient-detail .master-tabs-nav.modern-vertical .master-tab:hover {
  background: #f1f5f9;
  color: #1e293b;
  -webkit-transform: none;
          transform: none;
}

.page-patient-detail .master-tabs-nav.modern-vertical .master-tab.active {
  background: rgba(30, 188, 89, 0.1);
  color: var(--teal);
  font-weight: 600;
  -webkit-transform: none;
          transform: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  position: relative;
}

.page-patient-detail .master-tabs-nav.modern-vertical .master-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  height: 20px;
  width: 3px;
  background: var(--teal);
  border-radius: 0 4px 4px 0;
}

@media (max-width: 767px) {
  .page-patient-detail .master-tabs-nav.modern-vertical {
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
            flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding-bottom: 2px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .page-patient-detail .master-tabs-nav.modern-vertical::-webkit-scrollbar {
    display: none;
  }
  .page-patient-detail .master-tabs-nav.modern-vertical .master-tab {
    white-space: nowrap !important;
    -ms-flex-negative: 0 !important;
        flex-shrink: 0 !important;
    width: auto !important;
    min-width: unset !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
  }
  .page-patient-detail .master-tabs-nav.modern-vertical .master-tab.active {
    background: var(--teal) !important;
    color: #fff !important;
    border-color: var(--teal) !important;
  }
  .page-patient-detail .master-tabs-nav.modern-vertical .master-tab.active::before {
    display: none !important;
  }
}

.page-patient-detail::-webkit-scrollbar {
  height: 6px;
}

.page-patient-detail::-webkit-scrollbar-track {
  background: transparent;
}

.page-patient-detail::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.page-patient-detail .master-tab {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 40px;
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.page-patient-detail .master-tab:hover {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.page-patient-detail .master-tab.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.page-patient-detail .master-tab.active::after {
  display: none;
}

/* Activities & Docs Blocks */
.patient-master-secondary {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 24px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .patient-master-secondary {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .patient-master-secondary {
    gap: 16px;
    margin-top: 16px;
  }
}

.patient-master-secondary .pm-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  /* Global Table Fixes */
}

@media (max-width: 767px) {
  .patient-master-secondary .pm-section {
    padding: 16px;
  }
}

.patient-master-secondary .pm-section-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.patient-master-secondary .pm-section-header .pm-section-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal-dark);
  margin: 0;
}

.patient-master-secondary .pm-section-header .pm-btn-outline {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.patient-master-secondary .pm-section-header .pm-btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.patient-master-secondary .pm-section--activities .pm-act-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.patient-master-secondary .pm-section--activities .pm-act-tabs .pm-act-tab {
  background: transparent;
  border: none;
  padding: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.patient-master-secondary .pm-section--activities .pm-act-tabs .pm-act-tab.active {
  color: var(--teal);
}

.patient-master-secondary .pm-section--activities .pm-act-tabs .pm-act-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
}

.patient-master-secondary .pm-section--activities .pm-act-tabs .pm-act-tab:hover:not(.active) {
  color: var(--teal-dark);
}

.patient-master-secondary .pm-section--activities .pm-activity-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}

.patient-master-secondary .pm-section--activities .pm-empty-state {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 28px 28px 28px 110px;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  min-height: 86px;
}

.patient-master-secondary .pm-section--activities .pm-empty-state__icon {
  position: absolute;
  left: -10px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(-18deg);
          transform: translateY(-50%) rotate(-18deg);
  opacity: 0.12;
  pointer-events: none;
}

.patient-master-secondary .pm-section--activities .pm-empty-state__icon i {
  font-size: 80px;
  color: var(--teal);
  line-height: 1;
}

.patient-master-secondary .pm-section--activities .pm-empty-state__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 4px;
}

.patient-master-secondary .pm-section--activities .pm-empty-state__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.patient-master-secondary .pm-section--activities .pm-icon--success {
  color: #10b981;
}

.patient-master-secondary .pm-section--activities .pm-act-item {
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid transparent;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background: #f8fafc;
  -webkit-transition: background 0.2s, -webkit-box-shadow 0.2s;
  transition: background 0.2s, -webkit-box-shadow 0.2s;
  transition: box-shadow 0.2s, background 0.2s;
  transition: box-shadow 0.2s, background 0.2s, -webkit-box-shadow 0.2s;
}

.patient-master-secondary .pm-section--activities .pm-act-item:hover {
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
          box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .patient-master-secondary .pm-section--activities .pm-act-item .pm-act-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 6px;
  }
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-title {
  color: var(--teal-dark);
  font-size: 14px;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-desc:empty {
  display: none;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .patient-master-secondary .pm-section--activities .pm-act-item .pm-act-meta {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
  }
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-meta .btn-close-act {
  color: var(--teal);
  font-weight: 600;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-close-act,
.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-edit-act,
.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-delete-act {
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  color: #94a3b8;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-close-act:hover,
.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-edit-act:hover,
.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-delete-act:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal);
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-close-act:hover {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.patient-master-secondary .pm-section--activities .pm-act-item .pm-act-actions .btn-delete-act:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-active {
  border-left-color: var(--teal);
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue {
  border-left-color: #ef4444;
  background: #fff5f5;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-title {
  color: #991b1b;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-desc {
  color: #b91c1c;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-meta {
  color: #ef4444;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-actions .btn-close-act,
.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-actions .btn-edit-act,
.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-actions .btn-delete-act {
  color: #b91c1c;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-actions .btn-close-act:hover,
.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-actions .btn-edit-act:hover,
.patient-master-secondary .pm-section--activities .pm-act-item.is-overdue .pm-act-actions .btn-delete-act:hover {
  background: rgba(239, 68, 68, 0.1);
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-passive {
  border-left-color: #94a3b8;
  opacity: 0.8;
}

.patient-master-secondary .pm-section--activities .pm-act-item.is-passive .pm-act-title {
  color: #64748b;
  text-decoration: line-through;
}

.patient-master-secondary .pm-section table .status-badge,
.patient-master-secondary .pm-section .data-table .status-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.patient-master-secondary .pm-section table .status-badge.bg-orange,
.patient-master-secondary .pm-section .data-table .status-badge.bg-orange {
  background-color: #f97316 !important;
  color: #fff !important;
}

.patient-master-secondary .pm-section table .status-badge.bg-blue,
.patient-master-secondary .pm-section .data-table .status-badge.bg-blue {
  background-color: #3b82f6 !important;
  color: #fff !important;
}

.patient-master-secondary .pm-section table .status-badge.bg-red,
.patient-master-secondary .pm-section .data-table .status-badge.bg-red {
  background-color: #ef4444 !important;
  color: #fff !important;
}

.patient-master-secondary .pm-section table .status-badge.bg-green,
.patient-master-secondary .pm-section .data-table .status-badge.bg-green {
  background-color: #10b981 !important;
  color: #fff !important;
}

.patient-master-secondary .pm-section table .status-badge.bg-gray,
.patient-master-secondary .pm-section .data-table .status-badge.bg-gray {
  background-color: #94a3b8 !important;
  color: #fff !important;
}

.patient-master-secondary .pm-section table .dt-custom-action,
.patient-master-secondary .pm-section .data-table .dt-custom-action {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 32px;
}

.patient-master-secondary .pm-section table .dt-custom-action i,
.patient-master-secondary .pm-section .data-table .dt-custom-action i {
  font-size: 14px;
}

.patient-master-secondary .pm-section table .dt-custom-action:hover,
.patient-master-secondary .pm-section .data-table .dt-custom-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.patient-master-secondary .pm-section table .dt-custom-action.text-red,
.patient-master-secondary .pm-section .data-table .dt-custom-action.text-red {
  color: #ef4444;
  border-color: #fecaca;
  background: #fff5f5;
}

.patient-master-secondary .pm-section table .dt-custom-action.text-red:hover,
.patient-master-secondary .pm-section .data-table .dt-custom-action.text-red:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.patient-master-secondary .notes-form .btn {
  margin-top: 20px;
}

/* --- PDF Link Badge --- */
.pdf-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  background: rgba(225, 29, 72, 0.08);
  color: #e11d48 !important;
}

.pdf-link i {
  font-size: 14px;
}

.pdf-link:hover {
  background: rgba(225, 29, 72, 0.15);
  color: #be123c !important;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 10px rgba(225, 29, 72, 0.1);
          box-shadow: 0 4px 10px rgba(225, 29, 72, 0.1);
}

.pdf-link:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-box-shadow: 0 2px 5px rgba(225, 29, 72, 0.1);
          box-shadow: 0 2px 5px rgba(225, 29, 72, 0.1);
}

/* ================================================================
   Patient Documents — Modernized SCSS
   Teal-branded, production-grade, Lity gallery ready
   ================================================================ */
/* ── Loader ─────────────────────────────────────────────────── */
.pm-loader {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 280px;
  gap: 14px;
  color: var(--text-muted);
}

.pm-loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(var(--teal-rgb, 16, 185, 129), 0.15);
  border-top-color: var(--teal);
  border-radius: 50%;
  -webkit-animation: pmSpin 0.75s linear infinite;
          animation: pmSpin 0.75s linear infinite;
}

.pm-loader__text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@keyframes pmSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

/* ── Layout ──────────────────────────────────────────────────── */
.patient-documents-layout {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

/* ── Main Section Card ───────────────────────────────────────── */
.pm-section--documents {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

/* ── Section Header ──────────────────────────────────────────── */
.pm-section-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.pm-section-title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--teal-dark);
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.pm-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--teal);
  border-radius: 2px;
}

.pm-btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.pm-btn-outline:hover {
  background: var(--teal);
  color: #fff;
  -webkit-box-shadow: 0 4px 12px rgba(var(--teal-rgb, 16, 185, 129), 0.25);
          box-shadow: 0 4px 12px rgba(var(--teal-rgb, 16, 185, 129), 0.25);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.pm-btn-outline:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* ── Section Body ────────────────────────────────────────────── */
.pm-section-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.pm-doc-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding-right: 4px;
  height: auto;
  /* Custom scrollbar */
}

.pm-doc-content::-webkit-scrollbar {
  width: 5px;
}

.pm-doc-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.pm-doc-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.pm-doc-content::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ── Document Category Block ─────────────────────────────────── */
.pm-doc-category {
  margin-bottom: 32px;
}

.pm-doc-category:last-child {
  margin-bottom: 0;
}

/* ── Category Label ──────────────────────────────────────────── */
.pm-doc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.pm-doc-title::after {
  content: "";
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 1px;
  background: -webkit-gradient(linear, left top, right top, from(rgba(var(--teal-rgb, 16, 185, 129), 0.2)), to(transparent));
  background: linear-gradient(to right, rgba(var(--teal-rgb, 16, 185, 129), 0.2), transparent);
}

.pm-doc-title--dark {
  color: var(--teal-dark);
}

.pm-doc-title--dark::after {
  background: -webkit-gradient(linear, left top, right top, from(rgba(var(--teal-rgb, 16, 185, 129), 0.15)), to(transparent));
  background: linear-gradient(to right, rgba(var(--teal-rgb, 16, 185, 129), 0.15), transparent);
}

/* ── Tabs ────────────────────────────────────────────────────── */
.pm-doc-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 20px;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pm-doc-tabs::-webkit-scrollbar {
  display: none;
}

.pm-doc-tab {
  background: transparent;
  border: none;
  padding: 8px 16px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  position: relative;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
}

.pm-doc-tab.active {
  color: var(--teal);
}

.pm-doc-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
}

.pm-doc-tab:hover:not(.active) {
  color: var(--teal-dark);
  background: rgba(var(--teal-rgb, 16, 185, 129), 0.05);
}

/* ── Tab Pane ────────────────────────────────────────────────── */
.pm-doc-pane {
  display: none;
  -webkit-animation: pmFadeIn 0.2s ease;
          animation: pmFadeIn 0.2s ease;
}

.pm-doc-pane.active {
  display: block;
}

@-webkit-keyframes pmFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(4px);
            transform: translateY(4px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes pmFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(4px);
            transform: translateY(4px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* ── Photo Grid Wrapper ──────────────────────────────────────── */
.pm-doc-grid-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}

.pm-doc-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ── Photo Grid ──────────────────────────────────────────────── */
.pm-doc-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(150px, 1fr))[auto-fill];
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

/* ── Photo Item ──────────────────────────────────────────────── */
.pm-doc-item {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e2e8f0;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s, -webkit-transform 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s, -webkit-transform 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, -webkit-box-shadow 0.2s, -webkit-transform 0.2s;
  cursor: pointer;
  /* Lity anchor — tüm kartı kaplar, z-index: 2 */
  /* "View" hint metni */
  /* Delete button — z-index: 3, lightbox'ın üstünde */
}

.pm-doc-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  display: block;
}

.pm-doc-item__lightbox {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  padding: 10px;
  text-decoration: none;
  /* Gradient overlay — pointer-events geçirgen */
}

.pm-doc-item__lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.55)), color-stop(55%, transparent));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.pm-doc-item__zoom {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  opacity: 0;
  -webkit-transform: translateY(4px);
          transform: translateY(4px);
  -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, transform 0.2s;
  transition: opacity 0.2s, transform 0.2s, -webkit-transform 0.2s;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.pm-doc-item__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.92);
  border: none;
  color: #fff;
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  opacity: 0;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  -webkit-transition: opacity 0.2s, background 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, background 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  transition: opacity 0.2s, transform 0.2s, background 0.2s, -webkit-transform 0.2s;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.pm-doc-item__delete:hover {
  background: #dc2626;
  -webkit-transform: scale(1.05) !important;
          transform: scale(1.05) !important;
}

.pm-doc-item:hover {
  border-color: var(--teal);
  -webkit-box-shadow: 0 6px 20px rgba(var(--teal-rgb, 16, 185, 129), 0.2);
          box-shadow: 0 6px 20px rgba(var(--teal-rgb, 16, 185, 129), 0.2);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.pm-doc-item:hover > img {
  -webkit-transform: scale(1.04);
          transform: scale(1.04);
}

.pm-doc-item:hover .pm-doc-item__lightbox::before {
  opacity: 1;
}

.pm-doc-item:hover .pm-doc-item__zoom {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.pm-doc-item:hover .pm-doc-item__delete {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1);
}

/* ── File List (non-image docs) ──────────────────────────────── */
.pm-doc-file-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.pm-doc-file {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  -webkit-transition: border-color 0.2s, background 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, background 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, -webkit-box-shadow 0.2s;
}

.pm-doc-file:hover {
  border-color: rgba(var(--teal-rgb, 16, 185, 129), 0.35);
  background: rgba(var(--teal-rgb, 16, 185, 129), 0.03);
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pm-doc-file__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  font-size: 18px;
}

.pm-doc-file__icon-wrap--pdf {
  background: #fef2f2;
  color: #ef4444;
}

.pm-doc-file__icon-wrap--image {
  background: #eff6ff;
  color: #3b82f6;
}

.pm-doc-file__icon-wrap--word {
  background: #eff6ff;
  color: #1d4ed8;
}

.pm-doc-file__icon-wrap--file {
  background: #f8fafc;
  color: #64748b;
}

.pm-doc-file__content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  /* allow truncation */
}

.pm-doc-file__name {
  font-weight: 600;
  font-size: 13px;
  color: var(--teal-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-doc-file__name a {
  color: inherit;
  text-decoration: none;
}

.pm-doc-file__name a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.pm-doc-file__date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.pm-doc-file__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.pm-doc-file__download {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.pm-doc-file__download:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.pm-doc-file__delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #fecaca;
  color: #ef4444;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  font-size: 12px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.pm-doc-file__delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* ── Empty State ─────────────────────────────────────────────── */
.pm-doc-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 200px;
}

.pm-doc-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--teal-rgb, 16, 185, 129), 0.1), rgba(var(--teal-rgb, 16, 185, 129), 0.05));
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--teal);
}

.pm-doc-empty__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.pm-doc-empty__text {
  font-size: 13px;
  color: #94a3b8;
  max-width: 260px;
  line-height: 1.5;
}

/* ── Divider between photo section and file categories ──────── */
.pm-doc-divider {
  height: 1px;
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(#e2e8f0), to(transparent));
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 24px 0;
}

/* Overflow guard */
.dataTables_wrapper,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Toolbar + DataTable — Mobil ───────────────────────── */
@media (max-width: 767px) {
  /* Toolbar: left + right alt alta */
  .table-toolbar,
  .custom-table-toolbar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
  }
  /* toolbar-left: search kutuları yan yana */
  .toolbar-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    /* Filter toggle gizli kalır (HTML'de display:none) */
    /* Her search kutusu esnek, yan yana */
    /* Export butonu gibi ekstra btn'lar */
  }
  .toolbar-left .filter-toggle-mobile {
    display: none !important;
  }
  .toolbar-left .table-search.table-search--compact {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 140px;
            flex: 1 1 140px;
    min-width: 0;
  }
  .toolbar-left .table-search.table-search--compact input {
    width: 100%;
    font-size: 13px;
  }
  .toolbar-left > .btn {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    font-size: 12px;
    padding: 7px 12px;
  }
  /* toolbar-right: dropdown yan yana, Add butonu alt satırda tam genişlik */
  .toolbar-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    /* Dropdown yan yana eşit genişlik */
    /* Add New / Export butonları (a.btn veya btn--primary) tam genişlik */
  }
  .toolbar-right .custom-dropdown {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 120px;
            flex: 1 1 120px;
    min-width: 0;
  }
  .toolbar-right .custom-dropdown .custom-dropdown__toggle {
    width: 100%;
    font-size: 12px;
    padding: 7px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .toolbar-right .custom-dropdown .custom-dropdown__menu {
    min-width: 100%;
    max-width: 280px;
    z-index: 999;
  }
  .toolbar-right > a.btn,
  .toolbar-right > button.btn--primary {
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 13px;
  }
  /* DataTable wrap — yatay scroll */
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .data-table-wrap table.data-table {
    min-width: 480px;
  }
  /* DataTable alt kontroller */
  .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none;
    display: block;
    margin-bottom: 8px;
    text-align: left;
  }
  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 6px;
    font-size: 12px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .dataTables_wrapper .dataTables_length input,
  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_filter select {
    width: 100%;
    font-size: 12px;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    display: block;
    text-align: center;
    margin-top: 8px;
  }
  .dataTables_wrapper table.dataTable {
    min-width: 480px;
  }
}

/* --- Category Manager Utilities --- */
.tp-label-between {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.flex-row-gap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.ws-nowrap {
  white-space: nowrap;
}

.pm-hr-divider {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid var(--border-light);
}

.custom-scroll-list {
  max-height: 300px;
  overflow-y: auto;
}

/* AI Score Widget */
.ai-score-widget {
  background: #fff;
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

@media (max-width: 767px) {
  .ai-score-widget {
    padding: 0.75rem 1rem;
  }
}

.ai-score-widget__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 12px;
}

.ai-score-widget__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.ai-score-widget__icon {
  width: 16px;
  height: 16px;
  color: #6366f1;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.ai-score-widget__btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
}

.ai-score-widget__btn-icon {
  width: 11px;
  height: 11px;
}

.ai-score-widget__chart {
  position: relative;
  height: 120px;
  width: 100%;
}

@media (max-width: 767px) {
  .ai-score-widget__chart {
    height: 90px;
  }
}

.ai-score-widget__footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.ai-score-widget__comment {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Animations */
@-webkit-keyframes slideDown {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@-webkit-keyframes sheen {
  0% {
    -webkit-transform: rotateZ(60deg) translate(-5em, 7.5em);
            transform: rotateZ(60deg) translate(-5em, 7.5em);
  }
  100% {
    -webkit-transform: rotateZ(60deg) translate(5em, -7.5em);
            transform: rotateZ(60deg) translate(5em, -7.5em);
  }
}

@keyframes sheen {
  0% {
    -webkit-transform: rotateZ(60deg) translate(-5em, 7.5em);
            transform: rotateZ(60deg) translate(-5em, 7.5em);
  }
  100% {
    -webkit-transform: rotateZ(60deg) translate(5em, -7.5em);
            transform: rotateZ(60deg) translate(5em, -7.5em);
  }
}

/* Global Notes Module */
.pm-section--notes .tox-tinymce {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}

.pm-section--notes .tox-tinymce:focus-within {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
          box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.pm-section--notes .notes-form {
  margin-bottom: 24px;
}

.pm-section--notes .notes-form.notes-form-deals {
  margin: 15px;
}

.pm-section--notes .notes-form .btn {
  margin-top: 16px;
}

.pm-section--notes .pm-note-entry {
  margin-bottom: 4px;
}

.pm-section--notes .pm-note-submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin-top: 12px;
}

.pm-section--notes .pm-notes-state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 12px;
  padding: 3rem;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.pm-section--notes .pm-notes-state--error {
  color: #ef4444;
}

.pm-section--notes .pm-note-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.pm-section--notes .pm-note-list.pm-note-list-deals {
  margin: 0px 15px;
}

.pm-section--notes .pm-note-list__empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  background: -webkit-gradient(linear, left top, left bottom, from(#f8fafc), to(#ffffff));
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.pm-section--notes .pm-note-list__empty i {
  font-size: 42px;
  opacity: 0.5;
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
}

.pm-section--notes .pm-note-list__empty p {
  margin: 0;
}

.pm-section--notes .pm-note-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 20px 22px;
  -webkit-box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
          box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

@media (max-width: 767px) {
  .pm-section--notes .pm-note-card {
    padding: 14px 16px;
  }
}

.pm-section--notes .pm-note-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: -webkit-gradient(linear, left top, left bottom, from(var(--teal)), to(var(--teal-dark)));
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.pm-section--notes .pm-note-card:hover {
  border-color: #e2e8f0;
  -webkit-box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
          box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.pm-section--notes .pm-note-card:hover::before {
  opacity: 1;
}

.pm-section--notes .pm-note-card .pm-note-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 767px) {
  .pm-section--notes .pm-note-card .pm-note-header {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
  }
}

.pm-section--notes .pm-note-card .pm-note-header .pm-note-author {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--teal);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.pm-section--notes .pm-note-card .pm-note-header .pm-note-author .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.2) 100%);
  color: var(--teal-dark);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15) inset;
          box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15) inset;
}

.pm-section--notes .pm-note-card .pm-note-header .pm-note-author .author-avatar.sub {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
          box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.pm-section--notes .pm-note-card .pm-note-header .pm-note-time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8fafc;
  border-radius: 20px;
}

@media (max-width: 767px) {
  .pm-section--notes .pm-note-card .pm-note-header .pm-note-time {
    font-size: 11px;
  }
}

.pm-section--notes .pm-note-card .pm-note-header .pm-note-time i {
  font-size: 11px;
}

.pm-section--notes .pm-note-card .pm-note-content {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
}

.pm-section--notes .pm-note-card .pm-note-content .pm-note-text {
  margin: 0;
  max-height: 115px;
  overflow: auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.pm-section--notes .pm-note-card .pm-note-content .pm-note-text.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.pm-section--notes .pm-note-card .pm-note-content .pm-note-text p {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.pm-section--notes .pm-note-card .pm-note-content .pm-note-text p:last-child {
  margin-bottom: 0;
}

.pm-section--notes .pm-note-card .pm-note-content .btn-read-more {
  background: transparent;
  border: none;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  margin-top: 10px;
  cursor: pointer;
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  -webkit-transition: gap 0.2s ease;
  transition: gap 0.2s ease;
}

.pm-section--notes .pm-note-card .pm-note-content .btn-read-more.is-visible {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
}

.pm-section--notes .pm-note-card .pm-note-content .btn-read-more:hover {
  gap: 8px;
}

.pm-section--notes .pm-note-card .pm-note-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 14px;
}

@media (max-width: 767px) {
  .pm-section--notes .pm-note-card .pm-note-footer {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 8px;
  }
}

.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
}

@media (max-width: 767px) {
  .pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}

.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-edit-note,
.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-delete-note {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  -webkit-transition: all 0.18s ease;
  transition: all 0.18s ease;
}

.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-edit-note i,
.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-delete-note i {
  font-size: 12px;
}

.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-edit-note:hover,
.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-delete-note:hover {
  background: #f1f5f9;
  color: var(--teal-dark);
  border-color: #e2e8f0;
}

.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-delete-note {
  color: #ef4444;
}

.pm-section--notes .pm-note-card .pm-note-footer .pm-note-actions .btn-delete-note:hover {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.pm-section--notes .pm-note-card .pm-note-footer .btn-reply-note {
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal-dark);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.pm-section--notes .pm-note-card .pm-note-footer .btn-reply-note:hover {
  background: var(--teal);
  color: #fff;
  -webkit-transform: translateX(2px);
          transform: translateX(2px);
}

.pm-section--notes .pm-note-card .pm-note-replies {
  margin-top: 18px;
  padding-left: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
  position: relative;
}

.pm-section--notes .pm-note-card .pm-note-replies::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: -webkit-gradient(linear, left top, left bottom, from(#e2e8f0), to(transparent));
  background: linear-gradient(180deg, #e2e8f0 0%, transparent 100%);
  border-radius: 2px;
}

.pm-section--notes .pm-note-card .pm-note-replies .pm-note-card {
  padding: 14px 16px;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fafbfc;
}

.pm-section--notes .pm-note-card .pm-note-replies .pm-note-card::before {
  display: none;
}

.pm-section--notes .pm-note-card .pm-note-replies .pm-note-card:hover {
  background: #fff;
  border-color: #e2e8f0;
  -webkit-transform: none;
          transform: none;
}

.pm-section--notes .pm-note-card .pm-note-replies .pm-note-card .pm-note-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.pm-section--notes .pm-note-card .pm-note-replies .pm-note-card .author-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.pm-section--notes .reply-container {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  -webkit-animation: slideDown 0.25s ease;
          animation: slideDown 0.25s ease;
}

@media (max-width: 767px) {
  .pm-section--notes .reply-container {
    padding: 12px;
  }
}

.pm-section--notes .reply-container .reply-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.pm-section--notes .edit-container {
  margin: 14px 0;
  padding: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  -webkit-animation: slideDown 0.25s ease;
          animation: slideDown 0.25s ease;
}

@media (max-width: 767px) {
  .pm-section--notes .edit-container {
    padding: 12px;
  }
}

.pm-section--notes .edit-container .edit-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.pm-section--notes .pm-note-load-more {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed #cbd5e1;
}

.pm-section--notes .pm-note-load-more .btn-load-more {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -webkit-box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
          box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767px) {
  .pm-section--notes .pm-note-load-more .btn-load-more {
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

.pm-section--notes .pm-note-load-more .btn-load-more:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  -webkit-box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
          box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

/* ============================================================
   PAGE-SPECIFIC NAMESPACES
   ============================================================ */
/* ── CRM, LEAD TRANSFER & USERS ─────────────────────────── */
.page-crm .agents-grid,
.page-users .agents-grid,
.page-lead-transfer .agents-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(200px, 1fr))[auto-fill];
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.page-crm .agent-card,
.page-users .agent-card,
.page-lead-transfer .agent-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  padding: 18px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
  cursor: pointer;
  -webkit-animation: kpiIn 0.3s var(--ease) both;
          animation: kpiIn 0.3s var(--ease) both;
}

.page-crm .agent-card:hover,
.page-users .agent-card:hover,
.page-lead-transfer .agent-card:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: var(--shadow-lg);
          box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.page-crm .agent-card__avatar,
.page-users .agent-card__avatar,
.page-lead-transfer .agent-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-light), rgba(41, 186, 155, 0.15));
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 10px;
}

.page-crm .agent-card__name,
.page-users .agent-card__name,
.page-lead-transfer .agent-card__name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 4px;
}

.page-crm .agent-card .agent-count,
.page-users .agent-card .agent-count,
.page-lead-transfer .agent-card .agent-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.page-crm .agent-card .agent-tags,
.page-users .agent-card .agent-tags,
.page-lead-transfer .agent-card .agent-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 4px;
}

.page-crm .user-num,
.page-users .user-num,
.page-lead-transfer .user-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-weight: 400;
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* ── SETTINGS ───────────────────────────────────────────── */
.page-settings .code-tag {
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  color: var(--teal);
  border: 1px solid var(--border);
}

.page-settings .masked-val {
  font-family: monospace;
  letter-spacing: 3px;
  color: var(--text-muted);
}

/* ── BUILDER LANGUAGE ───────────────────────────────────── */
.page-builder-language .back-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 20px;
  text-decoration: none;
  font-size: 14px;
  -webkit-transition: color var(--dur) var(--ease);
  transition: color var(--dur) var(--ease);
}

.page-builder-language .back-link:hover {
  color: var(--teal);
}

.page-builder-language .language-pills-card {
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.page-builder-language .language-pills-card .card__body {
  padding: 16px 24px !important;
}

.page-builder-language .language-pills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.page-builder-language .language-pills .btn {
  border-radius: 40px;
  padding: 6px 20px;
  color: var(--text-muted);
  border-color: var(--border);
  font-weight: 500;
  min-width: 90px;
}

.page-builder-language .language-pills .btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(41, 186, 155, 0.05);
}

.page-builder-language .language-pills .btn.active {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

.page-builder-language .translation-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .page-builder-language .translation-grid {
    -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .page-builder-language .translation-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-builder-language .translation-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-builder-language .translation-grid .form-group {
  margin-bottom: 0;
}

.page-builder-language .translation-grid label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  display: block;
}

.page-builder-language .translation-grid .form-input {
  background: #fff;
  border: 1px solid var(--border);
  height: 48px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-builder-language .translation-grid .form-input:focus {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 3px rgba(41, 186, 155, 0.1);
          box-shadow: 0 0 0 3px rgba(41, 186, 155, 0.1);
}

.page-target-performance .target-input-row,
.page-targets .target-input-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-target-performance .target-input,
.page-targets .target-input {
  width: 130px;
}

.d-none,
.is-hidden,
.hidden {
  display: none !important;
}

.upload-category-wrap,
.upload-subcategory-wrap {
  max-width: 100%;
  margin-bottom: 20px;
}

/* ============================================================
   GLOBAL/SHARED COMPONENTS (Forms, KPIs, Global Tags)
   ============================================================ */
/* ── FORM ELEMENTS (Used Globally) ── */
.form-container {
  width: 100%;
  max-width: 100%;
}

.form-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 32px;
  margin-bottom: 24px;
  -webkit-animation: fadeSlide 0.3s var(--ease);
          animation: fadeSlide 0.3s var(--ease);
  -webkit-transition: -webkit-box-shadow 0.3s ease;
  transition: -webkit-box-shadow 0.3s ease;
  transition: box-shadow 0.3s ease;
  transition: box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.form-section:hover {
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.form-section__title {
  font-family: "Sora", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.form-section__title i {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.form-grid {
  display: -ms-grid;
  display: grid;
  gap: 20px;
}

.form-grid--1 {
  -ms-grid-columns: (1fr)[1];
      grid-template-columns: repeat(1, 1fr);
}

.form-grid--2 {
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
}

.form-grid--3 {
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
}

.form-grid--4 {
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
}

.form-grid--5 {
  -ms-grid-columns: (1fr)[5];
      grid-template-columns: repeat(5, 1fr);
}

.form-grid--6 {
  -ms-grid-columns: (1fr)[6];
      grid-template-columns: repeat(6, 1fr);
}

.form-grid--7 {
  -ms-grid-columns: (1fr)[7];
      grid-template-columns: repeat(7, 1fr);
}

.form-grid--8 {
  -ms-grid-columns: (1fr)[8];
      grid-template-columns: repeat(8, 1fr);
}

.form-grid--9 {
  -ms-grid-columns: (1fr)[9];
      grid-template-columns: repeat(9, 1fr);
}

.form-grid--10 {
  -ms-grid-columns: (1fr)[10];
      grid-template-columns: repeat(10, 1fr);
}

.form-grid--11 {
  -ms-grid-columns: (1fr)[11];
      grid-template-columns: repeat(11, 1fr);
}

.form-grid--12 {
  -ms-grid-columns: (1fr)[12];
      grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 900px) {
  .form-grid--5, .form-grid--6, .form-grid--7, .form-grid--8, .form-grid--9, .form-grid--10, .form-grid--11, .form-grid--4, .form-grid--3 {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .form-grid--12 {
    -ms-grid-columns: (1fr)[6];
        grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .form-grid--1 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--2 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--3 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--4 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--5 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--6 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--7 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--8 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--9 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--10 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--11 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-grid--12 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.form-group {
  position: relative;
}

.form-group--span1 {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .form-group--span1 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .form-group--span1 {
    grid-column: span 1;
  }
}

.form-group--span2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .form-group--span2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .form-group--span2 {
    grid-column: span 1;
  }
}

.form-group--span3 {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .form-group--span3 {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .form-group--span3 {
    grid-column: span 1;
  }
}

.form-group--span4 {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .form-group--span4 {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .form-group--span4 {
    grid-column: span 1;
  }
}

.form-group--span5 {
  grid-column: span 5;
}

@media (max-width: 900px) {
  .form-group--span5 {
    grid-column: span 5;
  }
}

@media (max-width: 768px) {
  .form-group--span5 {
    grid-column: span 1;
  }
}

.form-group--span6 {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .form-group--span6 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span6 {
    grid-column: span 1;
  }
}

.form-group--span7 {
  grid-column: span 7;
}

@media (max-width: 900px) {
  .form-group--span7 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span7 {
    grid-column: span 1;
  }
}

.form-group--span8 {
  grid-column: span 8;
}

@media (max-width: 900px) {
  .form-group--span8 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span8 {
    grid-column: span 1;
  }
}

.form-group--span9 {
  grid-column: span 9;
}

@media (max-width: 900px) {
  .form-group--span9 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span9 {
    grid-column: span 1;
  }
}

.form-group--span10 {
  grid-column: span 10;
}

@media (max-width: 900px) {
  .form-group--span10 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span10 {
    grid-column: span 1;
  }
}

.form-group--span11 {
  grid-column: span 11;
}

@media (max-width: 900px) {
  .form-group--span11 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span11 {
    grid-column: span 1;
  }
}

.form-group--span12 {
  grid-column: span 12;
}

@media (max-width: 900px) {
  .form-group--span12 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .form-group--span12 {
    grid-column: span 1;
  }
}

.form-group label {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.form-group .form-help-text {
  color: var(--red);
  font-size: 12px;
}

.form-group .dynamic-inputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.form-group .input-group {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.form-group .input-group .form-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.form-group .input-group .btn-add-field,
.form-group .input-group .btn-remove-field {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  -webkit-transition: background 0.2s, -webkit-transform 0.1s;
  transition: background 0.2s, -webkit-transform 0.1s;
  transition: background 0.2s, transform 0.1s;
  transition: background 0.2s, transform 0.1s, -webkit-transform 0.1s;
}

.form-group .input-group .btn-add-field i,
.form-group .input-group .btn-remove-field i {
  font-size: 13px;
}

.form-group .input-group .btn-add-field:active,
.form-group .input-group .btn-remove-field:active {
  -webkit-transform: scale(0.93);
          transform: scale(0.93);
}

.form-group .input-group .btn-add-field {
  background: #e0f2fe;
  color: #0284c7;
}

.form-group .input-group .btn-add-field:hover {
  background: #bae6fd;
}

.form-group .input-group .btn-remove-field {
  background: #fee2e2;
  color: #dc2626;
}

.form-group .input-group .btn-remove-field:hover {
  background: #fecaca;
}

.required {
  color: var(--red);
  margin-left: 2px;
}

.form-input,
.form-select,
textarea {
  width: 100%;
  height: 42px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: "Sora", sans-serif;
  font-size: 12px;
  outline: none;
  font-weight: 500;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
  /* Recovered Textarea Resizing defaults */
}

.form-input[row], .form-input:is(textarea),
.form-select[row],
.form-select:is(textarea),
textarea[row],
textarea:is(textarea) {
  padding: 12px 16px;
  resize: none;
  min-height: 44px;
}

.form-input::-webkit-input-placeholder,
.form-select::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.form-input:-ms-input-placeholder,
.form-select:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.form-input::-ms-input-placeholder,
.form-select::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.form-input::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

/* Custom premium checkboxes for internal form rows */
.form-habits,
.nr-counter-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: 20px;
  /* Checked state styles the internal LABEL natively using :has */
}

.form-habits label,
.nr-counter-row label {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 8px 18px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  /* Hide actual checkbox but keep it accessible for keyboard */
  /* Simulate Focus Ring on active */
}

.form-habits label input[type="checkbox"],
.nr-counter-row label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-habits label:hover,
.nr-counter-row label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.form-habits label:has(input:focus-visible),
.nr-counter-row label:has(input:focus-visible) {
  -webkit-box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
          box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  border-color: var(--teal);
}

.form-habits label:has(input:checked),
.nr-counter-row label:has(input:checked) {
  background-color: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  -webkit-box-shadow: 0 4px 10px rgba(20, 184, 166, 0.2);
          box-shadow: 0 4px 10px rgba(20, 184, 166, 0.2);
}

.form-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.upload-zone:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.upload-zone__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.upload-zone__inner i {
  font-size: 32px;
  color: var(--teal);
}

.upload-zone__inner strong {
  color: var(--teal);
}

/* ── CURRENCY KPI ── */
.currency-kpi-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[5];
      grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .currency-kpi-row {
    -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .currency-kpi-row {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

.currency-kpi {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 18px;
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  -webkit-animation: kpiIn 0.4s var(--ease) both;
          animation: kpiIn 0.4s var(--ease) both;
}

.currency-kpi__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 18px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.currency-kpi--euro .currency-kpi__icon {
  background: #e6f7f5;
  color: var(--teal);
}

.currency-kpi--dollar .currency-kpi__icon {
  background: var(--orange-light);
  color: var(--orange);
}

.currency-kpi--sterling .currency-kpi__icon {
  background: var(--green-light);
  color: var(--green);
}

.currency-kpi--lira .currency-kpi__icon {
  background: var(--amber-light);
  color: var(--amber);
}

.currency-kpi--total .currency-kpi__icon {
  background: var(--blue-light);
  color: var(--blue);
}

.currency-kpi__val {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.currency-kpi__lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

/* ── STATUS, TAGS AND MINOR ATOMS ── */
.act-status {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.act-status--active, .act-status--Active {
  color: #16a34a;
}

.act-status--active i, .act-status--Active i {
  font-size: 8px;
  -webkit-animation: pulse 1.5s infinite;
          animation: pulse 1.5s infinite;
}

.act-status--Closed {
  color: #94a3b8;
}

.act-status--Closed i {
  font-size: 8px;
}

.act-status--Overdue {
  color: #dc2626;
}

.act-status--Overdue i {
  font-size: 8px;
  -webkit-animation: pulse 1.5s infinite;
          animation: pulse 1.5s infinite;
}

.company-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--teal-light);
  color: var(--teal);
}

.company-tag--grey {
  background: var(--bg);
  color: var(--text-secondary);
}

.company-tag--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.nr-counter-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.nr-checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.nr-checkbox:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.nr-checkbox input {
  accent-color: var(--teal);
}

.muted-text {
  color: var(--text-muted);
  font-size: 11px;
}

/* Data Table utilities commonly used in pages */
.data-table--sm th,
.data-table--sm td {
  padding: 9px 12px;
  font-size: 12.5px;
}

.data-table--finance {
  min-width: 900px;
}

.td-overdue {
  color: var(--text-secondary);
  font-size: 12px;
}

.td-teal {
  color: var(--teal);
  font-weight: 500;
}

.td-lira {
  color: var(--amber);
  font-weight: 500;
}

.th-group {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.th-group--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.th-group--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.th-group--green {
  background: var(--green-light);
  color: var(--green);
}

.th-sticky {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 2;
}

#usersTab.active,
#targetsTab.active {
  background: var(--teal);
  color: #fff;
}

/* --- COMPETITIVE ANALYSIS (FINANCE COMPARE) --- */
.compare-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-top: 10px;
}

.compare-sidebar {
  width: 250px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
}

.filter-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  /* Webkit rounding fix for overflow children */
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}

.filter-box__header {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  letter-spacing: 0.5px;
}

.filter-box__list {
  max-height: 250px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
}

.filter-box__item {
  padding: 12px 14px;
  font-size: 13px;
  cursor: pointer;
  border-top: 1px solid var(--border, #e2e8f0);
  color: var(--text-primary, #334155);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.filter-box__item:last-child {
  border-radius: 0 0 8px 8px;
}

.filter-box__item:first-child {
  border-top: none;
}

.filter-box__item:hover {
  background: var(--bg, #f1f5f9);
}

.filter-box__item.active {
  background: var(--teal);
  color: #fff;
  font-weight: 500;
  border-top-color: var(--teal);
}

.filter-box__item.active + .filter-box__item.active {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.compare-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.team-block-title {
  color: #20b2aa;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.team-kpi-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[5];
      grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.kpi-v-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.kpi-v-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 0;
}

.kpi-v-card > * {
  position: relative;
  z-index: 1;
}

.kpi-v-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 24px;
  font-size: 16px;
}

.kpi-v-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.kpi-v-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
}

.kpi-v-footer {
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-weight: 500;
}

.kpi-v-footer:hover {
  color: #0f172a;
}

/* Theming for V-Cards */
.kpi-v-card--teal .kpi-v-icon {
  background: #e6f7f6;
  color: #20b2aa;
}

.kpi-v-card--teal::before {
  background: #f0fbfa;
}

.kpi-v-card--orange .kpi-v-icon {
  background: #fff0e6;
  color: #fb8c00;
}

.kpi-v-card--orange::before {
  background: #fff7f2;
}

.kpi-v-card--green .kpi-v-icon {
  background: #e8f5e9;
  color: #43a047;
}

.kpi-v-card--green::before {
  background: #f2fbf3;
}

.kpi-v-card--amber .kpi-v-icon {
  background: #fff8e1;
  color: #ffca28;
}

.kpi-v-card--amber::before {
  background: #fffcf2;
}

.kpi-v-card--blue .kpi-v-icon {
  background: #eef2ff;
  color: #4f46e5;
}

.kpi-v-card--blue::before {
  background: #f5f7ff;
}

/* Litepicker Global Geometry Restoration */
.compare-sidebar .litepicker-wrapper {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.compare-sidebar .litepicker-wrapper i {
  position: absolute;
  left: 14px;
  color: #20b2aa;
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
}

.compare-sidebar .premium-date-range {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  outline: none;
  background: #fff;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.compare-sidebar .premium-date-range:focus {
  border-color: #20b2aa;
  -webkit-box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
          box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

/* ── MODERN DRIVE MODULE (PHASE 25) ────────────────────────────────────────── */
/* 1. Drive Shell & Layout */
.drive-shell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: calc(100vh - var(--topbar-h) - 60px);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* 2. Sidebar */
.drive-sidebar {
  width: 260px;
  background: #f8fafc;
  border-right: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.drive-sidebar__logo {
  padding: 24px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--teal-dark);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.drive-sidebar__logo i {
  font-size: 20px;
  color: var(--teal);
}

.drive-sidebar__divider {
  height: 1px;
  background: var(--border);
  margin: 10px 24px;
}

.drive-upload-btn {
  margin: 20px 24px;
  padding: 12px 24px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  -webkit-box-shadow: 0 4px 12px rgba(41, 186, 155, 0.3);
          box-shadow: 0 4px 12px rgba(41, 186, 155, 0.3);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.drive-upload-btn i {
  font-size: 18px;
  color: #fff;
}

.drive-upload-btn:hover {
  -webkit-box-shadow: 0 6px 16px rgba(41, 186, 155, 0.4);
          box-shadow: 0 6px 16px rgba(41, 186, 155, 0.4);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.drive-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 0 12px;
  gap: 4px;
}

.drive-nav__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-nav__item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #94a3b8;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.drive-nav__item:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.drive-nav__item:hover i {
  color: var(--text-main);
}

.drive-nav__item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}

.drive-nav__item.active i {
  color: var(--teal);
}

.drive-nav__badge {
  margin-left: auto;
  font-style: normal;
  background: #e2e8f0;
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  display: none;
}

/* Sidebar Labels */
.drive-labels {
  padding: 10px 24px;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow-y: auto;
}

.drive-labels__title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.drive-labels .drive-label-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 4px;
  /* Space between active items */
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.drive-labels .drive-label-item:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.drive-labels .drive-label-item.active {
  color: var(--teal-dark);
  background: var(--teal-light);
  font-weight: 600;
  border-color: rgba(41, 186, 155, 0.2);
  -webkit-box-shadow: 0 2px 4px rgba(41, 186, 155, 0.05);
          box-shadow: 0 2px 4px rgba(41, 186, 155, 0.05);
}

.drive-labels .drive-label-item:last-child {
  margin-bottom: 0;
}

.drive-labels .drive-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color);
}

.drive-labels__hint {
  font-size: 11px;
  color: #94a3b8;
  padding: 0 24px;
  margin-top: 4px;
  margin-bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.drive-labels__hint i {
  color: var(--teal);
}

/* Manage Labels Modal List */
.drive-manage-labels-body {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  /* Custom Scrollbar for inner modal */
}

.drive-manage-labels-body::-webkit-scrollbar {
  width: 6px;
}

.drive-manage-labels-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.drive-manage-labels-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.drive-manage-labels-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.drive-labels-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.drive-labels-list .drive-manage-label-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.drive-labels-list .drive-manage-label-item:hover {
  border-color: #cbd5e1;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.drive-labels-list .drive-manage-label-item__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.drive-labels-list .drive-manage-label-item__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.drive-labels-list .drive-manage-label-item__actions .btn-icon {
  width: 32px;
  height: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.drive-labels-list .drive-manage-label-item__actions .btn-icon:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.drive-labels-list .drive-manage-label-item__actions .btn-icon--danger:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* Sidebar Manage Labels */
.drive-manage-labels-wrapper {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  margin-top: auto;
  /* Push down to sit right above storage */
}

.drive-btn-manage-labels {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-box-shadow: 0 4px 12px rgba(41, 186, 155, 0.25);
          box-shadow: 0 4px 12px rgba(41, 186, 155, 0.25);
  position: relative;
  overflow: hidden;
  /* Subtle shine effect */
}

.drive-btn-manage-labels i {
  font-size: 15px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.drive-btn-manage-labels span {
  position: relative;
  z-index: 2;
}

.drive-btn-manage-labels:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 6px 16px rgba(41, 186, 155, 0.35);
          box-shadow: 0 6px 16px rgba(41, 186, 155, 0.35);
}

.drive-btn-manage-labels:hover i {
  -webkit-transform: rotate(15deg) scale(1.1);
          transform: rotate(15deg) scale(1.1);
}

.drive-btn-manage-labels:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.drive-btn-manage-labels::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(50%, rgba(255, 255, 255, 0.25)), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  -webkit-transform: skewX(-25deg);
          transform: skewX(-25deg);
  -webkit-transition: all 0.75s ease;
  transition: all 0.75s ease;
  z-index: 1;
}

.drive-btn-manage-labels:hover::after {
  left: 200%;
}

/* Sidebar Storage */
.drive-storage {
  padding: 24px;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
}

.drive-storage__bar-wrap {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.drive-storage__fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  width: 0%;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}

.drive-storage__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 12px;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
}

.drive-storage__info span:first-child {
  color: var(--teal-dark);
  font-weight: 600;
}

.drive-storage__percent {
  font-size: 11px;
  color: var(--text-muted);
}

/* 3. Main Area */
.drive-main {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-width: 0;
  background: #fff;
  position: relative;
}

/* Topbar */
.drive-topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 24px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.drive-topbar__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.drive-topbar__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.drive-breadcrumb {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  font-family: "Sora", sans-serif;
}

.drive-breadcrumb .drive-bc__item {
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.drive-breadcrumb .drive-bc__item:hover {
  color: var(--teal);
}

.drive-breadcrumb .drive-bc__item i {
  color: var(--text-muted);
  font-size: 16px;
}

.drive-breadcrumb .drive-bc__sep {
  margin: 0 10px;
  color: #cbd5e1;
  font-size: 14px;
}

.drive-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0 16px;
  height: 40px;
  width: 260px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.drive-search:focus-within {
  background: #fff;
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 3px rgba(41, 186, 155, 0.1);
          box-shadow: 0 0 0 3px rgba(41, 186, 155, 0.1);
  width: 320px;
}

.drive-search__icon {
  color: #94a3b8;
  font-size: 14px;
  margin-right: 10px;
}

.drive-search input {
  background: none;
  border: none;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  color: var(--text-muted);
  font-size: 12px;
  outline: none;
  width: 100%;
}

.drive-search__clear {
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.drive-search__clear:hover {
  color: var(--text-main);
}

.drive-view-toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
}

.drive-view-toggle .drive-view-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-view-toggle .drive-view-btn:hover {
  color: var(--text-main);
}

.drive-view-toggle .drive-view-btn.active {
  background: #fff;
  color: var(--teal);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.drive-sort-toggle {
  height: 40px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

.drive-sort-toggle i {
  font-size: 12px;
  color: #94a3b8;
}

.drive-sort-toggle:hover {
  border-color: var(--teal);
}

/* Filters Bar */
.drive-filters-bar {
  padding: 16px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  border-bottom: 1px solid #f8fafc;
}

.drive-filter-pills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.drive-filter-pills::-webkit-scrollbar {
  display: none;
}

.drive-filter-pills .drive-pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  white-space: nowrap;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-filter-pills .drive-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.drive-filter-pills .drive-pill.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.drive-filter-pills .drive-pill i {
  font-size: 14px;
}

/* Bulk Bar */
.drive-bulk-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--teal-dark);
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  -webkit-animation: slideDown 0.2s ease;
          animation: slideDown 0.2s ease;
}

.drive-bulk-bar__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 14px;
}

.drive-bulk-bar .drive-bulk-close {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.drive-bulk-bar .drive-bulk-close:hover {
  color: #fff;
}

.drive-bulk-bar__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.drive-bulk-bar .drive-bulk-action {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-bulk-bar .drive-bulk-action:hover {
  background: rgba(255, 255, 255, 0.2);
}

.drive-bulk-bar .drive-bulk-action--danger:hover {
  background: #ef4444;
}

@keyframes slideDown {
  from {
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

/* Content Area */
.drive-content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  /* Drag Selection Overlay */
}

.drive-content .selection-area {
  position: absolute;
  background: rgba(41, 186, 155, 0.15);
  border: 1px solid rgba(41, 186, 155, 0.5);
  z-index: 100;
  pointer-events: none;
}

.drive-section {
  margin-bottom: 40px;
}

.drive-section__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 16px;
}

.drive-section__title {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

/* Grid Views */
.drive-grid,
.drive-files-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(220px, 1fr))[auto-fill];
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Folder Item */
.drive-folder {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  position: relative;
  min-width: 0;
}

.drive-folder__icon {
  font-size: 28px;
  color: #94a3b8;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.drive-folder__info {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow: hidden;
}

.drive-folder__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-folder__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.drive-folder:hover {
  border-color: var(--teal-light);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.drive-folder:hover .drive-folder__icon {
  color: var(--teal);
}

.drive-folder:hover .drive-file-card__star:not(.active) {
  opacity: 0.5;
}

.drive-folder.selected {
  background: var(--teal-light);
  border-color: var(--teal);
}

.drive-folder.selected .drive-folder__icon {
  color: var(--teal);
}

/* File Grid Item */
.drive-file-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
  min-width: 0;
  /* Star icon */
}

.drive-file-card__preview {
  height: 140px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  position: relative;
}

.drive-file-card__preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.drive-file-card__preview .file-icon-lg {
  font-size: 48px;
  color: #cbd5e1;
}

.drive-file-card__preview .file-icon-lg.pdf {
  color: #ef4444;
}

.drive-file-card__preview .file-icon-lg.word {
  color: #3b82f6;
}

.drive-file-card__preview .file-icon-lg.video {
  color: #8b5cf6;
}

.drive-file-card__preview .file-icon-lg.image {
  color: #10b981;
}

.drive-file-card__info {
  padding: 16px;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.drive-file-card__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-file-card__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.drive-file-card__tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-bottom: 12px;
}

.drive-file-card__tags .drive-mini-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.drive-file-card__star {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #f59e0b;
  font-size: 16px;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  z-index: 10;
}

.drive-file-card__star.active {
  opacity: 1;
}

.drive-file-card:hover {
  border-color: var(--teal-light);
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
}

.drive-file-card:hover .drive-file-card__star:not(.active) {
  opacity: 0.5;
}

.drive-file-card.selected {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 2px var(--teal);
          box-shadow: 0 0 0 2px var(--teal);
}

.drive-file-card.selected .drive-file-card__preview {
  background: var(--teal-light);
}

/* List View */
.drive-table {
  width: 100%;
  border-collapse: collapse;
}

.drive-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drive-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 14px;
  color: var(--text-main);
}

.drive-table tr {
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.drive-table tr:hover {
  background: #f8fafc;
}

.drive-table tr.selected {
  background: var(--teal-light);
}

.drive-table tr.selected td {
  border-color: rgba(41, 186, 155, 0.2);
}

.drive-table .file-cell-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-weight: 500;
}

.drive-table .file-cell-list i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.drive-table .file-cell-list i.pdf {
  color: #ef4444;
}

.drive-table .file-cell-list i.image {
  color: #10b981;
}

.drive-table .file-cell-list i.video {
  color: #8b5cf6;
}

.drive-table .file-cell-list i.folder {
  color: #94a3b8;
}

.drive-table .tag-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.drive-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--teal);
}

/* Empty State */
.drive-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 80px 20px;
  text-align: center;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  /* Center vertically inside main drive flex container */
  width: 100%;
  border-radius: 16px;
  margin: auto 0;
}

.drive-empty__icon {
  font-size: 80px;
  color: #e2e8f0;
  /* Soft, light slate */
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  /* Add a soft glow behind the icon for premium feel */
}

.drive-empty__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: var(--teal-light);
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: -1;
  -webkit-filter: blur(25px);
          filter: blur(25px);
  opacity: 0.6;
}

.drive-empty__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.drive-empty__sub {
  font-size: 15px;
  color: #64748b;
  max-width: 360px;
  line-height: 1.6;
  margin: 0 auto 32px auto;
}

/* 4. Context Menu */
.drive-context-menu {
  position: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 200px;
  z-index: 9999;
  display: none;
  opacity: 0;
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
  -webkit-transform-origin: top left;
          transform-origin: top left;
  -webkit-transition: opacity 0.15s ease, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transition: opacity 0.15s ease, transform 0.15s ease, -webkit-transform 0.15s ease;
}

.drive-context-menu.show {
  display: block;
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1);
}

.drive-context-menu .drive-ctx-item {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.drive-context-menu .drive-ctx-item i {
  color: #64748b;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.drive-context-menu .drive-ctx-item:hover {
  background: #f1f5f9;
}

.drive-context-menu .drive-ctx-item--danger {
  color: #ef4444;
}

.drive-context-menu .drive-ctx-item--danger i {
  color: #ef4444;
}

.drive-context-menu .drive-ctx-item--danger:hover {
  background: #fef2f2;
}

.drive-context-menu .drive-ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* 5. Modals */
.drive-modal {
  background: #fff;
  border-radius: 16px;
  width: 600px;
  max-width: 90vw;
  -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
          box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.hidden .drive-modal {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}

.drive-modal--sm {
  width: 400px;
}

.drive-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.drive-modal__header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.drive-modal__header h3 i {
  color: var(--teal);
}

.drive-modal__close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.drive-modal__close:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.drive-modal__body {
  padding: 24px;
}

.drive-modal__footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 12px;
}

.drive-modal__folder-select {
  margin-right: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.drive-modal__folder-select label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.drive-modal__folder-select select {
  width: 180px;
}

/* Upload Zone inside modal */
.drive-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-upload-zone.dragover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.drive-upload-zone__icon {
  font-size: 48px;
  color: var(--teal);
  margin-bottom: 16px;
}

.drive-upload-zone__text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.drive-upload-zone__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.drive-upload-queue {
  margin-top: 20px;
}

.drive-upload-queue__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.drive-upload-queue__clear {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: 500;
}

.drive-upload-queue__clear:hover {
  text-decoration: underline;
}

.drive-upload-queue__list {
  max-height: 200px;
  overflow-y: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.drive-upload-queue .queue-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  gap: 12px;
}

.drive-upload-queue .queue-item .queue-icon {
  font-size: 20px;
  color: #94a3b8;
}

.drive-upload-queue .queue-item .queue-info {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow: hidden;
}

.drive-upload-queue .queue-item .queue-info .queue-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-upload-queue .queue-item .queue-info .queue-size {
  font-size: 11px;
  color: var(--text-muted);
}

.drive-upload-queue .queue-item .queue-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

.drive-upload-queue .queue-item .queue-remove:hover {
  color: #ef4444;
}

/* Tag Selection Grid */
.drive-tag-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drive-tag-grid .drive-tag-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-tag-grid .drive-tag-option:hover {
  background: #f8fafc;
}

.drive-tag-grid .drive-tag-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.drive-tag-grid .drive-tag-option .drive-tag-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.drive-tag-grid .drive-tag-option .drive-tag-label::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tag-color);
}

/* ============================================
   Drive Preview Modal — Professional Redesign
   ============================================ */
.drive-preview-modal {
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 28, 0.97);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-family: "Sora", sans-serif;
  /* ── Topbar ── */
  /* ── Actions ── */
  /* ── Body ── */
  /* Nav arrows */
  /* Media */
  /* Unsupported */
  /* ── Footer ── */
}

.drive-preview-modal .drive-preview__topbar {
  height: 56px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.drive-preview-modal .drive-preview__file-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.drive-preview-modal .drive-preview__file-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.18);
  border: 0.5px solid rgba(99, 102, 241, 0.35);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.drive-preview-modal .drive-preview__file-icon i {
  color: #a5b4fc;
  font-size: 15px;
}

.drive-preview-modal .drive-preview__name {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.drive-preview-modal .drive-preview__meta {
  font-size: 12px;
  color: #fff;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.drive-preview-modal .drive-preview__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.drive-preview-modal .drive-preview__divider {
  width: 0.5px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 6px;
}

.drive-preview-modal .drive-preview__btn,
.drive-preview-modal .drive-preview__close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0.5px solid transparent;
  background: transparent;
  color: #64748b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: background 0.15s, color 0.15s, border-color 0.15s;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-size: 16px;
}

.drive-preview-modal .drive-preview__btn:hover,
.drive-preview-modal .drive-preview__close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

.drive-preview-modal .drive-preview__btn--danger:hover,
.drive-preview-modal .drive-preview__close--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

.drive-preview-modal .drive-preview__body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 32px;
  overflow: hidden;
  position: relative;
}

.drive-preview-modal .drive-preview__nav {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  font-size: 18px;
  -webkit-transition: background 0.15s, color 0.15s;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}

.drive-preview-modal .drive-preview__nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.drive-preview-modal .drive-preview__nav--left {
  left: 12px;
}

.drive-preview-modal .drive-preview__nav--right {
  right: 12px;
}

.drive-preview-modal .drive-preview__media-wrap {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.drive-preview-modal .drive-preview__format-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drive-preview-modal img,
.drive-preview-modal video {
  max-width: 100%;
  max-height: calc(100vh - 56px - 44px - 64px);
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 6px;
  display: block;
}

.drive-preview-modal .preview-unsupported {
  color: #fff;
  text-align: center;
}

.drive-preview-modal .preview-unsupported i {
  font-size: 64px;
  color: #334155;
  display: block;
  margin-bottom: 20px;
}

.drive-preview-modal .preview-unsupported h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.drive-preview-modal .preview-unsupported p {
  color: #64748b;
  font-size: 14px;
}

.drive-preview-modal .drive-preview__footer {
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.drive-preview-modal .drive-preview__footer-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 12px;
}

.drive-preview-modal .drive-preview__footer-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #334155;
}

.drive-preview-modal .drive-preview__dot-indicator {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}

.drive-preview-modal .drive-preview__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #334155;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.drive-preview-modal .drive-preview__dot--active {
  background: #6366f1;
  width: 16px;
  border-radius: 3px;
}

.drive-preview-modal .drive-preview__counter {
  font-size: 12px;
  color: #334155;
  letter-spacing: 0.04em;
}

.drive-drop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(241, 245, 249, 0.95);
  z-index: 50;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 4px dashed var(--teal);
  border-radius: var(--radius-lg);
  margin: 10px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.drive-drop-overlay.active {
  opacity: 1;
  pointer-events: all;
  -webkit-animation: pulse-drop 1.5s infinite;
          animation: pulse-drop 1.5s infinite;
}

@-webkit-keyframes pulse-drop {
  0% {
    -webkit-box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
            box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
    border-color: rgba(41, 186, 155, 0.5);
  }
  50% {
    -webkit-box-shadow: inset 0 0 150px rgba(41, 186, 155, 0.4);
            box-shadow: inset 0 0 150px rgba(41, 186, 155, 0.4);
    border-color: #29ba9b;
  }
  100% {
    -webkit-box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
            box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
    border-color: rgba(41, 186, 155, 0.5);
  }
}

@keyframes pulse-drop {
  0% {
    -webkit-box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
            box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
    border-color: rgba(41, 186, 155, 0.5);
  }
  50% {
    -webkit-box-shadow: inset 0 0 150px rgba(41, 186, 155, 0.4);
            box-shadow: inset 0 0 150px rgba(41, 186, 155, 0.4);
    border-color: #29ba9b;
  }
  100% {
    -webkit-box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
            box-shadow: inset 0 0 50px rgba(41, 186, 155, 0.2);
    border-color: rgba(41, 186, 155, 0.5);
  }
}

.drive-drop-overlay i {
  font-size: 64px;
  color: var(--teal);
  margin-bottom: 20px;
}

/* Custom Dropdown */
.drive-sort-wrap {
  position: relative;
}

.drive-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-10px);
          transform: translateY(-10px);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.drive-sort-menu.show {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.drive-sort-menu .custom-dropdown__item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.drive-sort-menu .custom-dropdown__item:hover {
  background: #f1f5f9;
}

.drive-sort-menu .custom-dropdown__item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* Storage */
.drive-storage {
  background: #fff;
  padding: 16px;
}

.drive-storage__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.drive-storage__top i {
  color: var(--teal);
}

.drive-storage__progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.drive-storage__bar {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.drive-storage__text {
  font-size: 12px;
  color: var(--text-muted);
}

.drive-storage__text strong {
  color: var(--text-main);
}

.drive-upload-list .es-file-cat-badge {
  display: none !important;
}

/* Assign Tags Modal List */
.driveAssignTagsList {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.driveAssignTagsList h6 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.driveAssignTagsList h6:first-child {
  margin-top: 0;
}

.driveAssignTagsList .pm-toggle-label {
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.driveAssignTagsList .pm-toggle-label:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.driveAssignTagsList .pm-toggle-label .pm-toggle-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* Owner Name Attribution Styles */
.drive-owner-name {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.drive-owner-name i {
  font-size: 11px;
  color: #cbd5e1;
}

.drive-owner-name--file {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
}

.drive-owner-name--list {
  color: #64748b;
  font-size: 13px;
}

.drive-owner-name--list i {
  font-size: 12px;
}

/* User Filter Dropdown */
.drive-user-filter {
  min-width: 250px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.drive-user-filter .form-select {
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2394a3b8" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 98%;
  background-position-y: 50%;
}

@media (max-width: 1024px) {
  /* Shell tam yüksekliği kap */
  .drive-shell {
    height: calc(100vh - var(--topbar-h) - 40px);
    border-radius: var(--radius-md, 10px);
  }
  /* Sidebar biraz daralt */
  .drive-sidebar {
    width: 220px;
  }
  /* Topbar arama kutusu daralt */
  .drive-search {
    width: 200px;
  }
  .drive-search:focus-within {
    width: 240px;
  }
  /* Grid kolonu daha az olsun */
  .drive-grid,
  .drive-files-grid {
    -ms-grid-columns: (minmax(180px, 1fr))[auto-fill];
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
  /* Filters bar sarma izni */
  .drive-filters-bar {
    gap: 10px;
  }
}

/* ─── TABLET KÜÇÜK / BÜYÜK MOBİL: ≤ 768px ──────────────────────── */
@media (max-width: 768px) {
  /* Shell dikey stack — sidebar üstte değil, drawer olarak saklanır */
  .drive-shell {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: auto;
    min-height: calc(100vh - var(--topbar-h) - 24px);
    border-radius: 12px;
    overflow: visible;
    /* drawer dışa taşısın */
  }
  /* ── Sidebar: off-canvas drawer ── */
  .drive-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100dvh;
    z-index: 500;
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transition: -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-box-shadow: none;
            box-shadow: none;
    /* gizliyken shadow kalmasın */
    overflow-y: auto;
    border-right: none;
    border-radius: 0;
    visibility: hidden;
    /* shadow + layout etkisini tamamen sıfırla */
  }
  /* Açıkken shadow ve visibility geri gelsin */
  .drive-sidebar--open {
    visibility: visible;
    -webkit-box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
            box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
  }
  /* Sidebar açıkken .drive-sidebar--open class'ı ekle (JS) */
  .drive-sidebar--open {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  /* Overlay — sidebar açıkken arkaya koyu katman */
  .drive-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 499;
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
  }
  .drive-sidebar-overlay--visible {
    display: block;
  }
  /* ── Main area tam genişlik ── */
  .drive-main {
    width: 100%;
    min-width: 0;
  }
  /* ── Topbar ── */
  .drive-topbar {
    height: auto;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  .drive-topbar__left {
    gap: 10px;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
  .drive-topbar__right {
    gap: 8px;
  }
  /* Hamburger menü butonu — sadece mobilde göster */
  .drive-topbar__hamburger {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    width: 36px;
    height: 36px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 16px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }
  /* Breadcrumb küçül */
  .drive-breadcrumb {
    font-size: 15px;
  }
  .drive-breadcrumb .drive-bc__item {
    gap: 6px;
  }
  /* Arama full genişlik, ikinci satırda */
  .drive-search {
    width: 100%;
    max-width: 100%;
    -webkit-box-ordinal-group: 11;
        -ms-flex-order: 10;
            order: 10;
    /* sona at, flex-wrap ile alt satıra geç */
  }
  .drive-search:focus-within {
    width: 100%;
  }
  /* Sort toggle ikonu, metin gizle */
  .drive-sort-toggle span {
    display: none;
  }
  .drive-sort-toggle {
    width: 40px;
    padding: 0;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  /* Filters bar — yatay scroll */
  .drive-filters-bar {
    padding: 12px 14px;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .drive-filters-bar::-webkit-scrollbar {
    display: none;
  }
  .drive-filter-pills {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
  }
  /* Content padding küçült */
  .drive-content {
    padding: 16px 14px;
  }
  /* Grid: 2 sütun sabit */
  .drive-grid,
  .drive-files-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  /* File card preview biraz kısa */
  .drive-file-card__preview {
    height: 110px;
  }
  /* Folder item küçük padding */
  .drive-folder {
    padding: 12px;
    gap: 10px;
  }
  .drive-folder__icon {
    font-size: 22px;
  }
  .drive-folder__name {
    font-size: 13px;
  }
  /* Tablo: bazı sütunları gizle */
  .drive-table .col-size,
  .drive-table .col-owner {
    display: none;
  }
  .drive-table th,
  .drive-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  /* Bulk bar */
  .drive-bulk-bar {
    padding: 0 14px;
  }
  .drive-bulk-bar__left {
    font-size: 13px;
    gap: 10px;
  }
  .drive-bulk-bar .drive-bulk-action span {
    display: none;
  }
  .drive-bulk-bar .drive-bulk-action {
    padding: 6px 10px;
  }
  /* Preview modal */
  .drive-preview-modal .drive-preview__topbar {
    padding: 0 14px;
  }
  .drive-preview-modal .drive-preview__body {
    padding: 16px;
  }
  .drive-preview-modal .drive-preview__name {
    font-size: 13px;
  }
  /* Upload modal tam ekran */
  .drive-modal {
    width: 96vw;
    max-width: 96vw;
    border-radius: 12px;
  }
  .drive-modal--sm {
    width: 96vw;
  }
  /* Sort dropdown sola kaymasın */
  .drive-sort-menu {
    right: 0;
    left: auto;
  }
  /* Context menu touch dostu */
  .drive-context-menu .drive-ctx-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ─── MOBİL KÜÇÜK: ≤ 480px ─────────────────────────────────────── */
@media (max-width: 480px) {
  .drive-shell {
    border-radius: 8px;
  }
  /* Grid: tek sütun */
  .drive-grid,
  .drive-files-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    gap: 10px;
  }
  /* Folder: liste gibi görünsün */
  .drive-folder {
    padding: 10px 12px;
    gap: 12px;
    border-radius: 10px;
  }
  .drive-folder__icon {
    font-size: 20px;
  }
  .drive-folder__name {
    font-size: 13px;
  }
  .drive-folder__meta {
    font-size: 11px;
    gap: 8px;
  }
  /* File card yatay liste modu */
  .drive-file-card {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    border-radius: 10px;
  }
  .drive-file-card__preview {
    height: auto;
    width: 70px;
    min-width: 70px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    border-radius: 10px 0 0 10px;
  }
  .drive-file-card__preview .file-icon-lg {
    font-size: 28px;
  }
  .drive-file-card__info {
    padding: 10px 12px;
  }
  .drive-file-card__name {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .drive-file-card__tags .drive-mini-tag {
    font-size: 9px;
    padding: 2px 6px;
  }
  .drive-file-card__meta {
    font-size: 11px;
    padding-top: 8px;
  }
  .drive-file-card__star {
    top: 8px;
    right: 8px;
    font-size: 14px;
  }
  /* Upload btn metni kısalt */
  .drive-upload-btn span {
    display: none;
  }
  .drive-upload-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-radius: 50%;
    margin: 14px auto;
  }
  .drive-upload-btn i {
    margin: 0;
  }
  /* Topbar arama gizle, sadece ikon göster */
  .drive-search {
    display: none;
  }
  /* Arama ikonuna basılınca açılsın — JS ile .drive-search--visible ekle */
  .drive-search--visible {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    position: fixed;
    top: calc(var(--topbar-h) + 8px);
    left: 10px;
    right: 10px;
    width: auto;
    z-index: 200;
    background: #fff;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--teal);
  }
  /* Arama aç/kapat butonu — sadece ≤480px'te görün */
  .drive-topbar__search-toggle {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  /* Breadcrumb — sadece son segment */
  .drive-breadcrumb .drive-bc__sep,
  .drive-breadcrumb .drive-bc__item:not(:last-child) {
    display: none;
  }
  /* Section başlık */
  .drive-section__title {
    font-size: 11px;
  }
  /* Modal tam ekran */
  .drive-modal {
    width: 100vw;
    max-width: 100vw;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    /* slide up effect için: sayfanın altına yasla */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  /* Preview footer dot indicator küçük */
  .drive-preview__dot {
    width: 4px;
    height: 4px;
  }
  .drive-preview__dot--active {
    width: 12px;
  }
  /* Bulk bar tam responsive */
  .drive-bulk-bar {
    height: auto;
    padding: 10px 14px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
  }
  .drive-bulk-bar__left {
    font-size: 12px;
  }
  .drive-bulk-bar__right {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 6px;
  }
  .drive-bulk-bar .drive-bulk-action {
    font-size: 12px;
    padding: 6px 8px;
  }
  /* Empty state küçük */
  .drive-empty {
    padding: 48px 16px;
  }
  .drive-empty__icon {
    font-size: 56px;
  }
  .drive-empty__title {
    font-size: 17px;
  }
  .drive-empty__sub {
    font-size: 13px;
  }
}

/* ─── TOUCH: hover efektleri kaldır (dokunmatik cihaz) ─────────── */
@media (hover: none) and (pointer: coarse) {
  .drive-folder:hover,
  .drive-file-card:hover {
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    border-color: var(--border);
  }
  .drive-upload-btn:hover {
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: 0 4px 12px rgba(41, 186, 155, 0.3);
            box-shadow: 0 4px 12px rgba(41, 186, 155, 0.3);
  }
  .drive-btn-manage-labels:hover {
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: 0 4px 12px rgba(41, 186, 155, 0.25);
            box-shadow: 0 4px 12px rgba(41, 186, 155, 0.25);
  }
  /* Tap highlight kaldır */
  .drive-folder,
  .drive-file-card,
  .drive-nav__item,
  .drive-pill,
  .drive-ctx-item {
    -webkit-tap-highlight-color: transparent;
  }
  /* Active state ile görsel geri bildirim ver */
  .drive-folder:active {
    background: var(--teal-light);
    -webkit-transform: scale(0.98);
            transform: scale(0.98);
  }
  .drive-file-card:active {
    -webkit-transform: scale(0.98);
            transform: scale(0.98);
  }
  .drive-pill:active {
    background: var(--teal-light);
    border-color: var(--teal);
  }
}

/* ─── HAMBURGER BUTONU: desktop'ta gizli ───────────────────────── */
.drive-topbar__hamburger,
.drive-topbar__search-toggle {
  display: none;
}

/* ─── YÜKSEK DPI / RETINA için ince border ─────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .drive-shell {
    border-width: 0.5px;
  }
}

/* ── CHATS MODULE (MODERN WHATSAPP / DUAL-PANE) ───────────────────────── */
.chats-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* 1. Left Sidebar (Chat List) */
.chats-sidebar {
  width: 320px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.chats-sidebar__header {
  padding: 16px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chats-sidebar__header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.chats-sidebar__search {
  padding: 20px 20px;
  position: relative;
}

.chats-sidebar__search i {
  position: absolute;
  left: 32px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.chats-sidebar__search input {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px 8px 36px;
  font-size: 13px;
  outline: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.chats-sidebar__search input:focus {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.chats-sidebar__filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--border);
}

.chat-filter-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.chat-filter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.chat-filter.active,
.chat-filter:hover {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
}

.chat-list {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.chat-list::-webkit-scrollbar {
  width: 5px;
}

.chat-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.chat-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-bottom: 1px solid transparent;
}

.chat-item:hover {
  background: var(--bg-body);
}

.chat-item.active {
  background: rgba(20, 184, 166, 0.05);
  border-right: 3px solid var(--teal);
}

.chat-item__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.chat-item__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.bg-orange {
  background: #f97316;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.status-online {
  background: #10b981;
}

.status-offline {
  background: #94a3b8;
}

.chat-item__info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.chat-item__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 4px;
}

.chat-item__top h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-item__bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.chat-preview {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.chat-preview i {
  margin-right: 4px;
}

.chat-unread {
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-left: 8px;
}

/* 2. Main Active Chat Area */
.chats-main {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: var(--bg-body);
  position: relative;
}

/* Main Header */
.chats-main__header {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 24px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.chat-user-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.chat-user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
}

.chat-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.chat-user-details h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 2px;
}

.chat-user-status {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-header-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.chats-user-dropdown .custom-dropdown__toggle {
  height: 38px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-color: var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.chat-header-actions .btn--outline {
  height: 38px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-color: var(--border) !important;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-left: 0;
}

.chat-header-actions .btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.chat-header-actions .btn-icon:hover {
  background: var(--bg-body);
}

/* Sidebar Dropdown Override */
.chats-add-dropdown {
  width: auto;
}

.chats-add-toggle {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--bg-body) !important;
  border: none !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
}

.chats-add-toggle::after {
  display: none !important;
}

.chats-add-dropdown {
  width: auto !important;
  margin-left: auto;
}

.chats-add-dropdown .custom-dropdown__menu {
  min-width: 180px;
  right: 0;
  left: auto;
}

/* Source Filter Dropdown */
.chats-source-filter {
  width: auto !important;
  margin-left: auto;
}

.chats-source-filter .custom-dropdown__menu {
  min-width: 160px;
  right: 0;
  left: auto;
}

.chats-dropdown-icon {
  width: 20px;
  text-align: center;
  margin-right: 4px;
}

/* Universal Chats Icon Toggles */
.chats-add-toggle,
.chats-filter-toggle {
  all: unset !important;
  -webkit-box-sizing: border-box !important;
          box-sizing: border-box !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  -webkit-transition: all 0.2s ease !important;
  transition: all 0.2s ease !important;
}

.chats-add-toggle::after,
.chats-filter-toggle::after {
  display: none !important;
  content: none !important;
}

.chats-add-toggle:hover,
.chats-filter-toggle:hover,
.chats-add-toggle:focus,
.chats-filter-toggle:focus {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--teal) !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

/* Chat Item Source Badges */
.chat-item__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.chat-source-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 11px;
}

.chat-source-badge.text-success {
  background: rgba(20, 184, 166, 0.15) !important;
  color: var(--teal) !important;
}

.chat-source-badge.text-info {
  background: rgba(13, 202, 240, 0.15) !important;
  color: #0088cc !important;
}

.chat-source-badge.text-primary {
  background: rgba(13, 110, 253, 0.15) !important;
  color: var(--teal) !important;
}

/* Chat Body */
.chats-main__body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  background: #f1f5f9;
  /* Soft background contrasting bubbles */
}

.chats-main__body::-webkit-scrollbar {
  width: 6px;
}

.chats-main__body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.chat-date-divider {
  text-align: center;
  margin: 10px 0;
}

.chat-date-divider span {
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.chat-message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}

.chat-message--incoming {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.chat-message--outgoing {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.message-bubble {
  max-width: 65%;
  padding: 12px 16px;
  position: relative;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message--incoming .message-bubble {
  background: #fff;
  border-bottom-left-radius: 2px;
}

.chat-message--outgoing .message-bubble {
  background: #e0f2fe;
  /* Light blue accent for outgoing */
  border-bottom-right-radius: 2px;
}

.message-bubble p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

.message-time {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #94a3b8;
}

/* Footer (Composer) */
.chats-main__footer {
  background: #fff;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.chat-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: var(--bg-body);
  color: var(--teal);
}

.chat-input-wrapper {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.chat-input-wrapper input {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

.chat-input-wrapper input:focus {
  border-color: var(--teal);
  background: #fff;
  -webkit-box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.05);
          box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.05);
}

.chat-action-btn--send {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: none;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

.chat-action-btn--send:hover {
  background: var(--teal-hover);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
          box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

/* Utilities inside Chat Header */
.border-gray {
  border-color: var(--border) !important;
}

.text-teal {
  color: var(--teal) !important;
}

/* ── ADS MANAGER MODULE ─────────────────────────────────────────────────── */
.text-start {
  text-align: left !important;
}

/* 1. Gateway View (ads.html) */
.ads-alert {
  background: rgba(239, 68, 68, 0.08);
  /* Very light red/pink */
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  /* Darker red matching ek-1 */
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.ads-cards-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0;
}

.ads-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ads-card:hover {
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
  -webkit-box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
          box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(20, 184, 166, 0.3);
}

.ads-card i {
  font-size: 56px;
  color: var(--teal);
  margin-bottom: 24px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.ads-card:hover i {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.ads-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 2. Campaign Data Table View (ads-campaigns.html) */
.campaign-name-cell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  font-weight: 500;
}

.campaign-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 15px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.campaign-name-cell .ads-title-teal {
  font-size: 14px;
  /* Slightly larger text for campaigns */
}

.ads-thumbnail-wrapper {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-body);
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ads-thumbnail {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border: none;
}

/* 3. Universal Ads Utilities & Data Tables */
.ads-title-teal {
  font-weight: 600;
  color: var(--teal);
}

.ads-text-muted {
  color: var(--text-muted);
}

.ads-table-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.ads-action-icon {
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.ads-action-icon:hover {
  color: var(--teal);
}

/* =========================================================================
   REPORTS MODULE
   ========================================================================= */
/* ── PAGE HEADER (REPORTS SPECIFIC) ─────────────────────────────────────── */
.page-header--with-back {
  margin-bottom: 24px;
}

.page-header--with-back .page-header__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.page-header--with-back .btn-back-report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.page-header--with-back .btn-back-report:hover {
  background: var(--bg-hover, #f1f5f9);
}

.page-header--with-back .page-header__title-wrap h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  color: var(--text-main);
}

.page-header--with-back .page-header__title-wrap p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── FILTER BAR ─────────────────────────────────────────────────────────── */
.reports-filter-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px;
}

/* ── REPORT TABLE TYPOGRAPHY RECOVERY ───────────────────────────────────── */
/* Automatically targets the dual-div structure (Name + Subtitle) previously 
   styled with inline CSS */
.page-wrapper .data-table tbody td > div:first-child:not(:last-child) {
  font-weight: 600;
  color: #01385e;
  /* var(--teal-dark) equivalent */
  font-size: 13.5px;
  margin-bottom: 2px;
}

.page-wrapper .data-table tbody td > div:last-child:not(:first-child) {
  font-size: 11px;
  color: #94a3b8;
  /* var(--text-muted) */
}

.reports-filter-inputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.reports-date-picker {
  position: relative;
  width: 240px;
}

.reports-date-picker input {
  width: 100%;
  height: 38px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-body);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
}

.reports-date-picker i {
  position: absolute;
  left: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.reports-date-picker input:focus {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  outline: none;
}

.reports-filter-bar .btn-filter,
.reports-filter-inputs .btn-filter {
  background: var(--teal);
  color: #fff;
  height: 38px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.reports-filter-bar .btn-filter:hover,
.reports-filter-inputs .btn-filter:hover {
  background: var(--teal-dark);
}

.reports-filter-bar .btn-download,
.reports-filter-inputs .btn-download {
  background: #3b4256;
  /* Dark slate blue from mockups */
  color: #fff;
  height: 38px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.reports-filter-bar .btn-download:hover,
.reports-filter-inputs .btn-download:hover {
  background: #2d3345;
}

/* ── CUSTOM MULTI-SELECT DROPDOWN ───────────────────────────────────────── */
.custom-multi-select {
  position: relative;
  width: 220px;
}

.custom-multi-select__toggle {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.custom-multi-select__toggle:hover {
  border-color: #cbd5e1;
}

.custom-multi-select__toggle.active {
  border-color: var(--teal);
  background: #fff;
}

.custom-multi-select__toggle i {
  font-size: 12px;
  color: #94a3b8;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

.custom-multi-select__toggle.active i {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.custom-multi-select__menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(10px);
          transform: translateY(10px);
  -webkit-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-multi-select__menu.show {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.custom-multi-select__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}

.custom-multi-select__item:hover {
  background: #f8fafc;
}

.custom-multi-select__item input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 10px 0 0;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.custom-multi-select__item input[type="checkbox"]:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}

.custom-multi-select__item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.custom-multi-select__text {
  font-size: 13px;
  color: var(--text-secondary);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.custom-multi-select__search {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.custom-multi-select__search input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
}

.custom-multi-select__search input:focus {
  outline: none;
  border-color: var(--teal);
}

/* ── CHART CONTAINER ────────────────────────────────────────────────────── */
.reports-chart-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  min-height: 400px;
  /* Base height for charts */
  position: relative;
}

/* ── CAMPAIGN ANALYSIS DATATABLE TWEAKS ─────────────────────────────────── */
.reports-table-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  /* DataTables handles its own internal paddings usually */
  overflow: hidden;
}

/* ── ADVISORY BANNER (Average Ticket Time) ──────────────────────────────── */
.reports-advisory-banner {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--teal-dark);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ── CHECKBOX PILLS (For Campaign Cost Line Chart) ──────────────────────── */
.reports-chart-pills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.reports-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  padding: 6px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-main);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.reports-pill:hover {
  border-color: #cbd5e1;
}

.reports-pill.active {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.05);
}

.reports-pill-color {
  width: 14px;
  height: 6px;
  border-radius: 2px;
  margin-right: 8px;
  display: inline-block;
}

/* Chart Legend Badges for ek-1 style footer */
.reports-chart-legend {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: x;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.reports-legend-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 16px;
  margin-bottom: 8px;
}

.reports-legend-color {
  width: 24px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}

/* Dynamically color standard legends based on index */
.reports-chart-legend .reports-legend-item:nth-child(1) .reports-legend-color {
  background-color: #3b82f6;
}

.reports-chart-legend .reports-legend-item:nth-child(2) .reports-legend-color {
  background-color: #ec4899;
}

.reports-chart-legend .reports-legend-item:nth-child(3) .reports-legend-color {
  background-color: #eab308;
}

.reports-chart-legend .reports-legend-item:nth-child(4) .reports-legend-color {
  background-color: #14b8a6;
}

.reports-chart-legend .reports-legend-item:nth-child(5) .reports-legend-color {
  background-color: #10b981;
}

.reports-chart-legend .reports-legend-item:nth-child(6) .reports-legend-color {
  background-color: #e11d48;
}

/* Dynamically color cost pills based on dataset index */
.reports-chart-pills .reports-pill[data-dataset="all"] .reports-pill-color {
  background-color: var(--text-muted);
}

.reports-chart-pills .reports-pill[data-dataset="0"] .reports-pill-color {
  background-color: #3b82f6;
}

.reports-chart-pills .reports-pill[data-dataset="1"] .reports-pill-color {
  background-color: #ec4899;
}

.reports-chart-pills .reports-pill[data-dataset="2"] .reports-pill-color {
  background-color: #eab308;
}

.reports-chart-container {
  padding-bottom: 40px;
}

.reports-chart-container h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-main);
}

/* ── MATRIX TABLE (Static Cross-Tabulation Grid) ────────────────────────── */
.reports-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.reports-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  color: var(--text-secondary);
}

.reports-matrix-table th,
.reports-matrix-table td {
  padding: 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.reports-matrix-table th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
}

.reports-matrix-table th.bg-total {
  background: #7e90c7;
  /* Brand total color from ek-1 */
  color: #fff;
}

.reports-matrix-table td {
  color: var(--text-main);
  font-weight: 500;
}

.reports-matrix-table td:last-child,
.reports-matrix-table th:last-child {
  border-right: none;
}

.reports-matrix-table tbody tr:hover {
  background: #f8fafc;
}

.reports-matrix-table .col-fw-bold {
  font-weight: 700;
}

/* ── PROGRESS BAR (Targets Performance) ─────────────────────────────────── */
.reports-progress-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  width: 100%;
}

.reports-progress-bar {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.reports-progress-fill {
  height: 100%;
  border-radius: 4px;
}

.reports-progress-text {
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
}

.reports-progress-fill--success {
  background: #10b981;
}

.reports-progress-fill--warning {
  background: #f59e0b;
}

.reports-progress-fill--danger {
  background: #ef4444;
}

.reports-progress-fill--info {
  background: #3b82f6;
}

/* ── COMPLEX COLSPAN TABLE (Interested Lead Report) ─────────────────────── */
.reports-colspan-wrapper {
  overflow-x: auto;
  padding-bottom: 24px;
}

.reports-colspan-table {
  width: 100%;
  min-width: 1500px;
  border-collapse: separate;
  border-spacing: 0;
}

.reports-colspan-table thead th {
  vertical-align: middle;
  text-align: center;
  border-bottom: 2px solid #fff;
  font-weight: 500;
}

.reports-colspan-table thead .col-advisor,
.reports-colspan-table thead .col-avg {
  text-align: left;
  background: #fff;
  color: var(--text-muted);
  border-right: 1px solid #e2e8f0;
}

.reports-colspan-table thead .col-advisor:last-child,
.reports-colspan-table thead .col-avg:last-child {
  border: none;
}

.reports-colspan-table thead .bg-total {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-right: 1px solid #fff;
}

.reports-colspan-table thead .bg-interested {
  background: #ccfbf1 !important;
  color: #0f766e !important;
  border-right: 1px solid #fff;
}

.reports-colspan-table thead .bg-percent {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.reports-colspan-table thead .sub-headers th {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 12px 8px;
  background: #fff;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.reports-colspan-table tbody td {
  text-align: center;
  border-right: 1px solid #f8fafc;
  border-bottom: 1px solid #f8fafc;
  color: var(--text-main);
  padding: 14px 8px;
}

.reports-colspan-table tbody td.col-advisor-name {
  text-align: left;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ==========================================================================
   CRM CALENDAR OVERRIDES
   ========================================================================== */
.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* FullCalendar V6 Overrides */
#calendar {
  /* Variables Override */
  --fc-border-color: var(--border);
  --fc-daygrid-event-dot-width: 8px;
  --fc-today-bg-color: rgba(13, 148, 136, 0.05);
  /* Teal Tint */
  --fc-event-bg-color: var(--teal);
  --fc-event-border-color: var(--teal);
  --fc-button-bg-color: #fff;
  /* Clean white */
  --fc-button-border-color: var(--border);
  --fc-button-hover-bg-color: var(--teal-light);
  --fc-button-hover-border-color: rgba(41, 186, 155, 0.4);
  /* Soft teal border */
  --fc-button-active-bg-color: var(--teal);
  --fc-button-active-border-color: var(--teal);
  --fc-page-bg-color: transparent;
  /* Font & Sizing */
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  /* Toolbar Elements */
  /* Layout adjustments for button groups */
  /* Header / Weekdays */
  /* Grid Cells */
  /* Events (Teal Chips) */
  /* More Link (+X more) */
}

#calendar .fc-toolbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
  /* Teal header text */
}

#calendar .fc-button {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--text-secondary) !important;
  /* Neutral text for unselected state */
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  /* Fix disabled state color (like "Today" when on current day) */
}

#calendar .fc-button:hover {
  color: var(--teal) !important;
}

#calendar .fc-button.fc-button-active, #calendar .fc-button:active, #calendar .fc-button:focus {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  /* White text for active/pressed state */
  /* Ensure icon inherits the white color */
}

#calendar .fc-button.fc-button-active .fc-icon, #calendar .fc-button:active .fc-icon, #calendar .fc-button:focus .fc-icon {
  color: #fff !important;
}

#calendar .fc-button:disabled {
  opacity: 0.6 !important;
  background-color: var(--fc-button-bg-color) !important;
  border-color: var(--fc-button-border-color) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}

#calendar .fc-prev-button,
#calendar .fc-next-button {
  padding: 6px 10px;
}

#calendar .fc-toolbar-chunk {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

#calendar .fc-button-group {
  gap: 4px;
}

#calendar .fc-button-group > .fc-button {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  border-radius: 4px !important;
  /* Make sure all have border radius */
  margin: 0 !important;
  /* Remove negative overlap */
}

#calendar .fc-col-header-cell {
  padding: 12px 0;
  background: transparent;
}

#calendar .fc-col-header-cell .fc-col-header-cell-cushion {
  color: var(--teal);
  font-weight: 600;
  text-transform: capitalize;
  text-decoration: none;
}

#calendar .fc-daygrid-day-number {
  color: var(--teal);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  padding: 6px;
}

#calendar .fc-event {
  border-radius: 2px;
  padding: 2px 4px;
  margin-bottom: 2px;
  border: none;
  cursor: pointer;
  font-size: 11px;
}

#calendar .fc-event .fc-event-main {
  color: #fff;
  font-weight: 500;
}

#calendar .fc-event:hover {
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
}

#calendar .fc-daygrid-more-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal) !important;
  text-decoration: none;
  margin-top: 2px;
  display: inline-block;
}

#calendar .fc-daygrid-more-link:hover {
  text-decoration: underline;
}

.deals-pg__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
}

.deals-pg__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* ── Loader ──────────────────────────────────────────────────── */
.deals-loader {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.deals-loader__spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(108, 202, 152, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  -webkit-animation: dealsSpin 0.7s linear infinite;
          animation: dealsSpin 0.7s linear infinite;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

@-webkit-keyframes dealsSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes dealsSpin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

/* ── Empty State ─────────────────────────────────────────────── */
.deals-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 200px;
}

.deals-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--teal-rgb, 16, 185, 129), 0.1), rgba(var(--teal-rgb, 16, 185, 129), 0.05));
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--teal);
}

.deals-empty__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.deals-empty__text {
  font-size: 13px;
  color: #94a3b8;
  max-width: 260px;
  line-height: 1.5;
}

/* ================================================================
   2. DEAL CARD  (.deal-card)
   ================================================================ */
.deal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  /* ── Status Modifiers ────────────────────────────────────── */
  /* ── Collapsed ───────────────────────────────────────────── */
  /* ── Header ─────────────────────────────────────────────── */
  /* ── Visits Section ──────────────────────────────────────── */
  /* ── Footer ──────────────────────────────────────────────── */
}

.deal-card--completed {
  border-color: rgba(108, 202, 152, 0.35);
  border-left: 3px solid var(--teal);
}

.deal-card--archived {
  opacity: 0.4;
  position: relative;
}

.deal-card--archived::after {
  content: "ARCHIVED";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(-8deg);
          transform: translate(-50%, -50%) rotate(-8deg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 7px;
  color: rgba(100, 116, 139, 0.4);
  border: 1.5px solid rgba(100, 116, 139, 0.2);
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 2;
}

.deal-card.is-collapsed .deal-card__chevron {
  background: var(--teal-light);
}

.deal-card.is-collapsed .deal-card__chevron i {
  color: var(--teal);
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.deal-card__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-transition: background var(--dur) var(--ease);
  transition: background var(--dur) var(--ease);
}

.deal-card__index {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: background var(--dur);
  transition: background var(--dur);
}

.deal-card__index--completed {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.deal-card__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.deal-card__meta-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 3px;
}

.deal-card__meta-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}

.deal-card__meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.deal-card__id-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin-left: 4px;
}

.deal-card__status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.deal-card__status-pill--active, .deal-card__status-pill--completed {
  background: var(--teal-light);
  color: var(--teal-darker);
}

.deal-card__status-pill--archived {
  background: var(--bg);
  color: var(--text-muted);
}

.deal-card__chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  pointer-events: none;
  -webkit-transition: background var(--dur) var(--ease);
  transition: background var(--dur) var(--ease);
}

.deal-card__chevron i {
  font-size: 11px;
  color: var(--text-muted);
  -webkit-transition: color var(--dur) var(--ease), -webkit-transform 0.3s var(--ease);
  transition: color var(--dur) var(--ease), -webkit-transform 0.3s var(--ease);
  transition: transform 0.3s var(--ease), color var(--dur) var(--ease);
  transition: transform 0.3s var(--ease), color var(--dur) var(--ease), -webkit-transform 0.3s var(--ease);
}

.deal-card__visits {
  padding: 20px 22px;
}

.deal-card .deal-visits-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deal-card__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 14px 22px;
  border-top: 1.5px solid var(--border);
  background: var(--bg-card);
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
}

.deal-card__total {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 10px;
}

.deal-card__total-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.deal-card__total-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.8px;
  line-height: 1;
}

.deal-card__footer-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

/* ── Deal Action Button ──────────────────────────────────────── */
.deal-action-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.deal-action-btn i {
  font-size: 12px;
}

.deal-action-btn:hover {
  background: var(--bg);
  border-color: #c8d9e3;
  color: var(--text-primary);
  text-decoration: none;
}

.deal-action-btn--danger {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.25);
}

.deal-action-btn--danger:hover {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red);
}

/* ================================================================
   3. VISIT CARD  (.visit-card)
   ================================================================ */
.visit-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  -webkit-transition: border-color var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
  transition: border-color var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
  /* ── Head ────────────────────────────────────────────────── */
  /* ── Body ────────────────────────────────────────────────── */
  /* ── Op Row ──────────────────────────────────────────────── */
  /* ── Hotel Row ───────────────────────────────────────────── */
  /* ── Subtotal ────────────────────────────────────────────── */
  /* ── Ticket ──────────────────────────────────────────────── */
  /* ── Complete Actions ────────────────────────────────────── */
}

.visit-card:hover {
  border-color: rgba(108, 202, 152, 0.3);
  -webkit-box-shadow: 0 4px 16px rgba(108, 202, 152, 0.08);
          box-shadow: 0 4px 16px rgba(108, 202, 152, 0.08);
}

.visit-card__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--border);
  background: -webkit-gradient(linear, left top, right top, from(var(--teal-light)), to(var(--bg)));
  background: linear-gradient(90deg, var(--teal-light) 0%, var(--bg) 100%);
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.visit-card__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-mid);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.visit-card__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.visit-card__code-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-mid);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 2px;
  letter-spacing: 0.2px;
}

.visit-card__action-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1.5px solid;
  line-height: 1;
}

.visit-card__action-btn--ticket {
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--blue-light);
  color: #2e8cbf;
}

.visit-card__action-btn--ticket:hover {
  background: #2e8cbf;
  border-color: #2e8cbf;
  color: #fff;
  text-decoration: none;
}

.visit-card__action-btn--delete {
  border-color: var(--border);
  background: var(--bg);
  color: var(--red);
  width: 28px;
  padding: 0;
}

.visit-card__action-btn--delete:hover {
  border-color: var(--red);
  background: var(--red-light);
}

.visit-card__body {
  padding: 12px 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.visit-card__op-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.visit-card__op-row:last-of-type {
  border-bottom: none;
}

.visit-card__op-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.visit-card__op-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.visit-card__op-doctor {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.visit-card__op-doctor i {
  font-size: 10px;
  color: var(--border);
}

.visit-card__op-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding-top: 1px;
}

.visit-card__hotel-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.visit-card__hotel-row:last-of-type {
  border-bottom: none;
}

.visit-card__hotel-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 9px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.visit-card__hotel-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.visit-card__hotel-icon i {
  font-size: 13px;
  color: var(--purple);
}

.visit-card__hotel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

.visit-card__hotel-nights {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.visit-card__hotel-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}

.visit-card__hotel-included {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.visit-card__subtotal {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(108, 202, 152, 0.2);
}

.visit-card__subtotal-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-darker);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.visit-card__subtotal-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.3px;
}

.visit-card__ticket {
  margin-top: 12px;
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f5fafd;
}

.visit-card__ticket-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1.5px solid rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.06);
}

.visit-card__ticket-head-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.visit-card__ticket-head-left i {
  font-size: 12px;
  color: #2e8cbf;
}

.visit-card__ticket-head-left span {
  font-size: 11px;
  font-weight: 700;
  color: #2e8cbf;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.visit-card__ticket-head-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
}

.visit-card__ticket-head-actions a {
  font-size: 11px;
  color: #2e8cbf;
  cursor: pointer;
  text-decoration: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 500;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
}

.visit-card__ticket-head-actions a:hover {
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

.visit-card__ticket-head-actions a.del {
  border-color: var(--border);
  background: var(--bg);
  color: var(--red);
}

.visit-card__ticket-head-actions a.del:hover {
  color: var(--red);
  background: var(--red-light);
}

.visit-card__ticket-body {
  padding: 10px 12px;
}

.visit-card__ticket-flights {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.visit-card__ticket-block {
  background: var(--bg-card);
  border: 1.5px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.visit-card__ticket-direction {
  font-size: 10px;
  font-weight: 700;
  color: #2e8cbf;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}

.visit-card__ticket-direction i {
  font-size: 12px;
}

.visit-card__ticket-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.visit-card__ticket-row:last-child {
  margin-bottom: 0;
}

.visit-card__ticket-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.visit-card__ticket-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.visit-card__ticket-media {
  margin-top: 15px;
  padding: 15px;
  border-top: 1px dashed var(--border);
}

.visit-card__ticket-media-label {
  font-size: 11px;
  font-weight: 700;
  color: #1e617a;
  margin-bottom: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.visit-card__ticket-media-label i {
  font-size: 11px;
}

.visit-card__ticket-media-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
}

.visit-card__ticket-media-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  -webkit-transition: border-color 0.15s, -webkit-transform 0.15s;
  transition: border-color 0.15s, -webkit-transform 0.15s;
  transition: border-color 0.15s, transform 0.15s;
  transition: border-color 0.15s, transform 0.15s, -webkit-transform 0.15s;
  text-decoration: none;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.visit-card__ticket-media-item:hover {
  border-color: var(--teal);
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.visit-card__ticket-media-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.visit-card__ticket-media-item--pdf {
  background: var(--red-light);
  color: var(--red);
  font-size: 20px;
}

.visit-card__ticket-media-item--file {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 20px;
}

.visit-card__ticket-empty {
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
}

.visit-card__ticket-empty i {
  font-size: 14px;
  color: var(--border);
}

.visit-card__pending-warning {
  margin-top: 10px;
  padding: 8px 12px;
  padding-bottom: 11px;
  border-radius: var(--radius-sm);
  background: var(--red-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.visit-card__pending-warning i {
  font-size: 12px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.visit-card__pending-warning .pending-warning__fraction {
  margin-left: auto;
  opacity: 0.75;
  font-weight: 700;
  white-space: nowrap;
}

.visit-card__pending-warning .pending-warning__bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(239, 68, 68, 0.12);
}

.visit-card__pending-warning .pending-warning__bar {
  height: 100%;
  background: var(--red);
  border-radius: 0 2px 2px 0;
  -webkit-transition: width 0.4s ease;
  transition: width 0.4s ease;
}

.visit-card__complete-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(108, 202, 152, 0.4);
  background: transparent;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  letter-spacing: 0.2px;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
}

.visit-card__complete-btn i {
  font-size: 13px;
}

.visit-card__complete-btn:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

.visit-card__completed-badge {
  margin-top: 12px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--teal-darker);
  font-size: 12px;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  cursor: pointer;
  -webkit-transition: opacity var(--dur);
  transition: opacity var(--dur);
}

.visit-card__completed-badge i {
  font-size: 13px;
  color: var(--teal);
}

.visit-card__completed-badge:hover {
  opacity: 0.75;
}

/* ================================================================
   4. PLAN VISIT BOXES  (.dplan) — inside "Add Deal" modal
   ================================================================ */
.dplan {
  /* ── Cart Item (op added to visit) ──────────────────────── */
  /* ── Empty State ─────────────────────────────────────────── */
  /* ── Hotel Panel ─────────────────────────────────────────── */
  /* ── Visit Action Buttons ────────────────────────────────── */
  /* ── Subtotal ────────────────────────────────────────────── */
}

.dplan-visit {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  -webkit-transition: -webkit-box-shadow var(--dur) var(--ease);
  transition: -webkit-box-shadow var(--dur) var(--ease);
  transition: box-shadow var(--dur) var(--ease);
  transition: box-shadow var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
}

.dplan-visit:hover {
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.dplan-visit__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 2px dashed var(--border);
  background: var(--bg);
}

.dplan-visit__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.dplan-visit__title i {
  font-size: 14px;
}

.dplan-visit__body {
  padding: 16px 18px;
}

.dplan-visit__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
}

.dplan-op-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 8px;
  gap: 10px;
  -webkit-transition: -webkit-box-shadow var(--dur);
  transition: -webkit-box-shadow var(--dur);
  transition: box-shadow var(--dur);
  transition: box-shadow var(--dur), -webkit-box-shadow var(--dur);
}

.dplan-op-item:hover {
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dplan-op-item__info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.dplan-op-item__doctor-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #2e8cbf;
  background: var(--blue-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.dplan-op-item__doctor-badge i {
  font-size: 11px;
}

.dplan-op-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.dplan-op-item__cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}

.dplan-op-item__price-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.dplan-op-item__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.dplan-op-item__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.dplan-op-item__btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  font-size: 12px;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.dplan-op-item__btn--edit {
  background: var(--blue-light);
  color: #2e8cbf;
}

.dplan-op-item__btn--edit:hover {
  background: #2e8cbf;
  color: #fff;
}

.dplan-op-item__btn--remove {
  background: var(--red-light);
  color: var(--red);
}

.dplan-op-item__btn--remove:hover {
  background: var(--red);
  color: #fff;
}

.dplan-empty {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 28px 16px;
  text-align: center;
}

.dplan-empty i {
  font-size: 26px;
  color: var(--border);
  display: block;
  margin-bottom: 10px;
}

.dplan-empty p {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.dplan-hotel-panel {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
}

.dplan-hotel-panel__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 12px;
}

.dplan-hotel-panel__head h6 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
}

.dplan-hotel-panel__head h6 i {
  color: var(--teal);
  font-size: 13px;
}

.dplan-hotel-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}

.dplan-hotel-block__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--red-light);
  border: none;
  color: var(--red);
  font-size: 11px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: all var(--dur);
  transition: all var(--dur);
}

.dplan-hotel-block__remove:hover {
  background: var(--red);
  color: #fff;
}

.dplan-visit-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.dplan-visit-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  border: 1.5px solid;
}

.dplan-visit-btn--hotel {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}

.dplan-visit-btn--hotel:hover {
  background: var(--bg);
  color: var(--text-primary);
  border-color: #c8d9e3;
}

.dplan-visit-btn--op {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.dplan-visit-btn--op:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.dplan-subtotal {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: right;
}

.dplan-subtotal__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.dplan-subtotal__amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.dplan-subtotal__amount span {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-left: 4px;
}

.dplan-subtotal__hotel-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 2px;
}

.dmodal-grand-total__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.dmodal-grand-total__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.dmodal-grand-total__currency {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-left: 5px;
}

/* ── RESPONSIVE DEALS LAYOUT ───────────────────────────────── */
@media (max-width: 1024px) {
  .deal-card .deal-visits-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .deal-card__header {
    display: -ms-grid !important;
    display: grid !important;
    -ms-grid-columns: auto 1fr auto !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-areas: "index status chevron" "meta meta meta" !important;
    gap: 12px !important;
    -webkit-box-align: center !important;
        -ms-flex-align: center !important;
            align-items: center !important;
    padding: 14px 16px !important;
  }
  .deal-card__index {
    -ms-grid-row: 1 !important;
    -ms-grid-column: 1 !important;
    grid-area: index !important;
  }
  .deal-card__status-pill {
    -ms-grid-row: 1 !important;
    -ms-grid-column: 2 !important;
    grid-area: status !important;
    -ms-grid-column-align: start !important;
        justify-self: start !important;
    padding: 4px 12px !important;
  }
  .deal-card__chevron {
    -ms-grid-row: 1 !important;
    -ms-grid-column: 3 !important;
    grid-area: chevron !important;
    -ms-grid-column-align: end !important;
        justify-self: end !important;
  }
  .deal-card__meta {
    -ms-grid-row: 2 !important;
    -ms-grid-column: 1 !important;
    -ms-grid-column-span: 3 !important;
    grid-area: meta !important;
    display: -ms-grid !important;
    display: grid !important;
    -ms-grid-columns: (1fr)[2] !important;
        grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 16px !important;
    margin-top: 4px !important;
    border-top: 1.5px solid var(--border) !important;
    padding-top: 12px !important;
    width: 100% !important;
  }
  .deal-card__meta-item {
    gap: 2px !important;
  }
  .deal-card .deal-visits-grid {
    -ms-grid-columns: 1fr !important;
        grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .deal-card__visits {
    padding: 14px 16px !important;
  }
  .deal-card__footer {
    padding: 14px 16px !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    -webkit-box-align: stretch !important;
        -ms-flex-align: stretch !important;
            align-items: stretch !important;
    gap: 14px !important;
  }
  .deal-card__total {
    -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
            justify-content: space-between !important;
    -webkit-box-align: center !important;
        -ms-flex-align: center !important;
            align-items: center !important;
  }
  .deal-card__footer-actions {
    width: 100% !important;
    -webkit-box-pack: stretch !important;
        -ms-flex-pack: stretch !important;
            justify-content: stretch !important;
  }
  .deal-card__footer-actions > * {
    -webkit-box-flex: 1 !important;
        -ms-flex: 1 !important;
            flex: 1 !important;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .deal-card__meta {
    -ms-grid-columns: 1fr !important;
        grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.operationTabs .nav-tabs {
  border-bottom: 2px solid #eef2f7;
  border-radius: 0;
  margin-bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
}

.operationTabs .nav-tabs .nav-item {
  margin-bottom: -2px;
}

.operationTabs .nav-tabs .nav-item .nav-link {
  border: none;
  background: transparent;
  color: #6c757d;
  font-weight: 500;
  font-size: 13px;
  padding: 10px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  cursor: pointer;
}

.operationTabs .nav-tabs .nav-item .nav-link:hover {
  color: #313a46;
  border-bottom-color: #cbd5e1;
}

.operationTabs .nav-tabs .nav-item .nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  background: transparent;
}

.operationTabs .tab-content {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-top: none;
  padding: 24px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.operationTabs .tab-content .tab-pane {
  display: none;
}

.operationTabs .tab-content .tab-pane.active, .operationTabs .tab-content .tab-pane.show {
  display: block;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}

.operationTabs .tab-content .form-group {
  margin-bottom: 20px;
}

.operationTabs .tab-content .form-group:last-child {
  margin-bottom: 0;
}

.operationTabs .tab-content .form-group label {
  font-weight: 500;
  color: #475569;
  margin-bottom: 8px;
  display: inline-block;
}

.operationTabs .tab-content .form-group label .required {
  color: #ef4444;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-op-name {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.detail-op-desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
  padding: 15px;
  border: 1px solid #eef2f7;
}

.detail-op-desc p {
  margin: 0 0 10px;
}

.detail-op-desc p:last-child {
  margin-bottom: 0;
}

.detail-op-desc h1, .detail-op-desc h2, .detail-op-desc h3, .detail-op-desc h4, .detail-op-desc h5, .detail-op-desc h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin: 16px 0 8px;
}

.detail-op-desc h1:first-child, .detail-op-desc h2:first-child, .detail-op-desc h3:first-child, .detail-op-desc h4:first-child, .detail-op-desc h5:first-child, .detail-op-desc h6:first-child {
  margin-top: 0;
}

.detail-op-desc h1 {
  font-size: 20px;
}

.detail-op-desc h2 {
  font-size: 18px;
}

.detail-op-desc h3 {
  font-size: 16px;
}

.detail-op-desc h4, .detail-op-desc h5, .detail-op-desc h6 {
  font-size: 14px;
}

.detail-op-desc b, .detail-op-desc strong {
  font-weight: 600;
  color: #334155;
}

.detail-op-desc i, .detail-op-desc em {
  font-style: italic;
}

.detail-op-desc u {
  text-decoration: underline;
}

.detail-op-desc s, .detail-op-desc del {
  text-decoration: line-through;
  color: #94a3b8;
}

.detail-op-desc ul, .detail-op-desc ol {
  margin: 8px 0;
  padding-left: 20px;
}

.detail-op-desc ul li, .detail-op-desc ol li {
  margin-bottom: 4px;
}

.detail-op-desc ul li:last-child, .detail-op-desc ol li:last-child {
  margin-bottom: 0;
}

.detail-op-desc ul {
  list-style: disc;
}

.detail-op-desc ol {
  list-style: decimal;
}

.detail-op-desc a {
  color: var(--text-primary);
  text-decoration: underline;
}

.detail-op-desc a:hover {
  opacity: 0.75;
}

.detail-op-desc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0;
}

.detail-op-desc table th, .detail-op-desc table td {
  padding: 8px 12px;
  border: 1px solid #eef2f7;
  text-align: left;
}

.detail-op-desc table th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.detail-op-desc table tr:hover td {
  background: #f8fafc;
}

.detail-op-desc img {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0;
}

/* HR Table Overrides */
#dt-employees thead th:nth-child(1),
#dt-employees tbody td:nth-child(1) {
  left: 0;
  min-width: 250px;
}

#dt-employees thead th:nth-child(1) {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
}

#dt-employees tbody td:nth-child(1) {
  position: -webkit-sticky;
  position: sticky;
  z-index: 2;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

#dt-employees tbody td:nth-child(1)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: #e2e8f0;
  z-index: 3;
}

/* ── EMPLOYEE LIST CUSTOM CLASSES ───────────────────────────────────────── */
.emp-list-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  min-width: 220px;
}

.emp-list-info__details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2px;
  width: 100%;
}

.emp-list-info .emp-id {
  font-size: 10px;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.5px;
}

.emp-avatar {
  max-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.emp-avatar--placeholder {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #94a3b8;
  -webkit-box-shadow: none;
          box-shadow: none;
}

/* Profile Completion Bar */
.emp-completion {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  margin-top: 4px;
  position: relative;
  cursor: help;
  /* Tooltip Styles */
  /* Tooltip Bubble */
  /* Tooltip Arrow */
}

.emp-completion::before, .emp-completion::after {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

.emp-completion::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 8px);
  background: #1e293b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.emp-completion::after {
  content: "";
  bottom: calc(100% + 2px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.emp-completion:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

.emp-completion:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% - 1px);
}

.emp-completion__track {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  min-width: 80px;
}

.emp-completion__bar {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}

.emp-completion__text {
  font-size: 10px;
  font-weight: 700;
}

.emp-completion .comp-green {
  color: #22c55e;
  background-color: #22c55e;
}

.emp-completion .comp-red {
  color: #ef4444;
  background-color: #ef4444;
}

.emp-completion .comp-orange {
  color: #f59e0b;
  background-color: #f59e0b;
}

.emp-completion .comp-blue {
  color: #3b82f6;
  background-color: #3b82f6;
}

.emp-completion span.comp-green,
.emp-completion span.comp-red,
.emp-completion span.comp-orange,
.emp-completion span.comp-blue {
  background-color: transparent;
}

/* Leave Days Bar */
.emp-leave-badge {
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
  font-weight: 500;
}

.emp-leave-bar {
  min-width: 140px;
}

.emp-leave-bar__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  margin-bottom: 4px;
}

.emp-leave-bar__left-text {
  font-size: 12px;
  color: #334155;
  font-weight: 700;
}

.emp-leave-bar__left-text span {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
}

.emp-leave-bar__track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
}

.emp-leave-bar__fill {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.emp-leave-bar__fill.bg-blue {
  background-color: #3b82f6;
}

.emp-leave-bar__fill.bg-orange {
  background-color: #f59e0b;
}

.emp-leave-bar__fill.bg-red {
  background-color: #ef4444;
}

.emp-leave-bar__bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
}

.emp-leave-bar__bottom b {
  color: #1e293b;
}

/* Profile Completion Notice Alert (Onboarding) */
.profile-completion-notice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: -webkit-gradient(linear, left top, right top, from(#eff6ff), to(#dbeafe));
  background: linear-gradient(to right, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}

.profile-completion-notice__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  -webkit-animation: fa-spin 1s linear infinite;
          animation: fa-spin 1s linear infinite;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.profile-completion-notice__content h4 {
  margin: 0 0 5px 0;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 700;
}

.profile-completion-notice__content p {
  margin: 0;
  color: #1e40af;
  font-size: 13px;
}

/* Analytical Growth Chart */
.hr-growth-chart {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 15px;
  margin-bottom: 20px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hr-growth-chart__header {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.hr-growth-chart__title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.hr-growth-chart__title i {
  color: #3b82f6;
  font-size: 16px;
}

.hr-growth-chart__body {
  padding: 15px 20px;
  height: 250px;
  width: 100%;
  position: relative;
}

/* ── USER / EMPLOYEE PROFILE DETAIL ─────────────────────────── */
.page-user-profile {
  /* =========================================================
       MASTER GRID — kimlik banner + sağ col
       ========================================================= */
  /* Sağ alt satır: info + iş bilgisi yan yana */
  /* Ortak kart stili */
  /* =========================================================
       ÖZET İSTATİSTİK KARTLARI (üst kısım)
       ========================================================= */
  /* =========================================================
       SEKMELI İÇERİK ALANI (pm-tab-layout ile özdeş)
       ========================================================= */
  /* Dikey sekme nav */
  /* Sekme içerikleri */
  /* =========================================================
       GENEL VERİ KART (PERSONAL, WORK vb. formlar)
       ========================================================= */
  /* =========================================================
       TİMELINE / NOTLAR
       ========================================================= */
  /* Notes formu */
  /* =========================================================
       AİLE ÜYELERİ / BANKA / BELGELER — KART LİSTESİ
       ========================================================= */
  /* =========================================================
       BOŞLUK DURUMU (empty state)
       ========================================================= */
  /* =========================================================
       MODALLER — pm-modal-pro ile aynı sistemi kullanır
       Sadece up- prefix ile override gerekirse buraya eklenir
       ========================================================= */
  /* Status badge — genel */
  /* İzin tipi badge */
  /* Onay indikatörü */
  /* =========================================================
       ENVANTER (INVENTORY)
       ========================================================= */
  /* ── INVENTORY REDESIGN ── */
  /* ── ASSET CARD ── */
  /* ── PROTOCOL CARD ── */
  /* ── TIMELINE ── */
}

.page-user-profile .user-master-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}

.page-user-profile .up-col-right {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 16px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

@media (max-width: 1100px) {
  .page-user-profile .up-col-right {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-user-profile .up-col {
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  -webkit-transition: -webkit-box-shadow var(--dur);
  transition: -webkit-box-shadow var(--dur);
  transition: box-shadow var(--dur);
  transition: box-shadow var(--dur), -webkit-box-shadow var(--dur);
  position: relative;
  z-index: 1;
  /* ── KİMLİK BANNER ── */
  /* ── KİŞİSEL BİLGİLER ── */
  /* ── İŞ BİLGİLERİ ── */
}

.page-user-profile .up-col:hover {
  -webkit-box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.page-user-profile .up-col--identity {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.page-user-profile .up-col--identity .up-identity-banner {
  background: -webkit-gradient(linear, left top, right top, from(#385cad), color-stop(50%, #4f73be), to(#6cca98));
  background: linear-gradient(90deg, #385cad 0%, #4f73be 50%, #6cca98 100%);
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  position: relative;
  border-radius: 16px;
  /* Tablet */
  /* Mobil */
}

.page-user-profile .up-col--identity .up-identity-banner.passive {
  background: -webkit-gradient(linear, left top, right top, from(#4b5563), color-stop(50%, #6b7280), to(#9ca3af));
  background: linear-gradient(90deg, #4b5563 0%, #6b7280 50%, #9ca3af 100%);
}

.page-user-profile .up-col--identity .up-identity-banner::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-avatar-wrap {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  z-index: 2;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-avatar-wrap .up-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-avatar-wrap .up-avatar a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 100%;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-avatar-wrap .up-avatar a img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  z-index: 2;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-name {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-position {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-badges .up-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-badges .up-badge i {
  font-size: 10px;
  opacity: 0.85;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-badges .up-badge--active {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.4);
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-badges .up-badge--passive {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-badges .up-badge--type {
  background: rgba(255, 255, 255, 0.12);
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  z-index: 2;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-meta .up-meta-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-meta .up-meta-item i {
  font-size: 11px;
  opacity: 0.7;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-meta .up-meta-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-decoration: none;
}

.page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-meta .up-meta-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) and (max-width: 1100px) {
  .page-user-profile .up-col--identity .up-identity-banner {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
  }
}

@media (max-width: 767px) {
  .page-user-profile .up-col--identity .up-identity-banner {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
  }
  .page-user-profile .up-col--identity .up-identity-banner .up-identity-name-block .up-identity-name {
    font-size: 15px;
    white-space: normal;
  }
}

.page-user-profile .up-col--info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0;
}

.page-user-profile .up-col--info .up-info-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .page-user-profile .up-col--info .up-info-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .page-user-profile .up-col--info .up-info-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-user-profile .up-col--info .up-info-sub {
  padding: 0 16px 0 0;
}

.page-user-profile .up-col--info .up-info-sub:first-child {
  padding-left: 0;
}

.page-user-profile .up-col--info .up-info-sub:last-child {
  padding-right: 0;
}

@media (max-width: 767px) {
  .page-user-profile .up-col--info .up-info-sub {
    padding: 0 0 12px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
  }
  .page-user-profile .up-col--info .up-info-sub:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

.page-user-profile .up-col--info .up-data-box {
  margin-bottom: 14px;
}

.page-user-profile .up-col--info .up-data-box:last-child {
  margin-bottom: 0;
}

.page-user-profile .up-col--info .up-data-box--full {
  margin-bottom: 0;
  width: 100%;
}

.page-user-profile .up-col--info .up-data-box--full .up-data-val {
  white-space: normal;
  word-break: break-word;
}

.page-user-profile .up-col--info .up-data-box .up-data-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 3px;
}

.page-user-profile .up-col--info .up-data-box .up-data-val {
  font-size: 13px;
  color: var(--teal-dark);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-weight: 500;
}

.page-user-profile .up-col--info .up-data-box .up-data-val i {
  font-size: 11px;
  color: var(--text-muted);
}

.page-user-profile .up-col--info .up-info-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

.page-user-profile .up-col--work {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0;
}

.page-user-profile .up-col--work .up-work-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.page-user-profile .up-col--work .up-work-header i {
  color: var(--teal);
  font-size: 14px;
}

.page-user-profile .up-col--work .up-work-header span {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.page-user-profile .up-col--work .up-work-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 767px) {
  .page-user-profile .up-col--work .up-work-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-user-profile .up-col--work .up-work-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.page-user-profile .up-col--work .up-work-item .up-work-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-user-profile .up-col--work .up-work-item .up-work-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
}

.page-user-profile .up-col--work .up-work-item--full {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .page-user-profile .up-col--work .up-work-item--full {
    grid-column: span 1;
  }
}

.page-user-profile .up-stats-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .page-user-profile .up-stats-row {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-user-profile .up-stats-row {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
}

.page-user-profile .up-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  -webkit-transition: -webkit-box-shadow 0.2s;
  transition: -webkit-box-shadow 0.2s;
  transition: box-shadow 0.2s;
  transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
}

.page-user-profile .up-stat-card:hover {
  -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
          box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-user-profile .up-stat-card .up-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 15px;
  margin-bottom: 4px;
}

.page-user-profile .up-stat-card .up-stat-icon--teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.page-user-profile .up-stat-card .up-stat-icon--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.page-user-profile .up-stat-card .up-stat-icon--green {
  background: var(--green-light);
  color: var(--green);
}

.page-user-profile .up-stat-card .up-stat-icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}

.page-user-profile .up-stat-card .up-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.page-user-profile .up-stat-card .up-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.1;
}

.page-user-profile .up-stat-card .up-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.page-user-profile .up-tab-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-top: 24px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .page-user-profile .up-tab-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-top: 16px;
    border-radius: 10px;
  }
}

.page-user-profile .up-tab-sidebar {
  width: 280px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-right: 1px solid #f8f8f8;
  padding: 24px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .page-user-profile .up-tab-sidebar {
    width: 200px;
    padding: 20px 14px;
  }
}

@media (max-width: 767px) {
  .page-user-profile .up-tab-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
  }
}

.page-user-profile .up-tab-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  padding: 32px;
  background: #fff;
}

@media (max-width: 767px) {
  .page-user-profile .up-tab-content {
    padding: 16px;
  }
}

.page-user-profile .up-tabs-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  /* Mobil: yatay scroll */
}

.page-user-profile .up-tabs-nav .up-tab-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.page-user-profile .up-tabs-nav .up-tab-btn i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-tabs-nav .up-tab-btn .up-tab-count {
  margin-left: auto;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.page-user-profile .up-tabs-nav .up-tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.page-user-profile .up-tabs-nav .up-tab-btn:hover i {
  color: var(--teal);
}

.page-user-profile .up-tabs-nav .up-tab-btn.active {
  background: rgba(108, 202, 152, 0.12);
  color: var(--teal);
  font-weight: 600;
  position: relative;
}

.page-user-profile .up-tabs-nav .up-tab-btn.active i {
  color: var(--teal);
}

.page-user-profile .up-tabs-nav .up-tab-btn.active .up-tab-count {
  background: var(--teal);
  color: #fff;
}

.page-user-profile .up-tabs-nav .up-tab-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  height: 20px;
  width: 3px;
  background: var(--teal);
  border-radius: 0 4px 4px 0;
}

.page-user-profile .up-tabs-nav .up-tabs-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

@media (max-width: 767px) {
  .page-user-profile .up-tabs-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
  }
  .page-user-profile .up-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .page-user-profile .up-tabs-nav .up-tab-btn {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
  }
  .page-user-profile .up-tabs-nav .up-tab-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
  }
  .page-user-profile .up-tabs-nav .up-tab-btn.active i {
    color: #fff;
  }
  .page-user-profile .up-tabs-nav .up-tab-btn.active::before {
    display: none;
  }
  .page-user-profile .up-tabs-nav .up-tabs-divider {
    display: none;
  }
}

.page-user-profile .up-tab-pane {
  display: none;
  -webkit-animation: upFadeIn 0.2s ease;
          animation: upFadeIn 0.2s ease;
}

.page-user-profile .up-tab-pane.active {
  display: block;
}

@-webkit-keyframes upFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(4px);
            transform: translateY(4px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes upFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(4px);
            transform: translateY(4px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

.page-user-profile .up-section-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-user-profile .up-section-header .up-section-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--teal-dark);
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.page-user-profile .up-section-header .up-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--teal);
  border-radius: 2px;
}

.page-user-profile .up-form-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .page-user-profile .up-form-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-user-profile .up-form-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.page-user-profile .up-form-grid--2col {
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
}

.page-user-profile .up-form-grid--full {
  grid-column: 1 / -1;
}

.page-user-profile .up-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}

.page-user-profile .up-field--full {
  grid-column: 1 / -1;
}

.page-user-profile .up-field .up-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.page-user-profile .up-field .up-field-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-dark);
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  min-height: 38px;
}

.page-user-profile .up-field .up-field-val--empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
}

.page-user-profile .up-field .up-field-val i {
  font-size: 11px;
  color: var(--text-muted);
}

.page-user-profile .up-timeline {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0;
  position: relative;
}

.page-user-profile .up-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: -webkit-gradient(linear, left top, left bottom, from(var(--teal-light)), to(transparent));
  background: linear-gradient(to bottom, var(--teal-light), transparent);
}

.page-user-profile .up-timeline-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.page-user-profile .up-timeline-item:last-child {
  padding-bottom: 0;
}

.page-user-profile .up-timeline-item .up-timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  z-index: 1;
  font-size: 12px;
  color: var(--teal);
}

.page-user-profile .up-timeline-item .up-timeline-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #f1f5f9;
}

.page-user-profile .up-timeline-item .up-timeline-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.page-user-profile .up-timeline-item .up-timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
}

.page-user-profile .up-timeline-item .up-timeline-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-timeline-item .up-timeline-type {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.page-user-profile .up-timeline-item .up-timeline-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 6px;
          flex: 0 0 6px;
}

.page-user-profile .up-timeline-item .up-timeline-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

.page-user-profile .up-timeline-item .up-timeline-desc p {
  margin: 0;
}

.page-user-profile .up-notes-form {
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px;
}

.page-user-profile .up-notes-form .pm-form-group {
  margin-bottom: 10px;
}

.page-user-profile .up-notes-form .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 5px;
}

.page-user-profile .up-notes-form .form-label.tp-label-between {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-user-profile .up-notes-form .up-notes-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin-top: 10px;
}

.page-user-profile .up-card-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}

.page-user-profile .up-list-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
}

.page-user-profile .up-list-card:hover {
  border-color: rgba(108, 202, 152, 0.3);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-user-profile .up-list-card .up-list-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 17px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-list-card .up-list-card-icon--teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.page-user-profile .up-list-card .up-list-card-icon--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.page-user-profile .up-list-card .up-list-card-icon--green {
  background: var(--green-light);
  color: var(--green);
}

.page-user-profile .up-list-card .up-list-card-icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}

.page-user-profile .up-list-card .up-list-card-icon--red {
  background: var(--red-light);
  color: var(--red);
}

.page-user-profile .up-list-card .up-list-card-icon--purple {
  background: #f5f3ff;
  color: var(--purple);
}

.page-user-profile .up-list-card .up-list-card-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.page-user-profile .up-list-card .up-list-card-body .up-list-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-user-profile .up-list-card .up-list-card-body .up-list-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-user-profile .up-list-card .up-list-card-body .up-list-card-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.page-user-profile .up-list-card .up-list-card-body .up-list-card-meta span {
  font-size: 11px;
  color: #64748b;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.page-user-profile .up-list-card .up-list-card-body .up-list-card-meta span i {
  font-size: 10px;
  color: var(--teal);
}

.page-user-profile .up-target-chart-wrap {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.page-user-profile .up-target-chart-wrap canvas {
  max-height: 220px;
}

.page-user-profile .up-target-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.page-user-profile .up-target-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.page-user-profile .up-target-row .up-target-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 90px;
}

.page-user-profile .up-target-row .up-target-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.page-user-profile .up-target-row .up-target-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.page-user-profile .up-empty-state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 160px;
}

.page-user-profile .up-empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-light);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 14px;
}

.page-user-profile .up-empty-state__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.page-user-profile .up-empty-state__sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-user-profile .up-modal-section {
  margin-bottom: 20px;
}

.page-user-profile .up-modal-section:last-child {
  margin-bottom: 0;
}

.page-user-profile .up-modal-section .up-modal-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.page-user-profile .up-status-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.page-user-profile .up-status-badge--active {
  background: var(--green-light);
  color: #15803d;
}

.page-user-profile .up-status-badge--passive {
  background: var(--red-light);
  color: #b91c1c;
}

.page-user-profile .up-status-badge--pending {
  background: var(--amber-light);
  color: #b45309;
}

.page-user-profile .up-status-badge--info {
  background: var(--blue-light);
  color: #1d4ed8;
}

.page-user-profile .up-status-badge--gray {
  background: #f1f5f9;
  color: #64748b;
}

.page-user-profile .up-leave-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--teal-light);
  color: var(--teal-dark);
}

.page-user-profile .up-leave-summary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-top: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.page-user-profile .up-leave-summary--tab {
  margin-bottom: 16px;
  max-width: 320px;
}

.page-user-profile .up-leave-summary__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.page-user-profile .up-leave-summary__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--teal-dark);
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 6px;
}

.page-user-profile .up-leave-summary__title span:last-child {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.page-user-profile .up-leave-summary__icon {
  color: var(--teal);
  font-size: 14px;
  background: var(--teal-light);
  width: 28px;
  height: 28px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 8px;
}

.page-user-profile .up-leave-summary__progress-wrap {
  width: 100%;
  height: 5px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.page-user-profile .up-leave-summary__progress-bar {
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(var(--teal)), to(#34d399));
  background: linear-gradient(90deg, var(--teal), #34d399);
  border-radius: 4px;
  -webkit-transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

.page-user-profile .up-leave-summary__progress-bar--danger {
  background: -webkit-gradient(linear, left top, right top, from(var(--red)), to(#f87171));
  background: linear-gradient(90deg, var(--red), #f87171);
}

.page-user-profile .up-leave-summary__stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.page-user-profile .up-leave-summary__stats strong {
  color: var(--teal-dark);
  font-weight: 600;
  margin-left: 4px;
}

.page-user-profile .up-approval {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.page-user-profile .up-approval--yes {
  color: #15803d;
}

.page-user-profile .up-approval--no {
  color: #94a3b8;
}

.page-user-profile .up-approval--wait {
  color: #b45309;
}

.page-user-profile--inventory {
  padding: 0;
}

.page-user-profile .up-inv-summary {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(160px, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.page-user-profile .up-inv-stat {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  -webkit-box-flex: unset;
      -ms-flex: unset;
          flex: unset;
  min-width: unset;
}

.page-user-profile .up-inv-stat .up-inv-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 14px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-inv-stat .up-inv-stat-icon--teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.page-user-profile .up-inv-stat .up-inv-stat-icon--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.page-user-profile .up-inv-stat .up-inv-stat-icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}

.page-user-profile .up-inv-stat .up-inv-stat-icon--red {
  background: var(--red-light);
  color: var(--red);
}

.page-user-profile .up-inv-stat .up-inv-stat-body .up-inv-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.1;
}

.page-user-profile .up-inv-stat .up-inv-stat-body .up-inv-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.page-user-profile .up-asset-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  margin-bottom: 10px;
}

.page-user-profile .up-asset-card:last-child {
  margin-bottom: 0;
}

.page-user-profile .up-asset-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: 3px 0 0 3px;
}

.page-user-profile .up-asset-card:hover {
  border-color: rgba(108, 202, 152, 0.4);
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.page-user-profile .up-asset-card--faulty::before {
  background: var(--red);
}

.page-user-profile .up-asset-card .up-asset-card-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 22px;
  color: var(--text-muted);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  overflow: hidden;
}

.page-user-profile .up-asset-card .up-asset-card-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.page-user-profile .up-asset-card .up-asset-card-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  /* pill badge grubu */
  /* SIM strip */
  /* note strip */
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-card-serial {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-card-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-tag i {
  font-size: 9px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-tag--active {
  background: var(--green-light);
  color: #15803d;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-tag--faulty {
  background: var(--red-light);
  color: #b91c1c;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-tag--cat {
  background: #f1f5f9;
  color: #475569;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-tag--imei {
  background: var(--blue-light);
  color: #1d4ed8;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-card-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-card-meta span {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-card-meta span i {
  font-size: 10px;
  color: var(--teal);
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-sim-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-sim-row .up-sim-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-sim-row .up-sim-item span:first-child {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-sim-row .up-sim-item span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  font-family: monospace;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-note {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 7px 10px;
  background: rgba(250, 199, 117, 0.15);
  border: 1px solid rgba(250, 199, 117, 0.4);
  border-radius: 7px;
  font-size: 11px;
  color: #92400e;
}

.page-user-profile .up-asset-card .up-asset-card-body .up-asset-note i {
  font-size: 11px;
  opacity: 0.7;
}

.page-user-profile .up-asset-card .up-asset-card-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-asset-card .up-asset-card-actions .up-icon-btn {
  width: 30px;
  height: 30px;
}

.page-user-profile .up-protocol-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}

.page-user-profile .up-protocol-card:last-child {
  margin-bottom: 0;
}

.page-user-profile .up-protocol-card:hover {
  border-color: rgba(108, 202, 152, 0.35);
}

.page-user-profile .up-protocol-card .up-protocol-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 15px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-protocol-card .up-protocol-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.page-user-profile .up-protocol-card .up-protocol-body .up-protocol-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 2px;
}

.page-user-profile .up-protocol-card .up-protocol-body .up-protocol-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}

.page-user-profile .up-protocol-card .up-protocol-body .up-protocol-meta i {
  font-size: 10px;
}

.page-user-profile .up-protocol-card .up-protocol-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.page-user-profile .up-timeline::before {
  left: 15px;
  width: 1px;
  background: #e2e8f0;
}

.page-user-profile .up-timeline-item {
  /* action pill — timeline içi */
}

.page-user-profile .up-timeline-item .up-timeline-dot {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.page-user-profile .up-timeline-item .up-timeline-dot--created {
  border-color: var(--teal-light);
  background: var(--teal-light);
  color: var(--teal-dark);
}

.page-user-profile .up-timeline-item .up-timeline-dot--assigned {
  border-color: var(--blue-light);
  background: var(--blue-light);
  color: var(--blue);
}

.page-user-profile .up-timeline-item .up-timeline-dot--removed {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: var(--text-muted);
}

.page-user-profile .up-timeline-item .up-timeline-dot--updated {
  border-color: var(--amber-light);
  background: var(--amber-light);
  color: #92400e;
}

.page-user-profile .up-timeline-item .up-timeline-body {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 10px;
  padding: 10px 14px;
}

.page-user-profile .up-timeline-item .up-tl-action {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.page-user-profile .up-timeline-item .up-tl-action--created {
  background: var(--green-light);
  color: #15803d;
}

.page-user-profile .up-timeline-item .up-tl-action--assigned {
  background: var(--blue-light);
  color: #1d4ed8;
}

.page-user-profile .up-timeline-item .up-tl-action--removed {
  background: #f1f5f9;
  color: #64748b;
}

.page-user-profile .up-timeline-item .up-tl-action--updated {
  background: var(--amber-light);
  color: #92400e;
}

/* ==========================================
   PROFILE COMPLETION STYLES
   ========================================== */
.up-profile-status-widget {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.up-profile-status-widget:hover {
  border-color: var(--teal);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.up-profile-status-widget .up-completion-ring {
  width: 48px;
  height: 48px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.up-profile-status-widget .up-completion-ring svg {
  width: 100%;
  height: 100%;
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.up-profile-status-widget .up-completion-ring .ring-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3.2;
}

.up-profile-status-widget .up-completion-ring .ring-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3.2;
  stroke-linecap: round;
  -webkit-transition: stroke-dasharray 0.5s ease;
  transition: stroke-dasharray 0.5s ease;
}

.up-profile-status-widget .up-completion-ring .ring-text {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
}

.up-profile-status-widget .up-profile-status-text h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
}

.up-profile-status-widget .up-profile-status-text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-completion-pro {
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  border-radius: 16px !important;
  background: transparent !important;
}

.modal-completion-pro .completion-close-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.modal-completion-pro .completion-close-wrapper .pm-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.modal-completion-pro .completion-close-wrapper .pm-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-completion-pro .completion-header-premium {
  background: linear-gradient(135deg, var(--teal) 0%, #115e59 100%);
  padding: 40px 30px;
  text-align: center;
  color: white;
}

.modal-completion-pro .completion-header-premium .up-completion-ring--lg {
  margin: 0 auto;
  -webkit-filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
          filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  width: 90px;
  height: 90px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.modal-completion-pro .completion-header-premium .up-completion-ring--lg svg {
  width: 100%;
  height: 100%;
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.modal-completion-pro .completion-header-premium .up-completion-ring--lg .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.modal-completion-pro .completion-header-premium .up-completion-ring--lg .ring-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  -webkit-transition: stroke-dasharray 0.5s ease;
  transition: stroke-dasharray 0.5s ease;
}

.modal-completion-pro .completion-header-premium .up-completion-ring--lg .ring-text {
  position: absolute;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.modal-completion-pro .completion-header-premium h3 {
  margin: 20px 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.modal-completion-pro .completion-header-premium p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
  color: #f1f5f9;
}

.modal-completion-pro .completion-body-premium {
  background: #f8fafc;
  padding: 24px;
  max-height: 50vh;
  overflow-y: auto;
}

.modal-completion-pro .completion-body-premium h4 {
  margin: 0 0 16px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-completion-pro .completion-footer-premium {
  background: #fff;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 10px;
}

.up-completion-summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.up-completion-summary .up-completion-ring--lg {
  width: 72px;
  height: 72px;
}

.up-completion-summary .up-completion-ring--lg .ring-text {
  font-size: 18px;
}

.up-completion-summary .up-completion-info h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--text-dark);
}

.up-completion-summary .up-completion-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.up-missing-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}

.up-missing-list .missing-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  border-left: 4px solid #ef4444;
}

.up-missing-list .missing-item i {
  color: #ef4444;
  font-size: 16px;
  margin-top: 2px;
}

.up-missing-list .missing-item .missing-item-text h5 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--text-dark);
}

.up-missing-list .missing-item .missing-item-text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.page-user-profile .hr-growth-chart__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
}

.page-user-profile .hr-growth-chart__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-weight: 700;
}

.page-user-profile .hr-growth-chart__summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}

.page-user-profile .hr-growth-chart__summary-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.page-user-profile .hr-growth-chart__summary-item--active {
  color: #3b82f6;
}

.page-user-profile .hr-growth-chart__summary-item--active .hr-growth-chart__dot {
  background-color: #3b82f6;
}

.page-user-profile .hr-growth-chart__summary-item--passive {
  color: #64748b;
}

.page-user-profile .hr-growth-chart__summary-item--passive .hr-growth-chart__dot {
  background-color: #64748b;
}

.page-user-profile .hr-growth-chart__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 8px;
          flex: 0 0 8px;
}

.page-user-profile .hr-growth-chart__body {
  position: relative;
}

.up-list-card-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.up-list-card-actions .up-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.up-list-card-actions .up-icon-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.up-list-card-actions .up-icon-btn--danger {
  border-color: #fecaca;
  color: #ef4444;
}

.up-list-card-actions .up-icon-btn--danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.page-inventory {
  min-height: calc(100vh - 60px);
  padding: 0px 24px 40px 24px !important;
}

.page-inventory .page-header {
  background-color: #fff;
  padding: 20px 24px;
  border-bottom: 1px solid #eaeaec;
  margin-bottom: 15px;
  border-radius: 0 0 16px 16px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.page-inventory .page-header.header-rounded-lg {
  border-radius: 0 0 24px 24px;
}

.page-inventory .page-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.page-inventory .page-header p {
  color: #666666;
  font-size: 13px;
  margin: 0;
}

.page-inventory .page-header p .inv-icon-teal {
  color: #29ba9b;
  margin-right: 5px;
}

.page-inventory .page-header p .inv-text-teal {
  font-weight: bold;
  color: #29ba9b;
}

.page-inventory .inv-container-center {
  padding: 0 24px;
  max-width: 800px;
  margin: 0 auto;
}

.page-inventory .inv-filter-area-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eaeaec;
  margin-bottom: 24px;
}

.page-inventory .inv-filter-pills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.page-inventory .inv-filter-pills .inv-pill {
  border-radius: 20px;
  border: 1px solid #eaeaec;
  background: #f8fafc;
  color: #64748b;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.page-inventory .inv-filter-pills .inv-pill:hover {
  background: #f1f5f9;
}

.page-inventory .inv-filter-pills .inv-pill.active {
  background: #e6f7f3;
  color: #29ba9b;
  border-color: #29ba9b;
  font-weight: 600;
}

.page-inventory .inv-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(280px, 1fr))[auto-fill];
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.page-inventory .inv-select-large {
  border-radius: 12px;
  height: 50px;
  margin-bottom: 15px;
}

.inv-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(234, 234, 236, 0.5);
  -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.inv-card.no-pointer {
  pointer-events: none;
  margin-bottom: 24px;
}

.inv-card:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
          box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.inv-card .inv-card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 16px;
}

.inv-card .inv-card-header .inv-card-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f0f0f0;
  border: 1px solid #eaeaec;
  margin-right: 16px;
  -o-object-fit: cover;
     object-fit: cover;
  padding: 4px;
}

.inv-card .inv-card-header .inv-card-info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.inv-card .inv-card-header .inv-card-info .inv-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-card .inv-card-header .inv-card-info .inv-card-badge {
  display: inline-block;
  background: #f0f5f4;
  color: #666666;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.inv-card .inv-card-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 0;
  border: 1px solid #f0f0f0;
}

.inv-card .inv-card-stats .inv-stat-box {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
  border-right: 1px solid #eaeaec;
}

.inv-card .inv-card-stats .inv-stat-box:last-child {
  border-right: none;
}

.inv-card .inv-card-stats .inv-stat-box .inv-stat-label {
  font-size: 11px;
  color: #888888;
  margin-bottom: 4px;
  display: block;
}

.inv-card .inv-card-stats .inv-stat-box .inv-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.inv-card .inv-card-stats .inv-stat-box .inv-stat-value.text-success {
  color: #29ba9b;
}

.inv-card .inv-card-stats .inv-stat-box .inv-stat-value.text-warning {
  color: #f57c00;
}

.inv-loading-box {
  text-align: center;
  padding: 40px;
}

.inv-loading-box i {
  color: #29ba9b;
}

.inv-loading-box p {
  margin-top: 10px;
  color: #666;
}

.inv-empty-state {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eaeaec;
}

.inv-empty-state i {
  color: #ccc;
  margin-bottom: 15px;
}

.inv-empty-state h4 {
  color: #666;
}

.inv-empty-state p {
  color: #999;
}

.inv-empty-text {
  text-align: center;
  padding: 40px;
  color: #999;
}

.inv-drawer-image-wrapper {
  text-align: center;
  margin-bottom: 15px;
}

.inv-drawer-image-wrapper img {
  width: 120px;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--teal);
}

.inv-drawer-model-name {
  text-align: center;
  margin-bottom: 5px;
}

.inv-drawer-model-category {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-bottom: 20px;
}

.inv-modal-sm {
  max-width: 450px !important;
}

.inv-modal-md {
  max-width: 500px !important;
}

.inv-image-preview-box {
  margin-top: 10px;
  text-align: center;
}

.inv-image-preview-box img {
  max-width: 100%;
  height: 150px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
}

.pm-modal-backdrop.inv-drawer-backdrop {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.pm-modal-pro.inv-modal-drawer {
  height: 100%;
  width: 500px;
  max-width: 100%;
  border-radius: 0;
  margin: 0;
  -webkit-animation: slideInRight 0.3s forwards;
          animation: slideInRight 0.3s forwards;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 20px;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-header .drawer-close-btn {
  margin-right: 15px;
  position: static;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-header h3 {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 0;
  font-size: 16px;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-header .btn-drawer-add {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  padding: 0;
  background: #29ba9b;
  color: #fff;
  border: none;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-header .btn-drawer-edit {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  padding: 0;
  background: #f59e0b;
  /* Amber */
  color: #fff !important;
  border: none;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-header .btn-drawer-delete {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  padding: 0;
  background: #ef4444;
  color: #fff !important;
  border: none;
}

.pm-modal-pro.inv-modal-drawer .inv-drawer-body {
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - 76px);
}

.inv-asset-list {
  margin-bottom: 30px;
}

.inv-asset-list .inv-asset-item {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border: 1px solid #eaeaec;
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.inv-asset-list .inv-asset-item.is-faulty {
  border-left: 4px solid #e3342f;
}

.inv-asset-list .inv-asset-item .inv-asset-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.inv-asset-list .inv-asset-item .inv-asset-top .inv-asset-sn {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.inv-asset-list .inv-asset-item .inv-asset-top .inv-asset-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.inv-asset-list .inv-asset-item .inv-asset-top .inv-asset-badges .inv-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.inv-asset-list .inv-asset-item .inv-asset-top .inv-asset-badges .inv-badge.badge-in-use {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
}

.inv-asset-list .inv-asset-item .inv-asset-top .inv-asset-badges .inv-badge.badge-available {
  background: rgba(245, 124, 0, 0.1);
  color: #f57c00;
}

.inv-asset-list .inv-asset-item .inv-asset-top .inv-asset-badges .inv-badge.badge-faulty {
  background: rgba(227, 52, 47, 0.1);
  color: #e3342f;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-user-details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #555;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-user-details .inv-user-name {
  font-weight: 500;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-user-details .inv-user-name i {
  color: #29ba9b;
  width: 16px;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-user-details .inv-user-date {
  color: #888;
  font-size: 12px;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-user-details .inv-user-date i {
  width: 16px;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-unassigned {
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions .btn-inv-action {
  background: #f0f5f4;
  color: #29ba9b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions .btn-inv-action:hover {
  background: #d4e8e3;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions .btn-inv-action.btn-assign {
  background: #29ba9b;
  color: #fff;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions .btn-inv-action.btn-assign:hover {
  background: #24a58a;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions .btn-inv-delete-asset {
  background: none;
  border: none;
  color: #e3342f;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.inv-asset-list .inv-asset-item .inv-asset-bottom .inv-asset-actions .btn-inv-delete-asset:hover {
  background: rgba(227, 52, 47, 0.1);
}

.inv-asset-list .inv-asset-item.inv-asset-assign-view .inv-asset-top-assign {
  font-size: 16px;
}

.inv-asset-list .inv-asset-item.inv-asset-assign-view .inv-badge-assign-date {
  background: #e8f4fd;
  color: #1976d2;
}

.inv-asset-list .inv-asset-item.inv-asset-assign-view .inv-badge-assign-date i {
  margin-right: 4px;
}

.inv-asset-list .inv-asset-item.inv-asset-assign-view .inv-asset-bottom-user {
  color: #666;
  font-weight: 600;
  color: #333;
}

.inv-asset-list .inv-asset-item.inv-asset-assign-view .btn-inv-change {
  background: #fff;
  border: 1px solid #eaeaec;
  color: #666;
}

.storage-summary-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
}

.storage-summary-box i {
  margin-right: 10px;
  font-size: 16px;
}

.storage-summary-box .summary-text {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.page-description {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
}

.storage-cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  border: none;
}

.storage-cat-card .storage-cat-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.storage-cat-card .storage-cat-header h4 {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.storage-cat-card .storage-cat-header h4 .cat-dot {
  width: 8px;
  height: 8px;
  background: #29ba9b;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

.storage-cat-card .storage-cat-header .storage-cat-count {
  color: #29ba9b;
  font-weight: 600;
  background: #e6f7f3;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}

.storage-cat-card .storage-items-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.storage-cat-card .storage-items-list .storage-item-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.storage-cat-card .storage-items-list .storage-item-row:last-child {
  border-bottom: none;
}

.storage-cat-card .storage-items-list .storage-item-row .storage-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid #e2e8f0;
  margin-right: 12px;
}

.storage-cat-card .storage-items-list .storage-item-row .storage-item-details {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.storage-cat-card .storage-items-list .storage-item-row .storage-item-details .item-name {
  font-weight: 700;
  color: #334155;
  font-size: 14px;
  margin-bottom: 2px;
}

.storage-cat-card .storage-items-list .storage-item-row .storage-item-details .item-sn {
  color: #94a3b8;
  font-size: 12px;
}

.storage-cat-card .storage-items-list .storage-item-row i {
  color: #cbd5e1;
  font-size: 14px;
}

.storage-cat-card .storage-items-list .storage-show-more {
  text-align: center;
  color: #29ba9b;
  font-size: 13px;
  font-weight: 600;
  padding-top: 10px;
  cursor: pointer;
}

.storage-cat-card .storage-items-list .storage-show-more:hover {
  text-decoration: underline;
}

.inv-btn-large {
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 24px;
}

.inv-btn-large i {
  margin-right: 8px;
}

.inv-docs-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #eaeaec;
}

.inv-docs-section .inv-docs-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 15px;
}

.inv-docs-section .inv-docs-header h4 {
  color: #1976d2;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.inv-docs-section .inv-docs-header .btn-upload {
  border-radius: 8px;
  background: #1976d2;
  border: none;
}

.inv-docs-section .inv-upload-box-empty {
  padding: 40px 20px;
  background: #f8fbff;
  border-color: #bbdefb;
  text-align: center;
  border: 2px dashed #bbdefb;
  border-radius: 12px;
}

.inv-docs-section .inv-upload-box-empty i {
  color: #90caf9;
  font-size: 32px;
  margin-bottom: 10px;
}

.inv-docs-section .inv-upload-box-empty p {
  color: #64b5f6;
  margin: 0;
  font-weight: 500;
}

.inv-manage-categories-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 20px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.inv-manage-categories-grid .inv-manage-col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 15px;
}

.inv-manage-categories-grid .inv-add-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.inv-manage-categories-grid .inv-add-row .form-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.inv-manage-categories-grid .inv-manage-list {
  border: 1px solid #eaeaec;
  border-radius: 6px;
  padding: 6px;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 2px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item:hover {
  background: #f8fafc;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item.active {
  background: #eef2ff !important;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item span {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item.active span {
  color: #4338ca;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item button {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  padding: 4px;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item button:hover {
  color: #b91c1c;
}

.inv-manage-categories-grid .inv-manage-list .cc-list-item:hover button {
  opacity: 1;
}

.inv-manage-categories-grid .inv-manage-list .inv-manage-list-empty {
  padding: 25px 15px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
  font-style: italic;
}

.inv-manage-categories-grid .inv-manage-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  text-align: center;
  height: 100%;
  min-height: 150px;
}

.inv-manage-categories-grid .inv-manage-empty i {
  font-size: 32px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.inv-manage-categories-grid .inv-manage-empty p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

@keyframes slideInRight {
  from {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
  }
  to {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

.inv-pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-top: 24px;
  border: 1px solid #e2e8f0;
}

.inv-pagination .inv-pagination-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.inv-pagination .inv-pagination-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.inv-pagination .inv-pagination-controls .btn {
  width: 36px !important;
  height: 36px !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.inv-pagination .inv-pagination-controls .btn i {
  font-size: 12px;
}

.inv-pagination .inv-pagination-controls .btn.btn--outline {
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #fff;
}

.inv-pagination .inv-pagination-controls .btn.btn--outline:hover:not([disabled]):not(.disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inv-pagination .inv-pagination-controls .btn.btn--primary {
  background: var(--teal);
  color: #fff;
  border: none;
  -webkit-box-shadow: 0 4px 10px rgba(45, 212, 191, 0.3);
          box-shadow: 0 4px 10px rgba(45, 212, 191, 0.3);
}

.inv-pagination .inv-pagination-controls .btn[disabled], .inv-pagination .inv-pagination-controls .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.inv-pagination .inv-pagination-controls .inv-pagination-dots {
  color: #94a3b8;
  font-weight: 600;
  padding: 0 8px;
  letter-spacing: 2px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

@media (max-width: 640px) {
  .inv-pagination {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .inv-pagination .inv-pagination-controls {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

.inv-assignments-topbar {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.inv-assignments-label {
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  display: block;
}

.inv-panel-wrapper {
  margin-bottom: 0;
}

.inv-panel {
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  height: 100%;
  overflow: hidden;
}

.inv-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #f8fafc;
}

.inv-panel-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.inv-panel-body {
  padding: 20px;
}

.inv-btn-generate {
  width: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 12px;
  font-size: 15px;
  margin-bottom: 20px;
}

.inv-dashed-divider {
  border: none;
  border-top: 1px dashed #cbd5e1;
  margin: 0 0 20px 0;
}

.inv-docs-title {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.inv-docs-title .badge {
  margin-left: 15px;
}

.inv-docs-list {
  margin-bottom: 20px;
}

.inv-protocol-dropzone {
  padding: 24px 16px;
  min-height: auto;
}

.inv-protocol-dropzone .es-uploader__subtext {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

.inv-queue-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.inv-asset-assigned-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.inv-asset-assigned-card:hover {
  border-color: #cbd5e1;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inv-asset-assigned-card .inv-asset-assigned-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.inv-asset-assigned-card .inv-asset-assigned-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #64748b;
  font-size: 20px;
}

.inv-asset-assigned-card .inv-asset-assigned-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

.inv-asset-assigned-card .inv-asset-assigned-details h4 {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.inv-asset-assigned-card .inv-asset-assigned-details .inv-asset-assigned-meta {
  color: #64748b;
  font-size: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.inv-asset-assigned-card .inv-asset-assigned-details .inv-asset-assigned-meta span i {
  opacity: 0.5;
  margin-right: 4px;
}

.inv-doc-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f8fafc;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.inv-doc-item:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.inv-doc-item .inv-doc-link {
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.inv-doc-item .inv-doc-link i {
  color: #ef4444;
  font-size: 18px;
}

.inv-doc-item .inv-doc-link .inv-doc-name {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.inv-doc-item .btn-delete-signed-doc {
  color: #ef4444;
  padding: 4px 8px;
  height: auto;
}

.inv-doc-item .btn-delete-signed-doc:hover {
  background: #fef2f2;
}

.inv-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.inv-toolbar .inv-search {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0 16px;
  height: 44px;
  border: 1px solid #eaeaec;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.inv-toolbar .inv-search.no-shadow {
  -webkit-box-shadow: none;
          box-shadow: none;
}

.inv-toolbar .inv-search i {
  color: #888888;
  margin-right: 12px;
  font-size: 16px;
}

.inv-toolbar .inv-search input {
  border: none;
  background: transparent;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 100%;
  font-size: 13px;
  color: #1a1a1a;
  outline: none;
}

.inv-toolbar .inv-search input::-webkit-input-placeholder {
  color: #999;
}

.inv-toolbar .inv-search input:-ms-input-placeholder {
  color: #999;
}

.inv-toolbar .inv-search input::-ms-input-placeholder {
  color: #999;
}

.inv-toolbar .inv-search input::placeholder {
  color: #999;
}

.inv-toolbar .inv-filter-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eaeaec;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  color: #1a1a1a;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.inv-toolbar .inv-filter-btn:hover, .inv-toolbar .inv-filter-btn.active {
  background: #e6ebe9;
  border-color: #d1dcd8;
  color: #29ba9b;
}

.inv-toolbar .inv-filter-btn.inv-scan-btn {
  color: #29ba9b;
}

.es-uploader--mini .es-uploader__dropzone--mini {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px dashed var(--border-color, #d1d5db);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  height: 42px;
}

.es-uploader--mini .es-uploader__dropzone--mini:hover {
  border-color: var(--primary, #0ea5e9);
  color: var(--primary, #0ea5e9);
}

.es-uploader--mini .es-uploader__dropzone--mini i {
  font-size: 14px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.exp-receipt-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  display: inline-block;
}

.exp-receipt-existing a {
  font-size: 11px;
}

.exp-receipt-existing a:hover {
  text-decoration: underline;
}

.expense-detail-header {
  margin-bottom: 20px;
}

.expense-detail-meta {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[5];
      grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 16px 24px;
  background: var(--bg-light, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.expense-detail-meta .meta-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
  position: relative;
}

.expense-detail-meta .meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color, #e2e8f0);
}

.expense-detail-meta .meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.8px;
}

.expense-detail-meta .meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #334155);
}

.expense-detail-meta .meta-value#detailPersonnel {
  color: #1e3a8a;
  font-weight: 700;
}

.expense-detail-meta .meta-value#detailPeriod {
  color: #475569;
}

.expense-detail-meta .meta-value#detailTotal {
  color: #0f172a;
  font-weight: 700;
}

.expense-detail-meta .expense-approved-val {
  color: #059669 !important;
  font-weight: 700;
}

.exp-approve-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  white-space: nowrap;
}

.btn-exp-approve,
.btn-exp-reject,
.btn-exp-undo {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 12px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.btn-exp-approve {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.btn-exp-approve:hover, .btn-exp-approve.active {
  background: #10b981;
  color: #fff;
}

.btn-exp-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-exp-reject:hover, .btn-exp-reject.active {
  background: #ef4444;
  color: #fff;
}

.btn-exp-undo {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.btn-exp-undo:hover {
  background: #f59e0b;
  color: #fff;
}

.exp-reject-note {
  color: #94a3b8;
  cursor: help;
  font-size: 14px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  height: 28px;
  width: 28px;
}

.exp-reject-note:hover {
  color: #ef4444;
}

.commission-input-cell {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.commission-input-cell .currency-addon {
  position: absolute;
  right: 10px;
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.commission-input-cell .form-input {
  padding-right: 35px !important;
  font-weight: 500;
}

.commission-input-cell .form-input:focus {
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
          box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.commission-notes-input {
  width: 100%;
}

.save-status-indicator {
  font-size: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.save-status-indicator.text-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.save-status-indicator.text-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.page-finance #dtGeneralExpenses,
.page-finance #dtIncomes {
  table-layout: fixed !important;
  min-width: 1100px !important;
}

.page-finance #dtGeneralExpenses th:nth-child(2),
.page-finance #dtGeneralExpenses td:nth-child(2),
.page-finance #dtIncomes th:nth-child(2),
.page-finance #dtIncomes td:nth-child(2) {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.page-finance #dtGeneralExpenses th:nth-child(3),
.page-finance #dtGeneralExpenses td:nth-child(3),
.page-finance #dtIncomes th:nth-child(3),
.page-finance #dtIncomes td:nth-child(3) {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.page-finance .company-subname {
  color: var(--blue, #3b82f6) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.page-finance .company-subname i {
  color: var(--blue, #3b82f6) !important;
  font-size: 10px;
}

.chart-box-container {
  margin-bottom: 24px;
  width: 100%;
}

/* Modern Audit Log Table Styles */
.audit-log-table {
  width: 100%;
  border-collapse: collapse;
}

.audit-log-table th {
  padding: 11px 14px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid var(--border-color, #e2e8f0) !important;
  text-align: left;
}

.audit-log-table td {
  padding: 12px 14px !important;
  color: var(--text-secondary, #475569) !important;
  font-size: 13px !important;
  border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
  background: transparent !important;
  vertical-align: middle;
}

.audit-log-table tr:last-child td {
  border-bottom: none !important;
}

.audit-log-table tbody tr {
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.audit-log-table tbody tr:hover {
  background-color: var(--teal-light, #f0fdfa) !important;
}

/* Interactive Notes cells and general cursor utilities */
.btn-edit-notes,
.cursor-pointer {
  cursor: pointer !important;
}

.btn-edit-notes span,
.cursor-pointer span {
  color: var(--teal);
  font-weight: 600;
}

/* Autocomplete suggestion styles */
.autocomplete-suggestions {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  z-index: 99999;
  /* Ensure it stays above form inputs but below modals if necessary */
  border-radius: 6px;
  -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 4px;
}

.autocomplete-suggestions .suggestion-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  -webkit-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}

.autocomplete-suggestions .suggestion-item:last-child {
  border-bottom: none;
}

.autocomplete-suggestions .suggestion-item:hover {
  background-color: var(--bg-hover, #f8fafc);
}

.autocomplete-suggestions .suggestion-item strong {
  font-weight: 600;
  color: var(--primary, #3b82f6);
}

.autocomplete-suggestions .suggestion-item span {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

/* Clear input button on autocomplete fields */
.btn-clear-input {
  position: absolute;
  right: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 4px;
  border-radius: 50%;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.btn-clear-input:hover {
  color: var(--text-main, #475569);
  background: var(--bg-hover, #f1f5f9);
}

.btn-clear-input i {
  font-size: 12px;
}

/* Category tree elements */
.categories-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-tree-list li {
  margin-bottom: 8px;
}

.cat-item-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.cat-item-row .name {
  font-weight: 500;
  color: #1e293b;
}

.cat-item-row .actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.cat-item-row .actions button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 5px;
  -webkit-transition: opacity 0.15s ease;
  transition: opacity 0.15s ease;
}

.cat-item-row .actions button:hover {
  opacity: 0.8;
}

.cat-item-row .actions .edit-cat {
  color: var(--text-primary);
}

.cat-item-row .actions .delete-cat {
  color: var(--red);
}

.sub-cat-tree {
  list-style: none;
  padding-left: 20px;
  margin-top: 6px;
}

.sub-cat-tree .cat-item-row {
  background: #ffffff;
  border-style: dashed;
}

/* Category Modal layout helpers */
.modal-category-left {
  border-right: 1px solid var(--border-light, #f1f5f9);
  padding-right: 20px;
}

.modal-category-right {
  padding-left: 20px;
}

/* Income flat list categories styling */
.categories-flat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.categories-flat-list .cat-item-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.categories-flat-list .cat-item-row .actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.categories-flat-list .cat-item-row .actions button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 5px;
  -webkit-transition: opacity 0.15s ease;
  transition: opacity 0.15s ease;
}

.categories-flat-list .cat-item-row .actions button:hover {
  opacity: 0.8;
}

.categories-flat-list .cat-item-row .actions .edit-cat {
  color: var(--primary);
}

.categories-flat-list .cat-item-row .actions .delete-cat {
  color: var(--red);
}

/* Zero inline-CSS utility classes */
.w-100-table {
  width: 100% !important;
}

.analytics-card--double {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .analytics-card--double {
    grid-column: span 1;
  }
}

.form-input-amount {
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
}

.form-input-currency {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 80px;
}

.es-file-item__preview i {
  font-size: 24px;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-help-text {
  font-size: 0.75rem;
}

.btn-flex-1 {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.btn-flex-2 {
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
}

.cat-tree-container {
  max-height: 350px;
  overflow-y: auto;
  padding: 5px;
  width: 100%;
}

.price-vat {
  opacity: 0.8;
  font-weight: normal;
}

.kpi-card__vat {
  opacity: 0.8;
  font-weight: normal;
  margin-top: 2px;
  display: block;
}

.autocomplete-no-results {
  padding: 10px 15px;
  color: #94a3b8;
}

.cat-tree-primary-name {
  color: var(--primary) !important;
}

.kpi-carousel-wrapper {
  position: relative;
  padding: 0 44px;
  margin-bottom: 24px;
  width: 100%;
}

.kpi-carousel-wrapper .swiper-button-prev,
.kpi-carousel-wrapper .swiper-button-next {
  width: 32px;
  height: 32px;
  background: var(--bg-card, #ffffff) !important;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 50%;
  color: var(--text-main, #334155) !important;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.kpi-carousel-wrapper .swiper-button-prev::after,
.kpi-carousel-wrapper .swiper-button-next::after {
  font-size: 13px !important;
  font-weight: 800;
  font-family: swiper-icons;
}

.kpi-carousel-wrapper .swiper-button-prev:hover,
.kpi-carousel-wrapper .swiper-button-next:hover {
  background: var(--teal-dark, #4fa37b) !important;
  border-color: var(--teal-dark, #4fa37b);
  color: #ffffff !important;
  -webkit-box-shadow: 0 4px 6px rgba(79, 163, 123, 0.2);
          box-shadow: 0 4px 6px rgba(79, 163, 123, 0.2);
}

.kpi-carousel-wrapper .swiper-button-prev.swiper-button-disabled,
.kpi-carousel-wrapper .swiper-button-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.kpi-carousel-wrapper .swiper-button-prev.swiper-button-disabled:hover,
.kpi-carousel-wrapper .swiper-button-next.swiper-button-disabled:hover {
  background: var(--bg-card, #ffffff) !important;
  border-color: var(--border-color, #cbd5e1);
  color: var(--text-main, #334155) !important;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kpi-carousel-wrapper .swiper-button-prev {
  left: 0;
}

.kpi-carousel-wrapper .swiper-button-next {
  right: 0;
}

.kpi-swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 4px 0;
}

.kpi-swiper-slide {
  height: auto !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.kpi-swiper-slide .kpi-card {
  width: 100% !important;
  margin: 0 !important;
  height: 100% !important;
}

.customer-search-loader {
  position: absolute;
  right: 12px;
  top: 0;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.visit-details-section .data-table-wrap,
#modalVisitDetails .data-table-wrap,
#modalCommissionRules .data-table-wrap,
#modalCommissionLogs .data-table-wrap {
  margin-top: 12px;
}

.visit-details-section .data-table th,
#modalVisitDetails .data-table th,
#modalCommissionRules .data-table th,
#modalCommissionLogs .data-table th {
  background: #f8fafc !important;
  cursor: default !important;
  color: #64748b !important;
}

.visit-details-section .data-table th:hover, .visit-details-section .data-table th:active,
#modalVisitDetails .data-table th:hover,
#modalVisitDetails .data-table th:active,
#modalCommissionRules .data-table th:hover,
#modalCommissionRules .data-table th:active,
#modalCommissionLogs .data-table th:hover,
#modalCommissionLogs .data-table th:active {
  background: #f8fafc !important;
  outline: none !important;
}

.visit-details-section .data-table tbody tr,
#modalVisitDetails .data-table tbody tr,
#modalCommissionRules .data-table tbody tr,
#modalCommissionLogs .data-table tbody tr {
  cursor: default !important;
}

.visit-details-section .data-table tbody tr:hover td,
#modalVisitDetails .data-table tbody tr:hover td,
#modalCommissionRules .data-table tbody tr:hover td,
#modalCommissionLogs .data-table tbody tr:hover td {
  background: transparent !important;
}

.visit-details-section .data-table tbody tr:hover,
#modalVisitDetails .data-table tbody tr:hover,
#modalCommissionRules .data-table tbody tr:hover,
#modalCommissionLogs .data-table tbody tr:hover {
  background: transparent !important;
}

.visit-details-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color, #e2e8f0);
}

.visit-details-title.section-operations {
  border-color: var(--teal, #0d9488);
}

.visit-details-title.section-operations i {
  color: var(--teal, #0d9488);
}

.visit-details-title.section-payments {
  border-color: var(--orange, #ea580c);
}

.visit-details-title.section-payments i {
  color: var(--orange, #ea580c);
}

.visit-details-title.section-accommodation {
  border-color: var(--blue, #2563eb);
}

.visit-details-title.section-accommodation i {
  color: var(--blue, #2563eb);
}

.visit-details-title.section-flight {
  border-color: var(--purple, #7c3aed);
}

.visit-details-title.section-flight i {
  color: var(--purple, #7c3aed);
}

.visit-flight-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
  background: var(--bg-card, #ffffff);
  padding: 14px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, #e2e8f0);
  margin-top: 12px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.visit-flight-box .flight-leg:first-child {
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding-bottom: 12px;
}

.visit-flight-box .flight-leg .flight-leg-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}

.visit-flight-box .flight-leg .flight-leg-title.arrival {
  color: var(--teal-dark, #4fa37b);
}

.visit-flight-box .flight-leg .flight-leg-title.departure {
  color: var(--text-secondary, #64748b);
}

.visit-flight-box .flight-leg .flight-info-row {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-main, #385cad);
  margin-bottom: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.visit-flight-box .flight-leg .flight-info-row:last-child {
  margin-bottom: 0;
}

.visit-flight-box .flight-leg .flight-info-row strong {
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  display: inline-block;
  width: 90px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.visit-flight-box .flight-leg .flight-info-row span {
  color: var(--text-main, #385cad);
  font-weight: 500;
}

.visit-flight-box .flight-leg .flight-info-row .badge {
  font-size: 10px;
  padding: 2px 6px;
  font-weight: 600;
}

.text-color-teal {
  color: var(--teal) !important;
}

.text-color-green {
  color: var(--green) !important;
}

.rules-form-container {
  border-bottom: 1px solid var(--border-color, #cbd5e1);
  padding-bottom: 20px;
}

.rules-modal-title {
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--text-main, #334155);
}

.rules-form-reset {
  margin: 0 !important;
  padding: 0 !important;
}

.rules-rate-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.rules-save-btn {
  white-space: nowrap !important;
}

.rules-table-container {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 8px;
}

.rules-table-padding {
  padding: 15px !important;
}

.rules-action-cell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.exchange-rate-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
}

.exchange-rate-wrap label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.exchange-rate-wrap > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.exchange-rate-wrap > div #averageExchangeRateInput {
  border: none;
  outline: none;
  border-radius: 0;
  background: transparent;
  width: 68px !important;
  max-width: 68px !important;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  -webkit-box-shadow: none;
          box-shadow: none;
}

.exchange-rate-wrap > div #averageExchangeRateInput:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
}

.exchange-rate-wrap > div .currency-addon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 15px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-width: unset;
  background: #f1f5f9;
  border-left: 1px solid #e2e8f0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.exchange-rate-wrap > div .currency-addon i {
  font-size: 11px;
  color: #94a3b8;
}

.marketing-dashboard {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 450px 1fr;
      grid-template-columns: 450px 1fr;
  gap: 16px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

@media (max-width: 1200px) {
  .marketing-dashboard {
    -ms-grid-columns: 3fr 7fr;
        grid-template-columns: 3fr 7fr;
  }
}

@media (max-width: 992px) {
  .marketing-dashboard {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.marketing-col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.marketing-card,
.chart-box-card {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius, 12px);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  -webkit-transition: -webkit-transform var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), -webkit-box-shadow var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  transition: -webkit-transform var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), -webkit-box-shadow var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  transition: transform var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  transition: transform var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), -webkit-transform var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), -webkit-box-shadow var(--dur, 0.22s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.chart-box-card {
  height: 360px;
}

.marketing-card__header,
.chart-box-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
}

.marketing-card__title,
.chart-box-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.marketing-card__title h3,
.chart-box-title h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0;
}

.marketing-card__title .icon-box,
.chart-box-title .icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #fff;
  font-size: 13px;
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.marketing-card__title .icon-box.bg-facebook,
.chart-box-title .icon-box.bg-facebook {
  background: linear-gradient(135deg, #1877f2, #0c5fd4);
}

.marketing-card__title .icon-box.bg-twitter,
.chart-box-title .icon-box.bg-twitter {
  background: linear-gradient(135deg, #1d9bf0, #0d87d8);
}

.marketing-card__title .icon-box.bg-instagram,
.chart-box-title .icon-box.bg-instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
}

.marketing-card__title .icon-box.bg-linkedin,
.chart-box-title .icon-box.bg-linkedin {
  background: linear-gradient(135deg, #0a66c2, #084fa0);
}

.marketing-card__title .icon-box.bg-youtube,
.chart-box-title .icon-box.bg-youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.marketing-card__title .icon-box.bg-tiktok,
.chart-box-title .icon-box.bg-tiktok {
  background: linear-gradient(135deg, #fe2c55, #25f4ee);
}

.marketing-card__title .icon-box.bg-purple,
.chart-box-title .icon-box.bg-purple {
  background: linear-gradient(135deg, #1877f2, #0c5fd4);
}

.marketing-card__title .icon-box.bg-blue,
.chart-box-title .icon-box.bg-blue {
  background: linear-gradient(135deg, #1d9bf0, #0d87d8);
}

.marketing-card__title .icon-box.bg-green,
.chart-box-title .icon-box.bg-green {
  background: linear-gradient(135deg, #0a66c2, #084fa0);
}

.marketing-card__title .icon-box.bg-teal,
.chart-box-title .icon-box.bg-teal {
  background: linear-gradient(135deg, var(--teal, #4fa37b), var(--teal-dark, #3d8b66));
}

.marketing-card__title .icon-box.bg-orange,
.chart-box-title .icon-box.bg-orange {
  background: linear-gradient(135deg, var(--orange, #f97316), var(--orange-dark, #ea580c));
}

.marketing-card__header.is-open .fa-chevron-right,
.chart-box-header.is-open .fa-chevron-right {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}

.marketing-card__header .fa-chevron-right,
.chart-box-header .fa-chevron-right {
  font-size: 0.8rem;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketing-card__header.js-toggle-card,
.chart-box-header.js-toggle-card {
  cursor: pointer;
}

.marketing-card__collapse,
.chart-box-collapse {
  display: none;
}

.marketing-card__divider {
  margin: 0 0 15px 0;
  border-color: rgba(0, 0, 0, 0.05);
}

.marketing-card__body,
.chart-box-body {
  padding: 16px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
}

.marketing-card__body .title,
.chart-box-body .title {
  font-family: "Sora", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.marketing-form {
  margin-bottom: 20px;
}

.marketing-form .form-group {
  margin-bottom: 12px;
}

.marketing-form .form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.marketing-form .form-group input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-main);
  background-color: var(--bg);
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
}

.marketing-form .input-with-prefix {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  -webkit-transition: border-color var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
  transition: border-color var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), -webkit-box-shadow var(--dur) var(--ease);
}

.marketing-form .input-with-prefix:focus-within {
  border-color: var(--border-focus);
  -webkit-box-shadow: 0 0 0 3px var(--teal-glow);
          box-shadow: 0 0 0 3px var(--teal-glow);
}

.marketing-form .input-with-prefix .prefix {
  padding: 8px 12px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.marketing-form .input-with-prefix input[type="text"] {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-main);
}

.marketing-form button {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
}

.marketing-form button.btn-primary {
  background: linear-gradient(135deg, #1877f2, #0c5fd4);
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(24, 119, 242, 0.22);
          box-shadow: 0 2px 6px rgba(24, 119, 242, 0.22);
}

.marketing-form button.btn-primary:hover {
  -webkit-box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
          box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.marketing-form button.btn-info {
  background: linear-gradient(135deg, #1d9bf0, #0d87d8);
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(29, 155, 240, 0.22);
          box-shadow: 0 2px 6px rgba(29, 155, 240, 0.22);
}

.marketing-form button.btn-info:hover {
  -webkit-box-shadow: 0 3px 10px rgba(29, 155, 240, 0.28);
          box-shadow: 0 3px 10px rgba(29, 155, 240, 0.28);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.marketing-form button.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(225, 48, 108, 0.25);
          box-shadow: 0 2px 6px rgba(225, 48, 108, 0.25);
}

.marketing-form button.btn-instagram:hover {
  -webkit-box-shadow: 0 4px 12px rgba(225, 48, 108, 0.38);
          box-shadow: 0 4px 12px rgba(225, 48, 108, 0.38);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.marketing-form button.btn-linkedin {
  background: linear-gradient(135deg, #0a66c2, #084fa0);
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(10, 102, 194, 0.22);
          box-shadow: 0 2px 6px rgba(10, 102, 194, 0.22);
}

.marketing-form button.btn-linkedin:hover {
  -webkit-box-shadow: 0 4px 12px rgba(10, 102, 194, 0.34);
          box-shadow: 0 4px 12px rgba(10, 102, 194, 0.34);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.marketing-form button.btn-youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2);
          box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2);
}

.marketing-form button.btn-youtube:hover {
  -webkit-box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
          box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.marketing-section-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.col-form-details {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  white-space: normal !important;
}

.col-operation,
.col-language {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
}

.marketing-dashboard .data-table .btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #cc0000;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.marketing-dashboard .data-table .btn-outline-danger:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.marketing-dashboard .data-table select.form-select {
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  font-size: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
}

.btn-refresh {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: all var(--dur) var(--ease);
  transition: all var(--dur) var(--ease);
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
          box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn-refresh:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal);
}

.platform-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}

.platform-badge--facebook {
  background: #1877f2;
}

.platform-badge--twitter {
  background: #1d9bf0;
}

.platform-badge--instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
}

.platform-badge--linkedin {
  background: #0a66c2;
}

.platform-badge--youtube {
  background: #ff0000;
}

.platform-badge--tiktok {
  background: linear-gradient(135deg, #fe2c55, #25f4ee);
}

.stats-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1.25rem;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.stats-card:hover {
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stats-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.stats-card__icon.bg-blue {
  background: linear-gradient(135deg, #4285f4, #2b65c2);
}

.stats-card__icon.bg-success {
  background: linear-gradient(135deg, #34a853, #227a38);
}

.stats-card__icon.bg-warning {
  background: linear-gradient(135deg, #fbbc05, #c99602);
}

.stats-card__icon.bg-danger {
  background: linear-gradient(135deg, #ea4335, #ba2519);
}

.stats-card__info h4 {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 5px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-card__info h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.activity-feed {
  padding: 0;
  margin: 0;
}

.activity-feed .activity-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.activity-feed .activity-item:last-child {
  border-bottom: none;
}

.activity-feed .activity-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  background: var(--text-secondary);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.activity-feed .activity-item__icon.created {
  background: #34a853;
}

.activity-feed .activity-item__icon.updated {
  background: #fbbc05;
}

.activity-feed .activity-item__icon.deleted {
  background: #ea4335;
}

.activity-feed .activity-item__icon.deleted_possible {
  background: #6c757d;
}

.activity-feed .activity-item__content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  font-size: 0.85rem;
  color: var(--text-main);
}

.activity-feed .activity-item__content .time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.gmb-dashboard {
  display: block !important;
}

.gmb-stats-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.gmb-main-layout {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 350px 1fr;
      grid-template-columns: 350px 1fr;
  gap: 20px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

@media (max-width: 1200px) {
  .marketing-card {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(50% - 20px);
            flex: 1 1 calc(50% - 20px);
  }
  .gmb-stats-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .gmb-main-layout {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .marketing-dashboard {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .marketing-card {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;
  }
  .gmb-stats-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.gmb-card-body-nopad {
  padding: 0 !important;
}

.gmb-icon-empty {
  font-size: 1.5rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* --- Table Columns & Truncation --- */
#tableGoogleReviews {
  table-layout: fixed;
  width: 100%;
  min-width: 950px;
}

#tableGoogleReviews th.gmb-th-reviewer {
  width: 18%;
}

#tableGoogleReviews th.gmb-th-rating {
  width: 14%;
}

#tableGoogleReviews th.gmb-th-comment {
  width: 40%;
}

#tableGoogleReviews th.gmb-th-status {
  width: 10%;
}

#tableGoogleReviews th.gmb-th-date {
  width: 10%;
}

#tableGoogleReviews th.gmb-th-actions {
  width: 8%;
  text-align: right;
}

#tableGoogleReviews td {
  vertical-align: middle;
  white-space: nowrap;
}

.gmb-reviewer-name {
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  -webkit-transition: color var(--dur);
  transition: color var(--dur);
}

.gmb-text-muted {
  color: #94a3b8;
}

.gmb-text-truncate {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gmb-log-item {
  margin-bottom: 8px;
}

.gmb-log-rating {
  margin-left: 8px;
  opacity: 0.75;
}

.gmb-log-arrow {
  margin: 0 8px;
  color: #94a3b8;
}

.gmb-star-active {
  color: #f59e0b;
}

.gmb-star-inactive {
  color: #e2e8f0;
}

.gmb-review-history .gmb-history-header {
  background: #f8fafc;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.gmb-review-history .gmb-history-header .gmb-reviewer-info h5 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #1e293b;
  font-weight: 600;
}

.gmb-review-history .gmb-history-comment {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 24px;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gmb-review-history .gmb-timeline-wrap {
  padding: 0 24px 24px 24px;
}

.gmb-review-history .gmb-timeline-wrap .gmb-timeline-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 24px;
}

.gmb-timeline {
  position: relative;
  padding-left: 32px;
}

.gmb-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.gmb-timeline .gmb-timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.gmb-timeline .gmb-timeline-item:last-child {
  margin-bottom: 0;
}

.gmb-timeline .gmb-timeline-item:last-child::before {
  height: 14px;
}

.gmb-timeline .gmb-timeline-item:last-child::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: -8px;
  width: 2px;
  background: #fff;
  z-index: 1;
}

.gmb-timeline .gmb-timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  -webkit-box-shadow: 0 0 0 2px #e2e8f0;
          box-shadow: 0 0 0 2px #e2e8f0;
  z-index: 2;
}

.gmb-timeline .gmb-timeline-item.action-created::before {
  background: #10b981;
  -webkit-box-shadow: 0 0 0 2px #10b981;
          box-shadow: 0 0 0 2px #10b981;
}

.gmb-timeline .gmb-timeline-item.action-updated::before {
  background: #f59e0b;
  -webkit-box-shadow: 0 0 0 2px #f59e0b;
          box-shadow: 0 0 0 2px #f59e0b;
}

.gmb-timeline .gmb-timeline-item.action-deleted_possible::before {
  background: #ef4444;
  -webkit-box-shadow: 0 0 0 2px #ef4444;
          box-shadow: 0 0 0 2px #ef4444;
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-date {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-content h6 {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-content .gmb-log-detail {
  font-size: 0.8rem;
  color: #475569;
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-content .gmb-log-detail .gmb-diff-box {
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 8px;
  border-left: 3px solid #cbd5e1;
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-content .gmb-log-detail .gmb-diff-box.diff-old {
  border-left-color: #ef4444;
  color: #991b1b;
  background: #fef2f2;
  text-decoration: line-through;
}

.gmb-timeline .gmb-timeline-item .gmb-timeline-content .gmb-log-detail .gmb-diff-box.diff-new {
  border-left-color: #10b981;
  color: #065f46;
  background: #ecfdf5;
}

.gmb-activity-feed {
  max-height: 400px;
  overflow-y: auto;
}

.gmb-activity-feed .gmb-activity-empty {
  text-align: center;
  color: #94a3b8;
  padding: 16px 0;
}

.gmb-activity-feed .gmb-activity-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.gmb-activity-feed .gmb-activity-item:hover {
  background-color: #f8fafc;
}

.gmb-activity-feed .gmb-activity-item:last-child {
  border-bottom: none;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-right: 16px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  font-size: 0.9rem;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-icon.icon-created {
  background-color: #ecfdf5;
  color: #10b981;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-icon.icon-updated {
  background-color: #fffbeb;
  color: #f59e0b;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-icon.icon-deleted {
  background-color: #fef2f2;
  color: #ef4444;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-icon.icon-info {
  background-color: #eff6ff;
  color: #3b82f6;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-content .gmb-activity-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-content .gmb-activity-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 6px;
}

.gmb-activity-feed .gmb-activity-item .gmb-activity-content .gmb-activity-date {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.reports-tab-wrapper {
  margin-bottom: 24px;
  margin-top: 10px;
}

.reports-tab-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 0 4px;
}

.reports-tab-nav::-webkit-scrollbar {
  height: 1px;
}

.reports-tab-nav::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 1px;
}

.reports-tab-nav .reports-tab-btn {
  background: transparent;
  border: none;
  padding: 15px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}

.reports-tab-nav .reports-tab-btn:hover {
  color: #1e293b;
}

.reports-tab-nav .reports-tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary, #3b82f6);
  border-radius: 3px 3px 0 0;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform-origin: center;
          transform-origin: center;
}

.reports-tab-nav .reports-tab-btn.active {
  color: var(--primary, #3b82f6);
  font-weight: 600;
}

.reports-tab-nav .reports-tab-btn.active::after {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

.reports-tab-nav .reports-tab-btn i {
  font-size: 1.1rem;
}

.reports-content-container {
  min-height: 400px;
  position: relative;
}

.reports-loading-overlay {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 80px 0;
  color: #64748b;
}

.reports-loading-overlay i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--primary, #3b82f6);
}

.reports-loading-overlay h4 {
  margin: 0 0 8px 0;
  color: #1e293b;
}

.reports-empty-state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 80px 0;
  color: #94a3b8;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.reports-empty-state i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #cbd5e1;
  opacity: 0.8;
}

.reports-empty-state h4 {
  color: #475569;
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.reports-empty-state p {
  margin: 0;
  font-size: 14px;
  max-width: 400px;
  line-height: 1.5;
}

.reports-error-state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 80px 0;
  color: #94a3b8;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.reports-error-state i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #ef4444;
  opacity: 0.9;
}

.reports-error-state h4 {
  color: #ef4444;
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.reports-error-state p {
  margin: 0;
  font-size: 14px;
  max-width: 400px;
  line-height: 1.5;
}

/* CSS */
.chart-empty-state {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  color: #64748b;
}

.chart-empty-state__icon {
  color: #cbd5e1;
  margin-bottom: 15px;
}

.chart-empty-state__title {
  margin: 0 0 5px 0;
}

.chart-empty-state__description {
  font-size: 13px;
  margin: 0;
}

.ai-sql-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1.5px solid #ddd6fe;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
          box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, -webkit-box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  margin-top: 20px;
}

.ai-sql-bar__icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  color: var(--text-primary);
  font-size: 16px;
}

.ai-sql-bar__input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: #1e293b;
  padding: 8px 8px 8px 10px;
}

.ai-sql-bar__input::-webkit-input-placeholder {
  color: var(--text-primary);
  opacity: 0.7;
}

.ai-sql-bar__input:-ms-input-placeholder {
  color: var(--text-primary);
  opacity: 0.7;
}

.ai-sql-bar__input::-ms-input-placeholder {
  color: var(--text-primary);
  opacity: 0.7;
}

.ai-sql-bar__input::placeholder {
  color: var(--text-primary);
  opacity: 0.7;
}

.ai-sql-bar__badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 3px 8px;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  letter-spacing: 0.02em;
}

.ai-sql-bar__badge i {
  font-size: 9px;
}

.ai-sql-bar__btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: opacity 0.15s, -webkit-transform 0.1s;
  transition: opacity 0.15s, -webkit-transform 0.1s;
  transition: opacity 0.15s, transform 0.1s;
  transition: opacity 0.15s, transform 0.1s, -webkit-transform 0.1s;
}

.ai-sql-bar__btn i {
  font-size: 12px;
}

.ai-sql-bar__btn:hover {
  opacity: 0.9;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.ai-sql-bar__btn:active {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* Daily Lead Interest Report Styles */
.reports-dli-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

@media (max-width: 768px) {
  .marketing-card__header {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    -webkit-box-align: stretch !important;
        -ms-flex-align: stretch !important;
            align-items: stretch !important;
    gap: 12px !important;
  }
  .marketing-card__header .marketing-card__title {
    width: 100% !important;
  }
  .marketing-card__header .reports-dli-actions {
    width: 100% !important;
    -webkit-box-pack: start !important;
        -ms-flex-pack: start !important;
            justify-content: flex-start !important;
    -ms-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .marketing-card__header .reports-dli-actions .reports-dli-date {
    -webkit-box-flex: 1 !important;
        -ms-flex: 1 !important;
            flex: 1 !important;
    min-width: 140px !important;
    width: 100% !important;
  }
  .marketing-card__header .reports-dli-actions .reports-dli-date input {
    width: 100% !important;
  }
  .marketing-card__header .reports-dli-actions .btn {
    -webkit-box-flex: 1 !important;
        -ms-flex: 1 !important;
            flex: 1 !important;
    white-space: nowrap !important;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
}

.reports-dli-date {
  width: 180px;
}

.reports-ta-date {
  width: 190px;
}

.reports-dli-filters {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .reports-dli-filters {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-dli-filters--3 {
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .reports-dli-filters--3 {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reports-dli-filters--3 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-dli-filters--4 {
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .reports-dli-filters--4 {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reports-dli-filters--4 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-dli-filters__item {
  width: 100%;
}

.reports-dli-filters__label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.mss-side-layout {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1.2fr 1fr;
      grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  padding: 0 20px 20px 20px;
}

@media (max-width: 992px) {
  .mss-side-layout {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.mss-chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

.mss-chart-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.chart-container {
  position: relative;
  width: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 0;
}

.chart-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.mss-table-container {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.mss-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mss-summary-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  z-index: 1;
}

.mss-summary-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.mss-summary-table tr {
  cursor: pointer;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}

.mss-summary-table tr:hover td {
  background: #f8fafc;
}

.mss-summary-table tr.active td {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}

.table-filter-row th {
  padding: 6px 8px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.table-filter-row th input {
  width: 100% !important;
  min-width: 60px;
  font-size: 11px !important;
  padding: 4px 8px !important;
  height: 28px !important;
  border-radius: 5px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-family: "Sora", sans-serif !important;
  font-weight: normal !important;
  -webkit-transition: all 0.15s ease-in-out !important;
  transition: all 0.15s ease-in-out !important;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
          box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.table-filter-row th input::-webkit-input-placeholder {
  color: #94a3b8;
}

.table-filter-row th input:-ms-input-placeholder {
  color: #94a3b8;
}

.table-filter-row th input::-ms-input-placeholder {
  color: #94a3b8;
}

.table-filter-row th input::placeholder {
  color: #94a3b8;
}

.table-filter-row th input:focus {
  border-color: #3b82f6 !important;
  background: #ffffff !important;
  -webkit-box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
          box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

.table-filter-row th .custom-dropdown {
  width: 100% !important;
}

.table-filter-row th .custom-dropdown .custom-dropdown__toggle {
  height: 28px !important;
  padding: 0 8px !important;
  gap: 4px !important;
  font-size: 11px !important;
  border-radius: 5px !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  background: #ffffff !important;
  font-family: "Sora", sans-serif !important;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
          box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.table-filter-row th .custom-dropdown .custom-dropdown__toggle::after {
  font-size: 9px !important;
  color: #64748b !important;
}

.table-filter-row th .custom-dropdown.open .custom-dropdown__toggle {
  border-color: #3b82f6 !important;
  -webkit-box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
          box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
  color: #1e3a8a !important;
}

.reports-dli-chart {
  position: relative;
  height: 500px;
  width: 100%;
}

.reports-dli-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .reports-dli-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-dli-table {
  width: 100%;
  min-width: 600px;
}

.reports-wl-filters {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background-color: var(--bg-light, #f8fafc);
}

@media (max-width: 576px) {
  .reports-wl-filters {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-wl-filters__item {
  width: 100%;
}

.reports-wl-filters__label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

/* Ticket Arrival (Conversion Velocity) Report Styles */
.reports-ta-filters {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background-color: var(--bg-light, #f8fafc);
}

@media (max-width: 992px) {
  .reports-ta-filters {
    -ms-grid-columns: (1fr)[2] !important;
        grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .reports-ta-filters {
    -ms-grid-columns: 1fr !important;
        grid-template-columns: 1fr !important;
  }
}

.reports-ta-filters.cols-5 {
  -ms-grid-columns: (1fr)[5];
      grid-template-columns: repeat(5, 1fr);
}

.reports-ta-filters__item {
  width: 100%;
}

.reports-ta-filters__label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.reports-ta-summary-container {
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.reports-ta-summary-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[4];
      grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .reports-ta-summary-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .reports-ta-summary-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-ta-summary-card {
  margin-bottom: 0;
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--bg-card, #ffffff);
}

.reports-ta-summary-card__label {
  font-size: 11px;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reports-ta-summary-card__value {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, #1e293b);
}

.reports-ta-summary-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 18px;
}

.reports-ta-summary-card__icon.bg-blue {
  background-color: #eff6ff;
  color: #3b82f6;
}

.reports-ta-summary-card__icon.bg-success {
  background-color: #ecfdf5;
  color: #10b981;
}

.reports-ta-summary-card__icon.bg-warning {
  background-color: #fef3c7;
  color: #d97706;
}

.reports-ta-summary-card__icon.bg-danger {
  background-color: #fdf2f8;
  color: #db2777;
}

.reports-ta-charts-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 2fr 1fr;
      grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .reports-ta-charts-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.reports-ta-chart-card {
  margin-bottom: 0;
  border: 1px solid var(--border, #e2e8f0) !important;
  border-radius: 8px;
}

.reports-ta-chart-card__header {
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
  padding: 12px 16px !important;
}

.reports-ta-chart-card__title-text {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.reports-ta-chart-card__body {
  padding: 16px !important;
  height: 350px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.reports-ta-chart-card--small {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.reports-ta-chart-card--small .reports-ta-chart-card__header {
  padding: 10px 16px !important;
}

.reports-ta-chart-card--small .reports-ta-chart-card__title-text {
  font-size: 13px;
}

.reports-ta-chart-card--small .reports-ta-chart-card__body {
  height: 140px;
  padding: 12px !important;
}

.reports-ta-side-charts-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

.reports-ta-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.reports-ta-table {
  width: 100% !important;
}

.reports-ta-table td.days {
  color: var(--primary, #3b82f6);
  font-weight: bold;
  text-align: center;
}

.reports-ta-table .pm-tag {
  margin-left: 6px;
}

/* Targets Performance Report specific styles */
.targetPerformanceTable th,
.targetPerformanceTable td {
  vertical-align: middle !important;
  padding: 12px 16px !important;
}

.targetPerformanceTable .statusBadge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.targetPerformanceTable .statusBadge.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

.targetPerformanceTable .statusBadge.on {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.targetPerformanceTable .statusBadge.behind {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.targetPerformanceTable .statusBadge.critical {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.targetPerformanceTable .performanceBar {
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  height: 20px;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
}

.targetPerformanceTable .performanceBar .progress-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  -webkit-transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.targetPerformanceTable .performanceBar .progress-bar.progress-high {
  background: linear-gradient(135deg, #10b981, #059669);
}

.targetPerformanceTable .performanceBar .progress-bar.progress-good {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.targetPerformanceTable .performanceBar .progress-bar.progress-mid {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.targetPerformanceTable .performanceBar .progress-bar.progress-low {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.targetPerformanceTable .performanceBar .progress-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 10px;
  font-weight: bold;
  pointer-events: none;
}

.targetPerformanceTable .performanceBar .progress-bar-text.text-light {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.targetPerformanceTable .performanceBar .progress-bar-text.text-dark {
  color: #475569;
  text-shadow: none;
}

.mss-price-stack {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2px;
}

.mss-price-stack .mss-price-sub {
  color: #64748b;
  font-size: 11px;
}

.mss-price-stack .mss-price-main {
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
}

.mss-price-stack .mss-price-main.text-success {
  color: #10b981;
}

.yp-side-layout {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1.5fr 1fr;
      grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  padding: 0 20px 20px 20px;
}

@media (max-width: 1200px) {
  .yp-side-layout {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

.yp-breakdown-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(285px, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 20px;
}

.yp-breakdown-card {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.yp-breakdown-card:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.yp-breakdown-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  overflow-y: auto;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.yp-breakdown-list::-webkit-scrollbar {
  width: 4px;
}

.yp-breakdown-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.yp-breakdown-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.yp-breakdown-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.yp-insights-title {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin: 25px 0 15px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-family: "Sora", sans-serif;
}

.yp-breakdown-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 250px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.yp-breakdown-card:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.yp-insight-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 15px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-family: "Sora", sans-serif;
}

.yp-breakdown-item {
  margin-bottom: 12px;
}

.yp-breakdown-item .yp-breakdown-item-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 11px;
  font-family: "Sora", sans-serif;
  margin-bottom: 4px;
}

.yp-breakdown-item .yp-breakdown-item-name {
  font-weight: 600;
  color: #334155;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.yp-breakdown-item .yp-breakdown-item-name .yp-rank-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  background: #e2e8f0;
  color: #475569;
  text-align: center;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  margin-right: 6px;
}

.yp-breakdown-item .yp-breakdown-item-value {
  font-weight: 700;
  color: #475569;
}

.yp-breakdown-item .yp-breakdown-item-bar-bg {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.yp-breakdown-item .yp-breakdown-item-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: -webkit-gradient(linear, left top, right top, from(#10b981), to(#3b82f6));
  background: linear-gradient(90deg, #10b981, #3b82f6);
  -webkit-transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FINANCE MASTER DATA CELL EDITING STYLES
   ============================================================ */
th.th-editable {
  background: rgba(11, 167, 143, 0.08) !important;
  color: #0b7a69 !important;
  border-bottom: 2px solid rgba(11, 167, 143, 0.2) !important;
}

td.editable-cell {
  position: relative;
  cursor: pointer !important;
  padding-left: 14px !important;
  padding-right: 26px !important;
  min-width: 140px;
  -webkit-transition: background 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: background 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  transition: background 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
}

td.editable-cell:hover {
  background: rgba(11, 167, 143, 0.08) !important;
  /* EsVita Teal theme */
}

td.editable-cell::after {
  content: "\f304";
  /* FontAwesome pencil */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 8px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 10px;
  color: var(--teal, #0ba78f);
  opacity: 0.35;
  -webkit-transition: opacity 0.15s ease;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

td.editable-cell:hover::after {
  opacity: 0.85;
}

td.editable-cell.editing {
  padding: 4px 15px !important;
  background: var(--bg-hover, #f8fafc) !important;
}

td.editable-cell.editing::after {
  display: none !important;
}

td.editable-cell .edit-input,
td.editable-cell .edit-select {
  width: 100%;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--primary, #0ea5e9);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  background: #fff;
  -webkit-box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
          box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
  color: var(--text-main, #334155);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

td.editable-cell .edit-select {
  cursor: pointer;
  -webkit-appearance: auto;
     -moz-appearance: auto;
          appearance: auto;
  /* native select behavior inside editable cell */
}

/* Page wrapper specific override to remove border radius */
#page-finance-master-data .data-table-wrap {
  border-radius: 0 !important;
  overflow: visible !important;
}

#page-finance-master-data .dt-table-wrap {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  overflow-x: auto;
}

/* Customer Group Header & Visit Indentation in Master Data */
#dt-master-data tr.customer-group-row,
.customer-group-row {
  background-color: #f0fdfa !important;
  font-weight: 600;
  border: none !important;
}

#dt-master-data tr.customer-group-row td,
.customer-group-row td {
  background-color: #f0fdfa !important;
  border: none !important;
  padding: 0 !important;
  color: #115e59 !important;
}

#dt-master-data tr.customer-group-row .group-info-container,
.customer-group-row .group-info-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: 12.5px;
  position: -webkit-sticky;
  position: sticky;
  left: 15px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 14px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#dt-master-data tr.customer-group-row .group-info-row,
.customer-group-row .group-info-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  width: 100%;
}

#dt-master-data tr.customer-group-row .group-info-row.row-main,
.customer-group-row .group-info-row.row-main {
  background-color: #f0fdfa !important;
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

#dt-master-data tr.customer-group-row .group-info-row.row-meta,
.customer-group-row .group-info-row.row-meta {
  background-color: #f8fafc !important;
}

#dt-master-data tr.customer-group-row .group-info-row.row-meta .group-info-item,
.customer-group-row .group-info-row.row-meta .group-info-item {
  color: #475569 !important;
  border-right-color: #e2e8f0 !important;
}

#dt-master-data tr.customer-group-row .group-info-item,
.customer-group-row .group-info-item {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 15px;
  position: relative;
}

#dt-master-data tr.customer-group-row .group-info-item:first-child,
.customer-group-row .group-info-item:first-child {
  padding-left: 14px;
}

#dt-master-data tr.customer-group-row .group-info-item:not(:last-child),
.customer-group-row .group-info-item:not(:last-child) {
  border-right: 1px solid rgba(13, 148, 136, 0.12);
}

.visit-index-indicator {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: 600;
  color: var(--text-main, #334155);
}

.visit-index-indicator i {
  color: var(--teal, #0d9488);
  font-size: 10px;
  margin-right: 6px;
  opacity: 0.8;
}

/* Bordered layout for Master Data table */
#dt-master-data {
  border-collapse: collapse !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
}

#dt-master-data th,
#dt-master-data td {
  border: 1px solid #e2e8f0 !important;
  padding: 10px 14px !important;
  border-radius: 0 !important;
}

#dt-master-data th {
  border-bottom: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  font-weight: 600;
  color: #475569 !important;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}

.customer-group-row .patient-link {
  color: #0d9488 !important;
  font-weight: 700;
  text-decoration: none;
}

.customer-group-row .patient-link:hover {
  text-decoration: underline;
}

.visit-op-category-trigger {
  cursor: pointer !important;
}

.visit-op-category-trigger .op-category-link:hover {
  text-decoration: underline;
}

/* --- Master Data Modal Details --- */
.visit-details-section .section-payments,
.visit-details-section .section-operations {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--navy-blue);
}

.visit-details-section .section-payments i,
.visit-details-section .section-operations i {
  color: var(--teal);
  margin-right: 0.5rem;
}

.modal-data-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-data-table thead {
  font-size: 13px;
}

.modal-data-table thead tr {
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  background: #f8fafc;
}

.modal-data-table thead th {
  padding: 10px;
}

.modal-data-table tbody {
  font-size: 13px;
}

.modal-data-table tbody tr {
  border-bottom: 1px solid #edf2f7;
}

.modal-data-table tbody td {
  padding: 10px;
  color: #4a5568;
}

.modal-data-table tfoot {
  font-size: 13px;
}

.modal-data-table tfoot tr {
  border-top: 2px solid #cbd5e1;
}

.modal-data-table tfoot tr td {
  padding: 10px;
}

.modal-data-table tfoot .total-row {
  background-color: #f1f5f9;
  border-top: 2px solid #cbd5e1;
}

.modal-data-table tfoot .total-row td strong {
  font-size: 13px;
}

.badge-method {
  background: #e6fffa;
  color: #319795;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.td-money-orig {
  text-align: right;
  font-weight: 600;
  color: #2d3748;
}

.td-money-eur {
  text-align: right;
  font-weight: 600;
  color: var(--teal);
}

.td-money-net {
  text-align: right;
  font-weight: 600;
  color: #38a169;
}

.td-right {
  text-align: right;
}

.deduction-rate {
  font-size: 11px;
  font-weight: 600;
}

.op-name {
  font-weight: 500;
}

.op-doctor {
  color: #4a5568;
}

.op-qty {
  font-weight: 600;
  color: var(--teal);
}

.error-box {
  padding: 50px 20px;
  text-align: center;
  border: 1px solid #ffc107;
  background: #fff3cd;
  border-radius: 5px;
}

.error-box h1 {
  color: #856404;
}

.error-box p {
  color: #856404;
  font-size: 16px;
}

.error-box p strong {
  font-weight: 600;
}

.error-box a {
  display: inline-block;
  padding: 10px 15px;
  background: #856404;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  margin-top: 10px;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
}

.error-box a:hover {
  opacity: 0.9;
}

/* ── SUPPORT & FEEDBACK TICKETING SYSTEM ──────────────────────── */
.support-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  height: calc(100vh - 180px);
  min-height: 550px;
  margin-top: 20px;
}

/* Sidebar list styles */
.support-sidebar {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 350px;
          flex: 0 0 350px;
  max-width: 350px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  height: 100%;
}

.support-filters {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.support-filters .filter-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}

.support-filters .filter-item label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-select-simple {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  outline: none;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}

.form-select-simple:focus {
  border-color: var(--teal);
}

.support-search-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 42px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 16px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.support-search-wrap:focus-within {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
          box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.support-search-wrap i {
  color: #94a3b8;
  font-size: 12px;
}

.support-search-wrap input {
  background: none;
  border: none;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  outline: none;
  font-size: 12px;
  font-family: "Sora", sans-serif;
  color: var(--text-muted);
}

.support-search-wrap input::-webkit-input-placeholder {
  color: #94a3b8;
}

.support-search-wrap input:-ms-input-placeholder {
  color: #94a3b8;
}

.support-search-wrap input::-ms-input-placeholder {
  color: #94a3b8;
}

.support-search-wrap input::placeholder {
  color: #94a3b8;
}

.support-list-wrapper {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  /* Custom Scrollbar */
}

.support-list-wrapper ::-webkit-scrollbar {
  width: 4px;
}

.support-list-wrapper ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.support-list-wrapper ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.support-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}

.support-list .support-list-loading,
.support-list .support-list-error,
.support-list .support-list-empty {
  padding: 30px 10px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

.support-list .support-list-loading i {
  color: var(--teal);
  margin-right: 6px;
}

.support-item {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.support-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.support-item.active {
  background: #f0fdfa;
  border-color: var(--teal);
}

.support-item.unread-item {
  background: #fff;
  border-left: 4px solid var(--teal);
  font-weight: 500;
}

.support-item .support-item-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.support-item .support-item-cat {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-item .support-item-cat.cat-bug {
  background: #fee2e2;
  color: #ef4444;
}

.support-item .support-item-cat.cat-suggestion {
  background: #ecfdf5;
  color: #10b981;
}

.support-item .support-item-cat.cat-complaint {
  background: #fff7ed;
  color: #f97316;
}

.support-item .support-item-cat.cat-conflict {
  background: #faf5ff;
  color: #a855f7;
}

.support-item .support-item-cat.cat-general {
  background: #f1f5f9;
  color: #64748b;
}

.support-item .support-item-cat.cat-default {
  background: #f1f5f9;
  color: #475569;
}

.support-item .support-item-date {
  font-size: 11px;
  color: #94a3b8;
}

.support-item .support-item-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #1e293b;
}

.support-item .support-item-title .unread-indicator-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.support-item .support-item-title .title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.support-item .support-item-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 11.5px;
  color: #64748b;
}

.support-item .support-item-footer .list-anon-badge {
  color: #94a3b8;
  font-size: 11px;
  margin-left: 4px;
}

.support-item .support-item-status {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.support-item .support-item-status.status-open {
  background: #d1fae5;
  color: #065f46;
}

.support-item .support-item-status.status-replied {
  background: #dbeafe;
  color: #1e40af;
}

.support-item .support-item-status.status-closed {
  background: #f1f5f9;
  color: #475569;
}

/* Right Content Pane styles */
.support-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
}

.support-view-state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  width: 100%;
}

.support-view-state.hidden {
  display: none !important;
}

.support-welcome-state {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 40px;
}

.support-welcome-state .empty-illustration {
  text-align: center;
  max-width: 400px;
}

.support-welcome-state .empty-illustration h3 {
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 8px;
}

.support-welcome-state .empty-illustration p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Detail & Form Pane Header */
.support-pane-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.support-pane-header h3 {
  font-size: 16px;
  color: var(--teal-dark);
  margin: 0;
}

.support-pane-header .ticket-header-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.support-pane-header .ticket-header-info .ticket-title-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  min-width: 0;
}

.support-pane-header .ticket-header-info .ticket-title-row h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
}

.support-pane-header .ticket-header-info .ticket-meta-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.support-pane-header .ticket-header-info .ticket-meta-row .divider {
  color: #cbd5e1;
}

.support-pane-header .ticket-header-info .ticket-meta-row .anonymous-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.support-pane-header .ticket-header-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.support-pane-header .ticket-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.support-pane-header .ticket-status-badge.status-open {
  background: #d1fae5;
  color: #065f46;
}

.support-pane-header .ticket-status-badge.status-replied {
  background: #dbeafe;
  color: #1e40af;
}

.support-pane-header .ticket-status-badge.status-closed {
  background: #f1f5f9;
  color: #475569;
}

.support-pane-header .ticket-category-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.support-pane-header .ticket-category-badge.cat-bug {
  background: #fee2e2;
  color: #ef4444;
}

.support-pane-header .ticket-category-badge.cat-suggestion {
  background: #ecfdf5;
  color: #10b981;
}

.support-pane-header .ticket-category-badge.cat-complaint {
  background: #fff7ed;
  color: #f97316;
}

.support-pane-header .ticket-category-badge.cat-conflict {
  background: #faf5ff;
  color: #a855f7;
}

.support-pane-header .ticket-category-badge.cat-general {
  background: #f1f5f9;
  color: #64748b;
}

.support-pane-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Conversation bubble styles */
.support-conversation-flow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

#supportRepliesContainer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}

.support-message-card {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  max-width: 85%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.support-message-card .message-card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 11.5px;
  color: #64748b;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 6px;
}

.support-message-card .message-card-header span {
  margin-left: 5px;
}

.support-message-card .message-card-body {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
  word-break: break-word;
  padding-top: 8px;
}

.support-message-card .message-card-attachments {
  margin-top: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
}

.support-message-card--owner {
  -ms-flex-item-align: end;
      align-self: flex-end;
  background: #f0fdfa;
  border-color: #ccfbf1;
  -webkit-box-shadow: 0 1px 3px rgba(20, 184, 166, 0.05);
          box-shadow: 0 1px 3px rgba(20, 184, 166, 0.05);
}

.support-message-card--owner .message-card-header {
  border-bottom-color: #b2f5ea;
}

.support-message-card--staff {
  -ms-flex-item-align: start;
      align-self: flex-start;
  background: #f8fafc;
  border-color: #e2e8f0;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.support-attachment-chip {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.support-attachment-chip i {
  font-size: 13px;
  color: #64748b;
}

.btn-delete-support-att {
  cursor: pointer;
}

.btn-delete-support-att i {
  color: #b91c1c;
}

/* Reply Area */
.support-reply-area {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
  margin-top: auto;
}

/* Closed Banner */
.support-closed-banner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #475569;
  margin-top: 20px;
}

.support-closed-banner i {
  color: #94a3b8;
}

.support-closed-banner h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #1e293b;
}

.support-closed-banner p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Responsive adjustment */
@media (max-width: 991px) {
  .support-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: auto;
  }
  .support-sidebar {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
    max-width: 100%;
    height: 380px;
  }
  .support-content {
    height: 500px;
  }
}

/* ── NOTIFICATIONS HISTORY PAGE ──────────────────────── */
.page-notifications .sub-tabs {
  margin-bottom: 24px;
}

.page-notifications .data-table {
  width: 100% !important;
}

.page-notifications .data-table th {
  vertical-align: middle;
  padding: 14px 16px;
}

.page-notifications .data-table th:nth-child(1) {
  width: 80px;
  text-align: center;
}

.page-notifications .data-table th:nth-child(2) {
  width: 200px;
}

.page-notifications .data-table th:nth-child(4) {
  width: 180px;
}

.page-notifications .data-table th:nth-child(5) {
  width: 120px;
  text-align: center;
}

.page-notifications .data-table tbody tr {
  -webkit-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}

.page-notifications .data-table tbody tr:hover {
  background-color: var(--bg-hover, #f8fafc) !important;
}

.page-notifications .data-table td {
  vertical-align: middle;
  padding: 14px 16px;
}

.page-notifications .data-table .patient-link {
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  -webkit-transition: color 0.15s ease;
  transition: color 0.15s ease;
}

.page-notifications .data-table .patient-link:hover {
  color: var(--teal-dark, #098e79);
  text-decoration: underline;
}

.page-notifications .data-table .btn-mark-read {
  padding: 4px 10px;
  font-size: 11px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
}

.page-notifications .data-table .badge--done {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
  opacity: 0.75;
}

.page-notifications .data-table .badge--done i {
  font-size: 10px;
}

.page-notifications .data-table .notif-type-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(11, 167, 143, 0.15);
  color: var(--teal);
}

.page-notifications .data-table .notif-type-icon--4 {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.page-notifications .data-table .notif-type-icon--5 {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

body,
html {
  overflow-x: hidden;
}

.main {
  max-width: 100%;
  min-width: 0;
  /* Fixes grid blowout */
  overflow-x: hidden;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  background-color: var(--teal) !important;
  border-color: var(--teal-dark) !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

@media (max-width: 1200px) {
  .kpi-grid {
    -ms-grid-columns: (1fr)[2] !important;
        grid-template-columns: repeat(2, 1fr) !important;
  }
  .kpi-card--blue {
    grid-column: span 2 !important;
  }
  .dashboard-charts-3 {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .eval-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .drive-grid {
    -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
  }
  .reports-grid {
    -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
  }
  .currency-kpi-row {
    -ms-grid-columns: (1fr)[3];
        grid-template-columns: repeat(3, 1fr);
  }
}

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  /* --- Auth Pages --- */
  .page-auth__left {
    display: none;
  }
  .page-auth__right {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 40px 24px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .page-auth .auth-box__header {
    text-align: center;
  }
  .sidebar {
    -webkit-transform: translateX(-100%) !important;
            transform: translateX(-100%) !important;
  }
  .sidebar.active,
  .sidebar.open {
    -webkit-transform: translateX(0) !important;
            transform: translateX(0) !important;
  }
  .main {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }
  .topbar {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    min-height: var(--topbar-h);
    height: auto !important;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .topbar__center {
    display: none !important;
  }
  .topbar__right {
    margin-left: auto !important;
  }
  .topbar__menu {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  .notif-wrapper {
    position: static !important;
  }
  .notif-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    max-width: 360px !important;
    margin-top: 5px !important;
  }
  .kpi-grid {
    -ms-grid-columns: (1fr)[2] !important;
        grid-template-columns: repeat(2, 1fr) !important;
  }
  .kpi-card--blue {
    grid-column: span 2 !important;
  }
  .dashboard-charts {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .dashboard-charts-3 {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .dashboard-charts-3 .chart-card:last-child {
    grid-column: 1 / -1;
  }
  .dashboard-charts-2 {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-bottom {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .dashboard-operations-row {
    -ms-grid-columns: (1fr)[2] !important;
        grid-template-columns: repeat(2, 1fr) !important;
  }
  .eval-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .field-payments-card {
    grid-column: span 2;
  }
  .filter-panel {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    border-radius: 0;
    z-index: 300;
    -webkit-transition: left var(--dur) var(--ease);
    transition: left var(--dur) var(--ease);
    overflow-y: auto;
  }
  .filter-panel.open {
    left: 0;
  }
  .filter-toggle-mobile {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  .patient-detail-layout {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .payment-panel {
    position: static;
  }
  .topbar__currency {
    display: none;
  }
  .drive-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .reports-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .currency-kpi-row {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .modal-form-row {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .page-medical-advisor .dashboard-row {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .page-medical-advisor .dashboard-row .upcoming-card {
    grid-column: 1 / -1;
  }
  .page-medical-advisor .dashboard-top-metrics {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .page-medical-advisor .stats-col {
    -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
  }
  .page-wrapper {
    padding: 16px;
    min-width: 0;
  }
  .page-wrapper .crm-layout {
    display: block;
  }
  /* Responsive Table Min-Widths to force horizontal scrolling on tablet & mobile */
  #dt-agencies {
    min-width: 1000px !important;
  }
  table[id^="dt-dependencies-"] {
    min-width: 800px !important;
  }
  #dtPersonnelCommissions {
    min-width: 1100px !important;
  }
  #dtPersonnelPerformance {
    min-width: 1400px !important;
  }
  #dtAgencyCommissions {
    min-width: 1100px !important;
  }
  #dtAgencyPerformance {
    min-width: 1100px !important;
  }
  #dtAnnualLeaveRecords {
    min-width: 1200px !important;
  }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 260px;
  }
  .sidebar {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  .sidebar.active,
  .sidebar.open {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  .sidebar__close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .topbar {
    left: 0;
  }
  .topbar__menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .topbar__name {
    display: none;
  }
  .topbar__title {
    display: none;
  }
  .topbar__left {
    gap: 8px !important;
  }
  .topbar__search {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    padding: 8px 14px !important;
    gap: 8px !important;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    max-width: 180px;
  }
  .topbar__search input {
    width: 100% !important;
    font-size: 13px !important;
  }
  .topbar__search i {
    font-size: 13px !important;
  }
  .topbar__icon-btn:not(.notif-btn) {
    display: none;
  }
  .notif-btn .badge {
    right: -2px;
  }
  .main {
    margin-left: 0;
  }
  .page-wrapper {
    padding: 16px;
    min-width: 0;
  }
  .page-wrapper .crm-layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .kpi-grid {
    -ms-grid-columns: (1fr)[2] !important;
        grid-template-columns: repeat(2, 1fr) !important;
  }
  .kpi-card--blue {
    grid-column: span 2;
  }
  .dashboard-charts {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .dashboard-charts-3 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .dashboard-charts-2 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .dashboard-bottom {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .dashboard-operations-row {
    -ms-grid-columns: 1fr !important;
        grid-template-columns: 1fr !important;
  }
  .chart-area--tall {
    height: 200px;
  }
  .chart-area--md {
    height: 180px;
  }
  .field-payments-card {
    -ms-grid-column: 1;
    grid-column: 1;
  }
  .page-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .page-header__right {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-header__right::-webkit-scrollbar {
    display: none;
  }
  .page-header__right > * {
    -ms-flex-negative: 0 !important;
        flex-shrink: 0 !important;
  }
  .sub-tabs {
    padding: 4px;
  }
  .sub-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  .table-toolbar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  .dt-top {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  .dt-toolbar-center {
    -webkit-box-pack: stretch;
        -ms-flex-pack: stretch;
            justify-content: stretch;
  }
  .dataTables_filter input {
    width: 100% !important;
  }
  .dataTables_filter label {
    width: 100% !important;
  }
  .dt-bottom {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .dataTables_paginate {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .form-grid--2,
  .form-grid--3,
  .form-grid--4 {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form-group--span2 {
    -ms-grid-column: 1;
    grid-column: 1;
  }
  .fab {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .agents-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .patient-card {
    position: static;
  }
  .drive-grid {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .reports-grid {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .currency-kpi-row {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .nr-counter-row {
    gap: 6px;
  }
  .progress-bar-wrap {
    width: 90px;
  }
  .upcoming-tabs {
    gap: 2px;
  }
  .page-medical-advisor .dashboard-row {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .page-medical-advisor .dashboard-top-metrics {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .page-medical-advisor .stats-col {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  /* --- Auth Pages --- */
  .page-auth__right {
    padding: 30px 20px;
  }
  .kpi-grid {
    -ms-grid-columns: 1fr !important;
        grid-template-columns: 1fr !important;
  }
  .kpi-card--blue {
    grid-column: span 1 !important;
  }
  .page-header__left h2 {
    font-size: 18px !important;
  }
  .upcoming-tabs {
    gap: 2px;
  }
  .upcoming-tab {
    padding: 4px 8px;
    font-size: 11px;
  }
  .agents-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .ranking-tabs {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .drive-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .reports-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .currency-kpi-row {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}
/*# sourceMappingURL=style.css.map */