body {
  background-color: var(--ga-bg);
  font-family: var(--ga-font-family);
  color: var(--ga-text);
  font-size: 13px;
}

/* Columns Modal Buttons - Beautiful Styling */
.columns-btn-cancel {
  background: white !important;
  color: #1a73e8 !important;
  border: 1px solid #dadce0 !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.columns-btn-cancel:hover {
  background: #f8f9fa !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.columns-btn-apply {
  background: #1a73e8 !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.2) !important;
}

.columns-btn-apply:hover {
  background: #1557b0 !important;
  box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3) !important;
}

.columns-footer-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-left: auto !important;
}
.ga-metric-action-btn 
.ga-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 992px) {
  .ga-container {
    padding-top: 80px;
  }
}

/* --- Top Nav Bar 1 --- */
.ga-nav-1 {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  gap: 12px;
  height: 56px;
  position: relative;
  z-index: 100;
}

.ga-nav-dropdown-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  cursor: pointer;
  background: var(--ga-surface);
  min-width: 180px;
  height: 36px;
  position: relative;
  user-select: none;
}
.ga-nav-dropdown-trigger:hover {
  background-color: var(--ga-surface-hover);
}
.ga-nav-dropdown-trigger.active {
  border-color: var(--ga-blue);
  background-color: var(--ga-focus);
}

.ga-nav-label {
  font-size: 10px;
  color: var(--ga-text-muted);
  margin-bottom: 0;
  line-height: 1;
  margin-top: 4px;
}
.ga-nav-value {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--ga-text);
  line-height: 1.2;
}

/* --- Dropdown Menus --- */
.ga-dropdown-menu {
  position: fixed !important;
  top: auto;
  left: auto;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow:
    0 2px 6px 2px var(--ga-shadow),
    0 1px 2px 0 var(--ga-shadow);
  z-index: 10053 !important;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  cursor: default;
}
.ga-dropdown-menu.show {
  display: flex !important;
  z-index: 10053 !important;
}

/* Select View Dropdown Specifics */
#dropdown-view {
  width: 320px;
  left: 16px;
  z-index: 10053 !important;
  position: fixed !important;
}
#dropdown-view.show {
  z-index: 10053 !important;
  position: fixed !important;
}

.ga-dd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid transparent;
}
.ga-dd-title {
  font-size: 16px;
  font-weight: 400;
}
.ga-dd-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ga-text-muted);
  font-size: 11px;
  cursor: pointer;
}
.ga-dd-feedback .material-icons-outlined {
  font-size: 18px;
}

.ga-dd-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ga-text-muted);
  padding: 8px 16px 4px;
  text-transform: uppercase;
}

.ga-dd-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  gap: 12px;
  color: var(--ga-text);
  font-size: 13px;
}
.ga-dd-item:hover {
  background-color: var(--ga-surface-hover);
}
.ga-dd-item.selected {
  background-color: var(--ga-surface-selected);
}
.ga-dd-item.selected:hover {
  background-color: var(--ga-surface-selected);
}

.ga-dd-item-icon {
  color: var(--ga-text-muted);
  font-size: 20px;
}
.ga-dd-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ga-dd-item-title {
  font-weight: 500;
}
.ga-dd-item-subtitle {
  font-size: 12px;
  color: var(--ga-text-muted);
}

.ga-dd-actions {
  display: flex;
  gap: 8px;
  color: var(--ga-text-muted);
}
.ga-dd-actions .material-icons {
  font-size: 18px;
  cursor: pointer;
}

.ga-dd-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--ga-border);
  margin-top: 8px;
}
.ga-create-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ga-blue);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}

/* Select Campaign Dropdown Specifics */
#dropdown-campaign {
  width: 400px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}

.ga-dd-search-box {
  padding: 8px 16px;
  border-bottom: 1px solid var(--ga-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ga-dd-search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
}
.ga-dd-sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ga-text);
  cursor: pointer;
}

.ga-dd-list-header {
  padding: 12px 16px 8px;
  font-size: 12px;
  color: var(--ga-text-muted);
  background: var(--ga-gray-bg);
  border-bottom: 1px solid var(--ga-border);
}

.ga-campaign-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  gap: 12px;
  border-bottom: 1px solid transparent;
}
.ga-campaign-item:hover {
  background-color: var(--ga-surface-hover);
}

.ga-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ga-status-dot.green {
  background-color: var(--ga-green);
}
.ga-status-dot.grey {
  background-color: var(--ga-text-muted);
}

/* --- Top Nav Bar 2 - Filter Bar --- */
.ga-nav-2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  font-size: 13px;
  color: var(--ga-text);
  gap: 8px 12px;
  position: relative;
  row-gap: 8px;
}

.ga-filter-label {
  font-weight: 500;
  color: var(--ga-text);
  margin-right: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ga-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ga-surface-hover);
  padding: 4px 8px 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--ga-border);
  font-size: 13px;
  color: var(--ga-text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.ga-filter-pill:hover {
  background: var(--ga-border);
}
.ga-filter-pill .close-icon {
  font-size: 16px;
  color: var(--ga-text-muted);
}

.ga-filter-input {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--ga-text-muted);
  padding: 4px;
  width: 100px;
  min-width: 100px;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}
.ga-filter-input:focus {
  color: var(--ga-text);
  outline: none;
}
.ga-filter-input:hover {
  color: var(--ga-text);
}

.ga-save-btn {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ga-text-muted);
  cursor: pointer;
  font-size: 10px;
  gap: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ga-save-btn:hover {
  color: var(--ga-text);
}

/* --- Filter Menu & Modals --- */
.ga-filter-menu {
  position: fixed;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow:
    0 2px 6px 2px var(--ga-shadow),
    0 1px 2px 0 var(--ga-shadow);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  width: 200px;
  max-height: 400px;
  overflow-y: auto;
  pointer-events: auto;
}
.ga-filter-menu.show {
  display: flex;
}

.ga-filter-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  pointer-events: auto;
  user-select: none;
}
.ga-filter-item:hover {
  background-color: var(--ga-surface-hover);
}
.ga-filter-item:active {
  background-color: var(--ga-surface-selected);
}

.ga-filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}
.ga-filter-modal.show {
  display: flex !important;
}
.ga-filter-modal-content {
  position: relative;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow:
    0 2px 6px 2px var(--ga-shadow),
    0 1px 2px 0 var(--ga-shadow);
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 90%;
  pointer-events: auto;
}

/* Label Color Picker */
/* Label Color Picker */
.label-color-option {
  transition: all 0.2s;
  box-sizing: border-box;
}
.label-color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.label-color-option[data-selected="true"] {
  border-width: 3px !important;
  border-color: var(--ga-border) !important;
}
.label-color-option .material-icons {
  pointer-events: none;
}

/* Add Note Modal Specific Styles */
#modal-add-note {
  position: fixed !important;
  top: 64px !important; /* Below header */
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: 400px !important;
  height: calc(100vh - 64px) !important;
  transform: translateX(100%) !important;
  z-index: 99999 !important;
  background: var(--ga-surface) !important;
  border-radius: 0 !important;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.3s ease-in-out !important;
}
#modal-add-note.show {
  transform: translateX(0) !important;
}

#modal-add-note .ga-filter-modal-content {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#modal-edit-campaign-name,
#modal-edit-campaign-budget {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10052 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
}
#modal-edit-campaign-name.show,
#modal-edit-campaign-budget.show {
  display: flex !important;
}
#modal-edit-campaign-name .ga-filter-modal-content,
#modal-edit-campaign-budget .ga-filter-modal-content,
#modal-new-label .ga-filter-modal-content {
  background: var(--ga-surface) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  pointer-events: auto !important;
}

.ga-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ga-border);
  font-size: 16px;
  font-weight: 400;
}
.ga-modal-header .close-btn {
  cursor: pointer;
  color: var(--ga-text-muted);
  font-size: 20px;
  pointer-events: auto;
  user-select: none;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.ga-modal-header .close-btn:hover {
  background-color: var(--ga-surface-hover);
  color: var(--ga-text);
}

.ga-modal-body {
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.ga-modal-label {
  font-size: 12px;
  color: var(--ga-text-muted);
  margin-bottom: 8px;
}

.ga-checkbox-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
}
.ga-checkbox-row input {
  margin-right: 12px;
}

.ga-modal-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--ga-border);
  display: flex;
  justify-content: flex-end;
}

.ga-apply-btn {
  background: transparent;
  color: var(--ga-blue);
  border: none;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.ga-apply-btn:hover {
  background: var(--ga-focus);
  border-radius: 4px;
}

.ga-search-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--ga-border);
  gap: 8px;
}
.ga-search-row input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
}
.ga-search-row .material-icons {
  color: var(--ga-text-muted);
}

.ga-account-list {
  padding: 0 16px;
}

.ga-select-input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ga-text);
  outline: none;
}
.ga-text-input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ga-text);
  outline: none;
}
.ga-text-input:focus {
  border-color: var(--ga-blue);
}

/* --- Main Content --- */
.ga-main {
  padding: 20px 24px;
  z-index: 1 !important;
}

.ga-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ga-page-title {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  color: var(--ga-text);
}

.ga-date-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Responsive for Date Controls */
@media (max-width: 768px) {
  .ga-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ga-page-title {
    font-size: 18px;
  }
  .ga-date-controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ga-date-controls #quick-range-label {
    display: none;
  }
  .ga-date-controls .date-chip {
    flex: 1;
    min-width: 140px;
    padding: 6px 10px !important;
  }
  .ga-date-controls .date-chip #date-range-label {
    font-size: 13px !important;
  }
  .ga-date-controls #rangePrev,
  .ga-date-controls #rangeNext {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
  }
  .ga-date-controls #rangePrev .material-icons,
  .ga-date-controls #rangeNext .material-icons {
    font-size: 16px !important;
  }
  .ga-date-controls #showLast30 {
    font-size: 12px !important;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .ga-page-title {
    font-size: 16px;
  }
  .ga-date-controls {
    gap: 6px;
  }
  .ga-date-controls .date-chip {
    min-width: 120px;
    padding: 5px 8px !important;
  }
  .ga-date-controls .date-chip #date-range-label {
    font-size: 12px !important;
  }
  .ga-date-controls .date-chip .material-icons {
    font-size: 16px !important;
  }
  .ga-date-controls #rangePrev,
  .ga-date-controls #rangeNext {
    width: 24px !important;
    height: 24px !important;
  }
  .ga-date-controls #showLast30 {
    font-size: 11px !important;
  }
}
.ga-date-range {
  display: flex;
  align-items: center;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  padding: 0 10px;
  height: 36px;
  cursor: pointer;
  background: var(--ga-surface);
  font-weight: 500;
  font-size: 13px;
}
.ga-date-range:hover {
  background: var(--ga-hover);
}
.ga-date-nav-btn {
  color: var(--ga-text-muted);
  cursor: pointer;
  user-select: none;
}
.ga-date-nav-btn:hover {
  color: var(--ga-text);
}

/* --- Tabs --- */
/* Ensure tabs are always clickable on campaigns page */
.ga-container .ga-tabs {
  display: flex;
  border-bottom: 1px solid var(--ga-border);
  margin-bottom: 0;
  position: relative;
  z-index: 998 !important; /* Above sidebar wrapper */
  pointer-events: auto !important;
}
.ga-container .ga-tab {
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--ga-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  text-transform: uppercase;
  pointer-events: auto !important;
  user-select: none;
  position: relative;
  z-index: 10021 !important; /* Above sidebar wrapper */
}

/* Remove old conflicting rules - using fixed position instead */
.ga-tab.active {
  color: var(--ga-blue);
  border-bottom-color: var(--ga-blue);
}
.ga-tab:hover:not(.active) {
  color: var(--ga-text);
}
.ga-tab:active {
  opacity: 0.8;
}

/* --- Alert Bar --- */
.ga-alert-bar {
  background-color: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-top: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 0;
}
.ga-alert-icon {
  color: var(--ga-blue);
}
.ga-alert-btn {
  background: var(--ga-blue);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-weight: 500;
  margin-left: auto;
}
[data-theme="dark"] .ga-alert-btn {
  color: var(--color-black);
  cursor: pointer;
}
.ga-view-btn-inline {
  color: var(--color-white);
}
[data-theme="dark"] .ga-view-btn-inline {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-view-btn-inline span,
[data-theme="dark"] .ga-view-btn-inline * {
  color: var(--ga-text) !important;
}
.ga-beta-badge {
  color: var(--color-white);
}
[data-theme="dark"] .ga-beta-badge {
  color: var(--color-black);
}

/* --- Toolbar --- */
.ga-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  min-height: 60px;
}
.ga-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ga-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ga-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ga-blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  cursor: pointer;
  transition: box-shadow 0.2s;
  pointer-events: auto;
  z-index: 1;
  position: relative;
}
.ga-fab:hover {
  box-shadow:
    0 1px 3px 0 rgba(60, 64, 67, 0.3),
    0 4px 8px 3px rgba(60, 64, 67, 0.15);
}
.ga-fab:active {
  transform: scale(0.95);
}
.ga-fab .material-icons {
  color: var(--color-white) !important;
}
[data-theme="dark"] .ga-fab {
  background: var(--ga-blue);
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-fab .material-icons {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-fab * {
  color: var(--ga-text) !important;
}

.ga-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ga-text-muted);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  pointer-events: auto;
  user-select: none;
  position: relative;
  z-index: 1;
}
.ga-filter-bar:hover {
  color: var(--ga-text);
}
.ga-filter-bar:active {
  opacity: 0.8;
}
.ga-filter-bar * {
  pointer-events: none;
}

