/* FILE: public/timer-app/styles/main.css */

/* =========================================================
   ✅ CLEAN + FIXED (SINGLE FILE)
   - Mobil cards CSS (entry-card*)
   - Overlays blokkerer ikke klikk (pointer-events)
   - ADMIN MENU: "glassplate" fjernet (0x0 panel + absolute card/fab)
   - Full bredde/høyde + bedre kontrast
   ========================================================= */

:root{
  --bg:#0f0f10;
  --panel: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 12px 40px rgba(0,0,0,0.55);
  --red:#c00;
  --red2:#900;
  --green:#39ff8a;
  --text:#ffffff;
  --muted: rgba(255,255,255,0.72);
  --row: rgba(255,255,255,0.06);
  --row2: rgba(255,255,255,0.03);
}

*{ box-sizing:border-box; }
html, body{ height:100%; width:100%; overflow-x:hidden; }

body{
  margin:0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height:100vh;
  -webkit-text-size-adjust: 100%;
}

*{ color-scheme: dark; }

#timerBootSplash{
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(204,0,0,0.22), transparent 32%),
    linear-gradient(180deg, rgba(15,15,16,0.96), rgba(8,8,9,0.98));
}

.timerBootCard{
  width: min(460px, 92vw);
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  text-align: center;
}

.timerBootTitle{
  font-size: 1.35rem;
  font-weight: 900;
}

.timerBootText{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

table, th, td, div, p, span, li, label, small, h1,h2,h3,h4 { color: var(--text); }
a{ color: #fff; }
.hidden{ display:none !important; }

/* =========================================================
   ✅ INPUTS / SELECTS / BUTTONS
   ========================================================= */
input, select{
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
  background: rgba(255,255,255,0.10);
  color:#fff;

  position: relative;
  z-index: 20;
}

button{
  width: 95%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background-color: var(--red);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;

  position: relative;
  z-index: 20;
}
button:hover{ background-color: var(--red2); }

/* språkknapp-look (samme overalt) */
.lang-btn{
  width:auto;
  margin:0;
  padding:12px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  color:#fff;
  font-weight:900;
}

/* =========================================================
   ✅ PAGES FULL WIDTH/HEIGHT
   ========================================================= */
#loginWrapper,
#app,
#chartsPage,
#coolingPage{
  width: 100%;
  min-height: 100vh;
  height: auto;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

/* Mer plass nederst pga fixed knapper/paneler */
#app{
  display:none;
  padding: 18px 18px 140px 18px;
  width: 100%;
}

@media (min-width: 641px){
  #app{
    padding-left: 330px;
  }
}

/* fallback hvis du har wrappers */
#app > .frame,
#app > .phone,
#app > .shell,
#app > .device,
#app > .container{
  max-width:none !important;
  width:100% !important;
}

/* =========================================================
   ✅ FLEX ITEMS / PANELS
   ========================================================= */
