/**
 * Google Admin Console (Enterprise Material) theme
 * Use with body class "theme-google-admin" or apply classes to components.
 */

/* ========== CSS Variables ========== */
:root {
  /* Backgrounds */
  --ga-bg-page: #f0f2f5;
  --ga-bg-card: #ffffff;
  --ga-bg-row-hover: #e8eaed;
  --ga-bg-table-header: #f8f9fa;
  --ga-bg-search: #f1f3f4;

  /* Borders */
  --ga-border: 1px solid #dadce0;
  --ga-border-focus: 2px solid #1a73e8;

  /* Shadows */
  --ga-shadow-base: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  --ga-shadow-hover: 0 1px 3px 1px rgba(60, 64, 67, 0.15);

  /* Typography – Google Material 3 / Google standard (Roboto) */
  --ga-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ga-heading-color: #202124;
  --ga-body-color: #3c4043;
  --ga-body-size: 14px;
  --ga-muted-color: #5f6368;

  /* Primary */
  --ga-primary: #1a73e8;
  --ga-primary-text: #ffffff;
}

/* ========== Base (when theme is active) ========== */
/* Same theme + font on dashboard and all sub-pages */
body.theme-google-admin {
  background-color: var(--ga-bg-page) !important;
  font-family: var(--ga-font);
  font-size: var(--ga-body-size);
  color: var(--ga-body-color);
  --bs-body-font-family: var(--ga-font);
}

body.theme-google-admin main,
body.theme-google-admin .container,
body.theme-google-admin .container-fluid,
body.theme-google-admin .card,
body.theme-google-admin .card-body,
body.theme-google-admin .table,
body.theme-google-admin .form-control,
body.theme-google-admin .form-select,
body.theme-google-admin .form-label,
body.theme-google-admin .navbar-google,
body.theme-google-admin .btn,
body.theme-google-admin input,
body.theme-google-admin select,
body.theme-google-admin textarea {
  font-family: var(--ga-font);
}

body.theme-google-admin h1,
body.theme-google-admin h2,
body.theme-google-admin h3,
body.theme-google-admin h4,
body.theme-google-admin h5,
body.theme-google-admin h6 {
  color: var(--ga-heading-color);
  font-weight: 400;
}

body.theme-google-admin h5 { font-weight: 500; }

/* ========== Google Interactive Cards ========== */
.card-google {
  background: var(--ga-bg-card);
  border: var(--ga-border);
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-google:hover {
  transform: translateY(-2px);
  box-shadow: var(--ga-shadow-hover);
  color: inherit;
}

/* Table/list cards: no hover lift so row targets don't shift under the cursor */
.card-google:has(table):hover,
.card-google.card-google-no-hover:hover {
  transform: none;
  box-shadow: none;
}

.card-google .card-google-body {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Cards with icon + text: align text from same left offset (icon fixed width + gap) */
.card-google .card-google-body:has(.module-icon) {
  justify-content: flex-start;
}

.card-google .card-google-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.card-google .card-google-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--ga-muted-color);
}

/* Icon inherits parent color so permission-based classes (text-primary, text-muted, etc.) apply */
.card-google .card-google-icon .zmdi {
  color: inherit;
}

/* Only cards with access get primary icon on hover */
.card-google[data-allow="True"]:hover .card-google-icon {
  color: var(--ga-primary);
}
.card-google[data-allow="True"]:hover .card-google-icon .zmdi {
  color: inherit;
}

.card-google .card-google-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ga-heading-color);
  margin: 0 0 0.125rem 0;
}

.card-google .card-google-desc {
  font-size: 0.8125rem;
  color: var(--ga-muted-color);
  margin: 0;
}

