/* ==================== MODALS & TOAST ==================== */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(2px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100000 !important;
      padding: 16px;
    }

    .modal-backdrop.open {
      display: flex;
    }

    .modal-card {
      background: #ffffff;
      border-radius: 8px;
      width: 100%;
      max-width: 540px;
      padding: 20px 24px;
      border: 1px solid var(--border);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .modal-header h3 {
      font-size: 15px;
      font-weight: 600;
    }

    .form-row {
      margin-bottom: 12px;
    }

    .form-row label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 4px;
    }

    .form-row input,
    .form-row textarea {
      width: 100%;
      padding: 7px 10px;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 12.5px;
      font-family: inherit;
      outline: none;
    }

    .form-row input:focus {
      border-color: var(--text-primary);
    }

    .toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 20000000 !important; /* Luôn nổi trên cùng, đè lên tất cả modal (z-index 100,000) */
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
      max-width: min(92vw, 560px);
    }

    .toast {
      pointer-events: auto;
      background: #0f172a;
      color: #ffffff;
      padding: 12px 18px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.5;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: pre-line;
      animation: toastSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      transition: opacity 0.25s ease, transform 0.25s ease;
      cursor: pointer;
    }

    @keyframes toastSlideIn {
      from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .toast.success {
      background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
      color: #ffffff !important;
      border: 1.5px solid #34d399 !important;
      box-shadow: 0 16px 36px rgba(6, 95, 70, 0.55), 0 0 0 1px rgba(52, 211, 153, 0.4) !important;
    }
    .toast.success span {
      color: #ffffff !important;
      font-weight: 700 !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }

    .toast.error {
      background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%) !important;
      color: #ffffff !important;
      border: 1.5px solid #f87171 !important;
      box-shadow: 0 16px 36px rgba(153, 27, 27, 0.55) !important;
    }
    .toast.error span {
      color: #ffffff !important;
      font-weight: 700 !important;
    }

    .toast.warning,
    .toast.warn {
      background: linear-gradient(135deg, #92400e 0%, #b45309 100%) !important;
      color: #ffffff !important;
      border: 1.5px solid #fbbf24 !important;
      box-shadow: 0 16px 36px rgba(146, 64, 14, 0.55) !important;
    }
    .toast.warning span,
    .toast.warn span {
      color: #ffffff !important;
      font-weight: 700 !important;
    }

    .toast.info {
      background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
      color: #ffffff !important;
      border: 1.5px solid #60a5fa !important;
      box-shadow: 0 16px 36px rgba(30, 64, 175, 0.55) !important;
    }
    .toast.info span {
      color: #ffffff !important;
      font-weight: 700 !important;
    }

    /* ==================== RBAC MANAGEMENT SECTION STYLES ==================== */
    .rbac-section-wrapper {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px 20px 48px 20px;
      background: #f8fafc;
    }

    .rbac-container {
      max-width: 1560px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .rbac-header-banner {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      flex-wrap: wrap;
    }

    .rbac-banner-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .rbac-banner-icon {
      font-size: 24px;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: #eff6ff;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #bfdbfe;
      flex-shrink: 0;
    }

    .rbac-banner-title {
      font-size: 15.5px;
      font-weight: 700;
      color: #0f172a;
      margin: 0 0 2px 0;
    }

    .rbac-banner-desc {
      font-size: 12px;
      color: #64748b;
      margin: 0;
    }

    .rbac-banner-stats {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .rbac-stat-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
    }

    .rbac-stat-label {
      color: #64748b;
      font-weight: 500;
    }

    .rbac-stat-num {
      color: #0f172a;
      font-weight: 800;
    }

    .rbac-layout {
      display: grid;
      grid-template-columns: 380px minmax(0, 1fr);
      gap: 16px;
      align-items: start;
      width: 100%;
    }

    @media (max-width: 1180px) {
      .rbac-layout {
        grid-template-columns: 1fr;
      }
    }

    .rbac-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .rbac-card-header {
      padding: 12px 18px;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: #ffffff;
      flex-wrap: wrap;
    }

    .rbac-card-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .rbac-card-icon {
      font-size: 15px;
    }

    .rbac-card-title {
      font-size: 14px;
      font-weight: 700;
      color: #0f172a;
      margin: 0;
    }

    .rbac-card-hint {
      font-size: 11px;
      color: #64748b;
    }

    .rbac-card-body {
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

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

    .sp-picker-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }

    .sp-picker-tools {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
    }

    .product-picker-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 6px;
      max-height: 250px;
      overflow-y: auto;
      padding: 8px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
    }

    .product-check-item {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      padding: 6px 8px;
      border-radius: 5px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      cursor: pointer;
      user-select: none;
      font-size: 11.5px;
      transition: all 0.12s ease;
    }

    .product-check-item:hover {
      border-color: #93c5fd;
      background: #eff6ff;
    }

    .product-check-item.checked {
      border-color: #3b82f6;
      background: #eff6ff;
    }

    .rbac-table-scroll {
      width: 100%;
      overflow-x: auto;
      background: #ffffff;
    }

    table.rbac-accounts-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: auto;
      font-size: 12.5px;
    }

    table.rbac-accounts-table thead th {
      background: #f8fafc;
      color: #475569;
      font-weight: 700;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 10px 14px;
      border-bottom: 1px solid #e2e8f0;
      white-space: nowrap;
    }

    table.rbac-accounts-table tbody td {
      padding: 10px 14px;
      vertical-align: middle;
      border-bottom: 1px solid #f1f5f9;
      color: #1e293b;
    }

    table.rbac-accounts-table tbody tr:last-child td {
      border-bottom: none;
    }

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

    .role-badge {
      display: inline-block;
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.2px;
    }

    .role-badge.admin {
      background: #0f172a;
      color: #ffffff;
    }

    .role-badge.user {
      background: #eff6ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
    }

    .sp-tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      max-height: 115px;
      overflow-y: auto;
      padding: 2px 0;
    }

    .sp-tag-chip {
      display: inline-flex;
      align-items: center;
      background: #eff6ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
    }

    .rbac-action-btn-group {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      justify-content: center;
    }

    /* ==================== ADMIN PORTAL SUBTABS STYLING ==================== */
    .admin-subtabs-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 6px 8px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      flex-wrap: wrap;
    }
    .admin-subtab-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 600;
      color: #64748b;
      background: transparent;
      border: 1.5px solid transparent;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.18s ease;
    }
    .admin-subtab-btn:hover {
      color: #0f172a;
      background: #f8fafc;
    }
    .admin-subtab-btn.active {
      color: #1d4ed8;
      background: #eff6ff;
      border-color: #bfdbfe;
      font-weight: 700;
      box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
    }
    .admin-subtab-btn .subtab-count {
      background: #e2e8f0;
      color: #475569;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 999px;
    }
    .admin-subtab-btn.active .subtab-count {
      background: #2563eb;
      color: #ffffff;
    }
    .admin-subtab-panel {
      display: none;
    }
    .product-matrix-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 12.5px;
    }
    .product-matrix-table th {
      background: #f8fafc;
      color: #475569;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 10px 14px;
      border-bottom: 1.5px solid #e2e8f0;
      position: sticky;
      top: 0;
      z-index: 5;
    }
    .product-matrix-table td {
      padding: 11px 14px;
      border-bottom: 1px solid #f1f5f9;
      color: #1e293b;
      vertical-align: middle;
    }
    .product-matrix-table tr:hover td {
      background: #f8fafc;
    }
    .admin-settings-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 20px 24px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      margin-bottom: 16px;
    }
    .admin-settings-card-title {
      font-size: 15px;
      font-weight: 700;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }
    .admin-settings-card-desc {
      font-size: 12px;
      color: #64748b;
      margin-bottom: 16px;
    }

    /* ==================== ADMIN MASTER DASHBOARD STYLES ==================== */
    .adm-time-pill {
      height: 28px;
      padding: 0 10px;
      border-radius: 6px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      color: #475569;
      font-size: 11.5px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.12s;
      white-space: nowrap;
    }
    .adm-time-pill:hover {
      background: #f1f5f9;
      color: #0f172a;
    }
    .adm-time-pill.active {
      background: #4f46e5;
      color: #ffffff;
      border-color: #4338ca;
      box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25);
    }
    .adm-comp-pill {
      height: 26px;
      padding: 0 9px;
      border-radius: 5px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      color: #475569;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.12s;
      white-space: nowrap;
    }
    .adm-comp-pill:hover {
      background: #f1f5f9;
      color: #0f172a;
    }
    .adm-comp-pill.active {
      background: #0f172a;
      color: #ffffff;
      border-color: #0f172a;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    }
    #adminDashKpiGrid {
      display: grid;
      grid-template-columns: repeat(5, minmax(180px, 1fr));
      gap: 12px;
    }
    @media (max-width: 1280px) {
      #adminDashKpiGrid {
        grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
      }
    }
    @media (max-width: 768px) {
      #adminDashKpiGrid {
        grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
      }
    }
    @media (max-width: 480px) {
      #adminDashKpiGrid {
        grid-template-columns: 1fr !important;
      }
    }
    .adm-subtab-btn {
      height: 34px;
      padding: 0 14px;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      background: #ffffff;
      color: #64748b;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.12s;
    }
    .adm-subtab-btn:hover {
      background: #f8fafc;
      color: #0f172a;
    }
    .adm-subtab-btn.active {
      background: #4f46e5;
      color: #ffffff;
      border-color: #4338ca;
      box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
    }
    .adm-kho-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: transform 0.12s, box-shadow 0.12s;
    }
    .adm-kho-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }

    /* ==================== ADMIN EXECUTIVE BI CHARTS & COMPARE STUDIO ==================== */
    .adm-charts-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 1300px) {
      .adm-charts-grid {
        grid-template-columns: 1fr 1fr;
      }
      .adm-charts-grid > div:first-child {
        grid-column: span 2;
      }
    }
    @media (max-width: 860px) {
      .adm-charts-grid {
        grid-template-columns: 1fr;
      }
      .adm-charts-grid > div:first-child {
        grid-column: span 1;
      }
    }
    .adm-chart-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px 18px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 320px;
    }
    .adm-chart-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
    .adm-chart-title {
      font-size: 13.5px;
      font-weight: 800;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .adm-chart-btn-group {
      display: inline-flex;
      background: #f1f5f9;
      padding: 2px;
      border-radius: 6px;
      border: 1px solid #e2e8f0;
      gap: 2px;
    }
    .adm-chart-btn {
      height: 24px;
      padding: 0 8px;
      font-size: 11px;
      font-weight: 700;
      border-radius: 4px;
      border: none;
      background: transparent;
      color: #64748b;
      cursor: pointer;
      transition: all 0.12s;
    }
    .adm-chart-btn:hover {
      color: #0f172a;
    }
    .adm-chart-btn.active {
      background: #ffffff;
      color: #4f46e5;
      font-weight: 800;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    .adm-compare-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }
    @media (max-width: 1024px) {
      .adm-compare-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 600px) {
      .adm-compare-grid {
        grid-template-columns: 1fr;
      }
    }
    .adm-compare-kpi-card {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 16px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .adm-compare-kpi-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11.5px;
      font-weight: 700;
      color: #64748b;
    }
    .adm-compare-vs-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .adm-compare-val-col {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
    }
    .adm-compare-val-col.right {
      text-align: right;
    }
    .adm-compare-val-label {
      font-size: 10.5px;
      font-weight: 700;
      color: #64748b;
    }
    .adm-compare-val-num {
      font-size: 15px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.02em;
    }
    .adm-compare-delta-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 800;
    }
    .adm-compare-delta-badge.pos {
      background: #dcfce7;
      color: #15803d;
      border: 1px solid #bbf7d0;
    }
    .adm-compare-delta-badge.neg {
      background: #fee2e2;
      color: #b91c1c;
      border: 1px solid #fecaca;
    }
    .adm-compare-delta-badge.neu {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid #cbd5e1;
    }
    .adm-vs-badge {
      font-size: 10px;
      font-weight: 900;
      background: #f1f5f9;
      color: #64748b;
      padding: 3px 6px;
      border-radius: 4px;
      border: 1px solid #e2e8f0;
      letter-spacing: 0.05em;
    }
    .adm-kho-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }

    /* ==================== APP TOTALS DASHBOARD STYLES ==================== */
    .apptotals-section-wrapper {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px 20px 48px 20px;
      background: #f8fafc;
    }

    .apptotals-container {
      max-width: 1560px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .apptotals-header-banner {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      flex-wrap: wrap;
    }

    .apptotals-title-group {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .apptotals-icon {
      font-size: 26px;
      line-height: 1;
    }

    .apptotals-title {
      font-size: 16px;
      font-weight: 700;
      color: #0f172a;
      margin: 0 0 2px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .apptotals-desc {
      font-size: 12px;
      color: #64748b;
      margin: 0;
    }

    .apptotals-toolbar {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .apptotals-toolbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      flex: 1;
    }

    .apptotals-toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .apptotals-kpi-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }

    @media (max-width: 1300px) {
      .apptotals-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    @media (max-width: 850px) {
      .apptotals-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 600px) {
      .apptotals-kpi-grid {
        grid-template-columns: 1fr;
      }
    }

    .apptotals-table-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      overflow: hidden;
    }

    .apptotals-table-scroll {
      width: 100%;
      overflow-x: auto;
    }

    table.apptotals-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: auto;
      font-size: 12.5px;
    }

    table.apptotals-table thead th {
      background: #f8fafc;
      color: #475569;
      font-weight: 700;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 10px 12px;
      border-bottom: 1px solid #e2e8f0;
      white-space: nowrap;
      text-align: right;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    table.apptotals-table thead th.text-left {
      text-align: left;
    }

    table.apptotals-table thead th.text-center {
      text-align: center;
    }

    table.apptotals-table tbody td {
      padding: 10px 12px;
      vertical-align: middle;
      border-bottom: 1px solid #f1f5f9;
      color: #1e293b;
      text-align: right;
      white-space: nowrap;
    }

    table.apptotals-table tbody td.text-left {
      text-align: left;
    }

    table.apptotals-table tbody td.text-center {
      text-align: center;
    }

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

    table.apptotals-table tfoot td {
      background: #f1f5f9;
      font-weight: 700;
      color: #0f172a;
      padding: 10px 12px;
      border-top: 2px solid #cbd5e1;
      text-align: right;
    }

    table.apptotals-table tfoot td.text-left {
      text-align: left;
    }

    .apptotals-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 14px;
    }

    .app-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 14px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 12px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .app-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
      border-color: #cbd5e1;
    }

    .app-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .app-card-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .app-badge-code {
      display: inline-flex;
      align-items: center;
      background: #0f172a;
      color: #ffffff;
      font-weight: 800;
      font-size: 12px;
      padding: 3px 8px;
      border-radius: 5px;
      letter-spacing: 0.5px;
    }

    .app-title-text {
      font-weight: 700;
      font-size: 13.5px;
      color: #0f172a;
      line-height: 1.3;
      max-width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .app-card-sub {
      font-size: 11px;
      color: #64748b;
      margin-top: 2px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .app-card-kpi-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      background: #f8fafc;
      padding: 8px;
      border-radius: 6px;
      border: 1px solid #edf2f7;
    }

    .app-card-kpi-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .app-card-kpi-lbl {
      font-size: 10px;
      color: #64748b;
      font-weight: 600;
      text-transform: uppercase;
    }

    .app-card-kpi-val {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
    }

    .channel-progress-bar {
      display: flex;
      height: 6px;
      border-radius: 3px;
      overflow: hidden;
      background: #e2e8f0;
      gap: 1px;
    }

    .channel-seg-fb { background: #1877f2; }
    .channel-seg-gg { background: #ea4335; }
    .channel-seg-tt { background: #000000; }
    .channel-seg-other { background: #8b5cf6; }

    .roas-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
    }

    .roas-chip.profit { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
    .roas-chip.breakeven { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
    .roas-chip.optimizing { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
    .roas-chip.loss { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

    /* ==================== CLEAN LIST TABLE (LOGS & RBAC) ==================== */
    table.clean-list-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }

    table.clean-list-table thead th {
      background: #f8fafc;
      color: var(--text-muted);
      font-weight: 600;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      text-align: left;
      white-space: nowrap;
    }

    table.clean-list-table tbody tr {
      border-bottom: 1px solid #f1f5f9;
      transition: background-color 0.08s;
    }

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

    table.clean-list-table tbody tr:hover {
      background-color: #f8fafc;
    }

    table.clean-list-table tbody td {
      padding: 10px 14px;
      vertical-align: middle;
      color: var(--text-primary);
      font-size: 12.5px;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* ==================== STAGED / PENDING CHANGES WORKFLOW ==================== */
    table.ads-tree-table tbody tr.row-campaign.has-pending {
      background-color: #fffbeb;
    }

    table.ads-tree-table tbody tr.row-campaign.has-pending:hover {
      background-color: #fef3c7;
    }

    table.ads-tree-table tbody tr.row-campaign.has-pending td:first-child {
      box-shadow: inset 3px 0 0 #d97706;
    }

    .pending-inline-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 10.5px;
      font-weight: 600;
      background: #fef3c7;
      color: #b45309;
      border: 1px solid #fcd34d;
      flex-shrink: 0;
    }

    .pending-revert-btn {
      border: none;
      background: transparent;
      color: #b45309;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      padding: 0 3px;
      line-height: 1;
      border-radius: 3px;
    }

    .pending-revert-btn:hover {
      background: #fde68a;
      color: #78350f;
    }

    .pending-review-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #0f172a;
      color: #ffffff;
      padding: 10px 24px;
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      z-index: 99995;
      box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.2);
      border-top: 1px solid #334155;
    }

    .pending-review-bar.visible {
      display: flex;
    }

    .pending-bar-left {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      font-size: 12.5px;
    }

    .pending-count-pill {
      background: #f59e0b;
      color: #0f172a;
      font-weight: 700;
      font-size: 12px;
      padding: 3px 9px;
      border-radius: 4px;
    }

    .pending-bar-stat {
      color: #cbd5e1;
      font-size: 12px;
    }

    .pending-bar-stat strong {
      color: #ffffff;
      font-weight: 600;
    }

    .btn-amber {
      background: #f59e0b;
      color: #0f172a;
      border-color: #f59e0b;
      font-weight: 700;
    }

    .btn-amber:hover {
      background: #fbbf24;
      border-color: #fbbf24;
    }

    .btn-dark-outline {
      background: transparent;
      color: #e2e8f0;
      border: 1px solid #475569;
    }

    .btn-dark-outline:hover {
      background: #1e293b;
      border-color: #64748b;
      color: #ffffff;
    }

    

/* ==================== GOOGLE ADMOB NETWORK REPORT CLONE ==================== */
    .admob-section-wrapper {
      display: flex;
      flex-direction: column;
      gap: 14px;
      background: #f8f9fa;
      min-height: calc(100vh - 120px);
      padding: 16px 20px 60px 20px;
      font-family: Roboto, 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
      color: #202124;
      overflow-y: auto;
    }

    .admob-top-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      padding: 12px 18px;
      box-shadow: 0 1px 2px rgba(60,64,67,0.06);
      flex-wrap: wrap;
      gap: 12px;
    }

    .admob-title-area {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .admob-logo-box {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: linear-gradient(135deg, #1a73e8 0%, #0f9d58 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      font-size: 18px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.12);
      flex-shrink: 0;
    }

    .admob-title-text {
      font-size: 18px;
      font-weight: 500;
      color: #202124;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .admob-btn-icon {
      background: transparent;
      border: none;
      cursor: pointer;
      color: #5f6368;
      padding: 4px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }
    .admob-btn-icon:hover {
      background: #f1f3f4;
      color: #202124;
    }

    .admob-app-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #f8f9fa;
      padding: 4px 10px;
      border-radius: 16px;
      font-size: 12px;
      color: #3c4043;
      font-weight: 500;
      border: 1px solid #dadce0;
    }

    .admob-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .admob-date-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #ffffff;
      border: 1px solid #dadce0;
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 12.5px;
      color: #3c4043;
      cursor: pointer;
      transition: all 0.15s;
    }
    .admob-date-pill:hover {
      border-color: #1a73e8;
      background: #f8fafd;
    }

    .admob-date-dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      width: 290px;
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      box-shadow: 0 4px 18px rgba(60,64,67,0.2);
      z-index: 100050;
      overflow: hidden;
    }

    .admob-date-dropdown-header {
      padding: 9px 14px 6px 14px;
      font-size: 11px;
      font-weight: 700;
      color: #5f6368;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid #f1f3f4;
      background: #fafafa;
    }

    .admob-date-option-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 14px;
      font-size: 12.5px;
      color: #202124;
      cursor: pointer;
      transition: background 0.12s;
    }
    .admob-date-option-item:hover {
      background: #f1f3f4;
    }
    .admob-date-option-item.active {
      background: #e8f0fe;
      color: #1a73e8;
      font-weight: 600;
    }

    /* Google AdMob Mediation Top Bar (Image 3) */
    .admob-mediation-topbar {
      background: #1a73e8;
      color: #ffffff;
      height: 48px;
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 8px 8px 0 0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    }
    .admob-topbar-close-btn {
      background: transparent;
      border: none;
      color: #ffffff;
      font-size: 16px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      line-height: 1;
      transition: background 0.15s;
    }
    .admob-topbar-close-btn:hover {
      background: rgba(255,255,255,0.2);
    }
    .admob-topbar-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .admob-topbar-action-btn {
      background: transparent;
      border: none;
      color: #ffffff;
      font-size: 14px;
      padding: 6px;
      border-radius: 4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }
    .admob-topbar-action-btn:hover {
      background: rgba(255,255,255,0.2);
    }

    /* Google AdMob Filter Pills Bar (Image 3) */
    .admob-filter-pills-bar {
      background: #ffffff;
      border: 1px solid #dadce0;
      border-top: none;
      padding: 10px 16px 14px 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      flex-wrap: nowrap;
      min-height: 56px;
      box-sizing: border-box;
      box-shadow: 0 1px 2px rgba(60,64,67,0.04);
    }
    .admob-filter-pills-bar::-webkit-scrollbar {
      height: 4px;
    }
    .admob-filter-pills-bar::-webkit-scrollbar-track {
      background: #f1f3f4;
      border-radius: 4px;
    }
    .admob-filter-pills-bar::-webkit-scrollbar-thumb {
      background: #dadce0;
      border-radius: 4px;
    }
    .admob-filter-pills-bar::-webkit-scrollbar-thumb:hover {
      background: #bdc1c6;
    }
    .admob-filter-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      height: 32px;
      box-sizing: border-box;
      border-radius: 16px;
      font-size: 12.5px;
      font-weight: 500;
      color: #5f6368;
      background: #ffffff;
      border: 1px solid #dadce0;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.15s;
      user-select: none;
      flex-shrink: 0;
    }
    .admob-filter-pill:hover {
      background: #f8f9fa;
      border-color: #bdc1c6;
      color: #202124;
    }
    .admob-filter-pill.active {
      background: #e8f0fe;
      border-color: #d2e3fc;
      color: #1a73e8;
      font-weight: 600;
    }

    /* 3 Dashboards Grid (Image 3) */
    .admob-charts-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin: 2px 0 4px 0;
    }
    @media (max-width: 1024px) {
      .admob-charts-row {
        grid-template-columns: 1fr;
      }
    }
    .admob-chart-box {
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      padding: 16px 20px 14px 20px;
      box-shadow: 0 1px 2px rgba(60,64,67,0.06);
      display: flex;
      flex-direction: column;
      position: relative;
      min-height: 290px;
    }
    .admob-chart-header {
      margin-bottom: 2px;
    }
    .admob-chart-title {
      font-size: 14px;
      font-weight: 500;
      color: #202124;
      line-height: 1.2;
    }
    .admob-chart-select-btn {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      background: transparent;
      border: none;
      padding: 0;
      margin-top: 4px;
      font-size: 13px;
      font-weight: 400;
      color: #5f6368;
      cursor: pointer;
      outline: none;
      transition: color 0.15s;
    }
    .admob-chart-select-btn:hover {
      color: #202124;
    }
    .admob-chart-canvas-wrap {
      position: relative;
      height: 155px;
      width: 100%;
      margin: 8px 0 10px 0;
    }
    .admob-chart-legend {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 12px;
      color: #202124;
      padding-top: 8px;
      border-top: 1px solid #f1f3f4;
      margin-top: auto;
    }
    .admob-legend-line {
      display: flex;
      align-items: center;
      gap: 7px;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .admob-legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
      flex-shrink: 0;
    }
    .admob-legend-name {
      color: #202124;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 250px;
    }
    .admob-legend-val {
      font-weight: 500;
      color: #202124;
      margin-left: 2px;
    }

    /* Compare & Sort Popover Menu (Image 1 & 2) */
    .admob-popover-menu {
      position: fixed;
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(60,64,67,0.22);
      width: 240px;
      z-index: 100060;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .admob-popover-section-title {
      font-size: 11px;
      font-weight: 700;
      color: #5f6368;
      padding: 10px 14px 6px 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background: #fafafa;
      border-bottom: 1px solid #f1f3f4;
    }
    .admob-popover-scroll {
      max-height: 250px;
      overflow-y: auto;
    }
    .admob-popover-item {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      font-size: 13px;
      color: #202124;
      cursor: pointer;
      transition: background 0.12s;
    }
    .admob-popover-item:hover {
      background: #f1f3f4;
    }
    .admob-popover-item.active {
      background: #e8f0fe;
      color: #1a73e8;
      font-weight: 600;
    }
    .admob-popover-check {
      width: 16px;
      display: inline-block;
      font-weight: bold;
      color: #1a73e8;
      font-size: 13px;
    }
    .admob-sortby-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 2px solid #1a73e8;
      border-radius: 4px;
      padding: 6px 10px;
      font-size: 12.5px;
      font-weight: 500;
      color: #202124;
      cursor: pointer;
      background: #ffffff;
    }
    .admob-sortby-dropdown {
      margin-top: 4px;
      border: 1px solid #dadce0;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(60,64,67,0.15);
      background: #ffffff;
      overflow: hidden;
    }
    .admob-sortby-option {
      padding: 8px 12px;
      font-size: 12.5px;
      color: #202124;
      cursor: pointer;
      transition: background 0.12s;
    }
    .admob-sortby-option:hover {
      background: #f1f3f4;
    }
    .admob-sortby-option.active {
      background: #e8f0fe;
      color: #1a73e8;
      font-weight: 600;
      border-left: 3px solid #1a73e8;
    }

    /* UA Presets & Quick Copy Bar */
    .admob-ua-bar {
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      box-shadow: 0 1px 2px rgba(60,64,67,0.04);
    }

    .admob-ua-presets {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .admob-ua-chip {
      padding: 4px 12px;
      border-radius: 16px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      border: 1px solid #dadce0;
      background: #ffffff;
      color: #3c4043;
      transition: all 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      user-select: none;
    }
    .admob-ua-chip:hover {
      background: #f1f3f4;
      border-color: #bdc1c6;
    }
    .admob-ua-chip.active {
      background: #e8f0fe;
      color: #1a73e8;
      border-color: #1a73e8;
      font-weight: 600;
    }

    .admob-ua-copiers {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .admob-btn-copy {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 600;
      border-radius: 6px;
      border: 1px solid #c7d2fe;
      background: #eef2ff;
      color: #3730a3;
      cursor: pointer;
      transition: all 0.15s;
    }
    .admob-btn-copy:hover {
      background: #e0e7ff;
      border-color: #818cf8;
    }

    /* Main Split Layout: Table Left + Drawer Right */
    .admob-main-layout {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      position: relative;
    }

    .admob-table-card {
      flex: 1;
      min-width: 0;
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 1px 2px rgba(60,64,67,0.06);
    }

    .admob-table-search-bar {
      padding: 8px 14px;
      border-bottom: 1px solid #dadce0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: #fafafa;
    }

    .admob-table-search-wrap {
      position: relative;
      flex: 1;
      max-width: 380px;
    }
    .admob-table-search-wrap input {
      width: 100%;
      padding: 6px 28px 6px 10px;
      border: 1px solid #dadce0;
      border-radius: 4px;
      font-size: 12.5px;
      outline: none;
      background: #ffffff;
    }
    .admob-table-search-wrap input:focus {
      border-color: #1a73e8;
    }

    .admob-table-scroll {
      overflow-x: auto;
      overflow-y: auto;
      max-height: calc(100vh - 280px);
      min-height: 420px;
    }

    /* Table Elements */
    .admob-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 13px;
      color: #202124;
    }

    .admob-table thead th {
      background: #ffffff;
      position: sticky;
      top: 0;
      z-index: 20;
      padding: 10px 14px;
      font-weight: 500;
      font-size: 12px;
      color: #3c4043;
      white-space: nowrap;
      border-bottom: 1px solid #dadce0;
      user-select: none;
    }

    /* Header Top Bars (Google AdMob Signature) */
    .admob-table thead th.admob-th-dim {
      border-top: 3.5px solid #0f9d58;
      text-align: left;
    }

    .admob-table thead th.admob-th-metric {
      border-top: 3.5px solid #1a73e8;
      text-align: right;
    }

    .admob-th-content {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
    }

    .admob-help-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      border: 1px solid #9aa0a6;
      color: #5f6368;
      font-size: 9.5px;
      font-weight: 700;
      cursor: help;
    }

    .admob-table tbody tr {
      transition: background 0.1s;
    }
    .admob-table tbody tr:hover {
      background: #f8f9fa;
    }

    .admob-table td {
      padding: 9px 14px;
      border-bottom: 1px solid #f1f3f4;
      white-space: nowrap;
      font-size: 13px;
    }

    .admob-td-dim {
      text-align: left;
    }

    .admob-td-metric {
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-family: Roboto, -apple-system, sans-serif;
    }

    /* Summary Row (Image 2 Match) */
    .admob-summary-tr {
      background: #f8f9fa !important;
      font-weight: 600 !important;
    }

    .admob-summary-tr td {
      border-top: 2px solid #dadce0 !important;
      border-bottom: 2px solid #dadce0 !important;
      font-weight: 600 !important;
      color: #202124 !important;
      background: #f8f9fa !important;
    }

    /* Pagination Bar */
    .admob-pagination-bar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 18px;
      padding: 8px 16px;
      background: #ffffff;
      border-top: 1px solid #dadce0;
      font-size: 12px;
      color: #5f6368;
      flex-wrap: wrap;
    }

    .admob-pagination-nav {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .admob-page-btn {
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 5px 8px;
      border-radius: 4px;
      color: #5f6368;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      transition: background 0.15s;
    }
    .admob-page-btn:hover:not(:disabled) {
      background: #f1f3f4;
      color: #202124;
    }
    .admob-page-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    /* Inspector Drawer (Right Side) */
    .admob-inspector-drawer {
      width: 250px;
      flex-shrink: 0;
      background: #ffffff;
      border: 1px solid #dadce0;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 1px 2px rgba(60,64,67,0.06);
      display: flex;
      flex-direction: column;
    }

    .admob-inspector-search {
      padding: 8px 12px;
      border-bottom: 1px solid #dadce0;
      position: relative;
    }

    .admob-inspector-search input {
      width: 100%;
      padding: 6px 26px 6px 8px;
      border: 1px solid #dadce0;
      border-radius: 4px;
      font-size: 12.5px;
      outline: none;
    }
    .admob-inspector-search input:focus {
      border-color: #1a73e8;
    }

    .admob-inspector-content {
      overflow-y: auto;
      max-height: calc(100vh - 300px);
      padding: 6px 0;
    }

    .admob-group-title {
      padding: 8px 14px 4px 14px;
      font-size: 12.5px;
      font-weight: 500;
      color: #202124;
      text-transform: capitalize;
    }

    .admob-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 7px 14px 7px 12px;
      font-size: 12.5px;
      color: #3c4043;
      cursor: pointer;
      user-select: none;
      border-left: 3.5px solid transparent;
      transition: all 0.12s;
    }
    .admob-item-row:hover {
      background: #f8f9fa;
    }

    /* Dimension Active (Green) */
    .admob-item-row.dim-active {
      border-left-color: #0f9d58;
      background: #e6f4ea;
      color: #137333;
      font-weight: 500;
    }

    /* Metric Active (Blue) */
    .admob-item-row.metric-active {
      border-left-color: #1a73e8;
      background: #e8f0fe;
      color: #1967d2;
      font-weight: 500;
    }

    .admob-app-avatar {
      width: 26px;
      height: 26px;
      border-radius: 6px;
      background: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 12px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.15);
      flex-shrink: 0;
    }

    @media (max-width: 1024px) {
      .admob-main-layout {
        flex-direction: column;
      }
      .admob-inspector-drawer {
        width: 100%;
      }
    }
  