.flex-item{
  padding:20px;
  border-radius:16px;
  background-color: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.timerHero{
  display:grid;
  gap: 18px;
  margin: 84px 0 18px 0;
}

.timerHeroText{
  padding: 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(204,0,0,0.24), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

.timerHeroText h1{
  margin: 0 0 8px 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.timerHeroDesc{
  margin: 12px 0 0 0;
  color: var(--muted);
  font-weight: 700;
}

.timerSyncBanner{
  margin-top: 16px;
  display:flex;
  align-items:flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
}

.timerSyncBadge{
  flex: 0 0 auto;
  min-width: 96px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.timerSyncBadge.is-synced{
  background: rgba(57,255,138,0.14);
  color: var(--green);
  border-color: rgba(57,255,138,0.28);
}

.timerSyncBadge.is-saving,
.timerSyncBadge.is-loading{
  background: rgba(255,193,7,0.14);
  color: #ffd76b;
  border-color: rgba(255,193,7,0.25);
}

.timerSyncBadge.is-local_only{
  background: rgba(99,102,241,0.16);
  color: #c7d2fe;
  border-color: rgba(99,102,241,0.28);
}

.timerSyncBadge.is-error{
  background: rgba(255,85,85,0.15);
  color: #ff9c9c;
  border-color: rgba(255,85,85,0.30);
}

.timerSyncTextWrap{
  min-width: 0;
}

.timerSyncTitle{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 900;
}

.timerSyncText{
  margin-top: 6px;
  color: #f3f4f6;
  font-weight: 800;
  line-height: 1.4;
}

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

.timerStatCard,
.timerQuickCard{
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
}

.timerStatCard-focus{
  background:
    radial-gradient(circle at top right, rgba(57,255,138,0.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}

.timerStatLabel,
.timerQuickLabel{
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 900;
}

.timerStatValue,
.timerQuickValue{
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.sidePanelCard{
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
}

.timerMainCard{
  background:
    radial-gradient(circle at top right, rgba(204,0,0,0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}

.timerPanelHeader,
.timerEntriesToolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.timerPanelDesc{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-weight: 700;
}

.timerEditBadge{
  align-self: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(57,255,138,0.12);
  color: var(--green);
  border: 1px solid rgba(57,255,138,0.26);
  font-weight: 900;
}

.timerFormGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.timerFormGrid .field{
  margin: 0;
}

.timerFormGrid input,
.timerFormGrid select{
  width: 100%;
  margin: 6px 0 0 0;
}

.timerActionRow{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.timerActionRow button{
  width:auto;
  margin:0;
  padding: 12px 16px;
  min-width: 160px;
}

.timerQuickStats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.timerEntriesShell{
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

.timerEntriesToolbar{
  margin-bottom: 14px;
}

.timerEntriesToolbarText h2{
  margin: 0;
}

.timerPeriodFilters{
  display:flex;
  align-items:flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.compactField{
  min-width: 180px;
}

.compactField select{
  width: 100%;
  margin-top: 6px;
}

/* =========================================================
   ✅ ENTRIES TABLE
   ========================================================= */
.employee-block{
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  overflow-x: auto;
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}

.employee-block-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.employee-block-meta{
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.employee-block h3{
  color: #fff;
  margin: 0;
  font-size: 1rem;
}

table{
  border-collapse:collapse;
  width:100%;
  margin-top:10px;
  border-radius:18px;
  overflow:hidden;
  min-width: 680px;
  background: rgba(10,10,10,0.34);
  border: 1px solid rgba(255,255,255,0.10);
}

th, td{
  padding:8px 10px;
  text-align:center;
  white-space: nowrap;
  color: #fff;
}

th{
  background: linear-gradient(180deg, rgba(204,0,0,0.95), rgba(144,0,0,0.95));
  color:#fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

tr:nth-child(even){ background-color: var(--row2); }
tr:nth-child(odd){ background-color: var(--row); }
tr:hover{ background-color: rgba(255,255,255,0.14); }

.delete-btn{
  color:#fff;
  background:#ff5555;
  font-weight:bold;
  border:none;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
  font-size:0.9rem;
  width:auto;
}
.delete-btn:hover{ filter: brightness(0.9); }

.total-income{
  font-weight:bold;
  margin-top:10px;
  text-align:right;
  color: var(--green);
  font-size: 0.92rem;
}

/* =========================================================
   ✅ MOBILE: Entry Cards (brukes av time.js når isMobile())
   ========================================================= */
.entry-cards{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.entry-card{
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.entry-card-top{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 10px;
}

.entry-card-date{
  font-weight: 900;
  line-height: 1.25;
  max-width: 70%;
}

.entry-card-topright{
  text-align:right;
  display:flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.entry-card-hours{ font-weight: 900; color: rgba(255,255,255,0.92); }
.entry-card-pay{ font-weight: 900; color: var(--green); }

.entry-card-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.entry-card-item{
  padding: 10px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
}

.entry-card-label{
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.entry-card-value{
  font-weight: 900;
  font-size: 16px;
}

.entries-meta-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 14px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.week-block{
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.week-block-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.week-block-title{
  font-size: 1rem;
  font-weight: 900;
}

.week-block-meta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.week-block-totals{
  color: var(--green);
  font-weight: 900;
  font-size: 0.95rem;
}

.week-block-body{
  display:grid;
  gap: 10px;
}

.team-day-block{
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}

.team-day-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.team-day-title{
  font-size: 1rem;
  font-weight: 900;
}

.team-day-meta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.team-day-totals{
  color: var(--green);
  font-weight: 900;
  font-size: 0.95rem;
}

.team-day-list{
  display:grid;
  gap: 8px;
}

.team-shift-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

.team-shift-name{
  font-weight: 900;
}

.team-shift-meta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.team-shift-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-action-btn{
  width:auto;
  margin:0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.85rem;
}

.compact-action-btn-danger{
  background: rgba(255,85,85,0.88);
}

.auditLogCard{
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}

.auditLog-created{
  border-color: rgba(57,255,138,0.28);
}

.auditLog-updated{
  border-color: rgba(255,204,0,0.28);
}

.auditLog-deleted{
  border-color: rgba(255,85,85,0.28);
}

.auditLogHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.auditLogTitle{
  font-size: 1rem;
  font-weight: 900;
}

.auditLogMeta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.auditLogBadge{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.82rem;
  font-weight: 900;
}

.auditLogSummary{
  margin-top: 10px;
  font-weight: 800;
}

.auditLogDiff{
  margin-top: 10px;
  display:grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-word;
}

.entries-meta-title{
  font-size: 1.05rem;
  font-weight: 900;
}

.entries-meta-count{
  color: var(--muted);
  font-weight: 800;
}

.entry-card-actions{
  margin-top: 10px;
  display:flex;
  justify-content: flex-end;
}

.entry-card-delete{
  width:auto;
  margin:0;
  padding: 12px 14px;
  border-radius: 14px;
}

.entry-card-noaction{
  opacity: 0.7;
  padding: 10px 0;
}

/* =========================================================
   ✅ EXPORT PANEL (ADMIN)
   ========================================================= */
#exportPanel{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  pointer-events: none;
}
#exportCard, #exportFab{ pointer-events:auto; }

#exportCard{
  width: 270px;
  border-radius: 16px;
  background: rgba(10,10,10,0.78);
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
}

#exportHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor:pointer;
  user-select:none;
  border-bottom:1px solid rgba(255,255,255,0.10);
}

.exportTitle{ display:flex; align-items:center; gap:8px; font-weight:700; }
.exportIcon{ font-size: 1.1rem; }

.exportToggle{
  width:auto;
  margin:0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

#exportBody{ padding: 10px 12px 12px 12px; }
.exportRow{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.exportLabel{ font-size:0.85rem; opacity:0.9; color: var(--muted); }
#exportBody select{ width:100%; margin:0; }

.exportGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.exportGrid button{
  width:100%;
  margin:0;
  padding:12px 0;
  border-radius:14px;
  background-color: var(--red);
  font-size:1.05rem;
}

.exportGrid button:hover{ background-color: var(--red2); }
.exportHint{ margin-top:10px; font-size:0.82rem; opacity:0.85; color: var(--muted); }
#exportCard.minimized #exportBody{ display:none; }

#exportFab{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background-color: var(--red);
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  border:none;
  cursor:pointer;
  padding:0;
  font-size:1.15rem;
}
#exportFab:hover{ background-color: var(--red2); }

/* =========================================================
   ✅ TOTALS PANEL (ADMIN)
   ========================================================= */
#totalsPanel{
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10000;
  pointer-events: none;
}
#totalsCard, #totalsFab{ pointer-events:auto; }

#totalsCard{
  width: 320px;
  border-radius: 16px;
  background: rgba(10,10,10,0.78);
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
}

#totalsHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor:pointer;
  user-select:none;
  border-bottom:1px solid rgba(255,255,255,0.10);
}

.totalsTitle{ display:flex; align-items:center; gap:8px; font-weight:800; }
.totalsIcon{ font-size: 1.1rem; }

.totalsToggle{
  width:auto;
  margin:0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

#totalsBody{ padding: 10px 12px 12px 12px; }
#totalsCard.minimized #totalsBody{ display:none; }

.totalsSummary{
  display:grid;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.totalsLine{
  font-weight: 900;
  color: var(--green);
  margin: 2px 0;
}

.totalsHint{
  margin-top:6px;
  font-size:0.82rem;
  opacity:0.85;
  color: var(--muted);
}

.totalsList{
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
}

.totalsRow{
  display:flex;
  justify-content: space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.totalsRow:nth-child(even){ background: rgba(255,255,255,0.04); }
.totalsName{ font-weight: 800; }

.totalsNums{
  text-align:right;
  font-weight: 800;
  color: rgba(255,255,255,0.90);
}

.totalsNums small{
  display:block;
  opacity: 0.75;
  font-weight: 700;
}

#totalsFab{
  position: fixed;
  top: 16px;
  left: 16px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background-color: var(--red);
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  border:none;
  cursor:pointer;
  padding:0;
  font-size:1.15rem;
}
#totalsFab:hover{ background-color: var(--red2); }

/* =========================================================
   ✅ TOP RIGHT (ADMIN/ANSATT) - container stjeler ikke klikk
   ========================================================= */
#topRightAdmin{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  display:flex;
  gap:10px;
  align-items:center;
  pointer-events:none;
}
#topRightAdmin button{ pointer-events:auto; }

#logoutTopBtn{
  width:auto;
  margin:0;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color:#fff;
  font-weight:900;
}
#logoutTopBtn:hover{ background: rgba(255,255,255,0.18); }

#topRightUser{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  display:flex;
  gap:10px;
  align-items:center;
  pointer-events:none;
}
#topRightUser button{ pointer-events:auto; }

#logoutUserBtn{
  width:auto;
  margin:0;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color:#fff;
  font-weight:900;
}
#logoutUserBtn:hover{ background: rgba(255,255,255,0.18); }

/* =========================================================
   ✅ ROLES PANEL
   ========================================================= */
#rolesPanel{
  position: fixed;
  top: 92px;
  right: 16px;
  z-index: 9999;
  pointer-events: none;
}
#rolesCard, #rolesFab{ pointer-events:auto; }

#rolesCard{
  width: 270px;
  border-radius: 16px;
  background: rgba(10,10,10,0.78);
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
}

#rolesHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor:pointer;
  user-select:none;
  border-bottom:1px solid rgba(255,255,255,0.10);
}

.rolesTitle{ display:flex; align-items:center; gap:8px; font-weight:700; }
.rolesIcon{ font-size: 1.1rem; }

.rolesToggle{
  width:auto;
  margin:0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

#rolesBody{ padding: 10px 12px 12px 12px; }
#rolesCard.minimized #rolesBody{ display:none; }

.rolesGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rolesGrid button{
  width:100%;
  margin:0;
  padding:12px 0;
  border-radius:14px;
  background-color: var(--red);
  font-size:1.05rem;
}

.rolesGrid button:hover{ background-color: var(--red2); }
.rolesHint{ margin-top:10px; font-size:0.82rem; opacity:0.85; color: var(--muted); }

#rolesFab{
  position: fixed;
  top: 92px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background-color: var(--red);
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  border:none;
  cursor:pointer;
  padding:0;
  font-size:1.15rem;
}
#rolesFab:hover{ background-color: var(--red2); }

/* =========================================================
   ✅ BACKUP BANNER
   ========================================================= */
#backupBanner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 15000;
  display:none;
}

#backupBanner .bannerCard{
  width: min(980px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(10,10,10,0.86);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 50px rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  display:flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#backupBanner .text{ display:flex; flex-direction: column; gap: 4px; }
#backupBanner .title{ font-weight: 900; color: #fff; }
#backupBanner .desc{ color: var(--muted); font-weight: 700; font-size: 0.92rem; }
#backupBanner .actions{ display:flex; gap: 10px; flex-wrap: wrap; }

#backupBanner .actions button{
  width:auto;
  margin:0;
  padding: 10px 12px;
  border-radius: 999px;
}

#backupBanner .actions .secondary{ background: rgba(255,255,255,0.10); }
#backupBanner .actions .secondary:hover{ background: rgba(255,255,255,0.16); }

/* =========================================================
   ✅ MODAL (skjult = kan ikke fange klikk)
   ========================================================= */
#userModalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;

  pointer-events: none;
}
#userModalOverlay[style*="display: flex"],
#userModalOverlay[style*="display:flex"],
#userModalOverlay[style*="display: block"],
#userModalOverlay[style*="display:block"]{
  pointer-events: auto;
}
#userModalOverlay *{ pointer-events: auto; }

#userModal{
  width: 560px;
  max-width: 95vw;
  border-radius: 16px;
  background: rgba(20,20,20,0.95);
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

#userModalHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

#userModalHeader h3{ margin: 0; color: #fff; font-size: 18px; }

#userModalClose{
  width:auto;
  margin:0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}

#userModalBody{ padding: 14px; }

.userField{
  display:flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.userField:last-child{ border-bottom:none; }

.userField .label{ width: 140px; opacity: 0.85; color: var(--muted); }
.userField .value{ flex: 1; word-break: break-word; }

.modalActions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.modalActions button{
  width:auto;
  margin:0;
  padding: 12px 14px;
  border-radius: 14px;
  flex: 1 1 180px;
}

.notice{
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--muted);
}

/* =========================================================
   ✅ ADMIN / ANSATT LAYOUT
   ========================================================= */
.admin-dash-title{
  width: 95%;
  max-width: 1200px;
  margin: 10px auto 0 auto;
  font-size: 1.4rem;
  color: #fff;
}

.admin-layout{
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
  width: 95%;
  max-width: 1200px;
  margin: 20px auto 0 auto;
}

#adminPanel{
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 10px;
}

#adminFlex.ansatt-only{
  grid-template-columns: 1fr;
  justify-items: center;
}

#adminFlex.ansatt-only #timePanel{
  max-width: 560px;
  width: 100%;
}

#userList{ list-style:none; padding:0; margin: 12px 0 0 0; }
#userList li{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
#userList li button{ width:auto; margin:0; padding:10px 12px; }
#userList li .user-row-main{
  flex: 1;
  width: 100%;
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-start;
  text-align:left;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}
#userList li .user-row-main:hover{
  background: transparent;
  color: #fff;
}
#userList li .user-row-main:focus-visible{
  outline: 2px solid rgba(0,255,160,0.45);
  outline-offset: 6px;
  border-radius: 12px;
}