.card-google .card-google-arrow {
  flex-shrink: 0;
  color: var(--ga-muted-color);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.card-google:hover .card-google-arrow {
  opacity: 1;
  color: var(--ga-primary);
}

/* ========== Google Material Tables ========== */
.table-google {
  --bs-table-bg: var(--ga-bg-card);
  --bs-table-border-color: #dadce0;
  font-size: 14px;
}

.table-google thead th {
  background-color: var(--ga-bg-table-header) !important;
  color: var(--ga-muted-color) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: var(--ga-border);
  border-top: none;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.table-google tbody tr {
  height: 48px;
}
.table-google tbody tr:nth-child(odd) td {
  background-color: #fff;
}
.table-google tbody tr:nth-child(even) td {
  background-color: #f8f9fa;
}

.table-google tbody tr:hover td {
  background-color: var(--ga-bg-row-hover) !important;
}

.table-google tbody td {
  border-bottom: 1px solid #e8eaed;
  padding: 0 1rem;
  vertical-align: middle;
  color: var(--ga-body-color);
}

.table-google tbody tr:last-child td {
  border-bottom-color: transparent;
}

/* Action column: do not shrink; prevent wrap */
.ga-table-col-actions {
  width: 1%;
  min-width: 160px;
  white-space: nowrap;
  text-align: right !important;
}

/* Sortable table headers */
.table-google .ga-th-sortable {
  cursor: pointer;
  user-select: none;
}
.table-google .ga-th-sortable a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.table-google .ga-th-sortable a:hover {
  color: var(--ga-primary);
}
.table-google .ga-th-sortable .ga-sort-icon {
  font-size: 16px;
  color: var(--ga-muted-color);
}
.table-google .ga-th-sortable.ga-th-sorted .ga-sort-icon {
  color: var(--ga-primary);
}

/* ========== Breadcrumb (single source in layout) ========== */
body.theme-google-admin .breadcrumb {
  font-size: 12px;
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}
body.theme-google-admin .breadcrumb-item a {
  color: var(--ga-primary);
  text-decoration: none;
}
body.theme-google-admin .breadcrumb-item a:hover {
  text-decoration: underline;
}
body.theme-google-admin .breadcrumb-item.active {
  color: var(--ga-muted-color);
}
body.theme-google-admin .breadcrumb-item + .breadcrumb-item::before {
  color: var(--ga-muted-color);
}

/* ========== Navbar Google style ========== */
.navbar-google {
  background-color: #ffffff !important;
  border-bottom: var(--ga-border);
  box-shadow: none !important;
  min-height: 64px;
}

.navbar-google .navbar-brand {
  color: var(--ga-heading-color) !important;
  font-weight: 500;
  font-size: 1.25rem;
}

.navbar-google .nav-link {
  color: var(--ga-body-color) !important;
  font-size: 14px;
}

.navbar-google .nav-link:hover {
  color: var(--ga-primary) !important;
}

.navbar-google .dropdown-toggle::after {
  border-top-color: var(--ga-muted-color);
}

/* ========== Buttons ========== */
body.theme-google-admin .btn-primary,
.btn-google-primary {
  background-color: var(--ga-primary);
  color: var(--ga-primary-text);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  box-shadow: none;
}

body.theme-google-admin .btn-primary:hover,
.btn-google-primary:hover {
  background-color: #1557b0;
  color: var(--ga-primary-text);
  box-shadow: none;
}

body.theme-google-admin .btn-outline-primary,
.btn-google-secondary {
  background-color: #ffffff;
  color: var(--ga-primary);
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-weight: 500;
}

body.theme-google-admin .btn-outline-primary:hover,
.btn-google-secondary:hover {
  background-color: #f8f9fa;
  border-color: var(--ga-primary);
  color: var(--ga-primary);
}

/* ========== Form controls ========== */
body.theme-google-admin .form-control,
body.theme-google-admin .form-select {
  border: var(--ga-border);
  border-radius: 4px;
  min-height: 40px;
  font-size: 14px;
  color: var(--ga-body-color);
}

body.theme-google-admin .form-control:focus,
body.theme-google-admin .form-select:focus {
  border: var(--ga-border-focus);
  box-shadow: none;
  outline: none;
}

/* ========== Cards (generic white container) ========== */
body.theme-google-admin .card {
  background-color: var(--ga-bg-card);
  border: var(--ga-border);
  border-radius: 8px;
  box-shadow: none;
}

body.theme-google-admin .card-header {
  background-color: var(--ga-bg-table-header);
  border-bottom: var(--ga-border);
  color: var(--ga-heading-color);
  font-weight: 500;
  font-size: 14px;
}

/* ========== Icons (zmdi) ========== */
body.theme-google-admin .zmdi {
  color: var(--ga-muted-color);
}

body.theme-google-admin a:hover .zmdi,
body.theme-google-admin .btn-primary .zmdi,
body.theme-google-admin .text-primary .zmdi {
  color: var(--ga-primary);
}

/* Colored icon wrappers (permission or semantic): override default muted so dashboard and inner pages show correct colors */
body.theme-google-admin .text-primary .zmdi { color: var(--ga-primary); }
body.theme-google-admin .text-success .zmdi { color: #1e8e3e; }
body.theme-google-admin .text-info .zmdi { color: #039be5; }
body.theme-google-admin .text-warning .zmdi { color: #f9ab00; }
body.theme-google-admin .text-danger .zmdi { color: #d93025; }
body.theme-google-admin .text-secondary .zmdi { color: #5f6368; }

/* Permission-based: icons inside .card-google-icon get parent color (allowed = colored, denied = muted) */
body.theme-google-admin .card-google .card-google-icon .zmdi {
  color: inherit;
}

/* ========== App shell: topbar + body (sidebar + main) – Google Admin style ========== */
.ga-app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Top navbar: full width, TGG HIVE + hamburger + nav + profile (always visible) */
.ga-topbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  min-height: 56px;
  padding: 0 1rem;
  background: var(--ga-bg-card);
  border-bottom: var(--ga-border);
  flex-shrink: 0;
  position: relative;
  z-index: 1035;
  overflow: visible;
}
@media (max-width: 991.98px) {
  .ga-topbar { padding-left: 0.5rem; padding-right: 0.5rem; align-items: center; }
  .ga-sidebar-toggle { width: 44px; height: 44px; margin: 0 -0.25rem; flex-shrink: 0; }
  .ga-sidebar-toggle .zmdi { font-size: 1.35rem; }
  /* Free space on mobile: hide module name from topbar (breadcrumb below shows page context) */
  .ga-topbar-module,
  .ga-header-brand.ga-topbar-module { display: none !important; }
  .ga-topbar-brand { flex-shrink: 1; min-width: 0; }
}
.ga-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
  margin-right: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ga-heading-color);
  font-weight: 500;
  font-size: 1.125rem;
}
.ga-topbar-brand:hover {
  color: var(--ga-primary);
}
.ga-topbar-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
@media (max-width: 991.98px) {
  .ga-topbar-title { max-width: 140px; }
}
.ga-topbar-module {
  display: none;
  margin-left: 0.5rem;
}
.ga-app-shell.ga-sidebar-collapsed .ga-topbar-module {
  display: inline-flex;
}
@media (max-width: 991.98px) {
  .ga-topbar-module { display: none !important; }
}
.ga-topbar .ga-header-brand { margin-left: 0; min-width: 0; }

/* Profile dropdown: above overlay, clickable items */
.ga-profile-dropdown {
  z-index: 1060 !important;
}
.ga-profile-dropdown .dropdown-item {
  cursor: pointer;
}

/* Body: sidebar + main content (below topbar) */
.ga-body-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Legacy .ga-header (kept for shared nav styles) */
.ga-header {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 1rem;
  background: var(--ga-bg-card);
  border-bottom: var(--ga-border);
  flex-shrink: 0;
}
.ga-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 -0.5rem;
  color: var(--ga-body-color);
  border: none;
  border-radius: 50%;
  text-decoration: none;
}
.ga-sidebar-toggle:hover {
  background: var(--ga-bg-row-hover);
  color: var(--ga-body-color);
}
.ga-sidebar-toggle .zmdi {
  font-size: 1.5rem;
}

/* Logo + module name when sidebar is collapsed (reference image 2) */
.ga-header-brand {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.25rem;
  min-width: 0;
}
.ga-app-shell.ga-sidebar-collapsed .ga-header-brand {
  display: inline-flex;
}
@media (max-width: 991.98px) {
  .ga-header-brand { display: inline-flex; }
}
.ga-header-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--ga-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.ga-topbar-brand .ga-header-logo {
  flex-shrink: 0;
}
.ga-header-brand {
  min-width: 0;
}
.ga-header-module-name {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ga-heading-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
@media (max-width: 991.98px) {
  .ga-header-module-name { max-width: 120px; }
}

.ga-header-spacer { flex: 1; min-width: 0; }
.ga-header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.ga-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 44px;
  color: var(--ga-body-color);
  border-radius: 50%;
  box-sizing: border-box;
}
.ga-header-link:hover { color: var(--ga-primary); background: var(--ga-bg-row-hover); }
/* Profile: hover only on the circle (avatar), not the dropdown arrow / whole link */
.ga-header-profile.ga-header-link:hover { background: transparent !important; color: inherit; }
.ga-header-profile .ga-header-avatar { transition: box-shadow 0.15s ease; }
.ga-header-profile:hover .ga-header-avatar { box-shadow: 0 0 0 2px var(--ga-bg-row-hover); }
.ga-header-icon {
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Profile circle: initials in dark blue circle (reference image 1) */
.ga-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: #1967d2;
  border-radius: 50%;
  letter-spacing: 0.02em;
}
.ga-header-profile.ga-header-link {
  padding: 0.25rem 0.5rem;
  min-height: 44px;
  align-items: center;
}
.ga-header-profile.dropdown-toggle::after { margin-left: 0.35rem; }

/* Backdrop for mobile sidebar overlay */
.ga-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ga-sidebar-backdrop.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar: below topbar, default 280px; collapsed 64px (desktop); mobile = overlay below topbar */
.ga-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--ga-bg-card);
  border-right: var(--ga-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1030;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1),
              min-width 320ms cubic-bezier(0.22, 1, 0.36, 1),
              left 320ms cubic-bezier(0.22, 1, 0.36, 1);
  align-self: stretch;
}
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar {
  width: 64px;
  min-width: 64px;
}
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar-label,
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar-chevron-wrap,
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar-chevron-spacer { display: none !important; }
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar-link { justify-content: center; padding-left: 0.5rem; padding-right: 0.5rem; }
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar-sublist { display: none !important; }
.ga-app-shell.ga-sidebar-collapsed .ga-sidebar-section.open .ga-sidebar-sublist { display: none !important; }

@media (max-width: 991.98px) {
  .ga-sidebar {
    position: fixed;
    top: 56px;
    left: -280px;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    height: calc(100vh - 56px);
    z-index: 1050;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }
  .ga-app-shell.ga-sidebar-mobile-open .ga-sidebar {
    left: 0;
  }
}

.ga-sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}