.ga-icon-btn {
  border: none;
  background: transparent;
  color: var(--ga-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  cursor: pointer;
  min-width: 48px;
  font-weight: 500;
  height: 48px;
}
.ga-icon-btn:hover {
  background: var(--ga-hover);
  color: var(--ga-text);
}
.ga-icon-btn .material-icons,
.ga-icon-btn .material-icons-outlined {
  font-size: 20px;
  margin-bottom: 2px;
}

/* --- Table --- */
/* Campaigns Table Container - Horizontal Scroll Fix */
.ga-table-container {
  border: 1px solid var(--ga-border);
  border-radius: 0;
  /* background: #ffffff; */
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: visible; /* Allow vertical overflow for dropdowns */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  
}

/* Table Wrapper - Ensures proper scrolling */
.ga-table-wrapper {
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: visible; /* Allow vertical overflow for dropdowns */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  width: 100%; /* Take full width of container */
}

/* Campaigns Table - Fixed Layout with Minimum Width */
.ga-table {
  width: 100%;
  min-width: 1200px; /* Minimum width to ensure horizontal scroll when needed */
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed; /* Fixed layout for consistent column widths */
}

/* ============================================
   CAMPAIGNS PAGE TABLE - HORIZONTAL SCROLL FIX
   ============================================
   Issue: Table was not scrolling horizontally
   Fix: Added specific CSS for campaigns table container and wrapper
   Location: This section ensures proper horizontal scrolling
   ============================================ */

/* Campaigns Page Table Container - Force horizontal scroll */
#view-campaigns.ga-table-container {
  overflow-x: auto !important; /* Force horizontal scrolling - FIX APPLIED HERE */
  overflow-y: visible !important; /* Allow dropdowns to show above table */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Campaigns Page Table Wrapper - Enable horizontal scroll */
#view-campaigns .ga-table-wrapper {
  overflow-x: auto !important; /* Force horizontal scrolling - FIX APPLIED HERE */
  overflow-y: visible !important; /* Allow dropdowns to show */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  width: 100%; /* Ensure full width */
  position: relative; /* For proper positioning */
}

/* Campaigns Table - Set minimum width to trigger horizontal scroll */
#view-campaigns #campaigns-table.ga-table,
#view-campaigns .ga-table {
  min-width: 1200px !important; /* Minimum width - ensures horizontal scroll when needed - FIX APPLIED HERE */
  /* width: auto !important; Let table take its natural width based on columns */
  table-layout: auto !important; /* Auto layout for better column sizing */
}

.ga-table th,
.ga-table td {
  border: 1px solid var(--ga-border);
  /* border-bottom: 1px solid var(--ga-border); */
  padding: 8px 12px;
  vertical-align: middle;
  color: var(--ga-text);
  /* background: #ffffff; */
}
.ga-table th:last-child,
.ga-table td:last-child {
  border-right: none;
}

.ga-table th {
  /* background: #ffffff; */
  font-weight: 500;
  color: var(--ga-text-muted);
  white-space: normal;
  height: 40px;
  vertical-align: bottom;
  padding-bottom: 8px;
}