/* =========================================================
   ✅ ADMIN MENU PANEL (KRITISK – FJERN GLASSPLATE)
   ========================================================= */
#adminMenuPanel{
  position: fixed;
  z-index: 12000;

  /* ✅ panel kan aldri dekke skjermen */
  width: 0;
  height: 0;
  overflow: visible;

  /* ✅ panel kan aldri fange klikk */
  pointer-events: none;

  /* ikke la gamle regler strekke den */
  inset: auto;
  display: block;
}

/* ✅ Bare disse kan klikkes */
#adminMenuFab,
#adminMenuCard,
#adminMenuCard *{
  pointer-events: auto;
}

/* ✅ Plassering: DESKTOP top-right */
@media (min-width: 641px){
  #adminMenuPanel{
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
  }

  #adminMenuCard{
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: 290px;
    min-height: calc(100vh - 32px);
    border-radius: 24px;
    background: rgba(12,12,13,0.985);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 60px rgba(0,0,0,0.75);
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
  }

  #adminMenuFab{
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background-color: var(--red);
    box-shadow: 0 10px 32px rgba(0,0,0,0.65);
    border:none;
    cursor:pointer;
    padding:0;
    font-size:1.15rem;
    z-index: 2;
  }
  #adminMenuFab:hover{ background-color: var(--red2); }

  /* Flytt topRightAdmin vekk fra adminMenu */
  #topRightAdmin{
    left: 322px;
    right: auto;
    top: 16px;
  }
}

