@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Sans+3:wght@400;500;600&display=swap');

/* =========================================================
   E-Safe Master Formatting Guidance Aligned Styles
   Applies to GA Regional News public and admin interfaces.
   Branding remains admin-header only.
   ========================================================= */

.esafe-ui,
.esafe-sample-view,
.esafe-plugin-wrap,
.esafe-admin-wrap {
  --esafe-page-bg: #F5F8FB;
  --esafe-text: #0F2330;
  --esafe-muted: #5A6A75;
  --esafe-meta: #9B9B9B;
  --esafe-border: #D4DEE6;
  --esafe-surface: #FFFFFF;
  --esafe-surface-alt: #F5F8FB;
  --esafe-header-gradient: linear-gradient(135deg, #C8D6E3, #AECBE8);
  --esafe-link: #E30000;
  --esafe-link-hover: #0427C4;
  --esafe-font-primary: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --esafe-font-secondary: "Source Sans 3", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --esafe-text-xs: 12px;
  --esafe-text-sm: 13px;
  --esafe-text-base: 13px;
  --esafe-text-body: 15px;
  --esafe-h1: 20px;
  --esafe-h2: 18px;
  --esafe-h3: 16px;
  --esafe-h4: 15px;
  --esafe-weight-regular: 400;
  --esafe-weight-medium: 500;
  --esafe-weight-bold: 600;
  --esafe-radius-sm: 8px;
  --esafe-radius-md: 10px;
  --esafe-radius-lg: 12px;
  --esafe-shadow-low: 0 1px 2px rgba(0, 0, 0, 0.06);
  --esafe-shadow-card-hover: 0 0 8px 0 rgba(224, 90, 90, 0.25);
  --esafe-shadow-soft: 0 0 6px 0 rgba(218, 218, 218, 0.35);
  --esafe-shadow-hover: 0 0 6px 0 rgba(224, 90, 90, 0.5);
  --esafe-soft-bg: #F5F5F5;
  --esafe-soft-border: #DADADA;
  --esafe-soft-text: #9B9B9B;
  --esafe-soft-hover-bg: #FFFFFF;
  --esafe-soft-hover-border: rgba(241, 193, 193, 0.5);
  --esafe-soft-hover-text: #D8677D;
  --esafe-progress-primary: #1E5476;
  --esafe-progress-track: #F5F5F5;
  --esafe-space-1: 4px;
  --esafe-space-2: 8px;
  --esafe-space-3: 12px;
  --esafe-space-4: 16px;
  --esafe-space-5: 24px;
  --esafe-space-6: 32px;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-text);
  line-height: 1.10;
}

.esafe-ui,
.esafe-ui *,
.esafe-ui *::before,
.esafe-ui *::after,
.esafe-sample-view,
.esafe-sample-view *,
.esafe-sample-view *::before,
.esafe-sample-view *::after,
.esafe-plugin-wrap,
.esafe-plugin-wrap *,
.esafe-plugin-wrap *::before,
.esafe-plugin-wrap *::after,
.esafe-admin-wrap,
.esafe-admin-wrap *,
.esafe-admin-wrap *::before,
.esafe-admin-wrap *::after {
  box-sizing: border-box;
}

.esafe-ui a,
.esafe-sample-view a,
.esafe-plugin-wrap a,
.esafe-admin-wrap a {
  color: var(--esafe-link);
  text-decoration: none;
  transition: color 0.25s ease;
}
.esafe-ui a:hover,
.esafe-ui a:focus,
.esafe-sample-view a:hover,
.esafe-sample-view a:focus,
.esafe-plugin-wrap a:hover,
.esafe-plugin-wrap a:focus,
.esafe-admin-wrap a:hover,
.esafe-admin-wrap a:focus {
  color: var(--esafe-link-hover);
  text-decoration: none;
}