/* Sticky table header when expanded - responsive */
body.table-expanded .ga-table-wrapper {
  position: relative;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Make thead sticky when table is expanded */
body.table-expanded .ga-table thead {
  position: sticky;
  top: 0;
  z-index: 998;
  background: var(--ga-nav-bg);
}

body.table-expanded .ga-table thead th {
  background: var(--ga-nav-bg);
  position: sticky;
  top: 0;
  z-index: 998;
}

/* If expand header is present, thead should be below it */
body.table-expanded .ga-expand-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* When expand header is present, adjust thead position */
body.table-expanded .ga-expand-header ~ .ga-table-wrapper .ga-table thead {
  top: 0;
}

/* For campaigns view without expand header, thead should stick at top of scrollable area */
body.table-expanded #view-campaigns .ga-table-wrapper .ga-table thead {
  top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body.table-expanded .ga-table thead {
    top: 0;
  }
  
  body.table-expanded .ga-table thead th {
    font-size: 11px;
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  body.table-expanded .ga-table thead th {
    font-size: 10px;
    padding: 4px 6px;
  }
}

.ga-table th.sortable:hover {
  background: var(--ga-hover);
  cursor: pointer;
}

.ga-table tr:hover td {
  background: var(--ga-hover);
}

.ga-table .num-col {
  text-align: right;
}
.ga-table .center-col {
  text-align: center;
}

.ga-drafts-row {
  /* background-color: #ffffff !important; */
  cursor: pointer;
}
.ga-drafts-row td {
  font-weight: 500;
  border-bottom: 1px solid var(--ga-border);
  color: var(--ga-text);
  padding: 8px 12px;
  /* background: #ffffff; */
}
/* Removed hover effect as per user request */

.ga-total-row td {
  /* background: #ffffff; */
  font-weight: 500;
  border-top: 2px solid var(--ga-border);
}

.status-icon {
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
  color: var(--ga-text-muted);
}
.status-enabled {
  color: var(--ga-green);
}
.status-paused {
  color: var(--ga-text-muted);
}

.campaign-link {
  color: var(--ga-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}
.campaign-link:hover {
  text-decoration: underline;
}

/* Campaign column hover icons */
.ga-table tbody tr td.col-campaign,
.ga-table tbody tr td:nth-child(3) {
  position: relative;
}
.ga-campaign-hover-icons {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.ga-table tbody tr:hover .ga-campaign-hover-icons {
  display: flex;
}
.ga-campaign-hover-icons .material-icons {
  font-size: 18px;
  color: var(--ga-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.ga-campaign-hover-icons .material-icons:hover {
  background: var(--ga-hover);
  color: var(--ga-text);
}
.ga-campaign-hover-icons {
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

/* Budget column hover icon */
.ga-table tbody tr td.col-budget,
.ga-table tbody tr td:nth-child(4) {
  position: relative;
}
.ga-budget-hover-icon {
  display: none;
  margin-left: 8px;
}
.ga-table tbody tr:hover .ga-budget-hover-icon {
  display: inline-flex;
  align-items: center;
}
.ga-budget-hover-icon .material-icons {
  font-size: 18px;
  color: var(--ga-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.ga-budget-hover-icon .material-icons:hover {
  background: var(--ga-hover);
  color: var(--ga-text);
}
.ga-budget-hover-icon {
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

/* Selection Toolbar */
.ga-selection-toolbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #7ab8ff;
  border-bottom: 1px solid var(--ga-border);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.ga-selection-toolbar.show {
  display: flex;
}
.ga-selection-toolbar .ga-selection-count {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-right: 8px;
  white-space: nowrap;
}
.ga-selection-toolbar .ga-selection-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: white;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.ga-selection-toolbar .ga-selection-action:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ga-selection-toolbar .ga-selection-action:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.ga-selection-toolbar .ga-selection-action:disabled:hover {
  background: transparent !important;
}
.ga-selection-toolbar .ga-selection-action .material-icons {
  font-size: 18px;
}

/* Campaign Add Filter Button and Menu */
.add-filter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ga-blue);
  font-weight: 600;
  transition: color 0.15s ease;
  padding: 6px 12px;
  border-radius: 4px;
}
.add-filter-btn:hover {
  color: var(--ga-blue);
  background: var(--ga-surface-hover);
}

#campaignAddFilterMenu {
  left: 0;
  top: 100%;
  margin-top: 4px;
}

/* Campaign Filter Badge */
.campaign-filter-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.campaign-filter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #1a73e8;
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ga-surface);
  line-height: 1;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.campaign-filter-badge:not([style*="display: none"]) {
  display: flex !important;
}

/* Dark theme support for filter badge */
[data-bs-theme="dark"] .campaign-filter-badge {
  background: #ffffff;
  color: #000000;
  border-color: var(--ga-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

/* Light theme support for filter badge */
[data-bs-theme="light"] .campaign-filter-badge,
body:not([data-bs-theme]) .campaign-filter-badge {
  background: #1a73e8;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Campaign Active Filter Pills */
.active-filter-pill {
  border: 1px solid var(--ga-border);
  border-radius: 18px;
  padding: 4px 12px;
  background: var(--ga-hover);
  font-size: 13px;
  color: var(--ga-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.active-filter-pill:hover {
  background: var(--ga-surface-hover);
}

.filter-pill-close {
  color: var(--ga-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}

.filter-pill-close:hover {
  color: var(--ga-text);
}

/* Campaign Filter Modal Styles */
#campaignFilterModal {
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  z-index: 1000;
  min-width: 280px;
  max-width: 400px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
}

.campaign-filter-modal-item {
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ga-border);
  cursor: pointer;
}

.campaign-filter-modal-item:hover {
  background: var(--ga-hover);
}

.campaign-filter-modal-item:last-child {
  border-bottom: none;
}

/* Dark theme support for filter modal */
[data-bs-theme="dark"] #campaignFilterModal {
  background: var(--ga-surface);
  border-color: var(--ga-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .campaign-filter-modal-item:hover {
  background: var(--ga-hover);
}

/* Light theme support for filter modal */
[data-bs-theme="light"] #campaignFilterModal,
body:not([data-bs-theme]) #campaignFilterModal {
  background: var(--ga-surface);
  border-color: var(--ga-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Campaign Filter Badge */
.campaign-filter-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.campaign-filter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #7ab8ff;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  line-height: 1;
  z-index: 10;
}

/* Mobile Responsive for Campaign Add Filter Menu */
@media (max-width: 768px) {
  #campaignAddFilterMenu {
    min-width: auto !important;
  }
}

/* Mobile Responsive for Toolbar */
@media (max-width: 768px) {
  .ga-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    min-height: auto;
  }
  .ga-toolbar-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ga-toolbar-right {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 8px;
  }
  .ga-toolbar-right::-webkit-scrollbar {
    height: 4px;
  }
  .ga-toolbar-right::-webkit-scrollbar-thumb {
    background: var(--ga-border);
    border-radius: 2px;
  }
  .ga-fab {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .ga-fab .material-icons {
    font-size: 20px !important;
  }
  .add-filter-btn {
    font-size: 13px !important;
    padding: 5px 10px !important;
  }
  .ga-icon-btn {
    min-width: 44px;
    height: 44px;
    padding: 4px 6px;
    font-size: 9px;
    flex-shrink: 0;
  }
  .ga-icon-btn .material-icons,
  .ga-icon-btn .material-icons-outlined {
    font-size: 18px !important;
  }
  .campaign-filter-icon-wrapper {
    flex-shrink: 0;
  }
  .campaign-filter-icon-wrapper svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 480px) {
  .ga-toolbar {
    gap: 8px;
    padding: 8px 0;
  }
  .ga-toolbar-left {
    gap: 6px;
  }
  .ga-toolbar-right {
    gap: 4px;
  }
  .ga-fab {
    width: 32px;
    height: 32px;
  }
  .ga-fab .material-icons {
    font-size: 18px !important;
  }
  .add-filter-btn {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  .ga-icon-btn {
    min-width: 40px;
    height: 40px;
    padding: 2px 4px;
    font-size: 8px;
  }
  .ga-icon-btn .material-icons,
  .ga-icon-btn .material-icons-outlined {
    font-size: 16px !important;
  }
  .ga-icon-btn span:not(.material-icons):not(.material-icons-outlined) {
    display: none;
  }
  /* Keep expand text visible on phone screens */
  #expand-text {
    display: block !important;
  }
  .campaign-filter-icon-wrapper svg {
    width: 14px !important;
    height: 14px !important;
  }
  .campaign-filter-badge {
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    top: -5px !important;
    right: -5px !important;
  }
}

/* Mobile Responsive for Tabs */
@media (max-width: 768px) {
  .ga-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ga-tab {
    padding: 0 16px;
    height: 44px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .ga-tab {
    padding: 0 12px;
    height: 40px;
    font-size: 12px;
  }
}

/* Mobile Responsive for Alert Bar */
@media (max-width: 768px) {
  .ga-alert-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px !important;
  }
  .ga-alert-bar > div:first-child {
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
  }
  .ga-alert-bar .ga-alert-btn {
    align-self: flex-end;
    padding: 6px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ga-alert-bar {
    padding: 10px !important;
    gap: 10px;
  }
  .ga-alert-bar > div:first-child {
    font-size: 12px;
  }
  .ga-alert-bar .ga-alert-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
}
.ga-selection-toolbar .ga-selection-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}
.ga-selection-action-dropdown {
  position: relative;
}
.ga-selection-action-dropdown {
  position: relative;
}
.ga-selection-action-dropdown .ga-dropdown-menu {
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  max-height: 400px;
  overflow-y: auto;
  z-index: 10054 !important;
  position: fixed !important;
  display: none;
}
.ga-selection-action-dropdown .ga-dropdown-menu.show {
  display: block !important;
}
.ga-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ga-text);
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}
.ga-dd-item:hover {
  background: var(--ga-hover);
}
.ga-dd-item.remove {
  color: #d93025;
}
.ga-dd-item.remove:hover {
  background: rgba(217, 48, 37, 0.1);
}
.ga-dd-divider {
  height: 1px;
  background: var(--ga-border);
  margin: 4px 0;
}
.ga-dd-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  margin-left: 4px;
  z-index: 10055 !important;
}
.ga-dd-item {
  position: relative;
}
#view-auction-insights,
#view-change-history {
  display: none;
}
#view-auction-insights.show,
#view-auction-insights[style*="display: block"],
#view-change-history.show,
#view-change-history[style*="display: block"] {
  display: block !important;
}

/* Expandable rows */
.ga-expandable-row .ga-expand-icon {
  transition: transform 0.2s;
}
.ga-expandable-row[data-expanded="true"] .ga-expand-icon {
  transform: rotate(90deg);
}
.ga-expanded-child {
  background: var(--ga-surface-hover);
}

.help-icon {
  font-size: 14px;
  color: var(--ga-text-muted);
  vertical-align: middle;
  margin-left: 4px;
  cursor: help;
}

.ga-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid #757575;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  position: relative;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.ga-checkbox:checked {
  background-color: #7ab8ff;
}

/* Column Widths */
.col-checkbox {
  position: relative;
  z-index: 1;
  width: 40px;
  min-width: 40px;
  text-align: center;
  padding: 8px 4px;
}
.col-status-icon {
  width: 40px;
  min-width: 40px;
  text-align: center;
  padding: 8px 4px;
}
.center-col {
  text-align: center;
  padding: 8px 4px;
  white-space: nowrap;
  overflow: visible;
}
.ga-table td {
  vertical-align: middle;
}
.ga-table td.center-col {
  vertical-align: middle;
}
.col-campaign {
  width: 280px;
}
.col-budget {
  width: 140px;
}
.col-status {
  width: 100px;
}
.col-opt-score {
  width: 100px;
}
.col-type {
  width: 120px;
}
.col-metrics {
  width: 90px;
}
.col-cost {
  width: 100px;
}

/* Metrics Dashboard */
.ga-metrics-dashboard {
  background: var(--ga-bg);
  border-bottom: 1px solid var(--ga-border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}
.ga-metrics-dashboard.expanded .ga-chart-area {
  height: 420px;
  min-height: 420px;
}
.ga-metrics-top {
  display: flex;
  align-items: stretch;
  height: 80px;
}
.ga-metrics-cards {
  display: flex;
  flex: 1;
  border: 1px solid var(--ga-border);
  border-right: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  overflow: hidden;
}
.ga-metric-card {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid var(--ga-border);
  background: var(--ga-surface);
  position: relative;
  min-width: 150px; /* Increased min-width to prevent cutting */
}
.ga-metric-card.active {
  background: var(--ga-surface-selected);
  border-bottom: 2px solid var(--ga-blue);
}
.ga-metric-title {
  font-size: 12px;
  color: var(--ga-text-muted);
  margin-bottom: 4px;
  font-weight: 500;
  white-space: normal;
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ga-metric-value {
  font-size: 20px;
  color: var(--ga-text);
  font-family: var(--font-family-secondary), var(--font-family-primary);
  margin-bottom: 2px;
}
.ga-metric-sub {
  font-size: 11px;
  color: var(--ga-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ga-metrics-scroll-btn {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ga-border);
  border-left: none;
  background: var(--ga-surface);
  cursor: pointer;
  color: var(--ga-text-muted);
}
.ga-metrics-scroll-btn:hover {
  background: var(--ga-surface-hover);
  color: var(--ga-text);
}
.filter-bar-section {
    z-index: 999 !important;
}
.ga-metrics-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 24px;
}
.ga-metric-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  padding: 0 4px;
}
.ga-metric-action-btn:hover {
  color: var(--ga-text);
}
.ga-metric-action-btn .material-icons,
.ga-metric-action-btn .material-icons-outlined {
  font-size: 20px;
}
.ga-metric-action-btn svg {
  width: 18px;
  height: 18px;
}
.ga-metric-action-btn span:not(.material-icons):not(.material-icons-outlined) {
  font-size: 11px;
}

/* Chart Download Dropdown */
#campaignChartDownloadMenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  z-index: 1000;
}
#campaignChartDownloadMenu.visible {
  display: flex !important;
}
.kw-download-dropdown{
  width: 160px !important;
  padding: 8px 0;
  min-width: 160px !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
.kw-download-dropdown .kw-dd-item {
  color: #202124 !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
}
.kw-download-dropdown .kw-dd-item:hover {
  background: #f1f3f4 !important;
}

/* Dark Mode for Graph Download Dropdown */
body.dark-mode .kw-download-dropdown,
html.dark-mode .kw-download-dropdown,
[data-theme="dark"] .kw-download-dropdown {
  background: #2d2d2d !important;
  border: 1px solid #3a3a3a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .kw-download-dropdown .kw-dd-item,
html.dark-mode .kw-download-dropdown .kw-dd-item,
[data-theme="dark"] .kw-download-dropdown .kw-dd-item {
  color: #e8eaed !important;
}

body.dark-mode .kw-download-dropdown .kw-dd-item:hover,
html.dark-mode .kw-download-dropdown .kw-dd-item:hover,
[data-theme="dark"] .kw-download-dropdown .kw-dd-item:hover {
  background: #3a3a3a !important;
}

/* Mobile Responsive for Graph Section */
@media (max-width: 768px) {
  .kw-download-dropdown{
    width: 100px !important;
    padding: 8px 0;
    min-width: 100px !important;
  }
  .ga-metrics-dashboard {
    padding: 12px 16px;
    gap: 16px;
  }
  .ga-metrics-top {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .ga-metrics-cards {
    flex: none;
    border: 1px solid var(--ga-border);
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .ga-metrics-cards::-webkit-scrollbar {
    display: none;
  }
  .ga-metric-card {
    min-width: 140px;
    flex-shrink: 0;
    padding: 10px 12px;
  }
  .ga-metric-title {
    font-size: 11px;
    height: 32px;
  }
  .ga-metric-value {
    font-size: 18px;
  }
  .ga-metric-sub {
    font-size: 10px;
  }
  .ga-metrics-scroll-btn {
    display: none;
  }
  .ga-metrics-actions {
    padding-left: 0;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .ga-metric-action-btn {
    padding: 0 8px;
    gap: 3px;
  }
  .ga-metric-action-btn .material-icons,
  .ga-metric-action-btn .material-icons-outlined {
    font-size: 18px;
  }
  .ga-metric-action-btn
    span:not(.material-icons):not(.material-icons-outlined) {
    font-size: 10px;
  }
  .ga-chart-area {
    height: 180px;
    padding-bottom: 16px;
  }
  .ga-chart-label-x {
    font-size: 10px;
  }
  #ga-chart-tooltip {
    width: 200px;
    padding: 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .ga-metrics-dashboard {
    padding: 10px 12px;
    gap: 12px;
  }
  .ga-metrics-top {
    gap: 10px;
  }
  .ga-metric-card {
    min-width: 120px;
    padding: 8px 10px;
  }
  .ga-metric-title {
    font-size: 10px;
    height: 28px;
  }
  .ga-metric-value {
    font-size: 16px;
  }
  .ga-metric-sub {
    font-size: 9px;
  }
  .ga-metrics-actions {
    gap: 8px;
  }
  .ga-metric-action-btn {
    padding: 0 6px;
  }
  .ga-metric-action-btn .material-icons,
  .ga-metric-action-btn .material-icons-outlined {
    font-size: 16px;
  }
  .ga-metric-action-btn
    span:not(.material-icons):not(.material-icons-outlined) {
    font-size: 9px;
  }
  .ga-chart-area {
    height: 160px;
    padding-bottom: 14px;
  }
  .ga-chart-label-x {
    font-size: 9px;
  }
  #ga-chart-tooltip {
    width: 180px;
    padding: 8px;
    font-size: 11px;
  }
}

.ga-chart-area {
  height: 200px;
  border-bottom: 1px solid var(--ga-border);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
}
.ga-chart-line {
  width: 100%;
  height: 1px;
  background: var(--ga-border);
  position: absolute;
  bottom: 20px;
  opacity: 0.5; /* Faint lines */
}
.ga-chart-label-x {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  color: var(--ga-text-muted);
}

/* Download & More Dropdowns */
.ga-download-dropdown,
.ga-more-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px var(--ga-shadow);
  z-index: 3000;
  display: none;
  flex-direction: column;
  width: 220px;
  padding: 8px 0;
}
.ga-download-dropdown.show,
.ga-more-dropdown.show {
  display: flex;
}

.ga-dd-header-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ga-text);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--ga-border);
}
.ga-dd-header-item:hover {
  background: var(--ga-hover);
}

/* Search Dropdown */
.ga-search-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  z-index: 3000;
  display: none;
  flex-direction: column;
  width: 320px;
  padding-bottom: 8px;
  border: 1px solid var(--ga-border);
}
.ga-search-dropdown.show {
  display: flex;
}
.ga-search-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ga-border);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.ga-search-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  padding-left: 40px;
  width: 100%;
  background: transparent;
  color: var(--ga-text);
}
.ga-search-header input::placeholder {
  color: var(--ga-text-muted);
}
.ga-search-header .material-icons {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ga-text-muted);
  font-size: 18px;
}
.ga-recent-header {
  padding: 12px 16px 8px;
  font-size: 12px;
  color: var(--ga-text-muted);
  font-weight: 500;
}
.ga-search-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  transition: background-color 0.15s ease;
}
.ga-search-item:hover {
  background-color: var(--ga-hover);
}
.ga-search-item .material-icons {
  margin-right: 12px;
  color: var(--ga-text-muted);
  font-size: 18px;
  flex-shrink: 0;
}
.ga-search-item span:not(.material-icons) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nested Dropdowns (Segment) */
.ga-nested-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  z-index: 3000;
  display: none;
  flex-direction: column;
  width: 260px;
  padding: 8px 0;
}
.ga-nested-dropdown.show {
  display: flex;
}

/* Phone screens - Fixed positioning for dropdown */
@media (max-width: 768px) {
  .ga-nested-dropdown,
  .ga-search-dropdown,
  .ga-reports-dropdown,
  .ga-download-dropdown,
  .ga-more-dropdown {
    position: fixed !important;
    z-index: 10050 !important; /* Above table and other elements */
    width: 260px;
    max-width: calc(100vw - 32px); /* Leave some margin */
  }
  .ga-nested-dropdown.show,
  .ga-search-dropdown.show,
  .ga-reports-dropdown.show,
  .ga-download-dropdown.show,
  .ga-more-dropdown.show {
    display: flex !important;
  }
  
  /* Submenu should appear to the SIDE on phone, not above */
  .ga-nested-item.has-submenu:hover > .ga-submenu,
  .ga-nested-item.has-submenu:active > .ga-submenu {
    display: block !important;
  }
  .ga-submenu {
    position: fixed !important;
    z-index: 10051 !important; /* Above parent dropdown */
    margin-left: 0;
    width: 220px;
    /* Ensure submenu appears above and to the side */
    transform: none !important;
  }
}

/* Tablet screens (iPad) - Fixed positioning for dropdown */
@media (min-width: 769px) and (max-width: 1024px) {
  .ga-nested-dropdown,
  .ga-search-dropdown,
  .ga-reports-dropdown,
  .ga-download-dropdown,
  .ga-more-dropdown {
    position: fixed !important;
    z-index: 10050 !important; /* Above table */
    width: 260px;
  }
  .ga-nested-dropdown.show,
  .ga-search-dropdown.show,
  .ga-reports-dropdown.show,
  .ga-download-dropdown.show,
  .ga-more-dropdown.show {
    display: flex !important;
  }
  
  /* Submenu should appear above and to the side on tablet */
  .ga-submenu {
    position: fixed !important;
    z-index: 10051 !important; /* Above parent dropdown */
    margin-left: 0;
    width: 220px;
    transform: none !important;
  }
}