.ga-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ga-sidebar-item {
  margin: 0;
}

.ga-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #3c4043;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--ga-font);
  border-radius: 0 24px 24px 0;
  margin-right: 8px;
  transition: background-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
              color 220ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default (non-hover) state: grey icon/label per design */
.ga-sidebar-link:not(:hover):not(.active):not(:disabled) {
  color: var(--ga-muted-color);
}
.ga-sidebar-link:not(:hover):not(.active):not(:disabled) .ga-sidebar-icon,
.ga-sidebar-link:not(:hover):not(.active):not(:disabled) .ga-sidebar-chevron {
  filter: invert(40%) sepia(1%) saturate(2286%) hue-rotate(174deg) brightness(92%) contrast(86%);
}

/* Active and hover: image 4 style – light blue fill, blue text/icon */
.ga-sidebar-link:hover:not(:disabled),
.ga-sidebar-link.active {
  background: #e8f0fe;
  color: var(--ga-primary);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.08);
}

.ga-sidebar-link.active {
  font-weight: 500;
}

.ga-sidebar-link:hover:not(:disabled) .ga-sidebar-icon,
.ga-sidebar-link.active .ga-sidebar-icon,
.ga-sidebar-link:hover:not(:disabled) .ga-sidebar-chevron,
.ga-sidebar-link.active .ga-sidebar-chevron {
  color: var(--ga-primary);
  filter: none;
}