.esafe-h1,
.esafe-h2,
.esafe-h3,
.esafe-h4 {
  margin: 0 0 6px 0;
  font-family: var(--esafe-font-secondary);
  line-height: 1.25;
  color: #1E5476;
}
.esafe-h1 { font-size: var(--esafe-h1); font-weight: 900; }
.esafe-h2 { font-size: var(--esafe-h2); font-weight: 600; }
.esafe-h3 { font-size: var(--esafe-h3); font-weight: 600; }
.esafe-h4 { font-size: var(--esafe-h4); font-weight: 600; }
.esafe-text {
  margin: 0 0 14px 0;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-body);
  font-weight: var(--esafe-weight-regular);
  line-height: 1.10;
  color: var(--esafe-text);
}
.esafe-small {
  margin: 0;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-muted);
  line-height: 1.45;
}
.esafe-tiny,
.esafe-kicker,
.esafe-meta {
  margin: 0;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-meta);
  line-height: 1.45;
}

.esafe-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--esafe-space-4);
}
.esafe-section { margin-top: var(--esafe-space-5); }
.esafe-grid {
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(280px, 30%);
  gap: var(--esafe-space-5);
  align-items: start;
}
.esafe-stack { display: grid; gap: var(--esafe-space-4); }
.esafe-row { display: flex; flex-wrap: wrap; gap: var(--esafe-space-3); align-items: center; }
.esafe-col { flex: 1 1 0; min-width: 240px; }

.esafe-page-header,
.esafe-panel-header {
  background: var(--esafe-header-gradient);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--esafe-radius-lg);
  padding: var(--esafe-space-5);
  box-shadow: var(--esafe-shadow-low);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.esafe-page-header:hover,
.esafe-panel-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 8px 0 rgba(224, 90, 90, 0.22);
}
.esafe-card,
.esafe-panel,
.esafe-box,
.esafe-table-card,
.esafe-table-wrap {
  background: var(--esafe-surface);
  border: 1px solid var(--esafe-border);
  border-radius: var(--esafe-radius-md);
  padding: 18px;
  box-shadow: var(--esafe-shadow-low);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.esafe-card:hover,
.esafe-panel:hover,
.esafe-box:hover,
.esafe-table-card:hover,
.esafe-table-wrap:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
  border-color: var(--esafe-soft-hover-border);
  box-shadow: var(--esafe-shadow-card-hover);
}