/* iPad Pro and larger tablets - Fixed positioning for dropdown */
@media (min-width: 1025px) and (max-width: 1366px) {
  .ga-nested-dropdown,
  .ga-search-dropdown,
  .ga-reports-dropdown,
  .ga-download-dropdown,
  .ga-more-dropdown {
    position: fixed !important;
    z-index: 10050 !important; /* Above table */
    width: 260px;
  }
  .ga-nested-dropdown.show,
  .ga-search-dropdown.show,
  .ga-reports-dropdown.show,
  .ga-download-dropdown.show,
  .ga-more-dropdown.show {
    display: flex !important;
  }
  
  /* Submenu should appear above and to the side on iPad Pro */
  .ga-submenu {
    position: fixed !important;
    z-index: 10051 !important; /* Above parent dropdown */
    margin-left: 0;
    width: 220px;
    transform: none !important;
  }
}

.ga-nested-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.ga-nested-item:hover {
  background: var(--ga-hover);
}
.ga-nested-item.has-submenu:hover > .ga-submenu {
  display: flex;
}

.ga-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -8px;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  width: 220px;
  flex-direction: column;
  padding: 8px 0;
  margin-left: 2px;
  z-index: 3001; /* Above parent dropdown */
}

/* Submenu positioning - right side by default */
.ga-submenu.submenu-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 2px;
}

/* Reports Dropdown */
.ga-reports-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  z-index: 3000;
  display: none;
  flex-direction: column;
  width: 240px;
  padding: 8px 0;
}
.ga-reports-dropdown.show {
  display: flex;
}

/* Modify Columns Modal */
.ga-columns-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  transform: none;
  background: var(--ga-surface);
  border-radius: 0;
  box-shadow: -4px 0 12px rgba(60, 64, 67, 0.15);
  z-index: 99999;
  display: none;
  flex-direction: column;
  width: 900px;
  height: 100vh;
  animation: slideInRight 0.3s ease-out;
  overflow: hidden;
}
.ga-columns-modal.show {
  display: flex;
}

/* Modal Header - Sticky */
.ga-columns-modal .ga-modal-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ga-surface);
  border-bottom: 1px solid var(--ga-border);
}

/* Modal Footer - Sticky */
.ga-columns-modal .ga-modal-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: var(--ga-surface);
  border-top: 1px solid var(--ga-border);
  padding: 16px 24px;
}

/* Columns Modal - Tablet Responsive (Half Screen) */
@media (max-width: 991px) and (min-width: 769px) {
  .ga-columns-modal {
    width: 50% !important;
    max-width: 500px;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ga-col-modal-body {
    min-height: 0 !important;
    overflow: visible !important;
  }
  
  .ga-col-left {
    min-height: 0 !important;
    overflow: visible !important;
  }
  
  .ga-col-right {
    min-height: 0 !important;
    overflow: visible !important;
  }
  
  .ga-col-categories {
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ga-col-your-list {
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Columns Modal - Mobile/Phone Responsive (More than Half Screen) */
@media (max-width: 768px) {
  .ga-columns-modal {
    width: 90% !important;
    max-width: none;
    left: 10% !important;
    right: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ga-columns-modal .ga-modal-header {
    position: sticky !important;
    top: 0 !important;
  }
  
  .ga-columns-modal .ga-modal-footer {
    position: sticky !important;
    bottom: 0 !important;
  }
  
  .ga-col-left {
    width: 100% !important;
    border-right: none;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .ga-col-right {
    width: 100% !important;
    border-top: 1px solid var(--ga-border);
    border-right: none;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .ga-col-modal-body {
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    flex: 1 !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ga-col-categories {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ga-col-your-list {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ga-col-left,
  .ga-col-right {
    overflow: visible !important;
    min-height: 0 !important;
  }
  
  .ga-col-search-bar {
    flex-shrink: 0 !important;
  }
  
  .ga-col-your-header {
    flex-shrink: 0 !important;
  }
}

/* Columns Modal - Small Phone (Wider for better visibility) */
@media (max-width: 480px) {
  .ga-columns-modal {
    width: 85% !important;
    left: 15% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

.ga-col-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.ga-col-left {
  width: 65%;
  border-right: 1px solid var(--ga-border);
  display: flex;
  flex-direction: column;
}
.ga-col-right {
  width: 35%;
  display: flex;
  flex-direction: column;
  background: var(--ga-bg);
}

.ga-col-search-bar {
  padding: 16px;
  border-bottom: 1px solid var(--ga-border);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.ga-col-search-bar input {
  outline: none;
  font-size: 14px;
  flex: 1;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  background: var(--ga-surface);
  color: var(--ga-text);
  padding: 8px 12px 8px 40px;
}
.ga-col-search-bar .material-icons {
  position: absolute;
  left: 28px;
  color: var(--ga-text-muted);
  font-size: 20px;
  pointer-events: none;
  z-index: 1;
}

.ga-col-categories {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.ga-col-cat-item {
  padding: 12px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  position: relative;
}
.ga-col-cat-item:hover {
  background: var(--ga-hover);
}
.ga-col-cat-item.expanded {
  background: var(--ga-surface-selected);
  color: var(--ga-blue);
  font-weight: 500;
}
.ga-col-cat-item.expanded .material-icons {
  transform: rotate(180deg);
}
.ga-col-sub-list {
  display: none;
  flex-direction: column;
  padding-left: 8px;
}
.ga-col-sub-list.show {
  display: flex;
}

.ga-col-sub-list {
  background: var(--ga-surface);
  padding: 8px 24px 16px;
  display: none;
}
.ga-col-sub-list.show {
  display: block;
}

.ga-col-your-header {
  padding: 16px;
  font-weight: 500;
  color: var(--ga-text);
  border-bottom: 1px solid var(--ga-border);
  font-size: 14px;
}
.ga-col-your-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.ga-col-your-item {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  background: var(--ga-surface);
  margin-bottom: 1px;
}
.ga-col-your-item:hover {
  background: var(--ga-hover);
}

.ga-drag-handle {
  color: var(--ga-text-muted);
  cursor: grab;
  user-select: none;
  pointer-events: auto;
}
.ga-drag-handle:active {
  cursor: grabbing;
}
.ga-col-your-item {
  cursor: default;
  user-select: none;
}
.ga-col-your-item.draggable {
  cursor: pointer;
}
.ga-col-your-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.ga-col-your-item.locked {
  cursor: default;
}
.ga-col-your-item .ga-drag-handle {
  cursor: grab;
}
.ga-col-your-item .ga-drag-handle:active {
  cursor: grabbing;
}
.ga-drag-handle:active {
  cursor: grabbing;
}
.ga-col-remove,
.columns-remove-icon {
  color: var(--ga-text-muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ga-col-remove:hover,
.columns-remove-icon:hover {
  color: var(--ga-text);
  opacity: 1;
}

/* Campaigns Page - Remove icon after text (not auto margin) */
#modal-modify-columns .columns-remove-icon,
#modal-modify-metrics .columns-remove-icon {
  margin-left: 8px; /* Space after text, not auto margin */
}

/* Column Select Indicators */
.column-select-indicator {
  width: 16px;
  height: 16px;
  border: 2px solid #dadce0;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.column-select-indicator.selected {
  background: #1a73e8;
  border-color: #1a73e8;
}
.column-select-indicator.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Columns Category Styling */
.columns-category {
  border-bottom: 1px solid var(--ga-border);
}
.columns-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.columns-category-header:hover {
  background: var(--ga-hover);
}
.columns-category-title {
  font-size: 14px;
  font-weight: 500;
}
.columns-category-chevron {
  font-size: 18px;
  color: var(--ga-text-muted);
  transition: transform 0.2s;
}
.columns-category-items {
  display: none;
  padding: 8px 0;
}
.columns-category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.columns-category-item:hover {
  background: var(--ga-hover);
}

/* Sortable styles */
.sortable-ghost {
  opacity: 0.4;
  background: var(--ga-hover);
}
.sortable-chosen {
  background: var(--ga-focus);
}
.sortable-drag {
  opacity: 0.8;
}

/* Custom Column Modal */
.ga-custom-column-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.2);
  z-index: 10060 !important;
  display: none;
  flex-direction: column;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
}
.ga-custom-column-modal.show {
  display: flex;
}

.ga-custom-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.ga-custom-col-owner-section {
  margin-bottom: 24px;
}

.ga-custom-col-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ga-custom-col-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ga-custom-col-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ga-text);
}

.ga-custom-col-input,
.ga-custom-col-select {
  padding: 8px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--ga-surface);
  color: var(--ga-text);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.ga-custom-col-select {
  position: relative;
  overflow: visible;
}

.ga-custom-col-select select {
  position: relative;
  z-index: 10;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.ga-custom-col-input:focus,
.ga-custom-col-select:focus,
.ga-custom-col-select select:focus {
  border-color: var(--ga-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

/* Ensure dropdown doesn't overflow modal */
.ga-custom-column-modal {
  overflow: visible;
}

.ga-custom-column-modal select {
  max-width: 100%;
}

/* Ensure select dropdown options stay within modal */
.ga-custom-column-modal select option {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ga-custom-col-char-count {
  font-size: 12px;
  color: var(--ga-text-muted);
  text-align: right;
}

.ga-custom-col-info {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  background: var(--ga-focus);
  border-radius: 4px;
}

.ga-custom-col-formula-section {
  border-top: 1px solid var(--ga-border);
  padding-top: 24px;
}

.ga-custom-col-formula-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ga-custom-col-formula-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ga-formula-btn {
  padding: 6px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  background: var(--ga-surface);
  color: var(--ga-text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ga-formula-btn:hover {
  background: var(--ga-hover);
  border-color: var(--ga-blue);
}

.ga-custom-col-view-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  overflow: hidden;
}

.ga-view-toggle-btn {
  padding: 6px 12px;
  border: none;
  background: var(--ga-surface);
  color: var(--ga-text-muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.ga-view-toggle-btn.active {
  background: var(--ga-blue);
  color: #fff;
}

.ga-view-toggle-btn:not(.active):hover {
  background: var(--ga-hover);
}

.ga-custom-col-formula-content {
  display: flex;
  gap: 16px;
  min-height: 400px;
}

.ga-custom-col-left-panel {
  width: 280px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  overflow-y: auto;
  max-height: 500px;
  background: var(--ga-surface);
  flex-shrink: 0;
}

.ga-custom-col-categories {
  padding: 8px 0;
}

.ga-custom-col-cat-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ga-text);
  transition: background 0.2s;
}

.ga-custom-col-cat-item:hover {
  background: var(--ga-hover);
}

.ga-custom-col-cat-item.expanded {
  background: var(--ga-surface-selected);
  color: var(--ga-blue);
  font-weight: 500;
}

.ga-custom-col-cat-item.expanded .material-icons {
  transform: rotate(180deg);
}

.ga-custom-col-sub-list {
  display: none;
  flex-direction: column;
  background: var(--ga-bg);
}

.ga-custom-col-sub-list.show {
  display: flex;
}

.ga-custom-col-item {
  padding: 8px 16px 8px 32px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  transition: background 0.2s;
}

.ga-custom-col-item:hover {
  background: var(--ga-hover);
}

.ga-custom-col-center-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ga-custom-col-formula-input-container {
  min-height: 200px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  padding: 16px;
  background: var(--ga-surface);
  position: relative;
}

.ga-custom-col-formula-placeholder {
  color: var(--ga-text-muted);
  font-size: 14px;
  pointer-events: none;
}

.ga-custom-col-formula-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ga-custom-col-formula-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ga-focus);
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ga-text);
}

.ga-custom-col-formula-chip .material-icons {
  font-size: 16px;
  cursor: pointer;
  color: var(--ga-text-muted);
}

.ga-custom-col-formula-chip .material-icons:hover {
  color: var(--ga-text);
}

.ga-custom-col-formula-textarea {
  width: 100%;
  min-height: 200px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: "Roboto Mono", monospace;
  background: transparent;
  color: var(--ga-text);
  resize: none;
}

.ga-custom-col-error {
  color: #ea4335;
  font-size: 13px;
  padding: 8px 0;
}

.ga-custom-col-right-panel {
  width: 320px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  padding: 16px;
  background: var(--ga-bg);
  overflow-y: auto;
  max-height: 500px;
  flex-shrink: 0;
}

.ga-custom-col-formula-ideas {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ga-formula-idea-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ga-formula-idea-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ga-formula-insert-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--ga-blue);
  border-radius: 4px;
  background: transparent;
  color: var(--ga-blue);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.ga-formula-insert-btn:hover {
  background: var(--ga-blue);
  color: #fff;
}

.ga-formula-idea-formula {
  font-size: 12px;
  color: var(--ga-text-muted);
  font-family: "Roboto Mono", monospace;
  padding: 8px;
  background: var(--ga-surface);
  border-radius: 4px;
  word-break: break-all;
}

/* Date Picker */
.ga-date-picker-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  z-index: 10000 !important;
  display: none;
  width: 650px;
  max-width: calc(100vw - 40px);
  flex-direction: column;
  left: auto;
}

#view-bid-strategy-report .ga-date-picker-menu {
  z-index: 10051 !important;
  position: absolute !important;
  max-width: calc(100vw - 40px) !important;
}

#view-bid-strategy-report .ga-date-range {
  position: relative;
}
.ga-date-picker-menu.show {
  display: flex;
}
.ga-dp-body {
  display: flex;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-surface);
  overflow: hidden;
}
.ga-dp-sidebar {
  width: 180px;
  border-right: 1px solid var(--ga-border);
  padding: 8px 0;
  max-height: 400px;
  overflow-y: auto;
  background: var(--ga-surface);
  flex-shrink: 0;
}
.ga-dp-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  background: transparent;
}
.ga-dp-item:hover {
  background: var(--ga-hover);
}
.ga-dp-item.active {
  background: var(--ga-focus);
  color: var(--ga-blue);
  font-weight: 500;
}
.ga-dp-main {
  flex: 1;
  padding: 16px;
  background: var(--ga-surface);
  overflow: hidden;
  min-width: 0;
}
.ga-dp-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.ga-dp-input-group {
  border-bottom: 1px solid var(--ga-blue);
  flex: 1;
  padding-bottom: 4px;
}
.ga-dp-label {
  font-size: 12px;
  color: var(--ga-text-muted);
  margin-bottom: 4px;
}
.ga-dp-date-display {
  font-size: 14px;
  color: var(--ga-text);
}
.ga-dp-calendars {
  display: flex;
  gap: 24px;
  background: var(--ga-surface);
  overflow: hidden;
}
.ga-calendar {
  flex: 1;
  background: var(--ga-surface);
  min-width: 0;
  overflow: hidden;
}
.ga-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ga-text);
  position: relative;
  width: 100%;
}

.ga-cal-header .ga-cal-prev,
.ga-cal-header .ga-cal-next {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ga-cal-header .ga-cal-month-year {
  flex: 1;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: var(--ga-text);
}

.ga-cal-header span:empty {
  display: none;
}
.ga-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 12px;
  background: var(--ga-surface);
}
.ga-cal-day {
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ga-text);
  background: transparent;
  box-sizing: border-box;
}
.ga-cal-day:hover {
  background: var(--ga-hover);
}
.ga-cal-day.selected {
  background: var(--ga-blue);
  color: #fff;
}
.ga-cal-day.range {
  background: var(--ga-surface-selected);
  border-radius: 0;
  width: 100%;
}
.ga-dp-footer {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--ga-surface);
  border-top: 1px solid var(--ga-border);
}

/* Columns Menu */
.ga-columns-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  z-index: 3000;
  display: none;
  width: 240px;
  flex-direction: column;
  padding: 8px 0;
  max-height: 500px;
  overflow-y: auto;
}
.ga-columns-menu.show {
  display: flex;
}
.ga-col-search {
  padding: 8px 16px;
  border-bottom: 1px solid var(--ga-border);
  margin-bottom: 4px;
}
.ga-col-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}
.ga-col-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ga-col-item:hover {
  background: var(--ga-hover);
}

/* Drafts View */
#view-drafts {
  display: none;
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-top: none;
}
#view-drafts[style*="display: block"],
#view-drafts.show {
  display: block !important;
}
#view-campaigns.hidden {
  display: none;
}
.ga-empty-state-title {
  font-size: 14px;
  color: var(--ga-text);
  margin-bottom: 8px;
}