/* ✅ Plassering: MOBIL bottom-right drop-up */
@media (max-width: 640px){
  #adminMenuPanel{
    right: 14px;
    bottom: 14px;
    left: auto;
    top: auto;
  }

  #adminMenuCard{
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(360px, calc(100vw - 28px));
    transform-origin: right bottom;

    border-radius: 16px;
    background: rgba(12,12,13,0.98);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 60px rgba(0,0,0,0.75);
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
  }

  #adminMenuFab{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background-color: var(--red);
    box-shadow: 0 10px 32px rgba(0,0,0,0.65);
    border:none;
    cursor:pointer;
    padding:0;
    font-size:1.15rem;
    z-index: 2;
  }
  #adminMenuFab:hover{ background-color: var(--red2); }

  #topRightAdmin{ right: 72px; top:16px; }
  #topRightUser{ right: 72px; top:16px; }

  /* På mobil trenger vi ikke bred tabell (vi bruker cards) */
  table{ min-width: 0; }
}

/* Admin meny header/tabs/body */
#adminMenuHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  user-select:none;
  border-bottom:1px solid rgba(255,255,255,0.10);
  background: rgba(10,10,11,0.98);
}

.adminMenuTitle{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
}

#adminMenuToggleBtn{
  width:auto;
  margin:0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