/* Approved button directive */
.esafe-ui button,
.esafe-sample-view button,
.esafe-plugin-wrap button,
.esafe-admin-wrap button,
.esafe-ui .esafe-soft-button,
.esafe-sample-view .esafe-soft-button,
.esafe-plugin-wrap .esafe-soft-button,
.esafe-admin-wrap .esafe-soft-button,
.esafe-ui .elementor-button.esafe-soft-button,
.esafe-plugin-wrap .elementor-button.esafe-soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 7px 14px;
  background-color: var(--esafe-soft-bg);
  border: 1px solid var(--esafe-soft-border);
  border-radius: 10px;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-xs);
  font-weight: var(--esafe-weight-regular);
  font-style: normal;
  color: var(--esafe-soft-text);
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.esafe-ui button:hover,
.esafe-ui button:focus,
.esafe-sample-view button:hover,
.esafe-sample-view button:focus,
.esafe-plugin-wrap button:hover,
.esafe-plugin-wrap button:focus,
.esafe-admin-wrap button:hover,
.esafe-admin-wrap button:focus,
.esafe-ui .esafe-soft-button:hover,
.esafe-ui .esafe-soft-button:focus,
.esafe-sample-view .esafe-soft-button:hover,
.esafe-sample-view .esafe-soft-button:focus,
.esafe-plugin-wrap .esafe-soft-button:hover,
.esafe-plugin-wrap .esafe-soft-button:focus,
.esafe-admin-wrap .esafe-soft-button:hover,
.esafe-admin-wrap .esafe-soft-button:focus,
.esafe-ui .elementor-button.esafe-soft-button:hover,
.esafe-ui .elementor-button.esafe-soft-button:focus,
.esafe-plugin-wrap .elementor-button.esafe-soft-button:hover,
.esafe-plugin-wrap .elementor-button.esafe-soft-button:focus {
  background-color: var(--esafe-soft-hover-bg);
  border-color: var(--esafe-soft-hover-border);
  box-shadow: var(--esafe-shadow-hover);
  color: var(--esafe-soft-hover-text);
  text-decoration: none;
  outline: none;
}
.esafe-ui button:active,
.esafe-sample-view button:active,
.esafe-plugin-wrap button:active,
.esafe-admin-wrap button:active,
.esafe-ui .esafe-soft-button:active,
.esafe-sample-view .esafe-soft-button:active,
.esafe-plugin-wrap .esafe-soft-button:active,
.esafe-admin-wrap .esafe-soft-button:active {
  outline: none;
  text-decoration: none;
}
.esafe-ui button:disabled,
.esafe-ui button.disabled,
.esafe-sample-view button:disabled,
.esafe-sample-view button.disabled,
.esafe-plugin-wrap button:disabled,
.esafe-plugin-wrap button.disabled,
.esafe-admin-wrap button:disabled,
.esafe-admin-wrap button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.esafe-ui button:disabled:hover,
.esafe-ui button.disabled:hover,
.esafe-sample-view button:disabled:hover,
.esafe-sample-view button.disabled:hover,
.esafe-plugin-wrap button:disabled:hover,
.esafe-plugin-wrap button.disabled:hover,
.esafe-admin-wrap button:disabled:hover,
.esafe-admin-wrap button.disabled:hover {
  background-color: var(--esafe-soft-bg);
  border-color: var(--esafe-soft-border);
  color: var(--esafe-soft-text);
  box-shadow: none;
}
/* icon color inherits button text */
.esafe-ui button svg,
.esafe-sample-view button svg,
.esafe-plugin-wrap button svg,
.esafe-admin-wrap button svg,
.esafe-ui .esafe-soft-button svg,
.esafe-sample-view .esafe-soft-button svg,
.esafe-plugin-wrap .esafe-soft-button svg,
.esafe-admin-wrap .esafe-soft-button svg,
.esafe-ui button .dashicons,
.esafe-sample-view button .dashicons,
.esafe-plugin-wrap button .dashicons,
.esafe-admin-wrap button .dashicons,
.esafe-ui .esafe-soft-button .dashicons,
.esafe-sample-view .esafe-soft-button .dashicons,
.esafe-plugin-wrap .esafe-soft-button .dashicons,
.esafe-admin-wrap .esafe-soft-button .dashicons {
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Tab bar */
.esafe-tab-test-wrap,
.esafe-tab-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 18px;
  background: transparent;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  box-shadow: var(--esafe-shadow-soft);
}
.esafe-tab-test-wrap .esafe-tab-bar,
.esafe-tab-wrap .esafe-tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.esafe-tab-wrap .esafe-tab.active,
.esafe-tab-wrap .esafe-tab[aria-selected="true"],
.esafe-tab-test-wrap .esafe-test-tab.active,
.esafe-tab-test-wrap .esafe-test-tab[aria-selected="true"] {
  background-color: #FFFFFF;
  border-color: rgba(241, 193, 193, 0.5);
  box-shadow: 0 0 6px 0 rgba(224, 90, 90, 0.5);
  color: #D8677D;
  text-decoration: none;
}
.esafe-tab-test-wrap .esafe-tab-content,
.esafe-tab-wrap .esafe-tab-content {
  display: none;
  background: #FFFFFF;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  padding: 18px;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-muted);
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 0 6px 0 rgba(218, 218, 218, 0.35);
}
.esafe-tab-test-wrap .esafe-tab-content.active,
.esafe-tab-wrap .esafe-tab-content.active { display: block; }