/* Draft Form Container */
.ga-draft-form-container {
  background: var(--ga-surface);
  border-top: 1px solid var(--ga-border);
  border-bottom: 1px solid var(--ga-border);
  max-width: 800px;
  width: 100%;
  margin: 0;
  padding: 0;
}

#view-drafts .ga-table-container {
  max-width: 100%;
}

#view-drafts .ga-draft-form-container {
  max-width: 800px !important;
  width: auto !important;
  margin: 0;
}

#view-drafts .ga-draft-form-body {
  max-width: 800px;
}

#view-drafts .ga-draft-form-fields {
  max-width: 800px;
}

.ga-draft-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ga-border);
}

.ga-draft-form-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ga-text);
  margin: 0;
}

.ga-draft-collapse-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ga-text-muted);
  transition: all 0.2s;
}

.ga-draft-collapse-btn:hover {
  background: var(--ga-surface-hover);
  color: var(--ga-text);
}

.ga-draft-form-body {
  padding: 16px 24px 20px 24px;
}

.ga-draft-form-description {
  font-size: 13px;
  color: var(--ga-text);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.ga-draft-form-fields {
  margin-bottom: 0;
}

.ga-draft-form-fields .ga-form-field {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0;
  max-width: 100%;
}

.ga-draft-form-fields .ga-form-field:last-child {
  margin-bottom: 0;
}

.ga-draft-form-fields .ga-form-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ga-text);
  margin: 0;
  padding-top: 10px;
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
  text-align: left;
}

.ga-draft-form-fields .ga-form-field > .ga-form-input,
.ga-draft-form-fields .ga-form-field > select.ga-form-input,
.ga-draft-form-fields .ga-form-field > div {
  flex: 1;
  min-width: 0;
  margin: 0;
  max-width: 500px;
}

.ga-draft-form-fields .ga-form-field > textarea.ga-form-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  max-width: 100%;
}

.ga-draft-form-fields .ga-form-field > div > textarea.ga-form-input {
  max-width: 100%;
  width: 100%;
}

.ga-form-label-optional {
  font-weight: 400;
  color: var(--ga-text-muted);
  font-size: 11px;
}

.ga-form-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.ga-form-char-count {
  font-size: 11px;
  color: var(--ga-text-muted);
  margin-top: 6px;
  text-align: right;
}

/* Responsive: Stack on very small screens */
@media (max-width: 600px) {
  .ga-draft-form-fields .ga-form-field {
    flex-direction: column;
    gap: 8px;
  }

  .ga-draft-form-fields .ga-form-label {
    min-width: auto;
    max-width: none;
    padding-top: 0;
    margin-bottom: 4px;
  }
}

.ga-draft-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  margin-top: 0;
  border-top: 1px solid var(--ga-border);
  background: var(--ga-surface);
}

.ga-draft-form-actions .ga-btn-secondary {
  background: transparent;
  color: var(--ga-text);
  border: 1px solid var(--ga-border);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.ga-draft-form-actions .ga-btn-secondary:hover {
  background: var(--ga-hover);
  border-color: var(--ga-border);
}

.ga-draft-form-actions .ga-btn-primary {
  background: var(--ga-blue);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.ga-draft-form-actions .ga-btn-primary:hover {
  background: #1765cc;
}

/* Ensure last form field has no bottom margin to reduce gap */
#draft-form-content .ga-draft-form-fields .ga-form-field:last-child {
  margin-bottom: 0 !important;
}

/* Reduce spacing between fields container and actions */
#draft-form-content .ga-draft-form-fields + .ga-draft-form-actions {
  margin-top: 16px;
}

/* Remove duplicate form field margin rule if exists */
.ga-draft-form-fields .ga-form-field:last-child {
  margin-bottom: 0 !important;
}

.ga-draft-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--ga-surface);
  border-bottom: 1px solid var(--ga-border);
}

.ga-draft-header-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--ga-text);
  margin: 0;
}

.ga-draft-section-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ga-text);
  margin: 0;
}

.ga-draft-add-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.ga-new-draft-btn {
  color: var(--ga-blue);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Row Selection */
.ga-table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s;
}
.ga-table tbody tr:hover {
  background: var(--ga-hover);
}
.ga-table tbody tr.row-selected {
  background: var(--ga-focus) !important;
  border-left: 3px solid var(--ga-blue);
}
.ga-table tbody tr.row-selected:hover {
  background: var(--ga-focus) !important;
}

/* Expand/Collapse Full Screen - Keep header, sidebar, footer */
body.table-expanded {
  overflow: hidden;
}

/* Hide sidebar when table is expanded */
body.table-expanded .slide-menu-panel-wrapper,
body.table-expanded .click-menu-panel-wrapper {
  display: none !important;
}

/* Hide top navigation header when expanded */
body.table-expanded .ga-nav-1,
body.table-expanded header,
body.table-expanded .main-layout-container > header {
  display: none !important;
}

/* Hide sidebar create button when expanded */
body.table-expanded .side-create,
body.table-expanded .side-create-btn,
body.table-expanded .side-fixed-menu {
  display: none !important;
}

/* Hide main content wrapper margin adjustment when expanded */
body.table-expanded .main-content-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Hide filter bar, metrics dashboard, alert bar, and asset groups view when expanded */
body.table-expanded .filter-bar-section,
body.table-expanded .ga-alert-bar,
body.table-expanded .ga-metrics-dashboard,
body.table-expanded #metrics-dashboard,
body.table-expanded #view-asset-groups {
  display: none !important;
}

/* Keep toolbar visible when expanded - right after tabs */
body.table-expanded .ga-toolbar {
  display: flex !important;
  z-index: 10001 !important;
  position: fixed !important;
  top: 112px !important; /* Right after tabs (64px header + 48px tabs = 112px) */
  left: 0 !important;
  right: 0 !important;
  background: var(--ga-bg) !important;
  padding: 8px 24px !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--ga-border) !important;
  min-height: 60px !important;
  pointer-events: auto !important; /* Ensure toolbar is clickable */
}

/* Ensure toolbar buttons are visible and clickable */
body.table-expanded .ga-toolbar-left,
body.table-expanded .ga-toolbar-right {
  display: flex !important;
  pointer-events: auto !important;
}

body.table-expanded .ga-toolbar .ga-fab,
body.table-expanded .ga-toolbar .ga-icon-btn,
body.table-expanded .ga-toolbar button {
  pointer-events: auto !important;
  z-index: 10002 !important;
}

/* Keep header, tabs, and date controls visible, hide other main content sections */
body.table-expanded .ga-page-header {
  display: flex !important;
  z-index: 10001 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--ga-bg) !important;
  padding: 20px 24px 12px !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--ga-border) !important;
}

body.table-expanded .ga-date-controls {
  display: flex !important;
  z-index: 10001 !important;
}

/* Ensure date picker appears above expanded table */
body.table-expanded .daterangepicker {
  z-index: 10010 !important;
  position: fixed !important;
}

body.table-expanded .daterangepicker.is-open {
  z-index: 10010 !important;
}

body.table-expanded .daterangepicker .calendar-scroll-wrapper {
  z-index: 10010 !important;
}

body.table-expanded .daterangepicker .ranges {
  z-index: 10010 !important;
}

body.table-expanded .daterangepicker .drp-header {
  z-index: 10010 !important;
}

body.table-expanded .daterangepicker .drp-buttons {
  z-index: 10010 !important;
}

/* Keep tabs visible when expanded - right after header like Google Ads */
body.table-expanded .ga-tabs {
  display: flex !important;
  z-index: 10001 !important;
  position: fixed !important;
  top: 64px !important; /* Right after header (header height ~64px) */
  left: 0 !important;
  right: 0 !important;
  background: var(--ga-bg) !important;
  margin: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--ga-border) !important;
  pointer-events: auto !important; /* Ensure tabs are clickable */
}

/* Ensure tabs are clickable in expanded state */
body.table-expanded .ga-tab {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 10002 !important; /* Above tabs container */
}

/* Active tab styling in expanded state */
body.table-expanded .ga-tab.active {
  color: var(--ga-blue) !important;
  border-bottom-color: var(--ga-blue) !important;
}

/* Hide other sections except header, tabs, toolbar, date controls, and table */
body.table-expanded .ga-main > *:not(.ga-page-header):not(.ga-date-controls):not(.ga-tabs):not(.ga-toolbar):not(.ga-table-container):not(#view-campaigns):not(#view-drafts):not(#view-settings) {
  display: none !important;
}

/* Hide all content between tabs and table when expanded, except toolbar */
body.table-expanded .ga-tabs ~ *:not(.ga-toolbar):not(.ga-table-container):not(#view-campaigns):not(#view-drafts):not(#view-settings) {
  display: none !important;
}

/* Hide asset groups view and its tabs when expanded - only show main tabs (CAMPAIGNS, DRAFTS, SETTINGS) */
body.table-expanded #view-asset-groups,
body.table-expanded #view-asset-groups .ga-tabs,
body.table-expanded #view-asset-groups .ga-tab {
  display: none !important;
}