/* Spacer so items without subcategory align with items that have chevron (same left edge) */
.ga-sidebar-chevron-spacer {
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  flex-shrink: 0;
  order: -1;
}

.ga-sidebar-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Direction icon: fixed left column so alignment stays when open/closed (image 3) */
.ga-sidebar-chevron-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  flex-shrink: 0;
  order: -1;
}

.ga-sidebar-chevron {
  font-size: 1.25rem;
  color: #3c4043;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ga-sidebar-toggle-section.open .ga-sidebar-chevron {
  transform: rotate(90deg);
}

.ga-sidebar-link .zmdi.ga-sidebar-icon {
  width: 28px;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: inherit;
}

.ga-sidebar-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kırılımlar sağa doğru (image 2/4): alt kırılımlar ve başlıklar hep daha sağdan başlamalı */
.ga-sidebar-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  will-change: max-height, opacity, transform;
  transition: max-height 340ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Level 1 sub-items: clear indent to the right of parent (Google Admin style) */
.ga-sidebar-sublist-level1 {
  padding-left: 3rem;
}

.ga-sidebar-section.open > .ga-sidebar-sublist {
  max-height: 3000px;
  opacity: 1;
  transform: translateY(0);
}

/* Level 2: section headings and sub-sections start further right */
.ga-sidebar-sublist-level2 {
  padding-left: 2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  will-change: max-height, opacity, transform;
  transition: max-height 340ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ga-sidebar-section-level2.open .ga-sidebar-sublist-level2 {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

/* Level 3: leaf links, again further right so clearly sub-items */
.ga-sidebar-sublist-level2 .ga-sidebar-sublink-level3 {
  padding-left: 1.5rem;
}

.ga-sidebar-link-level2 {
  padding: 0.375rem 0.75rem;
  font-size: 14px;
}

.ga-sidebar-link-level2 .ga-sidebar-chevron {
  font-size: 1.125rem;
}

.ga-sidebar-sublink {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-weight: 400;
  color: #3c4043;
  text-decoration: none;
  border-radius: 0 20px 20px 0;
  margin-right: 8px;
  font-family: var(--ga-font);
  transition: background-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
              color 220ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Direct links (no sub-menu): align text with level2 section labels that have chevron (same hierarchy as image 2) */
.ga-sidebar-sublist-level1 > li > .ga-sidebar-sublink {
  padding-left: 2.25rem; /* 0.75rem + 24px chevron width so text aligns with Master Veri / İşlemler */
}

.ga-sidebar-sublink:hover {
  background: #e8f0fe;
  color: var(--ga-primary);
  transform: translateX(1px);
}

.ga-sidebar-sublink.active {
  font-weight: 500;
  color: var(--ga-primary);
  background: #e8f0fe;
}

.ga-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ga-main {
  flex: 1;
  padding: 1rem 1.5rem;
  overflow-x: hidden;
}

@media (max-width: 991.98px) {
  .ga-main {
    padding: 1rem;
  }
}

/* ========== Main content area ========== */
body.theme-google-admin main {
  background-color: transparent;
}

/* ========== Footer ========== */
body.theme-google-admin footer {
  color: var(--ga-muted-color);
  border-top: var(--ga-border);
  background: var(--ga-bg-card);
}

/* ========== Attendance Sheet Details (Google Admin–style matrix checkboxes) ========== */
body.theme-google-admin .attendance-fullname {
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Checkbox standard (project-wide): admin.google.com style – applies to all .form-check-input and .ga-matrix-checkbox */
body.theme-google-admin .form-check-input,
body.theme-google-admin .ga-matrix-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  border: 2px solid #dadce0;
  border-radius: 4px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

body.theme-google-admin .form-check-input:hover:not(:disabled),
body.theme-google-admin .ga-matrix-checkbox:hover:not(:disabled) {
  border-color: #1a73e8;
  border-width: 2px;
  background-color: #e8f0fe;
}

body.theme-google-admin .form-check-input:hover:not(:checked):not(:disabled),
body.theme-google-admin .ga-matrix-checkbox:hover:not(:checked):not(:disabled) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa0a6'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

body.theme-google-admin .form-check-input:focus,
body.theme-google-admin .ga-matrix-checkbox:focus {
  outline: none;
  border-color: #1a73e8;
  background-color: #e8f0fe;
}

body.theme-google-admin .form-check-input:checked,
body.theme-google-admin .ga-matrix-checkbox:checked {
  background-color: #e8f0fe;
  border-color: #1a73e8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a73e8'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

body.theme-google-admin .form-check-input:checked:hover:not(:disabled),
body.theme-google-admin .form-check-input:checked:focus,
body.theme-google-admin .ga-matrix-checkbox:checked:hover:not(:disabled),
body.theme-google-admin .ga-matrix-checkbox:checked:focus {
  border-color: #1557b0;
  border-width: 2px;
  background-color: #e8f0fe;
  box-shadow: 0 0 0 1px #e8f0fe;
}

body.theme-google-admin .form-check-input:disabled,
body.theme-google-admin .ga-matrix-checkbox:disabled {
  cursor: not-allowed;
  background-color: #f1f3f4;
  border-color: #dadce0;
}

body.theme-google-admin .form-check-input:disabled:checked,
body.theme-google-admin .ga-matrix-checkbox:disabled:checked {
  background-color: #f1f3f4;
  border-color: #dadce0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