/* Forms */
.esafe-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.esafe-field { display: grid; gap: 6px; margin-bottom: 14px; }
.esafe-label {
  display: inline-block;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: 500;
  color: var(--esafe-text);
  line-height: 1.45;
}
.esafe-help {
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-muted);
  line-height: 1.45;
}
.esafe-input,
.esafe-select,
.esafe-textarea {
  width: 100%;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  line-height: 1.45;
  color: var(--esafe-text);
  background: #FFFFFF;
  border: 1px solid var(--esafe-border);
  border-radius: var(--esafe-radius-sm);
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.esafe-input::placeholder,
.esafe-textarea::placeholder { color: var(--esafe-muted); }
.esafe-input:focus,
.esafe-select:focus,
.esafe-textarea:focus {
  border-color: rgba(241, 193, 193, 0.85);
  box-shadow: 0 0 6px 0 rgba(224, 90, 90, 0.35);
}
.esafe-checkbox,
.esafe-radio,
.esafe-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #D8677D;
  cursor: pointer;
}
.esafe-choice { display: inline-flex; align-items: center; gap: 8px; }

/* Table guidance */
.esafe-table-header { margin-bottom: 14px; }
.esafe-table-title {
  margin: 0 0 6px 0;
  font-family: var(--esafe-font-secondary);
  font-size: var(--esafe-h2);
  line-height: 1.25;
  font-weight: 600;
  color: #1E5476;
}
.esafe-table-description {
  margin: 0;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-muted);
  line-height: 1.45;
}
.esafe-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}
.esafe-table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esafe-table-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-meta);
  line-height: 1.45;
}
.esafe-count-label,
.esafe-record-count,
.esafe-selected-count {
  display: inline;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--esafe-meta);
}
.esafe-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  background: #FFFFFF;
}
.esafe-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  color: var(--esafe-text);
  line-height: 1.45;
}
.esafe-table th {
  padding: 10px;
  text-align: left;
  background: var(--esafe-surface-alt);
  border-bottom: 1px solid #E6E6E6;
  white-space: nowrap;
  vertical-align: middle;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: #1E5476;
  line-height: 1.45;
}
.esafe-table th.esafe-sortable {
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
  user-select: none;
}
.esafe-table th.esafe-sortable:hover,
.esafe-table th.esafe-sortable:focus {
  color: #D8677D;
  background: #FFFFFF;
  outline: none;
}
.esafe-sort-label { display: inline-flex; align-items: center; gap: 6px; }
.esafe-sort-indicator {
  font-family: var(--esafe-font-primary);
  font-size: 11px;
  font-weight: var(--esafe-weight-medium);
  color: #9B9B9B;
}
.esafe-table td {
  padding: 10px;
  border-top: 1px solid #E6E6E6;
  vertical-align: middle;
  white-space: nowrap;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-text);
  line-height: 1.45;
}
.esafe-table tbody tr { transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.esafe-table tbody tr:hover { background: rgba(241, 193, 193, 0.12); }
.esafe-table tbody tr.is-selected,
.esafe-table tbody tr.selected {
  background: rgba(224, 90, 90, 0.10);
  box-shadow: inset 3px 0 0 rgba(224, 90, 90, 0.45);
}
.esafe-table .esafe-check-cell { text-align: center; width: 52px; }
.esafe-wrap-cell { white-space: normal !important; word-break: break-word; }
.esafe-print-hide { }

/* Pagination */
.esafe-pagination-test-wrap,
.esafe-pagination-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.esafe-pagination-test-wrap .esafe-pagination-wrap,
.esafe-pagination-container .esafe-pagination-wrap,
.esafe-pagination-wrap {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.esafe-pagination-status {
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-xs);
  font-weight: var(--esafe-weight-regular);
  color: #9B9B9B;
  white-space: nowrap;
  line-height: 1.2;
}
.esafe-pagination-bar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; }
.esafe-page-button,
.esafe-page-ellipsis { min-width: 30px; height: 30px; padding: 6px 9px; line-height: 1; }
.esafe-page-button.active,
.esafe-page-button[aria-current="page"] {
  background-color: #FFFFFF;
  border-color: rgba(241, 193, 193, 0.5);
  box-shadow: 0 0 6px 0 rgba(224, 90, 90, 0.5);
  color: #D8677D;
  text-decoration: none;
}
.esafe-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-xs);
  font-weight: 500;
  color: #9B9B9B;
}
.esafe-page-ellipsis:hover {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #9B9B9B;
}