/* Keep inactive tabs visible but styled properly */

/* Hide tab names if they appear in table cells - use more specific selectors */
body.table-expanded .ga-table tbody tr td:has-text("CAMPAIGNS"),
body.table-expanded .ga-table tbody tr td:has-text("SETTINGS"),
body.table-expanded .ga-table tbody tr td:has-text("DRAFTS") {
  display: none !important;
}

/* Hide any overlay or pseudo-elements showing tab names */
body.table-expanded .ga-table tbody tr td::before,
body.table-expanded .ga-table tbody tr td::after {
  content: none !important;
}

/* Show table container when expanded */
body.table-expanded .ga-table-container,
body.table-expanded #view-campaigns,
body.table-expanded #view-drafts,
body.table-expanded #view-settings {
  display: flex !important;
}

/* Ensure all table links and clickable elements work in expanded state */
body.table-expanded .campaign-link,
body.table-expanded .ga-table a,
body.table-expanded .ga-table tbody tr,
body.table-expanded #settings-table .campaign-link,
body.table-expanded #settings-table tbody tr,
body.table-expanded #view-settings .ga-table a,
body.table-expanded #view-settings .ga-table tbody tr,
body.table-expanded #view-settings .bid-strategy-clickable {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Ensure table rows are clickable in expanded state */
body.table-expanded .ga-table tbody tr:not(.ga-drafts-row):not(.ga-total-row) {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure campaign links work in expanded state - same as normal */
body.table-expanded .ga-table tbody tr[onclick] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure all interactive elements in table work */
body.table-expanded .ga-table button,
body.table-expanded .ga-table input,
body.table-expanded .ga-table select,
body.table-expanded .ga-table .material-icons {
  pointer-events: auto !important;
  z-index: 2 !important;
}

/* Ensure table rows are clickable in expanded state */
body.table-expanded .ga-table tbody tr:not(.ga-drafts-row):not(.ga-total-row) {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure settings table links are clickable */
body.table-expanded #view-settings .campaign-link,
body.table-expanded #view-settings .bid-strategy-clickable {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 1 !important;
}

/* When expanded, the table container fills available space */
.ga-table-container.expanded,
#view-campaigns.expanded,
#view-drafts.expanded {
        position: fixed !important;
        top: 172px !important; /* Right after header (64px) + tabs (48px) + toolbar (60px) = 172px */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 10000 !important; /* Above everything */
        background: var(--ga-bg);
        border: none;
        border-radius: 0;
        margin: 0 !important;
        padding: 0;
        overflow-y: auto; /* Vertical scrolling enabled */
        overflow-x: hidden; /* Container itself doesn't scroll horizontally, wrapper does */
        display: flex;
        flex-direction: column;
        width: 100% !important;
    }

/* Adjust left position based on sidebar state - will be set by JavaScript */
@media screen and (max-width: 991px) {
  .ga-main {
    padding: 20px 24px;
    z-index: 10 !important;
  }
}

/* Selection Bar Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .ga-selection-toolbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ga-selection-toolbar .ga-selection-count {
    font-size: 14px;
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ga-selection-toolbar .ga-selection-action {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ga-selection-toolbar .ga-selection-action .material-icons {
    font-size: 18px;
  }

  .ga-selection-toolbar .ga-selection-divider {
    display: block;
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Selection Bar Mobile Responsive */
@media (max-width: 768px) {
  .ga-selection-toolbar {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    min-height: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ga-selection-toolbar .ga-selection-count {
    font-size: 14px;
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ga-selection-toolbar .ga-selection-action {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ga-selection-toolbar .ga-selection-action .material-icons {
    font-size: 18px;
  }

  .ga-selection-toolbar .ga-selection-divider {
    display: none;
  }

  .ga-selection-action-dropdown .ga-dropdown-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    max-height: 50vh;
    border-radius: 16px 16px 0 0;
    margin: 0;
    z-index: 10055;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .ga-selection-toolbar {
    padding: 8px 10px;
    gap: 6px;
  }

  .ga-selection-toolbar .ga-selection-count {
    font-size: 13px;
  }

  .ga-selection-toolbar .ga-selection-action {
    padding: 5px 8px;
    font-size: 11px;
  }

  .ga-selection-toolbar .ga-selection-action span:not(.material-icons) {
    display: none;
  }

  .ga-selection-toolbar .ga-selection-action .material-icons {
    font-size: 16px;
  }
}

/* Hide expand header when expanded - show table directly after tabs */
.ga-table-container.expanded .ga-expand-header,
#view-campaigns.expanded .ga-expand-header,
#view-drafts.expanded .ga-expand-header,
#view-settings.expanded .ga-expand-header {
  display: none !important;
}

.ga-expand-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
}

.ga-expand-close {
  cursor: pointer;
  color: var(--ga-text-muted);
  font-size: 20px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.ga-expand-close:hover {
  background: var(--ga-surface-hover);
  color: var(--ga-text);
}

/* Table takes remaining space - starts directly after tabs */
.ga-table-container.expanded .ga-table-wrapper,
#view-campaigns.expanded .ga-table-wrapper,
#view-drafts.expanded .ga-table-wrapper,
#view-settings.expanded .ga-table-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0 !important; /* No padding - table header starts immediately */
  min-height: 0;
}

.ga-table-container.expanded .ga-table,
#view-campaigns.expanded .ga-table,
#view-drafts.expanded .ga-table,
#view-settings.expanded .ga-table {
  height: auto;
}
.ga-expand-header {
  display: none;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  position: sticky;
  top: 0;
  z-index: 10001;
}
.ga-table-container.expanded .ga-expand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ga-expand-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
}
.ga-expand-close {
  cursor: pointer;
  color: var(--ga-text-muted);
}
.ga-expand-close:hover {
  color: var(--ga-text);
}

/* Status Indicators */
.ga-status-indicators {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  font-size: 13px;
  flex-wrap: wrap;
}
.ga-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ga-status-indicator-label {
  color: var(--ga-text-muted);
}
.ga-status-indicator-value {
  color: var(--ga-text);
  font-weight: 500;
}
.ga-status-indicator-value.red {
  color: #d93025;
}
.ga-status-indicator-value.green {
  color: var(--ga-green);
}
.ga-status-action-link {
  color: var(--ga-text);
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
}
.ga-status-action-link:hover {
  background: var(--ga-hover);
}
.ga-status-action-link .material-icons {
  font-size: 18px;
  color: var(--ga-text-muted);
}
.ga-back-link {
  color: var(--ga-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ga-back-link:hover {
  text-decoration: underline;
}
.ga-ad-group-tab {
  color: var(--ga-blue);
  cursor: pointer;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}
.ga-ad-group-tab:hover {
  background: var(--ga-hover);
}

/* Enable Hover Dropdown */
.ga-enable-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px var(--ga-shadow);
  z-index: 10002 !important;
  display: none;
  flex-direction: column;
  min-width: 180px;
  padding: 8px 0;
  margin-top: 4px;
  pointer-events: auto;
}
.ga-enable-dropdown.show {
  display: flex;
}
.ga-enable-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ga-enable-item:hover {
  background: var(--ga-surface-hover);
}
.ga-enable-item .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ga-enable-item .status-dot.green {
  background: var(--ga-green);
}
.ga-enable-item .status-dot.grey {
  background: var(--ga-text-muted);
}
.ga-enable-item.remove {
  color: #d93025;
}

/* Campaign Settings Modal */
.ga-campaign-settings-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  min-width: 500px;
  max-width: 800px;
  background: var(--ga-surface);
  box-shadow: -2px 0 8px rgba(60, 64, 67, 0.15);
  z-index: 10051 !important;
  display: none;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.ga-campaign-settings-modal.show {
  display: flex !important;
  z-index: 10051 !important;
  transform: translateX(0);
}

/* Change History Modal */
.ga-change-history-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10052 !important;
  display: none;
  pointer-events: none;
}

.ga-change-history-modal.show {
  display: flex !important;
  pointer-events: auto;
}

.ga-change-history-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10053;
}

.ga-change-history-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  min-width: 600px;
  max-width: 1200px;
  background: var(--ga-surface);
  box-shadow: -2px 0 8px rgba(60, 64, 67, 0.15);
  z-index: 10054 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.ga-change-history-modal.show .ga-change-history-content {
  transform: translateX(0);
}

.ga-change-history-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  position: sticky;
  top: 0;
  z-index: 10055 !important;
  pointer-events: auto;
  flex-shrink: 0;
}

.ga-change-history-header h1 {
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ga-text);
  margin: 0;
  letter-spacing: 0;
}

.ga-change-history-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  min-height: 0;
  background: var(--ga-surface);
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ga-change-history-body .ga-table {
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ga-change-history-body .ga-table th {
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--ga-text);
  background: var(--ga-nav-bg);
}

.ga-change-history-body .ga-table td {
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}

.ga-change-history-body .ga-filter-pill {
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ga-change-history-body .ga-btn-secondary {
  font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ga-change-history-close {
  cursor: pointer;
  transition: color 0.2s;
}

.ga-change-history-close:hover {
  color: var(--ga-text) !important;
}

/* Dark mode support */
body.dark-mode .ga-change-history-content,
html.dark-mode .ga-change-history-content,
[data-theme="dark"] .ga-change-history-content {
  background: var(--ga-surface);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .ga-change-history-header,
html.dark-mode .ga-change-history-header,
[data-theme="dark"] .ga-change-history-header {
  background: var(--ga-nav-bg);
  border-bottom-color: var(--ga-border);
}
.ga-campaign-settings-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  position: sticky;
  top: 0;
  z-index: 10003 !important;
  pointer-events: auto;
  flex-shrink: 0;
}
.ga-campaign-settings-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  min-height: 0;
}
.ga-campaign-settings-footer {
  flex-shrink: 0;
}
.ga-campaign-settings-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--ga-text);
  margin-bottom: 8px;
}
.ga-campaign-settings-subtitle {
  font-size: 13px;
  color: var(--ga-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ga-campaign-settings-body {
  padding: 24px;
  flex: 1;
  pointer-events: auto;
  position: relative;
  z-index: 10002 !important;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.ga-campaign-settings-footer {
  flex-shrink: 0;
  background: var(--ga-nav-bg);
}
.ga-settings-section {
  margin-bottom: 32px;
}
.ga-settings-section.collapsed {
  margin-bottom: 16px;
}
.ga-settings-section-title {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ga-border);
}
.ga-settings-section-title::after {
  content: "chevron_right";
  font-family: "Material Icons";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
  font-size: 20px;
  color: var(--ga-text-muted);
}
.ga-settings-section:not(.collapsed) .ga-settings-section-title::after {
  transform: translateY(-50%) rotate(90deg);
}
.ga-settings-rows {
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ga-settings-section:not(.collapsed) .ga-settings-rows {
  display: block;
}

.ga-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--ga-border);
}
.ga-settings-row:last-child {
  border-bottom: none;
}
.ga-settings-label {
  font-size: 13px;
  color: var(--ga-text);
  flex: 1;
}
.ga-settings-value {
  font-size: 13px;
  color: var(--ga-text);
  text-align: right;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ga-settings-dropdown-menu {
  position: absolute;
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10056 !important;
}
.ga-settings-row:hover {
  background: var(--ga-hover);
}

.ga-settings-value .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ga-green);
}
.ga-settings-value .material-icons {
  font-size: 18px;
  color: var(--ga-text-muted);
  cursor: pointer;
}
.ga-settings-info-text {
  font-size: 12px;
  color: var(--ga-text-muted);
  margin-top: 4px;
}
.ga-settings-link {
  color: var(--ga-blue);
  text-decoration: none;
  font-size: 13px;
}
.ga-settings-link:hover {
  text-decoration: underline;
}

