/* Auto-paired 1:1 with js/navigation.js — edit styles for that module here */

.bottom-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 2px rgba(0,0,0,0.04);
  border-radius: 20px 20px 0 0;
  padding-top: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.bn-item {
  border-radius: 14px;
}

.bn-item.on {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.08);
}

.sec {
  padding: 22px 28px;
}

.sec-h h2 {
  letter-spacing: -0.6px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .sec {
    padding: 16px 14px;
  }
  .hwrap {
    padding: 16px;
  }
}

[data-theme="professional"] .bottom-nav { box-shadow: 0 -2px 12px -2px rgba(11,95,165,.14); }

[data-theme="professional"] .bn-item.on { color: var(--pro-blue-d); }

[data-theme="professional"] .sec-h .no { background: var(--pro-blue); }

[data-theme="dark"] .bottom-nav {
  background: #161618 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .bn-item {
  color: #8e8e93 !important;
}

[data-theme="dark"] .bn-item.on {
  color: #f5f5f7 !important;
}

[data-theme="dark"] .sec {
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: none;
}

[data-theme="dark"] .sec-h {
  color: #f5f5f7;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sec-h .no {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  box-shadow: none;
}

[data-theme="dark"] .bn-item.on {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f5f5f7 !important;
  border-radius: 12px;
}

.sec[data-screen=\"logsheet\"] { position:relative; z-index:20; overflow:visible; }

.oee-matrix-tbl tr.sec-header td {
  background: #f0f4f8; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.8px;
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(244,250,255,.90), rgba(231,240,245,.95) 55%, rgba(226,237,229,.97)),
      url('../icons/bg-login.jpg') center top / cover fixed no-repeat;
  }
  .sheet {
    margin-top: 8px;
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(13,33,53,.16);
  }
  .sec[data-screen="logsheet"] {
    padding-top: 9px;
  }
  .sheet-unified-control {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 14px;
  }
  .sheet-process-tabs { padding-left: 1px; padding-right: 1px; }
  .sheet-inline-controls { gap: 4px; }
  .sheet-date-trigger { box-shadow: 0 2px 7px rgba(15,36,55,.07); }
  .logsheet-topbar {
    border-radius: 11px;
    padding: 4px;
  }
  .tbl-wrap { border-radius: 12px; }
}

.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: 0; padding: 7px 2px 6px;
  color: var(--mut); cursor: pointer; transition: color .15s, transform .15s;
  border-radius: 10px;
}

/* Hormati atribut hidden — .bn-item { display:flex } menimpa [hidden] bawaan browser */
.bn-item[hidden],
.screen-tab[hidden],
.bottom-nav .bn-item[hidden] {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.bn-item:active { transform: scale(.94); }

.bn-icon { font-size: 19px; line-height: 1; }

.bn-label { font: 700 9.5px var(--mono); letter-spacing: .2px; white-space: nowrap; }

.bn-item.on { color: var(--green-d); }

.bn-item.on .bn-icon { transform: translateY(-1px) scale(1.08); }

.sheet > .sec[data-screen] { display: none; }

.sheet > .sec[data-screen].active { display: block; animation: rise .3s cubic-bezier(.22,.8,.3,1) both; }

.sec { padding: 20px 28px; }

.sec + .sec { border-top: 2px dashed var(--line); }

.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.sec-h h2 { font: 600 23px/1.05 var(--disp); letter-spacing: 1.2px; text-transform: uppercase; }

.sec-h .sub2 { font: 12px var(--mono); color: var(--mut); margin-top: 2px; }

.sec-f {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-top: 12px;
  font: 12.5px var(--mono); color: var(--mut);
}

.sec-f b { color: var(--ink); }

.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: var(--page, 960px) !important;
  height: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  flex-direction: row !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--line, #e8e8ed) !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: 0 -2px 12px -2px rgba(0, 0, 0, 0.08) !important;
  z-index: 55 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: flex !important;
  will-change: transform !important;
  transform: translateX(-50%) translateZ(0) !important;
  -webkit-transform: translateX(-50%) translateZ(0) !important;
}

.bottom-nav .bn-item {
  flex: 1 1 0 !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 7px 2px 6px !important;
  min-height: 0 !important;
  border-radius: 10px !important;
}

.bottom-nav .bn-icon { font-size: 19px !important; }

.bottom-nav .bn-label { font-size: 9.5px !important; }

[data-theme="dark"] .bottom-nav {
  background: rgba(12, 12, 14, 0.94) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .bottom-nav .bn-item.on {
  color: #f5f5f7 !important;
}

.bn-item.on { color: var(--brand-600); }

.bn-icon { width: 19px; height: 19px; }

@media (min-width: 1400px) {
  :root {
    --page: min(100vw - 40px, 1920px);
  }
  .sec {
    padding: 18px 22px;
  }
}

/* Label lebih panjang: Shift&Produk, OEE 365 */
.bottom-nav .bn-label {
  font-size: 8.5px;
  max-width: 58px;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}
.oee365-indicator {
  margin-left: 6px;
}


/* Tombol Dashboard Meeting di app-bar */
.meeting-indicator {
  cursor: pointer;
  border: 0;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}
.meeting-indicator:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.meeting-indicator .oi-label {
  opacity: 1;
  font-size: 13px;
}

/* Ikon bottom-nav: SVG garis (modern, mengikuti warna teks tab) */
.bottom-nav .bn-icon {
  width: 22px !important; height: 22px !important; font-size: 0 !important;
  display: grid; place-items: center;
}
.bottom-nav .bn-icon svg {
  width: 22px; height: 22px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-width .15s ease;
}
.bottom-nav .bn-item.on .bn-icon svg { stroke-width: 2.1; }

/* Ikon app-bar: SVG garis (menu ☰/✕ dan tombol Meeting) */
.ab-icon { display: inline-grid; place-items: center; font-size: 0; line-height: 0; }
.ab-icon svg {
  width: 20px; height: 20px; display: block;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.meeting-indicator .ab-icon svg { width: 15px; height: 15px; }

/* Tombol Spread Sheet (link ke Google Sheets) */
a.spreadsheet-indicator {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  border-color: rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  color: inherit;
}
a.spreadsheet-indicator:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}
a.spreadsheet-indicator .ab-icon svg {
  width: 15px;
  height: 15px;
  /* SVG spreadsheet pakai fill/stroke sendiri (hijau), bukan currentColor */
  fill: unset;
  stroke: unset;
}

#toolbarToggleIcon .ab-ico-close { display: none; }
body.sidebar-open #toolbarToggleIcon .ab-ico-menu { display: none; }
body.sidebar-open #toolbarToggleIcon .ab-ico-close { display: block; }