.esafe-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  min-width: 30px;
  padding: 6px 9px;
  background-color: var(--esafe-soft-bg);
  border: 1px solid var(--esafe-soft-border);
  border-radius: 10px;
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-xs);
  font-weight: var(--esafe-weight-regular);
  color: var(--esafe-soft-text);
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}
.esafe-page-button:hover,
.esafe-page-button:focus {
  background-color: var(--esafe-soft-hover-bg);
  border-color: var(--esafe-soft-hover-border);
  box-shadow: var(--esafe-shadow-hover);
  color: var(--esafe-soft-hover-text);
  text-decoration: none;
  outline: none;
}

/* Plugin specific admin header branding only */
.esafe-admin-wrap .esafe-ga-admin-heading {
  display: flex;
  align-items: center;
  gap: var(--esafe-space-4);
  margin: 16px 0;
}
.esafe-admin-wrap .esafe-admin-logo {
  width: 160px;
  max-width: 160px;
  height: auto;
  display: block;
}
.esafe-admin-wrap .esafe-admin-branding {
  display: grid;
  gap: 4px;
}
.esafe-admin-wrap .esafe-admin-company-line {
  margin: 0;
  font-family: var(--esafe-font-primary);
  font-size: 16px;
  font-weight: var(--esafe-weight-bold);
  color: #1E5476;
}
.esafe-admin-wrap .esafe-admin-company-line a {
  color: #1E5476;
}
.esafe-admin-wrap .esafe-admin-company-line a:hover,
.esafe-admin-wrap .esafe-admin-company-line a:focus {
  color: #C40228;
}
.esafe-admin-wrap .esafe-admin-tagline {
  margin: 0;
  font-family: var(--esafe-font-primary);
  font-size: 12px;
  font-style: italic;
  font-weight: var(--esafe-weight-regular);
  color: #1E5476;
}