/* Ad Group Settings Modal */
.ga-ad-group-modal {
  z-index: 10051 !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  transform: none;
  background: var(--ga-surface);
  border-radius: 0;
  box-shadow: -2px 0 8px rgba(60, 64, 67, 0.15);
  z-index: 10051 !important;
  display: none !important;
  flex-direction: column;
  width: 600px;
  max-height: 100vh;
  overflow-y: auto;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.ga-ad-group-modal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10051 !important;
}
.ga-ad-group-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ga-border);
  position: relative;
  z-index: 10003 !important;
  pointer-events: auto;
}
.ga-ad-group-modal-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--ga-text);
}
.ga-ad-group-modal-close {
  cursor: pointer;
  color: var(--ga-text-muted);
  font-size: 24px;
  pointer-events: auto;
  position: relative;
  z-index: 10003 !important;
}
.ga-ad-group-modal-body {
  padding: 24px;
  pointer-events: auto;
  position: relative;
  z-index: 10002 !important;
}
.ga-ad-group-section {
  margin-bottom: 24px;
}
.ga-ad-group-section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 16px;
}
.ga-ad-group-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ga-border);
}
.ga-ad-group-field-label {
  font-size: 13px;
  color: var(--ga-text);
}
.ga-ad-group-field-value {
  font-size: 13px;
  color: var(--ga-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ga-ad-group-field-value .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ga-green);
}
.ga-ad-group-info-banner {
  background: var(--ga-focus);
  border: 1px solid var(--ga-blue);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ga-text);
}
.ga-ad-group-info-btn {
  background: var(--ga-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-weight: 500;
  cursor: pointer;
  font-size: 13px;
}
.ga-ad-group-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ga-text);
}
.ga-ad-group-dropdown-arrow {
  font-size: 18px;
  color: var(--ga-text-muted);
  margin-left: auto;
  transition: transform 0.2s;
}
.ga-ad-group-dropdown.active .ga-ad-group-dropdown-arrow {
  transform: rotate(180deg);
}
.ga-ad-group-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10005 !important;
  display: none;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
  pointer-events: auto;
}
.ga-ad-group-dropdown-menu.show {
  display: flex;
}
.ga-ad-group-dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  border-bottom: 1px solid var(--ga-border);
}
.ga-ad-group-dropdown-item:last-child {
  border-bottom: none;
}
.ga-ad-group-dropdown-item:hover {
  background: var(--ga-hover);
}
.ga-ad-group-dropdown-text {
  flex: 1;
}

/* Play/Pause Icon with Dropdown */
.ga-status-action-cell {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 40px;
  width: 40px;
}
.status-icon {
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.2s;
}
.ga-status-action-icon {
  cursor: pointer;
  color: var(--ga-text-muted);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
tr:hover .ga-status-action-icon {
  opacity: 1;
}
/* Show dropdown on status icon hover */
.ga-status-action-cell:hover .ga-status-action-dropdown,
.ga-status-action-dropdown:hover {
  display: flex;
}
.ga-status-action-dropdown {
  position: fixed !important;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ga-surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px var(--ga-shadow);
  z-index: 99999 !important;
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 8px 0;
  margin-top: 4px;
}
.ga-status-action-cell {
  position: relative;
  z-index: 100;
}
/* Ensure table doesn't clip dropdowns - But allow horizontal scroll for campaigns table */

/* Table wrapper - Allow horizontal scroll but keep vertical visible for dropdowns */
.ga-table-wrapper {
  position: relative;
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: visible; /* Allow vertical overflow for dropdowns */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  width: 100%; /* Take full width */
}

/* Table itself - Allow overflow for dropdowns but maintain scroll container */
.ga-table {
  /* Table will scroll within container */
  position: relative;
}
/* Fix click-menu-panel - ensure it doesn't block clicks on campaigns page */
.click-menu-panel-wrapper {
  pointer-events: none !important; /* Never block clicks on main content */
}
/* Only the panel itself should receive clicks when open */
.click-menu-panel-wrapper.menu-open .click-menu-panel {
  pointer-events: auto !important;
}

/* Ensure table buttons and interactive elements are above click menu */
.ga-table-container button,
.ga-table-container .ga-btn-secondary,
.ga-table-container .ga-btn-primary,
.ga-table-container input,
.ga-table-container select,
.ga-table-container .ga-filter-input {
  position: relative;
  z-index: 1;
}

/* Ensure toolbar buttons are below dropdowns and modals */
.ga-toolbar-left button,
.ga-toolbar-right button,
.ga-toolbar .ga-icon-btn,
.ga-toolbar .ga-fab,
.ga-toolbar .ga-filter-bar {
  position: relative;
  z-index: 1 !important;
}

/* Date picker must be above all toolbar elements */
.ga-date-picker-menu.show {
  z-index: 10000 !important;
}
/* Ensure table rows and cells can have dropdowns above click menu */
.ga-table tbody tr {
  position: relative;
  z-index: 10;
}
.ga-table tbody tr:hover {
  z-index: 11;
}
.ga-status-action-dropdown.show {
  display: flex;
}
.ga-status-action-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ga-status-action-item:hover {
  background: var(--ga-surface-hover);
}
.ga-status-action-item .material-icons {
  font-size: 18px;
  color: var(--ga-text-muted);
}
.ga-status-action-item.remove {
  color: #d93025;
}

/* Settings Tab */
#view-settings {
  display: none;
  /* background: #ffffff; */
  border: 1px solid var(--ga-border);
}

#view-bid-strategy-report {
  display: none;
}

#view-bid-strategy-report.show,
#view-bid-strategy-report[style*="display: block"] {
  display: block !important;
}

#view-bid-strategy-report .ga-filter-pill {
  user-select: none;
}

#view-bid-strategy-report .ga-date-picker-menu {
  z-index: 10051 !important;
  position: absolute !important;
}

#view-bid-strategy-report .ga-date-range {
  position: relative;
}

#view-bid-strategy-report .bid-report-container {
  display: flex;
  background: var(--ga-bg);
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  overflow: hidden;
  min-height: 600px;
}

#view-bid-strategy-report .bid-report-left-panel {
  width: 300px;
  min-width: 300px;
  border-right: 1px solid var(--ga-border);
  background: var(--ga-surface);
  overflow-y: auto;
  flex-shrink: 0;
}

#view-bid-strategy-report .bid-report-right-panel {
  flex: 1;
  overflow-y: auto;
  background: var(--ga-bg);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#view-settings.show,
#view-settings[style*="display: block"] {
  display: block !important;
}
/* Settings table wrapper - same as campaigns */
#view-settings .ga-table-wrapper {
  overflow-x: auto !important; /* Override the visible !important rule */
  overflow-y: auto !important;
  width: 100%;
  min-width: 100%;
}
#view-settings .ga-table {
  min-width: max-content; /* Let table determine its natural width based on content */
  width: auto;
  table-layout: auto;
}
/* Settings table expanded state - same as campaigns */
#view-settings.expanded {
  position: fixed !important;
  top: 172px !important; /* Right after header (64px) + tabs (48px) + toolbar (60px) = 172px */
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important; /* Above everything */
  background: var(--ga-bg);
  border: none;
  border-radius: 0;
  margin: 0 !important;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  height: auto !important;
}

/* Ensure settings table wrapper works in expanded state - same as campaigns */
#view-settings.expanded .ga-table-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0 !important;
  min-height: 0;
}

/* Ensure settings table is visible and functional in expanded state */
#view-settings.expanded .ga-table {
  height: auto;
  position: relative;
  min-width: max-content;
  width: auto;
  table-layout: auto;
}

/* Make all settings table elements clickable - same as normal state */
#view-settings.expanded .ga-table tbody tr,
#view-settings.expanded .ga-table a,
#view-settings.expanded .ga-table .campaign-link,
#view-settings.expanded .ga-table .bid-strategy-clickable {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 1 !important;
  position: relative;
}
#view-settings.expanded .ga-table-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0 24px 24px;
}
#view-settings.expanded .ga-table {
  height: auto;
}
#view-settings .ga-table th,
#view-settings .ga-table td {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  vertical-align: middle;
  height: auto;
  min-height: 36px;
  /* background: #ffffff; */
}
#view-settings .ga-table th {
  position: sticky;
  top: 0;
  /* background: #ffffff; */
  z-index: 10;
  border-bottom: 2px solid var(--ga-border);
  font-weight: 500;
  font-size: 13px;
}
#view-settings .ga-table tbody tr {
  height: auto;
}
#view-settings .ga-table .col-campaign {
  font-size: 13px;
  font-weight: 400;
  color: var(--ga-text);
}
#view-settings .ga-table .col-campaign a {
  font-size: 13px;
  font-weight: 400;
}

/* New Campaign Flow */
.ga-new-campaign-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ga-bg);
  z-index: 10051 !important;
  display: none !important;
  flex-direction: column;
  overflow-y: auto;
  pointer-events: auto;
}
.ga-new-campaign-modal.show {
  display: flex !important;
  z-index: 10051 !important;
}
.ga-new-campaign-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ga-border);
  background: var(--ga-nav-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ga-new-campaign-body {
  flex: 1;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.ga-objective-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ga-objective-card {
  border: 2px solid var(--ga-border);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ga-surface);
}
.ga-objective-card:hover {
  border-color: var(--ga-blue);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}
.ga-objective-card.selected {
  border-color: var(--ga-blue);
  background: var(--ga-focus);
}
.ga-objective-card-icon {
  font-size: 48px;
  color: var(--ga-text-muted);
  margin-bottom: 16px;
}
.ga-objective-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 8px;
}
.ga-objective-card-desc {
  font-size: 13px;
  color: var(--ga-text-muted);
}
.ga-campaign-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.ga-campaign-type-card {
  border: 2px solid var(--ga-border);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ga-surface);
  position: relative;
}
.ga-campaign-type-card:hover {
  border-color: var(--ga-blue);
}
.ga-campaign-type-card.selected {
  border-color: var(--ga-blue);
  background: var(--ga-focus);
}
.ga-campaign-type-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--ga-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}
.ga-campaign-type-icon {
  font-size: 48px;
  color: var(--ga-text-muted);
  margin-bottom: 16px;
}
.ga-campaign-type-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 8px;
}
.ga-campaign-type-desc {
  font-size: 13px;
  color: var(--ga-text-muted);
}
.ga-form-field {
  margin-bottom: 20px;
}
.ga-draft-form-fields .ga-form-field:last-child {
  margin-bottom: 0;
}
.ga-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 8px;
  display: block;
}
.ga-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ga-text);
  background: var(--ga-surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ga-form-input:hover {
  border-color: var(--ga-text-muted);
}
.ga-form-input:focus {
  outline: none;
  border-color: var(--ga-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}
.ga-form-input::placeholder {
  color: var(--ga-text-muted);
}
.ga-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--ga-border);
}
.ga-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ga-border);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ga-surface);
}
.ga-radio-option:hover {
  border-color: var(--ga-blue);
  background: var(--ga-focus);
}
.ga-radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--ga-blue);
  flex-shrink: 0;
}
.ga-conversion-goals-table {
  border: 1px solid var(--ga-border);
  border-radius: 8px;
  overflow: hidden;
}
.ga-conversion-goals-header {
  display: flex;
  padding: 12px 16px;
  background: var(--ga-nav-bg);
  border-bottom: 1px solid var(--ga-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ga-text-muted);
}
.ga-conversion-goals-row {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ga-border);
  font-size: 13px;
  color: var(--ga-text);
  align-items: center;
}
.ga-conversion-goals-row:last-child {
  border-bottom: none;
}
.ga-conversion-goals-row:hover {
  background: var(--ga-hover);
}