/* =========================================================
   ✅ Registrer timer
   ========================================================= */
#timePanel .time-form{ display: grid; gap: 10px; margin-top: 10px; }
#timePanel .field{ display: grid; gap: 6px; }
#timePanel .label{ font-size: 0.95rem; opacity: 0.92; color: var(--muted); }
#timePanel input,#timePanel select{ width: 100%; margin: 0; }

/* =========================================================
   ✅ LOGIN
   ========================================================= */
#loginWrapper{
  display: grid;
  place-items: start center;
  padding: 18px 24px 24px 24px;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(204,0,0,0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 90%, rgba(255,255,255,0.08), transparent 55%),
    var(--bg);
}

.topLogoWrap{
  width: 100%;
  max-width: 980px;
  margin: 0 auto 14px auto;
  display: grid !important;
  place-items: center;
  gap: 10px;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 5;
}

.topLogo{
  width: min(820px, 92vw);
  border-radius: 20px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 34px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.topLogo svg{ width:100%; height:auto; display:block; }

.animatedGlow{ animation: logoFade 1.6s ease-in-out 1, logoGlow 4.2s ease-in-out infinite; }

@keyframes logoFade{
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoGlow{
  0%   { filter: drop-shadow(0 0 0 rgba(204,0,0,0.00)); }
  50%  { filter: drop-shadow(0 0 16px rgba(204,0,0,0.38)); }
  100% { filter: drop-shadow(0 0 0 rgba(204,0,0,0.00)); }
}

.muted{ opacity:0.75; color: var(--muted); }

.login-shell{ width: 100%; display: grid; place-items: center; }

.login-card{
  width: min(520px, 92vw);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.login-card h2{ margin: 0 0 4px 0; font-size: 1.2rem; }
.login-field{ display: grid; gap: 6px; }
.login-field span{ font-size: 0.9rem; opacity: 0.85; color: var(--muted); }

.login-card input{
  width: 100%;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.login-card input::placeholder{ opacity: 0.7; }

.login-btn{
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: var(--red);
}

.login-btn:hover{ background: var(--red2); }

.login-error{
  margin: 0;
  min-height: 18px;
  color: #ff9a9a;
  font-weight: 700;
}

.login-help{ margin-top: 6px; font-size: 0.9rem; }

/* =========================================================
   ✅ Charts/Cooling page padding
   ========================================================= */
#chartsPage, #coolingPage{
  display:none;
  padding: 20px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  pointer-events: auto;
}

.chartsHeader, .coolHeader{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.chartsControls, .coolControls{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.pageHeadingBlock{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pageHeadingSub{
  color: #aab4c3;
  font-size: 0.96rem;
  font-weight: 700;
}

.chartsControls select{
  width:auto;
  margin:0;
  padding: 10px 12px;
  pointer-events: auto;
}

.chartsControls button,
.coolControls button{
  pointer-events: auto;
}

.secondaryAction{
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
}

.secondaryAction:hover{
  background: rgba(255,255,255,0.18);
}

.chartsGrid, .coolGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.tempComplianceBanner{
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(57,255,138,0.12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.tempTabBar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 7;
  isolation: isolate;
  pointer-events: auto;
}

.tempTab{
  width:auto;
  margin:0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.tempTab.is-active{
  background: linear-gradient(180deg, rgba(204,0,0,0.95), rgba(144,0,0,0.95));
}

.tempSection{
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.tempComplianceTitle{
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.tempComplianceText{
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.chartCard, .coolCard{
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.coolCard-primary{
  background:
    radial-gradient(circle at top right, rgba(204,0,0,0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
}

.coolSectionHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.coolTag{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.chartCanvasWrap{
  background: linear-gradient(180deg, rgba(249,250,251,0.98), rgba(241,245,249,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  min-height: 340px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.chartNote{ margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

.chartCard h3{
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.chartCard canvas{
  width: 100% !important;
  height: 300px !important;
  position: relative;
  z-index: 1;
}

.coolFormGrid{
  display:grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.calibrationFormGrid{
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.calibrationStatusGrid{
  margin-top: 10px;
}

.tempSnapshotRow{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tempSnapshotCard{
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
}

.tempSnapshotCard-status{
  background:
    radial-gradient(circle at top right, rgba(57,255,138,0.10), transparent 38%),
    rgba(0,0,0,0.18);
}

.tempSnapshotLabel{
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tempSnapshotValue{
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 900;
}

.coolLogCard{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 10px;
}

.coolLogTop{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
  flex-wrap: wrap;
}

.coolLogTitle{
  font-weight: 900;
}

.coolLogMeta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.coolLogStatus{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(57,255,138,0.12);
  border: 1px solid rgba(57,255,138,0.24);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 900;
}

@media (max-width: 720px){
  .coolFormGrid{ grid-template-columns: 1fr; }
  .chartsControls, .coolControls{
    width: 100%;
  }
  .chartsControls select,
  .chartsControls button,
  .coolControls button{
    width: 100% !important;
  }
  .chartCanvasWrap{
    min-height: 280px;
    padding: 12px;
  }
  .chartCard canvas{
    height: 250px !important;
  }
  .calibrationFormGrid,
  .tempSnapshotRow{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ✅ TOUCH
   ========================================================= */
@media (pointer: coarse){
  button{ min-height: 50px; font-size: 1.05rem; }
  input, select{ min-height: 48px; font-size: 1.05rem; }
  th, td{ padding: 12px 10px; }
}

@media (max-width: 1024px){
  .admin-layout{ grid-template-columns: 1fr; }
  #adminPanel{ max-height:none; overflow: visible; padding-right:0; }
  table{ min-width: 860px; }
  .timerSummaryBar{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timerFormGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table{ min-width: 620px; }

  /* ✅ FIX: ikke flytt topRightAdmin ned – dette skaper ofte klikksperre/overlay-problemer */
  #topRightAdmin{ right: 16px; top: 16px; }
}

@media (max-width: 640px){
  #exportCard, #totalsCard, #rolesCard{ width: 92vw; max-width: 420px; }
  #rolesPanel{ right: 16px; top: 72px; }
  #rolesFab{ right: 16px; top: 72px; }
  #app{ padding: 14px 14px 120px 14px; }
  .timerHero{ margin-top: 78px; }
  .timerSummaryBar{ grid-template-columns: 1fr; }
  .timerQuickStats{ grid-template-columns: 1fr; }
  .timerFormGrid{ grid-template-columns: 1fr; }
  .timerActionRow button{ width: 100%; }
  .timerPeriodFilters{ width: 100%; }
  .timerSyncBanner{ flex-direction: column; }
  .timerSyncBadge{ min-width: 0; width: fit-content; }
  .compactField{ width: 100%; min-width: 0; }
  .compactField select{ width: 100%; }
  .entries-meta-bar{ align-items:flex-start; }
  .team-shift-row,
  .employee-block-head,
  .team-day-head{
    align-items:flex-start;
  }
  .team-shift-actions{
    width: 100%;
  }
  .compact-action-btn{
    flex: 1 1 120px;
  }
}

/* =========================================================
   ✅ BETTER CONTRAST DROPDOWNS
   ========================================================= */
select,
input[type="date"],
input[type="time"],
input[type="number"],
input[type="text"],
input[type="password"]{
  background: rgba(10, 10, 11, 0.96);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}
select option{
  background: #0f0f10;
  color: rgba(255,255,255,0.92);
}
select:focus, input:focus{
  border-color: rgba(0, 255, 160, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 255, 160, 0.10);
}

/* =========================================================
   ✅ FIXES FOR DIN HTML (adminTabs/adminTab)
   - du bruker .adminTabs + .adminTab i index.html
   ========================================================= */
.adminTabs{
  display:grid;
  gap: 8px;
  padding: 12px;
  border-bottom:1px solid rgba(255,255,255,0.10);
}

.adminTabs .adminTab{
  width:100%;
  margin:0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 900;
  text-align:left;
}

.adminTabs .adminTab.is-active{
  background: linear-gradient(180deg, rgba(204,0,0,0.94), rgba(144,0,0,0.94));
  border-color: rgba(255,255,255,0.14);
}

#adminMenuBody{
  padding-bottom: 16px;
}

.adminMenuSection{
  padding: 0 12px 12px 12px;
}

/* =========================================================
   ✅ EXTRA FAILSAFE: admin menu knapper skal alltid være klikkbare
   ========================================================= */
#adminMenuToggleBtn,
#adminTabTotals,
#adminTabExport,
#adminTabMore{
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