/* Public GA Regional News output, no branding */
#esafe-ga-news-start {
  position: relative;
  top: -8px;
  height: 1px;
  width: 1px;
  visibility: hidden;
}
.esafe-plugin-wrap.esafe-ga-news-grid,
.esafe-ui.esafe-ga-news-grid {
  width: 100%;
}
.esafe-plugin-wrap .esafe-ga-news-header,
.esafe-ui .esafe-ga-news-header {
  margin: 8px 0 12px 0;
}
.esafe-plugin-wrap .esafe-ga-toolbar,
.esafe-ui .esafe-ga-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px 0;
}
.esafe-plugin-wrap .esafe-ga-filter-button,
.esafe-ui .esafe-ga-filter-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  position: relative;
}
.esafe-plugin-wrap .esafe-ga-filter-button::before,
.esafe-ui .esafe-ga-filter-button::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  margin: 0 auto;
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.esafe-plugin-wrap .esafe-ga-filter-button-city::before,
.esafe-ui .esafe-ga-filter-button-city::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}
.esafe-plugin-wrap .esafe-ga-filter-button-county::before,
.esafe-ui .esafe-ga-filter-button-county::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-9 9 9v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-9 9 9v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
.esafe-plugin-wrap .esafe-ga-filter-button-search::before,
.esafe-ui .esafe-ga-filter-button-search::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}
.esafe-plugin-wrap .esafe-ga-filter-button[aria-expanded="true"],
.esafe-ui .esafe-ga-filter-button[aria-expanded="true"] {
  background-color: var(--esafe-soft-hover-bg);
  border-color: var(--esafe-soft-hover-border);
  box-shadow: var(--esafe-shadow-hover);
  color: var(--esafe-soft-hover-text);
}
.esafe-plugin-wrap .esafe-ga-reset,
.esafe-ui .esafe-ga-reset {
  min-height: 30px;
  padding: 7px 14px;
}
.esafe-plugin-wrap .esafe-ga-filter-panels,
.esafe-ui .esafe-ga-filter-panels { position: relative; }
.esafe-plugin-wrap .esafe-ga-filter-panel,
.esafe-ui .esafe-ga-filter-panel {
  display: none;
  margin: 6px 0;
  padding: 8px;
  background: var(--esafe-surface);
  border: 1px solid var(--esafe-border);
  border-radius: 10px;
  box-shadow: var(--esafe-shadow-low);
}
.esafe-plugin-wrap .esafe-ga-filter-panel.open,
.esafe-ui .esafe-ga-filter-panel.open {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.esafe-plugin-wrap .esafe-ga-filter-panel .esafe-label,
.esafe-ui .esafe-ga-filter-panel .esafe-label { flex-basis: 100%; }
.esafe-plugin-wrap .esafe-ga-filter-panel .esafe-select,
.esafe-plugin-wrap .esafe-ga-filter-panel .esafe-input,
.esafe-ui .esafe-ga-filter-panel .esafe-select,
.esafe-ui .esafe-ga-filter-panel .esafe-input { max-width: 260px; }
.esafe-plugin-wrap .esafe-ga-news-grid-inner,
.esafe-ui .esafe-ga-news-grid-inner {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.esafe-plugin-wrap.esafe-ga-news-grid[data-cols="1"] .esafe-ga-news-grid-inner,
.esafe-ui.esafe-ga-news-grid[data-cols="1"] .esafe-ga-news-grid-inner { grid-template-columns: 1fr; }
.esafe-plugin-wrap.esafe-ga-news-grid[data-cols="2"] .esafe-ga-news-grid-inner,
.esafe-ui.esafe-ga-news-grid[data-cols="2"] .esafe-ga-news-grid-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esafe-plugin-wrap.esafe-ga-news-grid[data-cols="3"] .esafe-ga-news-grid-inner,
.esafe-ui.esafe-ga-news-grid[data-cols="3"] .esafe-ga-news-grid-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.esafe-plugin-wrap.esafe-ga-news-grid[data-cols="4"] .esafe-ga-news-grid-inner,
.esafe-ui.esafe-ga-news-grid[data-cols="4"] .esafe-ga-news-grid-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.esafe-plugin-wrap .esafe-ga-card,
.esafe-plugin-wrap .esafe-ga-card:hover,
.esafe-plugin-wrap .esafe-ga-card *,
.esafe-ui .esafe-ga-card,
.esafe-ui .esafe-ga-card:hover,
.esafe-ui .esafe-ga-card * { text-decoration: none !important; }
.esafe-plugin-wrap .esafe-ga-card,
.esafe-ui .esafe-ga-card {
  display: block;
  overflow: hidden;
  color: inherit;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid var(--esafe-border);
  border-radius: 10px;
  box-shadow: var(--esafe-shadow-low);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.esafe-plugin-wrap .esafe-ga-card:hover,
.esafe-ui .esafe-ga-card:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
  border-color: var(--esafe-soft-hover-border);
  box-shadow: var(--esafe-shadow-card-hover);
}
.esafe-plugin-wrap .esafe-ga-image img,
.esafe-ui .esafe-ga-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.esafe-plugin-wrap .esafe-source-inline,
.esafe-ui .esafe-source-inline {
  padding: 8px 12px 0 12px;
  color: var(--esafe-muted);
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  line-height: 1.45;
}
.esafe-plugin-wrap .esafe-source-txt,
.esafe-ui .esafe-source-txt { font-weight: var(--esafe-weight-bold); }
.esafe-plugin-wrap .esafe-source-sep,
.esafe-ui .esafe-source-sep { padding: 0 4px; }
.esafe-plugin-wrap .esafe-host-txt,
.esafe-ui .esafe-host-txt { font-weight: var(--esafe-weight-regular); }
.esafe-plugin-wrap .esafe-ga-location,
.esafe-plugin-wrap .esafe-ga-date,
.esafe-ui .esafe-ga-location,
.esafe-ui .esafe-ga-date {
  padding: 0 12px;
  color: var(--esafe-meta);
  font-family: var(--esafe-font-primary);
  font-size: var(--esafe-text-sm);
  line-height: 1.45;
}
.esafe-plugin-wrap .esafe-ga-title,
.esafe-ui .esafe-ga-title {
  padding: 4px 12px 12px 12px;
  font-family: var(--esafe-font-secondary);
  font-weight: 600;
  font-size: var(--esafe-h4);
  line-height: 1.25;
  color: #1E5476;
}
.esafe-plugin-wrap .esafe-ga-empty,
.esafe-ui .esafe-ga-empty {
  padding: 18px;
  grid-column: 1 / -1;
}

/* Browser/selected print support */
@media print {
  body * { visibility: hidden; }
  .esafe-print-area,
  .esafe-print-area * { visibility: visible; }
  .esafe-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    border: none !important;
    background: #FFFFFF !important;
  }
  .esafe-table-actions,
  .esafe-pagination-test-wrap,
  .esafe-pagination-container,
  .esafe-no-print,
  .esafe-print-hide,
  .esafe-check-cell {
    display: none !important;
  }
  .esafe-table-scroll {
    overflow: visible !important;
    border: none !important;
  }
  body.esafe-printing-table .esafe-print-area tbody tr { display: none !important; }
  body.esafe-printing-table .esafe-print-area tbody tr.esafe-print-selected { display: table-row !important; }
  .esafe-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto !important;
    font-size: 12px;
  }
  .esafe-table th,
  .esafe-table td {
    white-space: normal !important;
    word-break: break-word;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .esafe-container { padding: 0 var(--esafe-space-3); }
  .esafe-plugin-wrap.esafe-ga-news-grid[data-cols="3"] .esafe-ga-news-grid-inner,
  .esafe-ui.esafe-ga-news-grid[data-cols="3"] .esafe-ga-news-grid-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .esafe-grid,
  .esafe-form-grid { grid-template-columns: 1fr; }
  .esafe-table-toolbar { align-items: stretch; }
  .esafe-table-actions,
  .esafe-table-counts { width: 100%; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .esafe-ui,
  .esafe-sample-view,
  .esafe-plugin-wrap,
  .esafe-admin-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .esafe-tab-test-wrap,
  .esafe-tab-wrap { padding: 20px; }
  .esafe-tab-test-wrap .esafe-tab-bar,
  .esafe-tab-wrap .esafe-tab-bar { flex-direction: column; align-items: stretch; }
  .esafe-tab-test-wrap .esafe-test-tab,
  .esafe-tab-wrap .esafe-tab { width: 100%; text-align: center; }
  .esafe-pagination-test-wrap .esafe-pagination-wrap,
  .esafe-pagination-container .esafe-pagination-wrap,
  .esafe-pagination-wrap { flex-direction: column; align-items: flex-end; gap: 8px; }
  .esafe-pagination-bar { max-width: 100%; justify-content: flex-end; }
  .esafe-page-button,
  .esafe-page-ellipsis { min-width: 30px; height: 30px; padding: 6px 9px; }
  .esafe-table { min-width: 1180px; }
}
@media (max-width: 480px) {
  .esafe-page-header,
  .esafe-panel-header { padding: var(--esafe-space-4); }
  .esafe-plugin-wrap .esafe-ga-news-grid-inner,
  .esafe-ui .esafe-ga-news-grid-inner { grid-template-columns: 1fr !important; }
  .esafe-plugin-wrap .esafe-ga-filter-panel .esafe-select,
  .esafe-plugin-wrap .esafe-ga-filter-panel .esafe-input,
  .esafe-ui .esafe-ga-filter-panel .esafe-select,
  .esafe-ui .esafe-ga-filter-panel .esafe-input { max-width: none; }
  .esafe-admin-wrap .esafe-ga-admin-heading { flex-direction: column; align-items: flex-start; }
}