.ga-btn-secondary {
  background: transparent;
  color: var(--ga-blue);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.ga-btn-primary {
  background: var(--ga-blue);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.ga-btn-secondary:hover {
  background: var(--ga-hover);
}
.ga-btn-primary:hover {
  background: #1765cc;
}
[data-theme="dark"] .ga-btn-primary {
  background: #0793f0 !important;
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-btn-primary:hover {
  background: var(--ga-blue);
  opacity: 0.9;
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-btn-primary span,
[data-theme="dark"] .ga-btn-primary .material-icons,
[data-theme="dark"] .ga-btn-primary .material-icons-outlined {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-btn-secondary {
  color: var(--ga-blue) !important;
  border: 1px solid var(--ga-border);
}
[data-theme="dark"] .ga-btn-secondary:hover {
  background: var(--ga-surface-hover);
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-apply-btn {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-apply-btn:hover {
  background: var(--ga-focus);
  color: var(--ga-blue) !important;
}
/* Ensure all button text is visible in dark mode */
[data-theme="dark"] .ga-btn-primary,
[data-theme="dark"] .ga-btn-primary * {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-btn-secondary,
[data-theme="dark"] .ga-btn-secondary * {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-apply-btn,
[data-theme="dark"] .ga-apply-btn * {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] button.ga-btn-primary,
[data-theme="dark"] button.ga-btn-secondary,
[data-theme="dark"] button.ga-apply-btn {
  color: inherit !important;
}
[data-theme="dark"] button.ga-btn-primary span,
[data-theme="dark"] button.ga-btn-secondary span,
[data-theme="dark"] button.ga-apply-btn span {
  color: inherit !important;
}
[data-theme="dark"] .ga-icon-btn {
  color: var(--ga-text);
}
[data-theme="dark"] .ga-icon-btn:hover {
  color: var(--ga-text);
}
[data-theme="dark"] .ga-icon-btn .material-icons,
[data-theme="dark"] .ga-icon-btn .material-icons-outlined {
  color: var(--ga-text);
}
[data-theme="dark"] .material-icons,
[data-theme="dark"] .material-icons-outlined {
  color: var(--ga-text);
}
[data-theme="dark"] button .material-icons,
[data-theme="dark"] button .material-icons-outlined {
  color: inherit;
}
[data-theme="dark"] .ga-btn-primary .material-icons,
[data-theme="dark"] .ga-btn-primary .material-icons-outlined {
  color: var(--ga-text);
}
[data-theme="dark"] .ga-btn-secondary .material-icons,
[data-theme="dark"] .ga-btn-secondary .material-icons-outlined {
  color: var(--ga-blue);
}
[data-theme="dark"] .ga-btn-primary {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-btn-primary * {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-btn-secondary {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-btn-secondary * {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-apply-btn {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-apply-btn * {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] .ga-save-btn {
  color: var(--ga-text-muted) !important;
}
[data-theme="dark"] .ga-save-btn:hover {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-save-btn * {
  color: inherit !important;
}
[data-theme="dark"] .ga-fab {
  background: var(--ga-blue) !important;
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-fab * {
  color: var(--ga-text) !important;
}
[data-theme="dark"] .ga-fab .material-icons,
[data-theme="dark"] .ga-fab .material-icons-outlined {
  color: var(--ga-text) !important;
}
/* Global button text visibility in dark mode */

[data-theme="dark"] button.ga-btn-primary {
  color: var(--ga-text) !important;
}
[data-theme="dark"] button.ga-btn-secondary {
  color: var(--ga-blue) !important;
}
[data-theme="dark"] button.ga-apply-btn {
  color: var(--ga-blue) !important;
}

/* Checkbox Fix */
.ga-table tbody tr {
  cursor: pointer;
  position: relative;
}
.ga-table tbody tr td:first-child {
  cursor: default;
  pointer-events: auto !important;
  position: relative;
  /* z-index: 100; */
}
.ga-table tbody tr td:first-child input,
.ga-table tbody tr td.center-col input {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 101;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: checkbox;
}
.ga-table tbody tr td.center-col {
  pointer-events: auto !important;
  position: relative;
  z-index: 100;
}
/* Prevent row click when clicking checkbox */
.ga-table tbody tr td:first-child input:checked,
.ga-table tbody tr td:first-child input:focus,
.ga-table tbody tr td.center-col input:checked,
.ga-table tbody tr td.center-col input:focus {
  pointer-events: auto !important;
  z-index: 102;
}

.ga-campaign-settings-title-section {
  flex: 1;
}

.ga-campaign-settings-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--ga-text);
  margin: 0 0 8px 0;
}

.ga-campaign-status-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ga-status-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ga-surface-hover);
  color: var(--ga-text);
}

.ga-status-badge.paused {
  background: #fef3e2;
  color: #b45309;
}

.ga-campaign-settings-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ga-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ga-campaign-settings-close:hover {
  color: var(--ga-text);
  background: var(--ga-surface-hover);
  border-radius: 50%;
}

.ga-campaign-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.ga-settings-section {
  margin-bottom: 24px;
}

.ga-settings-section-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ga-border);
}

.ga-settings-item {
  margin-bottom: 20px;
}

.ga-settings-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ga-text);
  margin-bottom: 8px;
}

.ga-settings-value {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.ga-settings-input,
.ga-settings-select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  background: var(--ga-surface);
  color: var(--ga-text);
  font-size: 13px;
  outline: none;
}

.ga-settings-input:focus,
.ga-settings-select:focus {
  border-color: var(--ga-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.16);
}

.ga-dropdown-arrow {
  color: var(--ga-text-muted);
  font-size: 20px;
  pointer-events: none;
}

.ga-settings-description {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ga-text-muted);
}

.ga-settings-description p {
  margin: 4px 0;
  line-height: 1.5;
}

.ga-link {
  color: var(--ga-blue);
  text-decoration: none;
}

.ga-link:hover {
  text-decoration: underline;
}

.ga-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 8px;
}

.ga-checkbox-label input[type="checkbox"] {
  cursor: pointer;
}

.ga-info-box {
  padding: 12px;
  background: var(--ga-surface-hover);
  border-radius: 4px;
  margin-top: 8px;
}

.ga-info-box p {
  margin: 4px 0;
  font-size: 12px;
  color: var(--ga-text);
}

.ga-info-text {
  font-size: 12px;
  color: var(--ga-text-muted);
  line-height: 1.5;
}

.ga-location-display,
.ga-dates-display,
.ga-dsa-display,
.ga-url-options-display,
.ga-page-feeds-display,
.ga-ip-exclusions-display,
.ga-eu-political-display {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  background: var(--ga-surface);
  color: var(--ga-text);
  font-size: 13px;
}

.ga-brands-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  background: var(--ga-surface);
  color: var(--ga-text);
  font-size: 13px;
}

.ga-ai-max-content {
  padding: 16px;
  background: var(--ga-surface-hover);
  border-radius: 8px;
}

.ga-ai-max-content h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ga-text);
  margin: 0 0 8px 0;
}

.ga-ai-max-content > p {
  font-size: 13px;
  color: var(--ga-text-muted);
  margin: 0 0 16px 0;
}

.ga-ai-max-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ga-ai-max-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ga-ai-max-features .material-icons {
  color: var(--ga-blue);
  font-size: 24px;
  margin-top: 2px;
}

.ga-ai-max-features div {
  flex: 1;
}

.ga-ai-max-features strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ga-text);
}

.ga-ai-max-features p {
  font-size: 13px;
  color: var(--ga-text-muted);
  margin: 0;
}

.ga-ai-max-toggle {
  margin-top: 16px;
}

.ga-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ga-text);
}

.ga-toggle-label input[type="checkbox"] {
  display: none;
}

.ga-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  transition: background 0.3s;
}

.ga-toggle-slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.ga-toggle-label input[type="checkbox"]:checked + .ga-toggle-slider {
  background: var(--ga-blue);
}

.ga-toggle-label input[type="checkbox"]:checked + .ga-toggle-slider:before {
  transform: translateX(20px);
}

.ga-beta-badge {
  display: inline-block;
  padding: 2px 6px;
  background: var(--ga-blue);
  color: white;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
}

.ga-campaign-settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--ga-border);
}

.ga-btn-primary,
.ga-btn-secondary {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.ga-btn-primary {
  background: var(--ga-blue);
  color: #fff;
}

.ga-btn-primary:hover {
  background: #1765cc;
  box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
}

.ga-btn-secondary {
  background: transparent;
  color: var(--ga-blue);
}

.ga-btn-secondary:hover {
  background: rgba(26, 115, 232, 0.08);
}

/* Bid Strategy Clickable Cell Styles */
.bid-strategy-clickable {
  cursor: pointer;
  color: var(--ga-blue) !important;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bid-strategy-clickable:hover {
  background-color: var(--ga-surface-hover);
  text-decoration: underline;
}

/* Date Picker Calendar Day Styles */
.ga-cal-day {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 13px;
  color: var(--ga-text);
  transition: all 0.15s ease;
  position: relative;
}

.ga-cal-day:not(.empty):not([style*="pointer-events: none"]):hover {
  background-color: var(--ga-surface-hover);
}

.ga-cal-day.selected {
  background-color: var(--ga-blue) !important;
  color: #fff !important;
  font-weight: 500;
}

.ga-cal-day.in-range {
  background-color: rgba(26, 115, 232, 0.12);
  color: var(--ga-blue);
  border-radius: 0;
}

.ga-cal-day.start-date.in-range {
  border-radius: 20px 0 0 20px;
}

.ga-cal-day.end-date.in-range {
  border-radius: 0 20px 20px 0;
}

.ga-cal-day.start-date.end-date {
  border-radius: 20px !important;
}

.ga-cal-day.today {
  border: 1px solid var(--ga-blue);
}

.ga-cal-day-header {
  font-weight: 500;
  font-size: 12px;
  color: var(--ga-text-muted);
  text-align: center;
  padding: 4px;
}

/* Checkbox Indeterminate State */
.ga-checkbox:indeterminate {
  background: #7ab8ff !important;
  border-color: #7ab8ff !important;
}

.ga-checkbox:indeterminate::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 10px;
  height: 2px;
  background-color: white !important;
  border: none;
  transform: none;
  display: block !important;
  z-index: 1;
}

/* Calendar Grid Styles */
.ga-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px;
}

.ga-calendar {
  padding: 12px;
}

.ga-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.ga-cal-month-year {
  font-size: 14px;
  font-weight: 400;
  color: var(--ga-text);
}

.ga-dp-calendars {
  display: flex;
  gap: 24px;
  padding: 12px;
}

.ga-dp-inputs {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--ga-border);
}

.ga-dp-input-group {
  flex: 1;
}

.ga-dp-label {
  font-size: 12px;
  color: var(--ga-text-muted);
  margin-bottom: 8px;
}

.ga-dp-date-display {
  font-size: 14px;
  color: var(--ga-text);
  padding: 8px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  background: var(--ga-surface);
}

.ga-dp-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--ga-border);
}

.ga-dp-item.active {
  background-color: var(--ga-blue);
  color: #fff;
  font-weight: 500;
}

.ga-dp-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  transition: background-color 0.15s ease;
}

.ga-dp-item:hover {
  background-color: var(--ga-surface-hover);
}

.ga-dp-item.active:hover {
  background-color: var(--ga-blue);
}

/* Google Ads Pixel-Perfect Styles */
.ga-date-picker-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  z-index: 1000;
}

.ga-date-picker-menu.show {
  display: flex !important;
}

/* Filter Modal Positioning */
.filter-modal-content {
  max-width: 520px;
}

.filter-modal.campaign-modal .filter-modal-content {
  max-width: 480px;
}

.filter-modal.add-filter-modal .filter-modal-content {
  max-width: 460px;
}

/* Table Row Selection */
.ga-table tbody tr.row-selected {
  background-color: var(--ga-surface-selected) !important;
}

.ga-table tbody tr.row-selected td {
  background-color: var(--ga-surface-selected) !important;
}

/* Search Icon Styles */
.ga-icon-btn[onclick*="dropdown-search"] {
  position: relative;
}

/* Edit Functionality */
.ga-table td.editable {
  cursor: text;
}

.ga-table td.editing {
  padding: 0 !important;
}

.ga-table td.editing input {
  width: 100%;
  height: 100%;
  border: 2px solid var(--ga-blue);
  padding: 6px 10px;
  font-size: 13px;
}

/* Drag and Drop Styles */
.ga-table tbody tr[draggable="true"] {
  cursor: move;
}

.ga-table tbody tr.dragging {
  opacity: 0.5;
}

.ga-table tbody tr.drag-over {
  border-top: 2px solid var(--ga-blue);
}

/* Additional Google Ads Pixel-Perfect Styles */
.ga-table th.sortable {
  position: relative;
  padding-right: 24px;
}

.ga-table th.sortable::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--ga-text-muted);
  opacity: 0.5;
}

/* Filter Pills Exact Styling */
.ga-filter-pill {
  height: 28px;
  line-height: 28px;
  font-size: 13px;
  padding: 0 12px 0 16px;
}

.ga-filter-pill .close-icon {
  margin-left: 8px;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.ga-filter-pill .close-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Modal Exact Positioning */
.filter-modal.active .filter-modal-content {
  animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Date Range Chip Exact Styling */
.ga-date-range {
  min-width: 180px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.ga-date-range span:first-child {
  font-weight: 500;
  font-size: 13px;
}

/* Table Checkbox Exact Styling */
.ga-checkbox {
  cursor: pointer;
  transition: all 0.15s ease;
}

.ga-checkbox:hover {
  border-color: var(--ga-blue);
}

/* Status Icon Hover */
.ga-status-action-cell:hover .ga-status-action-dropdown {
  display: block;
}

.ga-status-action-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px 2px var(--ga-shadow);
  z-index: 1000;
  min-width: 120px;
  padding: 4px 0;
}

.ga-status-action-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ga-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ga-status-action-item:hover {
  background-color: var(--ga-surface-hover);
}

.ga-status-action-item.remove {
  color: var(--color-red);
}

.ga-status-action-item.remove:hover {
  background-color: rgba(218, 0, 0, 0.1);
}

/* Campaign Link Hover */
.campaign-link {
  transition: text-decoration 0.15s ease;
}

/* Toolbar Icons Exact Spacing */
.ga-toolbar-right {
  gap: 8px;
}

.ga-icon-btn {
  min-width: 40px;
  height: 40px;
}

/* Ensure expand text size matches other icon buttons */
#expand-text {
  font-size: 10px !important;
  font-weight: 500;
}

/* Pagination Exact Styling */
.ga-pagination {
  font-size: 12px;
}

.ga-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Settings Table Bid Strategy Column */
#settings-table tbody tr td:nth-child(7) {
  cursor: pointer;
  color: var(--ga-blue);
  text-decoration: none;
}

#settings-table tbody tr td:nth-child(7):hover {
  text-decoration: underline;
  background-color: var(--ga-surface-hover);
}
